]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/breakpoint: disable a bp location if condition is invalid at that location
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b5fa468f
TBA
12020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
4 * breakpoint.c (set_breakpoint_location_condition): New function.
5 (set_breakpoint_condition): Disable a breakpoint location if parsing
6 the condition string gives an error.
7 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
8 (build_target_condition_list): Ditto.
9 (build_target_command_list): Ditto.
10 (build_bpstat_chain): Ditto.
11 (print_one_breakpoint_location): Ditto.
12 (print_one_breakpoint): Ditto.
13 (breakpoint_1): Ditto.
14 (bp_location::bp_location): Ditto.
15 (locations_are_equal): Ditto.
16 (update_breakpoint_locations): Ditto.
17 (enable_disable_bp_num_loc): Ditto.
18 (init_breakpoint_sal): Use set_breakpoint_location_condition.
19 (find_condition_and_thread_for_sals): New static function.
20 (create_breakpoint): Call find_condition_and_thread_for_sals.
21 (location_to_sals): Call find_condition_and_thread_for_sals instead
22 of find_condition_and_thread.
23
1c47ec3e
TV
242020-10-26 Tom de Vries <tdevries@suse.de>
25
26 * dwarf2/read.c (process_full_comp_unit): Call
27 dwarf2_find_base_address.
28
6390859c
TT
292020-10-26 Tom Tromey <tromey@adacore.com>
30
31 * gdbtypes.c (create_range_type): Revert previous patch. Add
32 comment.
33
d744f0f9
PA
342020-10-26 Pedro Alves <pedro@palves.net>
35
36 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
37 (my_waitpid): Use gdb::handle_eintr.
38
006811bc
SM
392020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * acinclude.m4: Update ptrace.m4 path.
42 * ptrace.m4: Moved to gdbsupport.
43
c75e31a1
SM
442020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
47 instead of target_gdbarch.
48
32495661
SM
492020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * jit.c (jit_reader_load_command): Pass current inferior.
52 (jit_inferior_init): Change parameter type to inferior, use it.
53 (jit_inferior_created): Remove.
54 (jit_inferior_created_hook): Pass inferior parameter down.
55 (_initialize_jit): Use jit_inferior_created_hook instead of
56 jit_inferior_created.
57 * jit.h (jit_inferior_created_hook): Add inferior parameter.
58 * infrun.c (follow_exec): Pass inferior to
59 jit_inferior_created_hook.
60
3f66685e
SM
612020-10-24 Simon Marchi <simon.marchi@efficios.com>
62
63 * linux-thread-db.c (check_pid_namespace_match): Add inferior
64 parameter and use it.
65 (thread_db_inferior_created): Pass inferior argument.
66
a0ff652f
SM
672020-10-24 Simon Marchi <simon.marchi@efficios.com>
68
69 * aix-thread.c (aix_thread_inferior_created): Add inferior
70 parameter.
71 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
72 * dummy-frame.c (cleanup_dummy_frames): Likewise.
73 * jit.c (jit_inferior_created): Likewise.
74 * linux-thread-db.c (thread_db_inferior_created): Likewise.
75 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
76 * observable.h (inferior_created): Likewise.
77 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
78 * symfile-mem.c (add_vsyscall_page): Likewise.
79 * infcmd.c (post_create_inferior): Pass inferior argument.
80
3c67532c
JB
812020-10-24 Joel Brobecker <brobecker@adacore.com>
82
83 GDB 10.1 released.
84
8747316e
JB
852020-10-23 Joel Brobecker <brobecker@adacore.com>
86
87 * ada-typeprint.c (ada_print_type): Remove superfluous second call
88 to ada_check_typedef.
89
1a0ea399
AB
902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * f-exp.y (f_parse): Rename to...
93 (f_language::parser): ...this.
94 * f-lang.c (f_get_encoding): Rename to...
95 (f_language::get_encoding): ...this.
96 (f_op_print_tab): Rename to...
97 (f_language::op_print_tab): ...this.
98 (exp_descriptor_f): Rename to...
99 (f_language::exp_descriptor_tab): ...this.
100 (class f_language): Moved to f-lang.h.
101 (f_language::language_arch_info): New function, moved out of class
102 declaration.
103 (f_language::search_name_hash): Likewise.
104 (f_language::lookup_symbol_nonlocal): Likewise.
105 (f_language::get_symbol_name_matcher_inner): Likewise.
106 * f-lang.h: Add 'valprint.h' include.
107 (class f_language): Moved here from f-lang.c.
108 * f-typeprint.c (f_type_print_args): Delete commented out
109 declaration.
110 (f_print_typedef): Rename to...
111 (f_language::print_typedef): ...this.
112 (f_print_type): Rename to...
113 (f_language::print_type): ...this.
114 (f_type_print_varspec_prefix): Delete declaration and rename to...
115 (f_language::f_type_print_varspec_prefix): ...this.
116 (f_type_print_varspec_suffix): Delete declaration and rename to...
117 (f_language::f_type_print_varspec_suffix): ...this.
118 (f_type_print_base): Delete declaration and rename to...
119 (f_language::f_type_print_base): ...this.
120 * f-valprint.c (f_value_print_inner): Rename to...
121 (f_language::value_print_inner): ...this.
122 * parse.c: Delete 'f-lang.h' include.
123
88cefd9b
AB
1242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * language.h (language_defn::print_type): Add variable names in
127 declaration, and update header comment.
128
5399db93
AB
1292020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * ada-lang.c (ada_language::demangle): Rename to...
132 (ada_language::demangle_symbol): ...this.
133 * c-lang.c (cplus_language::demangle): Rename to...
134 (cplus_language::demangle_symbol): ...this.
135 * d-lang.c (d_language::demangle): Rename to...
136 (d_language::demangle_symbol): ...this.
137 * f-lang.c (f_language::demangle): Rename to...
138 (f_language::demangle_symbol): ...this.
139 * go-lang.c (go_language::demangle): Rename to...
140 (go_language::demangle_symbol): ...this.
141 * language.c (language_demangle): Update call to demangle_symbol.
142 (auto_or_unknown_language::demangle): Rename to...
143 (auto_or_unknown_language::demangle_symbol): ...this.
144 * language.h (language_defn::demangle): Rename to...
145 (language_defn::demangle_symbol): ...this.
146 * objc-lang.c (objc_language::demangle): Rename to...
147 (objc_language::demangle_symbol): ...this.
148 * rust-lang.c (rust_language::demangle): Rename to...
149 (rust_language::demangle_symbol): ...this.
150
4b2f86ef
AB
1512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
154 (iterate_over_file_blocks): Replace use of macro with the macros
155 definition.
156
e74b39de
AB
1572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
160 * valprint.c (maybe_print_array_index): Replace use of macro with
161 the macros definition.
162
00c696a6
AB
1632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * ada-lang.c (ada_language::print_array_index): Call value_print
166 directly.
167 * language.c (language_defn::print_array_index): Likewise.
168 * language.h (LA_VALUE_PRINT): Delete.
169 * valprint.c (value_print): Call value_print on the
170 current_language directly.
171
d3b67c56
AB
1722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * language.h (LA_PRINT_TYPEDEF): Delete.
175 * typeprint.c (typedef_print): Call print_typedef directly on the
176 current_language object.
177
790e2a12
AB
1782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * m2-exp.y (m2_parse): Rename to...
181 (m2_language::parser): ...this. Update function signature.
182 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
183 (m2_op_print): Rename to...
184 (m2_language::op_print_tab): ...this, and make const.
185 (exp_descriptor_modula2): Rename to...
186 (m2_language::exp_descriptor_modula2): ...this.
187 (class m2_language): Move to m2-lang.h.
188 (m2_language::language_arch_info): New function, moved out of
189 class declaration.
190 (m2_language::printchar): New function, body from m2_printchar.
191 (m2_language::printstr): New function, moved out of class
192 declaration.
193 (m2_language::emitchar): Likewise.
194 * m2-lang.h (m2_parse): Delete declaration.
195 (m2_print_typedef): Delete declaration.
196 (m2_value_print_inner): Delete declaration.
197 (class m2_language): Class declaration moved from m2-lang.c,
198 larger functions are left in m2-lang.c.
199 * m2-typeprint.c (m2_print_typedef): Rename to...
200 (m2_language::print_typedef): ...this, and update function
201 signature.
202 * m2-valprint.c (m2_value_print_inner): Rename to...
203 (m2_language::value_print_inner): ...this, replace use of
204 LA_PRINT_STRING with a direct call to printstr member function,
205 and update recursive call.
206
b01175fc
AB
2072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * language.c (default_is_string_type_p): Delete, implementation
210 moved into auto_or_unknown_language::is_string_type_p.
211 (unk_op_print_tab): Moved into
212 auto_or_unknown_language::opcode_print_table.
213 (unknown_language_arch_info): Delete, implementation moved into
214 auto_or_unknown_language::language_arch_info.
215 (class auto_or_unknown_language): New class, member functions
216 copied from unknown_language class, with some updates.
217 (class unknown_language): Most member functions moved into
218 auto_or_unknown_language class. Inherit from
219 auto_or_unknown_language class.
220 (class auto_language): Inherit from auto_or_unknown_language.
221 Delete most member functions.
222
1a97fe8c
HD
2232020-10-22 Hannes Domani <ssbssa@yahoo.de>
224
225 * stabsread.c (read_member_functions): Remove gdb_assert.
226
6b9d0dfd
HD
2272020-10-22 Hannes Domani <ssbssa@yahoo.de>
228
229 * gdbtypes.c (init_complex_type): Check target type name.
230
4b4bb603
SM
2312020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * target-debug.h (target_debug_print_struct_target_ops_p):
234 Remove.
235 (target_debug_print_async_callback_ftype_p): Remove.
236 (target_debug_print_struct_trace_state_variable_p): Remove.
237 (target_debug_print_struct_traceframe_info_p): Remove.
238 (target_debug_print_VEC__btrace_block_s__pp): Remove.
239 (target_debug_print_enum_btrace_format): Remove.
240 (target_debug_print_enum_info_proc_what): Remove.
241 (target_debug_print_thread_info_pp): Remove.
242
24f5300a
SM
2432020-10-22 Simon Marchi <simon.marchi@efficios.com>
244
245 * target.h (struct target_ops) <make_corefile_notes>:
246 Change return type to unique pointer.
247 * target.c (dummy_make_corefile_notes): Likewise.
248 * exec.c (struct exec_target) <make_corefile_notes>:
249 Likewise.
250 (exec_target::make_corefile_notes): Likewise.
251 * procfs.c (class procfs_target) <make_corefile_notes>:
252 Likewise.
253 (procfs_do_thread_registers): Adjust to unique pointer.
254 (struct procfs_corefile_thread_data): Add constructor.
255 <note_data>: Change type to unique pointer.
256 (procfs_corefile_thread_callback): Adjust to unique pointer.
257 (procfs_target::make_corefile_notes): Change return type to
258 unique pointer.
259 * target-delegates.c: Re-generate.
260 * gcore.c (write_gcore_file_1): Adjust.
261 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
262 New.
263
5fb4027f
TV
2642020-10-22 Tom de Vries <tdevries@suse.de>
265
266 * block.c (find_block_in_blockvector): Make sure the returned block
267 contains pc.
268
4a636814
SM
2692020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
270
271 PR gdb/26693
272 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
273 parameter.
274 (load_cu): Pass existing CU.
275 (process_imported_unit_die): Likewise.
276 (follow_die_offset): Likewise.
277
1bd57575
LM
2782020-10-22 Luis Machado <luis.machado@linaro.org>
279
280 * corelow.c (core_target::xfer_partial): Also check for an empty
281 m_core_unavailable_mappings vector.
282
6b4c676c
AB
2832020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
286 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
287 * f-exp.y (arglist): Allow for a series of subranges.
288 (subrange): Add cases for subranges with strides.
289 * f-lang.c (value_f90_subarray): Catch use of array strides and
290 throw an error.
291 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
292
f2d8e4c5
AB
2932020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * expprint.c (print_subexp_standard): Change enum range_type to
296 range_flag and rename variables to match.
297 (dump_subexp_body_standard): Likewise.
298 * expression.h (enum range_type): Rename to...
299 (enum range_flag): ...this.
300 (range_types): Rename to...
301 (range_flags): ...this.
302 * f-lang.c (value_f90_subarray): Change enum range_type to
303 range_flag and rename variables to match.
304 * parse.c (operator_length_standard): Likewise.
305 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
306 range_type to range_flag.
307 * rust-lang.c (rust_evaluate_funcall): Likewise.
308 (rust_range): Likewise.
309 (rust_compute_range): Likewise.
310 (rust_subscript): Likewise.
311
2f1b18db
AB
3122020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * expprint.c (print_subexp_standard): Update to reflect changes to
315 enum range_type.
316 (dump_subexp_body_standard): Likewise.
317 * expression.h (enum range_type): Convert to a bit field enum, and
318 make the enum unsigned.
319 * f-exp.y (subrange): Update to reflect changes to enum
320 range_type.
321 * f-lang.c (value_f90_subarray): Likewise.
322 * parse.c (operator_length_standard): Likewise.
323 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
324 * rust-lang.c (rust_range): Likewise.
325 (rust_compute_range): Likewise.
326 (rust_subscript): Likewise.
327
a46d1843
SM
3282020-10-21 Simon Marchi <simon.marchi@efficios.com>
329
330 * infrun.c (displaced_step_in_progress_thread): Fix comment.
331 (displaced_step_in_progress): Fix comment.
332
c21f37a8
SM
3332020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * gdbarch.sh (make_corefile_notes): Return unique pointer.
336 * gdbarch.c: Re-generate.
337 * gdbarch.h: Re-generate.
338 * gcore.c (write_gcore_file_1): Adjust.
339 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
340 constructor.
341 <note_data>: Change type to unique pointer.
342 <abort_iteration>: Change type to bool.
343 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
344 (fbsd_collect_thread_registers): Return void, adjust.
345 (struct fbsd_corefile_thread_data): Add construtor.
346 <note_data>: Change type to unique pointer.
347 (fbsd_corefile_thread): Adjust.
348 (fbsd_make_corefile_notes): Return unique pointer, adjust.
349 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
350 to unique pointer, adjust.
351 (struct linux_collect_regset_section_cb_data): Add constructor.
352 <note_data>: Change type to unique pointer.
353 <abort_iteration>: Change type to bool.
354 (linux_collect_thread_registers): Return void, adjust.
355 (struct linux_corefile_thread_data): Add constructor.
356 <note_data>: Change type to unique pointer.
357 (linux_corefile_thread): Adjust.
358 (linux_make_corefile_notes): Return unique pointer, adjust.
359
07fbbd01
SM
3602020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
363 * gdbarch.c: Re-generate.
364 * gdbarch.h: Re-generate.
365 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
366 bool.
367 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
368 Likewise.
369 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
370 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
371 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
372 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
373
39535193
SM
3742020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * gdbarch.sh: Make generated predicates return bool.
377 * gdbarch.c: Re-generate.
378 * gdbarch.h: Re-generate.
379
ad523d01
TT
3802020-10-20 Tom Tromey <tom@tromey.com>
381
382 * varobj-iter.h (struct varobj_item): Remove typedef.
383
c4464ade
SM
3842020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * infrun.c (currently_stepping): Change int to bool
387 (maybe_software_singlestep): Likewise.
388 (show_stop_on_solib_events): Likewise.
389 (stepping_past_nonsteppable_watchpoint): Likewise.
390 (displaced_step_in_progress_any_inferior): Likewise.
391 (displaced_step_in_progress_thread): Likewise.
392 (keep_going_stepped_thread): Likewise.
393 (thread_still_needs_step_over): Likewise.
394 (start_step_over): Likewise.
395 (do_target_resume): Likewise.
396 (resume_1): Likewise.
397 (clear_proceed_status): Likewise.
398 (thread_still_needs_step_over_bp): Likewise.
399 (proceed): Likewise.
400 (switch_back_to_stepped_thread): Likewise.
401 (adjust_pc_after_break): Likewise.
402 (stepped_in_from): Likewise.
403 (handle_stop_requested): Likewise.
404 (handle_syscall_event): Likewise.
405 (handle_no_resumed): Likewise.
406 (handle_inferior_event): Likewise.
407 (finish_step_over): Likewise.
408 (handle_signal_stop): Likewise.
409 (process_event_stop_test): Likewise.
410
2eb20436
SM
4112020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * infrun.c (get_displaced_stepping_state): Fix comment.
414
e0c45ded
AS
4152020-10-20 Andreas Schwab <schwab@linux-m68k.org>
416
417 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
418
22cc388e
TT
4192020-10-19 Tom Tromey <tromey@adacore.com>
420
421 PR tui/26719
422 * tui/tui-winsource.h (struct tui_source_window_base)
423 <refresh_window>: Rename from refresh_pad.
424 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
425 Rename from refresh_pad.
426 (tui_source_window_base::show_source_content)
427 (tui_source_window_base::do_scroll_horizontal): Update.
428
3c6eb4d4
TBA
4292020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 * thread.c (_initialize_thread): Fine-tune the help text of
432 'info threads'.
433
26703721
TBA
4342020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
435
436 * frame.c: Remove the unused 'uinteger_option_def' type alias.
437
61c26be8
MS
4382020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
439
440 * breakpoint.c (handle_jit_event): Add an argument, change how
441 `jit_event_handler` is called.
442
932539d7
TT
4432020-10-17 Tom Tromey <tom@tromey.com>
444
445 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
446 (scan_xcoff_symtab): Update.
447 * psymtab.h (class psymtab_storage) <global_psymbols,
448 static_psymbols, current_global_psymbols,
449 current_static_psymbols>: Remove.
450 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
451 (match_partial_symbol, lookup_partial_symbol): Update.
452 (print_partial_symbols): Change parameters.
453 (dump_psymtab, recursively_search_psymtabs)
454 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
455 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
456 (concat): Remove.
457 (end_psymtab_common): Simplify.
458 (append_psymbol_to_list): Change parameters.
459 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
460 (init_psymbol_list): Simplify.
461 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
462 * psympriv.h (struct partial_symtab) <empty>: New method.
463 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
464 Remove.
465 <global_psymbols, static_psymbols>: New members.
466 <add_psymbol>: New methods.
467 (add_psymbol_to_list): Don't declare.
468 (psymbol_placement): Move earlier.
469 * mdebugread.c (parse_partial_symbols): Update.
470 (handle_psymbol_enumerators): Change parameters.
471 (mdebug_expand_psymtab): Update.
472 * dwarf2/read.c (process_psymtab_comp_unit_reader)
473 (add_partial_symbol): Update.
474 * dwarf2/index-write.c (write_psymbols): Change parameters.
475 (write_one_signatured_type): Update.
476 (recursively_count_psymbols): Update.
477 (recursively_write_psymbols): Update.
478 (class debug_names) <recursively_write_psymbols>: Update.
479 <write_psymbols>: Change parameters.
480 <write_one_signatured_type>: Update.
481 * dbxread.c (read_dbx_symtab): Update.
482 (dbx_end_psymtab): Use partial_symtab::empty.
483 * ctfread.c (struct ctf_context) <pst>: New member.
484 (create_partial_symtab): Set it.
485 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
486 (scan_partial_symbols): Use the psymtab's context. Update.
487
cfabbd35
TT
4882020-10-17 Tom Tromey <tom@tromey.com>
489
490 * valprint.c (generic_value_print): Remove comment.
491 * m2-valprint.c (m2_value_print_inner): Remove comment.
492 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
493 type.
494
520596f2
TV
4952020-10-17 Tom de Vries <tdevries@suse.de>
496
497 PR symtab/26317
498 * source.c (select_source_symtab): Handling sal.symtab == NULL for
499 symbol main.
500
76547ab3
TV
5012020-10-14 Tom de Vries <tdevries@suse.de>
502
503 PR gdb/26733
504 * solib.c (solib_contains_address_p): Handle
505 'solib->sections == nullptr'.
506
d3a07122
SM
5072020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
508
509 PR gdb/26642
510 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
511 target can't do async.
512 * target.c (target_wait): Assert that we don't pass
513 TARGET_WNOHANG to a target that can't async.
514
1b71cfcf
KR
5152020-10-13 Kamil Rytarowski <n54@gmx.com>
516
517 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
518 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
519 * alpha-bsd-nat.c: Adjust include.
520 * alpha-bsd-tdep.h: Adjust comment.
521 * alpha-nbsd-tdep.c: Rename to ...
522 * alpha-netbsd-tdep.c: ... this, adjust include.
523 * amd64-nbsd-nat.c: Rename to ...
524 * amd64-netbsd-nat.c: ... this, adjust include.
525 * amd64-nbsd-tdep.c: Rename to ...
526 * amd64-netbsd-tdep.c: ... this, adjust include.
527 * amd64-tdep.h: Adjust include.
528 * arm-nbsd-nat.c: Rename to ...
529 * arm-netbsd-nat.c: ... this, adjust include.
530 * arm-nbsd-tdep.c: Rename to ...
531 * arm-netbsd-tdep.c: ... this, adjust include.
532 * arm-nbsd-tdep.h: Rename to ...
533 * arm-netbsd-tdep.h: ... this, adjust include.
534 * configure.nat: Adjust file lists.
535 * configure.tgt: Likewise.
536 * hppa-nbsd-nat.c: Rename to ...
537 * hppa-netbsd-nat.c: ... this, adjust include.
538 * hppa-nbsd-tdep.c: Rename to ...
539 * hppa-netbsd-tdep.c: ... this, adjust include.
540 * i386-nbsd-nat.c: Rename to ...
541 * i386-netbsd-nat.c: ... this, adjust include.
542 * i386-nbsd-tdep.c: Rename to ...
543 * i386-netbsd-tdep.c: ... this, adjust include.
544 * m68k-bsd-nat.c: Adjust include.
545 * mips-nbsd-nat.c: Rename to ...
546 * mips-netbsd-nat.c: ... this, adjust include.
547 * mips-nbsd-tdep.c: Rename to ...
548 * mips-netbsd-tdep.c: ... this, adjust include.
549 * mips-nbsd-tdep.h: Rename to ...
550 * mips-netbsd-tdep.h: ... this.
551 * nbsd-nat.c: Rename to ...
552 * netbsd-nat.c: ... this, adjust include.
553 * nbsd-nat.h: Rename to ...
554 * netbsd-nat.h: ... this, adjust include.
555 * nbsd-tdep.c: Rename to ...
556 * netbsd-tdep.c: ... this, adjust include.
557 * nbsd-tdep.h: Rename to ...
558 * netbsd-tdep.h: ... this.
559 * ppc-nbsd-nat.c: Rename to ...
560 * ppc-netbsd-nat.c: ... this, adjust include.
561 * ppc-nbsd-tdep.c: Rename to ...
562 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
563 * ppc-nbsd-tdep.h: Rename to ...
564 * ppc-netbsd-tdep.h: ... this.
565 * sh-nbsd-nat.c: Rename to ...
566 * sh-netbsd-nat.c: ... this, adjust include.
567 * sh-nbsd-tdep.c: Rename to ...
568 * sh-netbsd-tdep.c: ... this, adjust include.
569 * sparc-nbsd-nat.c: Rename to ...
570 * sparc-netbsd-nat.c: ... this.
571 * sparc-nbsd-tdep.c: Rename to ...
572 * sparc-netbsd-tdep.c: ... this, adjust include.
573 * sparc64-nbsd-nat.c: Rename to ...
574 * sparc64-netbsd-nat.c: ... this.
575 * sparc64-nbsd-tdep.c: Rename to ...
576 * sparc64-netbsd-tdep.c: ... this, adjust include.
577 * sparc64-tdep.h: Adjust comment.
578 * vax-bsd-nat.c: Adjust include.
579 * vax-nbsd-tdep.c: Rename to ...
580 * vax-netbsd-tdep.c: ... this, adjust include.
581
d7a78e5c
TT
5822020-10-12 Tom Tromey <tom@tromey.com>
583
584 * target.h (struct target_ops) <get_section_table>: Update.
585 (target_get_section_table): Update.
586 * target.c (target_get_section_table, target_section_by_addr)
587 (memory_xfer_partial_1): Update.
588 * target-section.h (target_section_table): Now an alias.
589 * target-delegates.c: Rebuild.
590 * target-debug.h (target_debug_print_target_section_table_p):
591 Rename from target_debug_print_struct_target_section_table_p.
592 * symfile.c (build_section_addr_info_from_section_table): Update.
593 * solib.c (solib_map_sections, solib_contains_address_p): Update.
594 * solib-svr4.c (scan_dyntag): Update.
595 * solib-dsbt.c (scan_dyntag): Update.
596 * remote.c (remote_target::remote_xfer_live_readonly_partial):
597 Update.
598 * record-full.c (record_full_core_target::xfer_partial): Update.
599 * progspace.h (struct program_space) <target_sections>: Update.
600 * exec.h (print_section_info): Update.
601 * exec.c (exec_target::close, build_section_table)
602 (add_target_sections, add_target_sections_of_objfile)
603 (remove_target_sections, exec_on_vfork)
604 (section_table_available_memory)
605 (section_table_xfer_memory_partial)
606 (exec_target::get_section_table, exec_target::xfer_partial)
607 (print_section_info, set_section_command)
608 (exec_set_section_address, exec_target::has_memory): Update.
609 * corelow.c (core_target::build_file_mappings)
610 (core_target::xfer_partial, core_target::info_proc_mappings)
611 (core_target::info_proc_mappings): Update.
612 * bfd-target.c (class target_bfd): Update
613
eda214ce
TT
6142020-10-12 Tom Tromey <tom@tromey.com>
615
616 * progspace.c (program_space::~program_space): Don't call
617 clear_section_table.
618 * exec.h (clear_section_table): Don't declare.
619 * exec.c (exec_target::close): Update.
620 (clear_section_table): Remove.
621
91840ee3
TT
6222020-10-12 Tom Tromey <tom@tromey.com>
623
624 * exec.c (add_target_sections_of_objfile): Simplify.
625
2d128614
TT
6262020-10-12 Tom Tromey <tom@tromey.com>
627
628 * solib.c (solib_map_sections): Update.
629 * record-full.c (record_full_core_open_1): Update.
630 * exec.h (build_section_table): Return a target_section_table.
631 * exec.c (exec_file_attach): Update.
632 (build_section_table): Return a target_section_table.
633 * corelow.c (core_target::core_target): Update.
634 * bfd-target.c (target_bfd::target_bfd): Update.
635
bb2a6777
TT
6362020-10-12 Tom Tromey <tom@tromey.com>
637
638 * target.c (target_section_by_addr, memory_xfer_partial_1):
639 Update.
640 * target-section.h (struct target_section_table): Use
641 std::vector.
642 * symfile.h (build_section_addr_info_from_section_table): Take a
643 target_section_table.
644 * symfile.c (build_section_addr_info_from_section_table): Take a
645 target_section_table.
646 * solist.h (struct so_list) <sections>: Change type.
647 <sections_end>: Remove.
648 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
649 (solib_contains_address_p): Update.
650 * solib-svr4.c (scan_dyntag): Update.
651 * solib-dsbt.c (scan_dyntag): Update.
652 * remote.c (remote_target::remote_xfer_live_readonly_partial):
653 Update.
654 * record-full.c (record_full_core_start, record_full_core_end):
655 Remove.
656 (record_full_core_sections): New global.
657 (record_full_core_open_1, record_full_core_target::xfer_partial):
658 Update.
659 * exec.h (build_section_table, section_table_xfer_memory_partial)
660 (add_target_sections): Take a target_section_table.
661 * exec.c (exec_file_attach, clear_section_table): Update.
662 (resize_section_table): Remove.
663 (build_section_table, add_target_sections): Take a
664 target_section_table.
665 (add_target_sections_of_objfile, remove_target_sections)
666 (exec_on_vfork): Update.
667 (section_table_available_memory): Take a target_section_table.
668 (section_table_read_available_memory): Update.
669 (section_table_xfer_memory_partial): Take a target_section_table.
670 (print_section_info, set_section_command)
671 (exec_set_section_address, exec_target::has_memory): Update.
672 * corelow.c (class core_target) <m_core_section_table,
673 m_core_file_mappings>: Remove braces.
674 <~core_target>: Remove.
675 (core_target::core_target): Update.
676 (core_target::~core_target): Remove.
677 (core_target::build_file_mappings)
678 (core_target::xfer_memory_via_mappings)
679 (core_target::xfer_partial, core_target::info_proc_mappings):
680 Update.
681 * bfd-target.c (target_bfd::xfer_partial): Update.
682 (target_bfd::target_bfd): Update.
683 (target_bfd::~target_bfd): Remove.
684
7b466b10
TT
6852020-10-12 Tom Tromey <tom@tromey.com>
686
687 * target.h (struct target_section, struct target_section_table):
688 Move to target-section.h.
689 * target-section.h: New file.
690
87a37e5e
PA
6912020-10-12 Pedro Alves <pedro@palves.net>
692
693 PR exp/26602
694 * valops.c (struct struct_field_searcher): New.
695 (update_search_result): Rename to ...
696 (struct_field_searcher::update_result): ... this. Simplify
697 prototype. Record all found fields.
698 (do_search_struct_field): Rename to ...
699 (struct_field_searcher::search): ... this. Simplify prototype.
700 Maintain stack of visited baseclass path. Call update_result for
701 fields too. Keep searching fields in baseclasses instead of
702 stopping at the first found field.
703 (search_struct_field): Use struct_field_searcher. When looking
704 for fields, report ambiguous access attempts.
705
9370fd51
AB
7062020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * frame.c (inside_main_func): Check full symbols as well as
709 minimal symbols.
710
59c8a30b
JB
7112020-10-09 Joel Brobecker <brobecker@adacore.com>
712
713 * ada-lang.c (advance_wild_match): Rewrite the function's
714 description. Change the type of target0, t0 and t1 to char.
715
7c184d33
TT
7162020-10-09 Tom Tromey <tromey@adacore.com>
717
718 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
719
5c4258f4
TT
7202020-10-09 Tom Tromey <tromey@adacore.com>
721
722 * ada-lang.h (ada_encode): Return std::string.
723 * ada-lang.c (ada_encode_1): Return std::string.
724 (ada_encode): Likewise.
725 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
726 Update.
727 * ada-exp.y (block_lookup, write_var_or_type): Update.
728
3d87245c
HD
7292020-10-09 Hannes Domani <ssbssa@yahoo.de>
730
731 PR exp/26714
732 * printcmd.c (print_formatted): Handle void results as
733 unformatted prints.
734
bbb826f5
AB
7352020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * arch/aarch32.c (aarch32_create_target_description): Release the
738 target_desc_up as late as possible.
739 * arch/aarch64.c (aarch64_create_target_description): Likewise.
740 * arch/amd64.c (amd64_create_target_description): Likewise.
741 * arch/arc.c (arc_create_target_description): Return a
742 target_desc_up, don't release it.
743 * arch/arc.h (arc_create_target_description): Update declaration.
744 (arc_lookup_target_description): Move target_desc_up into the
745 cache, and return a borrowed pointer.
746 * arch/arm.c (arm_create_target_description): Release the
747 target_desc_up as late as possible.
748 * arch/i386.c (i386_create_target_description): Likewise.
749 * arch/riscv.h (riscv_create_target_description): Update
750 declaration to match definition.
751 * arch/tic6x.c (tic6x_create_target_description): Release the
752 target_desc_up as late as possible.
753
361cb219
AB
7542020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
757 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
758
f5c4b229
JV
7592020-10-09 Jan Vrany <jan.vrany@labware.com>
760
761 * source.c (directory_command): Notify observers that "directories"
762 parameter has changed.
763
b2701685
TT
7642020-10-08 Tom Tromey <tom@tromey.com>
765
766 * cli/cli-cmds.c (print_disassembly): Style function name and
767 addresses. Add _() wrappers.
768
ada508b6
SV
7692020-10-08 Shahab Vahedi <shahab@synopsys.com>
770
771 * NEWS: Mention ARC support in GDBserver.
772
51a948fd
AB
7732020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * arch/aarch32.c (aarch32_create_target_description): Release
776 unique_ptr returned from allocate_target_description.
777 * arch/aarch64.c (aarch64_create_target_description): Likewise.
778 * arch/amd64.c (amd64_create_target_description): Likewise.
779 * arch/arc.c (arc_create_target_description): Likewise.
780 * arch/arm.c (arm_create_target_description): Likewise.
781 * arch/i386.c (i386_create_target_description): Likewise.
782 * arch/riscv.c (riscv_create_target_description): Update return
783 type. Handle allocate_target_description returning a unique_ptr.
784 (riscv_lookup_target_description): Update to handle unique_ptr.
785 * arch/tic6x.c (tic6x_create_target_description): Release
786 unique_ptr returned from allocate_target_description.
787 * features/microblaze-with-stack-protect.c: Regenerate.
788 * features/microblaze.c: Regenerate.
789 * features/mips-dsp-linux.c: Regenerate.
790 * features/mips-linux.c: Regenerate.
791 * features/mips64-dsp-linux.c: Regenerate.
792 * features/mips64-linux.c: Regenerate.
793 * features/nds32.c: Regenerate.
794 * features/nios2.c: Regenerate.
795 * features/or1k.c: Regenerate.
796 * features/rs6000/powerpc-32.c: Regenerate.
797 * features/rs6000/powerpc-32l.c: Regenerate.
798 * features/rs6000/powerpc-403.c: Regenerate.
799 * features/rs6000/powerpc-403gc.c: Regenerate.
800 * features/rs6000/powerpc-405.c: Regenerate.
801 * features/rs6000/powerpc-505.c: Regenerate.
802 * features/rs6000/powerpc-601.c: Regenerate.
803 * features/rs6000/powerpc-602.c: Regenerate.
804 * features/rs6000/powerpc-603.c: Regenerate.
805 * features/rs6000/powerpc-604.c: Regenerate.
806 * features/rs6000/powerpc-64.c: Regenerate.
807 * features/rs6000/powerpc-64l.c: Regenerate.
808 * features/rs6000/powerpc-7400.c: Regenerate.
809 * features/rs6000/powerpc-750.c: Regenerate.
810 * features/rs6000/powerpc-860.c: Regenerate.
811 * features/rs6000/powerpc-altivec32.c: Regenerate.
812 * features/rs6000/powerpc-altivec32l.c: Regenerate.
813 * features/rs6000/powerpc-altivec64.c: Regenerate.
814 * features/rs6000/powerpc-altivec64l.c: Regenerate.
815 * features/rs6000/powerpc-e500.c: Regenerate.
816 * features/rs6000/powerpc-e500l.c: Regenerate.
817 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
818 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
819 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
820 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
821 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
822 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
823 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
824 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
825 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
826 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
827 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
828 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
829 * features/rs6000/powerpc-vsx32.c: Regenerate.
830 * features/rs6000/powerpc-vsx32l.c: Regenerate.
831 * features/rs6000/powerpc-vsx64.c: Regenerate.
832 * features/rs6000/powerpc-vsx64l.c: Regenerate.
833 * features/rs6000/rs6000.c: Regenerate.
834 * features/rx.c: Regenerate.
835 * features/s390-gs-linux64.c: Regenerate.
836 * features/s390-linux32.c: Regenerate.
837 * features/s390-linux32v1.c: Regenerate.
838 * features/s390-linux32v2.c: Regenerate.
839 * features/s390-linux64.c: Regenerate.
840 * features/s390-linux64v1.c: Regenerate.
841 * features/s390-linux64v2.c: Regenerate.
842 * features/s390-te-linux64.c: Regenerate.
843 * features/s390-tevx-linux64.c: Regenerate.
844 * features/s390-vx-linux64.c: Regenerate.
845 * features/s390x-gs-linux64.c: Regenerate.
846 * features/s390x-linux64.c: Regenerate.
847 * features/s390x-linux64v1.c: Regenerate.
848 * features/s390x-linux64v2.c: Regenerate.
849 * features/s390x-te-linux64.c: Regenerate.
850 * features/s390x-tevx-linux64.c: Regenerate.
851 * features/s390x-vx-linux64.c: Regenerate.
852 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
853 from allocate_target_description.
854 * target-descriptions.c (allocate_target_description): Update
855 return type.
856 (print_c_tdesc::visit_pre): Release unique_ptr returned from
857 allocate_target_description.
858
485c47e5
TT
8592020-10-07 Tom Tromey <tromey@adacore.com>
860
861 * unittests/search-memory-selftests.c: New file.
862 * Makefile.in (SELFTESTS_SRCS): Add
863 unittests/search-memory-selftests.c.
864
3a135a91
TT
8652020-10-07 Tom Tromey <tromey@adacore.com>
866
867 PR gdb/16930:
868 * findcmd.c (_initialize_mem_search): Mention that the range is
869 inclusive.
870
4a72de73
TT
8712020-10-07 Tom Tromey <tromey@adacore.com>
872
873 * target.h (simple_search_memory): Don't declare.
874 * target.c (simple_search_memory): Move to gdbsupport.
875 (default_search_memory): Update.
876 * remote.c (remote_target::search_memory): Update.
877
a038ffd8
SM
8782020-10-07 Simon Marchi <simon.marchi@efficios.com>
879
880 * Makefile.in (COMPILE): Add CXXFLAGS.
881 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
882 (check-headers): Add CXXFLAGS.
883
cc463201
AK
8842020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
885
886 * arc-linux-tdep.h: New file.
887 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
888 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
889 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
890 arc_linux_gregset, arc_linux_v2_regset,
891 arc_linux_iterate_over_regset_sections,
892 arc_linux_core_read_description): Implement.
893 (arc_linux_init_osabi): Set iterate_over_regset_sections.
894 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
895 (arc_gdbarch_features_create): Add.
896 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
897
e4bd363f
SV
8982020-10-07 Shahab Vahedi <shahab@synopsys.com>
899
900 * arch/arc.h: Rename "arc_gdbarch_features" to
901 "arc_arch_features".
902 * arc-tdep.h: Likewise.
903 * arc-tdep.c: Likewise.
904
b68bef99
TBA
9052020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 * infcmd.c (attach_command): Remove the redundant call to
908 `clear_proceed_status`.
909
4641551a
KR
9102020-10-07 Kamil Rytarowski <n54@gmx.com>
911
912 * nat/netbsd-nat.c (write_memory, read_memory): Update.
913
91e5e8db
KR
9142020-10-07 Kamil Rytarowski <n54@gmx.com>
915
916 * nat/netbsd-nat.c (write_memory, read_memory): Add.
917 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
918 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
919
64c03bdb
SM
9202020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
923 (_initialize_break_catch_sig): Don't allocate array.
924
31a8f60f
AB
9252020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * symtab.c (find_pc_line): Return unmapped addresses when the
928 requested address is also unmapped.
929
9e6dbd8b
SM
9302020-10-05 Simon Marchi <simon.marchi@efficios.com>
931
932 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
933 tui/tui-out.h.
934
a1d217e8
SM
9352020-10-05 Simon Marchi <simon.marchi@efficios.com>
936
937 * amd64-windows-tdep.c (amd64_windows_return_value): Use
938 type::is_vector instead of TYPE_VECTOR.
939
7d144117
SM
9402020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * auto-load.c (auto_load_objfile_script_1): Don't use
943 debugfile_holder as temporary variable when stripping drive
944 letter.
945
cd096ec8
HD
9462020-10-05 Hannes Domani <ssbssa@yahoo.de>
947
948 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
949 Add TYPE_CODE_COMPLEX.
950 (amd64_windows_return_value): Fix types returned via XMM0.
951
b58e7f72
AH
9522020-10-05 Alan Hayward <alan.hayward@arm.com>
953
954 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
955 AArch64/ARM maintainers.
956
8d378f27
SM
9572020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * NEWS: Mention set/show debug event-loop.
960
d5519913
TT
9612020-10-02 Tom Tromey <tromey@adacore.com>
962
963 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
964 REG_EXTENDED.
965
18b67edc
SM
9662020-10-02 Simon Marchi <simon.marchi@efficios.com>
967
968 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
969 * procfs.c (procfs_inferior_created): Remove.
970 (_initialize_procfs): Don't register procfs_inferior_created.
971
6b01403b
SM
9722020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * async-event.c (invoke_async_signal_handlers): Add debug
975 print.
976 (check_async_event_handlers): Likewise.
977 * event-top.c (show_debug_event_loop): New function.
978 (_initialize_event_top): Register "set debug event-loop"
979 setting.
980
ba988419
SM
9812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
984 * debug.h: Remove.
985 * infrun.c: Include gdbsupport/common-debug.h.
986 * linux-nat.c: Likewise.
987
db20ebdf
SM
9882020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * async-event.h (create_async_signal_handler): Add name
991 parameter.
992 (create_async_event_handler): Likewise.
993 * async-event.c (struct async_signal_handler) <name>: New field.
994 (struct async_event_handler) <name>: New field.
995 (create_async_signal_handler): Assign name.
996 (create_async_event_handler): Assign name.
997 * event-top.c (async_init_signals): Pass name when creating
998 handler.
999 * infrun.c (_initialize_infrun): Likewise.
1000 * record-btrace.c (record_btrace_push_target): Likewise.
1001 * record-full.c (record_full_open): Likewise.
1002 * remote-notif.c (remote_notif_state_allocate): Likewise.
1003 * remote.c (remote_target::open_1): Likewise.
1004 * tui/tui-win.c (tui_initialize_win): Likewise.
1005
2554f6f5
SM
10062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * async-event.c (initialize_async_signal_handlers): Pass name to
1009 add_file_handler
1010 * event-top.c (ui_register_input_event_handler): Likewise.
1011 * linux-nat.c (linux_nat_target::async): Likewise.
1012 * run-on-main-thread.c (_initialize_run_on_main_thread):
1013 Likewise
1014 * ser-base.c (reschedule): Likewise.
1015 (ser_base_async): Likewise.
1016 * tui/tui-io.c: Likewise.
1017 * top.h (struct ui) <num>: New field.
1018 * top.c (highest_ui_num): New variable.
1019 (ui::ui): Initialize num.
1020
a7aba266
SM
10212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * observable.h <inferior_created>: Remove parameters. Update all
1024 listeners.
1025 * inferior.h (post_create_inferior): Remove target parameter.
1026 Update all callers.
1027
048fde1e 10282020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1029
1030 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1031 and DW_MACRO_undef_strx.
1032 (dwarf_decode_macros): Likewise
1033 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1034 which is the value of DW_AT_str_offsets_base.
1035 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1036 str_offsets_base.
1037
064280be
KR
10382020-10-01 Kamil Rytarowski <n54@gmx.com>
1039
1040 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1041
6ff33035
KR
10422020-10-01 Kamil Rytarowski <n54@gmx.com>
1043
1044 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1045 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1046
1eb6eb79
KR
10472020-10-01 Kamil Rytarowski <n54@gmx.com>
1048
1049 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1050
95eb9e54
TV
10512020-09-30 Tom de Vries <tdevries@suse.de>
1052
1053 PR symtab/26683
1054 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1055
cae21f8e
TT
10562020-09-30 Tom Tromey <tromey@adacore.com>
1057
1058 * dwarf2/read.c (handle_variant): Use constant_value.
1059
529908cb
TT
10602020-09-29 Tom Tromey <tom@tromey.com>
1061
1062 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1063 (read_file_scope, dwarf2_get_pc_bounds)
1064 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1065 (read_structure_type, handle_struct_member_die)
1066 (read_enumeration_type, read_array_type, read_set_type)
1067 (read_tag_pointer_type, read_tag_reference_type)
1068 (read_subroutine_type, read_base_type, read_subrange_type)
1069 (read_full_die_1, partial_die_info::read)
1070 (partial_die_info::read, by, new_symbol)
1071 (dwarf2_const_value_data, dwarf2_const_value_attr)
1072 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1073 (prepare_one_comp_unit): Update.
1074 * dwarf2/attribute.h (DW_UNSND): Remove.
1075
c45bc3f8
TT
10762020-09-29 Tom Tromey <tom@tromey.com>
1077
1078 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1079 (read_subroutine_type, partial_die_info::read)
1080 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1081 (dwarf2_add_member_fn): Update.
1082 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1083 * dwarf2/attribute.c (attribute::as_boolean): New method.
1084
23dca5c3
TT
10852020-09-29 Tom Tromey <tom@tromey.com>
1086
1087 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1088 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1089 method.
1090 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1091
52c14d11
TT
10922020-09-29 Tom Tromey <tom@tromey.com>
1093
1094 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1095 the attribute's form.
1096
e8e5c158
TT
10972020-09-29 Tom Tromey <tom@tromey.com>
1098
1099 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1100 (dwarf2_add_member_fn): Update.
1101 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1102 * dwarf2/attribute.c (attribute::defaulted): New method, from
1103 is_valid_DW_AT_defaulted.
1104
d4df075e
TT
11052020-09-29 Tom Tromey <tom@tromey.com>
1106
1107 * dwarf2/read.c (dw2_get_file_names_reader)
1108 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1109 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1110 (dwarf2_symbol_mark_computed): Use as_unsigned.
1111 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1112 method.
1113 <form_is_section_offset>: Update comment.
1114
bf23a268
TT
11152020-09-29 Tom Tromey <tom@tromey.com>
1116
1117 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1118 dwarf2_default_access_attribute. Look up attribute.
1119 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1120 Update.
1121
7a5f294d
TT
11222020-09-29 Tom Tromey <tom@tromey.com>
1123
1124 * dwarf2/read.c (skip_one_die): Update.
1125 (read_full_die_1): Change how reprocessing is done.
1126 (partial_die_info::read): Update.
1127 (read_attribute_value): Remove need_reprocess parameter.
1128 (read_attribute): Likewise.
1129 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1130 New method.
1131
36d378cf
TT
11322020-09-29 Tom Tromey <tom@tromey.com>
1133
1134 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1135 (dwarf2_const_value_attr, dump_die_shallow)
1136 (dwarf2_fetch_constant_bytes): Update.
1137 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1138 comment.
1139 <set_address>: New method.
1140 (DW_ADDR): Remove.
1141 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1142 (attribute::as_string, attribute::as_address): Add assert.
1143
fe56917a
TT
11442020-09-29 Tom Tromey <tom@tromey.com>
1145
1146 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1147 (read_attribute_reprocess, read_attribute_value): Update.
1148 (read_attribute): Clear requires_reprocessing.
1149 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1150 form_requires_reprocessing>: New methods.
1151 <string_init>: Clear requires_reprocessing.
1152 <set_unsigned_reprocess>: New method.
1153 <name>: Shrink by one bit.
1154 <requires_reprocessing>: New member.
1155 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1156 method.
1157
414ad644
TT
11582020-09-29 Tom Tromey <tom@tromey.com>
1159
1160 * dwarf2/read.c (read_attribute_value): Update.
1161 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1162 set_unsigned>: New methods.
1163 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1164
1bc397c5
TT
11652020-09-29 Tom Tromey <tom@tromey.com>
1166
1167 * dwarf2/read.c (get_alignment, read_array_order)
1168 (read_attribute_value, dwarf2_const_value_attr)
1169 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1170 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1171 New methods.
1172 (DW_SND): Remove.
1173
630ed6b9
TT
11742020-09-29 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1177 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1178 Update.
1179 * dwarf2/attribute.h (struct attribute) <as_signature,
1180 set_signature>: New methods.
1181 (DW_SIGNATURE): Remove.
1182
9d2246fc
TT
11832020-09-29 Tom Tromey <tom@tromey.com>
1184
1185 * dwarf2/read.c (read_call_site_scope)
1186 (handle_data_member_location, dwarf2_add_member_fn)
1187 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1188 (partial_die_info::read, read_attribute_value)
1189 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1190 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1191 (dwarf2_symbol_mark_computed): Update.
1192 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1193 methods.
1194 (DW_BLOCK): Remove.
1195 * dwarf2/attribute.c (attribute::form_is_block): Add
1196 DW_FORM_data16.
1197
c6481205
TT
11982020-09-29 Tom Tromey <tom@tromey.com>
1199
1200 * dwarf2/read.c (read_cutu_die_from_dwo)
1201 (read_attribute_reprocess, read_attribute_value, read_attribute)
1202 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1203 (dwarf2_fetch_constant_bytes): Update.
1204 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1205 <set_string_noncanonical, set_string_canonical>: New methods.
1206 <string_is_canonical>: Update comment.
1207 <canonical_string_p>: Add assert.
1208 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1209 * dwarf2/attribute.c (attribute::form_is_string): New method.
1210 (attribute::string): Use it.
1211
3b64bf15
TT
12122020-09-29 Tom Tromey <tom@tromey.com>
1213
1214 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1215 (dump_die_shallow): Use canonical_string_p.
1216 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1217 method.
1218
2c830f54
TT
12192020-09-29 Tom Tromey <tom@tromey.com>
1220
1221 * dwarf2/read.c (partial_die_info::read)
1222 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1223 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1224 attribute::as_string.
1225
6c412691
TT
12262020-09-29 Tom Tromey <tom@tromey.com>
1227
1228 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1229 DW_ADDR.
1230 (attribute::string): Don't use DW_STRING.
1231 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1232 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1233
95f982e5
TT
12342020-09-29 Tom Tromey <tom@tromey.com>
1235
1236 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1237 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1238 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1239 * dwarf2/attribute.h (struct attribute): Rename methods.
1240 * dwarf2/attribute.c (attribute::as_address): Rename from
1241 value_as_address.
1242 (attribute::as_string): Rename from value_as_string.
1243
f800b00e
TT
12442020-09-29 Tom Tromey <tom@tromey.com>
1245
1246 * dwarf2/read.c (partial_die_info::read) <case
1247 DW_AT_linkage_name>: Use value_as_string.
1248 (dwarf2_string_attr): Use value_as_string.
1249 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1250 method.
1251 * dwarf2/attribute.c (attribute::value_as_string): New method.
1252
de38d64a
PA
12532020-09-29 Pedro Alves <pedro@palves.net>
1254
1255 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1256 defined before using '#pragma GCC diagnostic' instead of checking
1257 __clang__.
1258
9aed480c
TT
12592020-09-28 Tom Tromey <tom@tromey.com>
1260
1261 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1262 (handle_signal_stop): Update.
1263 * procfs.c (procfs_target::insert_watchpoint): Update.
1264 * target.h (target_have_steppable_watchpoint): Now a function.
1265
8a3ecb79
TT
12662020-09-28 Tom Tromey <tom@tromey.com>
1267
1268 * infrun.c (set_schedlock_func): Update.
1269 * target.h (target_can_lock_scheduler): Now a function.
1270
55f6301a
TT
12712020-09-28 Tom Tromey <tom@tromey.com>
1272
1273 * inferior.h (class inferior) <has_execution>: Update.
1274 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1275 * valops.c (find_function_in_inferior)
1276 (value_allocate_space_in_inferior): Update.
1277 * top.c (kill_or_detach): Update.
1278 * target.c (target_preopen, set_target_permissions): Update.
1279 (target_has_execution_current): Remove.
1280 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1281 Update.
1282 * solib.c (update_solib_list, reload_shared_libraries): Update.
1283 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1284 * solib-dsbt.c (enable_break): Update.
1285 * score-tdep.c (score7_fetch_inst): Update.
1286 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1287 Update.
1288 * remote.c (remote_target::start_remote)
1289 (remote_target::remote_check_symbols, remote_target::open_1)
1290 (remote_target::remote_detach_1, remote_target::verify_memory)
1291 (remote_target::xfer_partial, remote_target::read_description)
1292 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1293 * record-full.c (record_full_open_1): Update.
1294 * record-btrace.c (record_btrace_target_open): Update.
1295 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1296 (value_nsstring): Update.
1297 * linux-thread-db.c (add_thread_db_info)
1298 (thread_db_find_new_threads_silently, check_thread_db_callback)
1299 (try_thread_db_load_1, record_thread): Update.
1300 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1301 Update.
1302 * linux-fork.c (checkpoint_command): Update.
1303 * infrun.c (set_non_stop, set_observer_mode)
1304 (check_multi_target_resumption, for_each_just_stopped_thread)
1305 (maybe_remove_breakpoints, normal_stop)
1306 (class infcall_suspend_state): Update.
1307 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1308 (info_program_command, attach_command): Update.
1309 * infcall.c (call_function_by_hand_dummy): Update.
1310 * inf-loop.c (inferior_event_handler): Update.
1311 * gcore.c (gcore_command, derive_heap_segment): Update.
1312 * exec.c (exec_file_command): Update.
1313 * eval.c (evaluate_subexp): Update.
1314 * compile/compile.c (compile_to_object): Update.
1315 * cli/cli-dump.c (restore_command): Update.
1316 * breakpoint.c (update_watchpoint)
1317 (update_inserted_breakpoint_locations)
1318 (insert_breakpoint_locations, get_bpstat_thread): Update.
1319 * target.h (target_has_execution): Remove macro.
1320 (target_has_execution_current): Don't declare.
1321 (target_has_execution): Rename from target_has_execution_1. Add
1322 argument default.
1323
05374cfd
TT
13242020-09-28 Tom Tromey <tom@tromey.com>
1325
1326 * mi/mi-main.c (exec_reverse_continue)
1327 (mi_cmd_list_target_features): Update.
1328 * infrun.c (set_exec_direction_func): Update.
1329 * target.c (default_execution_direction): Update.
1330 * reverse.c (exec_reverse_once): Update.
1331 * target.h (target_can_execute_reverse): Now a function.
1332
9dccd06e
TT
13332020-09-28 Tom Tromey <tom@tromey.com>
1334
1335 * tui/tui-regs.c (tui_get_register)
1336 (tui_data_window::show_registers): Update.
1337 * thread.c (scoped_restore_current_thread::restore)
1338 (scoped_restore_current_thread::scoped_restore_current_thread):
1339 Update.
1340 * regcache-dump.c (regcache_print): Update.
1341 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1342 Update.
1343 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1344 * mep-tdep.c (current_me_module, current_options): Update.
1345 * linux-thread-db.c (thread_db_load): Update.
1346 * infcmd.c (registers_info, info_vector_command)
1347 (info_float_command): Update.
1348 * ia64-tdep.c (ia64_frame_prev_register)
1349 (ia64_sigtramp_frame_prev_register): Update.
1350 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1351 * gcore.c (derive_stack_segment): Update.
1352 * frame.c (get_current_frame, has_stack_frames): Update.
1353 * findvar.c (language_defn::read_var_value): Update.
1354 * arm-tdep.c (arm_pc_is_thumb): Update.
1355 * target.c (target_has_registers): Rename from
1356 target_has_registers_1.
1357 * target.h (target_has_registers): Remove macro.
1358 (target_has_registers): Rename from target_has_registers_1.
1359
841de120
TT
13602020-09-28 Tom Tromey <tom@tromey.com>
1361
1362 * windows-tdep.c (tlb_make_value): Update.
1363 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1364 * thread.c (scoped_restore_current_thread::restore)
1365 (scoped_restore_current_thread::scoped_restore_current_thread)
1366 (thread_command): Update.
1367 * stack.c (backtrace_command_1, frame_apply_level_command)
1368 (frame_apply_all_command, frame_apply_command): Update.
1369 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1370 Update.
1371 * gcore.c (derive_stack_segment): Update.
1372 * frame.c (get_current_frame, has_stack_frames): Update.
1373 * auxv.c (info_auxv_command): Update.
1374 * ada-tasks.c (ada_build_task_list): Update.
1375 * target.c (target_has_stack): Rename from target_has_stack_1.
1376 * target.h (target_has_stack): Remove macro.
1377 (target_has_stack): Rename from target_has_stack_1.
1378
a739972c
TT
13792020-09-28 Tom Tromey <tom@tromey.com>
1380
1381 * target.c (target_has_memory): Rename from target_has_memory_1.
1382 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1383 * thread.c (scoped_restore_current_thread::restore)
1384 (scoped_restore_current_thread::scoped_restore_current_thread):
1385 Update.
1386 * frame.c (get_current_frame, has_stack_frames): Update.
1387 * target.h (target_has_memory): Remove macro.
1388 (target_has_memory): Rename from target_has_memory_1.
1389
5b8a4776
TT
13902020-09-28 Tom Tromey <tom@tromey.com>
1391
1392 * target.c (target_has_all_memory_1): Remove.
1393 * target.h (target_has_all_memory): Remove define.
1394 (target_has_all_memory_1): Don't declare.
1395
bd356ec6
SM
13962020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * ser-base.c: Adjust comments formatting.
1399
2c72d5e5
TT
14002020-09-27 Tom Tromey <tom@tromey.com>
1401
1402 PR tui/25342:
1403 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1404
35a98237
TT
14052020-09-27 Tom Tromey <tom@tromey.com>
1406
1407 PR tui/25342:
1408 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1409
9e820dec
TT
14102020-09-27 Tom Tromey <tom@tromey.com>
1411
1412 * unittests/tui-selftests.c: Update.
1413 * tui/tui-winsource.h (struct tui_source_window_base)
1414 <extra_margin, show_line_number, refresh_pad>: New methods.
1415 <m_max_length, m_pad>: New members.
1416 (tui_copy_source_line): Update.
1417 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1418 first_col, line_width, ndigits parameters. Add length.
1419 (tui_source_window_base::show_source_line): Write to pad. Line
1420 number now 0-based.
1421 (tui_source_window_base::refresh_pad): New method.
1422 (tui_source_window_base::show_source_content): Write to pad. Call
1423 refresh_pad.
1424 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1425 not refill.
1426 (tui_source_window_base::update_exec_info): Call
1427 show_line_number.
1428 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1429 method.
1430 <m_digits>: New member.
1431 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1432 and m_max_length.
1433 (tui_source_window::show_line_number): New method.
1434 * tui/tui-io.h (tui_puts): Fix comment.
1435 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1436 m_max_length.
1437
c15c15c8
TT
14382020-09-27 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-winsource.c
1441 (tui_source_window_base::set_is_exec_point_at): Don't call
1442 show_source_line.
1443
149830c1
TT
14442020-09-27 Tom Tromey <tom@tromey.com>
1445
1446 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1447 method.
1448 <erase>: Update.
1449 <cursor_x, cursor_y>: Remove.
1450 <m_inner_window>: New member.
1451 (tui_py_window::rerender): Create inner window.
1452 (tui_py_window::output): Write to inner window.
1453
8f9929bb
GR
14542020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1455
1456 PR python/26586
1457 * cli/cli-script.c (execute_control_commands): don't set
1458 instream to nullptr here as this breaks the from_tty argument
1459 to gdb.execute in Python.
1460 (execute_user_command): set instream to nullptr here instead.
1461
956bdb59
SM
14622020-09-25 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * infrun.h (infrun_debug_printf): Fix formatting.
1465 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1466
3b93626b
SJ
14672020-09-25 Saagar Jha <saagar@saagarjha.com>
1468
1469 * compile/compile-object-load.h (struct munmap_list): Add
1470 explicitly-defined move constructor.
1471
b551a89f
TT
14722020-09-24 Tom Tromey <tromey@adacore.com>
1473
1474 PR tui/26638:
1475 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1476 method.
1477 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1478 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1479 (tui_prev_win): Rewrite.
1480
99bb393f
HD
14812020-09-23 Hannes Domani <ssbssa@yahoo.de>
1482
1483 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1484 in WOW64 processes as SIGINT.
1485 * nat/windows-nat.h: Make wow64_process a shared variable.
1486 * windows-nat.c: Remove static wow64_process variable.
1487
20a5fcbd
TT
14882020-09-23 Tom Tromey <tom@tromey.com>
1489
1490 PR symtab/25470:
1491 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1492 offset and bit size.
1493 * printcmd.c (print_scalar_formatted): Handle zero-length
1494 integer.
1495 (print_scalar_formatted): Use bit_size_differs_p.
1496 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1497 constant.
1498 (union type_specific): <int_stuff>: New member.
1499 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1500 methods.
1501 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1502 TYPE_SPECIFIC_FIELD.
1503 (recursive_dump_type, copy_type_recursive): Update.
1504 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1505 DW_AT_data_bit_offset.
1506
bac51ab7
TT
15072020-09-23 Tom Tromey <tom@tromey.com>
1508
1509 * utils.h (class gdb_argv): Add move operators.
1510 <append>: New methods.
1511 * compile/compile.c (build_argc_argv): Remove.
1512 (compile_args_argc): Remove.
1513 (compile_args_argv): Change type.
1514 (set_compile_args): Simplify.
1515 (append_args): Remove.
1516 (filter_args): Remove argcp parameter.
1517 (get_args): Return gdb_argv. Simplify.
1518 (compile_to_object): Update.
1519
92677124
TT
15202020-09-23 Tom Tromey <tom@tromey.com>
1521
1522 * compile/compile-object-run.c (do_module_cleanup)
1523 <~do_module_cleanup> :Remove.
1524 (do_module_cleanup): Update.
1525 * compile/compile-object-load.h (struct munmap_list): Add move
1526 assignment operator.
1527 <source_file>: Now a std::string.
1528 <munmap_list>: Rename. No longer a pointer.
1529 * compile/compile-object-load.c (struct setup_sections_data): Add
1530 constructor.
1531 <setup_one_section>: Declare.
1532 <munmap_list>: Move earlier.
1533 <m_bfd>: New member.
1534 <m_last_size, m_last_section_first, m_last_prot,
1535 m_last_max_alignment>: Rename, add initializers where needed.
1536 (setup_sections_data::setup_one_section): Rename from
1537 setup_sections. Update.
1538 (compile_object_load): Update. Don't use bfd_map_over_sections.
1539
e616f60a
TT
15402020-09-23 Tom Tromey <tom@tromey.com>
1541
1542 * compile/compile-object-run.c (struct do_module_cleanup): Add
1543 parameters to constructor. Update destructor.
1544 <source_file, scope, scope_data, out_value_type, out_value_addr,
1545 munmap_list_head, objfile_name_string>: Remove.
1546 <module>: New member.
1547 (do_module_cleanup): Update.
1548 (compile_object_run): Update.
1549
e947a848
TT
15502020-09-23 Tom Tromey <tom@tromey.com>
1551
1552 * compile/compile.c (eval_compile_command): Update.
1553 * compile/compile-object-run.h (compile_object_run): Take a
1554 compile_module_up.
1555 * compile/compile-object-run.c (compile_object_run): Take a
1556 compile_module_up.
1557 * compile/compile-object-load.h (struct compile_module): Add
1558 constructor, destructor.
1559 (compile_module_up): New typedef.
1560 (compile_object_load): Return compile_object_up.
1561 * compile/compile-object-load.c (compile_object_load): Return
1562 compile_module_up.
1563
0dbf6ee6
TT
15642020-09-23 Tom Tromey <tom@tromey.com>
1565
1566 * compile/compile-object-run.c (struct do_module_cleanup): Add
1567 constructor, destructor.
1568 <objfile_name_string>: Don't use struct hack.
1569 (do_module_cleanup): Use delete.
1570 (compile_object_run): Use new.
1571
ebe824f5
TT
15722020-09-23 Tom Tromey <tom@tromey.com>
1573
1574 * compile/compile-cplus-types.c
1575 (compile_cplus_convert_struct_or_union): Use std::vector.
1576 (compile_cplus_convert_func): Likewise.
1577 * compile/compile-c-types.c (convert_func): Use std::vector.
1578
5dd918d9
TT
15792020-09-21 Tom Tromey <tromey@adacore.com>
1580
1581 * sparc-tdep.c (sparc32_skip_prologue): Use
1582 skip_prologue_using_sal.
1583
5486c517
TT
15842020-09-19 Tom Tromey <tom@tromey.com>
1585
1586 * symfile.c (add_section_size_callback): Remove.
1587 (load_one_section): Rename from load_section_callback. Change
1588 parameters.
1589 (generic_load): Use foreach.
1590
8a6bb1d1
TT
15912020-09-19 Tom Tromey <tom@tromey.com>
1592
1593 * exec.c (add_to_section_table): Remove.
1594 (build_section_table): Use foreach.
1595
08f93a1a
TT
15962020-09-19 Tom Tromey <tom@tromey.com>
1597
1598 * elfread.c (elf_locate_sections): Change parameters.
1599 (elf_symfile_read): Use foreach.
1600
03cd72b8
TT
16012020-09-19 Tom Tromey <tom@tromey.com>
1602
1603 * cli/cli-dump.c (struct callback_data): Remove.
1604 (restore_one_section): Rename from restore_section_callback.
1605 Change parameters.
1606 (restore_binary_file): Change parameters.
1607 (restore_command): Use foreach.
1608
f4f2b85f
TT
16092020-09-19 Tom Tromey <tom@tromey.com>
1610
1611 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1612 (gcore_copy_callback): Likewise.
1613 (gcore_memory_sections): Use foreach.
1614
b35c1d1c
TT
16152020-09-19 Tom Tromey <tom@tromey.com>
1616
1617 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1618 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1619 parameters.
1620 (generic_elf_osabi_sniffer): Use foreach.
1621 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1622 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1623
5bb6e9dd
TT
16242020-09-19 Tom Tromey <tom@tromey.com>
1625
1626 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1627 (dwarf2_get_dwz_file): Use foreach.
1628 (dwarf2_locate_dwo_sections): Change parameters.
1629 (open_and_init_dwo_file): Use foreach.
1630 (dwarf2_locate_common_dwp_sections): Change parameters.
1631 (open_and_init_dwp_file): Use foreach.
1632
ad7277da
TT
16332020-09-19 Tom Tromey <tom@tromey.com>
1634
1635 * symfile.h: (find_lowest_section): Don't declare.
1636 * symfile.c (find_lowest_section): Now static. Change
1637 parameters.
1638 (struct place_section_arg): Remove.
1639 (place_section): Change parameters.
1640 (addr_info_make_relative): Use foreach.
1641 (symfile_dummy_outputs): Remove.
1642 (default_symfile_relocate): Use foreach.
1643
cb814f2e
TT
16442020-09-19 Tom Tromey <tom@tromey.com>
1645
1646 * objfiles.c (add_to_objfile_sections): Rename from
1647 add_to_objfile_sections_full.
1648 (add_to_objfile_sections): Remove.
1649 (build_objfile_section_table): Use foreach.
1650
3cabfd26
TT
16512020-09-19 Tom Tromey <tom@tromey.com>
1652
1653 * stap-probe.c (get_stap_base_address_1): Remove.
1654 (get_stap_base_address): Use foreach.
1655
1ce51eb5
TT
16562020-09-19 Tom Tromey <tom@tromey.com>
1657
1658 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1659 parameters.
1660 (gdb_bfd_close_or_warn): Use foreach.
1661
a190fabb
TT
16622020-09-19 Tom Tromey <tom@tromey.com>
1663
1664 * corelow.c (add_to_thread_list): Change parameters.
1665 (core_target_open): Use foreach.
1666
cafb0d81
TT
16672020-09-19 Tom Tromey <tom@tromey.com>
1668
1669 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1670 existing function.
1671
c8d5abea
AB
16722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1675 for arrays.
1676
6d816919
AB
16772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * eval.c: Remove 'f-lang.h' include.
1680 (value_f90_subarray): Moved to f-lang.c.
1681 (eval_call): Renamed to...
1682 (evaluate_subexp_do_call): ...this, is no longer static, header
1683 comment moved into header file.
1684 (evaluate_funcall): Update call to eval_call.
1685 (skip_undetermined_arglist): Moved to f-lang.c.
1686 (fortran_value_subarray): Likewise.
1687 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1688 moved to evaluate_subexp_f.
1689 (calc_f77_array_dims): Moved to f-lang.c
1690 * expprint.c (print_subexp_funcall): New function.
1691 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1692 moved to print_subexp_f, OP_FUNCALL uses new function.
1693 (dump_subexp_body_funcall): New function.
1694 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1695 moved to dump_subexp_f, OP_FUNCALL uses new function.
1696 * expression.h (evaluate_subexp_do_call): Declare.
1697 * f-lang.c (value_f90_subarray): Moved from eval.c.
1698 (skip_undetermined_arglist): Likewise.
1699 (calc_f77_array_dims): Likewise.
1700 (fortran_value_subarray): Likewise.
1701 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1702 (operator_length_f): Likewise.
1703 (print_subexp_f): Likewise.
1704 (dump_subexp_body_f): Likewise.
1705 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1706 declaration of this operation to here.
1707 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1708 support moved to operator_length_f.
1709 * parser-defs.h (dump_subexp_body_funcall): Declare.
1710 (print_subexp_funcall): Declare.
1711 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1712 fortran-operator.def.
1713
8c37706a
AB
17142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * eval.c (fortran_value_subarray): New function, content is taken
1717 from...
1718 (evaluate_subexp_standard): ...here, in two places. Now arrays
1719 and strings both call the new function.
1720 (calc_f77_array_dims): Add header comment, handle strings.
1721
14f9473c
VC
17222020-09-18 Victor Collod <vcollod@nvidia.com>
1723
1724 PR gdb/26635
1725 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1726 (i386_analyze_prologue): Call i386_skip_endbr.
1727
b60cea74
TT
17282020-09-18 Tom Tromey <tromey@adacore.com>
1729
1730 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1731 (windows_nat_target::wait): Update.
1732 * target/wait.h (enum target_wait_flag): New. Use
1733 DEF_ENUM_FLAGS_TYPE.
1734 * target/target.h (target_wait): Change type of options.
1735 * target.h (target_options_to_string, default_target_wait):
1736 Update.
1737 (struct target_ops) <wait>: Change type of options.
1738 * target.c (target_wait, default_target_wait, do_option): Change
1739 type of "options".
1740 (target_options_to_string): Likewise.
1741 * target-delegates.c: Rebuild.
1742 * target-debug.h (target_debug_print_target_wait_flags): Rename
1743 from target_debug_print_options.
1744 * sol-thread.c (class sol_thread_target) <wait>: Update.
1745 (sol_thread_target::wait): Update.
1746 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1747 (rs6000_nat_target::wait): Update.
1748 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1749 Update.
1750 (remote_target::wait_ns, remote_target::wait_as): Change type of
1751 "options".
1752 (remote_target::wait): Update.
1753 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1754 (gdbsim_target::wait): Update.
1755 * record-full.c (class record_full_base_target) <wait>: Update.
1756 (record_full_wait_1): Change type of "options".
1757 (record_full_base_target::wait): Update.
1758 * record-btrace.c (class record_btrace_target) <wait>: Update.
1759 (record_btrace_target::wait): Update.
1760 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1761 Update.
1762 (ravenscar_thread_target::wait): Update.
1763 * procfs.c (class procfs_target) <wait>: Update.
1764 (procfs_target::wait): Update.
1765 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1766 * obsd-nat.c (obsd_nat_target::wait): Update.
1767 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1768 (nto_procfs_target::wait): Update.
1769 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1770 * nbsd-nat.c (nbsd_wait): Change type of "options".
1771 (nbsd_nat_target::wait): Update.
1772 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1773 (thread_db_target::wait): Update.
1774 * linux-nat.h (class linux_nat_target) <wait>: Update.
1775 * linux-nat.c (linux_nat_target::wait): Update.
1776 (linux_nat_wait_1): Update.
1777 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1778 "options".
1779 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1780 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1781 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1782 (go32_nat_target::wait): Update.
1783 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1784 * gnu-nat.c (gnu_nat_target::wait): Update.
1785 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1786 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1787 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1788 * darwin-nat.c (darwin_nat_target::wait): Update.
1789 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1790 (bsd_uthread_target::wait): Update.
1791 * aix-thread.c (class aix_thread_target) <wait>: Update.
1792 (aix_thread_target::wait): Update.
1793
0295dde6
AB
17942020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * compile/compile-object-run.c (create_copied_type_recursive): New
1797 function.
1798 (compile_object_run): Use new function.
1799
d3483b43
JT
18002020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1801
1802 * NEWS: Mention x86_64 Cygwin core file support.
1803
e7d612ad
JT
18042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1805
1806 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1807 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1808
aff9d387
JT
18092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1810
62a5151b
JT
1811 * windows-tdep.h: Add prototypes.
1812 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1813 (i386_windows_core_pid_to_str): Move and rename ...
1814 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1815 (windows_core_pid_to_str): ... and here.
1816 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1817
18182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1819 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1820 (amd64_windows_init_abi_common): ... and register.
1821
7d155da3
JT
18222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1823
1824 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1825 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1826
e8ef12b9
PA
18272020-09-18 Pedro Alves <pedro@palves.net>
1828
1829 PR gdb/26631
1830 * thread.c (thread_find_command): Switch inferior before calling
1831 target methods.
1832
c1e1314d
TT
18332020-09-17 Tom Tromey <tromey@adacore.com>
1834
1835 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1836 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1837 (tdesc_arch_data_up): New typedef.
1838 (tdesc_use_registers, tdesc_data_alloc): Update.
1839 (tdesc_data_cleanup): Don't declare.
1840 * target-descriptions.c (tdesc_data_alloc): Return a
1841 tdesc_arch_data_up.
1842 (tdesc_arch_data_deleter::operator()): Rename from
1843 tdesc_data_cleanup. Change argument type.
1844 (tdesc_use_registers): Change early_data to an rvalue reference.
1845 (tdesc_use_registers): Don't use delete.
1846 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1847 * s390-tdep.c (s390_gdbarch_init): Update.
1848 * rx-tdep.c (rx_gdbarch_init): Update.
1849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1850 * riscv-tdep.c (riscv_gdbarch_init): Update.
1851 * or1k-tdep.c (or1k_gdbarch_init): Update.
1852 * nios2-tdep.c (nios2_gdbarch_init): Update.
1853 * nds32-tdep.c (nds32_gdbarch_init): Update.
1854 * mips-tdep.c (mips_gdbarch_init): Update.
1855 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1856 * m68k-tdep.c (m68k_gdbarch_init): Update.
1857 * i386-tdep.c (i386_gdbarch_init): Update.
1858 * arm-tdep.c (arm_gdbarch_init): Update.
1859 * arc-tdep.c (arc_tdesc_init): Update.
1860 (arc_gdbarch_init): Update.
1861 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1862
0363df3d
HD
18632020-09-17 Hannes Domani <ssbssa@yahoo.de>
1864
1865 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1866 for WOW64 processes.
1867
280a9412
TT
18682020-09-17 Tom Tromey <tom@tromey.com>
1869
1870 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1871
6108fd18
TT
18722020-09-17 Tom Tromey <tom@tromey.com>
1873
1874 * value.c (preserve_values): Update.
1875 * python/py-type.c (save_objfile_types): Update.
1876 * guile/scm-type.c (save_objfile_types): Update.
1877 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1878 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1879 * compile/compile-object-run.c (compile_object_run): Update.
1880
fa9b1164
TT
18812020-09-17 Tom Tromey <tom@tromey.com>
1882
1883 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1884 Remove.
1885 <m_table>: Now htab_up.
1886 * typeprint.c (typedef_hash_table::recursively_update)
1887 (typedef_hash_table::add_template_parameters)
1888 (typedef_hash_table::typedef_hash_table): Update.
1889 (typedef_hash_table::~typedef_hash_table): Remove.
1890 (typedef_hash_table::typedef_hash_table)
1891 (typedef_hash_table::find_global_typedef)
1892 (typedef_hash_table::find_typedef): Update.
1893
eb53f105
TT
18942020-09-17 Tom Tromey <tom@tromey.com>
1895
1896 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1897
7a8a5d47
TT
18982020-09-17 Tom Tromey <tom@tromey.com>
1899
1900 * linespec.c (class decode_compound_collector)
1901 <~decode_compound_collector>: Remove.
1902 <m_unique_syms>: Now htab_up.
1903 (decode_compound_collector::operator ()): Update.
1904 (class symtab_collector) <~symtab_collector>: Remove.
1905 <m_symtab_table>: Now htab_up.
1906 (symtab_collector::operator ()): Update.
1907
99032cfc
TT
19082020-09-17 Tom Tromey <tom@tromey.com>
1909
1910 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1911 (filename_seen_cache::clear): Update.
1912 (~filename_seen_cache): Remove.
1913 (filename_seen_cache::seen): Update.
1914 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1915 htab_up.
1916 <~filename_seen_cache>: Remove.
1917 <traverse>: Update.
1918
32580f6d
TT
19192020-09-17 Tom Tromey <tom@tromey.com>
1920
1921 * completer.c (completion_tracker::discard_completions)
1922 (completion_tracker::~completion_tracker)
1923 (completion_tracker::maybe_add_completion)
1924 (completion_tracker::remove_completion)
1925 (completion_tracker::recompute_lowest_common_denominator)
1926 (completion_tracker::build_completion_result): Update.
1927 * completer.h (class completion_tracker) <have_completions>:
1928 Update.
1929 <m_entries_hash>: Now htab_up.
1930
c1fb9836
TT
19312020-09-17 Tom Tromey <tom@tromey.com>
1932
1933 * breakpoint.c (ambiguous_names_p): Use htab_up.
1934
88f07206
TT
19352020-09-17 Tom Tromey <tom@tromey.com>
1936
1937 * auto-load.c (struct auto_load_pspace_info)
1938 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1939 <loaded_script_files, loaded_script_texts>: Change type to
1940 htab_up.
1941 (~auto_load_pspace_info) Remove.
1942 (init_loaded_scripts_info, maybe_add_script_file)
1943 (maybe_add_script_text, auto_load_info_scripts): Update.
1944
9519b2ee
TT
19452020-09-17 Tom Tromey <tromey@adacore.com>
1946
1947 * c-exp.y (name_obstack): Now static.
1948
d2cd4113
CC
19492020-09-17 Chungyi Chi <demonic@csie.io>
1950
1951 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1952
b650a282
SM
19532020-09-16 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1956 (add_solib_catchpoint): Likewise.
1957 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1958 to bool.
1959 (add_solib_catchpoint): Change int parameter/variable to bool.
1960 (catch_load_or_unload): Likewise.
1961 (init_catchpoint): Likewise.
1962 (create_fork_vfork_event_catchpoint): Likewise.
1963 (catch_fork_command_1): Likewise.
1964 (catch_exec_command_1): Likewise.
1965
4d0bcfcf
SM
19662020-09-16 Simon Marchi <simon.marchi@efficios.com>
1967
1968 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1969 Change instance_flags to m_instance_flags.
1970
fe830662
TT
19712020-09-16 Tom Tromey <tromey@adacore.com>
1972
1973 PR gdb/26598:
1974 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1975
fe5ddfc3
JB
19762020-09-16 John Baldwin <jhb@FreeBSD.org>
1977
1978 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1979 PL_FLAG_EXEC.
1980 (fbsd_nat_target::insert_exec_catchpoint)
1981 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1982 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1983 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1984
e911c666
JB
19852020-09-16 John Baldwin <jhb@FreeBSD.org>
1986
1987 * configure.ac: Remove check for kinfo_getvmmap().
1988 * configure, config.in: Regenerate.
1989 * fbsd-nat.c (fbsd_read_mapping): Remove
1990 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1991 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1992 kinfo_get_vmmap() are always present.
1993
1f17d372
JB
19942020-09-16 John Baldwin <jhb@FreeBSD.org>
1995
1996 * fbsd-nat.c: Always include support for
1997 TARGET_OBJECT_SIGNAL_INFO.
1998
bcb1da7f
JB
19992020-09-16 John Baldwin <jhb@FreeBSD.org>
2000
2001 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2002 sysctl and remove procfs fallback.
2003
5515f729
JB
20042020-09-16 John Baldwin <jhb@FreeBSD.org>
2005
2006 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2007 * fbsd-nat.h: Likewise.
2008
da1df1db
TBA
20092020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2010
2011 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2012 argument.
2013
0e25e767
AB
20142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * ada-lang.c (ada_language_data): Delete.
2017 (ada_language): Remove references to ada_language_data.
2018 * c-lang.c (c_language_data): Delete.
2019 (c_language): Remove references to c_language_data.
2020 (cplus_language_data): Delete.
2021 (cplus_language): Remove references to cplus_language_data.
2022 (asm_language_data): Delete.
2023 (asm_language): Remove references to asm_language_data.
2024 (minimal_language_data): Delete.
2025 (minimal_language): Remove references to minimal_language_data.
2026 * d-lang.c (d_language_data): Delete.
2027 (d_language): Remove references to d_language_data.
2028 * f-lang.c (f_language_data): Delete.
2029 (f_language): Remove references to f_language_data.
2030 * go-lang.c (go_language_data): Delete.
2031 (go_language): Remove references to go_language_data.
2032 * language.c (unknown_language_data): Delete.
2033 (unknown_language): Remove references to unknown_language_data.
2034 (auto_language_data): Delete.
2035 (auto_language): Remove references to auto_language_data.
2036 * language.h (language_data): Delete struct.
2037 (language_defn): No longer inherit from language_data.
2038 * m2-lang.c (m2_language_data): Delete.
2039 (m2_language): Remove references to m2_language_data.
2040 * objc-lang.c (objc_language_data): Delete.
2041 (objc_language): Remove references to objc_language_data.
2042 * opencl-lang.c (opencl_language_data): Delete.
2043 (opencl_language): Remove references to opencl_language_data.
2044 * p-lang.c (pascal_language_data): Delete.
2045 (pascal_language): Remove references to pascal_language_data.
2046 * rust-lang.c (rust_language_data): Delete.
2047 (rust_language): Remove references to rust_language_data.
2048
b7c6e27d
AB
20492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2050
2051 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2052 initializer.
2053 (ada_language::opcode_print_table): New member function.
2054 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2055 (c_language::opcode_print_table): New member function.
2056 (cplus_language_data): Remove la_op_print_tab initializer.
2057 (cplus_language::opcode_print_table): New member function.
2058 (asm_language_data): Remove la_op_print_tab initializer.
2059 (asm_language::opcode_print_table): New member function.
2060 (minimal_language_data): Remove la_op_print_tab initializer.
2061 (minimal_language::opcode_print_table): New member function.
2062 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2063 (d_language::opcode_print_table): New member function.
2064 * expprint.c (print_subexp_standard): Update call to
2065 opcode_print_table.
2066 (op_string): Likewise.
2067 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2068 (f_language::opcode_print_table): New member function.
2069 * go-lang.c (go_language_data): Remove la_op_print_tab
2070 initializer.
2071 (go_language::opcode_print_table): New member function.
2072 * language.c (unknown_language_data): Remove la_op_print_tab
2073 initializer.
2074 (unknown_language::opcode_print_table): New member function.
2075 (auto_language_data): Remove la_op_print_tab initializer.
2076 (auto_language::opcode_print_table): New member function.
2077 * language.h (language_data): Remove la_op_print_tab field.
2078 (language_defn::opcode_print_table): Declare new member function.
2079 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2080 initializer.
2081 (m2_language::opcode_print_table): New member function.
2082 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2083 initializer.
2084 (objc_language::opcode_print_table): New member function.
2085 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2086 initializer.
2087 (opencl_language::opcode_print_table): New member function.
2088 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2089 initializer.
2090 (pascal_language::opcode_print_table): New member function.
2091 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2092 initializer.
2093 (rust_language::opcode_print_table): New member function.
2094
5aba6ebe
AB
20952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2098 (ada_language::expression_ops): New member function.
2099 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2100 (c_language::expression_ops): New member function.
2101 (cplus_language_data): Remove la_exp_desc initializer.
2102 (cplus_language::expression_ops): New member function.
2103 (asm_language_data): Remove la_exp_desc initializer.
2104 (asm_language::expression_ops): New member function.
2105 (minimal_language_data): Remove la_exp_desc initializer.
2106 (minimal_language::expression_ops): New member function.
2107 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2108 (d_language::expression_ops): New member function.
2109 * eval.c (evaluate_subexp): Update call to expression_ops.
2110 * expprint.c (print_subexp): Likewise.
2111 (op_name): Likewise.
2112 (dump_subexp_body): Likewise.
2113 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2114 (f_language::expression_ops): New member function.
2115 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2116 (go_language::expression_ops): New member function.
2117 * language.c (language_defn::expression_ops): New function.
2118 (unknown_language_data): Remove la_exp_desc initializer.
2119 (auto_language_data): Likewise.
2120 * language.h (language_data): Remove la_exp_desc field.
2121 (language_defn::expression_ops): Declare new member function.
2122 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2123 (m2_language::expression_ops): New member function.
2124 * objc-lang.c (objc_language_data): Remove la_exp_desc
2125 initializer.
2126 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2127 initializer.
2128 (opencl_language::expression_ops): New member function.
2129 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2130 * parse.c (operator_length): Update call to expression_ops.
2131 (exp_iterate): Likewise.
2132 * rust-lang.c (rust_language_data): Remove la_exp_desc
2133 initializer.
2134 (ruse_language::expression_ops): New member function.
2135
b63a3f3f
AB
21362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2139 initializer.
2140 (ada_language::varobj_ops): New member function.
2141 * c-lang.c (c_language_data): Remove la_varobj_ops
2142 initializer.
2143 (cplus_language_data): Likewise.
2144 (cplus_language::varobj_ops): New member function.
2145 (asm_language_data): Remove la_varobj_ops initializer.
2146 (minimal_language_data): Likewise.
2147 * d-lang.c (d_language_data): Likewise.
2148 * f-lang.c (f_language_data): Likewise.
2149 * go-lang.c (go_language_data): Likewise.
2150 * language.c (language_defn::varobj_ops): New function.
2151 (unknown_language_data): Remove la_varobj_ops
2152 initializer.
2153 (auto_language_data): Likewise.
2154 * language.h (language_data): Remove la_varobj_ops field.
2155 (language_defn::varobj_ops): Declare new member function.
2156 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2157 * objc-lang.c (objc_language_data): Likewise.
2158 * opencl-lang.c (opencl_language_data): Likewise.
2159 * p-lang.c (pascal_language_data): Likewise.
2160 * rust-lang.c (rust_language_data): Likewise.
2161 * varobj.c (varobj_create): Update call to varobj_ops.
2162 * varobj.h (default_varobj_ops): Delete define.
2163
1ac14a04
AB
21642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2167 initializer.
2168 * c-lang.c (c_language_data): Likewise.
2169 (c_language::macro_expansion): New member function.
2170 (cplus_language_data): Likewise.
2171 (cplus_language::macro_expansion): New member function.
2172 (asm_language_data): Likewise.
2173 (asm_language::macro_expansion): New member function.
2174 (minimal_language_data): Likewise.
2175 (minimal_language::macro_expansion): New member function.
2176 * d-lang.c (d_language_data): Remove la_macro_expansion
2177 initializer.
2178 * f-lang.c (f_language_data): Likewise.
2179 * go-lang.c (go_language_data): Likewise.
2180 * language.c (unknown_language_data): Likewise.
2181 (auto_language_data): Likewise.
2182 * language.h (language_data): Remove la_macro_expansion field.
2183 (language_defn::macro_expansion): New member function.
2184 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2185 initializer.
2186 * objc-lang.c (objc_language_data): Likewise.
2187 (objc_language::macro_expansion): New member function.
2188 * opencl-lang.c (opencl_language_data): Likewise.
2189 (opencl_language::macro_expansion): New member function.
2190 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2191 initializer.
2192 * rust-lang.c (rust_language_data): Likewise.
2193 * symtab.c (default_collect_symbol_completion_matches_break_on):
2194 Update call to macro_expansion.
2195
3a3440fb
AB
21962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * ada-lang.c (ada_language_data): Remove la_array_ordering
2199 initializer.
2200 * c-lang.c (c_language_data): Likewise.
2201 (cplus_language_data): Likewise.
2202 (asm_language_data): Likewise.
2203 (minimal_language_data): Likewise.
2204 * d-lang.c (d_language_data): Likewise.
2205 * dwarf2/read.c (read_array_order): Update for call to
2206 array_ordering.
2207 * f-lang.c (f_language_data): Remove la_array_ordering
2208 initializer.
2209 (f_language::array_ordering): New member function.
2210 * go-lang.c (go_language_data): Remove la_array_ordering
2211 initializer.
2212 * language.c (unknown_language_data): Likewise.
2213 (auto_language_data): Likewise.
2214 * language.h (language_data): Delete la_array_ordering field.
2215 (language_defn::array_ordering): New member function.
2216 * m2-lang.c (m2_language_data): Remove la_array_ordering
2217 initializer.
2218 * objc-lang.c (objc_language_data): Likewise.
2219 * opencl-lang.c (opencl_language_data): Likewise.
2220 * p-lang.c (pascal_language_data): Likewise.
2221 * rust-lang.c (rust_language_data): Likewise.
2222
0d201fa4
AB
22232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2226 initializer.
2227 * c-lang.c (c_language_data): Likewise.
2228 (cplus_language_data): Likewise.
2229 (asm_language_data): Likewise.
2230 (minimal_language_data): Likewise.
2231 * d-lang.c (d_language_data): Likewise.
2232 * f-lang.c (f_language_data): Likewise.
2233 (f_language::case_sensitivity): New member function.
2234 * go-lang.c (go_language_data): Remove la_case_sensitivity
2235 initializer.
2236 * language.c (enum case_mode): Moved here from language.h.
2237 (case_mode): Make static.
2238 (show_case_command): Update for case_sensitivity being a method.
2239 (set_case_command): Likewise.
2240 (set_range_case): Likewise.
2241 (unknown_language_data): Remove la_case_sensitivity initializer.
2242 (auto_language_data): Likewise.
2243 * language.h (case_mode): Delete, move enum declaration to
2244 language.c.
2245 (language_data): Delete la_case_sensitivity field.
2246 (language_defn::case_sensitivity): New member function.
2247 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2248 initializer.
2249 * objc-lang.c (objc_language_data): Likewise.
2250 * opencl-lang.c (opencl_language_data): Likewise.
2251 * p-lang.c (pascal_language_data): Likewise.
2252 * rust-lang.c (rust_language_data): Likewise.
2253
efdf6a73
AB
22542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * ada-lang.c (ada_language_data): Remove la_range_check
2257 initializer.
2258 * c-lang.c (c_language_data): Likewise.
2259 (cplus_language_data): Likewise.
2260 (asm_language_data): Likewise.
2261 (minimal_language_data): Likewise.
2262 * d-lang.c (d_language_data): Likewise.
2263 * f-lang.c (f_language_data): Likewise.
2264 (f_language::range_checking_on_by_default): New member function.
2265 * go-lang.c (go_language_data): Remove la_range_check initializer.
2266 * language.c (enum range_mode): Moved here from language.h.
2267 (range_mode): Made static.
2268 (show_range_command): Update to use
2269 range_checking_on_by_default.
2270 (set_range_command): Likewise.
2271 (set_range_case): Likewise.
2272 (unknown_language_data): Remove la_range_check initializer.
2273 (auto_language_data): Likewise.
2274 * language.h (range_mode): Delete. Enum definition moved to
2275 language.c.
2276 (language_data): Remove la_range_check field.
2277 (language_defn::range_checking_on_by_default): New member
2278 function.
2279 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2280 (m2_language::range_checking_on_by_default): New member function.
2281 * objc-lang.c (objc_language_data): Remove la_range_check
2282 initializer.
2283 * opencl-lang.c (opencl_language_data): Likewise.
2284 * p-lang.c (pascal_language_data): Likewise.
2285 (pascal_language::range_checking_on_by_default): New member
2286 function.
2287 * rust-lang.c (rust_language_data): Remove la_range_check
2288 initializer.
2289 (rust_language::range_checking_on_by_default): New member
2290 function.
2291
bf92aec5
AB
22922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * dwarf2/read.c (dwarf2_physname): Remove special case for
2295 language_go.
2296 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2297 member function.
2298
d3355e4d
AB
22992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * ada-lang.c (ada_language_data): Remove
2302 la_store_sym_names_in_linkage_form_p initializer.
2303 (ada_language::store_sym_names_in_linkage_form_p): New member
2304 function.
2305 * c-lang.c (c_language_data): Remove
2306 la_store_sym_names_in_linkage_form_p initializer.
2307 (c_language::store_sym_names_in_linkage_form_p): New member
2308 function.
2309 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2310 initializer.
2311 (asm_language_data): Likewise.
2312 (asm_language::store_sym_names_in_linkage_form_p): New member
2313 function.
2314 (minimal_language_data): Remove
2315 la_store_sym_names_in_linkage_form_p initializer.
2316 (minimal_language::store_sym_names_in_linkage_form_p): New member
2317 function.
2318 * d-lang.c (d_language_data): Remove
2319 la_store_sym_names_in_linkage_form_p initializer.
2320 * dwarf2/read.c (dwarf2_physname): Update call to
2321 store_sym_names_in_linkage_form_p.
2322 * f-lang.c (f_language_data): Remove
2323 la_store_sym_names_in_linkage_form_p initializer.
2324 * go-lang.c (go_language_data): Remove
2325 la_store_sym_names_in_linkage_form_p initializer.
2326 * language.c (unknown_language_data): Remove
2327 la_store_sym_names_in_linkage_form_p initializer.
2328 (unknown_language::store_sym_names_in_linkage_form_p): New member
2329 function.
2330 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2331 initializer.
2332 (auto_language::store_sym_names_in_linkage_form_p): New member
2333 function.
2334 * language.h (language_data): Remove
2335 la_store_sym_names_in_linkage_form_p member variable.
2336 (language_defn::store_sym_names_in_linkage_form_p): New member
2337 function.
2338 * m2-lang.c (m2_language_data): Remove
2339 la_store_sym_names_in_linkage_form_p initializer.
2340 * objc-lang.c (objc_language_data): Likewise.
2341 * opencl-lang.c (opencl_language_data): Likewise.
2342 * p-lang.c (pascal_language_data): Likewise.
2343 * rust-lang.c (rust_language_data): Likewise.
2344
22c12a6c
AB
23452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * ada-lang.c (ada_language_data): Remove string_lower_bound
2348 initializer.
2349 * c-lang.c (c_language_data): Likewise.
2350 (cplus_language_data): Likewise.
2351 (asm_language_data): Likewise.
2352 (minimal_language_data): Likewise.
2353 * d-lang.c (d_language_data): Likewise.
2354 * f-lang.c (f_language_data): Likewise.
2355 * go-lang.c (go_language_data): Likewise.
2356 * language.c (unknown_language_data): Likewise.
2357 (auto_language_data): Likewise.
2358 * language.h (language_data): Remove string_lower_bound field.
2359 (language_defn::string_lower_bound): New member function.
2360 * m2-lang.c (m2_language_data): Remove string_lower_bound
2361 initializer.
2362 (m2_language::string_lower_bound): New member function.
2363 * objc-lang.c (objc_language_data): Remove string_lower_bound
2364 initializer.
2365 * opencl-lang.c (opencl_language_data): Likewise.
2366 * p-lang.c (pascal_language_data): Likewise.
2367 * rust-lang.c (rust_language_data): Likewise.
2368 * valops.c (value_cstring): Update call to string_lower_bound.
2369 (value_string): Likewise.
2370 * value.c (allocate_repeated_value): Likewise.
2371
1c236ddd
AB
23722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * valops.c (value_repeat): Fix incorrect argument name in comment.
2375
67bd3fd5
AB
23762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * ada-lang.c (ada_language_data): Remove c_style_arrays
2379 initializer.
2380 (ada_language::c_style_arrays_p): New member fuction.
2381 * c-lang.c (c_language_data): Remove c_style_arrays
2382 initializer.
2383 (cplus_language_data): Likewise.
2384 (asm_language_data): Likewise.
2385 (minimal_language_data): Likewise.
2386 * d-lang.c (d_language_data): Likewise.
2387 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2388 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2389 (f_language::c_style_arrays_p): New member function.
2390 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2391 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2392 * language.c (unknown_language_data): Remove c_style_arrays
2393 initializer.
2394 (auto_language_data): Likewise.
2395 * language.h (language_data): Remove c_style_arrays field.
2396 (language_defn::c_style_arrays_p): New member function.
2397 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2398 (m2_language::c_style_arrays_p): New member function.
2399 * objc-lang.c (objc_language_data): Remove c_style_arrays
2400 initializer.
2401 * opencl-lang.c (opencl_language_data): Likewise.
2402 * p-lang.c (pascal_language_data): Likewise.
2403 * rust-lang.c (rust_language_data): Likewise.
2404 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2405 and update local variable to a bool.
2406 * valops.c (value_cast): Update call to c_style_arrays_p.
2407 (value_array): Likewise.
2408 * value.c (coerce_array): Likewise.
2409
85967615
AB
24102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Remove la_language initializer.
2413 * c-lang.c (c_language_data): Likewise.
2414 (cplus_language_data): Likewise.
2415 (asm_language_data): Likewise.
2416 (minimal_language_data): Likewise.
2417 * d-lang.c (d_language_data): Likewise.
2418 * f-lang.c (f_language_data): Likewise.
2419 * go-lang.c (go_language_data): Likewise.
2420 * language.c (unknown_language_data): Likewise.
2421 (auto_language_data): Likewise.
2422 * language.h (language_data): Remove la_language field.
2423 (language_defn::language_defn): Initialise la_language field.
2424 (language_defn::la_language): New member variable.
2425 * m2-lang.c (m2_language_data): Remove la_language field.
2426 * objc-lang.c (objc_language_data): Likewise.
2427 * opencl-lang.c (opencl_language_data): Likewise.
2428 * p-lang.c (pascal_language_data): Likewise.
2429 * rust-lang.c (rust_language_data): Likewise.
2430
e171d6f1
AB
24312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_extensions): Delete, moved into
2434 ada_language::filename_extensions.
2435 (ada_language_data): Remove la_filename_extensions initializer.
2436 (ada_language::filename_extensions): New member function.
2437 * c-lang.c (c_extensions): Delete, moved into
2438 c_language::filename_extensions.
2439 (c_language_data): Remove la_filename_extensions initializer.
2440 (c_language::filename_extensions): New member function.
2441 (cplus_extensions): Delete, moved into
2442 cplus_language::filename_extensions.
2443 (cplus_language_data): Remove la_filename_extensions initializer.
2444 (cplus_language::filename_extensions): New member function.
2445 (asm_extensions): Delete, moved into
2446 asm_language::filename_extensions.
2447 (asm_language_data): Remove la_filename_extensions initializer.
2448 (asm_language::filename_extensions): New member function.
2449 (minimal_language_data): Remove la_filename_extensions
2450 initializer.
2451 * d-lang.c (d_extensions): Delete, moved into
2452 d_language::filename_extensions.
2453 (d_language_data): Remove la_filename_extensions initializer.
2454 (d_language::filename_extensions): New member function.
2455 * f-lang.c (f_extensions): Delete, moved into
2456 f_language::filename_extensions.
2457 (f_language_data): Remove la_filename_extensions initializer.
2458 (f_language::filename_extensions): New member function.
2459 * go-lang.c (go_language_data): Remove la_filename_extensions
2460 initializer.
2461 * language.c (add_set_language_command): Update now that
2462 filename_extensions returns a vector.
2463 (unknown_language_data): Remove la_filename_extensions
2464 initializer.
2465 (auto_language_data): Likewise.
2466 * language.h (language_data): Remove la_filename_extensions field.
2467 (language_defn::filename_extensions): New member function.
2468 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2469 initializer.
2470 * objc-lang.c (objc_extensions): Delete, moved into
2471 objc_language::filename_extensions.
2472 (objc_language_data): Remove la_filename_extensions initializer.
2473 (objc_language::filename_extensions): New member function.
2474 * opencl-lang.c (opencl_language_data): Remove
2475 la_filename_extensions initializer.
2476 * p-lang.c (pascal_extensions): Delete, moved into
2477 pascal_language::filename_extensions.
2478 (pascal_language_data): Remove la_filename_extensions initializer.
2479 (pascal_language::filename_extensions): New member function.
2480 * rust-lang.c (rust_extensions): Delete, moved into
2481 rust_language::filename_extensions.
2482 (rust_language_data): Remove la_filename_extensions initializer.
2483 (rust_language::filename_extensions): New member function.
2484 * symfile.c (add_filename_language): Add new assert.
2485
6f7664a9
AB
24862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * ada-lang.c (ada_language_data): Remove la_name and
2489 la_natural_name initializers.
2490 (ada_language::name): New member function.
2491 (ada_language::natural_name): New member function.
2492 * c-lang.c (c_language_data): Remove la_name and
2493 la_natural_name initializers.
2494 (c_language::name): New member function.
2495 (c_language::natural_name): New member function.
2496 (cplus_language_data): Remove la_name and
2497 la_natural_name initializers.
2498 (cplus_language::name): New member function.
2499 (cplus_language::natural_name): New member function.
2500 (asm_language_data): Remove la_name and
2501 la_natural_name initializers.
2502 (asm_language::name): New member function.
2503 (asm_language::natural_name): New member function.
2504 (minimal_language_data): Remove la_name and
2505 la_natural_name initializers.
2506 (minimal_language::name): New member function.
2507 (minimal_language::natural_name): New member function.
2508 * compile/compile.c (compile_to_object): Update call to
2509 lanugage_defn::name.
2510 * d-lang.c (d_language_data): Remove la_name and
2511 la_natural_name initializers.
2512 (d_language::name): New member function.
2513 (d_language::natural_name): New member function.
2514 * expprint.c (print_subexp_standard): Update call to
2515 language_defn::name.
2516 (dump_raw_expression): Likewise
2517 (dump_prefix_expression): Likewise.
2518 * f-lang.c (f_language_data): Remove la_name and
2519 la_natural_name initializers.
2520 (f_language::name): New member function.
2521 (f_language::natural_name): New member function.
2522 * go-lang.c (go_language_data): Remove la_name and
2523 la_natural_name initializers.
2524 (go_language::name): New member function.
2525 (go_language::natural_name): New member function.
2526 * language.c (show_language_command): Update call to
2527 language_defn::name.
2528 (set_language_command): Likewise.
2529 (language_enum): Likewise.
2530 (language_str): Likewise.
2531 (add_set_language_command): Likewise, use
2532 language_defn::natural_name in the doc string.
2533 (unknown_language_data): Remove la_name and
2534 la_natural_name initializers.
2535 (unknown_language::name): New member function.
2536 (unknown_language::natural_name): New member function.
2537 (auto_language_data): Remove la_name and
2538 la_natural_name initializers.
2539 (auto_language::name): New member function.
2540 (auto_language::natural_name): New member function.
2541 (language_lookup_primitive_type_as_symbol): Update call to
2542 language_defn::name.
2543 * language.h (language_data): Remove la_name and la_natural_name
2544 member variables.
2545 (language_defn::name): New member function.
2546 (language_defn::natural_name): New member function.
2547 * m2-lang.c (m2_language_data): Remove la_name and
2548 la_natural_name initializers.
2549 (m2_language::name): New member function.
2550 (m2_language::natural_name): New member function.
2551 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2552 language_defn::natural_name.
2553 * objc-lang.c (objc_language_data): Remove la_name and
2554 la_natural_name initializers.
2555 (objc_language::name): New member function.
2556 (objc_language::natural_name): New member function.
2557 * opencl-lang.c (opencl_language_data): Remove la_name and
2558 la_natural_name initializers.
2559 (opencl_language::name): New member function.
2560 (opencl_language::natural_name): New member function.
2561 * p-lang.c (pascal_language_data): Remove la_name and
2562 la_natural_name initializers.
2563 (pascal_language::name): New member function.
2564 (pascal_language::natural_name): New member function.
2565 * rust-lang.c (rust_language_data): Remove la_name and
2566 la_natural_name initializers.
2567 (rust_language::name): New member function.
2568 (rust_language::natural_name): New member function.
2569 * symtab.c (lookup_language_this): Update call to
2570 language_defn::name.
2571
5bae7c4e
AB
25722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (ada_language_data): Remove la_name_of_this
2575 initializer.
2576 * ax-gdb.c (gen_expr): Update call to name_of_this.
2577 * c-exp.y (classify_name): Likewise.
2578 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2579 (cplus_language_data): Likewise.
2580 (cplus_language::name_of_this): New member function.
2581 (asm_language_data): Remove la_name_of_this initializer.
2582 (minimal_language_data): Likewise.
2583 * d-lang.c (d_language_data): Likewise.
2584 (d_language::name_of_this): New member function.
2585 * expprint.c (print_subexp_standard): Update call to name_of_this.
2586 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2587 * go-lang.c (go_language_data): Likewise.
2588 * language.c (unknown_language_data): Likewise.
2589 (unknown_language::name_of_this): New member function.
2590 (auto_language_data): Remove la_name_of_this initializer.
2591 (auto_language::name_of_this): New member function.
2592 * language.h (language_data): Delete la_name_of_this member
2593 variable.
2594 (language_defn::name_of_this): New member function.
2595 * m2-lang.c (m2_language_data): Remove la_name_of_this
2596 initializer.
2597 * objc-lang.c (objc_language_data): Likewise.
2598 (objc_language::name_of_this): New member function.
2599 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2600 initializer.
2601 * p-lang.c (pascal_language_data): Likewise.
2602 (pascal_language::name_of_this): New member function.
2603 * rust-lang.c (rust_language_data): Remove la_name_of_this
2604 initializer.
2605 * symtab.c (lookup_language_this): Update call to name_of_this.
2606 (lookup_symbol_aux): Likewise.
2607 * valops.c (value_of_this): Likewise.
2608
22e3f3ed
AB
26092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * ada-lang.c (ada_language_data): Remove
2612 la_struct_too_deep_ellipsis initializer.
2613 (ada_language::struct_too_deep_ellipsis): New member function.
2614 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2615 initializer.
2616 (cplus_language_data): Likewise.
2617 (asm_language_data): Likewise.
2618 (minimal_language_data): Likewise.
2619 * cp-valprint.c (cp_print_value): Update call to
2620 struct_too_deep_ellipsis.
2621 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2622 initializer.
2623 * f-lang.c (f_language_data): Likewise.
2624 (f_language::struct_too_deep_ellipsis): New member function.
2625 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2626 initializer.
2627 * language.c (unknown_language_data): Likewise.
2628 (auto_language_data): Likewise.
2629 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2630 member variable.
2631 (language_defn::struct_too_deep_ellipsis): New member function.
2632 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2633 initializer.Q
2634 * objc-lang.c (objc_language_data): Likewise.
2635 * opencl-lang.c (opencl_language_data): Likewise.
2636 * p-lang.c (pascal_language_data): Likewise.
2637 * rust-lang.c (rust_language_data): Likewise.
2638 * valprint.c (val_print_check_max_depth): Update call to
2639 struct_too_deep_ellipsis.
2640
ed29e1c7
FW
26412020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2642
2643 * MAINTAINERS (Write After Approval): Add myself.
2644
12d8f940
TT
26452020-09-15 Tom Tromey <tom@tromey.com>
2646
2647 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2648 Remove.
2649
6b5a7bc7
TT
26502020-09-15 Tom Tromey <tom@tromey.com>
2651
2652 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2653 and TYPE_CODE_METHODPTR cases.
2654 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2655 (c_value_print_inner): Update.
2656 * valprint.c (generic_value_print_memberptr): New function, from
2657 c_value_print_memberptr.
2658 (generic_value_print): Use it. Call cplus_print_method_ptr.
2659
47f0e2ff
TT
26602020-09-15 Tom Tromey <tromey@adacore.com>
2661
2662 * python/python-internal.h (PyInt_FromLong): Remove define.
2663 * python/py-value.c (convert_value_from_python): Use
2664 gdb_py_object_from_longest.
2665 * python/py-type.c (typy_get_code): Use
2666 gdb_py_object_from_longest.
2667 * python/py-symtab.c (salpy_get_line): Use
2668 gdb_py_object_from_longest.
2669 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2670 gdb_py_object_from_longest.
2671 * python/py-record.c (recpy_gap_reason_code): Use
2672 gdb_py_object_from_longest.
2673 * python/py-record-btrace.c (recpy_bt_insn_size)
2674 (recpy_bt_func_level, btpy_list_count): Use
2675 gdb_py_object_from_longest.
2676 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2677 gdb_py_object_from_longest. Fix error handling.
2678 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2679 gdb_py_object_from_longest.
2680 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2681 gdb_py_object_from_longest.
2682 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2683 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2684 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2685
512116ce
TT
26862020-09-15 Tom Tromey <tromey@adacore.com>
2687
2688 * python/python.c (gdbpy_parameter_value): Use
2689 gdb_py_object_from_ulongest.
2690
4ab1029c
TT
26912020-09-15 Tom Tromey <tromey@adacore.com>
2692
2693 * python/py-infevents.c (create_register_changed_event_object):
2694 Use gdb_py_object_from_longest.
2695 * python/py-exitedevent.c (create_exited_event_object): Use
2696 gdb_py_object_from_longest.
2697
062534d4
TT
26982020-09-15 Tom Tromey <tromey@adacore.com>
2699
2700 * python/python.c (gdbpy_parameter_value): Use
2701 gdb_py_object_from_longest.
2702 * python/py-type.c (convert_field, typy_range): Use
2703 gdb_py_object_from_longest.
2704 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2705 gdb_py_object_from_longest.
2706 * python/py-lazy-string.c (stpy_get_length): Use
2707 gdb_py_object_from_longest.
2708 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2709 gdb_py_object_from_longest.
2710 * python/py-infevents.c (create_memory_changed_event_object): Use
2711 gdb_py_object_from_longest.
2712 * python/py-inferior.c (infpy_get_num): Use
2713 gdb_py_object_from_longest.
2714 (infpy_get_pid): Likewise.
2715
d1cab987
TT
27162020-09-15 Tom Tromey <tromey@adacore.com>
2717
2718 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2719 defines.
2720 * python/py-value.c (valpy_long): Use
2721 gdb_py_object_from_ulongest.
2722 * python/py-symtab.c (salpy_get_pc): Use
2723 gdb_py_object_from_ulongest.
2724 (salpy_get_last): Likewise.
2725 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2726 gdb_py_object_from_ulongest.
2727 * python/py-lazy-string.c (stpy_get_address): Use
2728 gdb_py_object_from_ulongest.
2729 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2730 * python/py-arch.c (archpy_disassemble): Use
2731 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2732 error handling.
2733
4bde49dc
TT
27342020-09-15 Tom Tromey <tromey@adacore.com>
2735
2736 * python/python-internal.h (gdb_py_long_from_longest): Remove
2737 defines.
2738 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2739 * python/py-type.c (convert_field, typy_get_sizeof): Use
2740 gdb_py_object_from_longest.
2741 * python/py-record-btrace.c (btpy_list_index): Use
2742 gdb_py_object_from_longest.
2743
37431074
TT
27442020-09-15 Tom Tromey <tromey@adacore.com>
2745
2746 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2747 * python/py-record.c (recpy_element_number): Use
2748 gdb_py_object_from_longest.
2749 (recpy_gap_number): Likewise.
2750
cbe25684
TT
27512020-09-15 Tom Tromey <tromey@adacore.com>
2752
2753 * top.c (ui::ui): Update.
2754 (highest_ui_num): Remove.
2755 * top.h (struct ui) <num>: Remove.
2756
db92ac45
TT
27572020-09-15 Tom Tromey <tromey@adacore.com>
2758
2759 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2760 * ui-style.c (ansi_regex_text): Now array.
2761 * rust-exp.y (number_regex_text): Now array.
2762 * linespec.c (linespec_quote_characters): Now array.
2763 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2764 Now arrays.
2765
d2b31b67
SM
27662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * debuginfod-support.c (debuginfod_client_deleter): New.
2769 (debuginfod_client_up): New.
2770 (debuginfod_init): Return debuginfod_client_up.
2771 (debuginfod_source_query): Adjust.
2772 (debuginfod_debuginfo_query): Adjust.
2773
3246bd8e
SM
27742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2775
2776 * debuginfod-support.c (debuginfod_source_query): Use
2777 make_unique_xstrdup.
2778
10242f36
SM
27792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2782 with `type::instance_flags`.
2783
e1044e6a
MM
27842020-09-14 Michael Mullin <masmullin@gmail.com>
2785
2786 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2787 Remove baton parameter.
2788
04902b09
PA
27892020-09-14 Pedro Alves <pedro@palves.net>
2790
2791 * Makefile.in (SELFTESTS_SRCS): Add
2792 unittests/enum-flags-selftests.c.
2793 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2794 btrace_function_flags instead of enum btrace_function_flag.
2795 * compile/compile-c-types.c (convert_qualified): Use
2796 enum_flags::raw.
2797 * compile/compile-cplus-symbols.c (convert_one_symbol)
2798 (convert_symbol_bmsym):
2799 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2800 (compile_cplus_convert_struct_or_union_methods)
2801 (compile_cplus_instance::convert_qualified_base):
2802 * go-exp.y (parse_string_or_char): Add cast to int.
2803 * unittests/enum-flags-selftests.c: New file.
2804 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2805 type to btrace_thread_flags from btrace_thread_flag.
2806 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2807 local's type to btrace_thread_flags from btrace_thread_flag. Add
2808 cast in DEBUG call.
2809
69896a2c
PA
28102020-09-14 Pedro Alves <pedro@palves.net>
2811
2812 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2813 * gdbtypes.c (address_space_name_to_int): Rename to ...
2814 (address_space_name_to_type_instance_flags): ... this.
2815 (address_space_int_to_name): Rename to ...
2816 (address_space_type_instance_flags_to_name): ... this.
2817 * gdbtypes.h (address_space_name_to_int): Rename to ...
2818 (address_space_name_to_type_instance_flags): ... this.
2819 (address_space_int_to_name): Rename to ...
2820 (address_space_type_instance_flags_to_name): ... this.
2821 * type-stack.c (type_stack::insert): Adjust to rename.
2822 * type-stack.h (type_stack::insert): Likewise.
2823
314ad88d
PA
28242020-09-14 Pedro Alves <pedro@palves.net>
2825 Andrew Burgess <andrew.burgess@embecosm.com>
2826
2827 * avr-tdep.c (avr_address_class_type_flags): Return
2828 type_instance_flags.
2829 (avr_address_class_type_flags_to_name): Take a
2830 type_instance_flags.
2831 (avr_address_class_name_to_type_flags): Return bool and take a
2832 type_instance_flags.
2833 * d-lang.c (build_d_types): Use type::set_instance_flags.
2834 * ft32-tdep.c (ft32_address_class_type_flags): Return
2835 type_instance_flags.
2836 (ft32_address_class_type_flags_to_name): Take a
2837 type_instance_flags.
2838 (ft32_address_class_name_to_type_flags): Return bool and take a
2839 type_instance_flags.
2840 (ft32_gdbarch_init): Use type::set_instance_flags.
2841 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2842 * gdbarch.h, gdbarch.c: Regenerate.
2843 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2844 (address_class_name_to_type_flags): Use type_instance_flags and
2845 bool.
2846 * gdbtypes.c (address_space_name_to_int)
2847 (address_space_int_to_name, make_qualified_type): Use
2848 type_instance_flags.
2849 (make_qualified_type): Use type_instance_flags and
2850 type::set_instance_flags.
2851 (make_type_with_address_space, make_cv_type, make_vector_type)
2852 (check_typedef): Use type_instance_flags.
2853 (recursive_dump_type): Cast type_instance_flags to unsigned for
2854 printing.
2855 (copy_type_recursive): Use type::set_instance_flags.
2856 (gdbtypes_post_init): Use type::set_instance_flags.
2857 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2858 <m_instance_flags>: ... this.
2859 <instance_flags, set_instance_flags>: New methods.
2860 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2861 (SET_TYPE_INSTANCE_FLAGS): New.
2862 (address_space_name_to_int, address_space_int_to_name)
2863 (make_type_with_address_space): Pass flags using
2864 type_instance_flags instead of int.
2865 * stabsread.c (cleanup_undefined_types_noname): Use
2866 type::set_instance_flags.
2867 * s390-tdep.c (s390_address_class_type_flags): Return
2868 type_instance_flags.
2869 (s390_address_class_type_flags_to_name): Take a
2870 type_instance_flags.
2871 (s390_address_class_name_to_type_flags): Return bool and take a
2872 type_instance_flags.
2873 * type-stack.c (type_stack::follow_types): Use
2874 type_instance_flags.
2875 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2876
27087b7f
TT
28772020-09-14 Tom Tromey <tromey@adacore.com>
2878
2879 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2880 * x86-tdep.c (x86_is_thunk_register_name)
2881 (x86_in_indirect_branch_thunk): Update.
2882 * sparc64-tdep.c (sparc64_fpu_register_names)
2883 (sparc64_cp0_register_names, sparc64_register_names)
2884 (sparc64_pseudo_register_names): Now const.
2885 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2886 cp0_registers_num>: Now const.
2887 * sparc-tdep.c (sparc_core_register_names)
2888 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2889 (sparc32_pseudo_register_names): Now const.
2890 (validate_tdesc_registers): Update.
2891 * rust-lang.c (rust_extensions): Now const.
2892 * p-lang.c (p_extensions): Now const.
2893 * objc-lang.c (objc_extensions): Now const.
2894 * nto-tdep.c (nto_thread_state_str): Now const.
2895 * moxie-tdep.c (moxie_register_names): Now const.
2896 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2897 Now const.
2898 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2899 (mips_linux_reg_names): Now const.
2900 (mips_gdbarch_init): Update.
2901 * microblaze-tdep.c (microblaze_register_names): Now const.
2902 * m68k-tdep.c (m68k_register_names): Now const.
2903 * m32r-tdep.c (m32r_register_names): Now const.
2904 * ia64-tdep.c (ia64_register_names): Now const.
2905 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2906 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2907 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2908 ymm_avx512_register_names, pkeys_register_names>: Now const.
2909 * i386-tdep.c (i386_register_names, i386_zmm_names)
2910 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2911 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2912 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2913 * f-lang.c (f_extensions): Now const.
2914 * d-lang.c (d_extensions): Now const.
2915 * csky-tdep.c (csky_register_names): Now const.
2916 * charset.c (default_charset_names, charset_enum): Now const.
2917 (_initialize_charset): Update.
2918 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2919 const.
2920 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2921 (bsd_uthread_solib_loaded): Update.
2922 (bsd_uthread_state): Now const.
2923 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2924 (amd64_ymm_avx512_names, amd64_ymmh_names)
2925 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2926 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2927 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2928 (amd64_dword_names): Now const.
2929 * agent.c (can_use_agent_enum): Now const.
2930 * ada-tasks.c (task_states, long_task_states): Now const.
2931 * ada-lang.c (known_runtime_file_name_patterns)
2932 (known_auxiliary_function_name_patterns, attribute_names)
2933 (standard_exc, ada_extensions): Now const.
2934
89806626
SM
29352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * bcache.h (struct bcache) <bcache>: Remove constructor.
2938 <m_hash_function, m_compare_function>: Remove.
2939 <~bcache>: Make virtual.
2940 <compare>: Remove static method, introduce virtual method.
2941 <default_hash>: Remove.
2942 <hash>: New virtual method.
2943 * bcache.c (bcache::expand_hash_table): Update.
2944 (bcache::insert): Update.
2945 (bcache::hash): New.
2946 (bcache::compare): Update comment and parameter names.
2947 * gdbtypes.c (types_deeply_equal): Update.
2948 * psymtab.h (struct psymbol_bcache): New struct.
2949 (class psymtab_storage) <psymtab_storage>: Make default.
2950 <psymbol_cache>: Change type to psymbol_bcache.
2951 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2952 (psymbol_hash): Change to...
2953 (psymbol_bcache::hash): ... this.
2954 (psymbol_compare): Change to...
2955 (psymbol_bcache::compare): ... this.
2956
677c92fe
SM
29572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2958
2959 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2960 checking for initial lwp.
2961
3eba3a01
TT
29622020-09-14 Tom Tromey <tromey@adacore.com>
2963
2964 * m68k-tdep.c (m68k_extract_return_value): Use
2965 pointer_result_regnum.
2966 (m68k_store_return_value): Likewise.
2967 (m68k_reg_struct_return_p): Handle vectors and arrays.
2968 (m68k_return_value): Handle arrays.
2969 (m68k_svr4_return_value): Fix single-element aggregate handling.
2970 Handle long double. Adjust for embedded ABI.
2971 (m68k_svr4_init_abi): Set pointer_result_regnum.
2972 (m68k_embedded_init_abi): New function.
2973 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2974 (m68k_osabi_sniffer): New function.
2975 (_initialize_m68k_tdep): Register osabi sniffer.
2976 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2977 member.
2978
33f4dd48
SM
29792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2980
2981 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2982 with gdb::unique_xmalloc_ptr<char>.
2983
8400a90d
SM
29842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * xml-support.h (xml_fetch_another): Change type to be a
2987 function_view.
2988 (xml_process_xincludes): Remove baton parameter.
2989 (xml_fetch_content_from_file): Change baton parameter to
2990 dirname.
2991 * xml-support.c (struct xinclude_parsing_data)
2992 <xinclude_parsing_data>: Remove baton parameter.
2993 <fetcher_baton>: Remove.
2994 (xinclude_start_include): Adjust.
2995 (xml_process_xincludes): Adjust.
2996 (xml_fetch_content_from_file): Replace baton parameter with
2997 dirname.
2998 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2999 (xml_init_syscalls_info): Use a lambda.
3000 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3001 (file_read_description_xml): Use a lambda.
3002 (fetch_available_features_from_target): Change baton parameter
3003 to target_ops.
3004 (target_read_description_xml): Use a lambda.
3005 (target_fetch_description_xml): Use a lambda.
3006 (string_read_description_xml): Update.
3007
04f5bab2
SM
30082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3009
3010 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3011 uses with type::endianity_is_not_default.
3012
db558e34
SM
30132020-09-14 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * gdbtypes.h (struct type) <endianity_is_not_default,
3016 set_endianity_is_not_default>: New methods.
3017 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3018 type::endianity_is_not_default, change all write call sites to
3019 use type::set_endianity_is_not_default.
3020
22c4c60c
SM
30212020-09-14 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3024 uses with type::is_fixed_instance.
3025
9cdd0d12
SM
30262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * gdbtypes.h (struct type) <is_fixed_instance,
3029 set_is_fixed_instance>: New methods.
3030 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3031 write call sites to use type::set_is_fixed_instance.
3032
0becda7a
SM
30332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3036 uses with type::is_gnu_ifunc.
3037
03cc7249
SM
30382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3041 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3042 use type::set_is_gnu_ifunc.
3043
3f46044c
SM
30442020-09-14 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3047 uses with type::stub_is_supported.
3048
9baccff6
SM
30492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3052 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3053 use type::set_stub_is_supported.
3054
bd63c870
SM
30552020-09-14 Simon Marchi <simon.marchi@efficios.com>
3056
3057 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3058 uses with type::is_vector.
3059
2062087b
SM
30602020-09-14 Simon Marchi <simon.marchi@efficios.com>
3061
3062 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3063 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3064 use type::set_is_vector.
3065
a409645d
SM
30662020-09-14 Simon Marchi <simon.marchi@efficios.com>
3067
3068 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3069 uses with type::has_varargs.
3070
1d6286ed
SM
30712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3074 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3075 use type::set_has_varargs.
3076
7f9f399b
SM
30772020-09-14 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3080 uses with type::is_prototyped.
3081
27e69b7a
SM
30822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3085 New methods.
3086 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3087 call sites to use type::set_is_prototyped.
3088
d2183968
SM
30892020-09-14 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3092 uses with type::target_is_stub.
3093
8f53807e
SM
30942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3097 New methods.
3098 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3099 sites to use type::set_target_is_stub.
3100
e46d3488
SM
31012020-09-14 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (TYPE_STUB): Remove, replace all
3104 uses with type::is_stub.
3105
b4b73759
SM
31062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3109 (TYPE_STUB): Use type::is_stub, change all write call sites to
3110 use type::set_is_stub.
3111
20ce4123
SM
31122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3115 type::has_no_signedness.
3116
15152a54
SM
31172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3118
3119 * gdbtypes.h (struct type) <has_no_signedness,
3120 set_has_no_signedness>: New methods.
3121 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3122 call sites to use type::set_has_no_signedness.
3123
c6d940a9
SM
31242020-09-14 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3127 type::is_unsigned.
3128
653223d3
SM
31292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3130
3131 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3132 methods.
3133 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3134 sites to use type::set_is_unsigned.
3135
55ea94da 31362020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3137 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3138
e851246a
SM
3139 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3140 pointer and stack frame offset when unwinding.
55ea94da 3141
6791b117
PA
31422020-09-13 Pedro Alves <pedro@palves.net>
3143
3144 * NEWS: Document "-break-insert --qualified".
3145 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3146
77f2120b
PA
31472020-09-13 Pedro Alves <pedro@palves.net>
3148
3149 * linespec.c (classify_mtype, compare_msyms): Delete.
3150 (search_minsyms_for_name): Remove classification logic. Instead
3151 filter out trampoline symbols if we also found an external
3152 function of the same name.
3153
ed6a896c
JB
31542020-09-13 Joel Brobecker <brobecker@adacore.com>
3155
3156 * NEWS: Create a new section for the next release branch.
3157 Rename the section of the current branch, now that it has
3158 been cut.
3159
32aea73e
JB
31602020-09-13 Joel Brobecker <brobecker@adacore.com>
3161
3162 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3163 * version.in: Bump version to 11.0.50.DATE-git.
3164
8087c3fa
JB
31652020-09-12 Joel Brobecker <brobecker@adacore.com>
3166
3167 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3168
2a67f09d
FW
31692020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3170 Felix Willgerodt <Felix.Willgerodt@intel.com>
3171
3172 * gdbarch.sh: Added bfloat16 type.
3173 * gdbarch.c: Regenerated.
3174 * gdbarch.h: Regenerated.
3175 * gdbtypes.c (floatformats_bfloat16): New struct.
3176 (gdbtypes_post_init): Add builtin_bfloat16.
3177 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3178 (floatformats_bfloat16): New struct.
3179 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3180 (i386_ymm_type): Add field "v16_bfloat16"
3181 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3182 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3183 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3184 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3185 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3186 * features/i386/64bit-avx512.c: Regenerated.
3187 * features/i386/64bit-sse.xml: Add bfloat16 type.
3188 * features/i386/64bit-sse.c: Regenerated.
3189
1347d111
FW
31902020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3191
3192 * i386-tdep.c (i386_zmm_type): Fix field names.
3193 (i386_ymm_type): Fix field names.
3194
7a4e8e7d
TBA
31952020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3196
3197 * breakpoint.c: Fix typo in the help message of the
3198 "set breakpoint condition-evaluation" command.
3199
cf4ac4be
KR
32002020-09-10 Kamil Rytarowski <n54@gmx.com>
3201
3202 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3203 * (nbsd_nat_target::pid_to_exec_file)
3204 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3205 (nbsd_nat_target::post_startup_inferior)
3206 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3207 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3208 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3209 * (nbsd_thread_lister): Remove.
3210
f404573e
KR
32112020-09-10 Kamil Rytarowski <n54@gmx.com>
3212
3213 * fork-inferior.c (startup_inferior): Avoid double free.
3214
1ccb2c17
KR
32152020-09-10 Kamil Rytarowski <n54@gmx.com>
3216
3217 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3218 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3219
feedfcc7
KR
32202020-09-10 Kamil Rytarowski <n54@gmx.com>
3221
3222 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3223 * netbsd-nat.c: Include <sys/ptrace.h>.
3224 * (netbsd_nat::enable_proc_events): Add.
3225
c489f8c6
KR
32262020-09-10 Kamil Rytarowski <n54@gmx.com>
3227
3228 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3229 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3230 (netbsd_nat::for_each_thread): Add.
3231 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3232 "gdbsupport/common-debug.h".
3233 * (netbsd_nat::netbsd_thread_lister)
3234 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3235 (netbsd_nat::for_each_thread): Add.
3236
330662f6
KR
32372020-09-10 Kamil Rytarowski <n54@gmx.com>
3238
3239 * netbsd-nat.h: Include <unistd.h>.
3240 * (netbsd_nat::pid_to_exec_file): Add.
3241 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3242 * (netbsd_nat::pid_to_exec_file) Add.
3243
70b67307
KR
32442020-09-10 Kamil Rytarowski <n54@gmx.com>
3245
3246 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3247
99cf6da6
KR
32482020-09-10 Kamil Rytarowski <n54@gmx.com>
3249
3250 * netbsd-nat.h: New file.
3251 * netbsd-nat.c: Likewise.
3252
1b788fb6
TT
32532020-09-09 Tom Tromey <tromey@adacore.com>
3254
3255 * ada-lang.c (remove_extra_symbols): Do not increment when
3256 removing an element
3257
03b0a45f
TT
32582020-09-08 Tom Tromey <tromey@adacore.com>
3259
3260 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3261
3cae4447
TT
32622020-09-08 Tom Tromey <tromey@adacore.com>
3263
3264 PR win32/25302:
3265 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3266 (gdb_bfd_init_data): New function.
3267 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3268
7f08fd51
TBA
32692020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 * infrun.c (fetch_inferior_event): Use
3272 `switch_to_target_no_thread` to switch the target.
3273
3e6ff933
TT
32742020-09-06 Tom Tromey <tom@tromey.com>
3275
3276 * symfile.h (dwarf2_free_objfile): Don't declare.
3277
e56798df
AKS
32782020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3279
3280 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3281 to match 16 byte real/complex type generated by Flang compiler.
3282
8f5c6526
TV
32832020-09-03 Tom de Vries <tdevries@suse.de>
3284
3285 PR breakpoint/26546
3286 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3287 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3288
c5065df0
SM
32892020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * maint.c (index_digits): New function.
3292 (struct maint_print_section_data): Remove.
3293 (print_bfd_section_info): Remove print_data parameter, add arg
3294 and index_digits.
3295 (print_objfile_section_info): Likewise.
3296 (print_bfd_section_info_maybe_relocated): Likewise (plus
3297 objfile).
3298 (maintenance_info_sections): Adjust calls.
3299
02c6f3f1
TT
33002020-09-02 Tom Tromey <tromey@adacore.com>
3301
3302 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3303 for null pointers.
3304 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3305
ef5e5b0b
SM
33062020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * bcache.h (struct bcache) <insert>: Change type of `added` to
3309 pointer to bool.
3310 * bcache.c (bcache::insert): Likewise.
3311 * gdbtypes.c (check_types_worklist): Adjust.
3312 * psymtab.c (add_psymbol_to_bcache): Adjust.
3313
973695d6
KB
33142020-08-31 Kevin Buettner <kevinb@redhat.com>
3315
3316 * corelow.c (unordered_set): Include.
3317 (class core_target): Add field 'm_core_unavailable_mappings'.
3318 (core_target::build_file_mappings): Print only one warning
3319 per inaccessible file. Add unavailable/broken mappings
3320 to m_core_unavailable_mappings.
3321 (core_target::xfer_partial): Call...
3322 (core_target::xfer_memory_via_mappings): New method.
3323
264fc0e2
SM
33242020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3327 type to bool.
3328
2de01bdb
SM
33292020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3330
3331 * dwarf2/read.c (struct field_info): Fix indentation.
3332
f3bd50f1
SM
33332020-08-31 Simon Marchi <simon.marchi@efficios.com>
3334
3335 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3336 ordering in comment.
3337 * frame.c (frame_id_eq): Fix indentation.
3338
22b9b4b0
SL
33392020-08-31 Scott Linder <scott@scottlinder.com>
3340 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3343 inline frame ids in outer frame.
3344
84154d16
SM
33452020-08-31 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3348 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3349 (outer_frame_id): Use FID_STACK_OUTER instead of
3350 FID_STACK_INVALID.
3351 (frame_id_p): Don't check for outer_frame_id.
3352
8efaf6b3
SM
33532020-08-31 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3356 regnum/frame in value. Call allocate_value_lazy.
3357 * frame.c (frame_unwind_register_value): Use
3358 val_print_not_saved.
3359
fe1fe7ea
SM
33602020-08-31 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3363
f7c7700d
PA
33642020-08-29 Pedro Alves <pedro@palves.net>
3365
3366 * progspace.c (print_program_space): Use all_inferiors. Switch to
3367 the inferior before calling target_pid_to_str.
3368
e0814aae
TT
33692020-08-28 Tom Tromey <tom@tromey.com>
3370
3371 * xcoffread.c (xcoff_end_psymtab): Update comment.
3372 * dbxread.c (dbx_end_psymtab): Update comment.
3373
626d2320
TV
33742020-08-28 Tom de Vries <tdevries@suse.de>
3375
3376 PR breakpoint/26544
3377 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3378 event_location.
3379 (create_breakpoint): Same.
3380 (base_breakpoint_decode_location): Same.
3381 (bkpt_create_sals_from_location): Same.
3382 (bkpt_decode_location): Same.
3383 (bkpt_probe_create_sals_from_location): Same.
3384 (bkpt_probe_decode_location): Same.
3385 (tracepoint_create_sals_from_location): Same.
3386 (tracepoint_decode_location): Same.
3387 (tracepoint_probe_decode_location): Same.
3388 (strace_marker_create_sals_from_location): Same.
3389 (strace_marker_decode_location): Same.
3390 (create_sals_from_location_default): Same.
3391 (decode_location_default): Same.
3392 * breakpoint.h (struct breakpoint_ops): Same.
3393 (create_breakpoint): Same.
3394 * linespec.h (decode_line_full): Same.
3395 * linespec.c (decode_line_full): Same. Throw error if
3396 result.size () == 0.
3397
df631783
PA
33982020-08-27 Pedro Alves <pedro@palves.net>
3399
3400 PR gdb/26524
3401 * breakpoint.c (until_break_fsm) <location_breakpoint,
3402 caller_breakpoint>: Delete fields.
3403 <breakpoints>: New field.
3404 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3405 two individual breakpoints.
3406 (until_break_fsm::should_stop): Loop over breakpoints in the
3407 breakpoint vector.
3408 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3409 vector.
3410 (until_break_command): Handle location expanding into multiple
3411 sals.
3412
b2b38aa4
PA
34132020-08-27 Pedro Alves <pedro@palves.net>
3414
3415 PR gdb/26523
3416 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3417 bp_until breakpoints user-specified locations. Update intro
3418 comment.
3419
b886559f
SM
34202020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3421
3422 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3423 gdb_bfd_sections): New.
3424 * maint.c (print_bfd_section_info): Change param type to
3425 maint_print_section_data.
3426 (print_objfile_section_info): Likewise.
3427 (print_bfd_section_info_maybe_relocated): Likewise.
3428 (maintenance_info_sections): Use gdb_bfd_sections.
3429
4c6e63bf
SV
34302020-08-25 Shahab Vahedi <shahab@synopsys.com>
3431
3432 * MAINTAINERS: Add ARC target and maintainer.
3433
8d7f0635
AK
34342020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3435
3436 * configure.tgt: ARC support for GNU/Linux.
3437 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3438 * arc-linux-tdep.c: New file.
3439 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3440 * arc-tdep.c (arc_write_pc): Use it.
3441
fdd8731b
SV
34422020-08-25 Shahab Vahedi <shahab@synopsys.com>
3443
3444 * arc-tdep.c (arc_check_for_hardware_loop): New.
3445 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3446
22459524
SV
34472020-08-25 Shahab Vahedi <shahab@synopsys.com>
3448
3449 * arc-tdep.h: Include "gdbarch.h".
3450
995d3a19
SV
34512020-08-25 Shahab Vahedi <shahab@synopsys.com>
3452
3453 * arch/arc.h
3454 (arc_gdbarch_features): New class to stir the selection of target XML.
3455 (arc_create_target_description): Use FEATURES to choose XML target.
3456 (arc_lookup_target_description): Use arc_create_target_description
3457 to create _new_ target descriptions or return the already created
3458 ones if the FEATURES is the same.
3459 * arch/arc.c: Implementation of prototypes described above.
3460 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3461 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3462 * arc-tdep.c (*_feature_name): Make feature names consistent.
3463 (arc_register_feature): A new struct to hold information about
3464 registers of a particular target/feature.
3465 (arc_check_tdesc_feature): Check if XML provides registers in
3466 compliance with ARC_REGISTER_FEATURE structs.
3467 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3468 (determine_*_reg_feature_set): Which feature name to look for.
3469 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3470 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3471 to expected ISA enums to be used in arc_gdbarch_features structs.
3472 * features/Makefile (FEATURE_XMLFILES): Add new files.
3473 * gdb/features/arc/v1-aux.c: New file.
3474 * gdb/features/arc/v1-aux.xml: Likewise.
3475 * gdb/features/arc/v1-core.c: Likewise.
3476 * gdb/features/arc/v1-core.xml: Likewise.
3477 * gdb/features/arc/v2-aux.c: Likewise.
3478 * gdb/features/arc/v2-aux.xml: Likewise.
3479 * gdb/features/arc/v2-core.c: Likewise.
3480 * gdb/features/arc/v2-core.xml: Likewise.
3481 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3482
3945d2d7
GM
34832020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3484 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 PR m2/26372
fc5d6901 3487 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3488 an assert. Remove single element array indexing pattern as the
3489 MULTI_SUBSCRIPT support will handle this case too.
3490
2677f2d3
SM
34912020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3492
3493 * value.h (valprint_check_validity): Move declaration from
3494 here...
3495 * valprint.h (valprint_check_validity): ... to here.
3496
c426fddb
SM
34972020-08-24 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * debug.h: New file.
3500 * debug.c (debug_prefixed_vprintf): New function.
3501 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3502 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3503
1eb8556f
SM
35042020-08-24 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * infrun.h (infrun_debug_printf_1): New function declaration.
3507 (infrun_debug_printf): New macro.
3508 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3509 throughout.
3510 (infrun_debug_printf): New function.
3511 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3512 (handle_jit_event): Likewise.
3513
b8fff44e
MW
35142020-08-21 Mark Wielaard <mark@klomp.org>
3515
3516 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3517
d19c3068
SM
35182020-08-22 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * frame.c (enum class frame_id_status): New.
3521 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3522 (fprintf_frame): Update.
3523 (compute_frame_id): Set frame id status to "computing" on entry.
3524 Set it back to "not_computed" on failure and to "computed" on
3525 success.
3526 (get_frame_id): Assert the frame id is not being computed.
3527 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3528 (create_new_frame): Likewise.
3529 (frame_cleanup_after_sniffer): Update assert.
3530
b70e516e
SM
35312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * regcache.c (pid_ptid_regcache_map): New type.
3534 (target_ptid_regcache_map): Remove.
3535 (target_pid_ptid_regcache_map): New type.
3536 (regcaches): Change type to target_pid_ptid_regcache_map.
3537 (get_thread_arch_aspace_regcache): Update.
3538 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3539 case.
3540 (regcaches_size): Update.
3541 (regcache_count): Update.
3542 (registers_changed_ptid_target_pid_test): New.
3543 (_initialize_regcache): Register new test.
3544
cdd9148a
SM
35452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3546
3547 * regcache.c (regcache_count): New.
3548 (struct regcache_test_data): New.
3549 (regcache_test_data_up): New.
3550 (populate_regcaches_for_test): New.
3551 (regcaches_test): Remove.
3552 (get_thread_arch_aspace_regcache_test): New.
3553 (registers_changed_ptid_all_test): New.
3554 (registers_changed_ptid_target_test): New.
3555 (registers_changed_ptid_target_ptid_test): New.
3556 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3557 (_initialize_regcache): Register new tests.
3558
dd125343
SM
35592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3560
3561 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3562 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3563 gdbarch and aspace parameter. Use current inferior's aspace.
3564 Validate regcache's arch value.
3565 (regcaches_test): Update.
3566
3ee93972
SM
35672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * regcache.c (regcaches_test): Call registers_changed.
3570
33bf4c5c
TBA
35712020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3572
3573 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3574
c2fd7fae
AKS
35752020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3576
3577 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3578 to find the end of prologue for flang compiled binaries.
3579 * arm-tdep.c (arm_skip_prologue): Likewise.
3580 * i386-tdep.c (i386_skip_prologue): Likewise.
3581 * producer.c (producer_is_llvm): New function.
3582 (producer_parsing_tests): Added new tests for clang/flang.
3583 * producer.h (producer_is_llvm): New declaration.
3584
9327494e
SM
35852020-08-18 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * linux-nat.c (linux_nat_debug_printf): New function.
3588 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3589
d138725a
AM
35902020-08-18 Aaron Merey <amerey@redhat.com>
3591
3592 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3593 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3594 (CLIBS): Add DEBUGINFOD_LIBS.
3595
f9b11e6b
ST
35962020-08-17 Sergei Trofimovich <siarheit@google.com>
3597
3598 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3599 'gdbarch_num_regs'.
3600
3ae7ab99
TT
36012020-08-17 Tom Tromey <tromey@adacore.com>
3602
3603 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3604 ada_get_decoded_value returns NULL.
3605
b017825f
TT
36062020-08-17 Tom Tromey <tromey@adacore.com>
3607
3608 * python/py-inferior.c (infpy_search_memory): Use
3609 gdb_py_object_from_ulongest.
3610 * python/py-infevents.c (create_inferior_call_event_object)
3611 (create_memory_changed_event_object): Use
3612 gdb_py_object_from_ulongest.
3613 * python/py-linetable.c (ltpy_entry_get_pc): Use
3614 gdb_py_object_from_ulongest.
3615
7635cf79
SM
36162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * loc.c (class symbol_needs_eval_context): Fix indentation.
3619
f54be24b
SM
36202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3623 bool.
3624
53d5a2a5
TV
36252020-08-17 Tom de Vries <tdevries@suse.de>
3626
3627 PR gdb/26393
3628 * gdbtypes.c (dump_dynamic_prop): New function.
3629 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3630
547ce8f0
TV
36312020-08-15 Tom de Vries <tdevries@suse.de>
3632
3633 PR backtrace/26390
3634 * stack.c (print_frame_args): Temporarily set the selected
3635 frame to FRAME while printing the frame's arguments.
3636
6ea815e7
PFC
36372020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3638
3639 PR breakpoints/26385
3640 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3641 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3642
6e562fa3
PFC
36432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3644
3645 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3646 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3647 and >= to check return value instead of == -1 and != -1.
3648
d369b608
SM
36492020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3650
3651 * utils.h (class gdb_argv) <as_array_view>: New method.
3652 * utils.c (gdb_argv_as_array_view_test): New.
3653 (_initialize_utils): Register selftest.
3654 * maint.c (maintenance_selftest): Use the new method.
3655
b31488a3
KR
36562020-08-13 Kamil Rytarowski <n54@gmx.com>
3657
3658 * target.h (supports_dumpcore, dumpcore): New
3659 function declarations.
3660 * target.c (supports_dumpcore, dumpcore): New
3661 functions.
3662 * target-delegates.c: Rebuild.
3663 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3664 and target_dumpcore ().
3665
002a3166
AM
36662020-08-13 Aaron Merey <amerey@redhat.com>
3667
3668 * debuginfod-support.c: Replace global variables with user_data.
3669
ece5bc8a
SM
36702020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * maint.c (maintenance_selftest): Split args and pass array_view
3673 to run_tests.
3674
6d8a0a5e
LM
36752020-08-12 Luis Machado <luis.machado@linaro.org>
3676
3677 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3678 type's length.
3679 Use %s and pulongest to print the length.
3680
7cf663a9
PA
36812020-08-12 Pedro Alves <palves@redhat.com>
3682
3683 * NEWS: Move "Multi-target debugging support" item to the
3684 "Changes since GDB 9" section.
3685
27c7b875
PA
36862020-08-12 Pedro Alves <palves@redhat.com>
3687
3688 PR gdb/26336
3689 * progspace.c (program_space::remove_objfile): Invalidate the
3690 frame cache.
3691
1796a2a1
TV
36922020-08-11 Tom de Vries <tdevries@suse.de>
3693
3694 * MAINTAINERS: Mark ms1 as deleted.
3695
f8e3fe0d
LM
36962020-08-10 Luis Machado <luis.machado@linaro.org>
3697
3698 PR gdb/26310
3699
3700 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3701 act accordingly.
3702 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3703 movz/str/stur/stp skipping behavior.
3704
cc308722
LM
37052020-08-10 Luis Machado <luis.machado@linaro.org>
3706
3707 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3708 struct user_sve_header instead of struct sve_context.
3709
041d9819
SM
37102020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * read.h (dwarf2_fetch_die_loc_sect_off,
3713 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3714 `void *` parameter with function_view.
3715 * read.c (dwarf2_fetch_die_loc_sect_off,
3716 dwarf2_fetch_die_loc_cu_off): Likewise.
3717 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3718 (per_cu_dwarf_call): Adjust.
3719 (get_frame_address_in_block_wrapper): Remove.
3720 (indirect_synthetic_pointer): Adjust.
3721 (get_ax_pc): Remove.
3722 (dwarf2_compile_expr_to_ax): Adjust.
3723
38f8aa06
TV
37242020-08-08 Tom de Vries <tdevries@suse.de>
3725
3726 PR build/26344
3727 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3728 constructor.
3729 * regcache.c (get_thread_arch_aspace_regcache): Same.
3730
a52b3ae2
TT
37312020-08-07 Tom Tromey <tromey@adacore.com>
3732
3733 * ravenscar-thread.c
3734 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3735 New method.
3736 (ravenscar_thread_target::wait): Check
3737 runtime_initialized.
3738 (ravenscar_thread_target::prepare_to_store)
3739 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3740 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3741 (ravenscar_thread_target::stopped_by_watchpoint)
3742 (ravenscar_thread_target::stopped_data_address)
3743 (ravenscar_thread_target::core_of_thread): Use
3744 scoped_restore_current_thread and
3745 set_base_thread_from_ravenscar_task.
3746
0e29517d
TT
37472020-08-07 Tom Tromey <tromey@adacore.com>
3748
3749 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3750
592f9bd7
TT
37512020-08-07 Tom Tromey <tromey@adacore.com>
3752
3753 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3754 update_inferior_ptid before update_thread_list.
3755 (temporarily_change_regcache_ptid): New class.
3756 (ravenscar_thread_target::fetch_registers)
3757 (ravenscar_thread_target::store_registers)
3758 (ravenscar_thread_target::prepare_to_store): Use base thread when
3759 forwarding operation.
3760
39e2018a
TT
37612020-08-07 Tom Tromey <tromey@adacore.com>
3762
3763 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3764 "is_pid" case.
3765
2080266b
TT
37662020-08-07 Tom Tromey <tromey@adacore.com>
3767
3768 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3769 New methods.
3770 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3771 first.
3772 (ravenscar_thread_target::add_thread): Rename from
3773 ravenscar_add_thread.
3774 (ravenscar_thread_target::update_thread_list): Use a lambda.
3775 (ravenscar_thread_target::xfer_partial): New method.
3776
78c02f21
TT
37772020-08-07 Tom Tromey <tromey@adacore.com>
3778
3779 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3780 gdb::function_view.
3781 (iterate_over_live_ada_tasks): Change type of argument.
3782 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3783 of argument.
3784
d5d833af
TT
37852020-08-07 Tom Tromey <tromey@adacore.com>
3786
3787 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3788 Remove.
3789 (ravenscar_thread_target::extra_thread_info): Remove.
3790 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3791 defer to target beneath for non-Ravenscar threads.
3792
a8ac85bb
TT
37932020-08-07 Tom Tromey <tromey@adacore.com>
3794
3795 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3796 get_base_thread_from_ravenscar_task>: Now methods.
3797 <m_cpu_map>: New member.
3798 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3799 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3800 (ravenscar_thread_target::task_is_currently_active): Update.
3801 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3802 Now a method.
3803 (ravenscar_thread_target::add_active_thread): Put initial thread
3804 into the m_cpu_map.
3805
550ab58d
TT
38062020-08-07 Tom Tromey <tromey@adacore.com>
3807
3808 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3809 event_ptid.
3810
e9546579
TT
38112020-08-07 Tom Tromey <tromey@adacore.com>
3812
3813 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3814 runtime_initialized.
3815
3d4470e5
TT
38162020-08-07 Tom Tromey <tromey@adacore.com>
3817
3818 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3819 add_active_thread.
3820 (ravenscar_thread_target::add_active_thread): Now public.
3821 (ravenscar_inferior_created): Call add_active_thread after pushing
3822 the target.
3823
888bdb2b
SM
38242020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3825
3826 * regcache.c (ptid_regcache_map): New type.
3827 (target_ptid_regcache_map): New type.
3828 (regcaches): Change type to target_ptid_regcache_map.
3829 (get_thread_arch_aspace_regcache): Update to regcaches' new
3830 type.
3831 (regcache_thread_ptid_changed): Likewise.
3832 (registers_changed_ptid): Likewise.
3833 (regcaches_size): Likewise.
3834 (regcaches_test): Update.
3835 (regcache_thread_ptid_changed): Update.
3836 * regcache.h (regcache_up): New type.
3837 * gdbsupport/ptid.h (hash_ptid): New struct.
3838
b161a60d
SM
38392020-08-07 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * observable.h (thread_ptid_changed): Add parameter
3842 `process_stratum_target *`.
3843 * infrun.c (infrun_thread_ptid_changed): Add parameter
3844 `process_stratum_target *` and use it.
3845 (selftests): New namespace.
3846 (infrun_thread_ptid_changed): New function.
3847 (_initialize_infrun): Register selftest.
3848 * regcache.c (regcache_thread_ptid_changed): Add parameter
3849 `process_stratum_target *` and use it.
3850 (regcache_thread_ptid_changed): New function.
3851 (_initialize_regcache): Register selftest.
3852 * thread.c (thread_change_ptid): Pass target to
3853 thread_ptid_changed observable.
3854
d2854d8d
CT
38552020-08-06 Caroline Tice <cmtice@google.com>
3856
fe4c3d43
SM
3857 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3858 (struct dwp_sections): Update field comments. Add loclists and
3859 rnglists fields.
3860 (struct virtual_v2_dwo_sections): Rename struct to
3861 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3862 size & offset fields for loclists and rnglists.
3863 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3864 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3865 skipping dummy type units.
3866 (create_dwp_hash_table): Update the large comment above the function to
3867 discuss Version 5 DWP files as well, with references. Update all the
3868 version checks in the function to check for version 5 as well. Add new
3869 section at the end to create dwp hash table for version 5.
3870 (create_dwp_v2_section): Rename function to
3871 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3872 Add V5 to error message text.
3873 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3874 into calls to create_dwp_v2_or_v5_section.
3875 (create_dwo_unit_in_dwp_v5): New function.
3876 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3877 check for version2; add else clause to handle version 5.
3878 (open_and_init_dwo_file): Add code to check dwarf version & only call
3879 create_debug_types_hash_table (with sections.types) if version is not 5;
3880 else call create_debug_type_hash_table, with sections.info.
3881 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3882 version 5.
3883 (dwarf2_locate_v5_dwp_sections): New function.
3884 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3885 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3886
159ed7d9
SM
38872020-08-06 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * regcache.h (class regcache): Remove friend
3890 registers_changed_ptid.
3891 <regcache_thread_ptid_changed>: Remove.
3892 <regcaches>: Remove.
3893 * regcache.c (regcache::regcaches): Rename to...
3894 (regcaches): ... this. Make static.
3895 (get_thread_arch_aspace_regcache): Update.
3896 (regcache::regcache_thread_ptid_changed): Rename to...
3897 (regcache_thread_ptid_changed): ... this. Update.
3898 (class regcache_access): Remove.
3899 (regcaches_test): Update.
3900 (_initialize_regcache): Update.
3901 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3902 <forward_list>.
3903
174981ae
SM
39042020-08-06 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * regcache.h (class regcache) <current_regcache>: Rename to...
3907 <regcaches>: ... this. Move doc here.
3908 * regcache.c (regcache::current_regcache) Rename to...
3909 (regcache::regcaches): ... this. Move doc to header.
3910 (get_thread_arch_aspace_regcache): Update.
3911 (regcache::regcache_thread_ptid_changed): Update.
3912 (registers_changed_ptid): Update.
3913 (class regcache_access) <current_regcache_size>: Rename to...
3914 <regcaches_size>: ... this.
3915 (current_regcache_test): Rename to...
3916 (regcaches_test): ... this.
3917 (_initialize_regcache): Update.
3918
ed908db6
VC
39192020-08-06 Victor Collod <vcollod@nvidia.com>
3920
3921 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3922
b5582ab7
KB
39232020-08-05 Kevin Buettner <kevinb@redhat.com>
3924
3925 * corelow.c (core_target::build_file_mappings): Don't output
3926 null pathname in warning.
3927
ea946b86
SM
39282020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3929
3930 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3931 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3932 gdb.dwarf2/dw2-single-line-discriminators.exp,
3933 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3934
57d02173
TT
39352020-08-05 Tom Tromey <tromey@adacore.com>
3936
3937 PR rust/26197:
3938 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3939 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3940 Fix off-by-one and type size errors in ordinary case.
3941
5555c86d
TV
39422020-08-05 Tom de Vries <tdevries@suse.de>
3943
3944 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3945 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3946
97916bfe
SM
39472020-08-04 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * frame.h (frame_id_p): Return bool.
3950 (frame_id_artificial_p): Return bool.
3951 (frame_id_eq): Return bool.
3952 (has_stack_frames): Return bool.
3953 (get_selected_frame): Fix typo in comment.
3954 (get_frame_pc_if_available): Return bool.
3955 (get_frame_address_in_block_if_available): Return bool.
3956 (get_frame_func_if_available): Return bool.
3957 (read_frame_register_unsigned): Return bool.
3958 (get_frame_register_bytes): Return bool.
3959 (safe_frame_unwind_memory): Return bool.
3960 (deprecated_frame_register_read): Return bool.
3961 (frame_unwinder_is): Return bool.
3962 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3963 bool.
3964 <this_id::p>: Likewise.
3965 <prev_p>: Likewise.
3966 (frame_stash_add): Return bool.
3967 (get_frame_id): Use bool.
3968 (frame_id_build_special) Use bool.
3969 (frame_id_build_unavailable_stack): Use bool.
3970 (frame_id_build): Use bool.
3971 (frame_id_p): Return bool, use true/false instead of 1/0.
3972 (frame_id_artificial_p): Likewise.
3973 (frame_id_eq): Likewise.
3974 (frame_id_inner): Likewise.
3975 (get_frame_func_if_available): Likewise.
3976 (read_frame_register_unsigned): Likewise.
3977 (deprecated_frame_register_read): Likewise.
3978 (get_frame_register_bytes): Likewise.
3979 (has_stack_frames): Likewise.
3980 (inside_main_func): Likewise.
3981 (inside_entry_func): Likewise.
3982 (get_frame_pc_if_available): Likewise.
3983 (get_frame_address_in_block_if_available): Likewise.
3984 (frame_unwinder_is): Likewise.
3985 (safe_frame_unwind_memory): Likewise.
3986 (frame_unwind_arch): Likewise.
3987
fedfee88
SM
39882020-08-04 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3991 type to cached_copy_status.
3992 (fprintf_frame): Adjust.
3993 (get_frame_func_if_available): Adjust.
3994 (frame_cleanup_after_sniffer): Adjust.
3995
6cfa9b59
MW
39962020-08-04 Mark Wielaard <mark@klomp.org>
3997
3998 * MAINTAINERS (Write After Approval): Update email address.
3999
66d6346b
SM
40002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4003 dynamic_prop::const_val.
4004
8a6d5e35
SM
40052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4008 dynamic_prop::kind.
4009
51d6067d
SM
40102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4011
4012 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4013
b26e2ae7
JM
40142020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4015
4016 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4017
39791af2
JM
40182020-08-04 Weimin Pan <weimin.pan@oracle.com>
4019 Jose E. Marchesi <jose.marchesi@oracle.com>
4020
4021 * configure.tgt: Add entry for bpf-*-*.
4022 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4023 (ALLDEPFILES): Add bpf-tdep.c.
4024 * bpf-tdep.c: New file.
4025 * MAINTAINERS: Add bpf target and maintainer.
4026 * NEWS: Mention the support for the new target.
4027
521894aa
TV
40282020-08-04 Tom de Vries <tdevries@suse.de>
4029
4030 PR symtab/23270
4031 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4032 Error.
4033
5d6356e9
JB
40342020-08-03 John Baldwin <jhb@FreeBSD.org>
4035
4036 * syscalls/freebsd.xml: Regenerate.
4037
0cf82b81
JB
40382020-08-03 John Baldwin <jhb@FreeBSD.org>
4039
4040 * syscalls/update-freebsd.sh: Fix usage and year range.
4041
8f34b746
TV
40422020-08-03 Tom de Vries <tdevries@suse.de>
4043
4044 PR symtab/26333
4045 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4046 DW_LNE_lo_user/DW_LNE_hi_user range.
4047
5e500d33
SM
40482020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 PR ada/26318
4051 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4052 kind.
4053
78319c15
TBA
40542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4057
4c55e970
TBA
40582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4059
4060 * breakpoint.c (set_breakpoint_condition): Update the condition
4061 expressions after checking that the input condition string parses
4062 successfully and does not contain junk at the end.
4063
1e620590
TBA
40642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065
4066 * breakpoint.c (set_breakpoint_condition): Update the
4067 condition string after parsing the new condition successfully.
4068
c8693053
RO
40692020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4070
4071 * proc-api.c (_STRUCTURED_PROC): Don't define.
4072 * proc-events.c: Likewise.
4073 * proc-flags.c: Likewise.
4074 * proc-why.c: Likewise.
4075 * procfs.c: Likewise.
4076
4077 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4078 * configure, config.in: Regenerate.
4079
5a99adb8
TV
40802020-07-30 Tom de Vries <tdevries@suse.de>
4081
4082 PR build/26320
4083 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4084 m_red/m_green/m_blue in a union.
4085
8ba83e91
TV
40862020-07-29 Tom de Vries <tdevries@suse.de>
4087
4088 PR tdep/26280
4089 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4090
f75a0693
AB
40912020-07-28 Tom Tromey <tromey@adacore.com>
4092
4093 PR symtab/26270:
4094 * symtab.h (find_pc_partial_function_sym): Declare.
4095 * cli/cli-cmds.c (disassemble_command): Use
4096 find_pc_partial_function_sym. Check asm_demangle.
4097 * blockframe.c (cache_pc_function_sym): New global.
4098 (cache_pc_function_name): Remove.
4099 (clear_pc_function_cache): Update.
4100 (find_pc_partial_function_sym): New function, from
4101 find_pc_partial_function.
4102 (find_pc_partial_function): Rewrite using
4103 find_pc_partial_function_sym.
4104
16f3242c
TT
41052020-07-28 Tom Tromey <tromey@adacore.com>
4106
4107 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4108 help. Add usage.
4109
4888741a
TT
41102020-07-28 Tom Tromey <tromey@adacore.com>
4111
4112 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4113 <DW_OP_GNU_variable_value>: Cast to address type.
4114
4d46f402
KR
41152020-07-28 Kamil Rytarowski <n54@gmx.com>
4116
4117 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4118 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4119 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4120 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4121 (nbsd_get_siginfo_type): New.
4122 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4123 (_initialize_nbsd_tdep): New.
4124
d70f978b
L
41252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4126
4127 PR binutils/26301
4128 * configure: Regenerated.
4129
377170fa
L
41302020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4131
4132 PR binutils/26301
4133 * configure: Regenerated.
4134
43d5901d
AB
41352020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4136
4137 * python/py-frame.c: Remove 'user-regs.h' include.
4138 (frapy_read_register): Rewrite to make use of
4139 gdbpy_parse_register_id.
4140 * python/py-registers.c (gdbpy_parse_register_id): New function,
4141 moved here from python/py-unwind.c. Updated the return type, and
4142 also accepts register descriptor objects.
4143 * python/py-unwind.c: Remove 'user-regs.h' include.
4144 (pyuw_parse_register_id): Moved to python/py-registers.c.
4145 (unwind_infopy_add_saved_register): Update to use
4146 gdbpy_parse_register_id.
4147 (pending_framepy_read_register): Likewise.
4148 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4149
14fa8fb3
AB
41502020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * python/py-registers.c: Add 'user-regs.h' include.
4153 (register_descriptor_iter_find): New function.
4154 (register_descriptor_iterator_object_methods): New static global
4155 methods array.
4156 (register_descriptor_iterator_object_type): Add pointer to methods
4157 array.
4158
ddce1758
JB
41592020-07-27 John Baldwin <jhb@FreeBSD.org>
4160
4161 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4162 for all architectures on FreeBSD 11.3 and later.
4163
a4089f52
TT
41642020-07-27 Tom Tromey <tromey@adacore.com>
4165
4166 * gcore.h (load_corefile): Don't declare.
4167
95420d30
TV
41682020-07-27 Tom de Vries <tdevries@suse.de>
4169
4170 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4171 * config.in: Regenerate.
4172 * configure: Regenerate.
4173
05a6b8c2
EZ
41742020-07-26 Eli Zaretskii <eliz@gnu.org>
4175
4176 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4177 ws2tcpip.h. When checking whether socklen_t type is defined, use
4178 ws2tcpip.h if it is available and sys/socket.h isn't.
4179 * configure: Regenerate.
4180 * config.in: Regenerate.
4181
e79eb02f
AB
41822020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4183
4184 PR fortran/23051
4185 PR fortran/26139
4186 * valops.c (value_ind): Pass address to
4187 readjust_indirect_value_type.
4188 * value.c (readjust_indirect_value_type): Make parameter
4189 non-const, and add extra address parameter. Resolve original type
4190 before using it.
4191 * value.h (readjust_indirect_value_type): Update function
4192 signature and comment.
4193
876518dd
TV
41942020-07-25 Tom de Vries <tdevries@suse.de>
4195
4196 PR symtab/26243
4197 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4198 entries.
4199
f6720b1c
AM
42002020-07-24 Aaron Merey <amerey@redhat.com>
4201
4202 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4203 * configure: Rebuild.
4204
513487e1
KB
42052020-07-23 Kevin Buettner <kevinb@redhat.com>
4206
4207 PR corefiles/26294
4208 * corelow.c (_initialize_corelow): Add period to help text
4209 for "maintenance print core-file-backed-mappings".
4210
e7bc9db8
PA
42112020-07-23 Pedro Alves <pedro@palves.net>
4212
4213 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4214 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4215 meanwhile.
4216 * frame.c (frame_cache_generation, get_frame_cache_generation):
4217 New.
4218 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4219 (get_prev_frame_if_no_cycle): On exception, don't touch
4220 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4221 * frame.h (get_frame_cache_generation): Declare.
4222
90fcc466
TV
42232020-07-23 Tom de Vries <tdevries@suse.de>
4224
4225 PR tui/26282
4226 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4227 New default constructor.
4228
78344df7
AB
42292020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4232 exclude non-statement entries.
4233
b089853a
KB
42342020-07-22 Kevin Buettner <kevinb@redhat.com>
4235
4236 * NEWS (New commands): Mention new command
4237 "maintenance print core-file-backed-mappings".
4238
09c2f5d4
KB
42392020-07-22 Kevin Buettner <kevinb@redhat.com>
4240
4241 * corelow.c (gdbcmd.h): Include.
4242 (core_target::info_proc_mappings): New method.
4243 (get_current_core_target): New function.
4244 (maintenance_print_core_file_backed_mappings): New function.
4245 (_initialize_corelow): Add core-file-backed-mappings to
4246 "maint print" commands.
4247
9c5ec5c2 42482020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4249
9c5ec5c2
KB
4250 * linux-tdep.c (dump_note_entry_p): New function.
4251 (linux_dump_mapping_p_ftype): New typedef.
4252 (linux_find_memory_regions_full): Add new parameter,
4253 should_dump_mapping_p.
4254 (linux_find_memory_regions): Adjust call to
4255 linux_find_memory_regions_full.
4256 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4257 call to linux_find_memory_regions_full.
4258
db082f59
KB
42592020-07-22 Kevin Buettner <kevinb@redhat.com>
4260
4261 * corelow.c (solist.h, unordered_map): Include.
4262 (class core_target): Add field m_core_file_mappings and
4263 method build_file_mappings.
4264 (core_target::core_target): Call build_file_mappings.
4265 (core_target::~core_target): Free memory associated with
4266 m_core_file_mappings.
4267 (core_target::build_file_mappings): New method.
4268 (core_target::xfer_partial): Use m_core_file_mappings
4269 for memory transfers.
4270 * linux-tdep.c (linux_read_core_file_mappings): New
4271 function.
4272 (linux_core_info_proc_mappings): Rewrite to use
4273 linux_read_core_file_mappings.
4274 (linux_init_abi): Register linux_read_core_file_mappings.
4275
7e183d27
KB
42762020-07-22 Kevin Buettner <kevinb@redhat.com>
4277
4278 * arch-utils.c (default_read_core_file_mappings): New function.
4279 * arch-utils.c (default_read_core_file_mappings): Declare.
4280 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4281 * gdbarch.h, gdbarch.c: Regenerate.
4282
2735d421
KB
42832020-07-22 Kevin Buettner <kevinb@redhat.com>
4284
4285 PR corefiles/25631
4286 * corelow.c (core_target:xfer_partial): Revise
4287 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4288 case after first checking the stratum beneath the core
4289 target.
4290 (has_all_memory): Return true.
4291 * target.c (raw_memory_xfer_partial): Revise comment
4292 regarding use of has_all_memory.
4293
e56cb451
KB
42942020-07-22 Kevin Buettner <kevinb@redhat.com>
4295
4296 * exec.h (section_table_xfer_memory): Revise declaration,
4297 replacing section name parameter with an optional callback
4298 predicate.
4299 * exec.c (section_table_xfer_memory): Likewise.
4300 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4301 of section_table_xfer_memory.
4302
32fa152e
TT
43032020-07-22 Tom Tromey <tromey@adacore.com>
4304
4305 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4306 lookup_symbol_search_name.
4307
a67a1c41
AB
43082020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4309
4310 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4311 redundant local variable.
4312 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4313 reference, not pointer, update code accordingly.
4314
a7b4ff4f
SM
43152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4316 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4317
4318 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4319 * jit.c (jit_breakpoint_re_set_internal): Use the
4320 `skip_jit_symbol_lookup` field.
4321
2340e834
SM
43222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4323 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324
4325 * jit.c (jit_read_descriptor): Define the descriptor address once,
4326 use twice.
4327 (jit_breakpoint_deleted): Move the declaration of the loop variable
4328 `iter` into the loop header.
4329 (jit_breakpoint_re_set_internal): Move the declaration of the local
4330 variable `objf_data` to the first point of definition.
4331 (jit_event_handler): Move the declaration of local variables
4332 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4333 Rename `objf` to `jited`.
4334
c1072906
SM
43352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4338 Remove.
4339 * jit.c (get_jiter_objfile_data): Update.
4340
c8474dc3
TBA
43412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342 Simon Marchi <simon.marchi@polymtl.ca>
4343
4344 * jit.c (struct jit_program_space_data): Remove.
4345 (jit_program_space_key): Remove.
4346 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4347 stuff.
4348 (get_jit_program_space_data): Remove.
4349 (jit_breakpoint_deleted): Iterate on all of the program space's
4350 objfiles.
4351 (jit_inferior_init): Likewise.
4352 (jit_breakpoint_re_set_internal): Likewise. Also change return
4353 type to void.
4354 (jit_breakpoint_re_set): Pass current_program_space to
4355 jit_breakpoint_re_set_internal.
4356
77208eb7
SM
43572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4358
4359 * jit.h (struct jiter_objfile_data) <cached_code_address,
4360 jit_breakpoint>: Move to here from ...
4361 * jit.c (jit_program_space_data): ... here.
4362 (jiter_objfile_data::~jiter_objfile_data): Update.
4363 (jit_breakpoint_deleted): Update.
4364 (jit_breakpoint_re_set_internal): Update.
4365
8c1c720f
SM
43662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4369 checks.
4370 (jit_read_descriptor): Remove NULL check.
4371 (jit_event_handler): Add an assertion.
4372
0e74a041
SM
43732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * jit.h (struct jit_objfile_data): Split into...
4376 (struct jiter_objfile_data): ... this ...
4377 (struct jited_objfile_data): ... and this.
4378 * objfiles.h (struct objfile) <jit_data>: Remove.
4379 <jiter_data, jited_data>: New fields.
4380 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4381 (jiter_objfile_data::~jiter_objfile_data): ... this.
4382 (get_jit_objfile_data): Rename to ...
4383 (get_jiter_objfile_data): ... this.
4384 (add_objfile_entry): Update.
4385 (jit_read_descriptor): Use get_jiter_objfile_data.
4386 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4387 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4388 (jit_inferior_exit_hook): Use objfile's jited_data field.
4389
238b5c9f
SM
43902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4391
4392 * jit.h: Forward-declare `struct minimal_symbol`.
4393 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4394 constructor, destructor, and an objfile* field.
4395 * jit.c (jit_objfile_data): Remove.
4396 (struct jit_objfile_data): Migrate from here to jit.h.
4397 (jit_objfile_data::~jit_objfile_data): New destructor
4398 implementation with code moved from free_objfile_data.
4399 (free_objfile_data): Delete.
4400 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4401 (jit_find_objf_with_entry_addr): Ditto.
4402 (jit_inferior_exit_hook): Ditto.
4403 (_initialize_jit): Remove the call to
4404 register_objfile_data_with_cleanup.
4405 * objfiles.h (struct objfile) <jit_data>: New field.
4406
fe053b9e
TBA
44072020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4408
4409 * jit.h: Forward-declare `struct objfile`.
4410 (jit_event_handler): Add a second parameter, the JITer objfile.
4411 * jit.c (jit_read_descriptor): Change the signature to take the
4412 JITer objfile as an argument instead of the jit_program_space_data.
4413 (jit_inferior_init): Update the call to jit_read_descriptor.
4414 (jit_event_handler): Use the new JITer objfile argument when calling
4415 jit_read_descriptor.
4416 * breakpoint.c (handle_jit_event): Update the call to
4417 jit_event_handler to pass the JITer objfile.
4418
4cec0c66
JB
44192020-07-21 John Baldwin <jhb@FreeBSD.org>
4420
4421 * gdbarch.c: Regenerate.
4422 * gdbarch.h: Regenerate.
4423 * gdbarch.sh (handle_segmentation_fault): Remove method.
4424 * infrun.c (handle_segmentation_fault): Remove.
4425 (print_signal_received_reason): Remove call to
4426 handle_segmentation_fault.
4427
0e42f66a
JB
44282020-07-21 John Baldwin <jhb@FreeBSD.org>
4429
4430 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4431 Rename to sparc64_linux_report_signal_info and add siggnal
4432 argument.
4433 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4434 instead of sparc64_linux_handle_segmentation_fault.
4435
77bdfeb2
JB
44362020-07-21 John Baldwin <jhb@FreeBSD.org>
4437
4438 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4439 i386_linux_report_signal_info instead of
4440 i386_linux_handle_segmentation_fault.
4441 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4442 to i386_linux_report_signal_info and add siggnal argument.
4443 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4444 of i386_linux_handle_segmentation_fault.
4445 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4446 to i386_linux_report_signal_info and add siggnal argument.
4447
ad97bfc5
JB
44482020-07-21 John Baldwin <jhb@FreeBSD.org>
4449
4450 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4451 hook if present.
4452
272bb05c
JB
44532020-07-21 John Baldwin <jhb@FreeBSD.org>
4454
4455 * gdbarch.c: Regenerate.
4456 * gdbarch.h: Regenerate.
4457 * gdbarch.sh (report_signal_info): New method.
4458 * infrun.c (print_signal_received_reason): Invoke gdbarch
4459 report_signal_info hook if present.
4460
baf8791e
AB
44612020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * python/py-registers.c : Add 'unordered_map' include.
4464 (gdbpy_new_reggroup): Renamed to...
4465 (gdbpy_get_reggroup): ...this. Update to only create register
4466 group descriptors when needed.
4467 (gdbpy_reggroup_iter_next): Update.
4468
f7306dac
AB
44692020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4470
4471 * python/py-registers.c (gdbpy_register_object_data): New static
4472 global.
4473 (gdbpy_register_object_data_init): New function.
4474 (gdbpy_new_register_descriptor): Renamed to...
4475 (gdbpy_get_register_descriptor): ...this, and update to reuse
4476 existing register descriptors where possible.
4477 (gdbpy_register_descriptor_iter_next): Update.
4478 (gdbpy_initialize_registers): Register new gdbarch data.
4479
05c309a8
SM
44802020-07-21 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * linux-nat.c (stopped_pids): Make static.
4483
d1fd641e
SM
44842020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 PR ada/26235
4487 * gdbtypes.c (ada_discrete_type_low_bound,
4488 ada_discrete_type_high_bound): Handle undefined bounds.
4489
1de14d77
KR
44902020-07-21 Kamil Rytarowski <n54@gmx.com>
4491
4492 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4493 declaration.
4494 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4495 function.
4496
ed810cc7
JB
44972020-07-20 John Baldwin <jhb@FreeBSD.org>
4498
4499 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4500 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4501 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4502 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4503 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4504 method.
4505
ae5369e7
LC
45062020-07-20 Ludovic Courtès <ludo@gnu.org>
4507
4508 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4509 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4510 which are deprecated in Guile 3.0.
4511 * configure.ac (try_guile_versions): Add "guile-3.0".
4512 * configure (try_guile_versions): Regenerate.
4513 * NEWS: Update entry.
4514
68cf161c
LC
45152020-07-20 Ludovic Courtès <ludo@gnu.org>
4516 Doug Evans <dje@google.com>
4517
4518 PR gdb/21104
4519 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4520 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4521 USING_GUILE_BEFORE_2_2.
4522 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4523 Change type to 'scm_t_port_type *'.
4524 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4525 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4526 parameter and honor it. Update callers.
4527 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4528 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4529 functions.
4530 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4531 USING_GUILE_BEFORE_2_2.
4532 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4533 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4534 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4535 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4536 and 'SCM_PORT_TYPE'.
4537 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4538 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4539 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4540 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4541 [!USING_GUILE_BEFORE_2_2]: New functions.
4542 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4543 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4544 'gdbscm_memory_port_read'.
4545 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4546 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4547 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4548 function.
4549 (ioscm_init_memory_port): Remove.
4550 (ioscm_init_memory_port_stream): New function
4551 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4552 function.
4553 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4554 Return scm_from_uint (0).
4555 (gdbscm_set_memory_port_read_buffer_size_x)
4556 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4557 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4558 Return scm_from_uint (0).
4559 (gdbscm_set_memory_port_write_buffer_size_x)
4560 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4561 * configure.ac (try_guile_versions): Add "guile-2.2".
4562 * configure: Regenerate.
4563 * NEWS: Add entry.
4564
aee91db3
TT
45652020-07-18 Tom Tromey <tom@tromey.com>
4566
4567 * linux-nat.c (linux_multi_process): Remove.
4568 (linux_nat_target::supports_multi_process): Return true.
4569
0e267416
AB
45702020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4573 (riscv_lookup_target_description): Return pointer out of
4574 unique_ptr.
4575 * target-descriptions.c (allocate_target_description): Add
4576 comment.
4577 (target_desc_deleter::operator()): Likewise.
4578 * target-descriptions.h (struct target_desc_deleter): Moved to
4579 gdbsupport/tdesc.h.
4580 (target_desc_up): Likewise.
4581
f80c8ec4
TT
45822020-07-17 Tom Tromey <tromey@adacore.com>
4583
4584 * linux-nat.c (linux_nat_target::supports_non_stop)
4585 (linux_nat_target::always_non_stop_p): Use "true".
4586 (linux_nat_target::supports_disable_randomization): Use "true" and
4587 "false".
4588
d0ce17d8
CT
45892020-07-16 Caroline Tice <cmtice@google.com>
4590
4591 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4592 (RNGLIST_HEADER_SIZE64): New constant definition.
4593 (struct dwop_section_names): Add rnglists_dwo.
4594 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4595 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4596 (struct dwo_sections): Add rnglists field.
4597 (read_attribut_reprocess): Add tag parameter.
4598 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4599 (cu_debug_rnglists_section): New function (decl & definition).
4600 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4601 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4602 die whose range is being checked; get rnglist section from
4603 cu_debug_rnglists_section, to get from either objfile or dwo file as
4604 appropriate. Add cases for DW_RLE_base_addressx,
4605 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4606 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4607 test inside if-condition and updating complaint message.
4608 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4609 dwarf2_rnglists_process.
4610 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4611 dwarf2_ranges_process.
4612 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4613 need_ranges_base and update comment appropriately. Also pass die tag
4614 to dwarf2_ranges_read.
4615 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4616 need_ranges_base and update comment appropriately. Also pass die tag
4617 to dwarf2_ranges_process.
4618 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4619 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4620 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4621 need_ranges_base and update comment appropriately. Also pass die tag
4622 to read_attribute_reprocess and dwarf2_ranges_read.
4623 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4624 and update function comment appropriately.
4625 (read_loclist_index): Call read_loclists_rnglists_header instead of
4626 read_loclist_header.
4627 (read_rnglist_index): New function.
4628 (read_attribute_reprocess): Add tag parameter. Add code for
4629 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4630 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4631
3dcc261c
AB
46322020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4635 being resolved.
4636
ccb9eba6
AB
46372020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * arch-utils.c (show_architecture): Update formatting of messages.
4640
cf88be68
SM
46412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * gdbtypes.h (struct type) <bounds>: Handle array and string
4644 types.
4645 * ada-lang.c (assign_aggregate): Use type::bounds on
4646 array/string type.
4647 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4648 * c-varobj.c (c_number_of_children): Likewise.
4649 (c_describe_child): Likewise.
4650 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4651 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4652 (f_type_print_base): Likewise.
4653 * f-valprint.c (f77_array_offset_tbl): Likewise.
4654 (f77_get_upperbound): Likewise.
4655 (f77_print_array_1): Likewise.
4656 * guile/scm-type.c (gdbscm_type_range): Likewise.
4657 * m2-typeprint.c (m2_array): Likewise.
4658 (m2_is_long_set_of_type): Likewise.
4659 * m2-valprint.c (get_long_set_bounds): Likewise.
4660 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4661 * python/py-type.c (typy_range): Likewise.
4662 * rust-lang.c (rust_internal_print_type): Likewise.
4663 * type-stack.c (type_stack::follow_types): Likewise.
4664 * valarith.c (value_subscripted_rvalue): Likewise.
4665 * valops.c (value_cast): Likewise.
4666
509971ae
SM
46672020-07-12 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4670 callers to use the equivalent accessor methods.
4671
107406b7
SM
46722020-07-12 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4675 (struct type) <bit_stride>: New method.
4676 (TYPE_BIT_STRIDE): Remove.
4677 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4678
bb789949
SM
46792020-07-12 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4682 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4683 callers to use the equivalent accessor methods instead.
4684
39498edb
SM
46852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4688 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4689 callers to use the equivalent accessor methods instead.
4690
3b606f38
SM
46912020-07-12 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4694 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4695 to use dynamic_prop::kind.
4696
064d9cb9
SM
46972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4700 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4701 to get the bound property's kind and check against
4702 PROP_UNDEFINED.
4703
5537ddd0
SM
47042020-07-12 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4707 all callers to use type::range_bounds followed by
4708 dynamic_prop::{low,high}.
4709
8c2e4e06
SM
47102020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4711
4712 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4713 const_val, set_const_val, baton, set_locexpr, set_loclist,
4714 set_addr_offset, variant_parts, set_variant_parts,
4715 original_type, set_original_type>: New methods.
4716 <kind>: Rename to...
4717 <m_kind>: ... this. Update all users to use the new methods
4718 instead.
4719 <data>: Rename to...
4720 <m_data>: ... this. Update all users to use the new methods
4721 instead.
4722
7c6f2712
SM
47232020-07-12 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.c (get_discrete_bounds): Return failure if
4726 the range type's bounds are not both defined and constant
4727 values.
4728 (get_array_bounds): Update comment. Remove undefined bound check.
4729
599088e3
SM
47302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4733 the type::bounds method directly.
4734
c4dfcb36
SM
47352020-07-12 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4738 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4739 are used to set the range type's bounds to use set_bounds.
4740
0a278aa7
PW
47412020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742
4743 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4744
cce20f10
PA
47452020-07-10 Pedro Alves <pedro@palves.net>
4746
4747 * gdbthread.h (inferior_ref): Define.
4748 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4749 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4750 * thread.c
4751 (scoped_restore_current_thread::restore):
4752 Adjust to gdb::ref_ptr.
4753 (scoped_restore_current_thread::~scoped_restore_current_thread):
4754 Remove manual decref handling.
4755 (scoped_restore_current_thread::scoped_restore_current_thread):
4756 Adjust to use
4757 inferior_ref::new_reference/thread_info_ref::new_reference.
4758 Incref the thread before calling get_frame_id instead of after.
4759 Let TARGET_CLOSE_ERROR propagate.
4760
6d7aa592
PA
47612020-07-10 Pedro Alves <pedro@palves.net>
4762
4763 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4764 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4765 NOT_AVAILABLE_ERROR.
4766 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4767 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4768
b3e3a4c1
SM
47692020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4770 Pedro Alves <pedro@palves.net>
4771
4772 PR gdb/26199
4773 * infrun.c (threads_are_resumed_pending_p): Delete.
4774 (do_target_wait): Remove threads_are_executing and
4775 threads_are_resumed_pending_p checks from the inferior_matches
4776 lambda. Update comments.
4777
d6cc5d98
PA
47782020-07-10 Pedro Alves <pedro@palves.net>
4779
4780 PR gdb/26199
4781 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4782 executing threads.
4783
7d3badc6
PA
47842020-07-10 Pedro Alves <pedro@palves.net>
4785
4786 PR gdb/26199
4787 * infrun.c (handle_no_resumed): Handle multiple targets.
4788
42bd97a6
PA
47892020-07-10 Pedro Alves <pedro@palves.net>
4790
4791 PR gdb/26199
4792 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4793 target_is_async_p.
4794
43667cc6
PA
47952020-07-10 Pedro Alves <pedro@palves.net>
4796
4797 PR gdb/26199
4798 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4799 threads, not all threads.
4800
96118d11
PA
48012020-07-10 Pedro Alves <pedro@palves.net>
4802
4803 PR gdb/26199
4804 * remote.c (remote_target::open_1): Pass remote target pointer as
4805 data to create_async_event_handler.
4806 (remote_async_inferior_event_handler): Mark async event handler
4807 before returning if the remote target still has either pending
4808 events or unacknowledged notifications.
4809
54904d81
JB
48102020-07-10 John Baldwin <jhb@FreeBSD.org>
4811
4812 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4813 declaration.
4814 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4815 function.
4816
f37e5866
JB
48172020-07-09 John Baldwin <jhb@FreeBSD.org>
4818
4819 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4820 inferior_ptid.
4821
fc238d4a
JB
48222020-07-09 John Baldwin <jhb@FreeBSD.org>
4823
4824 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4825 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4826 AT_FREEBSD_PS_STRINGS.
4827
6e2469ff
HD
48282020-07-08 Hannes Domani <ssbssa@yahoo.de>
4829
4830 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4831 of debugfile path on Windows.
4832
d1076c41
JB
48332020-07-08 John Baldwin <jhb@FreeBSD.org>
4834
4835 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4836 argument to 'data'.
4837
15f3b077
TT
48382020-07-08 Tom Tromey <tromey@adacore.com>
4839
4840 * ada-lang.c (ada_exception_message_1): Use read_memory.
4841
9fc501fd
AB
48422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 PR python/22748
4845 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4846 special handling for inline frames.
4847 * findvar.c (value_of_register_lazy): Skip inline frames when
4848 creating lazy register values.
4849 * frame.c (frame_id_computed_p): Delete definition.
4850 * frame.h (frame_id_computed_p): Delete declaration.
4851
64cb3757
AB
48522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * NEWS: Mention additions to Python API.
4855 * python/py-arch.c (archpy_register_groups): New function.
4856 (arch_object_methods): Add 'register_groups' method.
4857 * python/py-registers.c (reggroup_iterator_object): New struct.
4858 (reggroup_object): New struct.
4859 (gdbpy_new_reggroup): New function.
4860 (gdbpy_reggroup_to_string): New function.
4861 (gdbpy_reggroup_name): New function.
4862 (gdbpy_reggroup_iter): New function.
4863 (gdbpy_reggroup_iter_next): New function.
4864 (gdbpy_new_reggroup_iterator): New function
4865 (gdbpy_initialize_registers): Register new types.
4866 (reggroup_iterator_object_type): Define new Python type.
4867 (gdbpy_reggroup_getset): New static global.
4868 (reggroup_object_type): Define new Python type.
4869 * python/python-internal.h
4870
0f767f94
AB
48712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4874 * python/py-arch.c (archpy_registers): New function.
4875 (arch_object_methods): Add 'registers' method.
4876 * python/py-registers.c: New file.
4877 * python/python-internal.h
4878 (gdbpy_new_register_descriptor_iterator): Declare.
4879 (gdbpy_initialize_registers): Declare.
4880 * python/python.c (do_start_initialization): Call
4881 gdbpy_initialize_registers.
4882 * NEWS: Mention additions to the Python API.
4883
87dbc774
AB
48842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * NEWS: Mention new Python API method.
4887 * python/py-unwind.c (pending_framepy_architecture): New function.
4888 (pending_frame_object_methods): Add architecture method.
4889
3bc98c0c
AB
48902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4891
4892 * gdbarch.c: Regenerate.
4893 * gdbarch.h: Regenerate.
4894 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4895 (gdbarch_data): Use internal_error for the case where
4896 deprecated_set_gdbarch_data was originally needed.
4897 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4898 and use passed in obstack.
4899 (libunwind_frame_set_descr): Should no longer get back NULL from
4900 gdbarch_data.
4901 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4902 type.
4903 * user-regs.c (user_regs_init): Update parameters, and use passed
4904 in obstack.
4905 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4906 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4907
d8cc8af6
TV
49082020-07-06 Tom de Vries <tdevries@suse.de>
4909
4910 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4911 End-Of-Sequence in lte_is_less_than.
4912 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4913 "gdb: Don't reorder line table entries too much when sorting".
4914
947f7597
TV
49152020-07-06 Tom de Vries <tdevries@suse.de>
4916
4917 PR tui/26205
4918 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4919
1e7c1b22
TV
49202020-07-05 Tom de Vries <tdevries@suse.de>
4921
4922 PR build/26187
4923 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4924 std::uncaught_exceptions instead of deprecated
4925 std::uncaught_exception.
4926
a36158ec
SM
49272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4928
4929 * macroexp.h (macro_stringify): Return
4930 gdb::unique_xmalloc_ptr<char>.
4931 * macroexp.c (macro_stringify): Likewise.
4932 * macrotab.c (fixup_definition): Update.
4933
14d960c8
SM
49342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4935
4936 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4937 (lex_one_token): Update.
4938 * macroexp.c (struct macro_buffer) <release>: Return
4939 gdb::unique_xmalloc_ptr<char>.
4940 (macro_stringify): Update.
4941 (macro_expand): Update.
4942 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4943 * macroexp.h (macro_expand_next): Likewise.
4944
211d5b1c
SM
49452020-07-02 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * macroexp.h (macro_lookup_ftype): Remove.
4948 (macro_expand, macro_expand_once, macro_expand_next): Remove
4949 lookup function parameters, add scope parameter.
4950 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4951 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4952 * macroscope.h (standard_macro_lookup): Change parameter type
4953 to macro_scope.
4954 * macroscope.c (standard_macro_lookup): Likewise.
4955 * c-exp.y (lex_one_token): Update.
4956 * macrocmd.c (macro_expand_command): Likewise.
4957 (macro_expand_once_command): Likewise.
4958
b1a35af2
SM
49592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * inf-loop.c (inferior_event_handler): Remove client_data param.
4962 * inf-loop.h (inferior_event_handler): Likewise.
4963 * infcmd.c (step_1): Adjust.
4964 * infrun.c (proceed): Adjust.
4965 (fetch_inferior_event): Remove client_data param.
4966 (infrun_async_inferior_event_handler): Adjust.
4967 * infrun.h (fetch_inferior_event): Remove `void *` param.
4968 * linux-nat.c (handle_target_event): Adjust.
4969 * record-btrace.c (record_btrace_handle_async_inferior_event):
4970 Adjust.
4971 * record-full.c (record_full_async_inferior_event_handler):
4972 Adjust.
4973 * remote.c (remote_async_inferior_event_handler): Adjust.
4974
1cdf9e33
TT
49752020-07-01 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4978 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4979
32c1e210
TT
49802020-07-01 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4983 tui_gen_win_info.
4984 (tui_win_info::make_window): Merge with
4985 tui_gen_win_info::make_window.
4986 (tui_win_info::make_visible): Move from tui_gen_win_info.
4987 * tui/tui-win.c (tui_win_info::max_width): Move from
4988 tui_gen_win_info.
4989 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4990 type.
4991 <window_factory>: Likewise.
4992 * tui/tui-layout.c (tui_win_info::resize): Move from
4993 tui_gen_win_info.
4994 (make_standard_window): Change return type.
4995 (get_locator_window, tui_get_window_by_name): Likewise.
4996 (tui_layout_window::apply): Remove a cast.
4997 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4998 (struct tui_win_info): Merge with tui_gen_win_info.
4999 (struct tui_gen_win_info): Remove.
5000
a30cb6da
TT
50012020-07-01 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-stack.h (struct tui_locator_window): Derive from
5004 tui_win_info.
5005 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5006 <can_box>: New method.
5007
1eb2161f
TT
50082020-07-01 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5011
7134f2eb
TT
50122020-07-01 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-regs.c (tui_data_window::display_registers_from)
5015 (tui_data_window::display_registers_from)
5016 (tui_data_window::first_data_item_displayed)
5017 (tui_data_window::delete_data_content_windows): Update.
5018 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5019 Remove.
5020 (tui_data_window::check_register_values): Update.
5021 (tui_data_item_window::rerender): Add parameters. Update.
5022 (tui_data_item_window::refresh_window): Remove.
5023 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5024 virtual.
5025 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5026 tui_gen_win_info.
5027 <refresh_window, max_height, min_height>: Remove.
5028 <rerender>: Add parameters.
5029 <x, y, visible>: New members.
5030 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5031 <m_item_width>: New member.
5032
22b7b041
TT
50332020-07-01 Tom Tromey <tom@tromey.com>
5034
5035 * tui/tui-regs.c (tui_data_window::show_register_group)
5036 (tui_data_window::check_register_values): Update.
5037 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5038 from item_no.
5039
c9753adb
TT
50402020-07-01 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5043 useless "if".
5044
9ab26b4a
TT
50452020-07-01 Tom Tromey <tom@tromey.com>
5046
5047 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5048 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5049
e555083f
TT
50502020-07-01 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5053 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5054 (struct tui_line_or_address): Move from tui-data.h.
5055 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5056 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5057 (tui_cmd_window, tui_source_window_base, tui_source_window)
5058 (tui_disasm_window): Don't declare.
5059 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5060 to tui-winsource.h.
5061 (SINGLE_KEY): Move to tui-stack.c.
5062
7a02bab7
TT
50632020-07-01 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5066 std::string.
5067 * tui/tui-regs.c (class tab_expansion_file): New.
5068 (tab_expansion_file::write): New method.
5069 (tui_register_format): Change return type. Use
5070 tab_expansion_file.
5071 (tui_get_register, tui_data_window::display_registers_from)
5072 (tui_data_item_window::rerender): Update.
5073 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5074 * tui/tui-io.c (tui_expand_tabs): Remove.
5075
ea68593b
TT
50762020-07-01 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5079
a8caed5d
FS
50802020-07-01 Fangrui Song <maskray@google.com>
5081
5082 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5083
9cdf9820
AKS
50842020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5085
5086 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5087 forms for DW_AT_associated and DW_AT_allocated attributes,
5088 which is already checked in function attr_to_dynamic_prop.
5089
a1520ad8
TT
50902020-06-30 Tom Tromey <tromey@adacore.com>
5091
5092 * dwarf2/read.c (quirk_rust_enum): Correctly call
5093 alloc_rust_variant for default-less enum.
5094
5ac58899
TT
50952020-06-30 Tom Tromey <tromey@adacore.com>
5096
5097 PR build/26183:
5098 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5099 gdb::to_string.
5100
19b187a9
SM
51012020-06-29 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5104 * gdbarch.h: Re-generate.
5105
cd4c4c07
TT
51062020-06-28 Tom Tromey <tom@tromey.com>
5107
5108 * command.h (cmd_types): Remove.
5109 (cmd_type): Don't declare.
5110 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5111 typedef.
5112 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5113 * cli/cli-decode.c (cmd_type): Remove.
5114
05779d57
PA
51152020-06-27 Pedro Alves <palves@redhat.com>
5116
5117 * fork-child.c (prefork_hook): Adjust.
5118 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5119 Delete.
5120 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5121 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5122 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5123 Remove declarations.
5124 (struct inferior) <set_tty, tty>: New methods.
5125 (struct inferior) <terminal>: Rename to ...
5126 (struct inferior) <m_terminal>: ... this and make private.
5127 * main.c (captured_main_1): Adjust.
5128 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5129 (mi_cmd_inferior_tty_show): Adjust.
5130 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5131 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5132
1776e3e5
NA
51332020-06-26 Nick Alcock <nick.alcock@oracle.com>
5134
5135 * configure.ac: Add --enable-libctf: handle --disable-static
5136 properly.
5137 * acinclude.m4: sinclude ../config/enable.m4.
5138 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5139 (LIBCTF): Substitute in.
5140 (CTF_DEPS): New, likewise.
5141 (CLIBS): libctf needs symbols from libbfd: move earlier.
5142 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5143 flags.
5144 * ctfread.c: Surround in ENABLE_LIBCTF.
5145 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5146 * configure: Regenerate.
5147 * config.in: Likewise.
5148
58373b80
SM
51492020-06-25 Simon Marchi <simon.marchi@efficios.com>
5150
5151 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5152
277474ee
SM
51532020-06-25 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * inferior.h (struct inferior) <terminal>: Change type to
5156 gdb::unique_xmalloc_ptr<char>.
5157 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5158 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5159 field, adjust to unique pointer.
5160 (get_inferior_io_terminal): Adjust to unique pointer.
5161
6d74da72
AB
51622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5165 registers, not just the known core set of registers.
5166
2e52d038
AB
51672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5170 fflags, frm, and fcsr registers.
5171 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5172 restore groups.
5173 (riscv_tdesc_unknown_reg): New function.
5174 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5175 tdesc_use_registers.
5176 * riscv-tdep.h (struct gdbarch_tdep): Add
5177 unknown_csrs_first_regnum, unknown_csrs_count,
5178 duplicate_fflags_regnum, duplicate_frm_regnum, and
5179 duplicate_fcsr_regnum fields.
5180
be64fd07
AB
51812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5184 callback, use the callback (when not null) to help number unknown
5185 registers.
5186 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5187 (tdesc_use_registers): Add extra parameter to declaration.
5188
3b9fce96
AB
51892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5192 in the file.
5193 (class riscv_pending_register_alias): Likewise.
5194 (riscv_register_feature::register_info): Change 'required_p' field
5195 to 'required', and change its type. Add 'check' member function.
5196 (riscv_register_feature::register_info::check): Define new member
5197 function.
5198 (riscv_xreg_feature): Change initialisation of 'required' field.
5199 (riscv_freg_feature): Likewise.
5200 (riscv_virtual_feature): Likewise.
5201 (riscv_csr_feature): Likewise.
5202 (riscv_check_tdesc_feature): Take extra parameter, the csr
5203 tdesc_feature, rewrite the function to use the new
5204 riscv_register_feature::register_info::check function.
5205 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5206
865bad26
AB
52072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * features/Makefile: Remove all references to the deleted files
5210 below.
5211 * features/riscv/32bit-csr.c: Deleted.
5212 * features/riscv/32bit-csr.xml: Deleted.
5213 * features/riscv/64bit-csr.c: Deleted.
5214 * features/riscv/64bit-csr.xml: Deleted.
5215 * features/riscv/rebuild-csr-xml.sh: Deleted.
5216
ed69cbc8
AB
52172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5220 whitespace error for declaration of names member variable.
5221 (struct riscv_register_feature): Add new prefer_first_name member
5222 variable, and fix whitespace error in declaration of registers.
5223 (riscv_xreg_feature): Initialize prefer_first_name field.
5224 (riscv_freg_feature): Likewise.
5225 (riscv_virtual_feature): Likewise.
5226 (riscv_csr_feature): Likewise.
5227 (riscv_register_name): Expand on comments. Remove register name
5228 modifications for CSR and virtual registers.
5229
4445e8f5
AB
52302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5231
5232 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5233 errors.
5234
767a879e
AB
52352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5236
5237 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5238 riscv-opc.h.
5239 (class riscv_pending_register_alias): New class.
5240 (riscv_check_tdesc_feature): Take vector of pending aliases and
5241 populate it as appropriate.
5242 (riscv_setup_register_aliases): Delete.
5243 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5244 to riscv_check_tdesc_feature in all cases. Use the vector to
5245 create the register aliases.
5246
bb6e55f3
RO
52472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5248
5249 * sol2-tdep.c (sol2_static_transform_name): Remove.
5250 (sol2_init_abi): Don't register it.
5251 * gdbarch.sh (static_transform_name): Remove.
5252 * gdbarch.c, gdbarch.h: Regenerate.
5253
5254 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5255 gdbarch_static_transform_name.
5256 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5257 * stabsread.c (define_symbol) <'X'>: Remove.
5258 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5259 handling.
5260 <'V'>: Likewise.
5261 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5262 <'S'>: Remove call to gdbarch_static_transform_name.
5263
c6d36836
RO
52642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5265
5266 * procfs.c (procfs_pre_trace): New function.
5267 (procfs_target::create_inferior): Pass it to fork_inferior.
5268
a7e6196b
RO
52692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5270
5271 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5272 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5273 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5274 sol2-tdep.o, sparc-sol2-tdep.o.
5275 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5276 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5277 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5278 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5279
d412e696
RO
52802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5281
5282 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5283 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5284 Call sol2_init_abi.
5285 Remove calls to set_gdbarch_skip_solib_resolver,
5286 set_gdbarch_core_pid_to_str.
5287 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5288 (i386_sol2_static_transform_name): Remove.
5289 (i386_sol2_init_abi): Call sol2_init_abi.
5290 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5291 set_gdbarch_static_transform_name,
5292 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5293 Use sol2_sigtramp_p.
5294 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5295 (sol2_sigtramp_p): New function.
5296 (sol2_static_transform_name): New function.
5297 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5298 (sol2_init_abi): New function.
5299 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5300 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5301 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5302 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5303 (sparc_sol2_static_transform_name): Remove.
5304 (sparc32_sol2_init_abi): Call sol2_init_abi.
5305 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5306 set_gdbarch_static_transform_name,
5307 set_gdbarch_skip_solib_resolver,
5308 set_gdbarch_core_pid_to_str.
5309 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5310 (sparc_sol2_static_transform_name): Remove
5311 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5312 call sol2_sigtramp_p.
5313 (sparc64_sol2_init_abi): Call sol2_init_abi.
5314 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5315 set_gdbarch_static_transform_name,
5316 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5317
a8654e7d
PW
53182020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319
5320 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5321 * exec.c (validate_exec_file): If from_tty, set both
5322 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5323 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5324 and from_tty, unconditionally ask a confirmation.
5325
caa7fd04
AB
53262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * target-descriptions.c (tdesc_architecture_name): Protect against
5329 NULL pointer dereference.
5330 (maint_print_xml_tdesc_cmd): New function.
5331 (_initialize_target_descriptions): Register new 'maint print
5332 xml-tdesc' command and give it the filename completer.
5333 * NEWS: Mention new 'maint print xml-tdesc' command.
5334
fbf42f4e
AB
53352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5336
5337 * target-descriptions.c (class tdesc_compatible_info): New class.
5338 (struct target_desc): Change type of compatible vector.
5339 (tdesc_compatible_p): Update for change in type of
5340 target_desc::compatible.
5341 (tdesc_compatible_info_list): New function.
5342 (tdesc_compatible_info_arch_name): New function.
5343 (tdesc_add_compatible): Update for change in type of
5344 target_desc::compatible.
5345 (print_c_tdesc::visit_pre): Likewise.
5346
20821f4e
AB
53472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5350 whitespace to underscore.
5351 (maint_print_c_tdesc_cmd): Use fake filename for target
5352 descriptions that came from the target.
5353 (_initialize_target_descriptions): Add filename command completion
5354 for 'maint print c-tdesc'.
5355
1fb5ee62
SM
53562020-06-23 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5359 lines.
5360
fc3ecb3e
SM
53612020-06-23 Simon Marchi <simon.marchi@efficios.com>
5362
5363 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5364 lines.
5365 (dwarf2_find_location_expression): Likewise.
5366 (call_site_parameter_matches): Likewise.
5367 (dwarf2_compile_expr_to_ax): Likewise.
5368 (disassemble_dwarf_expression): Likewise.
5369 (loclist_describe_location): Likewise.
5370
236ef034
PA
53712020-06-23 Pedro Alves <palves@redhat.com>
5372
5373 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5374 progspace-and-thread.h. Include scoped-mock-context.h instead.
5375 (register_to_value_test): Use scoped_mock_context.
5376 * regcache.c: Include "scoped-mock-context.h".
5377 (cooked_read_test): Don't error out if a target is already pushed.
5378 Use scoped_mock_context. Adjust.
5379 * scoped-mock-context.h: New file.
5380
39e7ecca
AB
53812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5384 initializer.
5385 (ada_language::is_string_type_p): New member function.
5386 * c-lang.c (c_language_data): Delete la_is_string_type_p
5387 initializer.
5388 (cplus_language_data): Likewise.
5389 (asm_language_data): Likewise.
5390 (minimal_language_data): Likewise.
5391 * d-lang.c (d_language_data): Likewise.
5392 * f-lang.c (f_is_string_type_p): Delete function, implementation
5393 moved to f_language::is_string_type_p.
5394 (f_language_data): Delete la_is_string_type_p initializer.
5395 (f_language::is_string_type_p): New member function,
5396 implementation from f_is_string_type_p.
5397 * go-lang.c (go_is_string_type_p): Delete function, implementation
5398 moved to go_language::is_string_type_p.
5399 (go_language_data): Delete la_is_string_type_p initializer.
5400 (go_language::is_string_type_p): New member function,
5401 implementation from go_is_string_type_p.
5402 * language.c (language_defn::is_string_type_p): Define new member
5403 function.
5404 (default_is_string_type_p): Make static, add comment copied from
5405 header file.
5406 (unknown_language_data): Delete la_is_string_type_p initializer.
5407 (unknown_language::is_string_type_p): New member function.
5408 (auto_language_data): Delete la_is_string_type_p initializer.
5409 (auto_language::is_string_type_p): New member function.
5410 * language.h (language_data): Delete la_is_string_type_p field.
5411 (language_defn::is_string_type_p): Declare new function.
5412 (default_is_string_type_p): Delete desclaration, move comment to
5413 definition.
5414 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5415 moved to m2_language::is_string_type_p.
5416 (m2_language_data): Delete la_is_string_type_p initializer.
5417 (m2_language::is_string_type_p): New member function,
5418 implementation from m2_is_string_type_p.
5419 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5420 initializer.
5421 * opencl-lang.c (opencl_language_data): Likewise.
5422 * p-lang.c (pascal_is_string_type_p): Delete function,
5423 implementation moved to pascal_language::is_string_type_p.
5424 (pascal_language_data): Delete la_is_string_type_p initializer.
5425 (pascal_language::is_string_type_p): New member function,
5426 implementation from pascal_is_string_type_p.
5427 * rust-lang.c (rust_is_string_type_p): Delete function,
5428 implementation moved to rust_language::is_string_type_p.
5429 (rust_language_data): Delete la_is_string_type_p initializer.
5430 (rust_language::is_string_type_p): New member function,
5431 implementation from rust_is_string_type_p.
5432 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5433 is_string_type_p.
5434
4ffc13fb
AB
54352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * ada-lang.c (ada_language_data): Delete la_print_typedef
5438 initializer.
5439 (ada_language::print_typedef): New member function.
5440 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5441 (cplus_language_data): Likewise.
5442 (asm_language_data): Likewise.
5443 (minimal_language_data): Likewise.
5444 * d-lang.c (d_language_data): Likewise.
5445 * f-lang.c (f_language_data): Likewise.
5446 (f_language::print_typedef): New member function.
5447 * go-lang.c (go_language_data): Delete la_print_typedef
5448 initializer.
5449 * language.c (language_defn::print_typedef): Define member
5450 function.
5451 (unknown_language_data): Delete la_print_typedef initializer.
5452 (unknown_language::print_typedef): New member function.
5453 (auto_language_data): Delete la_print_typedef initializer.
5454 (auto_language::print_typedef): New member function.
5455 * language.h (language_data): Delete la_print_typedef field.
5456 (language_defn::print_typedef): Declare new member function.
5457 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5458 (default_print_typedef): Delete declaration.
5459 * m2-lang.c (m2_language_data): Delete la_print_typedef
5460 initializer.
5461 (m2_language::print_typedef): New member function.
5462 * objc-lang.c (objc_language_data): Delete la_print_typedef
5463 initializer.
5464 * opencl-lang.c (opencl_language_data): Likewise.
5465 * p-lang.c (pascal_language_data): Likewise.
5466 (pascal_language::print_typedef): New member function.
5467 * rust-lang.c (rust_print_typedef): Delete function,
5468 implementation moved to rust_language::print_typedef.
5469 (rust_language): Delete la_print_typedef initializer.
5470 (rust_language::print_typedef): New member function,
5471 implementation from rust_print_typedef.
5472 * typeprint.c (default_print_typedef): Delete.
5473
d711ee67
AB
54742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5477 (ada_language::printstr): New member function.
5478 * c-lang.c (c_language_data): Delete la_printstr initializer.
5479 (cplus_language_data): Likewise.
5480 (asm_language_data): Likewise.
5481 (minimal_language_data): Likewise.
5482 * d-lang.c (d_language_data): Likewise.
5483 * f-lang.c (f_printstr): Rename to f_language::printstr.
5484 (f_language_data): Delete la_printstr initializer.
5485 (f_language::printstr): New member function, implementation from
5486 f_printstr.
5487 * go-lang.c (go_language_data): Delete la_printstr initializer.
5488 * language.c (language_defn::printstr): Define new member
5489 function.
5490 (unk_lang_printstr): Delete.
5491 (unknown_language_data): Delete la_printstr initializer.
5492 (unknown_language::printstr): New member function.
5493 (auto_language_data): Delete la_printstr initializer.
5494 (auto_language::printstr): New member function.
5495 * language.h (language_data): Delete la_printstr field.
5496 (language_defn::printstr): Declare new member function.
5497 (LA_PRINT_STRING): Update call to printstr.
5498 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5499 (m2_language_data): Delete la_printstr initializer.
5500 (m2_language::printstr): New member function, implementation from
5501 m2_printstr.
5502 * objc-lang.c (objc_language_data): Delete la_printstr
5503 initializer.
5504 * opencl-lang.c (opencl_language_data): Likewise.
5505 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5506 (pascal_language_data): Delete la_printstr initializer.
5507 (pascal_language::printstr): New member function, implementation
5508 from pascal_printstr.
5509 * p-lang.h (pascal_printstr): Delete declaration.
5510 * rust-lang.c (rust_printstr): Update header comment.
5511 (rust_language_data): Delete la_printstr initializer.
5512 (rust_language::printstr): New member function.
5513
52b50f2c
AB
55142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5515
5516 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5517 (ada_language::printchar): New member function.
5518 * c-lang.c (c_language_data): Delete la_printchar initializer.
5519 (cplus_language_data): Likewise.
5520 (asm_language_data): Likewise.
5521 (minimal_language_data): Likewise.
5522 * d-lang.c (d_language_data): Likewise.
5523 * f-lang.c (f_printchar): Rename to f_language::printchar.
5524 (f_language_data): Delete la_printchar initializer.
5525 (f_language::printchar): New member function, implementation from
5526 f_printchar.
5527 * go-lang.c (go_language_data): Delete la_printchar initializer.
5528 * language.c (unk_lang_printchar): Delete.
5529 (language_defn::printchar): Define new member function.
5530 (unknown_language_data): Delete la_printchar initializer.
5531 (unknown_language::printchar): New member function.
5532 (auto_language_data): Delete la_printchar initializer.
5533 (auto_language::printchar): New member function.
5534 * language.h (language_data): Delete la_printchar field.
5535 (language_defn::printchar): Declare new member function.
5536 (LA_PRINT_CHAR): Update call to printchar.
5537 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5538 (m2_language::printchar): New member function.
5539 * objc-lang.c (objc_language_data): Delete la_printchar
5540 initializer.
5541 * opencl-lang.c (opencl_language_data): Likewise.
5542 * p-lang.c (pascal_language_data): Delete la_printchar
5543 initializer.
5544 (pascal_language::printchar): New member function.
5545 * rust-lang.c (rust_printchar): Rename to
5546 rust_language::printchar.
5547 (rust_language_data): Delete la_printchar initializer.
5548 (rust_language::printchar): New member function, implementation
5549 from rust_printchar.
5550
ec8cec5b
AB
55512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5552
5553 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5554 (ada_language_data): Delete la_emitchar initializer.
5555 (ada_language::emitchar): New member function, implementation from
5556 emit_char.
5557 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5558 (cplus_language_data): Likewise.
5559 (asm_language_data): Likewise.
5560 (minimal_language_data): Likewise.
5561 * d-lang.c (d_language_data): Likewise.
5562 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5563 (f_language_data): Delete la_emitchar initializer.
5564 (f_language::emitchar): New member function, implementation from
5565 f_emit_char.
5566 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5567 * language.c (unk_lang_emit_char): Delete.
5568 (language_defn::emitchar): New member function definition.
5569 (unknown_language_data): Delete la_emitchar initializer.
5570 (unknown_language::emitchar): New member function.
5571 (auto_language_data): Delete la_emitchar initializer.
5572 (auto_language::emitchar): New member function.
5573 * language.h (language_data): Delete la_emitchar field.
5574 (language_defn::emitchar): New member field declaration.
5575 (LA_EMIT_CHAR): Update call to emitchar.
5576 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5577 (m2_language_data): Delete la_emitchar initializer.
5578 (m2_language::emitchar): New member function, implementation from
5579 m2_emit_char.
5580 * objc-lang.c (objc_language_data): Delete la_emitchar
5581 initializer.
5582 * opencl-lang.c (opencl_language_data): Likewise.
5583 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5584 (pascal_language_data): Delete la_emitchar initializer.
5585 (pascal_language::emitchar): New member function, implementation
5586 from pascal_emit_char.
5587 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5588 (rust_language_data): Delete la_emitchar initializer.
5589 (rust_language::emitchar): New member function, implementation
5590 from rust_emitchar.
5591
1bf9c363
AB
55922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5595 (ada_language_data): Delete la_post_parser initializer.
5596 (ada_language::post_parser): New member function.
5597 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5598 (cplus_language_data): Likewise.
5599 (asm_language_data): Likewise.
5600 (minimal_language_data): Likewise.
5601 * d-lang.c (d_language_data): Likewise.
5602 * f-lang.c (f_language_data): Likewise.
5603 * go-lang.c (go_language_data): Likewise.
5604 * language.c (unknown_language_data): Likewise.
5605 (auto_language_data): Likewise.
5606 * language.h (language_data): Delete la_post_parser field.
5607 (language_defn::post_parser): New member function.
5608 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5609 * objc-lang.c (objc_language_data): Likewise.
5610 * opencl-lang.c (opencl_language_data): Likewise.
5611 * p-lang.c (pascal_language_data): Likewise.
5612 * parse.c (parse_exp_in_context): Update call to post_parser.
5613 (null_post_parser): Delete definition.
5614 * parser-defs.h (null_post_parser): Delete declaration.
5615 * rust-lang.c (rust_language_data): Delete la_post_parser
5616 initializer.
5617
87afa652
AB
56182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5619
5620 * ada-lang.c (parse): Rename to ada_language::parser.
5621 (ada_language_data): Delete la_parser initializer.
5622 (ada_language::parser): New member function, implementation from
5623 parse.
5624 * c-lang.c (c_language_data): Delete la_parser initializer.
5625 (cplus_language_data): Likewise.
5626 (asm_language_data): Likewise.
5627 (minimal_language_data): Likewise.
5628 * d-lang.c (d_language_data): Likewise.
5629 (d_language::parser): New member function.
5630 * f-lang.c (f_language_data): Delete la_parser initializer.
5631 (f_language::parser): New member function.
5632 * go-lang.c (go_language_data): Delete la_parser initializer.
5633 (go_language::parser): New member function.
5634 * language.c (unk_lang_parser): Delete.
5635 (language_defn::parser): Define new member function.
5636 (unknown_language_data): Delete la_parser initializer.
5637 (unknown_language::parser): New member function.
5638 (auto_language_data): Delete la_parser initializer.
5639 (auto_language::parser): New member function.
5640 * language.h (language_data): Delete la_parser field.
5641 (language_defn::parser): Declare new member function.
5642 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5643 (m2_language::parser): New member function.
5644 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5645 * opencl-lang.c (opencl_language_data): Likewise.
5646 * p-lang.c (pascal_language_data): Likewise.
5647 (pascal_language::parser): New member function.
5648 * parse.c (parse_exp_in_context): Update call to parser.
5649 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5650 (rust_language::parser): New member function.
5651
37825800
AB
56522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5653
5654 * top.c (print_gdb_configuration): Print --with-python-libdir
5655 configuration value.
5656
5b860c93
PW
56572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5658
5659 * NEWS: Mention change to the alias command.
5660
cf00cd6f
PW
56612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5662
5663 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5664 (alias_command_completer)
5665 (make_alias_options_def_group): New functions.
5666 (alias_opts, alias_option_defs): New struct and array.
5667 (alias_usage_error): Update usage.
5668 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5669 Use option framework.
5670 (_initialize_cli_cmds): Update alias command help.
5671 Update aliases command help.
5672 (show_user):
5673 Add NULL for new default_args lookup_cmd argument.
5674 (valid_command_p): Rename to validate_aliased_command.
5675 Add NULL for new default_args lookup_cmd argument. Verify that the
5676 aliased_command has no default args.
5677 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5678 (lookup_cmd_1, lookup_cmd): New argument default_args.
5679 (add_alias_cmd):
5680 Add NULL for new default_args lookup_cmd argument.
5681 (print_help_for_command): Show default args under the layout
5682 alias some_alias = some_aliased_cmd some_alias_default_arg.
5683 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5684 xfree default_args in destructor.
5685 * cli/cli-script.c (process_next_line, do_define_command):
5686 Add NULL for new default_args lookup_cmd argument.
5687 * command.h: Declare new default_args argument in lookup_cmd
5688 and lookup_cmd_1.
5689 * completer.c (complete_line_internal_1):
5690 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5691 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5692 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5693 Likewise.
5694 * infcmd.c (_initialize_infcmd): Likewise.
5695 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5696 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5697 * python/py-param.c (add_setshow_generic): Likewise.
5698 * remote.c (_initialize_remote): Likewise.
5699 * top.c (execute_command): Prepend default_args if command has some.
5700 (set_verbose):
5701 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5702 * tracepoint.c (validate_actionline, encode_actions_1):
5703 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5704
bd920864
TBA
57052020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5706
5707 * jit.c (jit_read_descriptor): Use bool as the return type.
5708 (jit_breakpoint_re_set_internal): Use bool as the return type.
5709 Invert the return value logic; return true if the jit breakpoint
5710 has been successfully initialized.
5711 (jit_inferior_init): Update the call to
5712 jit_breakpoint_re_set_internal.
5713
f8098322
PA
57142020-06-22 Pedro Alves <palves@redhat.com>
5715
5716 PR gdb/25939
5717 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5718 Use the current inferior instead. Don't return
5719 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5720 wait again.
5721 * sol-thread.c (sol_thread_target::wait): Don't reference
5722 inferior_ptid.
5723 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5724 (sol_update_thread_list_callback): Use the current inferior's pid
5725 instead of inferior_ptid.
5726
196535a6
RO
57272020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5728
5729 * procfs.c: Cleanup many comments.
5730
5731 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5732 (AFTER_WATCHFLAG): Replace by value.
5733
5734 (MAIN_PROC_NAME_FORMAT): Inline ...
5735 (create_procinfo): ... here.
5736
5737 (procfs_debug_inferior): Remove SYS_exec handling.
5738 (syscall_is_exec): Likewise.
5739 (procfs_set_exec_trap): Likewise.
5740
5741 (syscall_is_lwp_exit): Inline in callers.
5742 (syscall_is_exit): Likewise.
5743 (syscall_is_exec): Likewise.
5744 (syscall_is_lwp_create): Likewise.
5745
5746 (invalidate_cache): Remove #if 0 code.
5747
5748 (make_signal_thread_runnable): Remove.
5749 (procfs_target::resume): Remove #if 0 code.
5750
cf6f3e86
RO
57512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5752
5753 PR gdb/25939
5754 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5755 call ...
5756 (procfs_target::create_inferior): ... here.
5757
48e9cc84
PW
57582020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5759
5760 * exec.c (validate_exec_file): Ensure the build-id is up to
5761 date by calling reopen_exec_file (that checks file timestamp
5762 to decide to re-read the file).
5763
3922b302
PA
57642020-06-18 Pedro Alves <palves@redhat.com>
5765
5766 PR gdb/25412
5767 * gdbthread.h (delete_thread, delete_thread_silent)
5768 (find_thread_ptid): Update comments.
5769 * thread.c (current_thread_): New global.
5770 (is_current_thread): Move higher, and reimplement.
5771 (inferior_thread): Reimplement.
5772 (set_thread_exited): Use bool. Add assertions.
5773 (add_thread_silent): Simplify thread-reuse handling by always
5774 calling delete_thread.
5775 (delete_thread): Remove intro comment.
5776 (find_thread_ptid): Skip exited threads.
5777 (switch_to_thread_no_regs): Write to current_thread_.
5778 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5779 INFERIOR_PTID. Clear current_thread_.
5780
6dbdab44
PA
57812020-06-18 Pedro Alves <palves@redhat.com>
5782
5783 * aix-thread.c (pd_update): Use switch_to_thread.
5784
2da4b788
PA
57852020-06-18 Pedro Alves <palves@redhat.com>
5786
5787 * ravenscar-thread.c (ravenscar_thread_target): Update.
5788 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5789 (ravenscar_thread_target::add_active_thread): ... this. Don't
5790 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5791 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5792
50838d1b
PA
57932020-06-18 Pedro Alves <palves@redhat.com>
5794
5795 * nat/windows-nat.c (current_windows_thread): Remove.
5796 * nat/windows-nat.h (current_windows_thread): Remove.
5797 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5798 Adjust.
5799 (display_selectors): Adjust to fetch the current
5800 windows_thread_info based on inferior_ptid.
5801 (fake_create_process): No longer write to current_windows_thread.
5802 (windows_nat_target::get_windows_debug_event):
5803 Don't set inferior_ptid or current_windows_thread.
5804 (windows_nat_target::wait): Adjust to not rely on
5805 current_windows_thread.
5806 (do_initial_windows_stuff): Now a method of windows_nat_target.
5807 Switch to the last_ptid thread.
5808 (windows_nat_target::attach): Adjust.
5809 (windows_nat_target::detach): Use switch_to_no_thread instead of
5810 writing to inferior_ptid directly.
5811 (windows_nat_target::create_inferior): Adjust.
5812
31ce04e9
PA
58132020-06-18 Pedro Alves <palves@redhat.com>
5814
5815 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5816
1ee1a363
PA
58172020-06-18 Pedro Alves <palves@redhat.com>
5818
5819 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5820 after creating it, instead of writing to inferior_ptid. Don't
5821 write to inferior_ptid.
5822
6d350754
PA
58232020-06-18 Pedro Alves <palves@redhat.com>
5824
5825 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5826
5d971d48
PA
58272020-06-18 Pedro Alves <palves@redhat.com>
5828
5829 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5830 it, instead of writing to inferior_ptid.
5831
86e57d1b
PA
58322020-06-18 Pedro Alves <palves@redhat.com>
5833
5834 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5835 to inferior_ptid.
5836
f2e1c129
PA
58372020-06-18 Pedro Alves <palves@redhat.com>
5838
5839 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5840 instead of writing to inferior_ptid directly.
5841
60db1b85
PA
58422020-06-18 Pedro Alves <palves@redhat.com>
5843
5844 * corelow.c (core_target::close): Use switch_to_no_thread instead
5845 of writing to inferior_ptid directly.
5846 (add_to_thread_list, core_target_open): Use switch_to_thread
5847 instead of writing to inferior_ptid directly.
5848
fe7d6a8d
PA
58492020-06-18 Pedro Alves <palves@redhat.com>
5850
5851 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5852 inferior_ptid.
5853 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5854 inferior_ptid.
5855 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5856 inferior_ptid directly.
5857 (darwin_nat_target::init_thread_list): Switch to thread, instead
5858 of writing to inferior_ptid.
5859 (darwin_nat_target::attach): Don't write to inferior_ptid.
5860 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5861
975f8708
PA
58622020-06-18 Pedro Alves <palves@redhat.com>
5863
5864 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5865 thread.
5866 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5867 Instead use switch_to_thread.
5868 (gnu_nat_target::detach): Use switch_to_no_thread
5869 instead of writing to inferior_ptid directly. Used passed-in
5870 inferior instead of looking up the inferior by pid.
5871
1a204730
PA
58722020-06-18 Pedro Alves <palves@redhat.com>
5873
5874 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5875 inferior_ptid.
5876
ebe84f23
PA
58772020-06-18 Pedro Alves <palves@redhat.com>
5878
5879 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5880 inferior_ptid.
5881 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5882 thread.
5883 (nto_procfs_target::detach): Avoid referencing
5884 inferior_ptid. Use switch_to_no_thread instead of writing to
5885 inferior_ptid directly.
5886 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5887 instead of writing to inferior_ptid directly.
5888 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5889 to thread.
5890
191f02e5
PA
58912020-06-18 Pedro Alves <palves@redhat.com>
5892
5893 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5894 after creating it, instead of writing to inferior_ptid.
5895 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5896 to inferior_ptid directly.
5897 (gdbsim_target::wait): Don't write to inferior_ptid.
5898
0ac55310
PA
58992020-06-18 Pedro Alves <palves@redhat.com>
5900
5901 * remote.c (remote_target::remote_notice_new_inferior): Use
5902 switch_to_thread instead of writing to inferior_ptid directly.
5903 (remote_target::add_current_inferior_and_thread): Use
5904 switch_to_no_thread instead of writing to inferior_ptid directly.
5905 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5906 and switch_to_thread instead of using set_current_inferior or
5907 writing to inferior_ptid directly.
5908
5233f39b
PA
59092020-06-18 Pedro Alves <palves@redhat.com>
5910
5911 * tracectf.c (ctf_target_open): Switch to added thread instead of
5912 writing to inferior_ptid directly.
5913 (ctf_target::close): Use switch_to_no_thread instead of writing to
5914 inferior_ptid directly.
5915
087e161b
PA
59162020-06-18 Pedro Alves <palves@redhat.com>
5917
5918 * tracefile-tfile.c (tfile_target_open): Don't write to
5919 inferior_ptid directly, instead switch to added thread.
5920 (tfile_target::close): Use switch_to_no_thread instead of writing
5921 to inferior_ptid directly.
5922
7fb43e53
PA
59232020-06-18 Pedro Alves <palves@redhat.com>
5924
5925 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5926 (procfs_target::detach): Use switch_to_no_thread
5927 instead of writing to inferior_ptid directly.
5928 (do_attach): Change return type to void. Switch to the added
5929 thread.
5930 (procfs_target::create_inferior): Switch to the added thread.
5931 (procfs_do_thread_registers): Don't write to inferior_ptid.
5932
18493a00
PA
59332020-06-18 Pedro Alves <palves@redhat.com>
5934
5935 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5936 of writing to inferior_ptid.
5937 (scoped_restore_exited_inferior): Delete.
5938 (handle_vfork_child_exec_or_exit): Simplify using
5939 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5940 instead of writing to inferior_ptid.
5941 (THREAD_STOPPED_BY): Delete.
5942 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5943 (thread_stopped_by_hw_breakpoint): Delete.
5944 (save_waitstatus): Use
5945 scoped_restore_current_thread+switch_to_thread, and call
5946 target_stopped_by_watchpoint instead of
5947 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5948 instead of thread_stopped_by_sw_breakpoint, and
5949 target_stopped_by_hw_breakpoint instead of
5950 thread_stopped_by_hw_breakpoint.
5951 (handle_inferior_event)
5952 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5953 inferior_ptid directly, nor
5954 set_current_inferior/set_current_program_space. Use
5955 switch_to_thread / switch_to_inferior_no_thread instead.
5956
a0776b13
PA
59572020-06-18 Pedro Alves <palves@redhat.com>
5958
5959 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5960 instead of writing to inferior_ptid.
5961
6155c136
PA
59622020-06-18 Pedro Alves <palves@redhat.com>
5963
5964 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5965 added thread.
5966 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5967 to the added thread.
5968 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5969 instead of writing to inferior_ptid.
5970
c5316fc6
PA
59712020-06-18 Pedro Alves <palves@redhat.com>
5972
5973 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5974 (register_to_value_test): Mock a program_space too. Heap-allocate
5975 the address space. Don't write to inferior_ptid. Use
5976 switch_to_thread instead.
5977
8df01799
PA
59782020-06-18 Pedro Alves <palves@redhat.com>
5979
5980 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5981 Delete.
5982 (find_signalled_thread()): New, factored out from
5983 linux_make_corefile_notes and adjusted to handle exited threads.
5984 (linux_make_corefile_notes): Adjust to use the new
5985 find_signalled_thread.
5986
41792d68
PA
59872020-06-18 Pedro Alves <palves@redhat.com>
5988
5989 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5990 of saving/restoring inferior_ptid.
5991
612f258a
TT
59922020-06-17 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5995 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5996 declare.
5997 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5998
efb763a5
SM
59992020-06-15 Simon Marchi <simon.marchi@efficios.com>
6000
6001 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6002 of partial symtabs.
6003
2951f6c0
SM
60042020-06-17 Simon Marchi <simon.marchi@efficios.com>
6005
6006 * regformats/reg-arm.dat: Remove.
6007 * regformats/reg-bfin.dat: Remove.
6008 * regformats/reg-cris.dat: Remove.
6009 * regformats/reg-crisv32.dat: Remove.
6010 * regformats/reg-m32r.dat: Remove.
6011 * regformats/reg-tilegx.dat: Remove.
6012 * regformats/reg-tilegx32.dat: Remove.
6013
7d458ea5
SM
60142020-06-17 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * features/Makefile (WHICH): Remove arm files.
6017 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6018 * regformats/arm/arm-with-neon.dat: Remove.
6019 * regformats/arm/arm-with-vfpv2.dat: Remove.
6020 * regformats/arm/arm-with-vfpv3.dat: Remove.
6021
3af96c0d
SM
60222020-06-17 Simon Marchi <simon.marchi@efficios.com>
6023
6024 * features/Makefile (XMLTOC): Remove rx.xml.
6025
b25e22fd
PA
60262020-06-17 Pedro Alves <palves@redhat.com>
6027
6028 * gdbthread.h (thread_control_state) <trap_expected> Update
6029 comments.
6030
a78a19b1
AB
60312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6034 ada_language::lookup_symbol_nonlocal.
6035 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6036 (ada_language::lookup_symbol_nonlocal): New member function,
6037 implementation from ada_lookup_symbol_nonlocal.
6038 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6039 initializer.
6040 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6041 initializer.
6042 (cplus_language::lookup_symbol_nonlocal): New member function.
6043 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6044 (minimal_language_data) Likewise.
6045 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6046 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6047 initializer.
6048 (d_language::lookup_symbol_nonlocal): New member function.
6049 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6050 initializer.
6051 (f_language::lookup_symbol_nonlocal): New member function.
6052 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6053 initializer.
6054 * language.c (unknown_language_data): Likewise.
6055 (auto_language_data): Likewise.
6056 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6057 field.
6058 (language_defn::lookup_symbol_nonlocal): New member function.
6059 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6060 initializer.
6061 * objc-lang.c (objc_language_data): Likewise.
6062 * opencl-lang.c (opencl_language_data): Likewise.
6063 * p-lang.c (pascal_language_data): Likewise.
6064 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6065 rust_language::lookup_symbol_nonlocal.
6066 (rust_language_data): Delete la_lookup_symbol_nonlocal
6067 initializer.
6068 (rust_language::lookup_symbol_nonlocal): New member function,
6069 implementation from rust_lookup_symbol_nonlocal.
6070 * symtab.c (lookup_symbol_aux): Update call to
6071 lookup_symbol_nonlocal.
6072 (basic_lookup_symbol_nonlocal): Rename to...
6073 (language_defn::lookup_symbol_nonlocal): ...this, and update
6074 header comment. Remove language_defn parameter, and replace with
6075 uses of `this'.
6076 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6077
ebe2334e
AB
60782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6081 initializer.
6082 (ada_language::value_print_inner): New member function.
6083 * c-lang.c (c_language_data): Delete la_value_print_inner
6084 initializer.
6085 (cplus_language_data): Likewise.
6086 (asm_language_data): Likewise.
6087 (minimal_language_data): Likewise.
6088 * d-lang.c (d_language_data): Likewise.
6089 (d_language::value_print_inner): New member function.
6090 * f-lang.c (f_language_data): Delete la_value_print_inner
6091 initializer.
6092 (f_language::value_print_inner): New member function.
6093 * f-lang.h (f_value_print_innner): Rename to...
6094 (f_value_print_inner): ...this (note spelling of 'inner').
6095 * f-valprint.c (f_value_print_innner): Rename to...
6096 (f_value_print_inner): ...this (note spelling of 'inner').
6097 * go-lang.c (go_language_data): Delete la_value_print_inner
6098 initializer.
6099 (go_language::value_print_inner): New member function.
6100 * language.c (language_defn::value_print_inner): Define new member
6101 function.
6102 (unk_lang_value_print_inner): Delete.
6103 (unknown_language_data): Delete la_value_print_inner initializer.
6104 (unknown_language::value_print_inner): New member function.
6105 (auto_language_data): Delete la_value_print_inner initializer.
6106 (auto_language::value_print_inner): New member function.
6107 * language.h (language_data): Delete la_value_print_inner field.
6108 (language_defn::value_print_inner): Delcare new member function.
6109 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6110 initializer.
6111 (m2_language::value_print_inner): New member function.
6112 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6113 initializer.
6114 * opencl-lang.c (opencl_language_data): Likewise.
6115 * p-lang.c (pascal_language_data): Likewise.
6116 (pascal_language::value_print_inner): New member function.
6117 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6118 initializer.
6119 (rust_language::value_print_inner): New member function.
6120 * valprint.c (do_val_print): Update call to value_print_inner.
6121
a1d1fa3e
AB
61222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6123
6124 * ada-lang.c (ada_language_data): Delete la_value_print
6125 initializer.
6126 (ada_language::value_print): New member function.
6127 * c-lang.c (c_language_data): Delete la_value_print initializer.
6128 (cplus_language_data): Likewise.
6129 (asm_language_data): Likewise.
6130 (minimal_language_data): Likewise.
6131 * d-lang.c (d_language_data): Likewise.
6132 * f-lang.c (f_language_data): Likewise.
6133 * go-lang.c (go_language_data): Likewise.
6134 * language.c (unk_lang_value_print): Delete.
6135 (language_defn::value_print): Define new member function.
6136 (unknown_language_data): Delete la_value_print initializer.
6137 (unknown_language::value_print): New member function.
6138 (auto_language_data): Delete la_value_print initializer.
6139 (auto_language::value_print): New member function.
6140 * language.h (language_data): Delete la_value_print field.
6141 (language_defn::value_print): Declare new member function.
6142 (LA_VALUE_PRINT): Update call to value_print.
6143 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6144 * objc-lang.c (objc_language_data): Likewise.
6145 * opencl-lang.c (opencl_language_data): Likewise.
6146 * p-lang.c (pascal_language_data): Likewise.
6147 (pascal_language::value_print): New member function.
6148 * rust-lang.c (rust_language_data): Delete la_value_print
6149 initializer.
6150
f16a9f57
AB
61512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * ada-lang.c (ada_watch_location_expression): Rename to
6154 ada_language::watch_location_expression.
6155 (ada_language_data): Delete la_watch_location_expression
6156 initializer.
6157 (ada_language::watch_location_expression): New member function,
6158 implementation from ada_watch_location_expression.
6159 * breakpoint.c (watch_command_1): Update call to
6160 watch_location_expression.
6161 * c-lang.c (c_watch_location_expression): Rename to
6162 language_defn::watch_location_expression.
6163 (c_language_data): Delete la_watch_location_expression
6164 initializer.
6165 (cplus_language_data): Likewise.
6166 (asm_language_data): Likewise.
6167 (minimal_language_data): Likewise.
6168 * c-lang.h (c_watch_location_expression): Delete declaration.
6169 * d-lang.c (d_language_data): Delete la_watch_location_expression
6170 initializer.
6171 * f-lang.c (f_language_data): Likewise.
6172 * go-lang.c (go_language_data): Likewise.
6173 * language.c (language_defn::watch_location_expression): Member
6174 function implementation from c_watch_location_expression.
6175 (unknown_language_data): Delete la_watch_location_expression
6176 initializer.
6177 (auto_language_data): Likewise.
6178 * language.h (language_data): Delete la_watch_location_expression
6179 field.
6180 (language_defn::watch_location_expression): Declare new member
6181 function.
6182 * m2-lang.c (m2_language_data): Delete
6183 la_watch_location_expression initializer.
6184 * objc-lang.c (objc_language_data): Likewise.
6185 * opencl-lang.c (opencl_language_data): Likewise.
6186 * p-lang.c (pascal_language_data): Likewise.
6187 * rust-lang.c (rust_watch_location_expression): Rename to
6188 rust_language::watch_location_expression.
6189 (rust_language_data): Delete la_watch_location_expression
6190 initializer.
6191 (rust_language::watch_location_expression): New member function,
6192 implementation from rust_watch_location_expression.
6193
7e56227d
AB
61942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6195
6196 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6197 ada_language::collect_symbol_completion_matches.
6198 (ada_language_data): Delete la_collect_symbol_completion_matches
6199 initializer.
6200 (ada_language::collect_symbol_completion_matches): New member
6201 function, implementation from
6202 ada_collect_symbol_completion_matches.
6203 * c-lang.c (c_language_data): Delete
6204 la_collect_symbol_completion_matches initializer.
6205 (cplus_language_data): Likewise.
6206 (asm_language_data): Likewise.
6207 (minimal_language_data): Likewise.
6208 * d-lang.c (d_language_data): Likewise.
6209 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6210 f_language::collect_symbol_completion_matches.
6211 (f_language_data): Delete la_collect_symbol_completion_matches
6212 initializer.
6213 (f_language::collect_symbol_completion_matches) New member
6214 function, implementation from f_collect_symbol_completion_matches.
6215 * go-lang.c (go_language_data): Delete
6216 la_collect_symbol_completion_matches initializer.
6217 * language.c (unknown_language_data): Likewise.
6218 (auto_language_data): Likewise.
6219 * language.h (language_data): Delete
6220 la_collect_symbol_completion_matches field.
6221 (language_defn::collect_symbol_completion_matches): New member
6222 function.
6223 * m2-lang.c (m2_language_data): Delete
6224 la_collect_symbol_completion_matches initializer.
6225 * objc-lang.c (objc_language_data): Likewise.
6226 * opencl-lang.c (opencl_language_data): Likewise.
6227 * p-lang.c (pascal_language_data): Likewise.
6228 * rust-lang.c (rust_language_data): Likewise.
6229 * symtab.c (default_collect_symbol_completion_matches): Delete.
6230 (collect_symbol_completion_matches): Update call to
6231 collect_symbol_completion_matches.
6232 (collect_symbol_completion_matches_type): Likewise.
6233 * symtab.h (default_collect_symbol_completion_matches): Delete
6234 declaration.
6235
53fc67f8
AB
62362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6239 (ada_language_data): Delete la_word_break_characters initializer.
6240 (ada_language::word_break_characters): New member function.
6241 * c-lang.c (c_language_data): Delete la_word_break_characters
6242 initializer.
6243 (cplus_language_data): Likewise.
6244 (asm_language_data): Likewise.
6245 (minimal_language_data): Likewise.
6246 * completer.c: Update global comment.
6247 (advance_to_expression_complete_word_point): Update call to
6248 word_break_characters.
6249 (complete_files_symbols): Likewise.
6250 (complete_line_internal_1): Likewise.
6251 (default_completer_handle_brkchars): Likewise.
6252 (skip_quoted_chars): Likewise.
6253 * d-lang.c (d_language_data): Delete la_word_break_characters
6254 initializer.
6255 * f-lang.c (f_word_break_characters): Delete.
6256 (f_language_data): Delete la_word_break_characters initializer.
6257 (f_language::word_break_characters): New member function.
6258 * go-lang.c (go_language_data): Delete la_word_break_characters
6259 initializer.
6260 * language.c (unknown_language_data): Likewise.
6261 (auto_language_data): Likewise.
6262 * language.h (default_word_break_characters): Move declaration to
6263 earlier in the file.
6264 (language_data): Delete la_word_break_characters field.
6265 (language_defn::word_break_characters): New member function.
6266 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6267 initializer.
6268 * objc-lang.c (objc_language_data): Likewise.
6269 * opencl-lang.c (opencl_language_data): Likewise.
6270 * p-lang.c (pascal_language_data): Likewise.
6271 * rust-lang.c (rust_language_data): Likewise.
6272
c9debfb9
AB
62732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6276 (ada_language_data): Delete la_get_symbol_name_matcher
6277 initializer.
6278 (language_defn::get_symbol_name_matcher_inner): New member
6279 function.
6280 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6281 initializer.
6282 (cplus_language_data): Likewise.
6283 (cplus_language::get_symbol_name_matcher_inner): New member
6284 function.
6285 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6286 (minimal_language_data): Likewise.
6287 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6288 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6289 initializer.
6290 * dictionary.c (iter_match_first_hashed): Update call to
6291 get_symbol_name_matcher.
6292 (iter_match_next_hashed): Likewise.
6293 (iter_match_next_linear): Likewise.
6294 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6295 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6296 initializer.
6297 (f_language::get_symbol_name_matcher_inner): New member function.
6298 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6299 initializer.
6300 * language.c (default_symbol_name_matcher): Update header comment,
6301 make static.
6302 (language_defn::get_symbol_name_matcher): New definition.
6303 (language_defn::get_symbol_name_matcher_inner): Likewise.
6304 (get_symbol_name_matcher): Delete.
6305 (unknown_language_data): Delete la_get_symbol_name_matcher
6306 initializer.
6307 (auto_language_data): Likewise.
6308 * language.h (language_data): Delete la_get_symbol_name_matcher
6309 field.
6310 (language_defn::get_symbol_name_matcher): New member function.
6311 (language_defn::get_symbol_name_matcher_inner): Likewise.
6312 (default_symbol_name_matcher): Delete declaration.
6313 * linespec.c (find_methods): Update call to
6314 get_symbol_name_matcher.
6315 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6316 initializer.
6317 * minsyms.c (lookup_minimal_symbol): Update call to
6318 get_symbol_name_matcher.
6319 (iterate_over_minimal_symbols): Likewise.
6320 * objc-lang.c (objc_language_data): Delete
6321 la_get_symbol_name_matcher initializer.
6322 * opencl-lang.c (opencl_language_data): Likewise.
6323 * p-lang.c (pascal_language_data): Likewise.
6324 * psymtab.c (psymbol_name_matches): Update call to
6325 get_symbol_name_matcher.
6326 * rust-lang.c (rust_language_data): Delete
6327 la_get_symbol_name_matcher initializer.
6328 * symtab.c (symbol_matches_search_name): Update call to
6329 get_symbol_name_matcher.
6330 (compare_symbol_name): Likewise.
6331
9a49ad8c
AB
63322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * ada-lang.c (ada_language_data): Delete la_compute_program
6335 initializer.
6336 * c-lang.c (c_language_data): Likewise.
6337 (c_language::compute_program): New member function.
6338 (cplus_language_data): Delete la_compute_program initializer.
6339 (cplus_language::compute_program): New member function.
6340 (asm_language_data): Delete la_compute_program initializer.
6341 (minimal_language_data): Likewise.
6342 * c-lang.h (c_compute_program): Update comment.
6343 (cplus_compute_program): Likewise.
6344 * compile/compile-c-support.c (c_compute_program): Likewise.
6345 (cplus_compute_program): Likewise.
6346 * compile/compile.c (compile_to_object): Update call to
6347 la_compute_program.
6348 * d-lang.c (d_language_data): Delete la_compute_program
6349 initializer.
6350 * f-lang.c (f_language_data): Likewise.
6351 * go-lang.c (go_language_data): Likewise.
6352 * language.c (unknown_language_data): Likewise.
6353 (auto_language_data): Likewise.
6354 * language.h (language_data): Delete la_compute_program field.
6355 (language_defn::compute_program): New member function.
6356 * m2-lang.c (m2_language_data): Delete la_compute_program
6357 initializer.
6358 * objc-lang.c (objc_language_data): Likewise.
6359 * opencl-lang.c (opencl_language_data): Likewise.
6360 * p-lang.c (pascal_language_data): Likewise.
6361 * rust-lang.c (rust_language_data): Likewise.
6362
eff93b4d
AB
63632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * ada-lang.c (ada_language_data) Delete
6366 la_class_name_from_physname initializer.
6367 * c-lang.c (c_language_data): Likewise.
6368 (cplus_language_data): Likewise.
6369 (cplus_language::class_name_from_physname): New member function.
6370 (asm_language_data): Delete la_class_name_from_physname
6371 initializer.
6372 (minimal_language_data): Likewise.
6373 * d-lang.c (d_language_data): Likewise.
6374 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6375 method on language_defn class.
6376 (guess_full_die_structure_name): Likewise.
6377 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6378 initializer.
6379 * go-lang.c (go_language_data): Likewise.
6380 * language.c (language_class_name_from_physname): Delete.
6381 (unk_lang_class_name): Delete.
6382 (unknown_language_data): Delete la_class_name_from_physname
6383 initializer.
6384 (auto_language_data): Likewise.
6385 * language.h (language_data): Delete la_class_name_from_physname
6386 field.
6387 (language_defn::class_name_from_physname): New function.
6388 (language_class_name_from_physname): Delete declaration.
6389 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6390 initializer.
6391 * objc-lang.c (objc_language_data): Likewise.
6392 * opencl-lang.c (opencl_language_data): Likewise.
6393 * p-lang.c (pascal_language_data): Likewise.
6394 * rust-lang.c (rust_language_data): Likewise.
6395
de543742
TT
63962020-06-16 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-data.h (STATUS_NAME): New macro.
6399 * tui/tui-layout.c (tui_remove_some_windows)
6400 (initialize_known_windows, tui_register_window)
6401 (tui_layout_split::remove_windows, initialize_layouts)
6402 (tui_new_layout_command): Don't use hard-coded window names.
6403
a350efd4
TT
64042020-06-16 Tom Tromey <tom@tromey.com>
6405
6406 PR tui/25348:
6407 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6408 tui_initialize_readline. Only run once. Call rl_initialize.
6409 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6410 tui_initialize_readline.
6411 * tui/tui-io.c (tui_setup_io): Call
6412 tui_ensure_readline_initialized.
6413 * tui/tui-interp.c (tui_interp::init): Update.
6414
39ec0490
TT
64152020-06-16 Tom Tromey <tom@tromey.com>
6416
6417 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6418 Also preserve the status window.
6419
d2d1ea20
TT
64202020-06-16 Tom Tromey <tom@tromey.com>
6421
6422 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6423 where m_window==nullptr.
6424
66920317
TT
64252020-06-15 Tom Tromey <tromey@adacore.com>
6426
6427 * windows-nat.c (windows_nat::handle_output_debug_string):
6428 Update.
6429 (windows_nat::handle_ms_vc_exception): Update.
6430 * target.h (target_read_string): Change API.
6431 * target.c (target_read_string): Change API.
6432 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6433 Update.
6434 * solib-frv.c (frv_current_sos): Update.
6435 * solib-dsbt.c (dsbt_current_sos): Update.
6436 * solib-darwin.c (darwin_current_sos): Update.
6437 * linux-thread-db.c (inferior_has_bug): Update.
6438 * expprint.c (print_subexp_standard): Update.
6439 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6440 (ada_exception_message_1): Update.
6441
a5d871dd
TT
64422020-06-15 Tom Tromey <tromey@adacore.com>
6443
6444 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6445
670e35fa
TT
64462020-06-15 Tom Tromey <tromey@adacore.com>
6447
6448 * valprint.c (read_string): Update comment.
6449 * target.c (MIN): Remove.
6450 (target_read_string): Rewrite.
6451
f5272a3b
TT
64522020-06-15 Tom Tromey <tromey@adacore.com>
6453
6454 * corefile.c (read_memory_string): Remove.
6455 * ada-valprint.c (ada_value_print_ptr): Update.
6456 * ada-lang.h (ada_tag_name): Change return type.
6457 * ada-lang.c (type_from_tag): Update.
6458 (ada_tag_name_from_tsd): Change return type. Use
6459 target_read_string.
6460 (ada_tag_name): Likewise.
6461 * gdbcore.h (read_memory_string): Don't declare.
6462
2c074f49
HD
64632020-06-14 Hannes Domani <ssbssa@yahoo.de>
6464
6465 * symtab.c (rbreak_command): Ignore Windows drive colon.
6466
6a17d503
SM
64672020-06-12 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * NEWS: Mention removed GDBserver host support.
6470
453c733f
NC
64712020-06-12 Nelson Chu <nelson.chu@sifive.com>
6472
6473 * features/riscv/rebuild-csr-xml.sh: Updated.
6474
2b4e6a3f
TT
64752020-06-11 Tom Tromey <tom@tromey.com>
6476
6477 PR gdb/18318:
6478 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6479
4412332f
JG
64802020-06-09 Jonny Grant <jg@jguk.org>
64812020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * main.c (captured_main_1): Don't print new line after help.
6484 (print_gdb_help): add mailing list and IRC channel information
6485 to --help. Add new lines between items in the footer. Remove
6486 quotes around bug url.
6487
2f33032a
KS
64882020-06-11 Keith Seitz <keiths@redhat.com>
6489
6490 PR gdb/21356
6491 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6492 Resolve typedefs for type length calculations.
6493
7ab96794
TV
64942020-06-10 Tom de Vries <tdevries@suse.de>
6495
6496 PR ada/24713
6497 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6498 (write_psymbols): Enable .gdb_index for ada.
6499 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6500 ada.
6501
e5f3ece2
TV
65022020-06-10 Tom de Vries <tdevries@suse.de>
6503
6504 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6505 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6506 namei" instead of "const char *name" argument.
6507 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6508 dw2_symtab_iter_init.
6509
940da03e
SM
65102020-06-08 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6513 to use type::field and field::type instead.
6514
b6cdac4b
SM
65152020-06-08 Simon Marchi <simon.marchi@efficios.com>
6516
6517 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6518 to use field::type instead.
6519
5d14b6e5
SM
65202020-06-08 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * gdbtypes.h (struct field) <type, set_type>: New methods.
6523 Rename `type` field to...
6524 <m_type>: ... this. Change references throughout to use type or
6525 set_type methods.
6526 (FIELD_TYPE): Use field::type. Change call sites that modify
6527 the field's type to use field::set_type instead.
6528
3d967001
SM
65292020-06-08 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6532 to use type::index_type instead.
6533
262abc0d
SM
65342020-06-08 Simon Marchi <simon.marchi@efficios.com>
6535
6536 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6537 methods.
6538 (TYPE_INDEX_TYPE): Use type::index_type.
6539 * gdbtypes.c (create_array_type_with_stride): Likewise.
6540
82836c92
TT
65412020-06-07 Tom Tromey <tom@tromey.com>
6542
6543 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6544 parameter.
6545 (generic_value_print): Update.
6546
940dace9
AB
65472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 Revert commit 982a38f60b0.
6550 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6551
982a38f6
AB
65522020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6555 avoid use after free.
6556
82f06518
TV
65572020-06-05 Tom de Vries <tdevries@suse.de>
6558
6559 * NEWS: Fix typos.
6560
f8c41851
SM
65612020-06-04 Simon Marchi <simon.marchi@efficios.com>
6562
6563 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6564 the per_bfd object.
6565 (dwarf2_read_debug_names): Likewise.
6566 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6567 object when re-using a per_bfd object with an index.
6568
f9b5d5ea
TV
65692020-06-03 Tom de Vries <tdevries@suse.de>
6570
6571 PR symtab/26046
6572 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6573 children for C++.
6574 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6575 DW_TAG_subprogram.
6576
f6eee2d0
AB
65772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 * ada-lang.c (ada_language_data): Delete skip_trampoline
6580 initializer.
6581 * c-lang.c (c_language_data): Likewise.
6582 (cplus_language_data): Likewise.
6583 (cplus_language::skip_trampoline): New member function.
6584 (asm_language_data): Delete skip_trampoline initializer.
6585 (minimal_language_data): Likewise.
6586 * d-lang.c (d_language_data): Likewise.
6587 * f-lang.c (f_language_data): Likewise.
6588 * go-lang.c (go_language_data): Likewise.
6589 * language.c (unk_lang_trampoline): Delete function.
6590 (skip_language_trampoline): Update.
6591 (unknown_language_data): Delete skip_trampoline initializer.
6592 (auto_language_data): Likewise.
6593 * language.h (language_data): Delete skip_trampoline field.
6594 (language_defn::skip_trampoline): New function.
6595 * m2-lang.c (m2_language_data): Delete skip_trampoline
6596 initializer.
6597 * objc-lang.c (objc_skip_trampoline): Delete function, move
6598 implementation to objc_language::skip_trampoline.
6599 (objc_language_data): Delete skip_trampoline initializer.
6600 (objc_language::skip_trampoline): New member function with
6601 implementation from objc_skip_trampoline.
6602 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6603 initializer.
6604 * p-lang.c (pascal_language_data): Likewise.
6605 * rust-lang.c (rust_language_data): Likewise.
6606
0a50df5d
AB
66072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6610 (ada_language::demangle): New member function.
6611 * c-lang.c (c_language_data): Delete la_demangle initializer.
6612 (cplus_language_data): Delete la_demangle initializer.
6613 (cplus_language::demangle): New member function.
6614 (asm_language_data): Delete la_demangle initializer.
6615 (minimal_language_data): Delete la_demangle initializer.
6616 * d-lang.c (d_language_data): Delete la_demangle initializer.
6617 (d_language::demangle): New member function.
6618 * f-lang.c (f_language_data): Delete la_demangle initializer.
6619 (f_language::demangle): New member function.
6620 * go-lang.c (go_language_data): Delete la_demangle initializer.
6621 (go_language::demangle): New member function.
6622 * language.c (language_demangle): Update.
6623 (unk_lang_demangle): Delete.
6624 (unknown_language_data): Delete la_demangle initializer.
6625 (unknown_language::demangle): New member function.
6626 (auto_language_data): Delete la_demangle initializer.
6627 (auto_language::demangle): New member function.
6628 * language.h (language_data): Delete la_demangle field.
6629 (language_defn::demangle): New function.
6630 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6631 * objc-lang.c (objc_language_data): Delete la_demangle
6632 initializer.
6633 (objc_language::demangle): New member function.
6634 * opencl-lang.c (opencl_language_data): Delete la_demangle
6635 initializer.
6636 * p-lang.c (pascal_language_data): Likewise.
6637 * rust-lang.c (rust_language_data): Likewise.
6638 (rust_language::demangle): New member function.
6639
fbfb0a46
AB
66402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * ada-lang.c (ada_language_data): Delete la_print_type
6643 initializer.
6644 (ada_language::print_type): New member function.
6645 * c-lang.c (c_language_data): Delete la_print_type initializer.
6646 (c_language::print_type): New member function.
6647 (cplus_language_data): Delete la_print_type initializer.
6648 (cplus_language::print_type): New member function.
6649 (asm_language_data): Delete la_print_type initializer.
6650 (asm_language::print_type): New member function.
6651 (minimal_language_data): Delete la_print_type initializer.
6652 (minimal_language::print_type): New member function.
6653 * d-lang.c (d_language_data): Delete la_print_type initializer.
6654 (d_language::print_type): New member function.
6655 * f-lang.c (f_language_data): Delete la_print_type initializer.
6656 (f_language::print_type): New member function.
6657 * go-lang.c (go_language_data): Delete la_print_type initializer.
6658 (go_language::print_type): New member function.
6659 * language.c (unk_lang_print_type): Delete.
6660 (unknown_language_data): Delete la_print_type initializer.
6661 (unknown_language::print_type): New member function.
6662 (auto_language_data): Delete la_print_type initializer.
6663 (auto_language::print_type): New member function.
6664 * language.h (language_data): Delete la_print_type field.
6665 (language_defn::print_type): New function.
6666 (LA_PRINT_TYPE): Update.
6667 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6668 (m2_language::print_type): New member function.
6669 * objc-lang.c (objc_language_data): Delete la_print_type
6670 initializer.
6671 (objc_language::print_type): New member function.
6672 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6673 to opencl_language::print_type.
6674 (opencl_language_data): Delete la_print_type initializer.
6675 (opencl_language::print_type): New member function, implementation
6676 from opencl_print_type.
6677 * p-lang.c (pascal_language_data): Delete la_print_type
6678 initializer.
6679 (pascal_language::print_type): New member function.
6680 * rust-lang.c (rust_print_type): Delete, implementation moved to
6681 rust_language::print_type.
6682 (rust_language_data): Delete la_print_type initializer.
6683 (rust_language::print_type): New member function, implementation
6684 from rust_print_type.
6685
6f827019
AB
66862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6689 implementation moves to...
6690 (ada_language::sniff_from_mangled_name): ...here. Update return
6691 type.
6692 (ada_language_data): Delete la_sniff_from_mangled_name
6693 initializer.
6694 * c-lang.c (c_language_data): Likewise.
6695 (cplus_language_data): Likewise.
6696 (cplus_language::sniff_from_mangled_name): New member function,
6697 implementation taken from gdb_sniff_from_mangled_name.
6698 (asm_language_data): Delete la_sniff_from_mangled_name
6699 initializer.
6700 (minimal_language_data): Likewise.
6701 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6702 implementation moves to cplus_language::sniff_from_mangled_name.
6703 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6704 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6705 moves to...
6706 (d_language::sniff_from_mangled_name): ...here.
6707 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6708 * f-lang.c (f_language_data): Likewise.
6709 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6710 moves to...
6711 (go_language::sniff_from_mangled_name): ...here.
6712 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6713 * language.c (language_sniff_from_mangled_name): Delete.
6714 (unknown_language_data): Delete la_sniff_from_mangled_name
6715 initializer.
6716 (auto_language_data): Likewise.
6717 * language.h (language_data): Delete la_sniff_from_mangled_name
6718 field.
6719 (language_defn::sniff_from_mangled_name): New function.
6720 (language_sniff_from_mangled_name): Delete declaration.
6721 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6722 field.
6723 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6724 implementation moves to...
6725 (objc_language::sniff_from_mangled_name): ...here.
6726 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6727 * opencl-lang.c (opencl_language_data): Likewise.
6728 * p-lang.c (pascal_language_data): Likewise.
6729 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6730 implementation moves to...
6731 (rust_language::sniff_from_mangled_name): ...here.
6732 (rust_language_data): Delete la_sniff_from_mangled_name
6733 initializer.
6734 * symtab.c (symbol_find_demangled_name): Call
6735 sniff_from_mangled_name member function.
6736
fb8006fd
AB
67372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6740 initializer.
6741 * c-lang.c (c_language_data): Likewise.
6742 (cplus_language_data): Likewise.
6743 (cplus_language::search_name_hash): New member function.
6744 (asm_language_data): Delete la_search_name_hash initializer.
6745 (minimal_language_data): Likewise.
6746 * d-lang.c (d_language_data): Likewise.
6747 * dictionary.c (default_search_name_hash): Rename to...
6748 (language_defn::search_name_hash): ...this.
6749 * f-lang.c (f_language_data): Likewise.
6750 (f_language::search_name_hash): New member function.
6751 * go-lang.c (go_language_data): Delete la_search_name_hash
6752 initializer.
6753 * language.c (unknown_language_data): Likewise.
6754 (auto_language_data): Likewise.
6755 * language.h (struct language_data): Delete la_search_name_hash
6756 field.
6757 (language_defn::search_name_hash): Declare new member function.
6758 (default_search_name_hash): Delete declaration.
6759 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6760 initializer.
6761 * objc-lang.c (objc_language_data): Likewise.
6762 * opencl-lang.c (opencl_language_data): Likewise.
6763 * p-lang.c (pascal_language_data): Likewise.
6764 * rust-lang.c (rust_language_data): Likewise.
6765 * symtab.c (search_name_hash): Update call.
6766
8e25bafe
AB
67672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6770 initializer.
6771 * c-lang.c (class compile_instance): Declare.
6772 (c_language_data): Delete la_get_compile_instance initializer.
6773 (c_language::get_compile_instance): New member function.
6774 (cplus_language_data): Delete la_get_compile_instance initializer.
6775 (cplus_language::get_compile_instance): New member function.
6776 (asm_language_data): Delete la_get_compile_instance initializer.
6777 (minimal_language_data): Likewise.
6778 * c-lang.h (c_get_compile_context): Update comment.
6779 (cplus_get_compile_context): Update comment.
6780 * compile/compile.c (compile_to_object): Update calls, don't rely
6781 on function pointer being NULL.
6782 * d-lang.c (d_language_data): Delete la_get_compile_instance
6783 initializer.
6784 * f-lang.c (f_language_data): Likewise.
6785 * go-lang.c (go_language_data): Likewise.
6786 * language.c (unknown_language_data): Likewise.
6787 (auto_language_data): Likewise.
6788 * language.h (language_data): Delete la_get_compile_instance field.
6789 (language_defn::get_compile_instance): New member function.
6790 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6791 initializer.
6792 * objc-lang.c (objc_language_data): Likewise.
6793 * opencl-lang.c (opencl_language_data): Likewise.
6794 * p-lang.c (pascal_language_data): Likewise.
6795 * rust-lang.c (rust_language_data): Likewise.
6796
4009ee92
AB
67972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6798
6799 * ada-lang.c (ada_add_all_symbols): Update comment.
6800 (ada_iterate_over_symbols): Delete, move implementation to...
6801 (ada_language::iterate_over_symbols): ...here, a new member
6802 function, rewrite to use range based for loop.
6803 (ada_language_data): Delete la_iterate_over_symbols initializer.
6804 * c-lang.c (c_language_data): Likewise.
6805 (cplus_language_data): Likewise.
6806 (asm_language_data): Likewise.
6807 (minimal_language_data): Likewise.
6808 * d-lang.c (d_language_data): Likewise.
6809 * f-lang.c (f_language_data): Likewise.
6810 * go-lang.c (go_language_data): Likewise.
6811 * language.c (unknown_language_data): Likewise.
6812 (auto_language_data): Likewise.
6813 * language.h (language_data): Delete la_iterate_over_symbols field.
6814 (language_defn::iterate_over_symbols): New member function.
6815 (LA_ITERATE_OVER_SYMBOLS): Update.
6816 * linespec.c (iterate_over_all_matching_symtabs): Update.
6817 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6818 initializer.
6819 * objc-lang.c (objc_language_data): Likewise.
6820 * opencl-lang.c (opencl_language_data): Likewise.
6821 * p-lang.c (pascal_language_data): Likewise.
6822 * rust-lang.c (rust_language_data): Likewise.
6823
54f4ca46
AB
68242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6825
6826 * ada-lang.c (ada_language_data): Delete
6827 la_lookup_transparent_type initializer.
6828 * c-lang.c (c_language_data): Likewise.
6829 (cplus_language_data): Likewise.
6830 (cplus_language::lookup_transparent_type): New member function.
6831 (asm_language_data): Delete la_lookup_transparent_type
6832 initializer.
6833 (minimal_language_data): Likewise.
6834 * d-lang.c (d_language_data): Likewise.
6835 * f-lang.c (f_language_data): Likewise.
6836 * go-lang.c (go_language_data): Likewise.
6837 * language.c (unknown_language_data): Likewise.
6838 (auto_language_data): Likewise.
6839 * language.h (struct language_data): Delete
6840 la_lookup_transparent_type field.
6841 (language_defn::lookup_transparent_type): New member function.
6842 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6843 initializer.
6844 * objc-lang.c (objc_language_data): Likewise.
6845 * opencl-lang.c (opencl_language_data): Likewise.
6846 * p-lang.c (pascal_language_data): Likewise.
6847 * rust-lang.c (rust_language_data): Likewise.
6848 * symtab.c (symbol_matches_domain): Update call.
6849
1fb314aa
AB
68502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 * ada-lang.c (ada_language_arch_info): Delete function, move
6853 implementation to...
6854 (ada_language::language_arch_info): ...here, a new member
6855 function.
6856 (ada_language_data): Delete la_language_arch_info.
6857 * c-lang.c (c_language_data): Likewise.
6858 (c_language::language_arch_info): New member function.
6859 (cplus_language_arch_info): Delete function, move
6860 implementation to...
6861 (cplus_language::language_arch_info): ...here, a new member
6862 function.
6863 (cplus_language_data): Delete la_language_arch_info.
6864 (asm_language_data): Likewise.
6865 (asm_language::language_arch_info): New member function.
6866 (minimal_language_data): Delete la_language_arch_info.
6867 (minimal_language::language_arch_info): New member function.
6868 * d-lang.c (d_language_arch_info): Delete function, move
6869 implementation to...
6870 (d_language::language_arch_info): ...here, a new member
6871 function.
6872 (d_language_data): Delete la_language_arch_info.
6873 * f-lang.c (f_language_arch_info): Delete function, move
6874 implementation to...
6875 (f_language::language_arch_info): ...here, a new member
6876 function.
6877 (f_language_data): Delete la_language_arch_info.
6878 * go-lang.c (go_language_arch_info): Delete function, move
6879 implementation to...
6880 (go_language::language_arch_info): ...here, a new member
6881 function.
6882 (go_language_data): Delete la_language_arch_info.
6883 * language.c (unknown_language_data): Likewise.
6884 (unknown_language::language_arch_info): New member function.
6885 (auto_language_data): Delete la_language_arch_info.
6886 (auto_language::language_arch_info): New member function.
6887 (language_gdbarch_post_init): Update call to
6888 la_language_arch_info.
6889 * language.h (language_data): Delete la_language_arch_info
6890 function pointer.
6891 (language_defn::language_arch_info): New function.
6892 * m2-lang.c (m2_language_arch_info): Delete function, move
6893 implementation to...
6894 (m2_language::language_arch_info): ...here, a new member
6895 function.
6896 (m2_language_data): Delete la_language_arch_info.
6897 * objc-lang.c (objc_language_arch_info): Delete function, move
6898 implementation to...
6899 (objc_language::language_arch_info): ...here, a new member
6900 function.
6901 (objc_language_data): Delete la_language_arch_info.
6902 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6903 implementation to...
6904 (opencl_language::language_arch_info): ...here, a new member
6905 function.
6906 (opencl_language_data): Delete la_language_arch_info.
6907 * p-lang.c (pascal_language_arch_info): Delete function, move
6908 implementation to...
6909 (pascal_language::language_arch_info): ...here, a new member
6910 function.
6911 (pascal_language_data): Delete la_language_arch_info.
6912 * rust-lang.c (rust_language_arch_info): Delete function, move
6913 implementation to...
6914 (rust_language::language_arch_info): ...here, a new member
6915 function.
6916 (rust_language_data): Delete la_language_arch_info.
6917
48448202
AB
69182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6919
6920 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6921 initializer.
6922 * c-lang.c (c_language_data): Likewise.
6923 (cplus_language_data): Likewise.
6924 (cplus_language::pass_by_reference_info): New method.
6925 (asm_language_data): Delete la_pass_by_reference initializer.
6926 (minimal_language_data): Likewise.
6927 * cp-abi.c (cp_pass_by_reference): Remove use of
6928 default_pass_by_reference.
6929 * d-lang.c (d_language_data): Likewise.
6930 * f-lang.c (f_language_data): Likewise.
6931 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6932 default_pass_by_reference.
6933 * go-lang.c (go_language_data): Likewise.
6934 * language.c (language_pass_by_reference): Update.
6935 (default_pass_by_reference): Delete.
6936 (unknown_language_data): Delete la_pass_by_reference
6937 initializer.
6938 (auto_language_data): Likewise.
6939 * language.h (struct language_data): Delete la_pass_by_reference
6940 field.
6941 (language_defn::pass_by_reference_info): New member function.
6942 (default_pass_by_reference): Delete declaration.
6943 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6944 initializer.
6945 * objc-lang.c (objc_language_data): Likewise.
6946 * opencl-lang.c (opencl_language_data): Likewise.
6947 * p-lang.c (pascal_language_data): Likewise.
6948 * rust-lang.c (rust_language_data): Likewise.
6949
15e5fd35
AB
69502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * ada-lang.c (ada_read_var_value): Delete function, move
6953 implementation to...
6954 (ada_language::read_var_value): ...here.
6955 (ada_language_data): Delete la_read_var_value initializer.
6956 * c-lang.c (c_language_data): Likewise.
6957 (cplus_language_data): Likewise.
6958 (minimal_language_data): Likewise.
6959 * d-lang.c (d_language_data): Likewise.
6960 * f-lang.c (f_language_data): Likewise.
6961 * findvar.c (default_read_var_value): Rename to...
6962 (language_defn::read_var_value): ...this.
6963 * findvar.c (read_var_value): Update header comment, and change to
6964 call member function instead of function pointer.
6965 * go-lang.c (go_language_data): Likewise.
6966 * language.c (unknown_language_data): Delete la_read_var_value
6967 initializer.
6968 (auto_language_data): Likewise.
6969 * language.h (struct language_data): Delete la_read_var_value
6970 field.
6971 (language_defn::read_var_value): New member function.
6972 (default_read_var_value): Delete declaration.
6973 * m2-lang.c (m2_language_data): Delete la_read_var_value
6974 initializer.
6975 * objc-lang.c (objc_language_data): Likewise.
6976 * opencl-lang.c (opencl_language_data): Likewise.
6977 * p-lang.c (pascal_language_data): Likewise.
6978 * rust-lang.c (rust_language_data): Likewise.
6979 * value.h (default_read_var_value): Delete declaration.
6980
5bd40f2a
AB
69812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * ada-lang.c (ada_print_array_index): Delete function, move
6984 implementation to...
6985 (ada_language::print_array_index): ...here.
6986 (ada_language_data): Delete la_print_array_index initializer.
6987 * c-lang.c (c_language_data): Likewise.
6988 (cplus_language_data): Likewise.
6989 (minimal_language_data): Likewise.
6990 * d-lang.c (d_language_data): Likewise.
6991 * f-lang.c (f_language_data): Likewise.
6992 * go-lang.c (go_language_data): Likewise.
6993 * language.c (default_print_array_index): Delete function, move
6994 implementation to...
6995 (language_defn::print_array_index): ...here.
6996 (unknown_language_data): Delete la_print_array_index initializer.
6997 (auto_language_data): Likewise.
6998 * language.h (struct language_data): Delete la_print_array_index
6999 field.
7000 (language_defn::print_array_index): New member function.
7001 (LA_PRINT_ARRAY_INDEX): Update.
7002 (default_print_array_index): Delete declaration.
7003 * m2-lang.c (m2_language_data): Delete la_print_array_index
7004 initializer.
7005 * objc-lang.c (objc_language_data): Likewise.
7006 * opencl-lang.c (opencl_language_data): Likewise.
7007 * p-lang.c (pascal_language_data): Likewise.
7008 * rust-lang.c (rust_language_data): Likewise.
7009
0874fd07
AB
70102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * gdb/ada-lang.c (ada_language_defn): Convert to...
7013 (ada_language_data): ...this.
7014 (class ada_language): New class.
7015 (ada_language_defn): New static global.
7016 * gdb/c-lang.c (c_language_defn): Convert to...
7017 (c_language_data): ...this.
7018 (class c_language): New class.
7019 (c_language_defn): New static global.
7020 (cplus_language_defn): Convert to...
7021 (cplus_language_data): ...this.
7022 (class cplus_language): New class.
7023 (cplus_language_defn): New static global.
7024 (asm_language_defn): Convert to...
7025 (asm_language_data): ...this.
7026 (class asm_language): New class.
7027 (asm_language_defn): New static global.
7028 (minimal_language_defn): Convert to...
7029 (minimal_language_data): ...this.
7030 (class minimal_language): New class.
7031 (minimal_language_defn): New static global.
7032 * gdb/d-lang.c (d_language_defn): Convert to...
7033 (d_language_data): ...this.
7034 (class d_language): New class.
7035 (d_language_defn): New static global.
7036 * gdb/f-lang.c (f_language_defn): Convert to...
7037 (f_language_data): ...this.
7038 (class f_language): New class.
7039 (f_language_defn): New static global.
7040 * gdb/go-lang.c (go_language_defn): Convert to...
7041 (go_language_data): ...this.
7042 (class go_language): New class.
7043 (go_language_defn): New static global.
7044 * gdb/language.c (unknown_language_defn): Remove declaration.
7045 (current_language): Initialize to nullptr, real initialization is
7046 moved to _initialize_language.
7047 (languages): Delete global.
7048 (language_defn::languages): Define.
7049 (set_language_command): Use language_defn::languages.
7050 (set_language): Likewise.
7051 (range_error): Likewise.
7052 (language_enum): Likewise.
7053 (language_def): Likewise.
7054 (add_set_language_command): Use language_def::languages for the
7055 language list, and language_def to lookup language pointers.
7056 (skip_language_trampoline): Use language_defn::languages.
7057 (unknown_language_defn): Convert to...
7058 (unknown_language_data): ...this.
7059 (class unknown_language): New class.
7060 (unknown_language_defn): New static global.
7061 (auto_language_defn): Convert to...
7062 (auto_language_data): ...this.
7063 (class auto_language): New class.
7064 (auto_language_defn): New static global.
7065 (language_gdbarch_post_init): Use language_defn::languages.
7066 (_initialize_language): Initialize current_language.
7067 * gdb/language.h (struct language_defn): Rename to...
7068 (struct language_data): ...this.
7069 (struct language_defn): New.
7070 (auto_language_defn): Delete.
7071 (unknown_language_defn): Delete.
7072 (minimal_language_defn): Delete.
7073 (ada_language_defn): Delete.
7074 (asm_language_defn): Delete.
7075 (c_language_defn): Delete.
7076 (cplus_language_defn): Delete.
7077 (d_language_defn): Delete.
7078 (f_language_defn): Delete.
7079 (go_language_defn): Delete.
7080 (m2_language_defn): Delete.
7081 (objc_language_defn): Delete.
7082 (opencl_language_defn): Delete.
7083 (pascal_language_defn): Delete.
7084 (rust_language_defn): Delete.
7085 * gdb/m2-lang.c (m2_language_defn): Convert to...
7086 (m2_language_data): ...this.
7087 (class m2_language): New class.
7088 (m2_language_defn): New static global.
7089 * gdb/objc-lang.c (objc_language_defn): Convert to...
7090 (objc_language_data): ...this.
7091 (class objc_language): New class.
7092 (objc_language_defn): New static global.
7093 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7094 (opencl_language_data): ...this.
7095 (class opencl_language): New class.
7096 (opencl_language_defn): New static global.
7097 * gdb/p-lang.c (pascal_language_defn): Convert to...
7098 (pascal_language_data): ...this.
7099 (class pascal_language): New class.
7100 (pascal_language_defn): New static global.
7101 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7102 language pointer, update comment format.
7103 * gdb/rust-lang.c (rust_language_defn): Convert to...
7104 (rust_language_data): ...this.
7105 (class rust_language): New class.
7106 (rust_language_defn): New static global.
7107
1313c56e
AB
71082020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7109
7110 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7111 member variable.
7112 <m_stmt_at_address>: New member variable.
7113 (lnp_state_machine::record_line): Don't record some lines, update
7114 tracking of is_stmt at the same address.
7115 (lnp_state_machine::lnp_state_machine): Initialise new member
7116 variables.
7117
b7ed9f3d
ST
71182020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7119
7120 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7121 "-include gnu-nat-mig.h".
7122 * gnu-nat-mig.h: New file.
7123 * gnu-nat.c: Include "gnu-nat-mig.h".
7124 (exc_server, msg_reply_server, notify_server,
7125 process_reply_server): Remove declarations.
7126
14a8ad62
ST
71272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7128
7129 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7130 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7131 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7132 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7133 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7134 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7135 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7136 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7137 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7138 to gnu_nat_target class.
7139 * gnu-nat.c: Likewise.
7140 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7141 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7142 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7143 object.
7144 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7145 instead of `gnu_target'.
7146
0af5e106
ST
71472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7148
7149 * i386-gnu-tdep.c: Include "gdbcore.h"
7150 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7151 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7152 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7153 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7154 i386_gnu_sigcontext_addr): New functions
7155 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7156 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7157 tdep.
7158
078f2fc9
ST
71592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7160
7161 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7162 before fork_inferior call. Avoid calling it if target_is_pushed returns
7163 true.
7164
53dff92c
ST
71652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7166
7167 * gnu-nat.h (gnu_target): New variable declaration.
7168 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7169 gnu_target.
7170 * gnu-nat.c (gnu_target): New variable.
7171 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7172 add_thread_silent, and add_thread calls.
7173 (gnu_nat_target::create_inferior): Pass gnu_target to
7174 add_thread_silent, thread_change_ptid call.
7175 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7176 call.
7177
5a8b8627
ST
71782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7179
7180 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7181 (gnu_nat_target::find_memory_regions): Remove unused
7182 `old_address' variable.
7183
366f550a
ST
71842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7185
7186 * gnu-nat.c: Include "gdbarch.h".
7187
f14871bf
ST
71882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7189
7190 * reply_mig_hack.awk (Error return): Cast function through
7191 void *, to bypass compiler function call check.
7192
c6887cfb
ST
71932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7194
7195 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7196 $(srcdir)/reply_mig_hack.awk.
7197
6930bffe
ST
71982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7199
7200 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7201
112c22ed
JG
72022020-05-30 Jonny Grant <jg@jguk.org>
7203
7204 * configure.ac (ACX_BUGURL): change bug URL to https.
7205
f68f85b5
PA
72062020-05-30 Pedro Alves <palves@redhat.com>
7207
7208 * cp-support.c (replace_typedefs_template): New.
7209 (replace_typedefs_qualified_name): Handle
7210 DEMANGLE_COMPONENT_TEMPLATE.
7211
976ca316
SM
72122020-05-29 Simon Marchi <simon.marchi@efficios.com>
7213
7214 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7215 dwarf2/index-cache.h, dwarf2/index-write.c,
7216 dwarf2/index-write.h, dwarf2/line-header.c,
7217 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7218 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7219 variables and fields from `dwarf2_per_objfile` to just
7220 `per_objfile` throughout.
7221
989ade05
SM
72222020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7223
7224 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7225 <push_dwarf_reg_entry_value>: Add comment.
7226
c47bae85
KB
72272020-05-28 Kevin Buettner <kevinb@redhat.com>
7228 Keith Seitz <keiths@redhat.com>
7229
7230 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7231 instead of PyEval_ReleaseLock.
7232 (class gdbpy_gil): Move to earlier in file.
7233 (finalize_python): Set gdb_python_initialized.
7234 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7235 when not initialized.
7236
44486dcf
SM
72372020-05-28 Simon Marchi <simon.marchi@efficios.com>
7238
7239 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7240 <push_dwarf_reg_entry_value>: Remove assert. Override
7241 per_objfile with caller_per_objfile.
7242
f030440d
TV
72432020-05-28 Tom de Vries <tdevries@suse.de>
7244
7245 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7246 PR gold/15646 workaround to symbol kind "type".
7247
f0fbb768
TT
72482020-05-27 Tom Tromey <tromey@adacore.com>
7249
7250 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7251
af0b2a3e
TT
72522020-05-27 Tom Tromey <tromey@adacore.com>
7253
7254 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7255 Use htab_find_with_hash.
7256 <add_abbrev>: Remove "abbrev_number" parameter.
7257 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7258 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7259 (hash_abbrev): Add comment.
7260 (abbrev_table::lookup_abbrev): Move to header file.
7261 (abbrev_table::read): Update.
7262
7d00ffec
TT
72632020-05-27 Tom Tromey <tromey@adacore.com>
7264
7265 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7266 method.
7267 <canonical_name>: New member.
7268 <raw_name>: Rename from "name".
7269 (partial_die_info): Initialize canonical_name.
7270 (scan_partial_symbols): Check raw_name.
7271 (partial_die_parent_scope, partial_die_full_name)
7272 (add_partial_symbol, add_partial_subprogram)
7273 (add_partial_enumeration, load_partial_dies): Use "name" method.
7274 (partial_die_info::name): New method.
7275 (partial_die_info::read, guess_partial_die_structure_name)
7276 (partial_die_info::fixup): Update.
7277
697bba18
TT
72782020-05-27 Tom Tromey <tromey@adacore.com>
7279
7280 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7281 <get_ref_die_offset>: Inline.
7282 <get_ref_die_offset_complaint>: New method.
7283 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7284 (attribute::get_ref_die_offset_complaint): Rename from
7285 get_ref_die_offset. Just issue complaint.
7286
c17ace43
HD
72872020-05-27 Hannes Domani <ssbssa@yahoo.de>
7288
7289 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7290
96445f0b
HD
72912020-05-27 Hannes Domani <ssbssa@yahoo.de>
7292
7293 * exec.c (exec_file_attach): Use errno value of first openp failure.
7294
ac637ec3
HD
72952020-05-27 Hannes Domani <ssbssa@yahoo.de>
7296
7297 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7298 Don't close thread handle.
7299
17ee85fc
TT
73002020-05-27 Tom Tromey <tom@tromey.com>
7301 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7304 shared_ptr.
7305 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7306 member.
7307 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7308 dwarf2_per_bfd_objfile_data_key>: New globals.
7309 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7310 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7311 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7312 shared.
7313 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7314 short-circuit when sharing.
7315 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7316 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7317
39b16f87
SM
73182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7319
7320 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7321 to...
7322 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7323 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7324
fcf23d5b
SM
73252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7328 build_name_components, find_name_components_bounds>:
7329 Add per_objfile parameter.
7330 (struct mapped_index) <symbol_name_at>: Likewise.
7331 (struct mapped_debug_names): Remove constructor.
7332 <dwarf2_per_objfile>: Remove field.
7333 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7334 (mapped_index_base::find_name_components_bounds,
7335 mapped_index_base::build_name_components,
7336 dw2_expand_symtabs_matching_symbol): Likewise.
7337 (class mock_mapped_index) <symbol_name_at>: Likewise.
7338 (check_match): Likewise.
7339 (check_find_bounds_finds): Likewise.
7340 (test_mapped_index_find_name_component_bounds): Update.
7341 (CHECK_MATCH): Update.
7342 (dw2_expand_symtabs_matching): Update.
7343 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7344 per_objfile parameter.
7345 <find_vec_in_debug_names>: Likewise.
7346 <m_per_objfile>: New field.
7347 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7348 parameter.
7349 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7350 (dw2_debug_names_iterator::next): Update.
7351 (dw2_debug_names_lookup_symbol): Update.
7352 (dw2_debug_names_expand_symtabs_for_function): Update.
7353 (dw2_debug_names_map_matching_symbols): Update.
7354 (dw2_debug_names_expand_symtabs_matching): Update.
7355 (dwarf2_read_debug_names): Update.
7356
7188ed02
SM
73572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7360 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7361 move to dwarf2_per_objfile.
7362 <read_in_chain>: Remove.
7363 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7364 remove_all_cus, age_comp_units>: New methods.
7365 <m_dwarf2_cus>: New member.
7366 (struct dwarf2_per_cu_data) <cu>: Remove.
7367 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7368 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7369 moved to methods of dwarf2_per_objfile.
7370 (dwarf2_clear_marks): Remove.
7371 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7372 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7373 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7374 (dwarf2_per_objfile::remove_all_cus): New.
7375 (class free_cached_comp_units) <~free_cached_comp_units>:
7376 Update.
7377 (load_cu): Update.
7378 (dw2_do_instantiate_symtab): Adjust.
7379 (fill_in_sig_entry_from_dwo_entry): Adjust.
7380 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7381 (cutu_reader::cutu_reader): Likewise.
7382 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7383 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7384 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7385 and dwarf2_per_objfile::age_comp_units.
7386 (load_partial_comp_unit): Update.
7387 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7388 (process_queue): Likewise.
7389 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7390 backlink.
7391 (dwarf2_read_addr_index): Likewise.
7392 (follow_die_offset): Likewise.
7393 (dwarf2_fetch_die_loc_sect_off): Likewise.
7394 (dwarf2_fetch_constant_bytes): Likewise.
7395 (dwarf2_fetch_die_type_sect_off): Likewise.
7396 (follow_die_sig_1): Likewise.
7397 (load_full_type_unit): Likewise.
7398 (read_signatured_type): Likewise.
7399 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7400 (dwarf2_cu::~dwarf2_cu): Remove.
7401 (dwarf2_per_objfile::get_cu): New.
7402 (dwarf2_per_objfile::set_cu): New.
7403 (age_cached_comp_units): Rename to...
7404 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7405 to std::unordered_map.
7406 (free_one_cached_comp_unit): Rename to...
7407 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7408 to std::unordered_map.
7409 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7410 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7411 a dwarf2_per_objfile in data.
7412 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7413 (dwarf2_clear_marks): Remove.
7414
2e671100
SM
74152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7418 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7419 (init_tu_and_read_dwo_dies): Likewise.
7420 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7421 (cutu_reader::cutu_reader): Likewise.
7422 (load_partial_comp_unit): Likewise.
7423 (process_psymtab_comp_unit): Update.
7424 (build_type_psymtabs_1): Update.
7425 (process_skeletonless_type_unit): Update.
7426 (load_full_comp_unit): Update.
7427 (find_partial_die): Update.
7428 (dwarf2_read_addr_index): Update.
7429 (read_signatured_type): Update.
7430
2e6a9f79
SM
74312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7434 m_header_read_in>: New fields.
7435 <get_header>: New method.
7436 * dwarf2/read.c (per_cu_header_read_in): Remove.
7437 (dwarf2_per_cu_data::get_header): New.
7438 (dwarf2_per_cu_data::addr_size): Update.
7439 (dwarf2_per_cu_data::offset_size): Update.
7440 (dwarf2_per_cu_data::ref_addr_size): Update.
7441
1b555f17
SM
74422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7443
7444 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7445 (dw2_do_instantiate_symtab): Update.
7446 (queue_and_load_all_dwo_tus): Change parameter from
7447 dwarf2_per_cu_data to dwarf2_cu.
7448 (dwarf2_fetch_die_loc_sect_off): Update.
7449 (dwarf2_fetch_constant_bytes): Update.
7450 (dwarf2_fetch_die_type_sect_off): Update.
7451
8fc0b21d
SM
74522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * dwarf2/read.c (process_full_comp_unit,
7455 process_full_type_unit): Remove per_cu, per_objfile paramters.
7456 Add dwarf2_cu parameter.
7457 (process_queue): Update.
7458
168c9250
SM
74592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * dwarf2/read.c (create_cu_from_index_list): Replace
7462 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7463 (create_cus_from_index_list): Likewise.
7464 (create_cus_from_index): Likewise.
7465 (create_signatured_type_table_from_index): Likewise.
7466 (create_cus_from_debug_names_list): Likewise.
7467 (create_cus_from_debug_names): Likewise.
7468 (dwarf2_read_gdb_index): Update.
7469 (dwarf2_read_debug_names): Update.
7470
e286671b
TT
74712020-05-27 Tom Tromey <tom@tromey.com>
7472 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * dwarf2/read.h (struct dwarf2_per_objfile)
7475 <get_type_for_signatured_type, set_type_for_signatured_type>:
7476 New methods.
7477 <m_type_map>: New member.
7478 (struct signatured_type) <type>: Remove.
7479 * dwarf2/read.c
7480 (dwarf2_per_objfile::get_type_for_signatured_type,
7481 dwarf2_per_objfile::set_type_for_signatured_type): New.
7482 (get_signatured_type): Use new methods.
7483
8adb8487
TT
74842020-05-27 Tom Tromey <tom@tromey.com>
7485 Simon Marchi <simon.marchi@efficios.com>
7486
7487 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7488 (struct dwarf2_per_objfile) <type_units>: New member.
7489 <get_type_unit_group_unshareable>: New method.
7490 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7491 num_symtabs, symtabs>: Remove; move to
7492 type_unit_group_unshareable.
7493 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7494 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7495 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7496
127bbf4b
SM
74972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * dwarf2/read.h (struct dwarf2_per_cu_data):
7500 <dwarf2_per_objfile>: Remove.
7501 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7502 dwarf2_per_objfile.
7503 (create_signatured_type_table_from_index): Likewise.
7504 (create_signatured_type_table_from_debug_names): Likewise.
7505 (create_debug_type_hash_table): Likewise.
7506 (fill_in_sig_entry_from_dwo_entry): Likewise.
7507 (create_type_unit_group): Likewise.
7508 (read_comp_units_from_section): Likewise.
7509 (create_cus_hash_table): Likewise.
7510
f6e649dd
SM
75112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7514 dwarf2_per_cu_data::dwarf2_per_objfile.
7515 (compute_compunit_symtab_includes): Likewise.
7516 (dwarf2_cu::start_symtab): Likewise.
7517
aa66c379
SM
75182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7519
7520 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7521 parameter.
7522 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7523 (read_namespace_alias): Update.
7524 (lookup_die_type): Update.
7525 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7526 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7527 Update.
7528 (disassemble_dwarf_expression): Update.
7529
120ce1b5
SM
75302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * dwarf2/read.h (struct dwarf2_queue_item): Add
7533 dwarf2_per_objfile parameter, assign new parameter.
7534 <per_objfile>: New field.
7535 * dwarf2/read.c (free_one_cached_comp_unit): Add
7536 dwarf2_per_objfile parameter.
7537 (queue_comp_unit): Likewise.
7538 (dw2_do_instantiate_symtab): Update.
7539 (process_psymtab_comp_unit): Update.
7540 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7541 (process_imported_unit_die): Update.
7542 (queue_and_load_dwo_tu): Update.
7543 (follow_die_offset): Update.
7544 (follow_die_sig_1): Update.
7545
9f47c707
SM
75462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7549 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7550 (read_call_site_scope): Assign per_objfile.
7551 (dwarf2_per_cu_data::objfile): Remove.
7552 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7553 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7554 dwarf2_per_objfile parameter.
7555 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7556 dwarf2_per_objfile parameter.
7557 (dwarf_expr_reg_to_entry_parameter): Add output
7558 dwarf2_per_objfile parameter.
7559 (locexpr_get_frame_base): Update.
7560 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7561 <push_dwarf_reg_entry_value>: Update.
7562 <call_site_to_target_addr>: Update.
7563 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7564 parameter.
7565 (value_of_dwarf_reg_entry): Update.
7566 (rw_pieced_value): Update.
7567 (indirect_synthetic_pointer): Update.
7568 (dwarf2_evaluate_property): Update.
7569 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7570 parameter.
7571 (locexpr_read_variable): Update.
7572 (locexpr_get_symbol_read_needs): Update.
7573 (loclist_read_variable): Update.
7574
14095eb3
SM
75752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7578 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7579 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7580 parameter.
7581 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7582 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7583 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7584 parameter.
7585 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7586 sect_variable_value): Add dwarf2_per_objfile parameter.
7587 (class dwarf_evaluate_loc_desc) <dwarf_call,
7588 dwarf_variable_value>: Update.
7589 (fetch_const_value_from_synthetic_pointer): Add
7590 dwarf2_per_objfile parameter.
7591 (fetch_const_value_from_synthetic_pointer): Update.
7592 (coerced_pieced_ref): Update.
7593 (class symbol_needs_eval_context) <dwarf_call,
7594 dwarf_variable_value>: Update.
7595 (dwarf2_compile_expr_to_ax): Update.
7596
3c3cd3d4
SM
75972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7600 parameter.
7601 (dwarf2_evaluate_loc_desc_full): Update.
7602
82ca3f51
SM
76032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7604
7605 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7606 parameter.
7607 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7608 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7609 dwarf2_per_objfile parameter.
7610 (decode_debug_loc_dwo_addresses): Likewise.
7611 (dwarf2_find_location_expression): Update.
7612 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7613 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7614 parameter.
7615 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7616 parameter.
7617 (locexpr_describe_location_1): Likewise.
7618 (locexpr_describe_location): Update.
7619
4b167ea1
SM
76202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7623 Remove.
7624 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7625 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7626 (dwarf2_compile_property_to_c): Update.
7627 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7628 use text offset from objfile.
7629 (locexpr_tracepoint_var_ref): Update.
7630 (locexpr_generate_c_location): Update.
7631 (loclist_describe_location): Update.
7632 (loclist_tracepoint_var_ref): Update.
7633 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7634 dwarf2_per_objfile parameter.
7635 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7636 use text offset from objfile.
7637 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7638
89b07335
SM
76392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7640
7641 * dwarf2/expr.h (struct dwarf_expr_context)
7642 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7643 <offset>: Remove.
7644 <per_objfile>: New member.
7645 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7646 dwarf2_per_objfile parameter. Don't set offset, set
7647 per_objfile.
7648 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7649 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7650 a dwarf2_per_objfile object instead of an offset.
7651 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7652 constructor.
7653 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7654 to dwarf2_expr_executor constructor. Don't set offset.
7655 (dwarf2_fetch_cfa_info): Update.
7656 (struct dwarf2_frame_cache) <text_offset>: Remove.
7657 <per_objfile>: New field.
7658 (dwarf2_frame_cache): Update.
7659 (dwarf2_frame_prev_register): Update.
7660 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7661 <dwarf_evaluate_loc_desc>: Add constructor.
7662 (dwarf2_evaluate_loc_desc_full): Update.
7663 (dwarf2_locexpr_baton_eval): Update.
7664 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7665 Add constructor.
7666 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7667
293e7e51
SM
76682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7671 addr_sized_int_type>: Move to dwarf2_cu.
7672 <int_type>: Move to dwarf2_per_objfile.
7673 (struct dwarf2_per_objfile) <int_type>: Move here.
7674 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7675 addr_sized_int_type>: Move here.
7676 (read_func_scope): Update.
7677 (read_array_type): Update.
7678 (read_tag_string_type): Update.
7679 (attr_to_dynamic_prop): Update.
7680 (dwarf2_per_cu_data::int_type): Rename to...
7681 (dwarf2_per_objfile::int_type): ... this.
7682 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7683 (dwarf2_cu::addr_sized_int_type): ... this.
7684 (read_subrange_type): Update.
7685 (dwarf2_per_cu_data::addr_type): Rename to...
7686 (dwarf2_cu::addr_type): ... this.
7687 (set_die_type): Update.
7688
64874a40
SM
76892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7692 data through per_cu->cu.
7693
4ab09049
SM
76942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7697 dwarf2_per_cu_data parameter fo dwarf2_cu.
7698 (lookup_dwo_type_unit): Likewise.
7699 (read_cutu_die_from_dwo): Likewise.
7700 (lookup_dwo_unit): Likewise.
7701 (open_and_init_dwo_file): Likewise.
7702 (lookup_dwo_cutu): Likewise.
7703 (lookup_dwo_comp_unit): Likewise.
7704 (lookup_dwo_type_unit): Likewise.
7705 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7706 (cutu_reader::cutu_reader): Update.
7707
47b14e86
SM
77082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7711 parameter.
7712 (process_full_type_unit): Likewise.
7713 (process_queue): Update.
7714
43182c09
SM
77152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * dwarf2/read.c (recursively_compute_inclusions): Add
7718 dwarf2_per_objfile parameter.
7719 (compute_compunit_symtab_includes): Likewise.
7720 (process_cu_includes): Update.
7721
7aa104c4
SM
77222020-05-27 Simon Marchi <simon.marchi@efficios.com>
7723
7724 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7725 parameter.
7726 (create_type_unit_group): Update.
7727 (process_psymtab_comp_unit_reader): Update.
7728 (build_type_psymtabs_reader): Update.
7729
e3beb21d
SM
77302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7733 object through m_this_cu->cu.
7734
d460f660
SM
77352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7738 the info parameter.
7739 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7740
ab432490
SM
77412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7742
7743 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7744 per_objfile parameter.
7745 (load_full_type_unit): Add per_objfile parameter.
7746 (read_signatured_type): Likewise.
7747 (load_full_comp_unit): Likewise.
7748 (load_cu): Likewise.
7749 (dw2_do_instantiate_symtab): Likewise.
7750 (dw2_get_file_names): Likewise.
7751 (dw2_map_symtabs_matching_filename): Update.
7752 (dw_expand_symtabs_matching_file_matcher): Update.
7753 (dw2_map_symbol_filenames): Update.
7754 (process_psymtab_comp_unit): Add per_objfile parameter.
7755 (build_type_psymtabs_1): Update.
7756 (process_skeletonless_type_unit): Update.
7757 (dwarf2_build_psymtabs_hard): Update.
7758 (load_partial_comp_unit): Add per_objfile parameter.
7759 (scan_partial_symbols): Update.
7760 (load_full_comp_unit): Add per_objfile parameter.
7761 (process_imported_unit_die): Update.
7762 (create_cus_hash_table): Update.
7763 (find_partial_die): Update.
7764 (dwarf2_read_addr_index): Update.
7765 (follow_die_offset): Update.
7766 (dwarf2_fetch_die_loc_sect_off): Update.
7767 (dwarf2_fetch_constant_bytes): Update.
7768 (dwarf2_fetch_die_type_sect_off): Update.
7769 (follow_die_sig_1): Update.
7770 (load_full_type_unit): Add per_objfile parameter.
7771 (read_signatured_type): Likewise.
7772
313bad1b
SM
77732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7776 of objfile_name.
7777
c3699833
SM
77782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7781 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7782 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7783 field.
7784 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7785 (create_cus_from_index): Update.
7786 (dwarf2_read_gdb_index): Update.
7787 (create_cus_from_debug_names): Update.
7788 (dwarf2_read_debug_names): Update.
7789 (get_abbrev_section_for_cu): Update.
7790 (create_all_comp_units): Update.
7791 (read_attribute_value): Update.
7792 (get_debug_line_section): Update.
7793 * dwarf2/index-cache.c (index_cache::store): Update.
7794 * dwarf2/index-write.c (save_gdb_index_command): Update.
7795 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7796
1859c670
SM
77972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7798
7799 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7800 member.
7801 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7802 dwarf2_per_cu_data::per_bfd.
7803 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7804 (create_type_unit_group): Likewise.
7805 (queue_comp_unit): Remove reference to
7806 per_cu->dwarf2_per_objfile.
7807 (maybe_queue_comp_unit): Likewise.
7808 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7809 (create_cus_hash_table): Assign new field.
7810
5e22e966
SM
78112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7812
7813 * dwarf2/read.c: Replace
7814 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7815 dwarf2_cu->per_objfile throughout.
7816
97a1449a
SM
78172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7820 parameter, don't use per_cu->dwarf2_per_objfile.
7821 (dw2_instantiate_symtab): Likewise.
7822 (dw2_find_last_source_symtab): Update.
7823 (dw2_map_expand_apply): Update.
7824 (dw2_lookup_symbol): Update.
7825 (dw2_expand_symtabs_for_function): Update.
7826 (dw2_expand_all_symtabs): Update.
7827 (dw2_expand_symtabs_with_fullname): Update.
7828 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7829 don't use per_cu->dwarf2_per_objfile.
7830 (dw2_expand_marked_cus): Update.
7831 (dw2_find_pc_sect_compunit_symtab): Update.
7832 (dw2_debug_names_lookup_symbol): Update.
7833 (dw2_debug_names_expand_symtabs_for_function): Update.
7834 (dw2_debug_names_map_matching_symbols): Update.
7835 (dwarf2_psymtab::expand_psymtab): Update.
7836
9e021579
SM
78372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7838
7839 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7840 <per_objfile>: New member.
7841 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7842 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7843 call to dwarf2_cu.
7844 (cutu_reader::cutu_reader): Update.
7845 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7846
ae090bdb
SM
78472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7850 struct dwarf2_per_objfile.
7851 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7852 dwarf2_per_bfd.
7853 * dwarf2/read.c (set_die_type): Update.
7854 (get_die_type_at_offset): Update.
7855
af758d11
SM
78562020-05-27 Tom Tromey <tom@tromey.com>
7857 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7860 method.
7861 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7862 get_symtab, set_symtab>: New methods.
7863 <m_symtabs>: New field.
7864 (struct dwarf2_psymtab): Derive from partial_symtab.
7865 <readin_p, get_compunit_symtab>: Declare methods.
7866 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7867 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7868 New methods.
7869 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7870 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7871 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7872 (dw2_symtab_iter_next, dw2_print_stats)
7873 (dw2_expand_symtabs_with_fullname)
7874 (dw2_expand_symtabs_matching_one)
7875 (dw_expand_symtabs_matching_file_matcher)
7876 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7877 (dw2_debug_names_iterator::next)
7878 (dw2_debug_names_map_matching_symbols)
7879 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7880 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7881 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7882 New methods.
7883 (get_compunit_symtab, process_full_comp_unit)
7884 (process_full_type_unit): Update.
7885 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7886
5989a64e
SM
78872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7890 then introduce a new dwarf2_per_objfile type.
7891 <read_line_string>: Move to the new dwarf2_per_objfile type.
7892 <objfile>: Likewise.
7893 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7894 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7895 dwarf2_per_objfile->per_bfd.
7896 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7897 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7898 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7899 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7900 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7901 (dwarf2_per_objfile::locate_sections): Rename to...
7902 (dwarf2_per_bfd::locate_sections): ... this.
7903 (dwarf2_per_objfile::get_cutu): Rename to...
7904 (dwarf2_per_bfd::get_cutu): ... this.
7905 (dwarf2_per_objfile::get_cu): Rename to...
7906 (dwarf2_per_bfd::get_cu): ... this.
7907 (dwarf2_per_objfile::get_tu): Rename to...
7908 (dwarf2_per_bfd::get_tu): ... this.
7909 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7910 (dwarf2_per_bfd::allocate_per_cu): ... this.
7911 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7912 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7913 (get_gdb_index_contents_ftype): Change parameter from
7914 dwarf2_per_objfile to dwarf2_per_bfd.
7915 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7916 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7917
a50264ba
TT
79182020-05-27 Tom Tromey <tom@tromey.com>
7919 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7922 (allocate_piece_closure): Set "per_objfile" member.
7923 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7924 (locexpr_describe_location, loclist_describe_location): Use new
7925 member.
7926 * dwarf2/read.c (read_call_site_scope)
7927 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7928 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7929 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7930 handle_data_member_location): Set per_objfile member.
7931 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7932 member.
7933 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7934
d3473f0c
TT
79352020-05-27 Tom Tromey <tom@tromey.com>
7936
7937 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7938 allocate_signatured_type>: Declare new methods.
7939 <m_num_psymtabs>: New member.
7940 (struct dwarf2_per_cu_data) <index>: New member.
7941 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7942 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7943 (create_cu_from_index_list): Use allocate_per_cu.
7944 (create_signatured_type_table_from_index)
7945 (create_signatured_type_table_from_debug_names)
7946 (create_debug_type_hash_table, add_type_unit)
7947 (read_comp_units_from_section): Use allocate_signatured_type.
7948
5717c425
TT
79492020-05-27 Tom Tromey <tom@tromey.com>
7950
7951 * psymtab.c (partial_map_expand_apply)
7952 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7953 (psym_lookup_global_symbol_language)
7954 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7955 (psym_print_stats, psym_expand_symtabs_for_function)
7956 (psym_map_symbol_filenames, psym_map_matching_symbols)
7957 (psym_expand_symtabs_matching)
7958 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7959 (maintenance_check_psymtabs): Update.
7960 * psympriv.h (struct partial_symtab) <readin_p,
7961 get_compunit_symtab>: Add objfile parameter.
7962 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7963 Likewise.
7964 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7965 get_compunit_symtab>: Likewise.
7966 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7967
45940949
TT
79682020-05-27 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7971 member.
7972 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7973 (create_cu_from_index_list)
7974 (create_signatured_type_table_from_index)
7975 (create_signatured_type_table_from_debug_names)
7976 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7977 (dwarf2_create_include_psymtab)
7978 (create_debug_type_hash_table, add_type_unit)
7979 (create_type_unit_group, read_comp_units_from_section)
7980 (dwarf2_compute_name, create_cus_hash_table)
7981 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7982 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7983 obstack.
7984 (dw2_get_real_path): Likewise. Change argument to
7985 dwarf2_per_objfile.
7986
f8c6d152
LM
79872020-05-27 Luis Machado <luis.machado@linaro.org>
7988
7989 PR tdep/26000
7990 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7991 for ldrd (immediate).
7992
e98d2e6d
PW
79932020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7994
7995 * command.h: Add comment giving the name of class_tui.
7996 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7997 create the fake command for the help for class_tui.
7998
53a47a3e
TT
79992020-05-26 Tom Tromey <tromey@adacore.com>
8000
8001 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8002 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8003 (val_atr): New function.
8004 (value_val_atr): Use it.
8005 * ada-valprint.c (print_optional_low_bound): Change low bound
8006 handling for enums.
8007 (val_print_packed_array_elements): Don't call discrete_position.
8008 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8009 discrete_position for enum types.
8010 * language.c (default_print_array_index): Change type.
8011 * language.h (struct language_defn) <la_print_array_index>: Add
8012 index_type parameter, change type of index_value.
8013 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8014 (default_print_array_index): Update.
8015 * valprint.c (maybe_print_array_index): Don't call
8016 value_from_longest. Update.
8017 (value_print_array_elements): Don't call discrete_position.
8018
0bc2354b
TT
80192020-05-26 Tom Tromey <tromey@adacore.com>
8020
8021 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8022 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8023
1218a4bf
CDA
80242020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8025
8026 PR gdb/13519
8027 * avr-tdep.c (avr_integer_to_address): Return data or code
8028 address accordingly to the second 'type' argument of the
8029 function.
8030
92651b1d
MW
80312020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8032
8033 * infcmd.c, inferior.h: (construct_inferior_arguments):
8034 Moved function from here to gdbsupport/common-inferior.{h,cc}
8035
0a4f5f8c
TT
80362020-05-23 Tom Tromey <tom@tromey.com>
8037
8038 Revert commit eca1f90c:
8039 * NEWS: Remove entry for completion styling.
8040 * completer.c (_rl_completion_prefix_display_length): Move
8041 declaration later.
8042 (gdb_fnprint): Revert.
8043 (gdb_display_match_list_1): Likewise.
8044 * cli/cli-style.c (completion_prefix_style)
8045 (completion_difference_style, completion_suffix_style): Remove.
8046 (_initialize_cli_style): Revert.
8047 * cli/cli-style.h (completion_prefix_style)
8048 (completion_difference_style, completion_suffix_style): Don't
8049 declare.
8050
e08bd6c5
PA
80512020-05-24 Pedro Alves <palves@redhat.com>
8052
8053 * symtab.c (completion_list_add_name): Return boolean indication
8054 of whether the symbol matched.
8055 (completion_list_add_symbol): Don't try to remove C++ aliases if
8056 the symbol didn't match in the first place.
8057 * symtab.h (completion_list_add_name): Return bool.
8058
ceacbf6e
SM
80592020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8060
8061 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8062 type::field.
8063
26f16254
JB
80642020-05-23 Joel Brobecker <brobecker@adacore.com>
8065
8066 GDB 9.2 released.
8067
eca1f90c
TT
80682020-05-23 Tom Tromey <tom@tromey.com>
8069
8070 * NEWS: Add entry for completion styling.
8071 * completer.c (_rl_completion_prefix_display_length): Move
8072 declaration earlier.
8073 (gdb_fnprint): Use completion_style.
8074 (gdb_display_match_list_1): Likewise.
8075 * cli/cli-style.c (completion_prefix_style)
8076 (completion_difference_style, completion_suffix_style): New
8077 globals.
8078 (_initialize_cli_style): Register new globals.
8079 * cli/cli-style.h (completion_prefix_style)
8080 (completion_difference_style, completion_suffix_style): Declare.
8081
51e2cfa2
PA
80822020-05-23 Pedro Alves <palves@redhat.com>
8083
8084 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8085 (parse_escape): Use ISDIGIT instead of isdigit.
8086 (puts_debug): Use gdb_isprint instead of isprint.
8087 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8088 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8089 ISSPACE instead of isspace.
8090 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8091 instead of isspace.
8092 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8093 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8094 instead of isxdigit and ISDIGIT instead of isdigit.
8095
80fc5e77
SM
80962020-05-22 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * gdbtypes.h (struct type) <field>: New method.
8099 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8100 or type::field.
8101
3cabb6b0
SM
81022020-05-22 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8105 (TYPE_FIELDS): Use type::fields. Change all call sites that
8106 modify the propery to use type::set_fields instead.
8107
1f704f76
SM
81082020-05-22 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8111 type::num_fields instead.
8112
5e33d5f4
SM
81132020-05-22 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8116 methods.
8117 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8118 that modify the number of fields to use type::set_num_fields
8119 instead.
8120
9392ebb3
TT
81212020-05-22 Tom Tromey <tromey@adacore.com>
8122
8123 * compile/compile-object-load.h (munmap_list_free): Don't
8124 declare.
8125
7c13f4e8
AB
81262020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * annotate.c (annotate_source_line): Update return type, add call
8129 to update current symtab and line.
8130 * annotate.h (annotate_source_line): Update return type, and
8131 extend header comment.
8132 * source.c (info_line_command): Check annotation_level before
8133 calling annotate_source_line.
8134 * stack.c (print_frame_info): If calling annotate_source_line
8135 returns true, then don't print any other source line information.
8136
aa370940
SM
81372020-05-21 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8140
84d53fa9
SM
81412020-05-21 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * coffread.c (patch_type): Remove NULL check before xfree.
8144 * corefile.c (set_gnutarget): Likewise.
8145 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8146 * exec.c (build_section_table): Likewise.
8147 * remote.c (remote_target::pass_signals): Likewise.
8148 * utils.c (n_spaces): Likewise.
8149 * cli/cli-script.c (document_command): Likewise.
8150 * i386-windows-tdep.c (core_process_module_section): Likewise.
8151 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8152
9d428aae
SM
81532020-05-20 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * symfile.c (reread_symbols): Clear objfile's section_offsets
8156 vector and section indices, re-compute them by calling
8157 sym_offsets.
8158
250106a7
TT
81592020-05-20 Tom Tromey <tromey@adacore.com>
8160
8161 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8162 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8163
9a0bacfb
TV
81642020-05-20 Tom de Vries <tdevries@suse.de>
8165
8166 PR symtab/25833
8167 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8168
7b958a48
AM
81692020-05-20 Alan Modra <amodra@gmail.com>
8170
8171 PR 25993
8172 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8173 bfd_set_filename.
8174 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8175 passed to bfd_set_filename.
8176 * symfile-mem.c (add_vsyscall_page): Likewise for string
8177 passed to symbol_file_add_from_memory.
8178 (symbol_file_add_from_memory): Make name param a const char* and
8179 don't strdup.
8180
c7e97679
AM
81812020-05-20 Alan Modra <amodra@gmail.com>
8182
8183 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8184 rather than accessing bfd->filename directly.
8185 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8186 and use bfd_section_name.
8187 * dwarf2/frame.c (decode_frame_entry): Likewise.
8188 * exec.c (exec_set_section_address): Likewise.
8189 * solib-aix.c (solib_aix_bfd_open): Likewise.
8190 * stap-probe.c (get_stap_base_address): Likewise.
8191 * symfile.c (reread_symbols): Likewise.
8192
563c591b
TT
81932020-05-19 Tom Tromey <tromey@adacore.com>
8194
8195 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8196
f408d82c
SM
81972020-05-19 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8200
98c59b52
PA
82012020-05-19 Pedro Alves <palves@redhat.com>
8202
8203 * NEWS (set exec-file-mismatch): Adjust entry.
8204 * exec.c: Include "build-id.h".
8205 (validate_exec_file): Try to match build IDs instead of filenames.
8206 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8207 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8208 and pass down 'warn_if_slow'.
8209 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8210 gdb_bfd_open_closure to pass it down.
8211 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8212
4111f652
PA
82132020-05-19 Pedro Alves <palves@redhat.com>
8214
8215 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8216 * target.c (target_fileio_open_1): Rename to target_fileio_open
8217 and make extern. Use bool.
8218 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8219 (target_fileio_read_alloc_1): Adjust.
8220 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8221 (target_fileio_open_warn_if_slow): Delete declaration.
8222
ad80db5b
PA
82232020-05-19 Pedro Alves <palves@redhat.com>
8224
8225 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8226 Adjust all callers.
8227
1d6ce4d3
YS
82282020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8229
8230 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8231 whether disp is negative.
8232
9005fbbb
SM
82332020-05-19 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * symfile.h (struct symfile_segment_data)
8236 <~symfile_segment_data>: Remove.
8237 <segment_info>: Change to std::vector.
8238 * symfile.c (default_symfile_segments): Update.
8239 * elfread.c (elf_symfile_segments): Update.
8240
68b888ff
SM
82412020-05-19 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8244 <segments>: New.
8245 <segment_bases, segment_sizes>: Remove.
8246 * symfile.c (default_symfile_segments): Update.
8247 * elfread.c (elf_symfile_segments): Update.
8248 * remote.c (remote_target::get_offsets): Update.
8249 * solib-target.c (solib_target_relocate_section_addresses):
8250 Update.
8251
62982abd
SM
82522020-05-19 Simon Marchi <simon.marchi@efficios.com>
8253
8254 * symfile.h (struct symfile_segment_data): Initialize fields.
8255 <~symfile_segment_data>: Add.
8256 (symfile_segment_data_up): New.
8257 (struct sym_fns) <sym_segments>: Return a
8258 symfile_segment_data_up.
8259 (default_symfile_segments): Return a symfile_segment_data_up.
8260 (free_symfile_segment_data): Remove.
8261 (get_symfile_segment_data): Return a symfile_segment_data_up.
8262 * symfile.c (default_symfile_segments): Likewise.
8263 (get_symfile_segment_data): Likewise.
8264 (free_symfile_segment_data): Remove.
8265 (symfile_find_segment_sections): Update.
8266 * elfread.c (elf_symfile_segments): Return a
8267 symfile_segment_data_up.
8268 * remote.c (remote_target::get_offsets): Update.
8269 * solib-target.c (solib_target_relocate_section_addresses):
8270 Update.
8271 * symfile-debug.c (debug_sym_segments): Return a
8272 symfile_segment_data_up.
8273
7f204339
RO
82742020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8275
e52a0f1b
RO
8276 PR build/25981
8277 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8278 Hardcode register numbers.
8279
7f204339
RO
8280 PR build/25981
8281 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8282 procfs_find_LDT_entry): Remove.
8283 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8284 procfs_find_LDT_entry): Remove.
8285 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8286 Remove.
8287
7f32a4d5
PA
82882020-05-17 Pedro Alves <palves@redhat.com>
8289 Andrew Burgess <andrew.burgess@embecosm.com>
8290 Keno Fischer <keno@juliacomputing.com>
8291
8292 PR gdb/25741
8293 * breakpoint.c (build_target_condition_list): Update comments.
8294 (build_target_command_list): Update comments and skip matching
8295 locations.
8296 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8297 a separate function. Simplify "set breakpoint auto-hw off"
8298 handling.
8299 (insert_breakpoints): Update comment.
8300 (tracepoint_locations_match): New parameter. For breakpoints,
8301 compare location types too, if the caller wants to.
8302 (handle_automatic_hardware_breakpoints): New functions.
8303 (bp_location_is_less_than): Also sort by location type and
8304 hardware breakpoint length.
8305 (update_global_location_list): Handle "set breakpoint auto-hw on"
8306 here.
8307 (update_breakpoint_locations): Ask breakpoint_locations_match to
8308 ignore location types.
8309
7d93a1e0
SM
83102020-05-16 Simon Marchi <simon.marchi@efficios.com>
8311
8312 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8313 type::name instead.
8314
d0e39ea2
SM
83152020-05-16 Simon Marchi <simon.marchi@efficios.com>
8316
8317 * gdbtypes.h (struct type) <name, set_name>: New methods.
8318 (TYPE_CODE): Use type::name. Change all call sites used to set
8319 the name to use type::set_name instead.
8320
2dab0c7b
TT
83212020-05-16 Tom Tromey <tom@tromey.com>
8322
8323 * top.c (quit_force): Update.
8324 * infrun.c (handle_no_resumed): Update.
8325 * top.h (all_uis): New function.
8326 (ALL_UIS): Remove.
8327
59f7bd8d
SM
83282020-05-16 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8331
9bf058f0
PA
83322020-05-16 Pedro Alves <palves@redhat.com>
8333
8334 * ia64-linux-nat.c
8335 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8336 Declare method.
8337 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8338
8f86ae1a
SM
83392020-05-15 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8342 (sparc64_adi_info): Likewise.
8343
d6bc0792
TT
83442020-05-15 Tom Tromey <tom@tromey.com>
8345
8346 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8347 block_objfile.
8348 (lookup_objfile_from_block): Remove.
8349 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8350 (lookup_global_symbol): Use block_objfile.
8351 * symtab.h (lookup_objfile_from_block): Don't declare.
8352 * printcmd.c (clear_dangling_display_expressions): Use
8353 block_objfile.
8354 * parse.c (operator_check_standard): Use block_objfile.
8355
8c14c3a3
TT
83562020-05-15 Tom Tromey <tom@tromey.com>
8357
8358 * language.c (language_alloc_type_symbol): Set
8359 SYMBOL_SECTION.
8360 * symtab.c (initialize_objfile_symbol): Remove.
8361 (allocate_symbol): Remove.
8362 (allocate_template_symbol): Remove.
8363 * dwarf2/read.c (fixup_go_packaging): Use "new".
8364 (new_symbol): Use "new".
8365 (read_variable): Don't call initialize_objfile_symbol. Use
8366 "new".
8367 (read_func_scope): Use "new".
8368 * xcoffread.c (process_xcoff_symbol): Don't call
8369 initialize_objfile_symbol.
8370 (SYMBOL_DUP): Remove.
8371 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8372 "new".
8373 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8374 (allocate_template_symbol): Don't declare.
8375 (struct symbol): Add copy constructor. Change defaults.
8376 * jit.c (finalize_symtab): Use "new".
8377 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8378 Use "new".
8379 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8380 (common_block_end): Use "new".
8381 * mdebugread.c (parse_symbol): Use "new".
8382 (new_symbol): Likewise.
8383
5b4a1a8d
PW
83842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8385
8386 * NEWS: Mention changes to help and apropos.
8387
57b4f16e
PW
83882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8389
8390 * command.h (enum command_class): Improve comments, document
8391 that class_alias is for user-defined aliases, give the class
8392 name for each class, remove unused class_xdb.
8393 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8394 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8395 by a precise class.
8396 * infcmd.c (_initialize_infcmd): Likewise.
8397 * reverse.c (_initialize_reverse): Likewise.
8398 * stack.c (_initialize_stack): Likewise.
8399 * symfile.c (_initialize_symfile): Likewise.
8400 * tracepoint.c (_initialize_tracepoint): Likewise.
8401
7c05caf7
PW
84022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8403
8404 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8405 when their aliased command is traversed.
8406 (help_cmd): Add fput_command_names_styled call to
8407 output command name and aliases when command has an alias.
8408
3b3aaacb
PW
84092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8410
8411 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8412 * cli/cli-decode.c (help_cmd_list): Declare as static,
8413 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8414 a command together with the command.
8415 (fput_command_name_styled, fput_command_names_styled): New functions.
8416 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8417 fput_command_name_styled.
8418 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8419 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8420
7aa1b46f
PW
84212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8422
8423 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8424 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8425 * command.h (cmd_show_list): Likewise.
8426 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8427 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8428
89bcba74
PW
84292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8430
8431 * unittests/command-def-selftests.c (traverse_command_structure):
8432 Verify all commands of a list have the same prefix command and
8433 that only the top cmdlist commands have a null prefix.
8434
3f4d92eb
PW
84352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8436
8437 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8438 as prefix, not one of its aliases.
8439 (set_cmd_prefix): Remove.
8440 (do_add_cmd): Centralize the setting of the prefix of a command, when
8441 command is defined after its full chain of prefix commands.
8442 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8443 (add_setshow_cmd_full): Likewise.
8444 (update_prefix_field_of_prefixed_commands): New function.
8445 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8446 update_prefix_field_of_prefixed_commands.
8447 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8448 addresses of remote_set_cmdlist and remote_show_cmdlist given
8449 as argument, not the address of an argument.
8450 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8451 * gdb/remote.c (_initialize_remote): Likewise.
8452
0605465f
PW
84532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8454
8455 * cli/cli-cmds.c (alias_command): Check for an existing alias
8456 using lookup_cmd_composition, as valid_command_p is too strict
8457 and forbids aliases that are the prefix of an existing alias
8458 or command.
8459 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8460 command is properly recognised as a valid command.
8461
58e6ac70
PW
84622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8463
8464 * unittests/help-doc-selftests.c: Rename to
8465 unittests/command-def-selftests.c
8466 * unittests/command-def-selftests.c (help_doc_tests): Update some
8467 comments.
8468 (command_structure_tests, traverse_command_structure): New namespace
8469 and function.
8470 (command_structure_invariants_tests): New function.
8471 (_initialize_command_def_selftests) Renamed from
8472 _initialize_help_doc_selftests, register command_structure_invariants
8473 selftest.
8474
a7b9ceb8
PW
84752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8476
8477 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8478 an alias of 'show'.
8479
b2188a06
JB
84802020-05-15 Joel Brobecker <brobecker@adacore.com>
8481
8482 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8483 ada_is_fixed_point_type. Update all callers.
8484 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8485 all callers.
8486 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8487 Update all callers.
8488 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8489 print_fixed_point_type. Update all callers.
8490 * ada-valprint.c (ada_value_print_num): Replace call to
8491 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8492
a51951c2
KB
84932020-05-14 Kevin Buettner <kevinb@redhat.com>
8494
8495 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8496 processors.
8497 (cpu_supports_bts): Add CV_AMD case.
8498
29d6859f
LM
84992020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8500 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * infrun.c (stop_all_threads): Collect multiple wait events at
8503 each pass.
8504
78134374
SM
85052020-05-14 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8508 type::code instead.
8509
67607e24
SM
85102020-05-14 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * gdbtypes.h (struct type) <code, set_code>: New methods.
8513 (TYPE_CODE): Use type::code. Change all call sites used to set
8514 the code to use type::set_code instead.
8515
a05575d3
TBA
85162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8517 Tom de Vries <tdevries@suse.de>
8518 Pedro Alves <palves@redhat.com>
8519
8520 PR threads/25478
8521 * infrun.c (stop_all_threads): Do NOT ignore
8522 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8523 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8524 received.
8525 (handle_no_resumed): Remove code handling a live inferior with no
8526 threads.
8527 * remote.c (has_single_non_exited_thread): New.
8528 (remote_target::update_thread_list): Do not delete a thread if is
8529 the last thread of the process.
8530 * thread.c (thread_select): Call delete_exited_threads instead of
8531 prune_threads.
8532
6ad82919
TBA
85332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8534
8535 * infrun.c (stop_all_threads): Enable/disable thread events of all
8536 targets. Move a debug message denoting the end of the function
8537 into the SCOPED_EXIT block.
8538
d890404b
TBA
85392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8540
8541 * process-stratum-target.h: Include <set>.
8542 (all_non_exited_process_targets, switch_to_target_no_thread): New
8543 function declarations.
8544 * process-stratum-target.c (all_non_exited_process_targets)
8545 (switch_to_target_no_thread): New function implementations.
8546
293b3ebc
TBA
85472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8548
8549 * infrun.c (handle_inferior_event): Extract out a piece of code
8550 into...
8551 (mark_non_executing_threads): ...this new function.
8552
7ca9b62a
TBA
85532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8554
8555 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8556 use.
8557
fc75c28b
TBA
85582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8559
8560 * regcache.c (regcache_read_pc_protected): New function
8561 implementation that returns 0 if the PC cannot read via
8562 'regcache_read_pc'.
8563 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8564 instead of 'regcache_read_pc'.
8565 (keep_going_pass_signal): Ditto.
8566
a89febbd
TT
85672020-05-13 Tom Tromey <tromey@adacore.com>
8568
8569 * ada-lang.c (align_value): Remove.
8570 (ada_template_to_fixed_record_type_1): Use align_up.
8571
f7e23710
TBA
85722020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8573
8574 * async-event.c: Update the copyright year.
8575 * async-event.h: Update the copyright year.
8576
02ff80c2
SM
85772020-05-12 Simon Marchi <simon.marchi@efficios.com>
8578
8579 * objfiles.h (is_addr_in_objfile,
8580 shared_objfile_contains_address_p): Return bool.
8581 * objfile.c (is_addr_in_objfile,
8582 shared_objfile_contains_address_p): Return bool.
8583
4fd6c7e8
TT
85842020-05-11 Tom Tromey <tromey@adacore.com>
8585
8586 * cli/cli-cmds.c (info_command): Restore.
8587 (_initialize_cli_cmds): Use add_prefix_command for "info".
8588 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8589
5eb68a39
TT
85902020-05-11 Tom Tromey <tromey@adacore.com>
8591
8592 * ada-lang.c (ada_value_primitive_field): Now public.
8593 * ada-lang.h (ada_value_primitive_field): Declare.
8594 * ada-valprint.c (print_field_values): Use
8595 ada_value_primitive_field for wrapper fields.
8596
7666722f
TV
85972020-05-11 Tom de Vries <tdevries@suse.de>
8598
8599 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8600 MODULE_DOMAIN.
8601
3ee6bb11
TV
86022020-05-11 Tom de Vries <tdevries@suse.de>
8603
8604 PR symtab/25941
8605 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8606 with length 0, if not gdb-produced.
8607 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8608
43434996
TV
86092020-05-09 Tom de Vries <tdevries@suse.de>
8610
8611 PR gdb/25955
8612 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8613 calculation.
8614
2f78cffc
TT
86152020-05-09 Tom Tromey <tom@tromey.com>
8616
8617 * top.c (server_command): Now bool.
8618 * top.h (server_command): Now bool.
8619
4f7bc5ed
TT
86202020-05-08 Tom Tromey <tromey@adacore.com>
8621
8622 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8623 already being processed.
8624
8be4b118
TT
86252020-05-08 Tom Tromey <tom@tromey.com>
8626
8627 * printcmd.c (struct display) <next>: Remove.
8628 <display>: New constructor.
8629 <exp_string>: Now a std::string.
8630 <enabled_p>: Now a bool.
8631 (display_number): Move definition earlier.
8632 (displays): Rename from display_chain. Now a std::vector.
8633 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8634 (display_command): Update.
8635 (do_one_display, disable_display)
8636 (enable_disable_display_command, do_enable_disable_display):
8637 Update.
8638 (free_display): Remove.
8639 (clear_displays): Rewrite.
8640 (delete_display): Update.
8641 (map_display_numbers): Use function_view. Remove "data"
8642 parameter. Update.
8643 (do_delete_display): Remove.
8644 (undisplay_command): Update.
8645 (do_one_display, do_displays, disable_display)
8646 (info_display_command): Update.
8647 (do_enable_disable_display): Remove.
8648 (enable_disable_display_command)
8649 (clear_dangling_display_expressions): Update.
8650
94c93c35
TT
86512020-05-08 Tom Tromey <tom@tromey.com>
8652
8653 * symtab.c (set_symbol_cache_size)
8654 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8655 (maintenance_print_symbol_cache_statistics): Update.
8656 * symmisc.c (print_symbol_bcache_statistics)
8657 (print_objfile_statistics, maintenance_print_objfiles)
8658 (maintenance_info_symtabs, maintenance_check_symtabs)
8659 (maintenance_expand_symtabs, maintenance_info_line_tables):
8660 Update.
8661 * symfile-debug.c (set_debug_symfile): Update.
8662 * source.c (forget_cached_source_info): Update.
8663 * python/python.c (gdbpy_progspaces): Update.
8664 * psymtab.c (maintenance_info_psymtabs): Update.
8665 * probe.c (parse_probes): Update.
8666 * linespec.c (iterate_over_all_matching_symtabs)
8667 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8668 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8669 * exec.c (exec_target::close): Update.
8670 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8671 * breakpoint.c (print_one_breakpoint_location)
8672 (create_longjmp_master_breakpoint)
8673 (create_std_terminate_master_breakpoint): Update.
8674 * progspace.c (program_spaces): Now a std::vector.
8675 (maybe_new_address_space): Update.
8676 (add_program_space): Remove.
8677 (program_space::program_space): Update.
8678 (remove_program_space): Update.
8679 (number_of_program_spaces): Remove.
8680 (print_program_space, update_address_spaces): Update.
8681 * progspace.h (program_spaces): Change type.
8682 (ALL_PSPACES): Remove.
8683 (number_of_program_spaces): Don't declare.
8684 (struct program_space) <next>: Remove.
8685
a1fd1ac9
TT
86862020-05-08 Tom Tromey <tom@tromey.com>
8687
8688 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8689 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8690 (enable_break): Update.
8691 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8692 (frv_fdpic_find_canonical_descriptor): Update.
8693 (frv_fetch_objfile_link_map): Update.
8694 * progspace.c (program_space::free_all_objfiles): Update.
8695 (program_space::solibs): New method.
8696 * progspace.h (struct program_space) <solibs>: New method.
8697 * solist.h (master_so_list): Don't declare.
8698 (ALL_SO_LIBS): Remove.
8699 * solib.h (so_list_head): Remove.
8700 (update_solib_list): Update comment.
8701 * solib.c (master_so_list): Remove.
8702 (solib_used, update_solib_list, solib_add)
8703 (info_sharedlibrary_command, clear_solib)
8704 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8705
38eae084
TT
87062020-05-08 Tom Tromey <tom@tromey.com>
8707
8708 * extension.c (extension_languages): Now a std::array.
8709 (ALL_EXTENSION_LANGUAGES): Remove.
8710 (get_ext_lang_defn, get_ext_lang_of_file)
8711 (eval_ext_lang_from_control_command): Update.
8712 (finish_ext_lang_initialization)
8713 (auto_load_ext_lang_scripts_for_objfile)
8714 (ext_lang_type_printers::ext_lang_type_printers)
8715 (apply_ext_lang_type_printers)
8716 (ext_lang_type_printers::~ext_lang_type_printers)
8717 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8718 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8719 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8720 (get_matching_xmethod_workers, ext_lang_colorize)
8721 (ext_lang_before_prompt): Update.
8722 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8723
596dc4ad
TT
87242020-05-08 Tom Tromey <tom@tromey.com>
8725
8726 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8727 overload.
8728 <swap_string, m_string>: Remove.
8729 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8730 Update.
8731 * stabsread.c (define_symbol, read_type): Update.
8732 * linespec.c (find_linespec_symbols): Update.
8733 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8734 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8735 * dbxread.c (read_dbx_symtab): Update.
8736 * cp-support.h (cp_canonicalize_string_full)
8737 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8738 Return unique_xmalloc_ptr.
8739 * cp-support.c (inspect_type): Update.
8740 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8741 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8742 Likewise.
8743 * c-typeprint.c (print_name_maybe_canonical): Update.
8744 * break-catch-throw.c (check_status_exception_catchpoint):
8745 Update.
8746
bf4cb9be
TV
87472020-05-08 Tom de Vries <tdevries@suse.de>
8748
8749 * infrun.c (follow_fork): Copy current_line and current_symtab to
8750 child thread.
8751
a1b68f28
SM
87522020-05-07 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * async-event.c (struct async_signal_handler, struct
8755 async_event_handler): Reformat, remove typedef.
8756
98d48915
SM
87572020-05-07 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8760 access thistype->main_type->dyn_prop_list directly.
8761
7aa91313
SM
87622020-05-07 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8765 (remove_dyn_prop): Remove. Update all users to use
8766 type::remove_dyn_prop.
8767 * gdbtypes.c (remove_dyn_prop): Rename to...
8768 (type::remove_dyn_prop): ... this.
8769
5c54719c
SM
87702020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8771
8772 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8773 (add_dyn_prop): Remove. Update all users to use
8774 type::add_dyn_prop.
8775 * gdbtypes.c (add_dyn_prop): Rename to...
8776 (type::add_dyn_prop): ... this.
8777
24e99c6c
SM
87782020-05-07 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8781 (get_dyn_prop): Remove. Update all users to use
8782 type::dyn_prop.
8783 * gdbtypes.c (get_dyn_prop): Rename to...
8784 (type::dyn_prop): ... this.
8785
0d4bf016
SM
87862020-05-06 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8789
ac4a4f1c
SM
87902020-05-06 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8793 instruction, skip it if it's there.
8794
a3bbacc1
SM
87952020-05-05 Simon Marchi <simon.marchi@efficios.com>
8796
8797 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8798
c3236f84
SM
87992020-05-04 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8802 * gdbtypes.c (recursive_dump_type): Remove use of
8803 TYPE_INCOMPLETE.
8804
3b6acaee
TT
88052020-05-03 Tom Tromey <tom@tromey.com>
8806
8807 * breakpoint.c (catch_command, tcatch_command): Remove.
8808 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8809 add_show_prefix_cmd.
8810 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8811 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8812 Remove.
8813 (add_internal_problem_command): Use add_basic_prefix_cmd,
8814 add_show_prefix_cmd.
8815 * mips-tdep.c (set_mipsfpu_command): Remove.
8816 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8817 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8818 (_initialize_index_cache): Use add_basic_prefix_cmd.
8819 * memattr.c (dummy_cmd): Remove.
8820 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8821 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8822 (_initialize_tui_win): Use add_basic_prefix_cmd,
8823 add_show_prefix_cmd.
8824 * cli/cli-logging.c (set_logging_command): Remove.
8825 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8826 add_show_prefix_cmd.
8827 (show_logging_command): Remove.
8828 * target.c (target_command): Remove.
8829 (add_target): Use add_basic_prefix_cmd.
8830
a51119cd
HD
88312020-05-02 Hannes Domani <ssbssa@yahoo.de>
8832
8833 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8834
652fc23a 88352020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8836
652fc23a
PW
8837 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8838 info_command.
8839
117539e6
KR
88402020-04-30 Kamil Rytarowski <n54@gmx.com>
8841
8842 * nbsd-nat.c (nbsd_enable_proc_events)
8843 (nbsd_nat_target::post_startup_inferior): Add.
8844 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8845 (nbsd_nat_target::update_thread_list): Rewrite.
8846 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8847 "PTRACE_LWP_CREATE".
8848 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8849
102e38eb 88502020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8851
102e38eb
PW
8852 * stack.c (_initialize_stack): Remove duplicated creation
8853 of "frame" command and "f" alias.
8854
ee9d1e5f
HD
88552020-04-30 Hannes Domani <ssbssa@yahoo.de>
8856
8857 PR gdb/18706
8858 * gdbtypes.c (check_typedef): Calculate size of array of
8859 stubbed type.
8860
627c7fb8
HD
88612020-04-30 Hannes Domani <ssbssa@yahoo.de>
8862
8863 PR gdb/15559
8864 * i386-tdep.c (i386_push_dummy_call): Call
8865 i386_thiscall_push_dummy_call.
8866 (i386_thiscall_push_dummy_call): New function.
8867 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8868 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8869 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8870
ffc2844e
SM
88712020-04-29 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * gdbarch.sh (do_read): Add shellcheck disable directive for
8874 warning SC2162.
8875
1207375d
SM
88762020-04-29 Simon Marchi <simon.marchi@efficios.com>
8877
8878 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8879 "referenced but not assigned" warning.
8880
9fdb2916
SM
88812020-04-29 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * gdbarch.sh: Remove code that sets fallbackdefault.
8884
759cea5e
SM
88852020-04-29 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * gdbarch.sh: Use shell operators && and || instead of
8888 -a and -o.
8889
cb02ab24
SM
88902020-04-29 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * gdbarch.sh: Use $(...) instead of `...`.
8893
a6fc5ffc
SM
88942020-04-29 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * gdbarch.sh: Use double quotes around variables.
8897
8d113d13
SM
88982020-04-29 Simon Marchi <simon.marchi@efficios.com>
8899
8900 * gdbarch.sh: Use %s with printf, instead of variables in the
8901 format string.
8902
ed6acedd
TT
89032020-04-29 Tom Tromey <tromey@adacore.com>
8904
8905 PR ada/25875:
8906 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8907 type fields here.
8908 (read_enumeration_type): Call
8909 update_enumeration_type_from_children later. Update comments.
8910 (process_enumeration_scope): Don't create type fields.
8911
b68b1b58
KR
89122020-04-29 Kamil Rytarowski <n54@gmx.com>
8913
8914 * nbsd-tdep.c: Include "xml-syscall.h".
8915 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8916
f94b2e03
KR
89172020-04-29 Kamil Rytarowski <n54@gmx.com>
8918
8919 * nbsd-nat.c: Include "sys/wait.h".
8920 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8921 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8922 (nbsd_nat_target::remove_exec_catchpoint)
8923 (nbsd_nat_target::set_syscall_catchpoint): Add.
8924 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8925 (nbsd_nat_target::insert_exec_catchpoint)
8926 (nbsd_nat_target::remove_exec_catchpoint)
8927 (nbsd_nat_target::set_syscall_catchpoint): Add.
8928 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8929 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8930 `nbsd_get_syscall_number'.
8931
fc49bc72
TT
89322020-04-29 Tom Tromey <tom@tromey.com>
8933
8934 * stack.c (print_block_frame_labels): Remove.
8935
d642b692
HD
89362020-04-29 Hannes Domani <ssbssa@yahoo.de>
8937
8938 PR gdb/17320
8939 * ada-valprint.c (val_print_packed_array_elements): Move array
8940 end bracket to new line.
8941 (ada_val_print_string): Remove extra spaces before first array
8942 element.
8943 * c-valprint.c (c_value_print_array): Likewise.
8944 * m2-valprint.c (m2_print_array_contents): Likewise.
8945 (m2_value_print_inner): Likewise.
8946 * p-valprint.c (pascal_value_print_inner): Likewise.
8947 * valprint.c (generic_val_print_array): Likewise.
8948 (value_print_array_elements): Move first array element and array
8949 end bracket to new line.
8950
ea90f227
TV
89512020-04-29 Tom de Vries <tdevries@suse.de>
8952
8953 PR symtab/25889
8954 * linespec.c (find_method): Fix ix calculation.
8955
4498ef4f
KR
89562020-04-28 Kamil Rytarowski <n54@gmx.com>
8957
8958 * syscalls/update-netbsd.sh: New file.
8959 * syscalls/netbsd.xml: Regenerate.
8960 * data-directory/Makefile.in: Register `netbsd.xml' in
8961 `SYSCALLS_FILES'.
8962
a55e30b5
SM
89632020-04-28 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * syscalls/update-freebsd.sh: Add double quotes.
8966
2b2fbab8
TT
89672020-04-28 Tom Tromey <tom@tromey.com>
8968
8969 * NEWS: Update.
8970 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8971 (cmdpy_init): Allow class_tui.
8972
a65189c9
TV
89732020-04-28 Mark Williams <mark@myosotissp.com>
8974
8975 PR gdb/24480
8976 * dwarf2read.c: Add missing assingments to list_in_scope when
8977 start_symtab was already called.
8978
1b95cdb7
SM
89792020-04-28 Simon Marchi <simon.marchi@efficios.com>
8980
8981 PR gdb/25881
8982 * dwarf2/read.c (offset_map_type): Use
8983 gdb:hash_enum<sect_offset> as hash function.
8984
15cd93d0
TV
89852020-04-28 Tom de Vries <tdevries@suse.de>
8986
8987 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8988 with DW_AT_signature.
8989
1eb39914
SM
89902020-04-27 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * configure.ac: Remove check for fs_base/gs_base in
8993 user_regs_struct.
8994 * configure: Re-generate.
8995 * config.in: Re-generate.
8996 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8997 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8998 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8999
991a3e2e
LM
90002020-04-27 Luis Machado <luis.machado@linaro.org>
9001
9002 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9003 problematic inline frame unwinding situation.
9004 * frame.c (frame_id_computed_p): New function.
9005 * frame.h (frame_id_computed_p): New prototype.
9006
361ba0e8
TT
90072020-04-26 Tom Tromey <tom@tromey.com>
9008
9009 * command.h (enum command_class) <class_pseudo>: Remove.
9010
bc3609fd
PW
90112020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9012
9013 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9014 and whitespace.
9015
b9771db7
KR
90162020-04-25 Kamil Rytarowski <n54@gmx.com>
9017
ec16513e
SM
9018 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9019 `PT_GET_PROCESS_STATE' block.
b9771db7 9020
7151c1af
TT
90212020-04-24 Tom Tromey <tom@tromey.com>
9022
9023 * symtab.h (symbol_get_demangled_name): Don't declare.
9024 * symtab.c (symbol_get_demangled_name): Remove.
9025 (general_symbol_info::natural_name)
9026 (general_symbol_info::demangled_name): Update.
9027
906bb4c5
TT
90282020-04-24 Tom Tromey <tom@tromey.com>
9029
9030 PR rust/25025:
9031 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9032
bcfe6157
TT
90332020-04-24 Tom Tromey <tom@tromey.com>
9034
9035 PR symtab/12707:
9036 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9037 exists.
9038 (new_symbol): Likewise.
9039 * compile/compile-object-load.c (get_out_value_type): Use
9040 symbol_matches_search_name.
9041
f049a313
TT
90422020-04-24 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/read.c (add_partial_symbol): Do not call
9045 compute_and_set_names.
9046
76e288d1
TT
90472020-04-24 Tom Tromey <tom@tromey.com>
9048
9049 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9050 overload.
9051
2467f4f6
TT
90522020-04-24 Tom Tromey <tom@tromey.com>
9053
9054 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9055 (add_psymbol_to_list): New overload. Make old overload call new
9056 one.
9057 * psympriv.h (add_psymbol_to_list): New overload.
9058
e61108c9
TT
90592020-04-24 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (partial_die_info::read) <case
9062 DW_AT_linkage_name>: Use value_as_string.
9063 (dwarf2_string_attr): Use value_as_string.
9064 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9065 method.
9066 * dwarf2/attribute.c (attribute::value_as_string): New method.
9067
8c87a452
TT
90682020-04-24 Tom Tromey <tom@tromey.com>
9069
9070 * symtab.c (general_symbol_info::natural_name)
9071 (general_symbol_info::demangled_name): Check for language_rust.
9072
787de330
TT
90732020-04-24 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9076 (dwarf2_physname): ... from here.
9077 (partial_die_info::read): Add Rust "{" hack.
9078
ff985671
TT
90792020-04-24 Tom Tromey <tom@tromey.com>
9080
9081 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9082 method.
9083 (symbol_set_demangled_name): Don't declare.
9084 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9085 symbol_set_demangled_name.
9086 (general_symbol_info::set_language)
9087 (general_symbol_info::compute_and_set_names): Update.
9088 * minsyms.c (minimal_symbol_reader::install): Update.
9089 * dwarf2/read.c (new_symbol): Update.
9090
1acda803
TT
90912020-04-24 Tom Tromey <tromey@adacore.com>
9092
9093 PR python/23662:
9094 * python/py-type.c (convert_field): Handle
9095 FIELD_LOC_KIND_DWARF_BLOCK.
9096 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9097 (typy_get_dynamic): Nw function.
9098 (type_object_getset): Add "dynamic".
9099 * NEWS: Add entry.
9100
d656f129
TT
91012020-04-24 Tom Tromey <tromey@adacore.com>
9102
9103 * ada-typeprint.c (print_choices, print_variant_part)
9104 (print_record_field_types_dynamic): New functions.
9105 (print_record_field_types): Use print_record_field_types_dynamic.
9106
7d79de9a
TT
91072020-04-24 Tom Tromey <tromey@adacore.com>
9108
9109 * dwarf2/read.c (handle_data_member_location): New overload.
9110 (dwarf2_add_field): Use it.
9111 (decode_locdesc): Add "computed" parameter. Update comment.
9112 * gdbtypes.c (is_dynamic_type_internal): Also look for
9113 FIELD_LOC_KIND_DWARF_BLOCK.
9114 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9115 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9116 virtual base classes.
9117 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9118 FIELD_LOC_KIND_DWARF_BLOCK.
9119
f8e89861
TT
91202020-04-24 Tom Tromey <tromey@adacore.com>
9121
9122 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9123 * gdbtypes.c (is_dynamic_type_internal): Check
9124 TYPE_HAS_DYNAMIC_LENGTH.
9125 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9126 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9127 New macros.
9128 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9129 constant.
9130
9c6a1327
TT
91312020-04-24 Tom Tromey <tromey@adacore.com>
9132
9133 * dwarf2/read.c (struct variant_field): Rewrite.
9134 (struct variant_part_builder): New.
9135 (struct nextfield): Remove "variant" field. Add "offset".
9136 (struct field_info): Add "current_variant_part" and
9137 "variant_parts".
9138 (alloc_discriminant_info): Remove.
9139 (alloc_rust_variant): New function.
9140 (quirk_rust_enum): Update.
9141 (dwarf2_add_field): Set "offset" member. Don't handle
9142 DW_TAG_variant_part.
9143 (offset_map_type): New typedef.
9144 (convert_variant_range, create_one_variant)
9145 (create_one_variant_part, create_variant_parts)
9146 (add_variant_property): New functions.
9147 (dwarf2_attach_fields_to_type): Call add_variant_property.
9148 (read_structure_type): Don't handle DW_TAG_variant_part.
9149 (handle_variant_part, handle_variant): New functions.
9150 (handle_struct_member_die): Use them.
9151 (process_structure_scope): Don't handle variant parts.
9152 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9153 (struct discriminant_info): Remove.
9154 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9155 (struct main_type) <flag_discriminated_union>: Remove.
9156 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9157 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9158 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9159 Update.
9160 * valops.c (value_union_variant): Remove.
9161 * value.h (value_union_variant): Don't declare.
9162
b249d2c2
TT
91632020-04-24 Tom Tromey <tromey@adacore.com>
9164
9165 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9166 (ada_value_primitive_packed_val): Update.
9167 * ada-valprint.c (ada_value_print_1): Update.
9168 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9169 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9170 just an address. Use evaluate_for_locexpr_baton.
9171 (dwarf2_evaluate_property): Update.
9172 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9173 array_view.
9174 * findvar.c (default_read_var_value): Update.
9175 * gdbtypes.c (compute_variant_fields_inner)
9176 (resolve_dynamic_type_internal): Update.
9177 (resolve_dynamic_type): Change type of valaddr parameter.
9178 * gdbtypes.h (resolve_dynamic_type): Update.
9179 * valarith.c (value_subscripted_rvalue): Update.
9180 * value.c (value_from_contents_and_address): Update.
9181
61122aa9
TT
91822020-04-24 Tom Tromey <tromey@adacore.com>
9183
9184 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9185 "push_initial_value" parameter.
9186 (dwarf2_evaluate_property): Likewise.
9187 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9188
ef83a141
TT
91892020-04-24 Tom Tromey <tromey@adacore.com>
9190
9191 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9192 (variant::matches, compute_variant_fields_recurse)
9193 (compute_variant_fields_inner, compute_variant_fields): New
9194 functions.
9195 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9196 Use resolved_type after type is made.
9197 (operator==): Add new cases.
9198 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9199 (struct discriminant_range, struct variant, struct variant_part):
9200 New.
9201 (union dynamic_prop_data) <variant_parts, original_type>: New
9202 members.
9203 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9204 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9205 constants.
9206 * value.c (unpack_bits_as_long): Now public.
9207 * value.h (unpack_bits_as_long): Declare.
9208
675127ec
TT
92092020-04-24 Tom Tromey <tromey@adacore.com>
9210
9211 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9212 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9213
9852ceef
HD
92142020-04-24 Hannes Domani <ssbssa@yahoo.de>
9215
9216 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9217
7632c6ce
KR
92182020-04-24 Kamil Rytarowski <n54@gmx.com>
9219
9220 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9221 (remove_fork_catchpoint, post_startup_inferior)
9222 (post_attach): Move...
9223 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9224 (remove_fork_catchpoint, post_startup_inferior)
9225 (post_attach): ...here.
9226 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9227 (remove_fork_catchpoint, post_startup_inferior)
9228 (post_attach): Move...
9229 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9230 (remove_fork_catchpoint, post_startup_inferior)
9231 (post_attach): ...here.
9232
7be2bb4f
TT
92332020-04-24 Tom Tromey <tromey@adacore.com>
9234
9235 * nat/windows-nat.h (struct windows_thread_info)
9236 <pc_adjusted>: New member.
9237 * windows-nat.c (windows_fetch_one_register): Check
9238 pc_adjusted.
9239 (windows_nat_target::get_windows_debug_event)
9240 (windows_nat_target::wait): Set pc_adjusted.
9241
f80cb3b4
TV
92422020-04-24 Tom de Vries <tdevries@suse.de>
9243
9244 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9245 Run gdb-add-index inside temp dir.
9246
29514b87
TT
92472020-04-23 Tom Tromey <tromey@adacore.com>
9248
9249 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9250 in loop.
9251
5939967b
LM
92522020-04-23 Luis Machado <luis.machado@linaro.org>
9253
9254 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9255 get_frame_register instead of gdbarch_unwind_pc.
9256
70bc38f5
TV
92572020-04-23 Tom de Vries <tdevries@suse.de>
9258
9259 * symtab.c (lookup_global_symbol): Prefer def over decl.
9260
de82891c
TV
92612020-04-23 Tom de Vries <tdevries@suse.de>
9262
9263 PR symtab/25807
9264 * block.c (best_symbol, better_symbol): Promote to external.
9265 * block.h (best_symbol, better_symbol): Declare.
9266 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9267 decl.
9268
ecc6c606
TT
92692020-04-23 Tom Tromey <tromey@adacore.com>
9270
9271 PR ada/25837:
9272 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9273 "const char *", not a "const std::string &".
9274 <name_and_matcher::operator==>: Update.
9275 * unittests/lookup_name_info-selftests.c: Change type of
9276 "result".
9277
740480b8
TT
92782020-04-23 Tom Tromey <tom@tromey.com>
9279
9280 * inferior.h (iterate_over_inferiors): Don't declare.
9281 * inferior.c (iterate_over_inferiors): Remove.
9282 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9283 Remove.
9284 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9285 use iterate_over_inferiors.
9286 (darwin_resume_inferior_it)
9287 (struct resume_inferior_threads_param)
9288 (darwin_resume_inferior_threads_it): Remove.
9289 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9290
ae3ab1f0
TV
92912020-04-23 Tom de Vries <tdevries@suse.de>
9292
9293 * blockframe.c (find_pc_partial_function): Use
9294 find_pc_sect_compunit_symtab rather than
9295 objfile->sf->qf->find_pc_sect_compunit_symtab.
9296
317d2668
TV
92972020-04-22 Tom de Vries <tdevries@suse.de>
9298
9299 PR symtab/25764
9300 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9301 in psymtabs.
9302
eea9e357
TV
93032020-04-22 Tom de Vries <tdevries@suse.de>
9304
9305 PR symtab/25801
9306 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9307 symtabs.
9308
3d5afab3
TV
93092020-04-22 Tom de Vries <tdevries@suse.de>
9310
9311 PR symtab/25700
9312 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9313 CU if already created.
9314
d43b7a2d
TBA
93152020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9316
9317 * infrun.c (displaced_step_fixup): Switch to the event_thread
9318 before calling displaced_step_restore, not after.
9319
d89edf9b
MM
93202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9321
9322 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9323 its inferior is not recorded by us.
9324 (record_btrace_target_open): Replace call to
9325 all_non_exited_threads () with call to current_inferior
9326 ()->non_exited_threads ().
9327 (record_btrace_target::stop_recording): Likewise.
9328 (record_btrace_target::close): Likewise.
9329 (record_btrace_target::wait): Likewise.
9330 (record_btrace_target::record_stop_replaying): Likewise.
9331
5897fd49
MM
93322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9333
9334 * btrace.c (btrace_enable): Throw an error on double enables and
9335 when enabling recording fails.
9336 (btrace_disable): Throw an error if the thread is not recorded.
9337
1a476b6d
MM
93382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9339
9340 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9341 request if we do not have a thread_info.
9342
4778a5f8
TV
93432020-04-21 Tom de Vries <tdevries@suse.de>
9344
9345 PR gdb/25471
9346 * thread.c
9347 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9348 exception in get_frame_id.
9349
0fa7617d
TT
93502020-04-20 Tom Tromey <tromey@adacore.com>
9351
9352 * python/python.c (struct gdbpy_event): Mark move constructor as
9353 noexcept.
9354 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9355 constructor as noexcept.
9356 * completer.h (struct completion_result): Mark move constructor as
9357 noexcept.
9358 * completer.c (completion_result::completion_result): Use
9359 initialization style. Don't call reset_match_list.
9360
ad23bda0
MS
93612020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9362
9363 * MAINTAINERS (Write After Approval): Add myself.
9364
45e1f031
TT
93652020-04-18 Tom Tromey <tom@tromey.com>
9366
9367 * windows-tdep.c (init_w32_command_list)
9368 (w32_prefix_command_valid): Restore.
9369 (_initialize_windows_tdep): Call init_w32_command_list.
9370
08feed99
TT
93712020-04-18 Tom Tromey <tom@tromey.com>
9372
9373 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9374 * value.c (value_fn_field): Update.
9375 * valops.c (find_function_in_inferior)
9376 (value_allocate_space_in_inferior): Update.
9377 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9378 Update.
9379 * tui/tui-source.c (tui_source_window::set_contents): Update.
9380 * symtab.c (lookup_global_or_static_symbol)
9381 (find_function_start_sal_1, skip_prologue_sal)
9382 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9383 * symmisc.c (dump_msymbols, dump_symtab_1)
9384 (maintenance_print_one_line_table): Update.
9385 * symfile.c (init_entry_point_info, section_is_mapped)
9386 (list_overlays_command, simple_read_overlay_table)
9387 (simple_overlay_update_1): Update.
9388 * stap-probe.c (handle_stap_probe): Update.
9389 * stabsread.c (dbx_init_float_type, define_symbol)
9390 (read_one_struct_field, read_enum_type, read_range_type): Update.
9391 * source.c (info_line_command): Update.
9392 * python/python.c (gdbpy_source_objfile_script)
9393 (gdbpy_execute_objfile_script): Update.
9394 * python/py-type.c (save_objfile_types): Update.
9395 * python/py-objfile.c (py_free_objfile): Update.
9396 * python/py-inferior.c (python_new_objfile): Update.
9397 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9398 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9399 (maintenance_check_psymtabs): Update.
9400 * printcmd.c (info_address_command): Update.
9401 * objfiles.h (struct objfile) <arch>: New method, from
9402 get_objfile_arch.
9403 (get_objfile_arch): Don't declare.
9404 * objfiles.c (get_objfile_arch): Remove.
9405 (filter_overlapping_sections): Update.
9406 * minsyms.c (msymbol_is_function): Update.
9407 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9408 (output_nondebug_symbol): Update.
9409 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9410 (mdebug_expand_psymtab): Update.
9411 * machoread.c (macho_add_oso_symfile): Update.
9412 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9413 Update.
9414 * linux-fork.c (checkpoint_command): Update.
9415 * linespec.c (convert_linespec_to_sals): Update.
9416 * jit.c (finalize_symtab): Update.
9417 * infrun.c (insert_exception_resume_from_probe): Update.
9418 * ia64-tdep.c (ia64_find_unwind_table): Update.
9419 * hppa-tdep.c (internalize_unwinds): Update.
9420 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9421 Update.
9422 * gcore.c (call_target_sbrk): Update.
9423 * elfread.c (record_minimal_symbol, elf_symtab_read)
9424 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9425 (elf_gnu_ifunc_resolve_by_got): Update.
9426 * dwarf2/read.c (create_addrmap_from_index)
9427 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9428 (read_debug_names_from_section)
9429 (process_psymtab_comp_unit_reader, add_partial_symbol)
9430 (add_partial_subprogram, process_full_comp_unit)
9431 (read_file_scope, read_func_scope, read_lexical_block_scope)
9432 (read_call_site_scope, dwarf2_ranges_read)
9433 (dwarf2_record_block_ranges, dwarf2_add_field)
9434 (mark_common_block_symbol_computed, read_tag_pointer_type)
9435 (read_tag_string_type, dwarf2_init_float_type)
9436 (dwarf2_init_complex_target_type, read_base_type)
9437 (partial_die_info::read, partial_die_info::read)
9438 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9439 (dwarf2_fetch_die_loc_sect_off): Update.
9440 * dwarf2/loc.c (dwarf2_find_location_expression)
9441 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9442 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9443 (dwarf2_loc_desc_get_symbol_read_needs)
9444 (locexpr_describe_location_piece, locexpr_describe_location_1)
9445 (loclist_describe_location): Update.
9446 * dwarf2/index-write.c (write_debug_names): Update.
9447 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9448 * dtrace-probe.c (dtrace_process_dof): Update.
9449 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9450 (process_one_symbol): Update.
9451 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9452 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9453 (coff_read_enum_type): Update.
9454 * cli/cli-cmds.c (edit_command, list_command): Update.
9455 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9456 * breakpoint.c (create_overlay_event_breakpoint)
9457 (create_longjmp_master_breakpoint)
9458 (create_std_terminate_master_breakpoint)
9459 (create_exception_master_breakpoint, get_sal_arch): Update.
9460 * block.c (block_gdbarch): Update.
9461 * annotate.c (annotate_source_line): Update.
9462
0743fc83
TT
94632020-04-17 Tom Tromey <tromey@adacore.com>
9464
9465 * auto-load.c (show_auto_load_cmd): Remove.
9466 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9467 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9468 (maintenance_print_arc_command): Remove.
9469 * tui/tui-win.c (tui_command): Remove.
9470 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9471 * tui/tui-layout.c (tui_layout_command): Remove.
9472 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9473 * python/python.c (user_set_python, user_show_python): Remove.
9474 (_initialize_python): Use add_basic_prefix_cmd,
9475 add_show_prefix_cmd.
9476 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9477 (install_gdb_commands): Use add_basic_prefix_cmd,
9478 add_show_prefix_cmd.
9479 (info_guile_command): Remove.
9480 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9481 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9484 Remove do_set and do_show parameters.
9485 * cli/cli-style.c (set_style, show_style): Remove.
9486 (_initialize_cli_style): Use add_basic_prefix_cmd,
9487 add_show_prefix_cmd.
9488 (cli_style_option::add_setshow_commands): Remove do_set and
9489 do_show parameters.
9490 (cli_style_option::add_setshow_commands): Use
9491 add_basic_prefix_cmd, add_show_prefix_cmd.
9492 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9493 (set_style_name): Remove.
9494 * cli/cli-dump.c (dump_command, append_command): Remove.
9495 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9496 (tekhex_dump_command, binary_dump_command)
9497 (binary_append_command): Remove.
9498 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9499 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9500 (init_w32_command_list): Remove; move into ...
9501 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9502 * valprint.c (set_print, show_print, set_print_raw)
9503 (show_print_raw): Remove.
9504 (_initialize_valprint): Use add_basic_prefix_cmd,
9505 add_show_prefix_cmd.
9506 * typeprint.c (set_print_type, show_print_type): Remove.
9507 (_initialize_typeprint): Use add_basic_prefix_cmd,
9508 add_show_prefix_cmd.
9509 * record.c (set_record_command, show_record_command): Remove.
9510 (_initialize_record): Use add_basic_prefix_cmd,
9511 add_show_prefix_cmd.
9512 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9513 add_show_prefix_cmd.
9514 (info_command, show_command, set_debug, show_debug): Remove.
9515 * top.h (set_history, show_history): Don't declare.
9516 * top.c (set_history, show_history): Remove.
9517 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9518 (unset_tdesc_cmd): Remove.
9519 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9520 add_show_prefix_cmd.
9521 * symtab.c (info_module_command): Remove.
9522 (_initialize_symtab): Use add_basic_prefix_cmd.
9523 * symfile.c (overlay_command): Remove.
9524 (_initialize_symfile): Use add_basic_prefix_cmd.
9525 * sparc64-tdep.c (info_adi_command): Remove.
9526 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9527 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9528 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9529 add_show_prefix_cmd.
9530 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9531 (_initialize_serial): Use add_basic_prefix_cmd,
9532 add_show_prefix_cmd.
9533 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9534 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9535 add_show_prefix_cmd.
9536 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9537 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9538 add_show_prefix_cmd.
9539 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9540 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9541 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9542 add_show_prefix_cmd.
9543 * remote.c (remote_command, set_remote_cmd): Remove.
9544 (_initialize_remote): Use add_basic_prefix_cmd.
9545 * record-full.c (set_record_full_command)
9546 (show_record_full_command): Remove.
9547 (_initialize_record_full): Use add_basic_prefix_cmd,
9548 add_show_prefix_cmd.
9549 * record-btrace.c (cmd_set_record_btrace)
9550 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9551 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9552 (cmd_show_record_btrace_pt): Remove.
9553 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9554 add_show_prefix_cmd.
9555 * ravenscar-thread.c (set_ravenscar_command)
9556 (show_ravenscar_command): Remove.
9557 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9558 add_show_prefix_cmd.
9559 * mips-tdep.c (show_mips_command, set_mips_command)
9560 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9561 add_show_prefix_cmd.
9562 * maint.c (maintenance_command, maintenance_info_command)
9563 (maintenance_check_command, maintenance_print_command)
9564 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9565 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9566 add_show_prefix_cmd.
9567 (show_per_command_cmd): Remove.
9568 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9569 Remove.
9570 (maintenance_show_test_settings_cmd): Remove.
9571 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9572 add_show_prefix_cmd.
9573 * maint-test-options.c (maintenance_test_options_command):
9574 Remove.
9575 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9576 * macrocmd.c (macro_command): Remove
9577 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9578 * language.c (set_check, show_check): Remove.
9579 (_initialize_language): Use add_basic_prefix_cmd,
9580 add_show_prefix_cmd.
9581 * infcmd.c (unset_command): Remove.
9582 (_initialize_infcmd): Use add_basic_prefix_cmd.
9583 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9584 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9585 add_show_prefix_cmd.
9586 * go32-nat.c (go32_info_dos_command): Remove.
9587 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9588 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9589 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9590 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9591 (_initialize_frame): Use add_basic_prefix_cmd,
9592 add_show_prefix_cmd.
9593 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9594 (_initialize_dcache): Use add_basic_prefix_cmd,
9595 add_show_prefix_cmd.
9596 * cp-support.c (maint_cplus_command): Remove.
9597 (_initialize_cp_support): Use add_basic_prefix_cmd.
9598 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9599 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9600 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9601 add_basic_prefix_cmd, add_show_prefix_cmd.
9602 * breakpoint.c (save_command): Remove.
9603 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9604 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9605 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9606 add_show_prefix_cmd.
9607 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9608 (set_ada_command, show_ada_command): Remove.
9609 (_initialize_ada_language): Use add_basic_prefix_cmd,
9610 add_show_prefix_cmd.
9611 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9612
3557f442
KR
96132020-04-16 Kamil Rytarowski <n54@gmx.com>
9614
9615 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9616 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9617
16197208
SM
96182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9619
9620 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9621 warning messages.
9622
00ac85d3
SM
96232020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9624
9625 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9626 import table is not at beginning of .idata section.
9627
381ce63f
PA
96282020-04-16 Pedro Alves <palves@redhat.com>
9629
9630 * inferior.c (delete_inferior): Use delete operator directly
9631 instead of delete_program_space.
9632 * progspace.c (add_program_space): New, factored out from
9633 program_space::program_space.
9634 (remove_program_space): New, factored out from
9635 delete_program_space.
9636 (program_space::program_space): Remove intro comment. Rewrite.
9637 (program_space::~program_space): Remove intro comment. Call
9638 remove_program_space.
9639 (delete_program_space): Delete.
9640 * progspace.h (program_space::program_space): Make explicit. Move
9641 intro comment here, adjusted.
9642 (program_space::~program_space): Move intro comment here,
9643 adjusted.
9644 (delete_program_space): Remove.
9645
a010605f
TT
96462020-04-16 Tom Tromey <tromey@adacore.com>
9647
9648 * windows-nat.c (windows_nat::handle_access_violation): New
9649 function.
9650 * nat/windows-nat.h (handle_access_violation): Declare.
9651 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9652 windows-nat.c. Call handle_access_violation.
9653
efba5c23
TV
96542020-04-16 Tom de Vries <tdevries@suse.de>
9655
9656 PR symtab/25791
9657 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9658 CUs without psymtab.
9659
97ed802d
KB
96602020-04-16 Kevin Buettner <kevinb@redhat.com>
9661
9662 * python/python.c (do_start_initialization): Don't call
9663 PyEval_InitThreads for Python 3.9 and beyond.
9664
c7d64809
KR
96652020-04-15 Kamil Rytarowski <n54@gmx.com>
9666
9667 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9668 thread functions.
9669 (obsd_nat_target::wait): Likewise.
9670
ce127a96
TT
96712020-04-15 Tom Tromey <tromey@adacore.com>
9672
9673 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9674 (DEBUG_EXCEPT): Use debug_printf.
9675
99f1bc6a
AB
96762020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9677
9678 * completer.c (class completion_tracker::completion_hash_entry)
9679 <hash_name>: New member function.
9680 (completion_tracker::discard_completions): New callback to hash a
9681 completion_hash_entry, pass this to htab_create_alloc.
9682
a0e9b532
JT
96832016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9684
9685 * windows-nat.c (windows_make_so): Warn rather than stopping with
9686 an error if realpath() fails.
9687
06ca5dd4
KR
96882020-04-14 Kamil Rytarowski <n54@gmx.com>
9689
9690 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9691 (nbsd_nat_target::info_proc): Add do_status.
9692
194d088f
TV
96932020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9694 Tom de Vries <tdevries@suse.de>
9695
9696 PR symtab/25718
9697 * psympriv.h (struct partial_symtab::read_symtab)
9698 (struct partial_symtab::expand_psymtab)
9699 (struct partial_symtab::read_dependencies): Update comments.
9700 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9701 read_symtab for includer.
9702 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9703 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9704 (struct dwarf2_include_psymtab::m_readin): Remove.
9705 (struct dwarf2_include_psymtab::includer): New member function.
9706 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9707
c1a66c06
TV
97082020-04-14 Tom de Vries <tdevries@suse.de>
9709
9710 PR symtab/25720
9711 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9712 with NULL symbol_matcher and lookup_name.
9713 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9714 and lookup_name.
9715 * dwarf2/read.c (dw2_expand_symtabs_matching)
9716 (dw2_debug_names_expand_symtabs_matching): Same.
9717 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9718 Make lookup_name a pointer. Update comment.
9719 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9720 lookup_name being a pointer.
9721 * symfile.c (expand_symtabs_matching): Same.
9722 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9723 * linespec.c (iterate_over_all_matching_symtabs): Same.
9724
400b5eca
TT
97252020-04-13 Tom Tromey <tom@tromey.com>
9726
9727 * run-on-main-thread.c: Update include.
9728 * unittests/main-thread-selftests.c: Update include.
9729 * tui/tui-win.c: Update include.
9730 * tui/tui-io.c: Update include.
9731 * tui/tui-interp.c: Update include.
9732 * tui/tui-hooks.c: Update include.
9733 * top.h: Update include.
9734 * top.c: Update include.
9735 * ser-base.c: Update include.
9736 * remote.c: Update include.
9737 * remote-notif.c: Update include.
9738 * remote-fileio.c: Update include.
9739 * record-full.c: Update include.
9740 * record-btrace.c: Update include.
9741 * python/python.c: Update include.
9742 * posix-hdep.c: Update include.
9743 * mingw-hdep.c: Update include.
9744 * mi/mi-main.c: Update include.
9745 * mi/mi-interp.c: Update include.
9746 * main.c: Update include.
9747 * linux-nat.c: Update include.
9748 * interps.c: Update include.
9749 * infrun.c: Update include.
9750 * inf-loop.c: Update include.
9751 * event-top.c: Update include.
9752 * event-loop.c: Move to ../gdbsupport/.
9753 * event-loop.h: Move to ../gdbsupport/.
9754 * async-event.h: Update include.
9755 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9756
93b54c8e
TT
97572020-04-13 Tom Tromey <tom@tromey.com>
9758
9759 * tui/tui-win.c: Include async-event.h.
9760 * remote.c: Include async-event.h.
9761 * remote-notif.c: Include async-event.h.
9762 * record-full.c: Include async-event.h.
9763 * record-btrace.c: Include async-event.h.
9764 * infrun.c: Include async-event.h.
9765 * event-top.c: Include async-event.h.
9766 * event-loop.h: Move some declarations to async-event.h.
9767 * event-loop.c: Don't include ser-event.h or top.h. Move some
9768 code to async-event.c.
9769 * async-event.h: New file.
9770 * async-event.c: New file.
9771 * Makefile.in (COMMON_SFILES): Add async-event.c.
9772 (HFILES_NO_SRCDIR): Add async-event.h.
9773
c1cd3163
TT
97742020-04-13 Tom Tromey <tom@tromey.com>
9775
9776 * utils.c (flush_streams): New function.
9777 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9778
29f2bf4f
TT
97792020-04-13 Tom Tromey <tom@tromey.com>
9780
9781 * event-loop.c (handle_file_event): Use warning, not
9782 printf_unfiltered.
9783
98029d02
TT
97842020-04-13 Tom Tromey <tom@tromey.com>
9785
9786 * event-loop.c: Include <chrono>.
9787
06cc9596
TT
97882020-04-13 Tom Tromey <tom@tromey.com>
9789
9790 * gdb_select.h: Move to ../gdbsupport/.
9791 * event-loop.c: Update include path.
9792 * top.c: Update include path.
9793 * ser-base.c: Update include path.
9794 * ui-file.c: Update include path.
9795 * ser-tcp.c: Update include path.
9796 * guile/scm-ports.c: Update include path.
9797 * posix-hdep.c: Update include path.
9798 * ser-unix.c: Update include path.
9799 * gdb_usleep.c: Update include path.
9800 * mingw-hdep.c: Update include path.
9801 * inflow.c: Update include path.
9802 * infrun.c: Update include path.
9803 * event-top.c: Update include path.
9804
8ae8e197
TT
98052020-04-13 Tom Tromey <tom@tromey.com>
9806
9807 * configure: Rebuild.
9808 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9809
58cf28e8
TT
98102020-04-13 Tom Tromey <tom@tromey.com>
9811
9812 * event-loop.h (start_event_loop): Don't declare.
9813 * event-loop.c (start_event_loop): Move...
9814 * main.c (start_event_loop): ...here. Now static.
9815
b7f999ae
SDJ
98162020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9817
9818 * MAINTAINERS: Update my email address.
9819
1085dfd4
KR
98202020-04-12 Kamil Rytarowski <n54@gmx.com>
9821
9822 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9823 IP_ALL.
9824
49d1d1f5
KR
98252020-04-12 Kamil Rytarowski <n54@gmx.com>
9826
9827 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9828 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9829
b4848d2a
KR
98302020-04-12 Kamil Rytarowski <n54@gmx.com>
9831
9832 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9833 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9834
51c133d5
KR
98352020-04-12 Kamil Rytarowski <n54@gmx.com>
9836
9837 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9838
54b8cbd0
KR
98392020-04-11 Kamil Rytarowski <n54@gmx.com>
9840
9841 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9842 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9843 (nbsd_nat_target::info_proc): New functions.
9844 * nbsd-nat.c (kinfo_get_vmmap): New function.
9845 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9846 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9847 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9848 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9849 functions.
9850 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9851 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9852 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9853 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9854 (KINFO_VME_FLAG_GROWS_DOWN): New.
9855
cf83625d
AS
98562020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9857
9858 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9859 bit shift.
9860
0c4311ab
TT
98612020-04-10 Tom Tromey <tromey@adacore.com>
9862
9863 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9864
3e65b3e9
TT
98652020-04-10 Tom Tromey <tromey@adacore.com>
9866
9867 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9868 separate debug files.
9869
13302e95
HD
98702020-04-10 Hannes Domani <ssbssa@yahoo.de>
9871
9872 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9873 Move to...
9874 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9875 ... here.
9876 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9877 Check for STATUS_WX86_BREAKPOINT.
9878 (windows_nat_target::wait): Same.
9879
bdfc1e8a
TV
98802020-04-10 Tom de Vries <tdevries@suse.de>
9881
9882 PR cli/25808
9883 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9884
f4460aec
SM
98852020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9886
9887 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9888 (Write After Approval): Remove Tom de Vries.
9889
a25198bb
BE
98902020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9891
9892 revert partially:
9893 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9894
aac66a4c
SM
9895 * buildsym.c (record_line): Fix undefined behavior and preserve
9896 lines at eof.
a25198bb 9897
206c98a6
KR
98982020-04-09 Kamil Rytarowski <n54@gmx.com>
9899
9900 * auxv.h (svr4_auxv_parse): New.
9901 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9902 and generic_auxv_parse.
9903 (svr4_auxv_parse): Add.
9904 * obsd-tdep.c: Include "auxv.h".
9905 (obsd_auxv_parse): Remove.
9906 (obsd_init_abi): Remove comment.
9907 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9908 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9909 * nbsd-tdep.c: Include "auxv.h".
9910 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9911
71fbdbaf
TT
99122020-04-08 Tom Tromey <tromey@adacore.com>
9913
9914 * nat/windows-nat.h (last_wait_event): Don't declare.
9915 (wait_for_debug_event): Update comment.
9916 * nat/windows-nat.c (last_wait_event): Now static.
9917
2c1d95e8
TT
99182020-04-08 Tom Tromey <tromey@adacore.com>
9919
9920 * windows-nat.c (wait_for_debug_event): Move to
9921 nat/windows-nat.c.
9922 * nat/windows-nat.h (wait_for_debug_event): Declare.
9923 * nat/windows-nat.c (wait_for_debug_event): Move from
9924 windows-nat.c. No longer static.
9925
d2977bc4
TT
99262020-04-08 Tom Tromey <tromey@adacore.com>
9927
9928 * windows-nat.c (get_windows_debug_event): Use
9929 fetch_pending_stop.
9930 * nat/windows-nat.h (fetch_pending_stop): Declare.
9931 * nat/windows-nat.c (fetch_pending_stop): New function.
9932
e758e19c
TT
99332020-04-08 Tom Tromey <tromey@adacore.com>
9934
9935 * windows-nat.c (windows_continue): Use matching_pending_stop and
9936 continue_last_debug_event.
9937 * nat/windows-nat.h (matching_pending_stop)
9938 (continue_last_debug_event): Declare.
9939 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9940 (matching_pending_stop, continue_last_debug_event): New
9941 functions.
9942
8d30e395
TT
99432020-04-08 Tom Tromey <tromey@adacore.com>
9944
9945 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9946 (handle_exception_result): Move to nat/windows-nat.h.
9947 (DEBUG_EXCEPTION_SIMPLE): Remove.
9948 (windows_nat::handle_ms_vc_exception): New function.
9949 (handle_exception): Move to nat/windows-nat.c.
9950 (get_windows_debug_event): Update.
9951 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9952 nat/windows-nat.c.
9953 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9954 (handle_exception_result): Move from windows-nat.c.
9955 (handle_exception): Declare.
9956 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9957 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9958 windows-nat.c.
9959
29de418d
TT
99602020-04-08 Tom Tromey <tromey@adacore.com>
9961
9962 * windows-nat.c (exception_count, event_count): Remove.
9963 (handle_exception, get_windows_debug_event)
9964 (do_initial_windows_stuff): Update.
9965
a816ba18
TT
99662020-04-08 Tom Tromey <tromey@adacore.com>
9967
9968 * windows-nat.c (windows_nat::handle_load_dll)
9969 (windows_nat::handle_unload_dll): Rename. No longer static.
9970 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9971 Declare.
9972
a00caa12
TT
99732020-04-08 Tom Tromey <tromey@adacore.com>
9974
9975 * complaints.h (stop_whining): Declare at top-level.
9976 (complaint): Don't declare stop_whining.
9977
d41b524f
TT
99782020-04-08 Tom Tromey <tromey@adacore.com>
9979
9980 * windows-nat.c (windows_nat::handle_output_debug_string):
9981 Rename. No longer static.
9982 * nat/windows-nat.h (handle_output_debug_string): Declare.
9983
3c76026d
TT
99842020-04-08 Tom Tromey <tromey@adacore.com>
9985
9986 * windows-nat.c (current_process_handle, current_process_id)
9987 (main_thread_id, last_sig, current_event, last_wait_event)
9988 (current_windows_thread, desired_stop_thread_id, pending_stops)
9989 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9990 (display_selectors, fake_create_process)
9991 (get_windows_debug_event): Update.
9992 * nat/windows-nat.h (current_process_handle, current_process_id)
9993 (main_thread_id, last_sig, current_event, last_wait_event)
9994 (current_windows_thread, desired_stop_thread_id, pending_stops)
9995 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9996 * nat/windows-nat.c (current_process_handle, current_process_id)
9997 (main_thread_id, last_sig, current_event, last_wait_event)
9998 (current_windows_thread, desired_stop_thread_id, pending_stops)
9999 (siginfo_er): New globals. Move from windows-nat.c.
10000
9d8679cc
TT
100012020-04-08 Tom Tromey <tromey@adacore.com>
10002
10003 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10004 (handle_load_dll): Update.
10005 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10006
28688adf
TT
100072020-04-08 Tom Tromey <tromey@adacore.com>
10008
10009 * windows-nat.c (enum thread_disposition_type): Move to
10010 nat/windows-nat.h.
10011 (windows_nat::thread_rec): Rename from thread_rec. No longer
10012 static.
10013 (windows_add_thread, windows_nat_target::fetch_registers)
10014 (windows_nat_target::store_registers, handle_exception)
10015 (windows_nat_target::resume, get_windows_debug_event)
10016 (windows_nat_target::get_tib_address)
10017 (windows_nat_target::thread_name)
10018 (windows_nat_target::thread_alive): Update.
10019 * nat/windows-nat.h (enum thread_disposition_type): Move from
10020 windows-nat.c.
10021 (thread_rec): Declare.
10022
4834dad0
TT
100232020-04-08 Tom Tromey <tromey@adacore.com>
10024
10025 * windows-nat.c: Add "using namespace".
10026 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10027 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10028
65bafd5b
TT
100292020-04-08 Tom Tromey <tromey@adacore.com>
10030
10031 * nat/windows-nat.h (struct windows_thread_info): Declare
10032 destructor.
10033 * nat/windows-nat.c (~windows_thread_info): New.
10034
0a4afda3
TT
100352020-04-08 Tom Tromey <tromey@adacore.com>
10036
10037 PR gdb/22992
10038 * windows-nat.c (current_event): Update comment.
10039 (last_wait_event, desired_stop_thread_id): New globals.
10040 (struct pending_stop): New.
10041 (pending_stops): New global.
10042 (windows_nat_target) <stopped_by_sw_breakpoint>
10043 <supports_stopped_by_sw_breakpoint>: New methods.
10044 (windows_fetch_one_register): Add assertions. Adjust PC.
10045 (windows_continue): Handle pending stops. Suspend other threads
10046 when stepping. Use last_wait_event
10047 (wait_for_debug_event): New function.
10048 (get_windows_debug_event): Use wait_for_debug_event. Handle
10049 pending stops. Queue spurious stops.
10050 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10051 (windows_nat_target::kill): Use wait_for_debug_event.
10052 * nat/windows-nat.h (struct windows_thread_info)
10053 <stopped_at_software_breakpoint>: New field.
10054 * nat/windows-nat.c (windows_thread_info::resume): Clear
10055 stopped_at_software_breakpoint.
10056
8e61ebec
TT
100572020-04-08 Tom Tromey <tromey@adacore.com>
10058
10059 * windows-nat.c (enum thread_disposition_type): New.
10060 (thread_rec): Replace "get_context" parameter with "disposition";
10061 change type.
10062 (windows_add_thread, windows_nat_target::fetch_registers)
10063 (windows_nat_target::store_registers, handle_exception)
10064 (windows_nat_target::resume, get_windows_debug_event)
10065 (windows_nat_target::get_tib_address)
10066 (windows_nat_target::thread_name)
10067 (windows_nat_target::thread_alive): Update.
10068
98a03287
TT
100692020-04-08 Tom Tromey <tromey@adacore.com>
10070
10071 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10072 (windows_continue): Use windows_continue::resume.
10073 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10074 resume>: Declare new methods.
10075 * nat/windows-nat.c: New file.
10076 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10077
7c7411bc
TT
100782020-04-08 Tom Tromey <tromey@adacore.com>
10079
10080 * windows-nat.c (windows_add_thread, windows_delete_thread)
10081 (windows_nat_target::fetch_registers)
10082 (windows_nat_target::store_registers, fake_create_process)
10083 (windows_nat_target::resume, windows_nat_target::resume)
10084 (get_windows_debug_event, windows_nat_target::wait)
10085 (windows_nat_target::pid_to_str)
10086 (windows_nat_target::get_tib_address)
10087 (windows_nat_target::get_ada_task_ptid)
10088 (windows_nat_target::thread_name)
10089 (windows_nat_target::thread_alive): Use lwp, not tid.
10090
2950fdf7
TT
100912020-04-08 Tom Tromey <tromey@adacore.com>
10092
10093 * windows-nat.c (handle_exception)
10094 (windows_nat_target::thread_name): Update.
10095 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10096 <name>: Now unique_xmalloc_ptr.
10097
62fe396b
TT
100982020-04-08 Tom Tromey <tromey@adacore.com>
10099
10100 * windows-nat.c (thread_rec)
10101 (windows_nat_target::fetch_registers): Update.
10102 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10103 Update comment.
10104 <debug_registers_changed, reload_context>: Now bool.
10105
e9534bd2
TT
101062020-04-08 Tom Tromey <tromey@adacore.com>
10107
10108 * windows-nat.c (windows_add_thread): Use new.
10109 (windows_init_thread_list, windows_delete_thread): Use delete.
10110 (get_windows_debug_event): Update.
10111 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10112 destructor, and initializers.
10113
ae1f8880
TT
101142020-04-08 Tom Tromey <tromey@adacore.com>
10115
10116 * windows-nat.c (struct windows_thread_info): Remove.
10117 * nat/windows-nat.h: New file.
10118
55a1e039
TT
101192020-04-08 Tom Tromey <tromey@adacore.com>
10120
10121 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10122 (thread_rec, windows_add_thread, windows_delete_thread)
10123 (windows_continue): Update.
10124
93366324
TT
101252020-04-08 Tom Tromey <tromey@adacore.com>
10126
10127 * windows-nat.c (struct windows_thread_info): Remove typedef.
10128 (thread_head): Remove.
10129 (thread_list): New global.
10130 (thread_rec, windows_add_thread, windows_init_thread_list)
10131 (windows_delete_thread, windows_continue): Update.
10132
0f2265e2
SM
101332020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * windows-tdep.h (windows_init_abi): Add comment.
10136 (cygwin_init_abi): New declaration.
10137 * windows-tdep.c: Split signal enumeration in two, one for
10138 Windows and one for Cygwin.
10139 (windows_gdb_signal_to_target): Only deal with signal of the
10140 Windows OS ABI.
10141 (cygwin_gdb_signal_to_target): New function.
10142 (windows_init_abi): Rename to windows_init_abi_common, don't set
10143 gdb_signal_to_target gdbarch method. Add new new function with
10144 this name.
10145 (cygwin_init_abi): New function.
10146 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10147 comment. Don't call windows_init_abi.
10148 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10149 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10150 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10151 i386_windows_init_abi_common, don't call windows_init_abi. Add
10152 a new function of this name.
10153 (i386_cygwin_init_abi): New function.
10154 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10155 OS ABI Cygwin.
10156
3810f182
SM
101572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10158
10159 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10160 parameter.c.
10161 (dwarf2_read_gdb_index): Update.
10162
063f8e80
KR
101632020-04-07 Kamil Rytarowski <n54@gmx.com>
10164
10165 * nbsd-tdep.c: Include "objfiles.h".
10166 (nbsd_skip_solib_resolver): New.
10167 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10168
85a9510c 101692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10170
10171 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10172 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10173 with DW_LLE_base_addressx are being emitted in DWARFv5.
10174 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10175 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10176 unsigned integer.
10177
9fc3eaae 101782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10179
10180 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10181 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10182 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10183 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10184 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10185 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10186 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10187
10188
41144253 101892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10190
10191 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10192 (read_loclist_index): New function definition.
10193 (lookup_loclist_base): New function definition.
10194 (read_loclist_header): New function definition.
10195 (dwarf2_cu): Add loclist_base and loclist_header field.
10196 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10197 (read_full_die_1): Read the value of DW_AT_loclists_base.
10198 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10199 (read_attribute_value): Handle DW_FORM_loclistx.
10200 (skip_one_die): Handle DW_FORM_loclistx.
10201 (loclist_header): New structure declaration.
10202 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10203
9f4e76a4
SM
102042020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10205
10206 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10207 constructor. Remove `addr` parameter from other constructor and
10208 add `per_cu` parameter.
10209 * dwarf2/read.c (create_partial_symtab): Update.
10210
25c11aca
TV
102112020-04-07 Tom de Vries <tdevries@suse.de>
10212
10213 PR symtab/25796
10214 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10215 (partial_die_info::fixup): Inherit has_const_value.
10216
5707e24b
TV
102172020-04-07 Tom de Vries <tdevries@suse.de>
10218
10219 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10220 symbols without address.
10221
05f00e22
KR
102222020-04-06 Kamil Rytarowski <n54@gmx.com>
10223
10224 * nbsd-nat.h (struct thread_info): Add forward declaration.
10225 (nbsd_nat_target::thread_alive): Add.
10226 (nbsd_nat_target::thread_name): Likewise.
10227 (nbsd_nat_target::update_thread_list): Likewise.
10228 (update_thread_list::post_attach): Likewise.
10229 (post_attach::pid_to_str): Likewise.
10230 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10231 (nbsd_thread_lister): Add.
10232 (nbsd_nat_target::thread_alive): Likewise.
10233 (nbsd_nat_target::thread_name): Likewise.
10234 (nbsd_add_threads): Likewise.
10235 (update_thread_list::post_attach): Likewise.
10236 (nbsd_nat_target::update_thread_list): Likewise.
10237 (post_attach::pid_to_str): Likewise.
10238
6ee448cc
TT
102392020-04-06 Tom Tromey <tromey@adacore.com>
10240
10241 * ada-valprint.c (print_variant_part): Extract the variant field.
10242 (print_field_values): Use the field as the outer value when
10243 recursing.
10244
dea34e8c
TT
102452020-04-06 Tom Tromey <tromey@adacore.com>
10246
10247 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10248 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10249 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10250 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10251 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10252
93689ce9
TT
102532020-04-06 Tom Tromey <tromey@adacore.com>
10254
10255 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10256 TYPE_CODE_ERROR.
10257
79743962
KR
102582020-04-06 Kamil Rytarowski <n54@gmx.com>
10259
10260 * nbsd-tdep.c: Include "gdbarch.h".
10261 Define enum with NetBSD signal numbers.
10262 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10263 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10264 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10265 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10266 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10267 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10268 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10269 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10270 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10271 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10272 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10273 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10274
9e7c9a03
HD
102752020-04-03 Hannes Domani <ssbssa@yahoo.de>
10276
10277 PR gdb/25325
10278 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10279
d9e49b61
TT
102802020-04-03 Tom Tromey <tromey@adacore.com>
10281
10282 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10283 Read constant block.
10284
e0fc5c3f
SM
102852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10286
10287 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10288 (gdb_bfd_get_full_section_contents): New declaration.
10289 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10290 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10291 gdb_bfd_get_full_section_contents.
10292
e2ff18a0
SM
102932020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10294
10295 * exec.c (build_section_table): Replace internal_error with
10296 gdb_assert.
10297 (section_table_xfer_memory_partial): Likewise.
10298 * mdebugread.c (parse_partial_symbols): Likewise.
10299 * psymtab.c (lookup_partial_symbol): Likewise.
10300 * utils.c (wrap_here): Likewise.
10301
0830d301
TT
103022020-04-02 Tom Tromey <tromey@adacore.com>
10303
10304 * f-lang.c (build_fortran_types): Use arch_type to initialize
10305 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10306
e7da7f8f
TT
103072020-04-02 Tom Tromey <tromey@adacore.com>
10308
10309 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10310 of attributes.
10311
c90d28ac
AB
103122020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10313 Bernd Edlinger <bernd.edlinger@hotmail.de>
10314 Tom Tromey <tromey@adacore.com>
10315
10316 * buildsym.c (buildsym_compunit::record_line): Remove
10317 deduplication code.
10318
1aa98955
TV
103192020-04-02 Tom de Vries <tdevries@suse.de>
10320
10321 PR ada/24671
10322 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10323
d3214198
TV
103242020-04-02 Tom de Vries <tdevries@suse.de>
10325
10326 * dwarf2/read.c (dwarf2_gdb_index_functions,
10327 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10328 NULL.
10329 * psymtab.c (psym_lookup_global_symbol_language): New function.
10330 (psym_functions): Init psym_lookup_global_symbol_language with
10331 psym_lookup_global_symbol_language.
10332 * symfile-debug.c (debug_sym_quick_functions): Init
10333 lookup_global_symbol_language with NULL.
10334 * symfile.c (set_initial_language): Remove fixme comment.
10335 * symfile.h (struct quick_symbol_functions): Add
10336 lookup_global_symbol_language.
10337 * symtab.c (find_quick_global_symbol_language): New function.
10338 (find_main_name): Use find_quick_global_symbol_language.
10339
2836752f
SM
103402020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10341
10342 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10343
64dc2d4b
BE
103442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10345
10346 * buildsym.c (record_line): Fix undefined behavior and preserve
10347 lines at eof.
10348
bbe3dc41
BE
103492020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10350
10351 * buildsym.c (record_line): Fix the resizing condition.
10352
6b4a335b
TT
103532020-04-01 Tom Tromey <tom@tromey.com>
10354
10355 * value.h (value_literal_complex): Add comment.
10356 * valops.c (value_literal_complex): Refer to value.h.
10357
3638a098
TT
103582020-04-01 Tom Tromey <tom@tromey.com>
10359
10360 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10361 (scalar_type): New rule, from typebase.
10362 (typebase): Use scalar_type. Recognize complex types.
10363 (field_name): Handle FLOAT_KEYWORD.
10364 (ident_tokens): Add _Complex and __complex__.
10365
c34e8714
TT
103662020-04-01 Tom Tromey <tom@tromey.com>
10367
10368 PR exp/25299:
10369 * valarith.c (promotion_type, complex_binop): New functions.
10370 (scalar_binop): Handle complex numbers. Use promotion_type.
10371 (value_pos, value_neg, value_complement): Handle complex numbers.
10372
fa649bb7
TT
103732020-04-01 Tom Tromey <tom@tromey.com>
10374
10375 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10376 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10377 (parse_number): Handle complex numbers.
10378
981c08ce
TT
103792020-04-01 Tom Tromey <tom@tromey.com>
10380
10381 * c-valprint.c (c_decorations): Change complex suffix to "i".
10382
4c99290d
TT
103832020-04-01 Tom Tromey <tom@tromey.com>
10384
10385 * valprint.c (generic_value_print_complex): Use accessors.
10386 * value.h (value_real_part, value_imaginary_part): Declare.
10387 * valops.c (value_real_part, value_imaginary_part): New
10388 functions.
10389 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10390
5b930b45
TT
103912020-04-01 Tom Tromey <tom@tromey.com>
10392
10393 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10394 (read_range_type): Update.
10395 * mdebugread.c (basic_type): Update.
10396 * go-lang.c (build_go_types): Use init_complex_type.
10397 * gdbtypes.h (struct main_type) <complex_type>: New member.
10398 (init_complex_type): Update.
10399 (arch_complex_type): Don't declare.
10400 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10401 Make name if none given. Use alloc_type_copy. Look for cached
10402 complex type.
10403 (arch_complex_type): Remove.
10404 (gdbtypes_post_init): Use init_complex_type.
10405 * f-lang.c (build_fortran_types): Use init_complex_type.
10406 * dwarf2/read.c (read_base_type): Update.
10407 * d-lang.c (build_d_types): Use init_complex_type.
10408 * ctfread.c (read_base_type): Update.
10409
53cccef1
TBA
104102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10411
10412 * infrun.c (stop_all_threads): Update assertion, plus when
10413 stopping threads, take into account that we might be trying
10414 to stop an all-stop target.
10415 (stop_waiting): Call 'stop_all_threads' if there exists a
10416 non-stop target.
10417
a0714d30
TBA
104182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10419
10420 * target.h (exists_non_stop_target): New function declaration.
10421 * target.c (exists_non_stop_target): New function.
10422
60e22c1e
HD
104232020-04-01 Hannes Domani <ssbssa@yahoo.de>
10424
10425 PR gdb/24789
10426 * eval.c (is_integral_or_integral_reference): New function.
10427 (evaluate_subexp_standard): Allow integer references in
10428 pointer arithmetic.
10429
e139a727
TBA
104302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10431
10432 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10433 check for no ptid in the stop reply when the target is non-stop.
10434
e0802d59
TT
104352020-04-01 Tom Tromey <tromey@adacore.com>
10436
10437 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10438 "name" parameter to rvalue reference. Initialize m_name_holder.
10439 <lookup_name_info>: New overloads.
10440 <name>: Return gdb::string_view.
10441 <c_str>: New method.
10442 <make_ignore_params>: Update.
10443 <search_name_hash>: Update.
10444 <language_lookup_name>: Return const char *.
10445 <m_name>: Change type.
10446 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10447 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10448 (lookup_name_info::match_any): Update.
10449 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10450 Update.
10451 * minsyms.c (linkage_name_str): Update.
10452 * language.c (default_symbol_name_matcher): Update.
10453 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10454 Update.
10455 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10456 (ada_lookup_name_info::ada_lookup_name_info): Update.
10457 (literal_symbol_name_matcher): Update.
10458
8c072cb6
TT
104592020-04-01 Tom Tromey <tromey@adacore.com>
10460
10461 * psymtab.c (psymtab_search_name): Remove function.
10462 (psym_lookup_symbol): Create search name and lookup name here.
10463 (lookup_partial_symbol): Remove "name" parameter; add
10464 lookup_name.
10465 (psym_expand_symtabs_for_function): Update.
10466
6f29a534
TT
104672020-03-31 Joel Jones <joelkevinjones@gmail.com>
10468
10469 PR tui/25597:
10470 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10471
af62665e
TT
104722020-03-31 Tom Tromey <tromey@adacore.com>
10473
10474 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10475 memcpy.
10476
d1a89da5
NC
104772020-03-30 Nelson Chu <nelson.chu@sifive.com>
10478
10479 * features/riscv/32bit-csr.xml: Regenerated.
10480 * features/riscv/64bit-csr.xml: Regenerated.
10481
d8af9068
TT
104822020-03-30 Tom Tromey <tromey@adacore.com>
10483
10484 * ada-valprint.c (print_variant_part): Update.
10485 * ada-lang.h (ada_which_variant_applies): Update.
10486 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10487 outer_valaddr parameters; replace with "outer" value parameter.
10488 (to_fixed_variant_branch_type): Update.
10489
227c0bf4
PFC
104902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10491
10492 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10493 <list>. Remove inclusion of observable.h.
10494 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10495 (struct arch_lwp_info): New struct.
10496 (class ppc_linux_dreg_interface): New class.
10497 (struct ppc_linux_process_info): New struct.
10498 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10499 <low_new_clone, low_forget_process, low_prepare_to_resume>
10500 <copy_thread_dreg_state, mark_thread_stale>
10501 <mark_debug_registers_changed, register_hw_breakpoint>
10502 <clear_hw_breakpoint, register_wp, clear_wp>
10503 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10504 <num_memory_accesses, get_trigger_type>
10505 <create_watchpoint_request, hwdebug_point_cmp>
10506 <init_arch_lwp_info, get_arch_lwp_info>
10507 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10508 methods.
10509 <struct ptid_hash>: New inner struct.
10510 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10511 members.
10512 (saved_dabr_value, hwdebug_info, max_slots_number)
10513 (struct hw_break_tuple, struct thread_points, ppc_threads)
10514 (have_ptrace_hwdebug_interface)
10515 (hwdebug_find_thread_points_by_tid)
10516 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10517 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10518 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10519 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10520 use m_dreg_interface.
10521 (hwdebug_point_cmp): Change to...
10522 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10523 reference arguments instead of pointers.
10524 (ppc_linux_nat_target::ranged_break_num_registers): Use
10525 m_dreg_interface.
10526 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10527 m_dreg_interface. Call register_hw_breakpoint.
10528 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10529 m_dreg_interface. Call clear_hw_breakpoint.
10530 (get_trigger_type): Change to...
10531 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10532 comment.
10533 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10534 use m_dreg_interface. Call register_hw_breakpoint.
10535 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10536 use m_dreg_interface. Call clear_hw_breakpoint.
10537 (can_use_watchpoint_cond_accel): Change to...
10538 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10539 method. Update comment, use m_dreg_interface and
10540 m_process_info.
10541 (calculate_dvc): Change to...
10542 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10543 m_dreg_interface.
10544 (num_memory_accesses): Change to...
10545 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10546 (check_condition): Change to...
10547 (ppc_linux_nat_target::check_condition): ...this method.
10548 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10549 comment, use m_dreg_interface.
10550 (create_watchpoint_request): Change to...
10551 (ppc_linux_nat_target::create_watchpoint_request): ...this
10552 method. Use m_dreg_interface.
10553 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10554 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10555 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10556 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10557 (ppc_linux_nat_target::low_forget_process)
10558 (ppc_linux_nat_target::low_new_fork)
10559 (ppc_linux_nat_target::low_new_clone)
10560 (ppc_linux_nat_target::low_delete_thread)
10561 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10562 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10563 only call mark_thread_stale.
10564 (ppc_linux_thread_exit): Remove.
10565 (ppc_linux_nat_target::stopped_data_address): Change to...
10566 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10567 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10568 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10569 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10570 comment. Call low_stopped_data_address.
10571 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10572 m_dreg_interface.
10573 (ppc_linux_nat_target::masked_watch_num_registers): Use
10574 m_dreg_interface.
10575 (ppc_linux_nat_target::copy_thread_dreg_state)
10576 (ppc_linux_nat_target::mark_thread_stale)
10577 (ppc_linux_nat_target::mark_debug_registers_changed)
10578 (ppc_linux_nat_target::register_hw_breakpoint)
10579 (ppc_linux_nat_target::clear_hw_breakpoint)
10580 (ppc_linux_nat_target::register_wp)
10581 (ppc_linux_nat_target::clear_wp)
10582 (ppc_linux_nat_target::init_arch_lwp_info)
10583 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10584 (_initialize_ppc_linux_nat): Remove observer callback.
10585
4db10d8f
PFC
105862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10587
10588 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10589 (ppc_linux_nat_target::auxv_parse)
10590 (ppc_linux_nat_target::read_description)
10591 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10592 Move up.
10593
1310c1b0
PFC
105942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10595
10596 * linux-nat.h (low_new_clone): New method.
10597 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10598
69b037c3
SM
105992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10600
10601 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10602 (dbx_expand_psymtab): ... this.
10603 (start_psymtab): Update.
10604 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10605 (mdebug_expand_psymtab): ... this.
10606 (parse_partial_symbols): Update.
10607 (new_psymtab): Update.
10608 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10609 (xcoff_expand_psymtab): ... this.
10610 (xcoff_start_psymtab): Update.
10611
48993951
SM
106122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10613
10614 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10615 <expand_dependencies>: ... this.
10616 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10617 (partial_symtab::expand_dependencies): ... this.
10618 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10619 Update.
10620 (dwarf2_psymtab::expand_psymtab): Update.
10621 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10622 * mdebugread.c (psymtab_to_symtab_1): Update.
10623 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10624
3ad83046
SM
106252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10626
10627 * psympriv.h (discard_psymtab): Remove.
10628 * dbxread.c (dbx_end_psymtab): Update.
10629 * xcoffread.c (xcoff_end_psymtab): Update.
10630
4d1b9ab6
TT
106312020-03-28 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10634 comment.
10635
f1749218
TT
106362020-03-28 Tom Tromey <tom@tromey.com>
10637
10638 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10639
ebea7626
HD
106402020-03-27 Hannes Domani <ssbssa@yahoo.de>
10641
10642 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10643
a879b4d5
JB
106442020-03-26 John Baldwin <jhb@FreeBSD.org>
10645
10646 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10647
0826b30a
TT
106482020-03-26 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10651 (mark_common_block_symbol_computed, read_tag_string_type)
10652 (attr_to_dynamic_prop, read_subrange_type): Update.
10653 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10654 to be methods on struct attribute.
10655 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10656 (read_call_site_scope, partial_die_info::read)
10657 (partial_die_info::read, lookup_die_type, follow_die_ref):
10658 Update.
10659 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10660 from dwarf2_get_ref_die_offset.
10661 (attribute::constant_value): New method, from
10662 dwarf2_get_attr_constant_value.
10663 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10664 Declare method.
10665 <constant_value>: New method.
10666
2b2558bf
TT
106672020-03-26 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10670 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10671 (dwarf_type_encoding_name): Move to stringify.c.
10672 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10673 * dwarf2/stringify.c: New file.
10674 * dwarf2/stringify.h: New file.
10675
eeb64781
TT
106762020-03-26 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10679 Rewrite.
10680
a39fdb41
TT
106812020-03-26 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10684 methods.
10685 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10686 (lookup_ranges_base): Likewise.
10687 (read_cutu_die_from_dwo, read_full_die_1): Update.
10688
436c571c
TT
106892020-03-26 Tom Tromey <tom@tromey.com>
10690
10691 * dwarf2/read.c (read_import_statement, read_file_scope)
10692 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10693 (read_lexical_block_scope, read_call_site_scope)
10694 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10695 (handle_struct_member_die, process_structure_scope)
10696 (update_enumeration_type_from_children)
10697 (process_enumeration_scope, read_array_type, read_common_block)
10698 (read_namespace, read_module, read_subroutine_type): Update.
10699 (sibling_die): Remove.
10700
052c8bb8
TT
107012020-03-26 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10704 (build_type_psymtabs_reader, read_structure_type)
10705 (read_enumeration_type, read_full_die_1): Update.
10706 (dwarf2_attr_no_follow): Move to die.h.
10707 * dwarf2/die.h (struct die_info) <attr>: New method.
10708
2b24b6e4
TT
107092020-03-26 Tom Tromey <tom@tromey.com>
10710
10711 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10712 <base_address>: Now an optional.
10713 (dwarf2_find_base_address, dwarf2_rnglists_process)
10714 (dwarf2_ranges_process, fill_in_loclist_baton)
10715 (dwarf2_symbol_mark_computed): Update.
10716
c2d50fd0
TT
107172020-03-26 Tom Tromey <tom@tromey.com>
10718
10719 * dwarf2/read.c (struct die_info): Move to die.h.
10720 * dwarf2/die.h: New file.
10721
0df7ad3a
TT
107222020-03-26 Tom Tromey <tom@tromey.com>
10723
10724 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10725 * dwarf2/read.c
10726 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10727 Move to line-header.c.
10728 (read_checked_initial_length_and_offset, read_formatted_entries):
10729 Likewise.
10730 (dwarf_decode_line_header): Split into two.
10731 * dwarf2/line-header.c
10732 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10733 Move from read.c.
10734 (read_checked_initial_length_and_offset, read_formatted_entries):
10735 Likewise.
10736 (dwarf_decode_line_header): New function, split from read.c.
10737
86c0bb4c
TT
107382020-03-26 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10741 Declare method.
10742 * dwarf2/read.c (read_attribute_value): Update.
10743 (dwarf2_per_objfile::read_line_string): Rename from
10744 read_indirect_line_string.
10745 (read_formatted_entries): Update.
10746
2ef46c2f
TT
107472020-03-26 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10750 variable.
10751
4f9c1eda
TT
107522020-03-26 Tom Tromey <tom@tromey.com>
10753
10754 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10755 const.
10756 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10757 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10758 parameter const.
10759
5a0e026f
TT
107602020-03-26 Tom Tromey <tom@tromey.com>
10761
10762 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10763 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10764 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10765 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10766
8844c11b
TT
107672020-03-26 Tom Tromey <tom@tromey.com>
10768
10769 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10770 file_names_size, file_full_name, file_file_name>: Use const.
10771 <file_name_at, file_names>: Add const overload.
10772 * dwarf2/line-header.c (line_header::file_file_name)
10773 (line_header::file_full_name): Update.
10774
c90ec28a
TT
107752020-03-26 Tom Tromey <tom@tromey.com>
10776
10777 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10778 (macro_start_file, consume_improper_spaces)
10779 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10780 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10781 (dwarf_decode_macros): Move to macro.c.
10782 * dwarf2/macro.c: New file.
10783 * dwarf2/macro.h: New file.
10784 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10785
4f44ae6c
TT
107862020-03-26 Tom Tromey <tom@tromey.com>
10787
10788 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10789 method.
10790 * dwarf2/section.c: New method. From
10791 read_indirect_string_at_offset_from.
10792 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10793 (read_indirect_string_at_offset_from): Move to section.c.
10794 (read_indirect_string_at_offset): Rewrite.
10795 (read_indirect_line_string_at_offset): Remove.
10796 (read_indirect_string, read_indirect_line_string)
10797 (dwarf_decode_macro_bytes): Update.
10798
a0194fa8
TT
107992020-03-26 Tom Tromey <tom@tromey.com>
10800
10801 * dwarf2/section.h (struct dwarf2_section_info)
10802 <overload_complaint>: Declare.
10803 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10804 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10805 Rename from dwarf2_section_buffer_overflow_complaint.
10806 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10807 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10808
3d27bbdb
TT
108092020-03-26 Tom Tromey <tom@tromey.com>
10810
10811 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10812 Declare.
10813 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10814 Move from read.c.
10815 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10816 to section.c.
10817
9eac9650
TT
108182020-03-26 Tom Tromey <tom@tromey.com>
10819
10820 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10821
bf80d710
TT
108222020-03-26 Tom Tromey <tom@tromey.com>
10823
10824 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10825 "builder".
10826 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10827 parameter.
10828 (dwarf_decode_macros): Update.
10829
0314b390
TT
108302020-03-26 Tom Tromey <tom@tromey.com>
10831
10832 * dwarf2/read.c (read_attribute_value): Update.
10833 (read_indirect_string_from_dwz): Move to dwz.c; change into
10834 method.
10835 (dwarf_decode_macro_bytes): Update.
10836 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10837 * dwarf2/dwz.c: New file.
10838 * Makefile.in (COMMON_SFILES): Add dwz.c.
10839
9fda78b6
TT
108402020-03-26 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10843 * dwarf2/read.c: Add include.
10844 * dwarf2/index-write.c: Add include.
10845 * dwarf2/index-cache.c: Add include.
10846 * dwarf2/dwz.h: New file.
10847
33aa3c10
TT
108482020-03-25 Tom Tromey <tom@tromey.com>
10849
10850 * compile/compile-object-load.c (get_out_value_type): Mention
10851 correct symbol name in error message.
10852
d503b685
HD
108532020-03-25 Hannes Domani <ssbssa@yahoo.de>
10854
10855 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10856
7b1eff95
TV
108572020-03-25 Tom de Vries <tdevries@suse.de>
10858
10859 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10860 * symmisc.c (dump_symtab_1): Print user and includes fields.
10861 (maintenance_info_symtabs): Same.
10862
dd895392
AB
108632020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 PR gdb/25534
10866 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10867 (riscv_regcache_cooked_write): New function.
10868 (riscv_push_dummy_call): Use new function.
10869 (riscv_return_value): Likewise.
10870
5ab2fbf1
SM
108712020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10872
10873 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10874 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10875 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10876 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10877 * infrun.c (follow_fork): Likewise.
10878 (follow_fork_inferior): Likewise.
10879 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10880 * linux-nat.h (class linux_nat_target): Likewise.
10881 * remote.c (class remote_target) <follow_fork>: Likewise.
10882 (remote_target::follow_fork): Likewise.
10883 * target-delegates.c: Re-generate.
10884 * target.c (default_follow_fork): Likewise.
10885 (target_follow_fork): Likewise.
10886 * target.h (struct target_ops) <follow_fork>: Likewise.
10887 (target_follow_fork): Likewise.
10888
a64fafb5
TV
108892020-03-24 Tom de Vries <tdevries@suse.de>
10890
10891 * psymtab.c (maintenance_info_psymtabs): Print user field.
10892
fe26d3a3
TT
108932020-03-20 Tom Tromey <tromey@adacore.com>
10894
10895 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10896 const.
10897 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10898 const.
10899
c884cc46
SM
109002020-03-20 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * ptrace.m4: Don't check for ptrace declaration.
10903 * config.in: Re-generate.
10904 * configure: Re-generate.
10905 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10906 not defined.
10907
1ff700c2
KR
109082020-03-20 Kamil Rytarowski <n54@gmx.com>
10909
10910 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10911 `PTRACE_TYPE_RET'.
10912 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10913 * sparc-nat.c (gdb_ptrace): Likewise.
10914 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10915
f7d4f0b1
TT
109162020-03-20 Tom Tromey <tromey@adacore.com>
10917
10918 * c-exp.y (lex_one_token): Fix assert.
10919
f67210ff
TT
109202020-03-20 Tom Tromey <tromey@adacore.com>
10921
10922 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10923 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10924 strncpy call.
10925
1773be9e
TT
109262020-03-20 Tom Tromey <tromey@adacore.com>
10927
10928 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10929
70304be9
TT
109302020-03-20 Tom Tromey <tromey@adacore.com>
10931
10932 * ada-valprint.c (print_variant_part): Remove parameters; switch
10933 to value-based API.
10934 (print_field_values): Likewise.
10935 (ada_val_print_struct_union): Likewise.
10936 (ada_value_print_1): Update.
10937
9faa006d
KR
109382020-03-20 Kamil Rytarowski <n54@gmx.com>
10939
10940 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10941 nbsd_nat_target instead of inf_ptrace_target.
10942 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10943 nbsd_nat_target.
10944
4a90f062
KR
109452020-03-20 Kamil Rytarowski <n54@gmx.com>
10946
10947 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10948 it to the ptrace call.
10949 * (store_registers): Likewise.
10950
109512020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10952
10953 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10954 it to the ptrace call.
10955 * (store_registers): Likewise.
10956
2d07da27
LM
109572020-03-19 Luis Machado <luis.machado@linaro.org>
10958
10959 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10960 valid, fetch vg value from ptrace.
10961
f09db380
KR
109622020-03-19 Kamil Rytarowski <n54@gmx.com>
10963 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10964 * inf-ptrace.c: Likewise.
10965 * (gdb_ptrace): Add.
10966 * (inf_ptrace_target::resume): Update.
10967 * (inf_ptrace_target::xfer_partial): Likewise.
10968 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10969 * (inf_ptrace_peek_poke): Update.
10970
fcc7376e
KR
109712020-03-19 Kamil Rytarowski <n54@gmx.com>
10972
10973 * x86-bsd-nat.c (gdb_ptrace): New.
10974 * (x86bsd_dr_set): Add new argument `ptid'.
10975 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10976 x86bsd_dr_set_addr): Update.
10977
cada5fc9
AB
109782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10979
10980 * remote.c (remote_target::process_stop_reply): Handle events for
10981 all threads differently.
10982
19a2740f
AB
109832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10984
10985 * completer.c (completion_tracker::remove_completion): Define new
10986 function.
10987 * completer.h (completion_tracker::remove_completion): Declare new
10988 function.
10989 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10990 when adding a C++ function symbol.
10991
724fd9ba
AB
109922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10993
10994 * completer.c (completion_tracker::completion_hash_entry): Define
10995 new class.
10996 (advance_to_filename_complete_word_point): Call
10997 recompute_lowest_common_denominator.
10998 (completion_tracker::completion_tracker): Call discard_completions
10999 to setup the hash table.
11000 (completion_tracker::discard_completions): Allow for being called
11001 from the constructor, pass new equal function, and element deleter
11002 when constructing the hash table. Initialise new class member
11003 variables.
11004 (completion_tracker::maybe_add_completion): Remove use of
11005 m_entries_vec, and store more information into m_entries_hash.
11006 (completion_tracker::recompute_lcd_visitor): New function, most
11007 content taken from...
11008 (completion_tracker::recompute_lowest_common_denominator):
11009 ...here, this now just visits each item in the hash calling the
11010 above visitor.
11011 (completion_tracker::build_completion_result): Remove use of
11012 m_entries_vec, call recompute_lowest_common_denominator.
11013 * completer.h (completion_tracker::have_completions): Remove use
11014 of m_entries_vec.
11015 (completion_tracker::completion_hash_entry): Declare new class.
11016 (completion_tracker::recompute_lowest_common_denominator): Change
11017 function signature.
11018 (completion_tracker::recompute_lcd_visitor): Declare new function.
11019 (completion_tracker::m_entries_vec): Delete.
11020 (completion_tracker::m_entries_hash): Initialize to NULL.
11021 (completion_tracker::m_lowest_common_denominator_valid): New
11022 member variable.
11023 (completion_tracker::m_lowest_common_denominator_max_length): New
11024 member variable.
11025
5a82b8a1
KR
110262020-03-17 Kamil Rytarowski <n54@gmx.com>
11027
11028 * regformats/regdef.h: Put reg in gdb namespace.
11029
fb516a69
KR
110302020-03-17 Kamil Rytarowski <n54@gmx.com>
11031
11032 * i386-bsd-nat.c (gdb_ptrace): New.
11033 * (i386bsd_fetch_inferior_registers,
11034 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11035 * (i386bsd_fetch_inferior_registers,
11036 i386bsd_store_inferior_registers) Use gdb_ptrace.
11037
1c0aa1fb
KR
110382020-03-17 Kamil Rytarowski <n54@gmx.com>
11039
11040 * amd64-bsd-nat.c (gdb_ptrace): New.
11041 * (amd64bsd_fetch_inferior_registers,
11042 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11043 * (amd64bsd_fetch_inferior_registers,
11044 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11045
5ccd2fb7
KR
110462020-03-17 Kamil Rytarowski <n54@gmx.com>
11047
11048 * user-regs.c (user_reg::read): Rename to...
11049 (user_reg::xread): ...this.
11050 * (append_user_reg): Rename argument `read' to `xread'.
11051 * (user_reg_add_builtin): Likewise.
11052 * (user_reg_add): Likewise.
11053 * (value_of_user_reg): Likewise.
11054
2108a63a
KR
110552020-03-17 Kamil Rytarowski <n54@gmx.com>
11056
11057 * sparc-nat.c (gdb_ptrace): New.
11058 * sparc-nat.c (sparc_fetch_inferior_registers)
11059 (sparc_store_inferior_registers) Remove obsolete comment.
11060 * sparc-nat.c (sparc_fetch_inferior_registers)
11061 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11062 * sparc-nat.c (sparc_fetch_inferior_registers)
11063 (sparc_store_inferior_registers) Use gdb_ptrace.
11064
a225c9a8
KR
110652020-03-17 Kamil Rytarowski <n54@gmx.com>
11066
11067 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11068 it to the ptrace call.
11069 * sh-nbsd-nat.c (store_registers): Likewise.
11070
98097623
KR
110712020-03-17 Kamil Rytarowski <n54@gmx.com>
11072
11073 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11074 nbsd_nat_target instead of inf_ptrace_target.
11075 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11076 nbsd_nat_target.
11077
9e38d619
KR
110782020-03-17 Kamil Rytarowski <n54@gmx.com>
11079
11080 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11081
a2ecbe9f
KR
110822020-03-17 Kamil Rytarowski <n54@gmx.com>
11083
11084 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11085 <sys/sysctl.h>.
11086 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11087
58990295
TV
110882020-03-17 Tom de Vries <tdevries@suse.de>
11089
11090 PR gdb/23710
11091 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11092 fields.
11093 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11094 fields.
11095 (process_imported_unit_die): Skip import of c++ CUs.
11096
771dd3a8
TT
110972020-03-16 Tom Tromey <tom@tromey.com>
11098
11099 * p-valprint.c (pascal_object_print_value): Initialize
11100 base_value.
11101
817a7585
AK
111022020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11103 Shahab Vahedi <shahab@synopsys.com>
11104
11105 * Makefile.in: Add arch/arc.o
11106 * configure.tgt: Likewise.
11107 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11108 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11109 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11110 * arc-tdep.h (arc_read_description): Add proto type.
11111 * arch/arc.c: New file.
11112 * arch/arc.h: Likewise.
11113 * features/Makefile: Replace old target descriptions with new.
11114 * features/arc-arcompact.c: Remove.
11115 * features/arc-arcompact.xml: Likewise.
11116 * features/arc-v2.c: Likewise
11117 * features/arc-v2.xml: Likewise
11118 * features/arc/aux-arcompact.xml: New file.
11119 * features/arc/aux-v2.xml: Likewise.
11120 * features/arc/core-arcompact.xml: Likewise.
11121 * features/arc/core-v2.xml: Likewise.
11122 * features/arc/aux-arcompact.c: Generate.
11123 * features/arc/aux-v2.c: Likewise.
11124 * features/arc/core-arcompact.c: Likewise.
11125 * features/arc/core-v2.c: Likewise.
11126 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11127
67430cd0
TT
111282020-03-16 Tom Tromey <tromey@adacore.com>
11129
11130 PR gdb/25663:
11131 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11132 putting value into bcache.
11133
30efb6c7
SM
111342020-03-16 Simon Marchi <simon.marchi@efficios.com>
11135
11136 PR gdb/21500
11137 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11138 to...
11139 (amd64_windows_init_abi_common): ... this. Don't set size of
11140 long type.
11141 (amd64_windows_init_abi): New function.
11142 (amd64_cygwin_init_abi): New function.
11143 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11144 the Cygwin OS ABI.
11145 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11146 comment.
11147
8db52437
SM
111482020-03-16 Simon Marchi <simon.marchi@efficios.com>
11149
11150 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11151 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11152 (pe_import_directory_entry): New struct type.
11153 (is_linked_with_cygwin_dll): New function.
11154 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11155 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11156 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11157
5982a56a
SM
111582020-03-16 Simon Marchi <simon.marchi@efficios.com>
11159
11160 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11161 i386_cygwin_core_osabi_sniffer.
11162
7a1998df
SM
111632020-03-16 Simon Marchi <simon.marchi@efficios.com>
11164
11165 * i386-cygwin-tdep.c: Rename to...
11166 * i386-windows-tdep.c: ... this.
11167 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11168 i386-windows-tdep.c.
11169 * configure.tgt: Likewise.
11170
053205cc
SM
111712020-03-16 Simon Marchi <simon.marchi@efficios.com>
11172
11173 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11174 * osabi.c (gdb_osabi_names): Add "Windows".
11175 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11176 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11177 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11178 i386_cygwin_osabi_sniffer.
11179 (_initialize_i386_cygwin_tdep): Register OS ABI
11180 GDB_OSABI_WINDOWS for i386.
11181 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11182 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11183 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11184 for x86-64.
11185 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11186 when the target matches '*-*-mingw*'.
11187
fe4b2ee6
SM
111882020-03-16 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * defs.h (enum gdb_osabi): Move to...
11191 * osabi.h (enum gdb_osabi): ... here.
11192 * gdbarch.sh: Include osabi.h in gdbarch.h.
11193 * gdbarch.h: Re-generate.
11194
cb9b645d
SM
111952020-03-16 Simon Marchi <simon.marchi@efficios.com>
11196
11197 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11198 function.
11199 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11200
3293bbaf
TT
112012020-03-14 Tom Tromey <tom@tromey.com>
11202
11203 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11204 for C++.
11205 (c_type_print_modifier): Likewise. Add "language" parameter.
11206 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11207 (c_type_print_base_1): Update.
11208 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11209 constants.
11210 * type-stack.c (type_stack::insert): Handle tp_atomic and
11211 tp_restrict.
11212 (type_stack::follow_type_instance_flags): Likewise.
11213 (type_stack::follow_types): Likewise. Merge type-following code.
11214 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11215 (space_identifier, cv_with_space_id)
11216 (const_or_volatile_or_space_identifier_noopt)
11217 (const_or_volatile_or_space_identifier): Remove.
11218 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11219 rules.
11220 (ptr_operator, typebase): Update.
11221 (enum token_flag) <FLAG_C>: New constant.
11222 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11223 "_Atomic".
11224 (lex_one_token): Handle FLAG_C.
11225
154151a6
KR
112262020-03-14 Kamil Rytarowski <n54@gmx.com>
11227
11228 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11229 it to the ptrace call.
11230 * m68k-bsd-nat.c (store_registers): Likewise.
11231
bc107784
KR
112322020-03-14 Kamil Rytarowski <n54@gmx.com>
11233
11234 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11235 gdb_byte *.
11236 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11237 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11238 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11239
01a80117
KR
112402020-03-14 Kamil Rytarowski <n54@gmx.com>
11241
11242 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11243 nbsd_nat_target instead of inf_ptrace_target.
11244 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11245 nbsd_nat_target.
11246
f90280ca
KR
112472020-03-14 Kamil Rytarowski <n54@gmx.com>
11248
11249 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11250 register_t.
11251
6def66f1
KR
112522020-03-14 Kamil Rytarowski <n54@gmx.com>
11253
11254 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11255 it to the ptrace call.
11256 * alpha-bsd-nat.c (store_registers): Likewise.
11257
66eaca97
KR
112582020-03-14 Kamil Rytarowski <n54@gmx.com>
11259
11260 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11261 includes.
11262 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11263 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11264 fill_fpregset): Likewise.
11265
4fed520b
KR
112662020-03-14 Kamil Rytarowski <n54@gmx.com>
11267
11268 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11269 nbsd_nat_target instead of inf_ptrace_target.
11270 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11271 nbsd_nat_target.
11272
2190cf06
KR
112732020-03-14 Kamil Rytarowski <n54@gmx.com>
11274
11275 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11276 register_t.
11277
75c56d3d
KR
112782020-03-14 Kamil Rytarowski <n54@gmx.com>
11279
11280 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11281 it to the ptrace call.
11282 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11283 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11284 * arm-nbsd-nat.c (store_register): Likewise.
11285 * arm-nbsd-nat.c (store_regs): Likewise.
11286 * arm-nbsd-nat.c (store_fp_register): Likewise.
11287 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11288
6018d381
KR
112892020-03-14 Kamil Rytarowski <n54@gmx.com>
11290
11291 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11292 nbsd_nat_target instead of inf_ptrace_target.
11293 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11294 nbsd_nat_target.
11295
013f99f0
KR
112962020-03-14 Kamil Rytarowski <n54@gmx.com>
11297
11298 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11299 it to the ptrace call.
11300 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11301
12753073
KR
113022020-03-14 Kamil Rytarowski <n54@gmx.com>
11303
6227b330
KR
11304 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11305 it to the ptrace call.
11306 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11307
113082020-03-14 Kamil Rytarowski <n54@gmx.com>
11309
11310 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11311 gdb_byte *.
12753073
KR
11312 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11313
d5be5fa4
KR
113142020-03-14 Kamil Rytarowski <n54@gmx.com>
11315
11316 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11317 instead of inf_ptrace_target.
11318 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11319 nbsd_nat_target.
11320
8110f842
KR
113212020-03-14 Kamil Rytarowski <n54@gmx.com>
11322
11323 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11324 register_t.
11325
52feded7
KR
113262020-03-14 Kamil Rytarowski <n54@gmx.com>
11327
11328 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11329 register_t.
11330
25567eee
KR
113312020-03-14 Kamil Rytarowski <n54@gmx.com>
11332
11333 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11334 register_t.
11335
426a9c18
TT
113362020-03-13 Tom Tromey <tom@tromey.com>
11337
11338 * value.h (val_print): Don't declare.
11339 * valprint.h (val_print_array_elements)
11340 (val_print_scalar_formatted, generic_val_print): Don't declare.
11341 * valprint.c (generic_val_print_array): Take a struct value.
11342 (generic_val_print_ptr, generic_val_print_memberptr)
11343 (generic_val_print_bool, generic_val_print_int)
11344 (generic_val_print_char, generic_val_print_complex)
11345 (generic_val_print): Remove.
11346 (generic_value_print): Update.
11347 (do_val_print): Remove unused parameters. Don't call
11348 la_val_print.
11349 (val_print): Remove.
11350 (common_val_print): Update. Don't call value_check_printable.
11351 (val_print_scalar_formatted, val_print_array_elements): Remove.
11352 * rust-lang.c (rust_val_print): Remove.
11353 (rust_language_defn): Update.
11354 * p-valprint.c (pascal_val_print): Remove.
11355 (pascal_value_print_inner): Update.
11356 (pascal_object_print_val_fields, pascal_object_print_val):
11357 Remove.
11358 (pascal_object_print_static_field): Update.
11359 * p-lang.h (pascal_val_print): Don't declare.
11360 * p-lang.c (pascal_language_defn): Update.
11361 * opencl-lang.c (opencl_language_defn): Update.
11362 * objc-lang.c (objc_language_defn): Update.
11363 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11364 * m2-lang.h (m2_val_print): Don't declare.
11365 * m2-lang.c (m2_language_defn): Update.
11366 * language.h (struct language_defn) <la_val_print>: Remove.
11367 * language.c (unk_lang_value_print_inner): Rename. Change
11368 argument types.
11369 (unknown_language_defn, auto_language_defn): Update.
11370 * go-valprint.c (go_val_print): Remove.
11371 * go-lang.h (go_val_print): Don't declare.
11372 * go-lang.c (go_language_defn): Update.
11373 * f-valprint.c (f_val_print): Remove.
11374 * f-lang.h (f_value_print): Don't declare.
11375 * f-lang.c (f_language_defn): Update.
11376 * d-valprint.c (d_val_print): Remove.
11377 * d-lang.h (d_value_print): Don't declare.
11378 * d-lang.c (d_language_defn): Update.
11379 * cp-valprint.c (cp_print_value_fields)
11380 (cp_print_value_fields_rtti, cp_print_value): Remove.
11381 (cp_print_static_field): Update.
11382 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11383 (c_val_print_struct, c_val_print_union, c_val_print_int)
11384 (c_val_print_memberptr, c_val_print): Remove.
11385 * c-lang.h (c_val_print_array, cp_print_value_fields)
11386 (cp_print_value_fields_rtti): Don't declare.
11387 * c-lang.c (c_language_defn, cplus_language_defn)
11388 (asm_language_defn, minimal_language_defn): Update.
11389 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11390 (ada_val_print_enum): Take a struct value.
11391 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11392 (ada_val_print): Remove.
11393 (ada_value_print_1): Update.
11394 (printable_val_type): Remove.
11395 * ada-lang.h (ada_val_print): Don't declare.
11396 * ada-lang.c (ada_language_defn): Update.
11397
42331a1e
TT
113982020-03-13 Tom Tromey <tom@tromey.com>
11399
11400 * valprint.c (do_val_print): Update.
11401 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11402 a struct value.
11403 (value_to_value_object_no_release): Declare.
11404 * python/py-value.c (value_to_value_object_no_release): New
11405 function.
11406 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11407 struct value.
11408 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11409 function.
11410 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11411 a struct value.
11412 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11413 Declare.
11414 (gdbscm_apply_val_pretty_printer): Take a struct value.
11415 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11416 value.
11417 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11418 value.
11419 * extension-priv.h (struct extension_language_ops)
11420 <apply_val_pretty_printer>: Take a struct value.
11421 * cp-valprint.c (cp_print_value): Create a struct value.
11422 (cp_print_value): Update.
11423
3a916a97
TT
114242020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * ada-valprint.c (print_field_values): Call common_val_print.
11427
b59eac37
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * ada-valprint.c (val_print_packed_array_elements): Remove
11431 bitoffset and val parameters. Call common_val_print.
11432 (ada_val_print_string): Remove offset, address, and original_value
11433 parameters.
11434 (ada_val_print_array): Update.
11435 (ada_value_print_array): New function.
11436 (ada_value_print_1): Call it.
11437
03371129
TT
114382020-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * ada-valprint.c (ada_value_print): Use common_val_print.
11441
2e088f8b
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11445
39ef85a8
TT
114462020-03-13 Tom Tromey <tom@tromey.com>
11447
11448 * ada-valprint.c (ada_value_print_num): New function.
11449 (ada_value_print_1): Use it.
11450
b9fa6e07
TT
114512020-03-13 Tom Tromey <tom@tromey.com>
11452
11453 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11454
416595d6
TT
114552020-03-13 Tom Tromey <tom@tromey.com>
11456
11457 * ada-valprint.c (ada_value_print_ptr): New function.
11458 (ada_value_print_1): Use it.
11459
5b5e15ec
TT
114602020-03-13 Tom Tromey <tom@tromey.com>
11461
11462 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11463 call common_val_print.
11464 (ada_val_print_1): Update.
11465 (ada_value_print_1): New function.
11466 (ada_value_print_inner): Rewrite.
11467
fbf54e75
TT
114682020-03-13 Tom Tromey <tom@tromey.com>
11469
11470 * cp-valprint.c (cp_print_value_fields): Update.
11471 (cp_print_value): New function.
11472
64b653ca
TT
114732020-03-13 Tom Tromey <tom@tromey.com>
11474
11475 * m2-valprint.c (m2_value_print_inner): Use
11476 cp_print_value_fields.
11477 * cp-valprint.c (cp_print_value_fields): New function.
11478 * c-valprint.c (c_value_print_struct): New function.
11479 (c_value_print_inner): Use c_value_print_struct.
11480 * c-lang.h (cp_print_value_fields): Declare.
11481
6999f067
TT
114822020-03-13 Tom Tromey <tom@tromey.com>
11483
11484 * c-valprint.c (c_value_print_array): New function.
11485 (c_value_print_inner): Use it.
11486
ce80b8bd
TT
114872020-03-13 Tom Tromey <tom@tromey.com>
11488
11489 * c-valprint.c (c_value_print_memberptr): New function.
11490 (c_value_print_inner): Use it.
11491
2faac269
TT
114922020-03-13 Tom Tromey <tom@tromey.com>
11493
11494 * c-valprint.c (c_value_print_int): New function.
11495 (c_value_print_inner): Use it.
11496
da3e2c29
TT
114972020-03-13 Tom Tromey <tom@tromey.com>
11498
11499 * c-valprint.c (c_value_print_ptr): New function.
11500 (c_value_print_inner): Use it.
11501
50836231
TT
115022020-03-13 Tom Tromey <tom@tromey.com>
11503
11504 * c-valprint.c (c_value_print_inner): Rewrite.
11505
4f412b6e
TT
115062020-03-13 Tom Tromey <tom@tromey.com>
11507
11508 * valprint.c (generic_value_print_complex): New function.
11509 (generic_value_print): Use it.
11510
f5354008
TT
115112020-03-13 Tom Tromey <tom@tromey.com>
11512
11513 * valprint.c (generic_val_print_float): Don't call
11514 val_print_scalar_formatted.
11515 (generic_val_print, generic_value_print): Update.
11516
3eec3b05
TT
115172020-03-13 Tom Tromey <tom@tromey.com>
11518
11519 * valprint.c (generic_value_print_char): New function
11520 (generic_value_print): Use it.
11521
fdddfccb
TT
115222020-03-13 Tom Tromey <tom@tromey.com>
11523
11524 * valprint.c (generic_value_print_int): New function.
11525 (generic_value_print): Use it.
11526
6dde7521
TT
115272020-03-13 Tom Tromey <tom@tromey.com>
11528
11529 * valprint.c (generic_value_print_bool): New function.
11530 (generic_value_print): Use it.
11531
4112d2e6
TT
115322020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * valprint.c (generic_val_print_func): Simplify.
11535 (generic_val_print, generic_value_print): Update.
11536
65786af6
TT
115372020-03-13 Tom Tromey <tom@tromey.com>
11538
11539 * valprint.c (generic_val_print_flags): Remove.
11540 (generic_val_print, generic_value_print): Update.
11541 (val_print_type_code_flags): Add original_value parameter.
11542
40f3ce18
TT
115432020-03-13 Tom Tromey <tom@tromey.com>
11544
11545 * valprint.c (generic_val_print): Update.
11546 (generic_value_print): Update.
11547 * valprint.c (generic_val_print_enum): Don't call
11548 val_print_scalar_formatted.
11549
2a5b130b
TT
115502020-03-13 Tom Tromey <tom@tromey.com>
11551
11552 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11553 * valprint.c (generic_value_print_ptr): New function.
11554
abc66ce9
TT
115552020-03-13 Tom Tromey <tom@tromey.com>
11556
11557 * valprint.c (generic_value_print): Rewrite.
11558
07a32858
TT
115592020-03-13 Tom Tromey <tom@tromey.com>
11560
11561 * p-valprint.c (pascal_object_print_value_fields)
11562 (pascal_object_print_value): New functions.
11563
64d64d3a
TT
115642020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * p-valprint.c (pascal_value_print_inner): Rewrite.
11567
6a95a1f5
TT
115682020-03-13 Tom Tromey <tom@tromey.com>
11569
11570 * f-valprint.c (f_value_print_innner): Rewrite.
11571
59fcdac6
TT
115722020-03-13 Tom Tromey <tom@tromey.com>
11573
11574 * m2-valprint.c (m2_print_unbounded_array): New overload.
11575 (m2_print_unbounded_array): Update.
11576 (m2_print_array_contents): Take a struct value.
11577 (m2_value_print_inner): Rewrite.
11578
d133c3e1
TT
115792020-03-13 Tom Tromey <tom@tromey.com>
11580
11581 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11582 (d_value_print_inner): New function.
11583 * d-lang.h (d_value_print_inner): Declare.
11584 * d-lang.c (d_language_defn): Use d_value_print_inner.
11585
23b0f06b
TT
115862020-03-13 Tom Tromey <tom@tromey.com>
11587
11588 * go-valprint.c (go_value_print_inner): New function.
11589 * go-lang.h (go_value_print_inner): Declare.
11590 * go-lang.c (go_language_defn): Use go_value_print_inner.
11591
5f56f7cb
TT
115922020-03-13 Tom Tromey <tom@tromey.com>
11593
11594 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11595 API.
11596 (rust_val_print): Rewrite.
11597 (rust_value_print_inner): New function, from rust_val_print.
11598 (rust_language_defn): Use rust_value_print_inner.
11599
26792ee0
TT
116002020-03-13 Tom Tromey <tom@tromey.com>
11601
11602 * ada-valprint.c (ada_value_print_inner): New function.
11603 * ada-lang.h (ada_value_print_inner): Declare.
11604 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11605
24051bbe
TT
116062020-03-13 Tom Tromey <tom@tromey.com>
11607
11608 * f-valprint.c (f_value_print_innner): New function.
11609 * f-lang.h (f_value_print_innner): Declare.
11610 * f-lang.c (f_language_defn): Use f_value_print_innner.
11611
c0941be6
TT
116122020-03-13 Tom Tromey <tom@tromey.com>
11613
11614 * p-valprint.c (pascal_value_print_inner): New function.
11615 * p-lang.h (pascal_value_print_inner): Declare.
11616 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11617
62c4663d
TT
116182020-03-13 Tom Tromey <tom@tromey.com>
11619
11620 * m2-valprint.c (m2_value_print_inner): New function.
11621 * m2-lang.h (m2_value_print_inner): Declare.
11622 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11623
62182190
TT
116242020-03-13 Tom Tromey <tom@tromey.com>
11625
11626 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11627 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11628 * c-valprint.c (c_value_print_inner): New function.
11629 * c-lang.h (c_value_print_inner): Declare.
11630 * c-lang.c (c_language_defn, cplus_language_defn)
11631 (asm_language_defn, minimal_language_defn): Use
11632 c_value_print_inner.
11633
1e592a8a
TT
116342020-03-13 Tom Tromey <tom@tromey.com>
11635
11636 * p-valprint.c (pascal_object_print_value_fields): Now static.
11637 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11638
7fe471e9
TT
116392020-03-13 Tom Tromey <tom@tromey.com>
11640
11641 * c-valprint.c (c_val_print_array): Simplify.
11642
d121c6ce
TT
116432020-03-13 Tom Tromey <tom@tromey.com>
11644
11645 * valprint.c (value_print_array_elements): New function.
11646 * valprint.h (value_print_array_elements): Declare.
11647
4dba70ee
TT
116482020-03-13 Tom Tromey <tom@tromey.com>
11649
11650 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11651 * mips-tdep.c (mips_print_register): Use
11652 value_print_scalar_formatted.
11653
4f9ae810
TT
116542020-03-13 Tom Tromey <tom@tromey.com>
11655
11656 * valprint.h (value_print_scalar_formatted): Declare.
11657 * valprint.c (value_print_scalar_formatted): New function.
11658
156bfec9
TT
116592020-03-13 Tom Tromey <tom@tromey.com>
11660
11661 * valprint.h (generic_value_print): Declare.
11662 * valprint.c (generic_value_print): New function.
11663
2b4e573d
TT
116642020-03-13 Tom Tromey <tom@tromey.com>
11665
11666 * valprint.c (do_val_print): Call la_value_print_inner, if
11667 available.
11668 * rust-lang.c (rust_language_defn): Update.
11669 * p-lang.c (pascal_language_defn): Update.
11670 * opencl-lang.c (opencl_language_defn): Update.
11671 * objc-lang.c (objc_language_defn): Update.
11672 * m2-lang.c (m2_language_defn): Update.
11673 * language.h (struct language_defn) <la_value_print_inner>: New
11674 member.
11675 * language.c (unknown_language_defn, auto_language_defn): Update.
11676 * go-lang.c (go_language_defn): Update.
11677 * f-lang.c (f_language_defn): Update.
11678 * d-lang.c (d_language_defn): Update.
11679 * c-lang.c (c_language_defn, cplus_language_defn)
11680 (asm_language_defn, minimal_language_defn): Update.
11681 * ada-lang.c (ada_language_defn): Update.
11682
a1f6a07c
TT
116832020-03-13 Tom Tromey <tom@tromey.com>
11684
11685 * c-valprint.c (c_value_print): Use common_val_print.
11686
410cf315
TT
116872020-03-13 Tom Tromey <tom@tromey.com>
11688
11689 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11690
72a45c93
TT
116912020-03-13 Tom Tromey <tom@tromey.com>
11692
11693 * f-valprint.c (f77_print_array_1, f_val_print): Use
11694 common_val_print.
11695
040f66bd
TT
116962020-03-13 Tom Tromey <tom@tromey.com>
11697
11698 * riscv-tdep.c (riscv_print_one_register_info): Use
11699 common_val_print.
11700
a6e05a6c
TT
117012020-03-13 Tom Tromey <tom@tromey.com>
11702
11703 * mi/mi-main.c (output_register): Use common_val_print.
11704
3444c526
TT
117052020-03-13 Tom Tromey <tom@tromey.com>
11706
11707 * infcmd.c (default_print_one_register_info): Use
11708 common_val_print.
11709
c2a44efe
TT
117102020-03-13 Tom Tromey <tom@tromey.com>
11711
11712 * valprint.h (common_val_print_checked): Declare.
11713 * valprint.c (common_val_print_checked): New function.
11714 * stack.c (print_frame_arg): Use common_val_print_checked.
11715
b0c26e99
TT
117162020-03-13 Tom Tromey <tom@tromey.com>
11717
11718 * valprint.c (do_val_print): New function, from val_print.
11719 (val_print): Use do_val_print.
11720 (common_val_print): Use do_val_print.
11721
ce3acbe9
TT
117222020-03-13 Tom Tromey <tom@tromey.com>
11723
11724 * valprint.c (value_print): Use scoped_value_mark.
11725
96c7f873
TV
117262020-03-13 Tom de Vries <tdevries@suse.de>
11727
11728 PR symtab/25646
11729 * psymtab.c (partial_symtab::partial_symtab): Don't set
11730 globals_offset and statics_offset. Push element onto
11731 current_global_psymbols and current_static_psymbols stacks.
11732 (concat): New function.
11733 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11734 element from current_global_psymbols and current_static_psymbols
11735 stacks. Concat popped elements to global_psymbols and
11736 static_symbols.
11737 (add_psymbol_to_list): Use current_global_psymbols and
11738 current_static_psymbols stacks.
11739 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11740 current_static_psymbols fields.
11741
6ba0a321
CB
117422020-03-12 Christian Biesinger <cbiesinger@google.com>
11743
11744 * corelow.c (sniff_core_bfd): Remove.
11745 (class core_target) <m_core_vec>: Remove.
11746 (core_target::core_target): Update.
11747 (core_file_fns): Remove.
11748 (deprecated_add_core_fns): Remove.
11749 (default_core_sniffer): Remove.
11750 (sniff_core_bfd): Remove.
11751 (default_check_format): Remove.
11752 (gdb_check_format): Remove.
11753 (core_target_open): Update.
11754 (core_target::get_core_register_section): Update.
11755 (get_core_registers_cb): Update.
11756 (core_target::fetch_registers): Update.
11757 * gdbcore.h (struct core_fns): Remove.
11758 (deprecated_add_core_fns): Remove.
11759 (default_core_sniffer): Remove.
11760 (default_check_format): Remove.
11761
227031b2
TT
117622020-03-12 Tom Tromey <tom@tromey.com>
11763
11764 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11765 CORE_ADDR.
11766 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11767
53807e9f
TT
117682020-03-12 Tom Tromey <tom@tromey.com>
11769
11770 * remote.c (remote_target::download_tracepoint)
11771 (remote_target::enable_tracepoint)
11772 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11773 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11774 sprintf_vma.
11775
64f25102
TT
117762020-03-12 Tom Tromey <tom@tromey.com>
11777
11778 * symfile-mem.c: Update CORE_ADDR size assert.
11779
272cd5a3
SM
117802020-03-12 Simon Marchi <simon.marchi@efficios.com>
11781
11782 * selftest.m4: Move to gdbsupport/.
11783 * acinclude.m4: Update path to selftest.m4.
11784
74cd3f9d
SM
117852020-03-12 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11788 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11789 gdbarch-selfselftests.c and selftest-arch.c.
11790 (SUBDIR_UNITTESTS_OBS): Rename to...
11791 (SELFTESTS_OBS): ... this.
11792 (COMMON_SFILES): Remove disasm-selftests.c and
11793 gdbarch-selftests.c.
11794 * configure.ac: Don't add selftest-arch.{c,o} to
11795 CONFIG_{SRCS,OBS}.
11796 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11797 preprocessor conditions.
11798
db6878ac
SM
117992020-03-12 Simon Marchi <simon.marchi@efficios.com>
11800
11801 * configure.ac: Don't source bfd/development.sh.
11802 * selftest.m4: Modify comment.
11803 * configure: Re-generate.
11804
4d696a5c
SM
118052020-03-12 Simon Marchi <simon.marchi@efficios.com>
11806
11807 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11808 not "true" or "false".
11809 * configure: Re-generate.
11810
8dd8e1c7
CB
118112020-03-12 Christian Biesinger <cbiesinger@google.com>
11812
11813 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11814 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11815 renamed to arm_nbsd_supply_gregset.
11816 (fetch_register): Update to call arm_nbsd_supply_gregset.
11817 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11818 (arm_netbsd_nat_target::fetch_registers): Update.
11819 (fetch_elfcore_registers): Removed.
11820 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11821 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11822 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11823 not require NetBSD system headers.
11824 (arm_nbsd_regset): New struct.
11825 (arm_nbsd_iterate_over_regset_sections): New function.
11826 (arm_netbsd_init_abi_common): Updated to call
11827 set_gdbarch_iterate_over_regset_sections.
11828 * arm-nbsd-tdep.h: New file.
11829
dd69bf7a
KB
118302020-03-11 Kevin Buettner <kevinb@redhat.com>
11831
11832 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11833 recursion.
11834
a0761e34
SM
118352020-03-11 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * configure: Re-generate.
11838
e7a82140
TT
118392020-03-11 Tom Tromey <tromey@adacore.com>
11840
11841 * ada-typeprint.c (print_choices): Fix comment.
11842
dcc050c8
AB
118432020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11844
11845 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11846 previous item in the list, when the list has no items.
11847
1c33af77
TV
118482020-03-11 Tom de Vries <tdevries@suse.de>
11849
11850 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11851 PROP_LOCLIST handling code.
11852
8c95582d
AB
118532020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * buildsym-legacy.c (record_line): Pass extra parameter to
11856 record_line.
11857 * buildsym.c (buildsym_compunit::record_line): Take an extra
11858 parameter, reduce duplication in the line table, and record the
11859 is_stmt flag in the line table.
11860 * buildsym.h (buildsym_compunit::record_line): Add extra
11861 parameter.
11862 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11863 non-statement lines.
11864 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11865 this to the symtab builder.
11866 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11867 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11868 through to dwarf_record_line_1.
11869 * infrun.c (process_event_stop_test): When stepping, don't stop at
11870 a non-statement instruction, and only refresh the step info when
11871 we land in the middle of a line's range. Also add an extra
11872 comment.
11873 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11874 field.
11875 * record-btrace.c (btrace_find_line_range): Only record lines
11876 marked as is-statement.
11877 * stack.c (frame_show_address): Show the frame address if we are
11878 in a non-statement sal.
11879 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11880 (maintenance_print_one_line_table): Print a header for the is_stmt
11881 column, and include is_stmt information in the output.
11882 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11883 preference to non-statements.
11884 (find_pcs_for_symtab_line): Prefer is-statement entries.
11885 (find_line_common): Likewise.
11886 * symtab.h (struct linetable_entry): Add is_stmt field.
11887 (struct symtab_and_line): Likewise.
11888 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11889 arranging the line table.
11890
e4003a34
TV
118912020-03-07 Tom de Vries <tdevries@suse.de>
11892
11893 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11894 DIE.
11895
e8932576
TT
118962020-03-07 Tom Tromey <tom@tromey.com>
11897
11898 * valops.c (value_literal_complex): Remove obsolete comment.
11899 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11900 comment.
11901
29734269
SM
119022020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11903
11904 * infrun.h: Forward-declare thread_info.
11905 (set_step_info): Add thread_info parameter, add doc.
11906 * infrun.c (set_step_info): Add thread_info parameter, move doc
11907 to header.
11908 * infrun.c (process_event_stop_test): Pass thread to
11909 set_step_info call.
11910 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11911 set_step_info.
11912 (prepare_one_step): Add thread_info parameter, pass it to
11913 set_step_frame and prepare_one_step (recursive) call.
11914 (step_1): Pass thread to prepare_one_step call.
11915 (step_command_fsm::should_stop): Pass thread to
11916 prepare_one_step.
11917 (until_next_fsm): Pass thread to set_step_frame call.
11918 (finish_command): Pass thread to set_step_info call.
11919
b7d64b29
HD
119202020-03-06 Hannes Domani <ssbssa@yahoo.de>
11921
11922 * windows-tdep.c (windows_solib_create_inferior_hook):
11923 Check if inferior is running.
11924
09f2921c
TV
119252020-03-06 Tom de Vries <tdevries@suse.de>
11926
11927 * NEWS: Fix "the the".
11928 * ctfread.c: Same.
11929
fd760e79
TV
119302020-03-06 Tom de Vries <tdevries@suse.de>
11931
11932 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11933
20ea4a60
AB
119342020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * .dir-locals.el: Add a comment referencing the other copies of
11937 this file.
11938
0afbabf0
JB
119392020-03-05 John Baldwin <jhb@FreeBSD.org>
11940
11941 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11942 psargs.
11943
842806cb
TBA
119442020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11945
11946 * .gitattributes: New file.
11947
be1e3d3e
TT
119482020-03-04 Tom Tromey <tom@tromey.com>
11949
11950 * symmisc.c (print_symbol_bcache_statistics)
11951 (print_objfile_statistics): Update.
11952 * symfile.c (allocate_symtab): Use intern.
11953 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11954 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11955 macro_cache>: Remove.
11956 <string_cache>: New member.
11957 (struct objfile) <intern>: New methods.
11958 * elfread.c (elf_symtab_read): Use intern.
11959 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11960 (dwarf2_compute_name, dwarf2_physname)
11961 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11962 names.
11963 (guess_partial_die_structure_name): Update.
11964 (partial_die_info::fixup): Intern name.
11965 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11966 name.
11967 (dwarf2_name): Intern name. Update.
11968 * buildsym.c (buildsym_compunit::get_macro_table): Use
11969 string_cache.
11970
4e7625fd
TT
119712020-03-04 Tom Tromey <tom@tromey.com>
11972
11973 * jit.c (bfd_open_from_target_memory): Make "target" const.
11974 * corefile.c (gnutarget): Now const.
11975 * gdbcore.h (gnutarget): Now const.
11976
46f9f931
HD
119772020-03-04 Hannes Domani <ssbssa@yahoo.de>
11978
11979 * NEWS: Mention support for WOW64 processes.
11980 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11981 (amd64_windows_segment_register_p): Remove static.
11982 (_initialize_amd64_windows_nat): Update.
11983 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11984 * i386-windows-nat.c (context_offset): Update.
11985 (i386_mappings): Rename and remove static.
11986 (i386_windows_segment_register_p): Remove static.
11987 (_initialize_i386_windows_nat): Update.
11988 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11989 (STATUS_WX86_SINGLE_STEP): New macro.
11990 (EnumProcessModulesEx): New macro.
11991 (Wow64SuspendThread): New macro.
11992 (Wow64GetThreadContext): New macro.
11993 (Wow64SetThreadContext): New macro.
11994 (Wow64GetThreadSelectorEntry): New macro.
11995 (windows_set_context_register_offsets): Add static.
11996 (windows_set_segment_register_p): Likewise.
11997 (windows_add_thread): Adapt for WOW64 processes.
11998 (windows_fetch_one_register): Likewise.
11999 (windows_nat_target::fetch_registers): Likewise.
12000 (windows_store_one_register): Likewise.
12001 (display_selector): Likewise.
12002 (display_selectors): Likewise.
12003 (handle_exception): Likewise.
12004 (windows_continue): Likewise.
12005 (windows_nat_target::resume): Likewise.
12006 (windows_add_all_dlls): Likewise.
12007 (do_initial_windows_stuff): Likewise.
12008 (windows_nat_target::attach): Likewise.
12009 (windows_get_exec_module_filename): Likewise.
12010 (windows_nat_target::create_inferior): Likewise.
12011 (windows_xfer_siginfo): Likewise.
12012 (_initialize_loadable): Initialize Wow64SuspendThread,
12013 Wow64GetThreadContext, Wow64SetThreadContext,
12014 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12015 * windows-nat.h (windows_set_context_register_offsets):
12016 Remove declaration.
12017 (windows_set_segment_register_p): Likewise.
12018 (i386_windows_segment_register_p): Add declaration.
12019 (amd64_windows_segment_register_p): Likewise.
12020
440cf44e
LM
120212020-03-04 Luis Machado <luis.machado@linaro.org>
12022
12023 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12024 in "info registers" for AArch64/ARM.
12025
12026 The change caused "info registers" to not print GPR's.
12027
12028 gdb/ChangeLog:
12029
12030 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12031
12032 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12033 when reg->group is empty and reggroup is not.
12034
1009d92f
TT
120352020-03-03 Tom Tromey <tromey@adacore.com>
12036
12037 * dwarf2/frame.c (struct dwarf2_frame_cache)
12038 <checked_tailcall_bottom, entry_cfa_sp_offset,
12039 entry_cfa_sp_offset_p>: Remove members.
12040 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12041 (dwarf2_frame_prev_register): Don't call
12042 dwarf2_tailcall_sniffer_first.
12043 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12044 * frame-unwind.c (add_unwinder): New fuction.
12045 (frame_unwind_init): Use it. Add tailcall unwinder.
12046
5e5d66b6
AB
120472020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12048 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12049
12050 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12051 value should be printed as true.
12052
584cf46d
HD
120532020-03-03 Hannes Domani <ssbssa@yahoo.de>
12054
12055 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12056 (windows_init_abi): Set and use windows_so_ops.
12057
7b973adc
SDJ
120582020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12059
12060 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12061 when verifying if dealing with a convenience variable.
12062
bb7b70ab
LM
120632020-03-03 Luis Machado <luis.machado@linaro.org>
12064
12065 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12066
9822cb57
SM
120672020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * infrun.c (gdbarch_supports_displaced_stepping): New.
12070 (use_displaced_stepping): Break up conditions in smaller pieces.
12071 Use gdbarch_supports_displaced_stepping.
12072 (displaced_step_prepare_throw): Use
12073 gdbarch_supports_displaced_stepping.
12074
63e163f2
AB
120752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12076
12077 * NEWS: Mention new behaviour of the history filename.
12078 * top.c (write_history_p): Add comment.
12079 (show_write_history_p): Add header comment, give a different
12080 message when history writing is on, but the history filename is
12081 empty.
12082 (history_filename): Add comment.
12083 (history_filename_empty): New function.
12084 (show_history_filename): Add header comment, give a different
12085 message when the filename is empty.
12086 (init_history): Compare history_filename against nullptr, and only
12087 read history if the filename is not empty.
12088 (set_history_filename): Add header comment, and only make
12089 non-empty filenames absolute.
12090 (init_main): Make the filename argument to 'set history filename'
12091 optional.
12092
81b86b97
CB
120932020-03-02 Christian Biesinger <cbiesinger@google.com>
12094
12095 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12096 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12097 (fetch_fp_register): Update.
12098 (fetch_fp_regs): Update.
12099 (store_fp_register): Update.
12100 (store_fp_regs): Update.
12101 (arm_netbsd_nat_target::read_description): New function.
12102 (fetch_elfcore_registers): Update.
12103
24ed6739
AB
121042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12105
12106 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12107 general_thread if the stop reply is missing a thread-id.
12108 (remote_target::process_stop_reply): Use the first non-exited
12109 thread if the target didn't pass a thread-id.
12110 * infrun.c (do_target_wait): Move call to
12111 switch_to_inferior_no_thread to ....
12112 (do_target_wait_1): ... here.
12113
a84bb2a0
JT
121142020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12115
12116 * debuginfod-support.c: Include defs.h first.
12117
658dadf0
TV
121182020-02-28 Tom de Vries <tdevries@suse.de>
12119
12120 * symfile.c (set_initial_language): Use default language for lookup.
12121
4ebe4877
SM
121222020-02-28 Simon Marchi <simon.marchi@efficios.com>
12123
12124 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12125 reader variable, pass `this` to read_cutu_die_from_dwo.
12126
e5da1139
AM
121272020-02-27 Aaron Merey <amerey@redhat.com>
12128
12129 * source.c (open_source_file): Check for nullptr when computing
12130 srcpath.
12131
317f7127
TT
121322020-02-27 Tom Tromey <tromey@adacore.com>
12133
12134 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12135 member.
12136 (dwarf2_add_field): Don't update nfields.
12137 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12138
3104d9ee
AB
121392020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12142 abs.
12143
b83470bf
TT
121442020-02-26 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12147 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12148 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12149 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12150 per_cu_data.
12151
edfe0a0c
TT
121522020-02-26 Tom Tromey <tom@tromey.com>
12153
12154 * dwarf2/index-write.c (psym_index_map): Change type.
12155 (add_address_entry_worker, write_one_signatured_type)
12156 (recursively_count_psymbols, recursively_write_psymbols)
12157 (class debug_names, psyms_seen_size, write_gdbindex)
12158 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12159
0d79cdc4
AM
121602020-02-26 Aaron Merey <amerey@redhat.com>
12161
12162 * Makefile.in: Handle optional debuginfod support.
12163 * NEWS: Update.
12164 * README: Add --with-debuginfod summary.
12165 * config.in: Regenerate.
12166 * configure: Regenerate.
12167 * configure.ac: Handle optional debuginfod support.
12168 * debuginfod-support.c: debuginfod helper functions.
12169 * debuginfod-support.h: Ditto.
12170 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12171 summary.
12172 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12173 when a dwz file cannot be found.
12174 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12175 debuginfo file cannot be found.
12176 * source.c (open_source_file): Query debuginfod servers when a
12177 source file cannot be found.
12178 * top.c (print_gdb_configuration): Include
12179 --{with,without}-debuginfod in the output.
12180
b65ce565
JG
121812020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12182
12183 * thread.c (thr_try_catch_cmd): Print thread name.
12184
d4c9a4f8
SM
121852020-02-26 Simon Marchi <simon.marchi@efficios.com>
12186
12187 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12188 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12189 dwarf2_fetch_die_type_sect_off): Move to...
12190 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12191 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12192 dwarf2_fetch_die_type_sect_off): ... here.
12193 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12194 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12195 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12196
0dce4280
TV
121972020-02-26 Tom de Vries <tdevries@suse.de>
12198
12199 PR gdb/25603
12200 * symfile.c (set_initial_language): Exit-early if
12201 language_mode == language_mode_manual.
12202
450a1bfc
SM
122032020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12204
12205 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12206 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12207 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12208
9e80cfa1
AB
122092020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12210
12211 * gdbtypes.c (create_array_type_with_stride): Handle negative
12212 array strides.
12213 * valarith.c (value_subscripted_rvalue): Likewise.
12214
09624f1f
LM
122152020-02-25 Luis Machado <luis.machado@linaro.org>
12216
12217 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12218
8cb5117c
SM
122192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12220
12221 * loc.h (dwarf2_get_die_type): Move to...
12222 * read.h (dwarf2_get_die_type): ... here.
12223 * read.c (dwarf2_get_die_type): Move doc to header.
12224
c325c44e
JB
122252020-02-25 Joel Brobecker <brobecker@adacore.com>
12226
12227 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12228 'gnulib/Makefile.in' to the list.
12229
4ac93832
TT
122302020-02-24 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12233 Remove.
12234 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12235 XOBNEWVEC.
12236
197400e8
TT
122372020-02-24 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12240 New method.
12241 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12242 (dw2_do_instantiate_symtab, dw2_get_file_names)
12243 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12244
76935768
TT
122452020-02-24 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12248 make_scoped_restore.
12249 (dwarf2_psymtab::read_symtab): Don't clear
12250 reading_partial_symbols.
12251
a88ef40d
TV
122522020-02-24 Tom de Vries <tdevries@suse.de>
12253
12254 PR gdb/25592
12255 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12256
c9af6521
TV
122572020-02-24 Tom de Vries <tdevries@suse.de>
12258
12259 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12260 commands layout next/prev/regs.
12261
5707a07a
TT
122622020-02-22 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12265 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12266
3b0fb49e
TT
122672020-02-22 Tom Tromey <tom@tromey.com>
12268
12269 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12270
283be8bf
TT
122712020-02-22 Tom Tromey <tom@tromey.com>
12272
12273 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12274 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12275 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12276 * tui/tui.c (_initialize_tui): Add usage text.
12277
ca793b96
TT
122782020-02-22 Tom Tromey <tom@tromey.com>
12279
12280 * tui/tui-win.c (tui_set_focus_command)
12281 (tui_set_win_height_command): Use error_no_arg.
12282 (_initialize_tui_win): Update help text.
12283 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12284
432b5c40
TT
122852020-02-22 Tom Tromey <tom@tromey.com>
12286
12287 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12288 * tui/tui-disasm.h (struct tui_disasm_window)
12289 <display_start_addr>: Declare.
12290 * tui/tui-source.h (struct tui_source_window)
12291 <display_start_addr>: Declare.
12292 * tui/tui-winsource.h (struct tui_source_window_base)
12293 <show_source_line, display_start_addr>: New methods.
12294 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12295 Rename and move to protected section.
12296 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12297 (tui_source_window_base::do_erase_source_content): Update.
12298 (tui_source_window_base::show_source_line): Now a method.
12299 (tui_source_window_base::show_source_content)
12300 (tui_source_window_base::tui_source_window_base)
12301 (tui_source_window_base::rerender)
12302 (tui_source_window_base::refill)
12303 (tui_source_window_base::do_scroll_horizontal)
12304 (tui_source_window_base::set_is_exec_point_at)
12305 (tui_source_window_base::update_breakpoint_info)
12306 (tui_source_window_base::update_exec_info): Update.
12307 * tui/tui-source.c (tui_source_window::set_contents)
12308 (tui_source_window::showing_source_p)
12309 (tui_source_window::do_scroll_vertical)
12310 (tui_source_window::location_matches_p)
12311 (tui_source_window::line_is_displayed): Update.
12312 (tui_source_window::display_start_addr): New method.
12313 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12314 (tui_disasm_window::do_scroll_vertical)
12315 (tui_disasm_window::location_matches_p): Update.
12316 (tui_disasm_window::display_start_addr): New method.
12317
01b1af32
TT
123182020-02-22 Tom Tromey <tom@tromey.com>
12319
12320 * NEWS: Add entry for gdb.register_window_type.
12321 * tui/tui-layout.h (window_factory): New typedef.
12322 (tui_register_window): Declare.
12323 * tui/tui-layout.c (saved_tui_windows): New global.
12324 (tui_apply_current_layout): Use it.
12325 (tui_register_window): New function.
12326 * python/python.c (do_start_initialization): Call
12327 gdbpy_initialize_tui.
12328 (python_GdbMethods): Add "register_window_type" function.
12329 * python/python-internal.h (gdbpy_register_tui_window)
12330 (gdbpy_initialize_tui): Declare.
12331 * python/py-tui.c: New file.
12332 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12333
fc96d20b
TT
123342020-02-22 Tom Tromey <tom@tromey.com>
12335
12336 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12337
935c78c0
TT
123382020-02-22 Tom Tromey <tom@tromey.com>
12339
12340 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12341 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12342 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12343 (tui_set_win_focus_to): Move from tui-win.c.
12344
0240c8f1
TT
123452020-02-22 Tom Tromey <tom@tromey.com>
12346
12347 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12348 functions.
12349 (known_window_types): New global.
12350 (tui_get_window_by_name): Reimplement.
12351 (initialize_known_windows): New function.
12352 (validate_window_name): Rewrite.
12353 (_initialize_tui_layout): Call initialize_known_windows.
12354
fdb01f0c
TT
123552020-02-22 Tom Tromey <tom@tromey.com>
12356
12357 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12358 Remove constants.
12359 * tui/tui-winsource.h (struct tui_source_window_base)
12360 <tui_source_window_base>: Remove parameter.
12361 * tui/tui-winsource.c
12362 (tui_source_window_base::tui_source_window_base): Remove
12363 parameter.
12364 (tui_source_window_base::refill): Update.
12365 * tui/tui-stack.h (struct tui_locator_window)
12366 <tui_locator_window>: Update.
12367 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12368 Default the constructor.
12369 * tui/tui-regs.h (struct tui_data_item_window)
12370 <tui_data_item_window>: Default the constructor.
12371 (struct tui_data_window) <tui_data_window>: Likewise.
12372 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12373 Default the constructor.
12374 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12375 Default the constructor.
12376 <type>: Remove.
12377 (struct tui_win_info) <tui_win_info>: Default the constructor.
12378 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12379 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12380 Default the constructor.
12381
865a5aec
TT
123822020-02-22 Tom Tromey <tom@tromey.com>
12383
12384 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12385 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12386 * tui/tui-win.c (tui_resize_all): Don't call
12387 tui_delete_invisible_windows.
12388 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12389 done.
12390 (tui_set_layout): Update.
12391 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12392 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12393 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12394
e098d18c
TT
123952020-02-22 Tom Tromey <tom@tromey.com>
12396
12397 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12398 correctly.
12399
eb9c8874
TT
124002020-02-22 Tom Tromey <tom@tromey.com>
12401
12402 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12403
7eed1a8e
TT
124042020-02-22 Tom Tromey <tom@tromey.com>
12405
12406 * tui/tui-winsource.h (struct tui_source_window_iterator)
12407 <inner_iterator>: New etytypedef.
12408 <tui_source_window_iterator>: Take "end" parameter.
12409 <tui_source_window_iterator>: Take iterator.
12410 <operator*, advance>: Update.
12411 <m_iter>: Change type.
12412 <m_end>: New field.
12413 (struct tui_source_windows) <begin, end>: Update.
12414 * tui/tui-layout.c (tui_windows): New global.
12415 (tui_apply_current_layout): Clear tui_windows.
12416 (tui_layout_window::apply): Update tui_windows.
12417 * tui/tui-data.h (tui_windows): Declare.
12418 (all_tui_windows): Now inline function.
12419 (class tui_window_iterator, struct all_tui_windows): Remove.
12420
7c043ba6
TT
124212020-02-22 Tom Tromey <tom@tromey.com>
12422
12423 PR tui/17850:
12424 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12425 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12426 "height" argument.
12427 (class tui_layout_window) <get_sizes>: Likewise.
12428 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12429 argument.
12430 <get_sizes>: Add "height" argument.
12431 <m_vertical>: New field.
12432 * tui/tui-layout.c (tui_layout_split::clone): Update.
12433 (tui_layout_split::get_sizes): Add "height" argument.
12434 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12435 (tui_new_layout_command): Parse "-horizontal".
12436 (_initialize_tui_layout): Update help string.
12437 (tui_layout_split::specification): Add "-horizontal" when needed.
12438 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12439 argument.
12440 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12441 New methods.
12442
6bc56648
TT
124432020-02-22 Tom Tromey <tom@tromey.com>
12444
12445 * tui/tui-layout.h (enum tui_adjust_result): New.
12446 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12447 (class tui_layout_window) <adjust_size>: Return
12448 tui_adjust_result. Rewrite.
12449 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12450 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12451
c22fef7e
TT
124522020-02-22 Tom Tromey <tom@tromey.com>
12453
12454 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12455 parameter and return types.
12456 (class tui_layout_base) <specification>: Add "depth".
12457 (class tui_layout_window) <specification>: Add "depth".
12458 (class tui_layout_split) <specification>: Add "depth".
12459 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12460 and return types.
12461 (tui_new_layout_command): Parse sub-layouts.
12462 (_initialize_tui_layout): Update help string.
12463 (tui_layout_window::specification): Add "depth".
12464 (add_layout_command): Update.
12465
ee325b61
TT
124662020-02-22 Tom Tromey <tom@tromey.com>
12467
12468 * NEWS: Add "tui new-layout" item.
12469 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12470 Add new-layout command to help text.
12471 (validate_window_name): New function.
12472 (tui_new_layout_command): New function.
12473 (_initialize_tui_layout): Register "new-layout".
12474 (tui_layout_window::specification): New method.
12475 (tui_layout_window::specification): New method.
12476 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12477 method.
12478 (class tui_layout_window) <specification>: New method.
12479 (class tui_layout_split) <specification>: New method.
12480
416eb92d
TT
124812020-02-22 Tom Tromey <tom@tromey.com>
12482
12483 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12484 * tui/tui-win.c (window_name_completer): Update comment.
12485 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12486 Declare method.
12487 (class tui_layout_window) <replace_window>: Likewise.
12488 (class tui_layout_split) <replace_window>: Likewise.
12489 (tui_set_layout): Don't declare.
12490 (tui_set_initial_layout): Declare function.
12491 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12492 (asm_regs_layout): New globals.
12493 (tui_current_layout, show_layout): Remove.
12494 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12495 (find_layout, tui_apply_layout): New function.
12496 (layout_completer): Remove.
12497 (tui_next_layout): Reimplement.
12498 (tui_next_layout_command): New function.
12499 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12500 (tui_regs_layout): Reimplement.
12501 (tui_regs_layout_command): New function.
12502 (extract_display_start_addr): Rewrite.
12503 (next_layout, prev_layout): Remove.
12504 (tui_layout_window::replace_window): New method.
12505 (tui_layout_split::replace_window): New method.
12506 (destroy_layout): New function.
12507 (layout_list): New global.
12508 (add_layout_command): New function.
12509 (initialize_layouts): Update.
12510 (tui_layout_command): New function.
12511 (_initialize_tui_layout): Install "layout" commands.
12512 * tui/tui-data.h (enum tui_layout_type): Remove.
12513 (tui_current_layout): Don't declare.
12514
0dbc2fc7
TT
125152020-02-22 Tom Tromey <tom@tromey.com>
12516
12517 * tui/tui-regs.c (tui_reg_layout): Remove.
12518 (tui_reg_command): Use tui_regs_layout.
12519 * tui/tui-layout.h (tui_reg_command): Declare.
12520 * tui/tui-layout.c (tui_reg_command): New function.
12521
5afe342e
TT
125222020-02-22 Tom Tromey <tom@tromey.com>
12523
12524 * tui/tui.c (tui_rl_delete_other_windows): Call
12525 tui_remove_some_windows.
12526 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12527 Declare method.
12528 (class tui_layout_window) <remove_windows>: New method.
12529 (class tui_layout_split) <remove_windows>: Declare.
12530 (tui_remove_some_windows): Declare.
12531 * tui/tui-layout.c (tui_remove_some_windows): New function.
12532 (tui_layout_split::remove_windows): New method.
12533
427326a8
TT
125342020-02-22 Tom Tromey <tom@tromey.com>
12535
12536 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12537 * tui/tui-layout.h (tui_next_layout): Declare.
12538 * tui/tui-layout.c (tui_next_layout): New function.
12539
3fe12b6d
TT
125402020-02-22 Tom Tromey <tom@tromey.com>
12541
12542 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12543 correct coordinates.
12544
59b8b5d2
TT
125452020-02-22 Tom Tromey <tom@tromey.com>
12546
12547 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12548 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12549 DATA_WIN case.
12550
2a3d458b
TT
125512020-02-22 Tom Tromey <tom@tromey.com>
12552
12553 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12554 TUI_DISASM_WIN, not tui_win_list.
12555
3f0cbb04
TT
125562020-02-22 Tom Tromey <tom@tromey.com>
12557
12558 * valprint.c (generic_val_print_enum_1)
12559 (val_print_type_code_flags): Style member names.
12560 * rust-lang.c (val_print_struct, rust_print_enum)
12561 (rust_print_struct_def, rust_internal_print_type): Style member
12562 names.
12563 * p-valprint.c (pascal_object_print_value_fields): Style member
12564 names. Only call fprintf_symbol_filtered for static members.
12565 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12566 * f-valprint.c (f_val_print): Style member names.
12567 * f-typeprint.c (f_type_print_base): Style member names.
12568 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12569 call fprintf_symbol_filtered for static members.
12570 (cp_print_class_member): Style member names.
12571 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12572 member names.
12573 * ada-valprint.c (ada_print_scalar): Style enum names.
12574 (ada_val_print_enum): Likewise.
12575 * ada-typeprint.c (print_enum_type): Style enum names.
12576
d4d947ae
TT
125772020-02-21 Tom Tromey <tom@tromey.com>
12578
12579 * psympriv.h (struct partial_symtab): Update comment.
12580
e94e944b
TT
125812020-02-21 Tom Tromey <tromey@adacore.com>
12582
12583 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12584 type is CORE_ADDR.
12585
1eb73179
TV
125862020-02-21 Tom de Vries <tdevries@suse.de>
12587
12588 PR gdb/25534
12589 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12590 if dependencies[i]->user != NULL.
12591
4f180d53
AT
125922020-02-21 Ali Tamur <tamur@google.com>
12593
12594 * dwarf2/read.c (dwarf2_name): Add null check.
12595
22b6cd70
TT
125962020-02-20 Tom Tromey <tom@tromey.com>
12597
12598 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12599 ">=", in binary search.
12600 (dwarf2_find_containing_comp_unit): New overload.
12601 (run_test): New self-test.
12602 (_initialize_dwarf2_read): Register new test.
12603
bd0cf5a6
NC
126042020-02-20 Nelson Chu <nelson.chu@sifive.com>
12605
12606 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12607 * riscv-tdep.h: Likewise.
12608 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12609 rv32-only CSR.
12610 * features/riscv/64bit-csr.xml: Regenerated.
12611
3f702acd
SDJ
126122020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12613 Tom Tromey <tom@tromey.com>
12614
12615 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12616 of 'fputc_unfiltered'.
12617 (putchar_unfiltered): Call 'fputc_unfiltered'.
12618 (fputc_unfiltered): Call 'fputs_unfiltered'.
12619
d13c7322
AB
126202020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12621
12622 * config.in: Regenerate.
12623 * configure: Regenerate.
12624 * configure.ac: Add --with-python-libdir option.
12625 * main.c: Use WITH_PYTHON_LIBDIR.
12626
869d8950
TT
126272020-02-19 Tom Tromey <tom@tromey.com>
12628
12629 * symtab.c (general_symbol_info::compute_and_set_names): Use
12630 obstack_strndup. Simplify call to symbol_set_demangled_name.
12631
298e9637
SM
126322020-02-19 Simon Marchi <simon.marchi@efficios.com>
12633
12634 * dwarf2/read.c (allocate_signatured_type_table,
12635 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12636 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12637 Remove objfile parameter, update all callers.
12638
08410482
DE
126392020-02-19 Doug Evans <dje@google.com>
12640
12641 PR rust/25535
12642 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12643 rust_enum_variant calculation.
12644
dfdeeca1
TT
126452020-02-19 Tom Tromey <tromey@adacore.com>
12646
12647 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12648
2ef5453b
TT
126492020-02-19 Tom Tromey <tromey@adacore.com>
12650
12651 * ada-lang.c (cache_symbol): Use obstack_strdup.
12652
9f1528a1
AB
126532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12654
12655 * configure: Regenerate.
12656
d3c22fa8
TT
126572020-02-19 Tom Tromey <tromey@adacore.com>
12658
12659 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12660 NULL check.
12661
bf84f706
MR
126622020-02-19 Maciej W. Rozycki <macro@wdc.com>
12663
12664 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12665
d1c9b20f
AB
126662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12667
12668 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12669 if GDBSERVER is not defined.
12670 (riscv_tdesc_cache): Likewise, also store const target_desc.
12671 (STATIC_IN_GDB): Define.
12672 (riscv_create_target_description): Update declaration with
12673 STATIC_IN_GDB.
12674 (riscv_lookup_target_description): New function, only define if
12675 GDBSERVER is not defined.
12676 * arch/riscv.h (riscv_create_target_description): Declare only
12677 when GDBSERVER is defined.
12678 (riscv_lookup_target_description): New declaration when GDBSERVER
12679 is not defined.
12680 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12681 (riscv_linux_read_features): ...this, and return
12682 riscv_gdbarch_features instead of target_desc.
12683 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12684 (riscv_linux_read_description): Rename to...
12685 (riscv_linux_read_features): ...this.
12686 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12687 Update to use riscv_gdbarch_features and
12688 riscv_lookup_target_description.
12689 * riscv-tdep.c (riscv_find_default_target_description): Use
12690 riscv_lookup_target_description instead of
12691 riscv_create_target_description.
12692
373d7ac0
SM
126932020-02-18 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * valprint.c (generic_val_print_enum_1): When printing a flag
12696 enum with value 0 and there is no enumerator with value 0, print
12697 just "0" instead of "(unknown: 0x0)".
12698
b29a2df0
SM
126992020-02-18 Simon Marchi <simon.marchi@efficios.com>
12700
12701 * valprint.c (generic_val_print_enum_1): Print unknown part of
12702 flag enum in hex.
12703
6740f0cc
SM
127042020-02-18 Simon Marchi <simon.marchi@efficios.com>
12705
12706 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12707 flag enums to contain duplicate enumerators.
12708 * valprint.c (generic_val_print_enum_1): Update comment.
12709
edd45eb0
SM
127102020-02-18 Simon Marchi <simon.marchi@efficios.com>
12711
12712 * dwarf2/read.c: Include "count-one-bits.h".
12713 (update_enumeration_type_from_children): If an enumerator has
12714 multiple bits set, don't treat the enumeration as a "flag enum".
12715 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12716 of flag enums have 0 or 1 bit set.
12717
6d0cf446
BE
127182020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12719
12720 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12721 conversion.
12722 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12723 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12724 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12725 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12726 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12727
7001c1b7
SM
127282020-02-18 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12731
fdb61c6c
SM
127322020-02-14 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12735 displaced_step_closure_up.
12736 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12737 (struct displaced_step_closure_up):
12738 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12739 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12740 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12741 Likewise.
12742 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12743 * gdbarch.c, gdbarch.h: Re-generate.
12744 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12745 displaced_step_closure_up.
12746 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12747 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12748 * infrun.h (displaced_step_closure_up): New type alias.
12749 (struct displaced_step_inferior_state) <step_closure>: Change
12750 type to displaced_step_closure_up.
12751 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12752 displaced_step_closure_up.
12753 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12754
a4a38eb4
TT
127552020-02-14 Tom Tromey <tom@tromey.com>
12756
12757 * minidebug.c (gnu_debug_key): New global.
12758 (find_separate_debug_file_in_section): Use it.
12759
e8217e61
SM
127602020-02-14 Simon Marchi <simon.marchi@efficios.com>
12761
12762 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12763 std::unique_ptr.
12764 * gdbarch.c: Re-generate.
12765 * gdbarch.h: Re-generate.
12766 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12767 change.
12768 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12769 type to std::unique_ptr.
12770 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12771 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12772 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12773 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12774 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12775 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12776 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12777 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12778 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12779
d8d83535
SM
127802020-02-14 Simon Marchi <simon.marchi@efficios.com>
12781
12782 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12783 std::unique_ptr.
12784 (displaced_step_clear): Rename to...
12785 (displaced_step_reset): ... this. Just call displaced->reset ().
12786 (displaced_step_clear_cleanup): Rename to...
12787 (displaced_step_reset_cleanup): ... this.
12788 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12789 (displaced_step_fixup): Likewise.
12790 (resume_1): Likewise.
12791 (handle_inferior_event): Restore child's memory before calling
12792 displaced_step_fixup on the parent.
12793 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12794 to std::unique_ptr.
12795 <step_closure>: Change type to std::unique_ptr.
12796
5f661e03
SM
127972020-02-14 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * arm-tdep.c: Include count-one-bits.h.
12800 (cleanup_block_store_pc): Use count_one_bits.
12801 (cleanup_block_load_pc): Use count_one_bits.
12802 (arm_copy_block_xfer): Use count_one_bits.
12803 (thumb2_copy_block_xfer): Use count_one_bits.
12804 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12805 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12806 (thumb_get_next_pcs_raw): Use count_one_bits.
12807 (arm_get_next_pcs_raw): Use count_one_bits_l.
12808 * arch/arm.c (bitcount): Remove.
12809 * arch/arm.h (bitcount): Remove.
12810
8084e579
TT
128112020-02-14 Tom Tromey <tromey@adacore.com>
12812
12813 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12814 Update.
12815 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12816 * dwarf2/loc.c (call_site_find_chain_1): Return
12817 unique_xmalloc_ptr.
12818 (call_site_find_chain): Likewise.
12819
258bf0ee
RB
128202020-02-14 Richard Biener <rguenther@suse.de>
12821
12822 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12823 on expression with division operators.
12824
f98a8458
AKS
128252020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12826
12827 * MAINTAINERS (Write After Approval): Adding myself.
12828
d1437c0e
TT
128292020-02-12 Tom Tromey <tom@tromey.com>
12830
12831 * event-loop.c (event_data, gdb_event, event_handler_func):
12832 Remove.
12833
3d4560f7
TT
128342020-02-12 Tom Tromey <tom@tromey.com>
12835
12836 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12837 (dwarf2_frame_objfile_data): Add comment.
12838 (find_comp_unit, set_comp_unit): New functions.
12839 (dwarf2_frame_find_fde): Use find_comp_unit.
12840 (dwarf2_build_frame_info): Use set_comp_unit.
12841
21982304
TT
128422020-02-12 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12845 (comp_unit): Don't initialize objfile.
12846 (execute_cfa_program): Add text_offset parameter.
12847 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12848 (dwarf2_frame_cache): Update.
12849 (dwarf2_build_frame_info): Don't set "objfile" member.
12850
4debb237
TT
128512020-02-12 Tom Tromey <tom@tromey.com>
12852
12853 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12854 (decode_frame_entry): Likewise.
12855 (dwarf2_build_frame_info): Update.
12856
0d404d44
TT
128572020-02-12 Tom Tromey <tom@tromey.com>
12858
12859 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12860 (decode_frame_entry_1): Use the comp_unit obstack.
12861
a7a3ae5c
TT
128622020-02-12 Tom Tromey <tom@tromey.com>
12863
12864 * dwarf2/frame.c (struct comp_unit): Add initializers and
12865 constructor.
12866 (dwarf2_frame_objfile_data): Store a comp_unit.
12867 (dwarf2_frame_find_fde): Update.
12868 (dwarf2_build_frame_info): Use "new".
12869
a9d65418
TT
128702020-02-12 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12873 (dwarf2_fde_table): Typedef for std::vector.
12874 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12875 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12876 (decode_frame_entry): Update.
12877 (dwarf2_build_frame_info): Use "new".
12878
7559c217
CB
128792020-02-12 Christian Biesinger <cbiesinger@google.com>
12880
12881 * arm-tdep.c (arm_gdbarch_init): Update.
12882 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12883 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12884 have_neon, is_m>: Change to bool.
12885
aeefc73c
CB
128862020-02-12 Christian Biesinger <cbiesinger@google.com>
12887
12888 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12889
d27b8e5f
TT
128902020-02-12 Tom Tromey <tom@tromey.com>
12891
12892 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12893
cd5900f3
HD
128942020-02-12 Hannes Domani <ssbssa@yahoo.de>
12895
12896 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12897 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12898
f056b22b
TT
128992020-02-11 Tom Tromey <tom@tromey.com>
12900
12901 * psymtab.h: Update comment.
12902
f92ff6b5
TT
129032020-02-11 Tom Tromey <tom@tromey.com>
12904
12905 * gdb_obstack.h (struct auto_obstack): Use
12906 DISABLE_COPY_AND_ASSIGN.
12907
3fd6912b
TT
129082020-02-11 Tom Tromey <tom@tromey.com>
12909
12910 * dwarf2/frame.h (struct objfile): Don't forward declare.
12911
69ed9b74
CB
129122020-02-11 Christian Biesinger <cbiesinger@google.com>
12913
12914 * cris-tdep.c (cris_supply_gregset): Change signature to match
12915 what struct regset expects.
12916 (cris_regset): New struct.
12917 (fetch_core_registers): Remove.
12918 (cris_iterate_over_regset_sections): New function.
12919 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12920 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12921
bda874f6
CB
129222020-02-11 Christian Biesinger <cbiesinger@google.com>
12923
12924 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12925 registers.
12926
754e1564
CB
129272020-02-11 Christian Biesinger <cbiesinger@google.com>
12928
12929 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12930
8ddd8e0e
SM
129312020-02-11 Simon Marchi <simon.marchi@efficios.com>
12932
12933 * configure: Re-generate.
12934
898e7f60
SM
129352020-02-11 Simon Marchi <simon.marchi@efficios.com>
12936
12937 * configure: Re-generate.
12938
58df732b
SM
129392020-02-11 Simon Marchi <simon.marchi@efficios.com>
12940
12941 * acinclude: Update warning.m4 path.
12942 * warning.m4: Move to gdbsupport.
12943
da5bd37e
TT
129442020-02-11 Tom Tromey <tromey@adacore.com>
12945
12946 * remote.c (remote_console_output): Update.
12947 * printcmd.c (printf_command): Update.
12948 * event-loop.c (gdb_wait_for_event): Update.
12949 * linux-nat.c (sigchld_handler): Update.
12950 * remote-sim.c (gdb_os_write_stdout): Update.
12951 (gdb_os_flush_stdout): Update.
12952 (gdb_os_flush_stderr): Update.
12953 (gdb_os_write_stderr): Update.
12954 * exceptions.c (print_exception): Update.
12955 * remote-fileio.c (remote_fileio_func_read): Update.
12956 (remote_fileio_func_write): Update.
12957 * tui/tui.c (tui_enable): Update.
12958 * tui/tui-interp.c (tui_interp::init): Update.
12959 * utils.c (init_page_info): Update.
12960 (putchar_unfiltered, fputc_unfiltered): Update.
12961 (gdb_flush): Update.
12962 (emit_style_escape): Update.
12963 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12964 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12965 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12966 (stderr_file::write): Update.
12967 (stderr_file::puts): Update.
12968 * ui-file.h (ui_file_isatty, ui_file_write)
12969 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12970 (ui_file_puts): Don't declare.
12971
85f0dd3c
TV
129722020-02-10 Tom de Vries <tdevries@suse.de>
12973
12974 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12975 sentinel to char *.
12976
2e927613
TV
129772020-02-09 Tom de Vries <tdevries@suse.de>
12978
12979 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12980 filename if it matches "<artificial>".
12981
6bafc845
HD
129822020-02-09 Hannes Domani <ssbssa@yahoo.de>
12983
12984 * windows-tdep.c (struct enum_value_name): New struct.
12985 (create_enum): New function.
12986 (windows_get_siginfo_type): Create and use enum types.
12987
7928d571
HD
129882020-02-09 Hannes Domani <ssbssa@yahoo.de>
12989
12990 * NEWS: Mention $_siginfo support for Windows.
12991 * windows-nat.c (handle_exception): Set siginfo_er.
12992 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12993 (windows_xfer_siginfo): New function.
12994 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12995 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12996 (init_windows_gdbarch_data): New function.
12997 (get_windows_gdbarch_data): New function.
12998 (windows_get_siginfo_type): New function.
12999 (windows_init_abi): Register windows_get_siginfo_type.
13000 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13001
6751ebae
TT
130022020-02-08 Tom Tromey <tom@tromey.com>
13003
13004 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13005 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13006 <keep>: Declare method.
13007 <m_keep>: Remove member.
13008 <~cutu_reader>: Remove.
13009 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13010 (cutu_reader::cutu_reader): Update.
13011 (cutu_reader::keep): Rename from ~cutu_reader.
13012 (process_psymtab_comp_unit, build_type_psymtabs_1)
13013 (process_skeletonless_type_unit, load_partial_comp_unit)
13014 (load_full_comp_unit, dwarf2_read_addr_index)
13015 (read_signatured_type): Update.
13016
135f5437
TT
130172020-02-08 Tom Tromey <tom@tromey.com>
13018
13019 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13020 "want_partial_unit" parameter.
13021 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13022 Inline check for DW_TAG_partial_unit.
13023 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13024
9f66ff1c
TT
130252020-02-08 Tom Tromey <tom@tromey.com>
13026
13027 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13028 read.c.
13029 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13030 read.c.
13031
c8a7a66f
TT
130322020-02-08 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/read.c (read_address): Move to comp-unit.c.
13035 (dwarf2_rnglists_process, dwarf2_ranges_process)
13036 (read_attribute_value, dwarf_decode_lines_1)
13037 (var_decode_location, decode_locdesc): Update.
13038 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13039 read.c. Remove "cu" parameter.
13040 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13041 method.
13042
8266302d
TT
130432020-02-08 Tom Tromey <tom@tromey.com>
13044
13045 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13046 (read_indirect_line_string): Update.
13047 * dwarf2/comp-unit.c (read_offset): Remove.
13048 (read_comp_unit_head): Update.
13049 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13050 method.
13051 (read_offset): Don't declare.
13052
4057dfde
TT
130532020-02-08 Tom Tromey <tom@tromey.com>
13054
13055 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13056 * dwarf2/read.c (struct comp_unit_head): Move to
13057 dwarf2/comp-unit.h.
13058 (enum class rcuh_kind): Move to comp-unit.h.
13059 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13060 (read_comp_unit_head, error_check_comp_unit_head)
13061 (read_and_check_comp_unit_head): Move to comp-unit.c.
13062 (read_offset, dwarf_unit_type_name): Likewise.
13063 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13064 (cutu_reader::cutu_reader, read_call_site_scope)
13065 (find_partial_die, follow_die_offset): Update.
13066 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13067
24aa364d
TT
130682020-02-08 Tom Tromey <tom@tromey.com>
13069
13070 * dwarf2/read.c (read_offset_1): Move to leb.c.
13071 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13072 (dwarf_decode_macro_bytes): Update.
13073 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13074 * dwarf2/leb.h (read_offset): Declare.
13075
2c7d5afc
TT
130762020-02-08 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2/read.c (dwarf2_section_size): Remove.
13079 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13080 Update.
13081 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13082
4075cb26
TT
130832020-02-08 Tom Tromey <tom@tromey.com>
13084
13085 * dwarf2/read.c (read_initial_length): Move to leb.c.
13086 * dwarf2/leb.h (read_initial_length): Declare.
13087 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13088 handle_nonstd parameter.
13089 * dwarf2/frame.c (read_initial_length): Remove.
13090 (decode_frame_entry_1): Update.
13091
09ba997f
TT
130922020-02-08 Tom Tromey <tom@tromey.com>
13093
13094 * dwarf2/loc.c (dwarf2_find_location_expression)
13095 (dwarf_evaluate_loc_desc::get_tls_address)
13096 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13097 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13098 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13099 (dwarf2_compile_property_to_c)
13100 (dwarf2_loc_desc_get_symbol_read_needs)
13101 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13102 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13103 (loclist_describe_location, loclist_tracepoint_var_ref)
13104 (loclist_generate_c_location): Update.
13105 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13106 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13107 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13108 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13109 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13110 (dwarf2_per_cu_data::addr_size)
13111 (dwarf2_per_cu_data::ref_addr_size)
13112 (dwarf2_per_cu_data::text_offset)
13113 (dwarf2_per_cu_data::addr_type): Now methods.
13114 (per_cu_header_read_in): Make per_cu "const".
13115 (dwarf2_version): Remove.
13116 (dwarf2_per_cu_data::int_type): Now a method.
13117 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13118 (set_die_type, read_array_type, read_subrange_index_type)
13119 (read_tag_string_type, read_subrange_type): Update.
13120 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13121 offset_size, ref_addr_size, text_offset, addr_type, version,
13122 objfile, int_type, addr_sized_int_type>: Declare methods.
13123
96c738c0
TT
131242020-02-08 Tom Tromey <tom@tromey.com>
13125
13126 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13127 Move earlier.
13128
8fdd972c
TT
131292020-02-08 Tom Tromey <tom@tromey.com>
13130
13131 * dwarf2/read.h (dwarf_line_debug): Declare.
13132 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13133 * dwarf2/read.c: Move line_header code to new files.
13134 (dwarf_line_debug): No longer static.
13135 * dwarf2/line-header.c: New file.
13136 * dwarf2/line-header.h: New file.
13137
03075812
TT
131382020-02-08 Tom Tromey <tom@tromey.com>
13139
13140 * dwarf2/read.c (struct line_header) <file_full_name,
13141 file_file_name>: Return unique_xmalloc_ptr.
13142 (line_header::file_file_name): Update.
13143 (line_header::file_full_name): Update.
13144 (dw2_get_file_names_reader): Update.
13145 (macro_start_file): Update.
13146
bb822404
TT
131472020-02-08 Tom Tromey <tom@tromey.com>
13148
13149 * dwarf2/read.c (struct line_header) <file_full_name,
13150 file_file_name>: Declare methods.
13151 (dw2_get_file_names_reader): Update.
13152 (file_file_name): Now a method.
13153 (file_full_name): Likewise.
13154 (macro_start_file): Update.
13155
009b64fc
TT
131562020-02-08 Tom Tromey <tom@tromey.com>
13157
13158 * dwarf2/read.c (dwarf_always_disassemble)
13159 (show_dwarf_always_disassemble): Move to loc.c.
13160 (_initialize_dwarf2_read): Move "always-disassemble" registration
13161 to loc.c.
13162 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13163 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13164 static.
13165 (show_dwarf_always_disassemble): Move from read.c.
13166 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13167
5895093f
TT
131682020-02-08 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13171 (create_quick_file_names_table): Return htab_up.
13172 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13173 Update.
13174 * dwarf2/read.h (struct dwarf2_per_objfile)
13175 <quick_file_names_table>: Now htab_up.
13176
b3b32279
TT
131772020-02-08 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13180
1d33d811
TT
131812020-02-08 Tom Tromey <tom@tromey.com>
13182
13183 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13184 Rewrite.
13185 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13186 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13187 (abbrev_table::abbrev_table): No longer inline.
13188 (ABBREV_HASH_SIZE): Remove.
13189 (abbrev_table::m_abbrevs): Now an htab_up.
13190
86de1d91
TT
131912020-02-08 Tom Tromey <tom@tromey.com>
13192
13193 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13194 (cutu_reader): Update.
13195 (build_type_psymtabs_1): Update.
13196 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13197 (abbrev_table::alloc_abbrev): Update.
13198 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13199 (abbrev_table::read): New static method, renamed from
13200 abbrev_table_read_table.
13201 (abbrev_table::alloc_abbrev)
13202 (abbrev_table::add_abbrev): Now private.
13203 (abbrev_table::abbrev_table): Now private.
13204 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13205
0335378b
TT
132062020-02-08 Tom Tromey <tom@tromey.com>
13207
13208 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13209 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13210 htab_up.
13211
48b490f2
TT
132122020-02-08 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13215 htab_up.
13216 (lookup_dwo_unit_in_dwp): Update.
13217 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13218 on obstack.
13219
bc68fb19
TT
132202020-02-08 Tom Tromey <tom@tromey.com>
13221
13222 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13223 obstack.
13224
d15acc42
TT
132252020-02-08 Tom Tromey <tom@tromey.com>
13226
13227 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13228 line_header_hash.
13229 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13230 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13231 Change type to htab_up.
13232
eaa5fa8b
TT
132332020-02-08 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13236 htab_up. Don't allocate on obstack.
13237 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13238 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13239 Change type to htab_up.
13240
b0b6a987
TT
132412020-02-08 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13244 Change type to htab_up.
13245 * dwarf2/read.c (create_signatured_type_table_from_index)
13246 (create_signatured_type_table_from_debug_names)
13247 (create_all_type_units, add_type_unit)
13248 (lookup_dwo_signatured_type, lookup_signatured_type)
13249 (process_skeletonless_type_unit): Update.
13250 (create_debug_type_hash_table, create_debug_types_hash_table):
13251 Change type of types_htab.
13252 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13253 htab_up. Don't allocate on obstack.
13254 (create_cus_hash_table): Change type of cus_htab parameter.
13255 (struct dwo_file) <cus, tus>: Now htab_up.
13256 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13257 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13258 (queue_and_load_all_dwo_tus): Update.
13259 * dwarf2/index-write.c (write_gdbindex): Update.
13260 (write_debug_names): Update.
13261
39856def
TT
132622020-02-08 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13265 dwarf2/read.c. Remove "next" member. Add constructor ntad
13266 destructor.
13267 (struct dwarf2_per_objfile) <queue>: New member.
13268 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13269 dwarf2/read.h.
13270 (dwarf2_queue, dwarf2_queue_tail): Remove.
13271 (class dwarf2_queue_guard): Add parameter to constructor. Use
13272 DISABLE_COPY_AND_ASSIGN.
13273 <m_per_objfile>: New member.
13274 <~dwarf2_queue_guard>: Rewrite.
13275 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13276 Update.
13277 (~dwarf2_queue_item): New.
13278
3e225074
TT
132792020-02-08 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/read.c (struct die_info) <has_children>: New member.
13282 (dw2_get_file_names_reader): Remove has_children.
13283 (dw2_get_file_names): Update.
13284 (read_cutu_die_from_dwo): Remove has_children.
13285 (cutu_reader::init_tu_and_read_dwo_dies)
13286 (cutu_reader::cutu_reader): Update.
13287 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13288 Remove has_children.
13289 (build_type_psymtabs_1, process_skeletonless_type_unit)
13290 (load_partial_comp_unit, load_full_comp_unit): Update.
13291 (create_dwo_cu_reader): Remove has_children.
13292 (create_cus_hash_table, read_die_and_children): Update.
13293 (read_full_die_1,read_full_die): Remove has_children.
13294 (read_signatured_type): Update.
13295 (class cutu_reader) <has_children>: Remove.
13296
82ca8957
TT
132972020-02-08 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2/expr.c: Rename from dwarf2expr.c.
13300 * dwarf2/expr.h: Rename from dwarf2expr.h.
13301 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13302 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13303 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13304 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13305 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13306 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13307 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13308 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13309 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13310 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13311 * dwarf2/loc.c: Rename from dwarf2loc.c.
13312 * dwarf2/loc.h: Rename from dwarf2loc.h.
13313 * dwarf2/read.c: Rename from dwarf2read.c.
13314 * dwarf2/read.h: Rename from dwarf2read.h.
13315 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13316 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13317 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13318 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13319 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13320 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13321 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13322 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13323 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13324 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13325 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13326 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13327 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13328 Update.
13329 * Makefile.in (COMMON_SFILES): Update.
13330 (HFILES_NO_SRCDIR): Update.
13331
9e35d499
TT
133322020-02-08 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13335 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13336
1eba2311
TT
133372020-02-08 Tom Tromey <tom@tromey.com>
13338
13339 * dwarf2read.h (struct die_info): Don't declare.
13340
e41c2da2
TT
133412020-02-08 Tom Tromey <tom@tromey.com>
13342
13343 * dwarf2read.h (die_info_ptr): Remove typedef.
13344
4fc6c0d5
TT
133452020-02-08 Tom Tromey <tom@tromey.com>
13346
13347 * dwarf2read.c (read_call_site_scope)
13348 (handle_data_member_location, dwarf2_add_member_fn)
13349 (mark_common_block_symbol_computed, read_common_block)
13350 (attr_to_dynamic_prop, partial_die_info::read)
13351 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13352 (dwarf2_symbol_mark_computed, set_die_type): Update.
13353 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13354 method.
13355 (attr_form_is_block): Don't declare.
13356 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13357
cd6c91b4
TT
133582020-02-08 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2read.c (dwarf2_find_base_address, )
13361 (read_call_site_scope, rust_containing_type)
13362 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13363 (handle_data_member_location, dwarf2_add_member_fn)
13364 (get_alignment, read_structure_type, process_structure_scope)
13365 (mark_common_block_symbol_computed, read_common_block)
13366 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13367 (partial_die_info::read, read_attribute_value, new_symbol)
13368 (lookup_die_type, dwarf2_get_ref_die_offset)
13369 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13370 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13371 (dwarf2_symbol_mark_computed): Update.
13372 * dwarf2/attribute.h (struct attribute) <value_as_address,
13373 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13374 methods.
13375 (value_as_address, attr_form_is_section_offset)
13376 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13377 * dwarf2/attribute.c (attribute::value_as_address)
13378 (attribute::form_is_section_offset, attribute::form_is_constant)
13379 (attribute::form_is_ref): Now methods.
13380
162dce55
TT
133812020-02-08 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2read.c (struct attribute, DW_STRING)
13384 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13385 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13386 (attr_form_is_block, attr_form_is_section_offset)
13387 (attr_form_is_constant, attr_form_is_ref): Move.
13388 * dwarf2/attribute.h: New file.
13389 * dwarf2/attribute.c: New file, from dwarf2read.c.
13390 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13391
3054dd54
TT
133922020-02-08 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13395 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13396 Move.
13397 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13398 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13399 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13400 abbrev.c.
13401 * dwarf2/abbrev.h: New file.
13402 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13403 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13404
96b79293
TT
134052020-02-08 Tom Tromey <tom@tromey.com>
13406
13407 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13408 (dwarf2_section_size, dwarf2_get_section_info)
13409 (create_signatured_type_table_from_debug_names)
13410 (create_addrmap_from_aranges, read_debug_names_from_section)
13411 (get_gdb_index_contents_from_section, read_comp_unit_head)
13412 (error_check_comp_unit_head, read_abbrev_offset)
13413 (create_debug_type_hash_table, init_cu_die_reader)
13414 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13415 (read_comp_units_from_section, create_cus_hash_table)
13416 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13417 (create_dwp_v2_section, dwarf2_rnglists_process)
13418 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13419 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13420 (read_indirect_string_from_dwz, read_addr_index_1)
13421 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13422 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13423 (fill_in_loclist_baton): Update.
13424 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13425 get_containing_section, get_bfd_owner, get_bfd_section,
13426 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13427 (dwarf2_read_section, get_section_name, get_section_file_name)
13428 (get_containing_section, get_section_bfd_owner)
13429 (get_section_bfd_section, get_section_name, get_section_file_name)
13430 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13431 declare.
13432 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13433 (dwarf2_section_info::get_bfd_owner)
13434 (dwarf2_section_info::get_bfd_section)
13435 (dwarf2_section_info::get_name)
13436 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13437 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13438 (dwarf2_section_info::read): Now methods.
13439 * dwarf-index-write.c (class debug_names): Update.
13440
2c86cff9
TT
134412020-02-08 Tom Tromey <tom@tromey.com>
13442
13443 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13444 Move to dwarf2/section.h.
13445 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13446 (get_section_bfd_section, get_section_name)
13447 (get_section_file_name, get_section_id, get_section_flags)
13448 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13449 dwarf2/section.c.
13450 * dwarf2/section.h: New file.
13451 * dwarf2/section.c: New file, from dwarf2read.c.
13452 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13453
f4382c45
TT
134542020-02-08 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13457 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13458 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13459 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13460 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13461 * dwarf2/leb.h: New file, from dwarf2read.c.
13462 * dwarf2/leb.c: New file, from dwarf2read.c.
13463 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13464 Remove.
13465 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13466 (COMMON_SFILES): Add dwarf2/leb.c.
13467
01840b7a
JB
134682020-02-08 Joel Brobecker <brobecker@adacore.com>
13469
13470 GDB 9.1 released.
13471
dfcb27e4
IB
134722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13473
13474 PR gdb/25190:
aac66a4c
SM
13475 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13476 * gdb/remote.c (remote_console_output): Update.
13477 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13478 (ui_file_puts): ...this.
13479 * gdb/ui-file.h (ui_file_puts): Add declaration.
13480 * gdb/utils.c (emit_style_escape): Update.
13481 (flush_wrap_buffer): Update.
13482 (fputs_maybe_filtered): Update.
13483 (fputs_unfiltered): Add function.
dfcb27e4 13484
faa17681
IB
134852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13486
aac66a4c
SM
13487 * gdb/event-loop.c (gdb_wait_for_event): Update.
13488 * gdb/printcmd.c (printf_command): Update.
13489 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13490 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13491 (gdb_os_flush_stderr): Update.
13492 * gdb/remote.c (remote_console_output): Update.
13493 * gdb/ui-file.c (gdb_flush): Rename to...
13494 (ui_file_flush): ...this.
13495 (stderr_file::write): Update.
13496 (stderr_file::puts): Update.
13497 * gdb/ui-file.h (gdb_flush): Rename to...
13498 (ui_file_flush): ...this.
13499 * gdb/utils.c (gdb_flush): Add function.
13500 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13501
5abbbe1d
TT
135022020-02-07 Tom Tromey <tromey@adacore.com>
13503
13504 PR breakpoints/24915:
13505 * source.c (find_and_open_source): Do not check basenames_may_differ.
13506
919adfe8
TT
135072020-02-07 Tom Tromey <tom@tromey.com>
13508
13509 * README: Update gdbserver documentation.
13510 * gdbserver: Move to top level.
13511 * configure.tgt (build_gdbserver): Remove.
13512 * configure.ac: Remove --enable-gdbserver.
13513 * configure: Rebuild.
13514 * Makefile.in (distclean): Don't mention gdbserver.
13515
1d5d29e7
SV
135162020-02-06 Shahab Vahedi <shahab@synopsys.com>
13517
13518 * source-cache.c (source_cache::ensure): Surround
13519 get_plain_source_lines with a try/catch.
13520 (source_cache::get_line_charpos): Get rid of try/catch
13521 and only check for the return value of "ensure".
13522 * tui/tui-source.c (tui_source_window::set_contents):
13523 Simplify "nlines" calculation.
13524
6eb1129c
SV
135252020-02-06 Shahab Vahedi <shahab@synopsys.com>
13526
13527 * MAINTAINERS (Write After Approval): Add myself.
13528
c6a42d11
CB
135292020-02-05 Christian Biesinger <cbiesinger@google.com>
13530
13531 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13532 function call.
13533
c8ecdda6
CB
135342020-02-05 Christian Biesinger <cbiesinger@google.com>
13535
13536 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13537
f6480e70
MR
135382020-02-05 Maciej W. Rozycki <macro@wdc.com>
13539
13540 * nat/riscv-linux-tdesc.h: New file.
13541 * nat/riscv-linux-tdesc.c: New file, taking code from...
13542 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13543 ... here.
13544 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13545 NATDEPFILES.
13546
dcc9fbc6
AB
135472020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13550 we don't set the fake simulator ptid to the null_ptid.
13551
719546c4
SM
135522020-02-03 Simon Marchi <simon.marchi@efficios.com>
13553
13554 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13555 * gdbthread.h (class thread_info) <resumed>: Likewise.
13556 * infrun.c (resume_1): Likewise.
13557 (proceed): Likewise.
13558 (infrun_thread_stop_requested): Likewise.
13559 (stop_all_threads): Likewise.
13560 (handle_inferior_event): Likewise.
13561 (restart_threads): Likewise.
13562 (finish_step_over): Likewise.
13563 (keep_going_stepped_thread): Likewise.
13564 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13565 (linux_handle_extended_wait): Likewise.
13566 * record-btrace.c (get_thread_current_frame_id): Likewise.
13567 * record-full.c (record_full_wait_1): Likewise.
13568 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13569 * target.c (target_resume): Likewise.
13570 * thread.c (set_running_thread): Likewise.
13571
e409c542
AKS
135722020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13573
13574 * f-valprint.c (f77_print_array_1): Changed datatype of index
13575 variable to LONGEST from int to enable it to contain bound
13576 values correctly.
13577
ee98c0da
MR
135782020-02-03 Maciej W. Rozycki <macro@wdc.com>
13579
13580 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13581 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13582 offsets according to FLEN determined.
13583 (riscv_linux_nat_target::read_description): Determine FLEN
13584 dynamically.
13585 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13586 according to FLEN determined.
13587 (riscv_linux_nat_target::store_registers): Likewise.
13588
aa66aac4
SV
135892020-02-01 Shahab Vahedi <shahab@synopsys.com>
13590
13591 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13592 when reg->group is empty and reggroup is not.
13593
fd9faca8
TT
135942020-01-31 Tom Tromey <tromey@adacore.com>
13595
13596 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13597 Call beneath target's mourn_inferior after unpushing.
13598
42330a68
AB
135992020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13600
13601 PR tui/9765
13602 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13603 have enough lines to fill the screen, still return the lowest
13604 address we found.
13605
7a27a45b
AB
136062020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13607
13608 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13609 '-', '<', and '>' commands.
13610
c47f70e2
PA
136112020-01-29 Pedro Alves <palves@redhat.com>
13612 Sergio Durigan Junior <sergiodj@redhat.com>
13613
13614 * infcmd.c (construct_inferior_arguments): Assert that
13615 'argc' is greater than 0.
13616
5133a315
LM
136172020-01-29 Luis Machado <luis.machado@linaro.org>
13618
13619 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13620 (BRK_INSN_MASK): Define to 0xd4200000.
13621 (aarch64_program_breakpoint_here_p): New function.
13622 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13623 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13624 breakpoint.c.
13625 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13626 breakpoint.h
13627 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13628 call gdbarch_program_breakpoint_here_p.
13629 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13630 default_program_breakpoint_here_p, changed return type to bool and
13631 simplified.
13632 * breakpoint.h (program_breakpoint_here): Moved prototype to
13633 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13634 return type to bool.
13635 * gdbarch.c: Regenerate.
13636 * gdbarch.h: Regenerate.
13637 * gdbarch.sh (program_breakpoint_here_p): New method.
13638 * infrun.c (handle_signal_stop): Call
13639 gdbarch_program_breakpoint_here_p.
13640
168f8c6b
TT
136412020-01-26 Tom Tromey <tom@tromey.com>
13642
13643 * ctfread.c (struct ctf_fp_info): Reindent.
13644 (_initialize_ctfread): Remove.
13645
128a391f
TT
136462020-01-26 Tom Tromey <tom@tromey.com>
13647
13648 * psymtab.c (partial_map_expand_apply)
13649 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13650 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13651 (psym_print_stats, psym_expand_symtabs_for_function)
13652 (psym_map_symbol_filenames, psym_map_matching_symbols)
13653 (psym_expand_symtabs_matching)
13654 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13655 (maintenance_check_psymtabs): Use new methods.
13656 * psympriv.h (struct partial_symtab) <readin_p,
13657 get_compunit_symtab>: New methods.
13658 <readin, compunit_symtab>: Remove members.
13659 (struct standard_psymtab): New.
13660 (struct legacy_psymtab): Derive from standard_psymtab.
13661 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13662 standard_psymtab.
13663 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13664
0494dbec
TT
136652020-01-26 Tom Tromey <tom@tromey.com>
13666
13667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13668 read_dependencies. Add assert.
13669 * psymtab.c (partial_symtab::read_dependencies): New method.
13670 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13671 method.
13672 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13673 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13674 read_dependencies.
13675 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13676 Add assert.
13677
8566b89b
TT
136782020-01-26 Tom Tromey <tom@tromey.com>
13679
13680 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13681 Call expand_psymtab.
13682 (xcoff_read_symtab): Call expand_psymtab.
13683 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13684 legacy_expand_psymtab.
13685 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13686 method.
13687 (struct legacy_psymtab) <expand_psymtab>: Implement.
13688 <legacy_expand_psymtab>: New member.
13689 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13690 (parse_partial_symbols): Set legacy_expand_psymtab.
13691 (psymtab_to_symtab_1): Change argument order. Call
13692 expand_psymtab.
13693 (new_psymtab): Set legacy_expand_psymtab.
13694 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13695 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13696 expand_psymtab.
13697 (dwarf2_psymtab::expand_psymtab): Rename from
13698 psymtab_to_symtab_1. Call expand_psymtab.
13699 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13700 (dbx_end_psymtab): Likewise.
13701 (dbx_psymtab_to_symtab_1): Change argument order. Call
13702 expand_psymtab.
13703 (dbx_read_symtab): Call expand_psymtab.
13704 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13705 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13706 (ctf_psymtab::read_symtab): Call expand_psymtab.
13707
077cbab2
TT
137082020-01-26 Tom Tromey <tom@tromey.com>
13709
13710 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13711 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13712 messages.
13713 * mdebugread.c (mdebug_read_symtab): Remove prints.
13714 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13715 assert.
13716 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13717
891813be
TT
137182020-01-26 Tom Tromey <tom@tromey.com>
13719
13720 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13721 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13722 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13723 legacy_symtab.
13724 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13725 * psymtab.c (psymtab_to_symtab): Call method.
13726 (dump_psymtab): Update.
13727 * psympriv.h (struct partial_symtab): Add virtual destructor.
13728 <read_symtab>: New method.
13729 (struct legacy_symtab): New.
13730 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13731 (struct pst_map) <pst>: Now a legacy_psymtab.
13732 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13733 (new_psymtab): Use legacy_psymtab.
13734 * dwarf2read.h (struct dwarf2_psymtab): New.
13735 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13736 * dwarf2read.c (dwarf2_create_include_psymtab)
13737 (dwarf2_build_include_psymtabs, create_type_unit_group)
13738 (create_partial_symtab, process_psymtab_comp_unit_reader)
13739 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13740 (set_partial_user): Use dwarf2_psymtab.
13741 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13742 (psymtab_to_symtab_1, process_full_comp_unit)
13743 (process_full_type_unit, dwarf2_ranges_read)
13744 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13745 (dwarf_decode_lines): Use dwarf2_psymtab.
13746 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13747 (add_address_entry_worker, write_one_signatured_type)
13748 (recursively_count_psymbols, recursively_write_psymbols)
13749 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13750 (write_debug_names): Likewise.
13751 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13752 <pst>: Now a legacy_psymtab.
13753 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13754 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13755 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13756 * ctfread.c (struct ctf_psymtab): New.
13757 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13758 ctf_psymtab.
13759 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13760 (create_partial_symtab): Return a ctf_psymtab.
13761 (scan_partial_symbols): Update.
13762
c3693a1d
TT
137632020-01-26 Tom Tromey <tom@tromey.com>
13764
13765 * xcoffread.c (xcoff_start_psymtab): Use new.
13766 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13767 renamed from start_psymtab_common.
13768 * psympriv.h (struct partial_symtab): Add new constructor.
13769 (start_psymtab_common): Don't declare.
13770 * mdebugread.c (parse_partial_symbols): Use new.
13771 * dwarf2read.c (create_partial_symtab): Use new.
13772 * dbxread.c (start_psymtab): Use new.
13773 * ctfread.c (create_partial_symtab): Use new.
13774
32caafd0
TT
137752020-01-26 Tom Tromey <tom@tromey.com>
13776
13777 * xcoffread.c (xcoff_end_psymtab): Use new.
13778 * psymtab.c (start_psymtab_common): Use new.
13779 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13780 Update.
13781 * psympriv.h (struct partial_symtab): Add parameters to
13782 constructor. Don't inline.
13783 (allocate_psymtab): Don't declare.
13784 * mdebugread.c (new_psymtab): Use new.
13785 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13786 * dbxread.c (dbx_end_psymtab): Use new.
13787
abaa2f23
TT
137882020-01-26 Tom Tromey <tom@tromey.com>
13789
13790 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13791 allocate_psymtab. Update documentation.
13792 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13793 allocate_psymtab. Do not use new.
13794 (allocate_psymtab): Use new. Update.
13795
6d94535f
TT
137962020-01-26 Tom Tromey <tom@tromey.com>
13797
13798 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13799 * psymtab.c (psym_print_stats): Update.
13800 * psympriv.h (struct partial_symtab) <readin,
13801 psymtabs_addrmap_supported, anonymous>: Now bool.
13802 * mdebugread.c (psymtab_to_symtab_1): Update.
13803 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13804 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13805 (process_full_comp_unit, process_full_type_unit): Update.
13806 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13807 * ctfread.c (psymtab_to_symtab): Update.
13808
6f17252b
TT
138092020-01-26 Tom Tromey <tom@tromey.com>
13810
13811 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13812 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13813 * psymtab.c (psymtab_storage): Delete psymtabs.
13814 (psymtab_storage::allocate_psymtab): Use new.
13815 (psymtab_storage::discard_psymtab): Use delete.
13816 * psympriv.h (struct partial_symtab): Add constructor and
13817 initializers.
13818
f6f1cebc
TT
138192020-01-26 Tom Tromey <tom@tromey.com>
13820
13821 * machoread.c: Do not include psympriv.h.
13822
e47e48f6
PW
138232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13824
13825 * NEWS: Mention the new option and the set/show commands.
13826
a2fedca9
PW
138272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13828
13829 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13830 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13831 (validate_exec_file): New variables, enums, functions.
13832 (exec_file_locate_attach, print_section_info): Style the filenames.
13833 (_initialize_exec): Install show_exec_file_mismatch_command and
13834 set_exec_file_mismatch_command.
13835 * gdbcore.h (validate_exec_file): Declare.
13836 * infcmd.c (attach_command): Call validate_exec_file.
13837 * remote.c ( remote_target::remote_add_inferior): Likewise.
13838
7ffa82e1
AB
138392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13840
13841 * frame.c (find_frame_sal): Move call to get_next_frame into more
13842 inner scope.
13843 * inline-frame.c (inilne_state) <inline_state>: Update argument
13844 types.
13845 (inilne_state) <skipped_symbol>: Rename to...
13846 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13847 (skip_inline_frames): Build vector of skipped symbols and use this
13848 to reate the inline_state.
13849 (inline_skipped_symbol): Add a comment and some assertions, fetch
13850 skipped symbol from the list.
13851
3d92a3e3
AB
138522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13853
13854 * buildsym.c (lte_is_less_than): Delete.
13855 (buildsym_compunit::end_symtab_with_blockvector): Create local
13856 lambda function to sort line table entries, and use
13857 std::stable_sort instead of std::sort.
13858 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13859 markers when looking for a previous line.
13860
94a72be7
AB
138612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13862
13863 * dwarf2read.c (lnp_state_machine::record_line): Include
13864 end_sequence parameter in debug print out. Record the line if we
13865 are at an end_sequence marker even if it's not the start of a
13866 statement.
13867 * symmisc.c (maintenance_print_one_line_table): Print end of
13868 sequence markers with 'END' not '0'.
13869
53af73bf
PA
138702020-01-24 Pedro Alves <palves@redhat.com>
13871
13872 PR gdb/25410
13873 * thread.c (scoped_restore_current_thread::restore): Use
13874 switch_to_inferior_no_thread.
13875 * exec.c: Include "progspace-and-thread.h".
13876 (add_target_sections, remove_target_sections):
13877 scoped_restore_current_pspace_and_thread instead of
13878 scoped_restore_current_thread.
13879 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13880 and aspace to the inferior before calling clone_program_space.
13881 Remove stale comment.
13882
3050c6f4
CB
138832020-01-24 Christian Biesinger <cbiesinger@google.com>
13884
13885 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13886 (arm_netbsd_nat_target::fetch_registers): ...this.
13887 (arm_nbsd_nat_target::store_registers): Rename to...
13888 (arm_netbsd_nat_target::store_registers): ...this.
13889
73685c7e
CB
138902020-01-24 Christian Biesinger <cbiesinger@google.com>
13891
13892 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13893 register_t.
13894
89203d40
CB
138952020-01-24 Christian Biesinger <cbiesinger@google.com>
13896
13897 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13898 Update comment.
13899 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13900 Likewise.
13901 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13902 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13903 the correct replacement (iterate_over_regset_sections).
13904 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13905 Update comment.
13906
1ba1ac88
AB
139072020-01-24 Graham Markall <graham.markall@embecosm.com>
13908
13909 PR gdb/23718
13910 * gdb/python/python.c (execute_gdb_command): Call
13911 async_enable_stdin in catch block.
13912
f3364a6d
AB
139132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13914
13915 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13916 SWITCH_THRU_ALL_UIS.
13917
733d0a67
AB
139182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13919
13920 PR tui/9765
13921 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13922 comment, add extra parameter, and update to store previous symbol
13923 when appropriate.
13924 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13925 add extra parameter.
13926 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13927 remove unneeded parameter, add try/catch around gdb_print_insn,
13928 rewrite to add items to asm_lines vector.
13929 (tui_find_backward_disassembly_start_address): New function.
13930 (tui_find_disassembly_address): Updated throughout.
13931 (tui_disasm_window::set_contents): Update for changes to
13932 tui_disassemble.
13933 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13934 number of lines to scroll.
13935
b3b3bada
SM
139362020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13937
13938 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13939 (SECT_OFF_DATA): Likewise.
13940 (SECT_OFF_RODATA): Likewise.
13941 (SECT_OFF_TEXT): Likewise.
13942 (SECT_OFF_BSS): Likewise.
13943 (struct objfile) <text_section_offset, data_section_offset>: New
13944 methods.
13945 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13946 objfile::text_section_offset.
13947 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13948 * coffread.c (coff_symtab_read): Likewise.
13949 (enter_linenos): Likewise.
13950 (process_coff_symbol): Likewise.
13951 * ctfread.c (get_objfile_text_range): Likewise.
13952 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13953 Use objfile::data_section_offset.
13954 * dwarf2-frame.c (execute_cfa_program): Use
13955 objfile::text_section_offset.
13956 (dwarf2_frame_find_fde): Likewise.
13957 * dwarf2read.c (create_addrmap_from_index): Likewise.
13958 (create_addrmap_from_aranges): Likewise.
13959 (dw2_find_pc_sect_compunit_symtab): Likewise.
13960 (process_psymtab_comp_unit_reader): Likewise.
13961 (add_partial_symbol): Likewise.
13962 (add_partial_subprogram): Likewise.
13963 (process_full_comp_unit): Likewise.
13964 (read_file_scope): Likewise.
13965 (read_func_scope): Likewise.
13966 (read_lexical_block_scope): Likewise.
13967 (read_call_site_scope): Likewise.
13968 (dwarf2_rnglists_process): Likewise.
13969 (dwarf2_ranges_process): Likewise.
13970 (dwarf2_ranges_read): Likewise.
13971 (dwarf_decode_lines_1): Likewise.
13972 (new_symbol): Likewise.
13973 (dwarf2_fetch_die_loc_sect_off): Likewise.
13974 (dwarf2_per_cu_text_offset): Likewise.
13975 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13976 * hppa-tdep.c (read_unwind_info): Likewise.
13977 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13978 * psympriv.h (struct partial_symtab): Likewise.
13979 * psymtab.c (find_pc_sect_psymtab): Likewise.
13980 * solib-svr4.c (enable_break): Likewise.
13981 * stap-probe.c (relocate_address): Use
13982 objfile::data_section_offset.
13983 * xcoffread.c (enter_line_range): Use
13984 objfile::text_section_offset.
13985 (read_xcoff_symtab): Likewise.
13986
ab53f382
SM
139872020-01-23 Simon Marchi <simon.marchi@efficios.com>
13988
13989 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13990 declaration to narrower scopes.
13991
e7eee665
SM
139922020-01-23 Simon Marchi <simon.marchi@efficios.com>
13993
13994 * darwin-nat.h (struct darwin_exception_msg, enum
13995 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13996 Move up.
13997 (class darwin_nat_target) <wait_1, check_new_threads,
13998 decode_exception_message, decode_message, stop_inferior,
13999 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14000 * darwin-nat.c (darwin_check_new_threads): Rename to...
14001 (darwin_nat_target::check_new_threads): ... this.
14002 (darwin_suspend_inferior_it): Remove.
14003 (darwin_decode_exception_message): Rename to...
14004 (darwin_nat_target::decode_exception_message): ... this.
14005 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14006 (darwin_decode_message): Rename to...
14007 (darwin_nat_target::decode_message): ... this.
14008 (cancel_breakpoint): Rename to...
14009 (darwin_nat_target::cancel_breakpoint): ... this.
14010 (darwin_wait): Rename to...
14011 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14012 instead of iterate_over_inferiors.
14013 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14014 (darwin_stop_inferior): Rename to...
14015 (darwin_nat_target::stop_inferior): ... this.
14016 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14017 (darwin_init_thread_list): Rename to...
14018 (darwin_nat_target::init_thread_list): ... this.
14019 (darwin_ptrace_him): Rename to...
14020 (darwin_nat_target::ptrace_him): ... this.
14021 (darwin_nat_target::create_inferior): Pass lambda function to
14022 fork_inferior.
14023 (darwin_nat_target::detach): Call stop_inferior instead of
14024 darwin_stop_inferior.
14025 * fork-inferior.h (fork_inferior): Change init_trace_fun
14026 parameter to gdb::function_view.
14027 * fork-inferior.c (fork_inferior): Likewise.
14028
c162ed3e
HD
140292020-01-23 Hannes Domani <ssbssa@yahoo.de>
14030
14031 * i386-cygwin-tdep.c (core_process_module_section): Update.
14032 * windows-nat.c (struct lm_info_windows): Add text_offset.
14033 (windows_xfer_shared_libraries): Update.
14034 * windows-tdep.c (windows_xfer_shared_library):
14035 Add text_offset_cached argument.
14036 * windows-tdep.h (windows_xfer_shared_library): Update.
14037
a1237872
SM
140382020-01-21 Simon Marchi <simon.marchi@efficios.com>
14039
14040 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14041
b3ee6dd9
SM
140422020-01-21 Simon Marchi <simon.marchi@efficios.com>
14043
14044 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14045 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14046 replace with range-based for.
14047 (gdbsim_interrupt_inferior): Remove.
14048 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14049 with a range-based for. Inline code from
14050 gdbsim_interrupt_inferior.
14051
f9fac3c8
SM
140522020-01-21 Simon Marchi <simon.marchi@efficios.com>
14053
14054 * infrun.c (proceed): Fix indentation.
14055
f6474de9
TT
140562020-01-21 Tom Tromey <tromey@adacore.com>
14057
14058 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14059 * python/python.c (python_extension_ops): Update.
14060 (gdbpy_colorize): New function.
14061 * python/lib/gdb/__init__.py (colorize): New function.
14062 * extension.h (ext_lang_colorize): Declare.
14063 * extension.c (ext_lang_colorize): New function.
14064 * extension-priv.h (struct extension_language_ops) <colorize>: New
14065 member.
14066 * cli/cli-style.c (_initialize_cli_style): Update help text.
14067
f0c702d4
LM
140682020-01-21 Luis Machado <luis.machado@linaro.org>
14069
14070 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14071 <cond>: Change type to bool.
14072 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14073 (aarch64_displaced_step_cb): Likewise.
14074 (aarch64_displaced_step_tb): Likewise.
14075
1ab139e5
LM
140762020-01-21 Luis Machado <luis.machado@linaro.org>
14077
14078 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14079 output.
14080
0c271889
LM
140812020-01-21 Luis Machado <luis.machado@linaro.org>
14082
14083 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14084 <pc_adjust>: Adjust the documentation.
14085 (aarch64_displaced_step_fixup): Check if PC really moved before
14086 adjusting it.
14087
4d89c1c7
TT
140882020-01-19 Tom Tromey <tom@tromey.com>
14089
14090 * disasm.c (~gdb_disassembler): New destructor.
14091 (gdb_buffered_insn_length): Call disassemble_free_target.
14092 * disasm.h (class gdb_disassembler): Declare destructor. Use
14093 DISABLE_COPY_AND_ASSIGN.
14094
c0ab21c2
TT
140952020-01-19 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14098 (die_reader_func_ftype): Remove.
14099 (cutu_reader): New class.
14100 (dw2_get_file_names_reader): Remove "data" parameter.
14101 (dw2_get_file_names): Use cutu_reader.
14102 (create_debug_type_hash_table): Update.
14103 (read_cutu_die_from_dwo): Update comment.
14104 (lookup_dwo_unit): Add dwo_name parameter.
14105 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14106 die_reader_func_ftype and data parameters.
14107 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14108 Remove die_reader_func_ftype and data parameters.
14109 (~cutu_reader): New; from init_cutu_and_read_dies.
14110 (cutu_reader::cutu_reader): Rename from
14111 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14112 and data parameters.
14113 (init_cutu_and_read_dies_simple): Remove.
14114 (struct process_psymtab_comp_unit_data): Remove.
14115 (process_psymtab_comp_unit_reader): Remove data parameter; add
14116 want_partial_unit and pretend_language parameters.
14117 (process_psymtab_comp_unit): Use cutu_reader.
14118 (build_type_psymtabs_reader): Remove data parameter.
14119 (build_type_psymtabs_1): Use cutu_reader.
14120 (process_skeletonless_type_unit): Likewise.
14121 (load_partial_comp_unit_reader): Remove.
14122 (load_partial_comp_unit): Use cutu_reader.
14123 (load_full_comp_unit_reader): Remove.
14124 (load_full_comp_unit): Use cutu_reader.
14125 (struct create_dwo_cu_data): Remove.
14126 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14127 dwo_unit parameters.
14128 (create_cus_hash_table): Use cutu_reader.
14129 (struct dwarf2_read_addr_index_data): Remove.
14130 (dwarf2_read_addr_index_reader): Remove.
14131 (dwarf2_read_addr_index): Use cutu_reader.
14132 (read_signatured_type_reader): Remove.
14133 (read_signatured_type): Use cutu_reader.
14134
45bbae5c
TT
141352020-01-19 Tom Tromey <tom@tromey.com>
14136
14137 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14138 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14139 (tui_wrefresh): Declare.
14140 * tui/tui-wingeneral.c (suppress_output): New global.
14141 (tui_suppress_output, ~tui_suppress_output): New constructor and
14142 destructor.
14143 (tui_wrefresh): New function.
14144 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14145 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14146 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14147 method.
14148 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14149 tui_wrefresh.
14150 (tui_data_window::no_refresh): New method.
14151 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14152 (tui_reg_command): Use tui_suppress_output
14153 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14154 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14155 method.
14156 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14157
4f13c1c0
TT
141582020-01-19 Tom Tromey <tom@tromey.com>
14159
14160 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14161 Handle case where symtab is null.
14162
fa47e446
SM
141632020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14164
14165 * linux-fork.c (one_fork_p): Simplify.
14166
26f42329
SM
141672020-01-17 Simon Marchi <simon.marchi@efficios.com>
14168
14169 * top.c (struct qt_args): Remove.
14170 (kill_or_detach): Change return type to void, replace `void *`
14171 parameter with a proper one.
14172 (print_inferior_quit_action): Likewise.
14173 (quit_confirm): Use range-based for loop to iterate over inferiors.
14174 (quit_force): Likewise.
14175
a9ac81b1
SM
141762020-01-17 Simon Marchi <simon.marchi@efficios.com>
14177
14178 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14179 `void *` parameter with proper parameters.
14180 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14181 (print_one_inferior): Change return type to void, replace `void *`
14182 parameter with proper parameters.
14183 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14184 inferiors.
14185 (get_other_inferior): Remove.
14186 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14187 inferiors.
14188
788eca49
SM
141892020-01-17 Simon Marchi <simon.marchi@efficios.com>
14190
14191 * mi/mi-interp.c (report_initial_inferior): Remove.
14192 (mi_interp::init): Use range-based for to iterate over inferiors.
14193
d9bc85b6
SM
141942020-01-17 Simon Marchi <simon.marchi@efficios.com>
14195
14196 * python/py-inferior.c (build_inferior_list): Remove.
14197 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14198
40c94099
CB
141992020-01-16 Christian Biesinger <cbiesinger@google.com>
14200
14201 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14202 (btrace_stitch_trace): Likewise.
14203 * charset.c (intermediate_encoding): Likewise (vaild).
14204 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14205 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14206 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14207
e0cdfe3c
HD
142082020-01-16 Hannes Domani <ssbssa@yahoo.de>
14209
14210 * windows-tdep.c (windows_get_tlb_type):
14211 Add rtl_user_process_parameters type.
14212
790f1718 142132020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14214 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14215
14216 PR build/24805
14217 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14218 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14219 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14220 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14221 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14222 (ps_plog): Redeclare exported functions with default visibility.
14223
3112ed97
NA
142242020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14225
14226 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14227 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14228
8dc3273e
SM
142292020-01-15 Simon Marchi <simon.marchi@efficios.com>
14230
14231 * infcmd.c (post_create_inferior): Use get_thread_regcache
14232 instead of get_current_regcache.
14233
ff47f4f0
TT
142342020-01-14 Tom Tromey <tom@tromey.com>
14235
14236 PR symtab/12535:
14237 * python/python.c (gdbpy_decode_line): Treat empty string the same
14238 as no argument.
14239
975f45b7
TT
142402020-01-14 Tom Tromey <tom@tromey.com>
14241
14242 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14243
25e57356
TT
142442020-01-14 Tom Tromey <tom@tromey.com>
14245
14246 * nat/linux-btrace.c: Don't include <config.h>.
14247 * nat/linux-ptrace.c: Don't include <config.h>.
14248 * nat/x86-linux-dregs.c: Don't include <config.h>.
14249
05ea2a05
TT
142502020-01-14 Tom Tromey <tom@tromey.com>
14251
14252 * configure: Rebuild.
14253 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14254
01027315
TT
142552020-01-14 Tom Tromey <tom@tromey.com>
14256
14257 * nat/x86-linux-dregs.c: Include configh.h.
14258 * nat/linux-ptrace.c: Include configh.h.
14259 * nat/linux-btrace.c: Include configh.h.
14260 * defs.h: Include config.h, bfd.h.
14261 * configure.ac: Don't source common.host.
14262 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14263 * configure: Rebuild.
14264 * acinclude.m4: Update path.
14265 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14266 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14267 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14268 (CLIBS): Add LIBSUPPORT.
14269 (CDEPS): Likewise.
14270 (COMMON_SFILES): Remove gdbsupport files.
14271 (HFILES_NO_SRCDIR): Likewise.
14272 (stamp-version): Update path to create-version.sh.
14273 (ALLDEPFILES): Remove gdbsupport files.
14274
b2ceabe8
TT
142752020-01-14 Tom Tromey <tom@tromey.com>
14276
14277 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14278 USE_WIN32API when needed.
14279 * configure.ac (USE_WIN32API): Don't define.
14280 (WIN32LIBS): Use WIN32APILIBS.
14281 * configure: Rebuild.
14282
25c51f71
TT
142832020-01-14 Tom Tromey <tom@tromey.com>
14284
14285 * configure: Rebuild.
14286 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14287
717c684d
BE
142882020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14289
14290 * skip.c (skip_function_command): Make skip w/o arguments use the
14291 name of the inlined function if pc is inside any inlined function.
14292
7da6a5b9
LM
142932020-01-14 Luis Machado <luis.machado@linaro.org>
14294
14295 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14296 * infrun.c (resume_1): Likewise.
14297 (handle_inferior_event): Remove stale comment.
14298 * linux-nat.c (linux_nat_target::resume): Update comments.
14299 (save_stop_reason): Likewise.
14300 (linux_nat_filter_event): Likewise.
14301 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14302
44e4c775
AB
143032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14304
14305 * elfread.c (record_minimal_symbol): Set section index to 0 for
14306 non-allocatable sections.
14307
18a8505e
AT
14308
143092020-01-13 Ali Tamur <tamur@google.com>
14310
14311 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14312 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14313 to gdb::optional. Update comments.
14314 (dwo_file): Update comments.
14315 (read_attribute): Update API to take an additional out parameter,
14316 need_reprocess. This is used to mark attributes that need other
14317 attributes (e.g. str_offsets_base) for correct computation which may not
14318 have been read yet.
14319 (read_attribute_reprocess): New function declaration.
14320 (read_addr_index): Likewise.
14321 (read_dwo_str_index): Likewise.
14322 (read_stub_str_index): Likewise.
14323 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14324 (lookup_addr_base): New function definition.
14325 (lookup_ranges_base): Likewise.
14326 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14327 lookup_ranges_base.
14328 (init_cutu_and_read_dies): Update comments.
14329 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14330 unit. This is used to inherit parent's str_offsets_base and addr_base.
14331 Update comments.
14332 (init_cutu_and_read_dies_simple): Reflect API changes.
14333 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14334 (create_cus_hash_table): Change API to take parent compile unit.
14335 Reflect API changes.
14336 (open_and_init_dwo_file): Reflect API changes.
14337 (dwarf2_get_pc_bounds): Update comments.
14338 (dwarf2_record_block_ranges): Likewise.
14339 (read_full_die_1): Change implementation to reprocess attributes that
14340 need str_offsets_base and addr_base.
14341 (partial_die_info::read): Likewise.
14342 (read_attribute_reprocess): New function definition.
14343 (read_attribute_value): Change API to take an additional out parameter,
14344 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14345 when a non-dwo compile unit has index based attributes.
14346 (read_attribute): Reflect API changes.
14347 (read_addr_index_1): Reflect API changes. Update comments.
14348 (dwarf2_read_addr_index_data): Reflect API changes.
14349 (dwarf2_read_addr_index): Likewise.
14350 (read_str_index): Change API and implementation. This becomes a helper
14351 to be used by the new string index related methods. Update error
14352 message and comments.
14353 (read_dwo_str_index): New function definition.
14354 (read_stub_str_index): Likewise.
14355 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14356 * symfile.h (dwarf2_debug_sections): Likewise.
14357 * xcoffread.c (dwarf2_debug_sections): Likewise.
14358
0cac9354
SM
143592020-01-13 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14362 core_reg_sect type to gdb_byte *.
14363 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14364 * cris-tdep.c (fetch_core_registers): Likewise.
14365 * corelow.c (core_target::get_core_register_section): Change
14366 type of `contents` to gdb::byte_vector.
14367
9a6d629c
AB
143682020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14369
14370 * tui/tui-wingeneral.c (box_win): Position the title in the center
14371 of the border.
14372
d8b2f9e3
SM
143732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14374
14375 * corelow.c (core_target::get_core_register_section): Use
14376 std::vector instead of alloca.
14377
bb564c58
SM
143782020-01-13 Simon Marchi <simon.marchi@efficios.com>
14379
14380 * warning.m4: Add -Wmissing-declarations to build_warnings.
14381 * configure: Re-generate.
14382
6b366111
SM
143832020-01-13 Simon Marchi <simon.marchi@efficios.com>
14384
14385 * python/python.c (init__gdb_module): Add declaration.
14386
6c265988
SM
143872020-01-13 Simon Marchi <simon.marchi@efficios.com>
14388
14389 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14390 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14391 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14392 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14393 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14394 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14395 * ada-exp.y (_initialize_ada_exp): Add declaration.
14396 * ada-lang.c (_initialize_ada_language): Add declaration.
14397 * ada-tasks.c (_initialize_tasks): Add declaration.
14398 * agent.c (_initialize_agent): Add declaration.
14399 * aix-thread.c (_initialize_aix_thread): Add declaration.
14400 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14401 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14402 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14403 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14404 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14405 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14406 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14407 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14408 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14409 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14410 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14411 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14412 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14413 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14414 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14415 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14416 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14417 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14418 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14419 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14420 * annotate.c (_initialize_annotate): Add declaration.
14421 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14422 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14423 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14424 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14425 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14426 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14427 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14428 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14429 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14430 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14431 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14432 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14433 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14434 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14435 * auto-load.c (_initialize_auto_load): Add declaration.
14436 * auxv.c (_initialize_auxv): Add declaration.
14437 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14438 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14439 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14440 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14441 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14442 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14443 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14444 * breakpoint.c (_initialize_breakpoint): Add declaration.
14445 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14446 * btrace.c (_initialize_btrace): Add declaration.
14447 * charset.c (_initialize_charset): Add declaration.
14448 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14449 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14450 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14451 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14452 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14453 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14454 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14455 * coffread.c (_initialize_coffread): Add declaration.
14456 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14457 * compile/compile.c (_initialize_compile): Add declaration.
14458 * complaints.c (_initialize_complaints): Add declaration.
14459 * completer.c (_initialize_completer): Add declaration.
14460 * copying.c (_initialize_copying): Add declaration.
14461 * corefile.c (_initialize_core): Add declaration.
14462 * corelow.c (_initialize_corelow): Add declaration.
14463 * cp-abi.c (_initialize_cp_abi): Add declaration.
14464 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14465 * cp-support.c (_initialize_cp_support): Add declaration.
14466 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14467 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14468 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14469 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14470 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14471 * ctfread.c (_initialize_ctfread): Add declaration.
14472 * d-lang.c (_initialize_d_language): Add declaration.
14473 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14474 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14475 * dbxread.c (_initialize_dbxread): Add declaration.
14476 * dcache.c (_initialize_dcache): Add declaration.
14477 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14478 * disasm.c (_initialize_disasm): Add declaration.
14479 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14480 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14481 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14482 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14483 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14484 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14485 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14486 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14487 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14488 * elfread.c (_initialize_elfread): Add declaration.
14489 * exec.c (_initialize_exec): Add declaration.
14490 * extension.c (_initialize_extension): Add declaration.
14491 * f-lang.c (_initialize_f_language): Add declaration.
14492 * f-valprint.c (_initialize_f_valprint): Add declaration.
14493 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14494 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14495 * filesystem.c (_initialize_filesystem): Add declaration.
14496 * findcmd.c (_initialize_mem_search): Add declaration.
14497 * findvar.c (_initialize_findvar): Add declaration.
14498 * fork-child.c (_initialize_fork_child): Add declaration.
14499 * frame-base.c (_initialize_frame_base): Add declaration.
14500 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14501 * frame.c (_initialize_frame): Add declaration.
14502 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14503 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14504 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14505 * gcore.c (_initialize_gcore): Add declaration.
14506 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14507 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14508 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14509 * gdbarch.c (_initialize_gdbarch): Add declaration.
14510 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14511 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14512 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14513 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14514 * go-lang.c (_initialize_go_language): Add declaration.
14515 * go32-nat.c (_initialize_go32_nat): Add declaration.
14516 * guile/guile.c (_initialize_guile): Add declaration.
14517 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14518 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14519 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14520 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14521 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14522 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14523 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14524 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14525 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14526 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14527 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14528 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14529 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14530 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14531 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14532 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14533 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14534 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14535 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14536 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14537 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14538 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14539 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14540 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14541 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14542 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14543 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14544 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14545 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14546 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14547 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14548 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14549 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14550 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14551 * infcall.c (_initialize_infcall): Add declaration.
14552 * infcmd.c (_initialize_infcmd): Add declaration.
14553 * inflow.c (_initialize_inflow): Add declaration.
14554 * infrun.c (_initialize_infrun): Add declaration.
14555 * interps.c (_initialize_interpreter): Add declaration.
14556 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14557 * jit.c (_initialize_jit): Add declaration.
14558 * language.c (_initialize_language): Add declaration.
14559 * linux-fork.c (_initialize_linux_fork): Add declaration.
14560 * linux-nat.c (_initialize_linux_nat): Add declaration.
14561 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14562 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14563 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14564 * m2-lang.c (_initialize_m2_language): Add declaration.
14565 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14566 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14567 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14568 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14569 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14570 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14571 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14572 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14573 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14574 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14575 * machoread.c (_initialize_machoread): Add declaration.
14576 * macrocmd.c (_initialize_macrocmd): Add declaration.
14577 * macroscope.c (_initialize_macroscope): Add declaration.
14578 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14579 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14580 * maint.c (_initialize_maint_cmds): Add declaration.
14581 * mdebugread.c (_initialize_mdebugread): Add declaration.
14582 * memattr.c (_initialize_mem): Add declaration.
14583 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14584 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14585 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14586 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14587 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14588 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14589 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14590 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14591 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14592 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14593 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14594 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14595 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14596 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14597 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14598 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14599 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14600 * mipsread.c (_initialize_mipsread): Add declaration.
14601 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14602 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14603 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14604 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14605 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14606 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14607 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14608 * nto-procfs.c (_initialize_procfs): Add declaration.
14609 * objc-lang.c (_initialize_objc_language): Add declaration.
14610 * observable.c (_initialize_observer): Add declaration.
14611 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14612 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14613 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14614 * osabi.c (_initialize_gdb_osabi): Add declaration.
14615 * osdata.c (_initialize_osdata): Add declaration.
14616 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14617 * parse.c (_initialize_parse): Add declaration.
14618 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14619 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14620 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14621 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14622 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14623 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14624 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14625 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14626 * printcmd.c (_initialize_printcmd): Add declaration.
14627 * probe.c (_initialize_probe): Add declaration.
14628 * proc-api.c (_initialize_proc_api): Add declaration.
14629 * proc-events.c (_initialize_proc_events): Add declaration.
14630 * proc-service.c (_initialize_proc_service): Add declaration.
14631 * procfs.c (_initialize_procfs): Add declaration.
14632 * producer.c (_initialize_producer): Add declaration.
14633 * psymtab.c (_initialize_psymtab): Add declaration.
14634 * python/python.c (_initialize_python): Add declaration.
14635 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14636 * record-btrace.c (_initialize_record_btrace): Add declaration.
14637 * record-full.c (_initialize_record_full): Add declaration.
14638 * record.c (_initialize_record): Add declaration.
14639 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14640 * regcache.c (_initialize_regcache): Add declaration.
14641 * reggroups.c (_initialize_reggroup): Add declaration.
14642 * remote-notif.c (_initialize_notif): Add declaration.
14643 * remote-sim.c (_initialize_remote_sim): Add declaration.
14644 * remote.c (_initialize_remote): Add declaration.
14645 * reverse.c (_initialize_reverse): Add declaration.
14646 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14647 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14648 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14649 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14650 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14651 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14652 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14653 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14654 Add declaration.
14655 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14656 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14657 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14658 * rust-exp.y (_initialize_rust_exp): Add declaration.
14659 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14660 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14661 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14662 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14663 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14664 * score-tdep.c (_initialize_score_tdep): Add declaration.
14665 * ser-go32.c (_initialize_ser_dos): Add declaration.
14666 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14667 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14668 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14669 * ser-uds.c (_initialize_ser_socket): Add declaration.
14670 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14671 * serial.c (_initialize_serial): Add declaration.
14672 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14673 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14674 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14675 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14676 * skip.c (_initialize_step_skip): Add declaration.
14677 * sol-thread.c (_initialize_sol_thread): Add declaration.
14678 * solib-aix.c (_initialize_solib_aix): Add declaration.
14679 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14680 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14681 * solib-frv.c (_initialize_frv_solib): Add declaration.
14682 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14683 * solib-target.c (_initialize_solib_target): Add declaration.
14684 * solib.c (_initialize_solib): Add declaration.
14685 * source-cache.c (_initialize_source_cache): Add declaration.
14686 * source.c (_initialize_source): Add declaration.
14687 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14688 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14689 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14690 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14691 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14692 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14693 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14694 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14695 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14696 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14697 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14698 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14699 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14700 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14701 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14702 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14703 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14704 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14705 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14706 * stabsread.c (_initialize_stabsread): Add declaration.
14707 * stack.c (_initialize_stack): Add declaration.
14708 * stap-probe.c (_initialize_stap_probe): Add declaration.
14709 * std-regs.c (_initialize_frame_reg): Add declaration.
14710 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14711 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14712 * symfile.c (_initialize_symfile): Add declaration.
14713 * symmisc.c (_initialize_symmisc): Add declaration.
14714 * symtab.c (_initialize_symtab): Add declaration.
14715 * target.c (_initialize_target): Add declaration.
14716 * target-connection.c (_initialize_target_connection): Add
14717 declaration.
14718 * target-dcache.c (_initialize_target_dcache): Add declaration.
14719 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14720 * thread.c (_initialize_thread): Add declaration.
14721 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14722 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14723 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14724 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14725 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14726 * tracectf.c (_initialize_ctf): Add declaration.
14727 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14728 * tracefile.c (_initialize_tracefile): Add declaration.
14729 * tracepoint.c (_initialize_tracepoint): Add declaration.
14730 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14731 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14732 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14733 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14734 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14735 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14736 * tui/tui.c (_initialize_tui): Add declaration.
14737 * typeprint.c (_initialize_typeprint): Add declaration.
14738 * ui-style.c (_initialize_ui_style): Add declaration.
14739 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14740 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14741 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14742 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14743 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14744 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14745 * unittests/filtered_iterator-selftests.c
14746 (_initialize_filtered_iterator_selftests): Add declaration.
14747 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14748 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14749 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14750 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14751 * unittests/main-thread-selftests.c
14752 (_initialize_main_thread_selftests): Add declaration.
14753 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14754 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14755 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14756 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14757 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14758 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14759 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14760 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14761 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14762 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14763 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14764 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14765 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14766 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14767 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14768 declaration.
14769 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14770 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14771 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14772 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14773 * user-regs.c (_initialize_user_regs): Add declaration.
14774 * utils.c (_initialize_utils): Add declaration.
14775 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14776 * valops.c (_initialize_valops): Add declaration.
14777 * valprint.c (_initialize_valprint): Add declaration.
14778 * value.c (_initialize_values): Add declaration.
14779 * varobj.c (_initialize_varobj): Add declaration.
14780 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14781 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14782 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14783 * windows-nat.c (_initialize_windows_nat): Add declaration.
14784 (_initialize_check_for_gdb_ini): Add declaration.
14785 (_initialize_loadable): Add declaration.
14786 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14787 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14788 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14789 * xcoffread.c (_initialize_xcoffread): Add declaration.
14790 * xml-support.c (_initialize_xml_support): Add declaration.
14791 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14792 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14793 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14794 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14795
e2de1eec
SM
147962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14797
14798 * regformats/regdat.sh: Generate declaration for init function.
14799
e0037b4c
SM
148002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14801
14802 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14803 up.
14804 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14805 close_one_inferior>: New methods.
14806 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14807 pass down target to find_inferior_pid.
14808 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14809 Pass down target to find_inferior_ptid.
14810 (gdbsim_target::create_inferior): Pass down target to
14811 add_thread_silent.
14812 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14813 target down to find_inferior_ptid and switch_to_thread.
14814 (gdbsim_target::close): Update to call close_one_inferior.
14815 (struct resume_data): Remove.
14816 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14817 directly, rather than through a void pointer.
14818 (gdbsim_target::resume): Update to call resume_one_inferior.
14819
58920b5b
SM
148202020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14821
14822 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14823
4ec89149
PA
148242020-01-12 Pedro Alves <palves@redhat.com>
14825
14826 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14827 directly for the current inferior instead of
14828 discard_all_inferiors.
14829 (discard_all_inferiors): Delete.
14830
7c392d1d
TT
148312020-01-11 Tom Tromey <tom@tromey.com>
14832
14833 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14834 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14835 deprecated_safe_get_selected_frame.
14836
d9ebdab7
TBA
148372020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14838
14839 * inferior.c (print_inferior): Switch inferior before printing it.
14840
f3c469b9
PA
148412020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14842 Pedro Alves <palves@redhat.com>
14843
14844 * progspace-and-thread.c (switch_to_program_space_and_thread):
14845 Assert there's an inferior for PSPACE. Use
14846 switch_to_inferior_no_thread to switch the inferior too.
14847 * progspace.c (program_space::~program_space): Call
14848 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14849 (program_space::free_all_objfiles): Don't call clear_symtab_users
14850 here.
14851 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14852
65c574f6
PA
148532020-01-10 Pedro Alves <palves@redhat.com>
14854
14855 * NEWS: Mention multi-target debugging, "info connections", and
14856 "add-inferior -no-connection".
14857
2f4fcf00
PA
148582020-01-10 Pedro Alves <palves@redhat.com>
14859
14860 * infrun.c: Include "target-connection.h".
14861 (check_multi_target_resumption): New.
14862 (proceed): Call it.
14863 * target-connection.c (make_target_connection_string): Make
14864 extern.
14865 * target-connection.h (make_target_connection_string): Declare.
14866
121b3efd
PA
148672020-01-10 Pedro Alves <palves@redhat.com>
14868
14869 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14870 * inferior.c (uiout_field_connection): New function.
14871 (print_inferior): Add new "connection-id" column.
14872 (add_inferior_command): Show connection number/string of added
14873 inferior.
14874 * process-stratum-target.h
14875 (process_stratum_target::connection_string): New virtual method.
14876 (process_stratum_target::connection_number): New field.
14877 * remote.c (remote_target::connection_string): New override.
14878 * target-connection.c: New file.
14879 * target-connection.h: New file.
14880 * target.c (decref_target): Remove process_stratum targets from
14881 the connection list.
14882 (target_stack::push): Add process_stratum targets to the
14883 connection list.
14884
4f837581
PA
148852020-01-10 Pedro Alves <palves@redhat.com>
14886
14887 Revert:
14888 2016-04-12 Pedro Alves <palves@redhat.com>
14889 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14890 Remove references to name.
14891 * serial.h (struct serial) <name>: Delete.
14892
f4ec508e
PA
148932020-01-10 Pedro Alves <palves@redhat.com>
14894
14895 * gdbarch-selftests.c (register_to_value_test): Remove "target
14896 already pushed" check.
14897
5b6d1e4f
PA
148982020-01-10 Pedro Alves <palves@redhat.com>
14899 John Baldwin <jhb@FreeBSD.org>
14900
14901 * aarch64-linux-nat.c
14902 (aarch64_linux_nat_target::thread_architecture): Adjust.
14903 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14904 (task_command_1): Likewise.
14905 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14906 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14907 (aix_thread_target::store_registers)
14908 (aix_thread_target::thread_alive): Adjust.
14909 * amd64-fbsd-tdep.c: Include "inferior.h".
14910 (amd64fbsd_get_thread_local_address): Pass down target.
14911 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14912 thread's gdbarch instead of target_gdbarch.
14913 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14914 get_last_target_status.
14915 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14916 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14917 inferiors.
14918 (update_inserted_breakpoint_locations): Skip if inferiors with no
14919 execution.
14920 (update_global_location_list): When handling moribund locations,
14921 find representative inferior for location's pspace, and use thread
14922 count of its process_stratum target.
14923 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14924 * bsd-uthread.c (bsd_uthread_target::wait): Use
14925 as_process_stratum_target and adjust thread_change_ptid and
14926 add_thread calls.
14927 (bsd_uthread_target::update_thread_list): Use
14928 as_process_stratum_target and adjust find_thread_ptid,
14929 thread_change_ptid and add_thread calls.
14930 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14931 find_thread_ptid call.
14932 * corelow.c (add_to_thread_list): Adjust add_thread call.
14933 (core_target_open): Adjust add_thread_silent and thread_count
14934 calls.
14935 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14936 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14937 * event-top.c (async_disconnect): Pop targets from all inferiors.
14938 * exec.c (add_target_sections): Push exec target on all inferiors
14939 sharing the program space.
14940 (remove_target_sections): Remove the exec target from all
14941 inferiors sharing the program space.
14942 (exec_on_vfork): New.
14943 * exec.h (exec_on_vfork): Declare.
14944 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14945 Pass it down.
14946 (fbsd_nat_target::update_thread_list): Adjust.
14947 (fbsd_nat_target::resume): Adjust.
14948 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14949 down.
14950 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14951 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14952 get_thread_arch_regcache call.
14953 * fork-child.c (gdb_startup_inferior): Pass target down to
14954 startup_inferior and set_executing.
14955 * gdbthread.h (struct process_stratum_target): Forward declare.
14956 (add_thread, add_thread_silent, add_thread_with_info)
14957 (in_thread_list): Add process_stratum_target parameter.
14958 (find_thread_ptid(inferior*, ptid_t)): New overload.
14959 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14960 parameter.
14961 (all_threads()): Delete overload.
14962 (all_threads, all_non_exited_threads): Add process_stratum_target
14963 parameter.
14964 (all_threads_safe): Use brace initialization.
14965 (thread_count): Add process_stratum_target parameter.
14966 (set_resumed, set_running, set_stop_requested, set_executing)
14967 (threads_are_executing, finish_thread_state): Add
14968 process_stratum_target parameter.
14969 (switch_to_thread): Use is_current_thread.
14970 * i386-fbsd-tdep.c: Include "inferior.h".
14971 (i386fbsd_get_thread_local_address): Pass down target.
14972 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14973 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14974 have_inferiors check.
14975 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14976 (inf_ptrace_target::attach): Adjust.
14977 * infcall.c (run_inferior_call): Adjust.
14978 * infcmd.c (run_command_1): Pass target to
14979 scoped_finish_thread_state.
14980 (proceed_thread_callback): Skip inferiors with no execution.
14981 (continue_command): Rename 'all_threads' local to avoid hiding
14982 'all_threads' function. Adjust get_last_target_status call.
14983 (prepare_one_step): Adjust set_running call.
14984 (signal_command): Use user_visible_resume_target. Compare thread
14985 pointers instead of inferior_ptid.
14986 (info_program_command): Adjust to pass down target.
14987 (attach_command): Mark target's 'thread_executing' flag.
14988 (stop_current_target_threads_ns): New, factored out from ...
14989 (interrupt_target_1): ... this. Switch inferior before making
14990 target calls.
14991 * inferior-iter.h
14992 (struct all_inferiors_iterator, struct all_inferiors_range)
14993 (struct all_inferiors_safe_range)
14994 (struct all_non_exited_inferiors_range): Filter on
14995 process_stratum_target too. Remove explicit.
14996 * inferior.c (inferior::inferior): Push dummy target on target
14997 stack.
14998 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14999 Add process_stratum_target parameter, and pass it down.
15000 (have_live_inferiors): Adjust.
15001 (switch_to_inferior_and_push_target): New.
15002 (add_inferior_command, clone_inferior_command): Handle
15003 "-no-connection" parameter. Use
15004 switch_to_inferior_and_push_target.
15005 (_initialize_inferior): Mention "-no-connection" option in
15006 the help of "add-inferior" and "clone-inferior" commands.
15007 * inferior.h: Include "process-stratum-target.h".
15008 (interrupt_target_1): Use bool.
15009 (struct inferior) <push_target, unpush_target, target_is_pushed,
15010 find_target_beneath, top_target, process_target, target_at,
15011 m_stack>: New.
15012 (discard_all_inferiors): Delete.
15013 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15014 (all_inferiors, all_non_exited_inferiors): Add
15015 process_stratum_target parameter.
15016 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15017 (target_last_proc_target): New global.
15018 (follow_fork_inferior): Push target on new inferior. Pass target
15019 to add_thread_silent. Call exec_on_vfork. Handle target's
15020 reference count.
15021 (follow_fork): Adjust get_last_target_status call. Also consider
15022 target.
15023 (follow_exec): Push target on new inferior.
15024 (struct execution_control_state) <target>: New field.
15025 (user_visible_resume_target): New.
15026 (do_target_resume): Call target_async.
15027 (resume_1): Set target's threads_executing flag. Consider resume
15028 target.
15029 (commit_resume_all_targets): New.
15030 (proceed): Also consider resume target. Skip threads of inferiors
15031 with no execution. Commit resumtion in all targets.
15032 (start_remote): Pass current inferior to wait_for_inferior.
15033 (infrun_thread_stop_requested): Consider target as well. Pass
15034 thread_info pointer to clear_inline_frame_state instead of ptid.
15035 (infrun_thread_thread_exit): Consider target as well.
15036 (random_pending_event_thread): New inferior parameter. Use it.
15037 (do_target_wait): Rename to ...
15038 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15039 down.
15040 (threads_are_resumed_pending_p, do_target_wait): New.
15041 (prepare_for_detach): Adjust calls.
15042 (wait_for_inferior): New inferior parameter. Handle it. Use
15043 do_target_wait_1 instead of do_target_wait.
15044 (fetch_inferior_event): Adjust. Switch to representative
15045 inferior. Pass target down.
15046 (set_last_target_status): Add process_stratum_target parameter.
15047 Save target in global.
15048 (get_last_target_status): Add process_stratum_target parameter and
15049 handle it.
15050 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15051 (context_switch): Check inferior_ptid == null_ptid before calling
15052 inferior_thread().
15053 (get_inferior_stop_soon): Pass down target.
15054 (wait_one): Rename to ...
15055 (poll_one_curr_target): ... this.
15056 (struct wait_one_event): New.
15057 (wait_one): New.
15058 (stop_all_threads): Adjust.
15059 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15060 event's target.
15061 (switch_back_to_stepped_thread): Also consider target.
15062 (print_stop_event): Update.
15063 (normal_stop): Update. Also consider the resume target.
15064 * infrun.h (wait_for_inferior): Remove declaration.
15065 (user_visible_resume_target): New declaration.
15066 (get_last_target_status, set_last_target_status): New
15067 process_stratum_target parameter.
15068 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15069 process_stratum_target parameter, and use it.
15070 (clear_inline_frame_state (thread_info*)): New.
15071 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15072 process_stratum_target parameter.
15073 (clear_inline_frame_state (thread_info*)): Declare.
15074 * linux-fork.c (delete_checkpoint_command): Pass target down to
15075 find_thread_ptid.
15076 (checkpoint_command): Adjust.
15077 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15078 instead of just tweaking inferior_ptid.
15079 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15080 (exit_lwp): Pass target down to find_thread_ptid.
15081 (attach_proc_task_lwp_callback): Pass target down to
15082 add_thread/set_running/set_executing.
15083 (linux_nat_target::attach): Pass target down to
15084 thread_change_ptid.
15085 (get_detach_signal): Pass target down to find_thread_ptid.
15086 Consider last target status's target.
15087 (linux_resume_one_lwp_throw, resume_lwp)
15088 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15089 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15090 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15091 (linux_nat_target::async_wait_fd): New.
15092 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15093 target down.
15094 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15095 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15096 * linux-thread-db.c (struct thread_db_info::process_target): New
15097 field.
15098 (add_thread_db_info): Save target.
15099 (get_thread_db_info): New process_stratum_target parameter. Also
15100 match target.
15101 (delete_thread_db_info): New process_stratum_target parameter.
15102 Also match target.
15103 (thread_from_lwp): Adjust to pass down target.
15104 (thread_db_notice_clone): Pass down target.
15105 (check_thread_db_callback): Pass down target.
15106 (try_thread_db_load_1): Always push the thread_db target.
15107 (try_thread_db_load, record_thread): Pass target down.
15108 (thread_db_target::detach): Pass target down. Always unpush the
15109 thread_db target.
15110 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15111 target down. Always unpush the thread_db target.
15112 (find_new_threads_callback, thread_db_find_new_threads_2)
15113 (thread_db_target::update_thread_list): Pass target down.
15114 (thread_db_target::pid_to_str): Pass current inferior down.
15115 (thread_db_target::get_thread_local_address): Pass target down.
15116 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15117 target down.
15118 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15119 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15120 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15121 (procfs_init_inferior): Rename to ...
15122 (procfs_target::procfs_init_inferior): ... this and adjust.
15123 (procfs_target::create_inferior, procfs_notice_thread)
15124 (procfs_do_thread_registers): Adjust.
15125 * ppc-fbsd-tdep.c: Include "inferior.h".
15126 (ppcfbsd_get_thread_local_address): Pass down target.
15127 * proc-service.c (ps_xfer_memory): Switch current inferior and
15128 program space as well.
15129 (get_ps_regcache): Pass target down.
15130 * process-stratum-target.c
15131 (process_stratum_target::thread_address_space)
15132 (process_stratum_target::thread_architecture): Pass target down.
15133 * process-stratum-target.h
15134 (process_stratum_target::threads_executing): New field.
15135 (as_process_stratum_target): New.
15136 * ravenscar-thread.c
15137 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15138 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15139 down.
15140 * record-btrace.c (record_btrace_target::info_record): Adjust.
15141 (record_btrace_target::record_method)
15142 (record_btrace_target::record_is_replaying)
15143 (record_btrace_target::fetch_registers)
15144 (get_thread_current_frame_id, record_btrace_target::resume)
15145 (record_btrace_target::wait, record_btrace_target::stop): Pass
15146 target down.
15147 * record-full.c (record_full_wait_1): Switch to event thread.
15148 Pass target down.
15149 * regcache.c (regcache::regcache)
15150 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15151 process_stratum_target parameter and handle it.
15152 (current_thread_target): New global.
15153 (get_thread_regcache): Add process_stratum_target parameter and
15154 handle it. Switch inferior before calling target method.
15155 (get_thread_regcache): Pass target down.
15156 (get_thread_regcache_for_ptid): Pass target down.
15157 (registers_changed_ptid): Add process_stratum_target parameter and
15158 handle it.
15159 (registers_changed_thread, registers_changed): Pass target down.
15160 (test_get_thread_arch_aspace_regcache): New.
15161 (current_regcache_test): Define a couple local test_target_ops
15162 instances and use them for testing.
15163 (readwrite_regcache): Pass process_stratum_target parameter.
15164 (cooked_read_test, cooked_write_test): Pass mock_target down.
15165 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15166 (get_thread_arch_aspace_regcache): Add process_stratum_target
15167 parameter.
15168 (regcache::target): New method.
15169 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15170 (regcache::registers_changed_ptid): Add process_stratum_target
15171 parameter.
15172 (regcache::m_target): New field.
15173 (registers_changed_ptid): Add process_stratum_target parameter.
15174 * remote.c (remote_state::supports_vCont_probed): New field.
15175 (remote_target::async_wait_fd): New method.
15176 (remote_unpush_and_throw): Add remote_target parameter.
15177 (get_current_remote_target): Adjust.
15178 (remote_target::remote_add_inferior): Push target.
15179 (remote_target::remote_add_thread)
15180 (remote_target::remote_notice_new_inferior)
15181 (get_remote_thread_info): Pass target down.
15182 (remote_target::update_thread_list): Skip threads of inferiors
15183 bound to other targets. (remote_target::close): Don't discard
15184 inferiors. (remote_target::add_current_inferior_and_thread)
15185 (remote_target::process_initial_stop_replies)
15186 (remote_target::start_remote)
15187 (remote_target::remote_serial_quit_handler): Pass down target.
15188 (remote_target::remote_unpush_target): New remote_target
15189 parameter. Unpush the target from all inferiors.
15190 (remote_target::remote_unpush_and_throw): New remote_target
15191 parameter. Pass it down.
15192 (remote_target::open_1): Check whether the current inferior has
15193 execution instead of checking whether any inferior is live. Pass
15194 target down.
15195 (remote_target::remote_detach_1): Pass down target. Use
15196 remote_unpush_target.
15197 (extended_remote_target::attach): Pass down target.
15198 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15199 (remote_target::append_resumption): Pass down target.
15200 (remote_target::append_pending_thread_resumptions)
15201 (remote_target::remote_resume_with_hc, remote_target::resume)
15202 (remote_target::commit_resume): Pass down target.
15203 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15204 (remote_target::interrupt_query)
15205 (remote_target::remove_new_fork_children)
15206 (remote_target::check_pending_events_prevent_wildcard_vcont)
15207 (remote_target::remote_parse_stop_reply)
15208 (remote_target::process_stop_reply): Pass down target.
15209 (first_remote_resumed_thread): New remote_target parameter. Pass
15210 it down.
15211 (remote_target::wait_as): Pass down target.
15212 (unpush_and_perror): New remote_target parameter. Pass it down.
15213 (remote_target::readchar, remote_target::remote_serial_write)
15214 (remote_target::getpkt_or_notif_sane_1)
15215 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15216 down target.
15217 (remote_target::mourn_inferior): Pass down target. Use
15218 remote_unpush_target.
15219 (remote_target::core_of_thread)
15220 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15221 (remote_target::pid_to_exec_file)
15222 (remote_target::thread_handle_to_thread_info): Pass down target.
15223 (remote_target::async_wait_fd): New.
15224 * riscv-fbsd-tdep.c: Include "inferior.h".
15225 (riscv_fbsd_get_thread_local_address): Pass down target.
15226 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15227 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15228 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15229 Adjust.
15230 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15231 * solib-svr4.c (enable_break): Pass down target.
15232 * spu-multiarch.c (parse_spufs_run): Pass down target.
15233 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15234 * target-delegates.c: Regenerate.
15235 * target.c (g_target_stack): Delete.
15236 (current_top_target): Return the current inferior's top target.
15237 (target_has_execution_1): Refer to the passed-in inferior's top
15238 target.
15239 (target_supports_terminal_ours): Check whether the initial
15240 inferior was already created.
15241 (decref_target): New.
15242 (target_stack::push): Incref/decref the target.
15243 (push_target, push_target, unpush_target): Adjust.
15244 (target_stack::unpush): Defref target.
15245 (target_is_pushed): Return bool. Adjust to refer to the current
15246 inferior's target stack.
15247 (dispose_inferior): Delete, and inline parts ...
15248 (target_preopen): ... here. Only dispose of the current inferior.
15249 (target_detach): Hold strong target reference while detaching.
15250 Pass target down.
15251 (target_thread_name): Add assertion.
15252 (target_resume): Pass down target.
15253 (target_ops::beneath, find_target_at): Adjust to refer to the
15254 current inferior's target stack.
15255 (get_dummy_target): New.
15256 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15257 has a thread running.
15258 (initialize_targets): Rename to ...
15259 (_initialize_target): ... this.
15260 * target.h: Include "gdbsupport/refcounted-object.h".
15261 (struct target_ops): Inherit refcounted_object.
15262 (target_ops::shortname, target_ops::longname): Make const.
15263 (target_ops::async_wait_fd): New method.
15264 (decref_target): Declare.
15265 (struct target_ops_ref_policy): New.
15266 (target_ops_ref): New typedef.
15267 (get_dummy_target): Declare function.
15268 (target_is_pushed): Return bool.
15269 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15270 (all_matching_threads_iterator::all_matching_threads_iterator):
15271 Handle filter target.
15272 * thread-iter.h (struct all_matching_threads_iterator, struct
15273 all_matching_threads_range, class all_non_exited_threads_range):
15274 Filter by target too. Remove explicit.
15275 * thread.c (threads_executing): Delete.
15276 (inferior_thread): Pass down current inferior.
15277 (clear_thread_inferior_resources): Pass down thread pointer
15278 instead of ptid_t.
15279 (add_thread_silent, add_thread_with_info, add_thread): Add
15280 process_stratum_target parameter. Use it for thread and inferior
15281 searches.
15282 (is_current_thread): New.
15283 (thread_info::deletable): Use it.
15284 (find_thread_ptid, thread_count, in_thread_list)
15285 (thread_change_ptid, set_resumed, set_running): New
15286 process_stratum_target parameter. Pass it down.
15287 (set_executing): New process_stratum_target parameter. Pass it
15288 down. Adjust reference to 'threads_executing'.
15289 (threads_are_executing): New process_stratum_target parameter.
15290 Adjust reference to 'threads_executing'.
15291 (set_stop_requested, finish_thread_state): New
15292 process_stratum_target parameter. Pass it down.
15293 (switch_to_thread): Also match inferior.
15294 (switch_to_thread): New process_stratum_target parameter. Pass it
15295 down.
15296 (update_threads_executing): Reimplement.
15297 * top.c (quit_force): Pop targets from all inferior.
15298 (gdb_init): Don't call initialize_targets.
15299 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15300 Declare.
15301 (windows_add_thread, windows_delete_thread): Adjust.
15302 (get_windows_debug_event): Rename to ...
15303 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15304 * tracefile-tfile.c (tfile_target_open): Pass down target.
15305 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15306 Forward declare.
15307 (switch_to_thread): Add process_stratum_target parameter.
15308 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15309 parameter. Use it.
15310 (mi_on_resume): Pass target down.
15311 * nat/fork-inferior.c (startup_inferior): Add
15312 process_stratum_target parameter. Pass it down.
15313 * nat/fork-inferior.h (startup_inferior): Add
15314 process_stratum_target parameter.
15315 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15316
75c6c844
PA
153172020-01-10 Pedro Alves <palves@redhat.com>
15318
15319 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15320 directly. Instead find the first thread in the thread list and
15321 use switch_to_thread.
15322
78f2c40a
PA
153232020-01-10 Pedro Alves <palves@redhat.com>
15324
15325 * remote.c (remote_target::remote_add_inferior): Don't bind a
15326 process to the current inferior if the current inferior is already
15327 bound to a process.
15328
e7af6c70
TBA
153292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15330 Pedro Alves <palves@redhat.com>
15331
15332 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15333 If no process is specified, return null_ptid instead of
15334 inferior_ptid.
15335 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15336 TARGET_WAITKIND_SIGNALLED with no pid.
15337
31ba933e
PA
153382020-01-10 Pedro Alves <palves@redhat.com>
15339
15340 * remote.c (first_remote_resumed_thread): New.
15341 (remote_target::wait_as): Use it as default event_ptid instead of
15342 inferior_ptid.
15343
735fc2ca
PA
153442020-01-10 Pedro Alves <palves@redhat.com>
15345
15346 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15347
c17e02e1
PA
153482020-01-10 Pedro Alves <palves@redhat.com>
15349
15350 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15351 not -1.
15352
ab1ddbcf
PA
153532020-01-10 Pedro Alves <palves@redhat.com>
15354
15355 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15356 ptid to get_last_target_status.
15357 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15358 ptid to get_last_target_status.
15359 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15360 get_last_target_status.
15361 (info_program_command): Don't pass a target_waitstatus to
15362 get_last_target_status.
15363 * infrun.c (init_wait_for_inferior): Use
15364 nullify_last_target_wait_ptid.
15365 (get_last_target_status): Handle nullptr arguments.
15366 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15367 (print_stop_event): Don't pass a ptid to get_last_target_status.
15368 (normal_stop): Don't pass a ptid to get_last_target_status.
15369 * infrun.h (get_last_target_status, set_last_target_status): Move
15370 comments here and update.
15371 (nullify_last_target_wait_ptid): Declare.
15372 * linux-fork.c (fork_load_infrun_state): Remove local extern
15373 declaration of nullify_last_target_wait_ptid.
15374 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15375 to get_last_target_status.
15376
f3f8ece4
PA
153772020-01-10 Pedro Alves <palves@redhat.com>
15378
15379 * gdbthread.h (scoped_restore_current_thread)
15380 <dont_restore, restore, m_dont_restore>: Declare.
15381 * thread.c (thread_alive): Add assertion. Return bool.
15382 (switch_to_thread_if_alive): New.
15383 (prune_threads): Switch inferior/thread.
15384 (print_thread_info_1): Switch thread before calling target methods.
15385 (scoped_restore_current_thread::restore): New, factored out from
15386 ...
15387 (scoped_restore_current_thread::~scoped_restore_current_thread):
15388 ... this.
15389 (scoped_restore_current_thread::scoped_restore_current_thread):
15390 Add assertion.
15391 (thread_apply_all_command, thread_select): Use
15392 switch_to_thread_if_alive.
15393 * infrun.c (proceed, restart_threads, handle_signal_stop)
15394 (switch_back_to_stepped_thread): Switch current thread before
15395 calling target methods.
15396
db2d40f7
PA
153972020-01-10 Pedro Alves <palves@redhat.com>
15398
15399 * inferior.c (switch_to_inferior_no_thread): New function,
15400 factored out from ...
15401 (inferior_command): ... here.
15402 * inferior.h (switch_to_inferior_no_thread): Declare.
15403 * mi/mi-main.c (run_one_inferior): Use
15404 switch_to_inferior_no_thread.
15405
bd420a2d
PA
154062020-01-10 Pedro Alves <palves@redhat.com>
15407
15408 * infcmd.c (kill_command): Remove dead code.
15409
ddf5db90
PA
154102020-01-10 Pedro Alves <palves@redhat.com>
15411
15412 * remote.c (remote_target::mourn_inferior): No longer check
15413 whether the target is running.
15414
5018ce90
PA
154152020-01-10 Pedro Alves <palves@redhat.com>
15416
15417 * corelow.c (core_target::has_execution): Change parameter type to
15418 inferior pointer.
15419 * inferior.c (number_of_live_inferiors): Use
15420 inferior::has_execution instead of target_has_execution_1.
15421 * inferior.h (inferior::has_execution): New.
15422 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15423 inferior::has_execution instead of target_has_execution_1.
15424 * process-stratum-target.c
15425 (process_stratum_target::has_execution): Change parameter type to
15426 inferior pointer. Check the inferior's PID instead of
15427 inferior_ptid.
15428 * process-stratum-target.h
15429 (process_stratum_target::has_execution): Change parameter type to
15430 inferior pointer.
15431 * record-full.c (record_full_core_target::has_execution): Change
15432 parameter type to inferior pointer.
15433 * target.c (target_has_execution_1): Change parameter type to
15434 inferior pointer.
15435 (target_has_execution_current): Adjust.
15436 * target.h (target_ops::has_execution): Change parameter type to
15437 inferior pointer.
15438 (target_has_execution_1): Change parameter type to inferior
15439 pointer. Change return type to bool.
15440 * tracefile.h (tracefile_target::has_execution): Change parameter
15441 type to inferior pointer.
15442
74375d18
PA
154432020-01-10 Pedro Alves <palves@redhat.com>
15444
15445 * exceptions.c (print_flush): Remove current_top_target() check.
15446
acdf84a6
PA
154472020-01-10 Pedro Alves <palves@redhat.com>
15448
15449 * remote.c (show_remote_exec_file): Show the current inferior's
15450 exec-file instead of the command variable's value.
15451
ec506636
PA
154522020-01-10 Pedro Alves <palves@redhat.com>
15453
15454 * record-full.c (record_full_resume_ptid): New global.
15455 (record_full_target::resume): Set it.
15456 (record_full_wait_1): Use record_full_resume_ptid instead of
15457 inferior_ptid.
15458
873657b9
PA
154592020-01-10 Pedro Alves <palves@redhat.com>
15460
15461 * gdbthread.h (scoped_restore_current_thread)
15462 <dont_restore, restore, m_dont_restore>: Declare.
15463 * thread.c (thread_alive): Add assertion. Return bool.
15464 (switch_to_thread_if_alive): New.
15465 (prune_threads): Switch inferior/thread.
15466 (print_thread_info_1): Switch thread before calling target methods.
15467 (scoped_restore_current_thread::restore): New, factored out from
15468 ...
15469 (scoped_restore_current_thread::~scoped_restore_current_thread):
15470 ... this.
15471 (scoped_restore_current_thread::scoped_restore_current_thread):
15472 Add assertion.
15473 (thread_apply_all_command, thread_select): Use
15474 switch_to_thread_if_alive.
15475
7f0ae84c
GB
154762020-01-10 George Barrett <bob@bob131.so>
15477
15478 * stap-probe.c (stap_modify_semaphore): Don't check for null
15479 semaphores.
15480 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15481 for null semaphores.
15482
f5a7c406
AB
154832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15484
15485 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15486 all source windows, and maintain horizontal scroll status while
15487 doing so.
15488
9ae6bf64
TT
154892020-01-09 Tom Tromey <tom@tromey.com>
15490
15491 PR tui/18932:
15492 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15493 update_source_window, not print_source_lines.
15494
b2efe70c
AB
154952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15496
15497 * tui/tui.c (tui_enable): Register tui hooks after calling
15498 tui_display_main.
15499
5f23a082
CB
155002020-01-09 Christian Biesinger <cbiesinger@google.com>
15501
15502 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15503
3061113b
SM
155042020-01-08 Simon Marchi <simon.marchi@efficios.com>
15505
15506 * thread.c (print_thread_info_1): Fix indentation.
15507
57d75002
CB
155082020-01-09 Christian Biesinger <cbiesinger@google.com>
15509
15510 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15511 unique_xmalloc_ptr outside the if to always free the demangled name.
15512
6a053cb1
TT
155132020-01-08 Tom Tromey <tromey@adacore.com>
15514
15515 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15516 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15517 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15518 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15519 Remove.
15520 (section_offsets): New typedef.
15521 * symtab.c (fixup_section, get_msymbol_address): Update.
15522 * symmisc.c (dump_msymbols): Update.
15523 * symfile.h (relative_addr_info_to_section_offsets)
15524 (symfile_map_offsets_to_segments): Update.
15525 * symfile.c (build_section_addr_info_from_objfile)
15526 (init_objfile_sect_indices): Update.
15527 (struct place_section_arg): Change type of "offsets".
15528 (place_section): Update.
15529 (relative_addr_info_to_section_offsets): Change type of
15530 "section_offsets". Remove "num_sections" parameter.
15531 (default_symfile_offsets, syms_from_objfile_1)
15532 (set_objfile_default_section_offset): Update.
15533 (reread_symbols): No need to preserve section offsets by hand.
15534 (symfile_map_offsets_to_segments): Change type of "offsets".
15535 * stap-probe.c (relocate_address): Update.
15536 * stabsread.h (process_one_symbol): Update.
15537 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15538 (solib_target_relocate_section_addresses): Update.
15539 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15540 Update.
15541 * solib-frv.c (frv_relocate_main_executable): Update.
15542 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15543 * solib-aix.c (solib_aix_get_section_offsets): Change return
15544 type.
15545 (solib_aix_solib_create_inferior_hook): Update.
15546 * remote.c (remote_target::get_offsets): Update.
15547 * psymtab.c (find_pc_sect_psymtab): Update.
15548 * psympriv.h (struct partial_symbol) <address, text_low,
15549 text_high>: Update.
15550 * objfiles.h (obj_section_offset): Update.
15551 (struct objfile) <section_offsets>: Change type.
15552 <num_sections>: Remove.
15553 (objfile_relocate): Update.
15554 * objfiles.c (entry_point_address_query): Update
15555 (relocate_one_symbol): Change type of "section_offsets".
15556 (objfile_relocate1, objfile_relocate1): Change type of
15557 "new_offsets".
15558 (objfile_rebase1): Update.
15559 * mipsread.c (mipscoff_symfile_read): Update.
15560 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15561 parameter.
15562 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15563 (parse_external, psymtab_to_symtab_1): Update.
15564 * machoread.c (macho_symfile_offsets): Update.
15565 * ia64-tdep.c (ia64_find_unwind_table): Update.
15566 * hppa-tdep.c (read_unwind_info): Update.
15567 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15568 * dwarf2read.c (create_addrmap_from_index)
15569 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15570 (process_psymtab_comp_unit_reader, add_partial_symbol)
15571 (add_partial_subprogram, process_full_comp_unit)
15572 (read_file_scope, read_func_scope, read_lexical_block_scope)
15573 (read_call_site_scope, dwarf2_rnglists_process)
15574 (dwarf2_ranges_process, dwarf2_ranges_read)
15575 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15576 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15577 Update.
15578 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15579 Update.
15580 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15581 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15582 (process_one_symbol): Change type of "section_offsets".
15583 * ctfread.c (get_objfile_text_range): Update.
15584 * coffread.c (coff_symtab_read, enter_linenos)
15585 (process_coff_symbol): Update.
15586 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15587 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15588
456e800a
TT
155892020-01-08 Tom Tromey <tromey@adacore.com>
15590
15591 * dwarf2read.c (parse_macro_definition): Use std::string.
15592 (parse_macro_definition): Likewise.
15593
6dfa2fc2
TT
155942020-01-08 Tom Tromey <tromey@adacore.com>
15595
15596 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15597 (ATTR_ALLOC_CHUNK): Remove.
15598
421d1616
TT
155992020-01-08 Tom Tromey <tromey@adacore.com>
15600
15601 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15602
43816ebc
TT
156032020-01-08 Tom Tromey <tromey@adacore.com>
15604
15605 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15606 (dwarf2_compute_name, open_dwo_file): Likewise.
15607 (process_enumeration_scope): Use std::vector.
15608 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15609 (partial_die_info::fixup, dwarf2_start_subfile)
15610 (guess_full_die_structure_name, dwarf2_name): Likewise.
15611 (determine_prefix): Update.
15612 (guess_full_die_structure_name): Make return type const.
15613 (partial_die_full_name): Return unique_xmalloc_ptr.
15614 (DW_FIELD_ALLOC_CHUNK): Remove.
15615
4212d509
TT
156162020-01-07 Tom Tromey <tromey@adacore.com>
15617
15618 PR build/24937:
15619 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15620
06a6207a
JT
156212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15622
15623 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15624
153d79c4
AB
156252020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15626
15627 * stack.c (print_frame_info): Move disassemble_next_line code
15628 inside source_print block.
15629
66182876
EZ
156302020-01-06 Eli Zaretskii <eliz@gnu.org>
15631
15632 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15633 gdb/signals.h, as we are now using native signal symbols.
15634
cbfa8581
SV
156352020-01-06 Shahab Vahedi <shahab@synopsys.com>
15636
15637 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15638 overflow by an early check of content vs threshold.
aac66a4c 15639 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15640 Likewise.
15641
3f602821
EZ
156422020-01-06 Eli Zaretskii <eliz@gnu.org>
15643
15644 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15645
a08c904d
JT
156462020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15647
15648 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15649 export table if no section contains it's RVA.
15650
89a65580
EZ
156512020-01-06 Eli Zaretskii <eliz@gnu.org>
15652
15653 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15654
8b7fcda2
HD
156552020-01-06 Hannes Domani <ssbssa@yahoo.de>
15656
15657 * source.c (print_source_lines_base): Set last_line_listed.
15658
a61b4f69
SV
156592020-01-06 Shahab Vahedi <shahab@synopsys.com>
15660
15661 * tui/tui-disasm.c: Remove trailing spaces.
15662
559e7e50
EZ
156632020-01-06 Eli Zaretskii <eliz@gnu.org>
15664 Pedro Alves <palves@redhat.com>
15665
15666 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15667 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15668 (windows_gdb_signal_to_target): New function, uses the above
15669 enumeration to convert GDB internal signal codes to equivalent
15670 Windows codes.
15671 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15672 * windows-nat.c: Include "gdb_wait.h".
15673 (get_windows_debug_event): Extract the fatal exception from the
15674 exit status and convert to the equivalent Posix signal number.
15675 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15676 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15677 * gdbsupport/gdb_wait.c: New file, implements
15678 windows_status_to_termsig.
15679 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15680 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15681
f2302a34
AB
156822020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15683
15684 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15685 show_layout.
15686
6a5206eb
LM
156872020-01-05 Luis Machado <luis.machado@linaro.org>
15688
15689 * aarch64-linux-nat.c
15690 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15691 and bfd_mach_aarch64.
15692
6ec1d75e
PW
156932020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15694
15695 * ui-file.c (stdio_file::can_emit_style_escape)
15696 (tee_file::can_emit_style_escape): Ensure style is used also on
15697 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15698 to gdb_stdout.
15699 * main.c (set_gdb_data_directory): Use file style to output the
15700 warning that the given pathname is not a directory.
15701 * top.c (show_history_filename, gdb_safe_append_history)
15702 (show_gdb_datadir): Use file style.
15703
44f81a76
HD
157042020-01-03 Hannes Domani <ssbssa@yahoo.de>
15705
15706 * solib-target.c (struct lm_info_target):
15707 Change offsets to be a unique_xmalloc_ptr.
15708 (solib_target_relocate_section_addresses): Update.
15709
25057eb0
HD
157102020-01-03 Hannes Domani <ssbssa@yahoo.de>
15711
15712 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15713
6e2118f5
BE
157142020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15715
15716 * MAINTAINERS (Write After Approval): Add myself.
15717
8133c7dc
LM
157182020-01-02 Luis Machado <luis.machado@linaro.org>
15719
15720 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15721 Cell BE architecture.
15722 * target.h (struct target_ops) <thread_architecture>: Likewise.
15723
48189bec
HD
157242020-01-01 Hannes Domani <ssbssa@yahoo.de>
15725
15726 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15727
ead1063b
HD
157282020-01-01 Hannes Domani <ssbssa@yahoo.de>
15729
15730 * MAINTAINERS (Write After Approval): Add myself.
15731
e5d78223
JB
157322020-01-01 Joel Brobecker <brobecker@adacore.com>
15733
15734 * gdbarch.sh: Update copyright year range of generated files.
15735
b811d2c2
JB
157362020-01-01 Joel Brobecker <brobecker@adacore.com>
15737
15738 Update copyright year range in all GDB files.
15739
5f4def5c
JB
157402020-01-01 Joel Brobecker <brobecker@adacore.com>
15741
15742 * copyright.py: Convert to Python 3.
15743
51fd4002
JB
157442020-01-01 Joel Brobecker <brobecker@adacore.com>
15745
15746 * copyright.py: Adapt after move of gnulib directory from gdb
15747 directory to toplevel directory.
15748
5fb651f2
JB
157492020-01-01 Joel Brobecker <brobecker@adacore.com>
15750
15751 * copyright.py (main): Exit if run from the wrong directory.
15752
5dd8bf88
JB
157532020-01-01 Joel Brobecker <brobecker@adacore.com>
15754
15755 * top.c (print_gdb_version): Change copyright year to 2020.
15756
9f71dacb 157572020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15758
9f71dacb 15759 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15760
9f71dacb 15761For older changes see ChangeLog-2019.
c906108c
SS
15762\f
15763Local Variables:
15764mode: change-log
15765left-margin: 8
15766fill-column: 74
15767version-control: never
57da7796 15768coding: utf-8
c906108c 15769End: