]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix an illegal memory access problem when processing secondary relocs for architectur...
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cfaa8f76
TBA
12020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 PR gdb/19318
4 * inferior.c (detach_inferior_command): Restore the current thread.
5 (kill_inferior_command): Ditto.
6
1b00ef06
TV
72020-10-28 Tom de Vries <tdevries@suse.de>
8
9 PR symtab/26772
10 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
11 map, check it in the "best match" loop.
12
7f40ce1a
SM
132020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * m32c-tdep.c: Remove unused includes.
16
5eb9e3f5
SM
172020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * xtensa-tdep.c: Remove includes.
20
b1d4d8d1
TBA
212020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 * breakpoint.c (struct condition_command_opts): New struct.
24 (condition_command_option_defs): New static global.
25 (make_condition_command_options_def_group): New function.
26 (condition_completer): Update to consider the '-force' flag.
27 (condition_command): Use gdb::option for the '-force' flag.
28
bd24c5d6
TV
292020-10-27 Tom de Vries <tdevries@suse.de>
30
31 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
32 symbols in section check.
33
61eb46a4
TV
342020-10-27 Tom de Vries <tdevries@suse.de>
35
36 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
37
733d554a
TBA
382020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
39
40 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
41 * breakpoint.c: Update the help text of the 'condition' and 'break'
42 commands.
43 (set_breakpoint_condition): Take a new bool parameter
44 to control whether condition definition should be forced even when
45 the condition expression is invalid in all of the current locations.
46 (condition_command): Update the call to 'set_breakpoint_condition'.
47 (find_condition_and_thread): Take the "-force-condition" flag into
48 account.
49 * linespec.c (linespec_keywords): Add "-force-condition" as an
50 element.
51 (FORCE_KEYWORD_INDEX): New #define.
52 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
53 as a keyword.
54 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
55 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
56 * python/py-breakpoint.c (bppy_set_condition): Ditto.
57 * NEWS: Mention the changes to the 'break' and 'condition' commands.
58
b5fa468f
TBA
592020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60
61 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
62 * breakpoint.c (set_breakpoint_location_condition): New function.
63 (set_breakpoint_condition): Disable a breakpoint location if parsing
64 the condition string gives an error.
65 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
66 (build_target_condition_list): Ditto.
67 (build_target_command_list): Ditto.
68 (build_bpstat_chain): Ditto.
69 (print_one_breakpoint_location): Ditto.
70 (print_one_breakpoint): Ditto.
71 (breakpoint_1): Ditto.
72 (bp_location::bp_location): Ditto.
73 (locations_are_equal): Ditto.
74 (update_breakpoint_locations): Ditto.
75 (enable_disable_bp_num_loc): Ditto.
76 (init_breakpoint_sal): Use set_breakpoint_location_condition.
77 (find_condition_and_thread_for_sals): New static function.
78 (create_breakpoint): Call find_condition_and_thread_for_sals.
79 (location_to_sals): Call find_condition_and_thread_for_sals instead
80 of find_condition_and_thread.
81
1c47ec3e
TV
822020-10-26 Tom de Vries <tdevries@suse.de>
83
84 * dwarf2/read.c (process_full_comp_unit): Call
85 dwarf2_find_base_address.
86
6390859c
TT
872020-10-26 Tom Tromey <tromey@adacore.com>
88
89 * gdbtypes.c (create_range_type): Revert previous patch. Add
90 comment.
91
d744f0f9
PA
922020-10-26 Pedro Alves <pedro@palves.net>
93
94 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
95 (my_waitpid): Use gdb::handle_eintr.
96
006811bc
SM
972020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * acinclude.m4: Update ptrace.m4 path.
100 * ptrace.m4: Moved to gdbsupport.
101
c75e31a1
SM
1022020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
105 instead of target_gdbarch.
106
32495661
SM
1072020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * jit.c (jit_reader_load_command): Pass current inferior.
110 (jit_inferior_init): Change parameter type to inferior, use it.
111 (jit_inferior_created): Remove.
112 (jit_inferior_created_hook): Pass inferior parameter down.
113 (_initialize_jit): Use jit_inferior_created_hook instead of
114 jit_inferior_created.
115 * jit.h (jit_inferior_created_hook): Add inferior parameter.
116 * infrun.c (follow_exec): Pass inferior to
117 jit_inferior_created_hook.
118
3f66685e
SM
1192020-10-24 Simon Marchi <simon.marchi@efficios.com>
120
121 * linux-thread-db.c (check_pid_namespace_match): Add inferior
122 parameter and use it.
123 (thread_db_inferior_created): Pass inferior argument.
124
a0ff652f
SM
1252020-10-24 Simon Marchi <simon.marchi@efficios.com>
126
127 * aix-thread.c (aix_thread_inferior_created): Add inferior
128 parameter.
129 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
130 * dummy-frame.c (cleanup_dummy_frames): Likewise.
131 * jit.c (jit_inferior_created): Likewise.
132 * linux-thread-db.c (thread_db_inferior_created): Likewise.
133 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
134 * observable.h (inferior_created): Likewise.
135 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
136 * symfile-mem.c (add_vsyscall_page): Likewise.
137 * infcmd.c (post_create_inferior): Pass inferior argument.
138
3c67532c
JB
1392020-10-24 Joel Brobecker <brobecker@adacore.com>
140
141 GDB 10.1 released.
142
8747316e
JB
1432020-10-23 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-typeprint.c (ada_print_type): Remove superfluous second call
146 to ada_check_typedef.
147
1a0ea399
AB
1482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * f-exp.y (f_parse): Rename to...
151 (f_language::parser): ...this.
152 * f-lang.c (f_get_encoding): Rename to...
153 (f_language::get_encoding): ...this.
154 (f_op_print_tab): Rename to...
155 (f_language::op_print_tab): ...this.
156 (exp_descriptor_f): Rename to...
157 (f_language::exp_descriptor_tab): ...this.
158 (class f_language): Moved to f-lang.h.
159 (f_language::language_arch_info): New function, moved out of class
160 declaration.
161 (f_language::search_name_hash): Likewise.
162 (f_language::lookup_symbol_nonlocal): Likewise.
163 (f_language::get_symbol_name_matcher_inner): Likewise.
164 * f-lang.h: Add 'valprint.h' include.
165 (class f_language): Moved here from f-lang.c.
166 * f-typeprint.c (f_type_print_args): Delete commented out
167 declaration.
168 (f_print_typedef): Rename to...
169 (f_language::print_typedef): ...this.
170 (f_print_type): Rename to...
171 (f_language::print_type): ...this.
172 (f_type_print_varspec_prefix): Delete declaration and rename to...
173 (f_language::f_type_print_varspec_prefix): ...this.
174 (f_type_print_varspec_suffix): Delete declaration and rename to...
175 (f_language::f_type_print_varspec_suffix): ...this.
176 (f_type_print_base): Delete declaration and rename to...
177 (f_language::f_type_print_base): ...this.
178 * f-valprint.c (f_value_print_inner): Rename to...
179 (f_language::value_print_inner): ...this.
180 * parse.c: Delete 'f-lang.h' include.
181
88cefd9b
AB
1822020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * language.h (language_defn::print_type): Add variable names in
185 declaration, and update header comment.
186
5399db93
AB
1872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * ada-lang.c (ada_language::demangle): Rename to...
190 (ada_language::demangle_symbol): ...this.
191 * c-lang.c (cplus_language::demangle): Rename to...
192 (cplus_language::demangle_symbol): ...this.
193 * d-lang.c (d_language::demangle): Rename to...
194 (d_language::demangle_symbol): ...this.
195 * f-lang.c (f_language::demangle): Rename to...
196 (f_language::demangle_symbol): ...this.
197 * go-lang.c (go_language::demangle): Rename to...
198 (go_language::demangle_symbol): ...this.
199 * language.c (language_demangle): Update call to demangle_symbol.
200 (auto_or_unknown_language::demangle): Rename to...
201 (auto_or_unknown_language::demangle_symbol): ...this.
202 * language.h (language_defn::demangle): Rename to...
203 (language_defn::demangle_symbol): ...this.
204 * objc-lang.c (objc_language::demangle): Rename to...
205 (objc_language::demangle_symbol): ...this.
206 * rust-lang.c (rust_language::demangle): Rename to...
207 (rust_language::demangle_symbol): ...this.
208
4b2f86ef
AB
2092020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
212 (iterate_over_file_blocks): Replace use of macro with the macros
213 definition.
214
e74b39de
AB
2152020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
218 * valprint.c (maybe_print_array_index): Replace use of macro with
219 the macros definition.
220
00c696a6
AB
2212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * ada-lang.c (ada_language::print_array_index): Call value_print
224 directly.
225 * language.c (language_defn::print_array_index): Likewise.
226 * language.h (LA_VALUE_PRINT): Delete.
227 * valprint.c (value_print): Call value_print on the
228 current_language directly.
229
d3b67c56
AB
2302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * language.h (LA_PRINT_TYPEDEF): Delete.
233 * typeprint.c (typedef_print): Call print_typedef directly on the
234 current_language object.
235
790e2a12
AB
2362020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 * m2-exp.y (m2_parse): Rename to...
239 (m2_language::parser): ...this. Update function signature.
240 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
241 (m2_op_print): Rename to...
242 (m2_language::op_print_tab): ...this, and make const.
243 (exp_descriptor_modula2): Rename to...
244 (m2_language::exp_descriptor_modula2): ...this.
245 (class m2_language): Move to m2-lang.h.
246 (m2_language::language_arch_info): New function, moved out of
247 class declaration.
248 (m2_language::printchar): New function, body from m2_printchar.
249 (m2_language::printstr): New function, moved out of class
250 declaration.
251 (m2_language::emitchar): Likewise.
252 * m2-lang.h (m2_parse): Delete declaration.
253 (m2_print_typedef): Delete declaration.
254 (m2_value_print_inner): Delete declaration.
255 (class m2_language): Class declaration moved from m2-lang.c,
256 larger functions are left in m2-lang.c.
257 * m2-typeprint.c (m2_print_typedef): Rename to...
258 (m2_language::print_typedef): ...this, and update function
259 signature.
260 * m2-valprint.c (m2_value_print_inner): Rename to...
261 (m2_language::value_print_inner): ...this, replace use of
262 LA_PRINT_STRING with a direct call to printstr member function,
263 and update recursive call.
264
b01175fc
AB
2652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * language.c (default_is_string_type_p): Delete, implementation
268 moved into auto_or_unknown_language::is_string_type_p.
269 (unk_op_print_tab): Moved into
270 auto_or_unknown_language::opcode_print_table.
271 (unknown_language_arch_info): Delete, implementation moved into
272 auto_or_unknown_language::language_arch_info.
273 (class auto_or_unknown_language): New class, member functions
274 copied from unknown_language class, with some updates.
275 (class unknown_language): Most member functions moved into
276 auto_or_unknown_language class. Inherit from
277 auto_or_unknown_language class.
278 (class auto_language): Inherit from auto_or_unknown_language.
279 Delete most member functions.
280
1a97fe8c
HD
2812020-10-22 Hannes Domani <ssbssa@yahoo.de>
282
283 * stabsread.c (read_member_functions): Remove gdb_assert.
284
6b9d0dfd
HD
2852020-10-22 Hannes Domani <ssbssa@yahoo.de>
286
287 * gdbtypes.c (init_complex_type): Check target type name.
288
4b4bb603
SM
2892020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * target-debug.h (target_debug_print_struct_target_ops_p):
292 Remove.
293 (target_debug_print_async_callback_ftype_p): Remove.
294 (target_debug_print_struct_trace_state_variable_p): Remove.
295 (target_debug_print_struct_traceframe_info_p): Remove.
296 (target_debug_print_VEC__btrace_block_s__pp): Remove.
297 (target_debug_print_enum_btrace_format): Remove.
298 (target_debug_print_enum_info_proc_what): Remove.
299 (target_debug_print_thread_info_pp): Remove.
300
24f5300a
SM
3012020-10-22 Simon Marchi <simon.marchi@efficios.com>
302
303 * target.h (struct target_ops) <make_corefile_notes>:
304 Change return type to unique pointer.
305 * target.c (dummy_make_corefile_notes): Likewise.
306 * exec.c (struct exec_target) <make_corefile_notes>:
307 Likewise.
308 (exec_target::make_corefile_notes): Likewise.
309 * procfs.c (class procfs_target) <make_corefile_notes>:
310 Likewise.
311 (procfs_do_thread_registers): Adjust to unique pointer.
312 (struct procfs_corefile_thread_data): Add constructor.
313 <note_data>: Change type to unique pointer.
314 (procfs_corefile_thread_callback): Adjust to unique pointer.
315 (procfs_target::make_corefile_notes): Change return type to
316 unique pointer.
317 * target-delegates.c: Re-generate.
318 * gcore.c (write_gcore_file_1): Adjust.
319 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
320 New.
321
5fb4027f
TV
3222020-10-22 Tom de Vries <tdevries@suse.de>
323
324 * block.c (find_block_in_blockvector): Make sure the returned block
325 contains pc.
326
4a636814
SM
3272020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
328
329 PR gdb/26693
330 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
331 parameter.
332 (load_cu): Pass existing CU.
333 (process_imported_unit_die): Likewise.
334 (follow_die_offset): Likewise.
335
1bd57575
LM
3362020-10-22 Luis Machado <luis.machado@linaro.org>
337
338 * corelow.c (core_target::xfer_partial): Also check for an empty
339 m_core_unavailable_mappings vector.
340
6b4c676c
AB
3412020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
344 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
345 * f-exp.y (arglist): Allow for a series of subranges.
346 (subrange): Add cases for subranges with strides.
347 * f-lang.c (value_f90_subarray): Catch use of array strides and
348 throw an error.
349 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
350
f2d8e4c5
AB
3512020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * expprint.c (print_subexp_standard): Change enum range_type to
354 range_flag and rename variables to match.
355 (dump_subexp_body_standard): Likewise.
356 * expression.h (enum range_type): Rename to...
357 (enum range_flag): ...this.
358 (range_types): Rename to...
359 (range_flags): ...this.
360 * f-lang.c (value_f90_subarray): Change enum range_type to
361 range_flag and rename variables to match.
362 * parse.c (operator_length_standard): Likewise.
363 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
364 range_type to range_flag.
365 * rust-lang.c (rust_evaluate_funcall): Likewise.
366 (rust_range): Likewise.
367 (rust_compute_range): Likewise.
368 (rust_subscript): Likewise.
369
2f1b18db
AB
3702020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * expprint.c (print_subexp_standard): Update to reflect changes to
373 enum range_type.
374 (dump_subexp_body_standard): Likewise.
375 * expression.h (enum range_type): Convert to a bit field enum, and
376 make the enum unsigned.
377 * f-exp.y (subrange): Update to reflect changes to enum
378 range_type.
379 * f-lang.c (value_f90_subarray): Likewise.
380 * parse.c (operator_length_standard): Likewise.
381 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
382 * rust-lang.c (rust_range): Likewise.
383 (rust_compute_range): Likewise.
384 (rust_subscript): Likewise.
385
a46d1843
SM
3862020-10-21 Simon Marchi <simon.marchi@efficios.com>
387
388 * infrun.c (displaced_step_in_progress_thread): Fix comment.
389 (displaced_step_in_progress): Fix comment.
390
c21f37a8
SM
3912020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * gdbarch.sh (make_corefile_notes): Return unique pointer.
394 * gdbarch.c: Re-generate.
395 * gdbarch.h: Re-generate.
396 * gcore.c (write_gcore_file_1): Adjust.
397 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
398 constructor.
399 <note_data>: Change type to unique pointer.
400 <abort_iteration>: Change type to bool.
401 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
402 (fbsd_collect_thread_registers): Return void, adjust.
403 (struct fbsd_corefile_thread_data): Add construtor.
404 <note_data>: Change type to unique pointer.
405 (fbsd_corefile_thread): Adjust.
406 (fbsd_make_corefile_notes): Return unique pointer, adjust.
407 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
408 to unique pointer, adjust.
409 (struct linux_collect_regset_section_cb_data): Add constructor.
410 <note_data>: Change type to unique pointer.
411 <abort_iteration>: Change type to bool.
412 (linux_collect_thread_registers): Return void, adjust.
413 (struct linux_corefile_thread_data): Add constructor.
414 <note_data>: Change type to unique pointer.
415 (linux_corefile_thread): Adjust.
416 (linux_make_corefile_notes): Return unique pointer, adjust.
417
07fbbd01
SM
4182020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
421 * gdbarch.c: Re-generate.
422 * gdbarch.h: Re-generate.
423 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
424 bool.
425 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
426 Likewise.
427 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
428 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
429 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
430 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
431
39535193
SM
4322020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * gdbarch.sh: Make generated predicates return bool.
435 * gdbarch.c: Re-generate.
436 * gdbarch.h: Re-generate.
437
ad523d01
TT
4382020-10-20 Tom Tromey <tom@tromey.com>
439
440 * varobj-iter.h (struct varobj_item): Remove typedef.
441
c4464ade
SM
4422020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * infrun.c (currently_stepping): Change int to bool
445 (maybe_software_singlestep): Likewise.
446 (show_stop_on_solib_events): Likewise.
447 (stepping_past_nonsteppable_watchpoint): Likewise.
448 (displaced_step_in_progress_any_inferior): Likewise.
449 (displaced_step_in_progress_thread): Likewise.
450 (keep_going_stepped_thread): Likewise.
451 (thread_still_needs_step_over): Likewise.
452 (start_step_over): Likewise.
453 (do_target_resume): Likewise.
454 (resume_1): Likewise.
455 (clear_proceed_status): Likewise.
456 (thread_still_needs_step_over_bp): Likewise.
457 (proceed): Likewise.
458 (switch_back_to_stepped_thread): Likewise.
459 (adjust_pc_after_break): Likewise.
460 (stepped_in_from): Likewise.
461 (handle_stop_requested): Likewise.
462 (handle_syscall_event): Likewise.
463 (handle_no_resumed): Likewise.
464 (handle_inferior_event): Likewise.
465 (finish_step_over): Likewise.
466 (handle_signal_stop): Likewise.
467 (process_event_stop_test): Likewise.
468
2eb20436
SM
4692020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
470
471 * infrun.c (get_displaced_stepping_state): Fix comment.
472
e0c45ded
AS
4732020-10-20 Andreas Schwab <schwab@linux-m68k.org>
474
475 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
476
22cc388e
TT
4772020-10-19 Tom Tromey <tromey@adacore.com>
478
479 PR tui/26719
480 * tui/tui-winsource.h (struct tui_source_window_base)
481 <refresh_window>: Rename from refresh_pad.
482 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
483 Rename from refresh_pad.
484 (tui_source_window_base::show_source_content)
485 (tui_source_window_base::do_scroll_horizontal): Update.
486
3c6eb4d4
TBA
4872020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
488
489 * thread.c (_initialize_thread): Fine-tune the help text of
490 'info threads'.
491
26703721
TBA
4922020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
493
494 * frame.c: Remove the unused 'uinteger_option_def' type alias.
495
61c26be8
MS
4962020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
497
498 * breakpoint.c (handle_jit_event): Add an argument, change how
499 `jit_event_handler` is called.
500
932539d7
TT
5012020-10-17 Tom Tromey <tom@tromey.com>
502
503 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
504 (scan_xcoff_symtab): Update.
505 * psymtab.h (class psymtab_storage) <global_psymbols,
506 static_psymbols, current_global_psymbols,
507 current_static_psymbols>: Remove.
508 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
509 (match_partial_symbol, lookup_partial_symbol): Update.
510 (print_partial_symbols): Change parameters.
511 (dump_psymtab, recursively_search_psymtabs)
512 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
513 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
514 (concat): Remove.
515 (end_psymtab_common): Simplify.
516 (append_psymbol_to_list): Change parameters.
517 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
518 (init_psymbol_list): Simplify.
519 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
520 * psympriv.h (struct partial_symtab) <empty>: New method.
521 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
522 Remove.
523 <global_psymbols, static_psymbols>: New members.
524 <add_psymbol>: New methods.
525 (add_psymbol_to_list): Don't declare.
526 (psymbol_placement): Move earlier.
527 * mdebugread.c (parse_partial_symbols): Update.
528 (handle_psymbol_enumerators): Change parameters.
529 (mdebug_expand_psymtab): Update.
530 * dwarf2/read.c (process_psymtab_comp_unit_reader)
531 (add_partial_symbol): Update.
532 * dwarf2/index-write.c (write_psymbols): Change parameters.
533 (write_one_signatured_type): Update.
534 (recursively_count_psymbols): Update.
535 (recursively_write_psymbols): Update.
536 (class debug_names) <recursively_write_psymbols>: Update.
537 <write_psymbols>: Change parameters.
538 <write_one_signatured_type>: Update.
539 * dbxread.c (read_dbx_symtab): Update.
540 (dbx_end_psymtab): Use partial_symtab::empty.
541 * ctfread.c (struct ctf_context) <pst>: New member.
542 (create_partial_symtab): Set it.
543 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
544 (scan_partial_symbols): Use the psymtab's context. Update.
545
cfabbd35
TT
5462020-10-17 Tom Tromey <tom@tromey.com>
547
548 * valprint.c (generic_value_print): Remove comment.
549 * m2-valprint.c (m2_value_print_inner): Remove comment.
550 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
551 type.
552
520596f2
TV
5532020-10-17 Tom de Vries <tdevries@suse.de>
554
555 PR symtab/26317
556 * source.c (select_source_symtab): Handling sal.symtab == NULL for
557 symbol main.
558
76547ab3
TV
5592020-10-14 Tom de Vries <tdevries@suse.de>
560
561 PR gdb/26733
562 * solib.c (solib_contains_address_p): Handle
563 'solib->sections == nullptr'.
564
d3a07122
SM
5652020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
566
567 PR gdb/26642
568 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
569 target can't do async.
570 * target.c (target_wait): Assert that we don't pass
571 TARGET_WNOHANG to a target that can't async.
572
1b71cfcf
KR
5732020-10-13 Kamil Rytarowski <n54@gmx.com>
574
575 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
576 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
577 * alpha-bsd-nat.c: Adjust include.
578 * alpha-bsd-tdep.h: Adjust comment.
579 * alpha-nbsd-tdep.c: Rename to ...
580 * alpha-netbsd-tdep.c: ... this, adjust include.
581 * amd64-nbsd-nat.c: Rename to ...
582 * amd64-netbsd-nat.c: ... this, adjust include.
583 * amd64-nbsd-tdep.c: Rename to ...
584 * amd64-netbsd-tdep.c: ... this, adjust include.
585 * amd64-tdep.h: Adjust include.
586 * arm-nbsd-nat.c: Rename to ...
587 * arm-netbsd-nat.c: ... this, adjust include.
588 * arm-nbsd-tdep.c: Rename to ...
589 * arm-netbsd-tdep.c: ... this, adjust include.
590 * arm-nbsd-tdep.h: Rename to ...
591 * arm-netbsd-tdep.h: ... this, adjust include.
592 * configure.nat: Adjust file lists.
593 * configure.tgt: Likewise.
594 * hppa-nbsd-nat.c: Rename to ...
595 * hppa-netbsd-nat.c: ... this, adjust include.
596 * hppa-nbsd-tdep.c: Rename to ...
597 * hppa-netbsd-tdep.c: ... this, adjust include.
598 * i386-nbsd-nat.c: Rename to ...
599 * i386-netbsd-nat.c: ... this, adjust include.
600 * i386-nbsd-tdep.c: Rename to ...
601 * i386-netbsd-tdep.c: ... this, adjust include.
602 * m68k-bsd-nat.c: Adjust include.
603 * mips-nbsd-nat.c: Rename to ...
604 * mips-netbsd-nat.c: ... this, adjust include.
605 * mips-nbsd-tdep.c: Rename to ...
606 * mips-netbsd-tdep.c: ... this, adjust include.
607 * mips-nbsd-tdep.h: Rename to ...
608 * mips-netbsd-tdep.h: ... this.
609 * nbsd-nat.c: Rename to ...
610 * netbsd-nat.c: ... this, adjust include.
611 * nbsd-nat.h: Rename to ...
612 * netbsd-nat.h: ... this, adjust include.
613 * nbsd-tdep.c: Rename to ...
614 * netbsd-tdep.c: ... this, adjust include.
615 * nbsd-tdep.h: Rename to ...
616 * netbsd-tdep.h: ... this.
617 * ppc-nbsd-nat.c: Rename to ...
618 * ppc-netbsd-nat.c: ... this, adjust include.
619 * ppc-nbsd-tdep.c: Rename to ...
620 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
621 * ppc-nbsd-tdep.h: Rename to ...
622 * ppc-netbsd-tdep.h: ... this.
623 * sh-nbsd-nat.c: Rename to ...
624 * sh-netbsd-nat.c: ... this, adjust include.
625 * sh-nbsd-tdep.c: Rename to ...
626 * sh-netbsd-tdep.c: ... this, adjust include.
627 * sparc-nbsd-nat.c: Rename to ...
628 * sparc-netbsd-nat.c: ... this.
629 * sparc-nbsd-tdep.c: Rename to ...
630 * sparc-netbsd-tdep.c: ... this, adjust include.
631 * sparc64-nbsd-nat.c: Rename to ...
632 * sparc64-netbsd-nat.c: ... this.
633 * sparc64-nbsd-tdep.c: Rename to ...
634 * sparc64-netbsd-tdep.c: ... this, adjust include.
635 * sparc64-tdep.h: Adjust comment.
636 * vax-bsd-nat.c: Adjust include.
637 * vax-nbsd-tdep.c: Rename to ...
638 * vax-netbsd-tdep.c: ... this, adjust include.
639
d7a78e5c
TT
6402020-10-12 Tom Tromey <tom@tromey.com>
641
642 * target.h (struct target_ops) <get_section_table>: Update.
643 (target_get_section_table): Update.
644 * target.c (target_get_section_table, target_section_by_addr)
645 (memory_xfer_partial_1): Update.
646 * target-section.h (target_section_table): Now an alias.
647 * target-delegates.c: Rebuild.
648 * target-debug.h (target_debug_print_target_section_table_p):
649 Rename from target_debug_print_struct_target_section_table_p.
650 * symfile.c (build_section_addr_info_from_section_table): Update.
651 * solib.c (solib_map_sections, solib_contains_address_p): Update.
652 * solib-svr4.c (scan_dyntag): Update.
653 * solib-dsbt.c (scan_dyntag): Update.
654 * remote.c (remote_target::remote_xfer_live_readonly_partial):
655 Update.
656 * record-full.c (record_full_core_target::xfer_partial): Update.
657 * progspace.h (struct program_space) <target_sections>: Update.
658 * exec.h (print_section_info): Update.
659 * exec.c (exec_target::close, build_section_table)
660 (add_target_sections, add_target_sections_of_objfile)
661 (remove_target_sections, exec_on_vfork)
662 (section_table_available_memory)
663 (section_table_xfer_memory_partial)
664 (exec_target::get_section_table, exec_target::xfer_partial)
665 (print_section_info, set_section_command)
666 (exec_set_section_address, exec_target::has_memory): Update.
667 * corelow.c (core_target::build_file_mappings)
668 (core_target::xfer_partial, core_target::info_proc_mappings)
669 (core_target::info_proc_mappings): Update.
670 * bfd-target.c (class target_bfd): Update
671
eda214ce
TT
6722020-10-12 Tom Tromey <tom@tromey.com>
673
674 * progspace.c (program_space::~program_space): Don't call
675 clear_section_table.
676 * exec.h (clear_section_table): Don't declare.
677 * exec.c (exec_target::close): Update.
678 (clear_section_table): Remove.
679
91840ee3
TT
6802020-10-12 Tom Tromey <tom@tromey.com>
681
682 * exec.c (add_target_sections_of_objfile): Simplify.
683
2d128614
TT
6842020-10-12 Tom Tromey <tom@tromey.com>
685
686 * solib.c (solib_map_sections): Update.
687 * record-full.c (record_full_core_open_1): Update.
688 * exec.h (build_section_table): Return a target_section_table.
689 * exec.c (exec_file_attach): Update.
690 (build_section_table): Return a target_section_table.
691 * corelow.c (core_target::core_target): Update.
692 * bfd-target.c (target_bfd::target_bfd): Update.
693
bb2a6777
TT
6942020-10-12 Tom Tromey <tom@tromey.com>
695
696 * target.c (target_section_by_addr, memory_xfer_partial_1):
697 Update.
698 * target-section.h (struct target_section_table): Use
699 std::vector.
700 * symfile.h (build_section_addr_info_from_section_table): Take a
701 target_section_table.
702 * symfile.c (build_section_addr_info_from_section_table): Take a
703 target_section_table.
704 * solist.h (struct so_list) <sections>: Change type.
705 <sections_end>: Remove.
706 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
707 (solib_contains_address_p): Update.
708 * solib-svr4.c (scan_dyntag): Update.
709 * solib-dsbt.c (scan_dyntag): Update.
710 * remote.c (remote_target::remote_xfer_live_readonly_partial):
711 Update.
712 * record-full.c (record_full_core_start, record_full_core_end):
713 Remove.
714 (record_full_core_sections): New global.
715 (record_full_core_open_1, record_full_core_target::xfer_partial):
716 Update.
717 * exec.h (build_section_table, section_table_xfer_memory_partial)
718 (add_target_sections): Take a target_section_table.
719 * exec.c (exec_file_attach, clear_section_table): Update.
720 (resize_section_table): Remove.
721 (build_section_table, add_target_sections): Take a
722 target_section_table.
723 (add_target_sections_of_objfile, remove_target_sections)
724 (exec_on_vfork): Update.
725 (section_table_available_memory): Take a target_section_table.
726 (section_table_read_available_memory): Update.
727 (section_table_xfer_memory_partial): Take a target_section_table.
728 (print_section_info, set_section_command)
729 (exec_set_section_address, exec_target::has_memory): Update.
730 * corelow.c (class core_target) <m_core_section_table,
731 m_core_file_mappings>: Remove braces.
732 <~core_target>: Remove.
733 (core_target::core_target): Update.
734 (core_target::~core_target): Remove.
735 (core_target::build_file_mappings)
736 (core_target::xfer_memory_via_mappings)
737 (core_target::xfer_partial, core_target::info_proc_mappings):
738 Update.
739 * bfd-target.c (target_bfd::xfer_partial): Update.
740 (target_bfd::target_bfd): Update.
741 (target_bfd::~target_bfd): Remove.
742
7b466b10
TT
7432020-10-12 Tom Tromey <tom@tromey.com>
744
745 * target.h (struct target_section, struct target_section_table):
746 Move to target-section.h.
747 * target-section.h: New file.
748
87a37e5e
PA
7492020-10-12 Pedro Alves <pedro@palves.net>
750
751 PR exp/26602
752 * valops.c (struct struct_field_searcher): New.
753 (update_search_result): Rename to ...
754 (struct_field_searcher::update_result): ... this. Simplify
755 prototype. Record all found fields.
756 (do_search_struct_field): Rename to ...
757 (struct_field_searcher::search): ... this. Simplify prototype.
758 Maintain stack of visited baseclass path. Call update_result for
759 fields too. Keep searching fields in baseclasses instead of
760 stopping at the first found field.
761 (search_struct_field): Use struct_field_searcher. When looking
762 for fields, report ambiguous access attempts.
763
9370fd51
AB
7642020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * frame.c (inside_main_func): Check full symbols as well as
767 minimal symbols.
768
59c8a30b
JB
7692020-10-09 Joel Brobecker <brobecker@adacore.com>
770
771 * ada-lang.c (advance_wild_match): Rewrite the function's
772 description. Change the type of target0, t0 and t1 to char.
773
7c184d33
TT
7742020-10-09 Tom Tromey <tromey@adacore.com>
775
776 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
777
5c4258f4
TT
7782020-10-09 Tom Tromey <tromey@adacore.com>
779
780 * ada-lang.h (ada_encode): Return std::string.
781 * ada-lang.c (ada_encode_1): Return std::string.
782 (ada_encode): Likewise.
783 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
784 Update.
785 * ada-exp.y (block_lookup, write_var_or_type): Update.
786
3d87245c
HD
7872020-10-09 Hannes Domani <ssbssa@yahoo.de>
788
789 PR exp/26714
790 * printcmd.c (print_formatted): Handle void results as
791 unformatted prints.
792
bbb826f5
AB
7932020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * arch/aarch32.c (aarch32_create_target_description): Release the
796 target_desc_up as late as possible.
797 * arch/aarch64.c (aarch64_create_target_description): Likewise.
798 * arch/amd64.c (amd64_create_target_description): Likewise.
799 * arch/arc.c (arc_create_target_description): Return a
800 target_desc_up, don't release it.
801 * arch/arc.h (arc_create_target_description): Update declaration.
802 (arc_lookup_target_description): Move target_desc_up into the
803 cache, and return a borrowed pointer.
804 * arch/arm.c (arm_create_target_description): Release the
805 target_desc_up as late as possible.
806 * arch/i386.c (i386_create_target_description): Likewise.
807 * arch/riscv.h (riscv_create_target_description): Update
808 declaration to match definition.
809 * arch/tic6x.c (tic6x_create_target_description): Release the
810 target_desc_up as late as possible.
811
361cb219
AB
8122020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
815 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
816
f5c4b229
JV
8172020-10-09 Jan Vrany <jan.vrany@labware.com>
818
819 * source.c (directory_command): Notify observers that "directories"
820 parameter has changed.
821
b2701685
TT
8222020-10-08 Tom Tromey <tom@tromey.com>
823
824 * cli/cli-cmds.c (print_disassembly): Style function name and
825 addresses. Add _() wrappers.
826
ada508b6
SV
8272020-10-08 Shahab Vahedi <shahab@synopsys.com>
828
829 * NEWS: Mention ARC support in GDBserver.
830
51a948fd
AB
8312020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * arch/aarch32.c (aarch32_create_target_description): Release
834 unique_ptr returned from allocate_target_description.
835 * arch/aarch64.c (aarch64_create_target_description): Likewise.
836 * arch/amd64.c (amd64_create_target_description): Likewise.
837 * arch/arc.c (arc_create_target_description): Likewise.
838 * arch/arm.c (arm_create_target_description): Likewise.
839 * arch/i386.c (i386_create_target_description): Likewise.
840 * arch/riscv.c (riscv_create_target_description): Update return
841 type. Handle allocate_target_description returning a unique_ptr.
842 (riscv_lookup_target_description): Update to handle unique_ptr.
843 * arch/tic6x.c (tic6x_create_target_description): Release
844 unique_ptr returned from allocate_target_description.
845 * features/microblaze-with-stack-protect.c: Regenerate.
846 * features/microblaze.c: Regenerate.
847 * features/mips-dsp-linux.c: Regenerate.
848 * features/mips-linux.c: Regenerate.
849 * features/mips64-dsp-linux.c: Regenerate.
850 * features/mips64-linux.c: Regenerate.
851 * features/nds32.c: Regenerate.
852 * features/nios2.c: Regenerate.
853 * features/or1k.c: Regenerate.
854 * features/rs6000/powerpc-32.c: Regenerate.
855 * features/rs6000/powerpc-32l.c: Regenerate.
856 * features/rs6000/powerpc-403.c: Regenerate.
857 * features/rs6000/powerpc-403gc.c: Regenerate.
858 * features/rs6000/powerpc-405.c: Regenerate.
859 * features/rs6000/powerpc-505.c: Regenerate.
860 * features/rs6000/powerpc-601.c: Regenerate.
861 * features/rs6000/powerpc-602.c: Regenerate.
862 * features/rs6000/powerpc-603.c: Regenerate.
863 * features/rs6000/powerpc-604.c: Regenerate.
864 * features/rs6000/powerpc-64.c: Regenerate.
865 * features/rs6000/powerpc-64l.c: Regenerate.
866 * features/rs6000/powerpc-7400.c: Regenerate.
867 * features/rs6000/powerpc-750.c: Regenerate.
868 * features/rs6000/powerpc-860.c: Regenerate.
869 * features/rs6000/powerpc-altivec32.c: Regenerate.
870 * features/rs6000/powerpc-altivec32l.c: Regenerate.
871 * features/rs6000/powerpc-altivec64.c: Regenerate.
872 * features/rs6000/powerpc-altivec64l.c: Regenerate.
873 * features/rs6000/powerpc-e500.c: Regenerate.
874 * features/rs6000/powerpc-e500l.c: Regenerate.
875 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
876 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
877 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
878 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
879 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
880 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
881 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
882 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
883 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
884 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
885 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
886 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
887 * features/rs6000/powerpc-vsx32.c: Regenerate.
888 * features/rs6000/powerpc-vsx32l.c: Regenerate.
889 * features/rs6000/powerpc-vsx64.c: Regenerate.
890 * features/rs6000/powerpc-vsx64l.c: Regenerate.
891 * features/rs6000/rs6000.c: Regenerate.
892 * features/rx.c: Regenerate.
893 * features/s390-gs-linux64.c: Regenerate.
894 * features/s390-linux32.c: Regenerate.
895 * features/s390-linux32v1.c: Regenerate.
896 * features/s390-linux32v2.c: Regenerate.
897 * features/s390-linux64.c: Regenerate.
898 * features/s390-linux64v1.c: Regenerate.
899 * features/s390-linux64v2.c: Regenerate.
900 * features/s390-te-linux64.c: Regenerate.
901 * features/s390-tevx-linux64.c: Regenerate.
902 * features/s390-vx-linux64.c: Regenerate.
903 * features/s390x-gs-linux64.c: Regenerate.
904 * features/s390x-linux64.c: Regenerate.
905 * features/s390x-linux64v1.c: Regenerate.
906 * features/s390x-linux64v2.c: Regenerate.
907 * features/s390x-te-linux64.c: Regenerate.
908 * features/s390x-tevx-linux64.c: Regenerate.
909 * features/s390x-vx-linux64.c: Regenerate.
910 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
911 from allocate_target_description.
912 * target-descriptions.c (allocate_target_description): Update
913 return type.
914 (print_c_tdesc::visit_pre): Release unique_ptr returned from
915 allocate_target_description.
916
485c47e5
TT
9172020-10-07 Tom Tromey <tromey@adacore.com>
918
919 * unittests/search-memory-selftests.c: New file.
920 * Makefile.in (SELFTESTS_SRCS): Add
921 unittests/search-memory-selftests.c.
922
3a135a91
TT
9232020-10-07 Tom Tromey <tromey@adacore.com>
924
925 PR gdb/16930:
926 * findcmd.c (_initialize_mem_search): Mention that the range is
927 inclusive.
928
4a72de73
TT
9292020-10-07 Tom Tromey <tromey@adacore.com>
930
931 * target.h (simple_search_memory): Don't declare.
932 * target.c (simple_search_memory): Move to gdbsupport.
933 (default_search_memory): Update.
934 * remote.c (remote_target::search_memory): Update.
935
a038ffd8
SM
9362020-10-07 Simon Marchi <simon.marchi@efficios.com>
937
938 * Makefile.in (COMPILE): Add CXXFLAGS.
939 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
940 (check-headers): Add CXXFLAGS.
941
cc463201
AK
9422020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
943
944 * arc-linux-tdep.h: New file.
945 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
946 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
947 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
948 arc_linux_gregset, arc_linux_v2_regset,
949 arc_linux_iterate_over_regset_sections,
950 arc_linux_core_read_description): Implement.
951 (arc_linux_init_osabi): Set iterate_over_regset_sections.
952 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
953 (arc_gdbarch_features_create): Add.
954 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
955
e4bd363f
SV
9562020-10-07 Shahab Vahedi <shahab@synopsys.com>
957
958 * arch/arc.h: Rename "arc_gdbarch_features" to
959 "arc_arch_features".
960 * arc-tdep.h: Likewise.
961 * arc-tdep.c: Likewise.
962
b68bef99
TBA
9632020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
964
965 * infcmd.c (attach_command): Remove the redundant call to
966 `clear_proceed_status`.
967
4641551a
KR
9682020-10-07 Kamil Rytarowski <n54@gmx.com>
969
970 * nat/netbsd-nat.c (write_memory, read_memory): Update.
971
91e5e8db
KR
9722020-10-07 Kamil Rytarowski <n54@gmx.com>
973
974 * nat/netbsd-nat.c (write_memory, read_memory): Add.
975 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
976 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
977
64c03bdb
SM
9782020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
981 (_initialize_break_catch_sig): Don't allocate array.
982
31a8f60f
AB
9832020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
984
985 * symtab.c (find_pc_line): Return unmapped addresses when the
986 requested address is also unmapped.
987
9e6dbd8b
SM
9882020-10-05 Simon Marchi <simon.marchi@efficios.com>
989
990 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
991 tui/tui-out.h.
992
a1d217e8
SM
9932020-10-05 Simon Marchi <simon.marchi@efficios.com>
994
995 * amd64-windows-tdep.c (amd64_windows_return_value): Use
996 type::is_vector instead of TYPE_VECTOR.
997
7d144117
SM
9982020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * auto-load.c (auto_load_objfile_script_1): Don't use
1001 debugfile_holder as temporary variable when stripping drive
1002 letter.
1003
cd096ec8
HD
10042020-10-05 Hannes Domani <ssbssa@yahoo.de>
1005
1006 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1007 Add TYPE_CODE_COMPLEX.
1008 (amd64_windows_return_value): Fix types returned via XMM0.
1009
b58e7f72
AH
10102020-10-05 Alan Hayward <alan.hayward@arm.com>
1011
1012 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1013 AArch64/ARM maintainers.
1014
8d378f27
SM
10152020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * NEWS: Mention set/show debug event-loop.
1018
d5519913
TT
10192020-10-02 Tom Tromey <tromey@adacore.com>
1020
1021 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1022 REG_EXTENDED.
1023
18b67edc
SM
10242020-10-02 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1027 * procfs.c (procfs_inferior_created): Remove.
1028 (_initialize_procfs): Don't register procfs_inferior_created.
1029
6b01403b
SM
10302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * async-event.c (invoke_async_signal_handlers): Add debug
1033 print.
1034 (check_async_event_handlers): Likewise.
1035 * event-top.c (show_debug_event_loop): New function.
1036 (_initialize_event_top): Register "set debug event-loop"
1037 setting.
1038
ba988419
SM
10392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1042 * debug.h: Remove.
1043 * infrun.c: Include gdbsupport/common-debug.h.
1044 * linux-nat.c: Likewise.
1045
db20ebdf
SM
10462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * async-event.h (create_async_signal_handler): Add name
1049 parameter.
1050 (create_async_event_handler): Likewise.
1051 * async-event.c (struct async_signal_handler) <name>: New field.
1052 (struct async_event_handler) <name>: New field.
1053 (create_async_signal_handler): Assign name.
1054 (create_async_event_handler): Assign name.
1055 * event-top.c (async_init_signals): Pass name when creating
1056 handler.
1057 * infrun.c (_initialize_infrun): Likewise.
1058 * record-btrace.c (record_btrace_push_target): Likewise.
1059 * record-full.c (record_full_open): Likewise.
1060 * remote-notif.c (remote_notif_state_allocate): Likewise.
1061 * remote.c (remote_target::open_1): Likewise.
1062 * tui/tui-win.c (tui_initialize_win): Likewise.
1063
2554f6f5
SM
10642020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * async-event.c (initialize_async_signal_handlers): Pass name to
1067 add_file_handler
1068 * event-top.c (ui_register_input_event_handler): Likewise.
1069 * linux-nat.c (linux_nat_target::async): Likewise.
1070 * run-on-main-thread.c (_initialize_run_on_main_thread):
1071 Likewise
1072 * ser-base.c (reschedule): Likewise.
1073 (ser_base_async): Likewise.
1074 * tui/tui-io.c: Likewise.
1075 * top.h (struct ui) <num>: New field.
1076 * top.c (highest_ui_num): New variable.
1077 (ui::ui): Initialize num.
1078
a7aba266
SM
10792020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * observable.h <inferior_created>: Remove parameters. Update all
1082 listeners.
1083 * inferior.h (post_create_inferior): Remove target parameter.
1084 Update all callers.
1085
048fde1e 10862020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1087
1088 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1089 and DW_MACRO_undef_strx.
1090 (dwarf_decode_macros): Likewise
1091 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1092 which is the value of DW_AT_str_offsets_base.
1093 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1094 str_offsets_base.
1095
064280be
KR
10962020-10-01 Kamil Rytarowski <n54@gmx.com>
1097
1098 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1099
6ff33035
KR
11002020-10-01 Kamil Rytarowski <n54@gmx.com>
1101
1102 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1103 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1104
1eb6eb79
KR
11052020-10-01 Kamil Rytarowski <n54@gmx.com>
1106
1107 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1108
95eb9e54
TV
11092020-09-30 Tom de Vries <tdevries@suse.de>
1110
1111 PR symtab/26683
1112 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1113
cae21f8e
TT
11142020-09-30 Tom Tromey <tromey@adacore.com>
1115
1116 * dwarf2/read.c (handle_variant): Use constant_value.
1117
529908cb
TT
11182020-09-29 Tom Tromey <tom@tromey.com>
1119
1120 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1121 (read_file_scope, dwarf2_get_pc_bounds)
1122 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1123 (read_structure_type, handle_struct_member_die)
1124 (read_enumeration_type, read_array_type, read_set_type)
1125 (read_tag_pointer_type, read_tag_reference_type)
1126 (read_subroutine_type, read_base_type, read_subrange_type)
1127 (read_full_die_1, partial_die_info::read)
1128 (partial_die_info::read, by, new_symbol)
1129 (dwarf2_const_value_data, dwarf2_const_value_attr)
1130 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1131 (prepare_one_comp_unit): Update.
1132 * dwarf2/attribute.h (DW_UNSND): Remove.
1133
c45bc3f8
TT
11342020-09-29 Tom Tromey <tom@tromey.com>
1135
1136 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1137 (read_subroutine_type, partial_die_info::read)
1138 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1139 (dwarf2_add_member_fn): Update.
1140 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1141 * dwarf2/attribute.c (attribute::as_boolean): New method.
1142
23dca5c3
TT
11432020-09-29 Tom Tromey <tom@tromey.com>
1144
1145 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1146 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1147 method.
1148 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1149
52c14d11
TT
11502020-09-29 Tom Tromey <tom@tromey.com>
1151
1152 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1153 the attribute's form.
1154
e8e5c158
TT
11552020-09-29 Tom Tromey <tom@tromey.com>
1156
1157 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1158 (dwarf2_add_member_fn): Update.
1159 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1160 * dwarf2/attribute.c (attribute::defaulted): New method, from
1161 is_valid_DW_AT_defaulted.
1162
d4df075e
TT
11632020-09-29 Tom Tromey <tom@tromey.com>
1164
1165 * dwarf2/read.c (dw2_get_file_names_reader)
1166 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1167 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1168 (dwarf2_symbol_mark_computed): Use as_unsigned.
1169 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1170 method.
1171 <form_is_section_offset>: Update comment.
1172
bf23a268
TT
11732020-09-29 Tom Tromey <tom@tromey.com>
1174
1175 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1176 dwarf2_default_access_attribute. Look up attribute.
1177 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1178 Update.
1179
7a5f294d
TT
11802020-09-29 Tom Tromey <tom@tromey.com>
1181
1182 * dwarf2/read.c (skip_one_die): Update.
1183 (read_full_die_1): Change how reprocessing is done.
1184 (partial_die_info::read): Update.
1185 (read_attribute_value): Remove need_reprocess parameter.
1186 (read_attribute): Likewise.
1187 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1188 New method.
1189
36d378cf
TT
11902020-09-29 Tom Tromey <tom@tromey.com>
1191
1192 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1193 (dwarf2_const_value_attr, dump_die_shallow)
1194 (dwarf2_fetch_constant_bytes): Update.
1195 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1196 comment.
1197 <set_address>: New method.
1198 (DW_ADDR): Remove.
1199 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1200 (attribute::as_string, attribute::as_address): Add assert.
1201
fe56917a
TT
12022020-09-29 Tom Tromey <tom@tromey.com>
1203
1204 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1205 (read_attribute_reprocess, read_attribute_value): Update.
1206 (read_attribute): Clear requires_reprocessing.
1207 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1208 form_requires_reprocessing>: New methods.
1209 <string_init>: Clear requires_reprocessing.
1210 <set_unsigned_reprocess>: New method.
1211 <name>: Shrink by one bit.
1212 <requires_reprocessing>: New member.
1213 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1214 method.
1215
414ad644
TT
12162020-09-29 Tom Tromey <tom@tromey.com>
1217
1218 * dwarf2/read.c (read_attribute_value): Update.
1219 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1220 set_unsigned>: New methods.
1221 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1222
1bc397c5
TT
12232020-09-29 Tom Tromey <tom@tromey.com>
1224
1225 * dwarf2/read.c (get_alignment, read_array_order)
1226 (read_attribute_value, dwarf2_const_value_attr)
1227 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1228 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1229 New methods.
1230 (DW_SND): Remove.
1231
630ed6b9
TT
12322020-09-29 Tom Tromey <tom@tromey.com>
1233
1234 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1235 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1236 Update.
1237 * dwarf2/attribute.h (struct attribute) <as_signature,
1238 set_signature>: New methods.
1239 (DW_SIGNATURE): Remove.
1240
9d2246fc
TT
12412020-09-29 Tom Tromey <tom@tromey.com>
1242
1243 * dwarf2/read.c (read_call_site_scope)
1244 (handle_data_member_location, dwarf2_add_member_fn)
1245 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1246 (partial_die_info::read, read_attribute_value)
1247 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1248 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1249 (dwarf2_symbol_mark_computed): Update.
1250 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1251 methods.
1252 (DW_BLOCK): Remove.
1253 * dwarf2/attribute.c (attribute::form_is_block): Add
1254 DW_FORM_data16.
1255
c6481205
TT
12562020-09-29 Tom Tromey <tom@tromey.com>
1257
1258 * dwarf2/read.c (read_cutu_die_from_dwo)
1259 (read_attribute_reprocess, read_attribute_value, read_attribute)
1260 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1261 (dwarf2_fetch_constant_bytes): Update.
1262 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1263 <set_string_noncanonical, set_string_canonical>: New methods.
1264 <string_is_canonical>: Update comment.
1265 <canonical_string_p>: Add assert.
1266 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1267 * dwarf2/attribute.c (attribute::form_is_string): New method.
1268 (attribute::string): Use it.
1269
3b64bf15
TT
12702020-09-29 Tom Tromey <tom@tromey.com>
1271
1272 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1273 (dump_die_shallow): Use canonical_string_p.
1274 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1275 method.
1276
2c830f54
TT
12772020-09-29 Tom Tromey <tom@tromey.com>
1278
1279 * dwarf2/read.c (partial_die_info::read)
1280 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1281 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1282 attribute::as_string.
1283
6c412691
TT
12842020-09-29 Tom Tromey <tom@tromey.com>
1285
1286 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1287 DW_ADDR.
1288 (attribute::string): Don't use DW_STRING.
1289 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1290 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1291
95f982e5
TT
12922020-09-29 Tom Tromey <tom@tromey.com>
1293
1294 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1295 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1296 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1297 * dwarf2/attribute.h (struct attribute): Rename methods.
1298 * dwarf2/attribute.c (attribute::as_address): Rename from
1299 value_as_address.
1300 (attribute::as_string): Rename from value_as_string.
1301
f800b00e
TT
13022020-09-29 Tom Tromey <tom@tromey.com>
1303
1304 * dwarf2/read.c (partial_die_info::read) <case
1305 DW_AT_linkage_name>: Use value_as_string.
1306 (dwarf2_string_attr): Use value_as_string.
1307 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1308 method.
1309 * dwarf2/attribute.c (attribute::value_as_string): New method.
1310
de38d64a
PA
13112020-09-29 Pedro Alves <pedro@palves.net>
1312
1313 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1314 defined before using '#pragma GCC diagnostic' instead of checking
1315 __clang__.
1316
9aed480c
TT
13172020-09-28 Tom Tromey <tom@tromey.com>
1318
1319 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1320 (handle_signal_stop): Update.
1321 * procfs.c (procfs_target::insert_watchpoint): Update.
1322 * target.h (target_have_steppable_watchpoint): Now a function.
1323
8a3ecb79
TT
13242020-09-28 Tom Tromey <tom@tromey.com>
1325
1326 * infrun.c (set_schedlock_func): Update.
1327 * target.h (target_can_lock_scheduler): Now a function.
1328
55f6301a
TT
13292020-09-28 Tom Tromey <tom@tromey.com>
1330
1331 * inferior.h (class inferior) <has_execution>: Update.
1332 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1333 * valops.c (find_function_in_inferior)
1334 (value_allocate_space_in_inferior): Update.
1335 * top.c (kill_or_detach): Update.
1336 * target.c (target_preopen, set_target_permissions): Update.
1337 (target_has_execution_current): Remove.
1338 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1339 Update.
1340 * solib.c (update_solib_list, reload_shared_libraries): Update.
1341 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1342 * solib-dsbt.c (enable_break): Update.
1343 * score-tdep.c (score7_fetch_inst): Update.
1344 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1345 Update.
1346 * remote.c (remote_target::start_remote)
1347 (remote_target::remote_check_symbols, remote_target::open_1)
1348 (remote_target::remote_detach_1, remote_target::verify_memory)
1349 (remote_target::xfer_partial, remote_target::read_description)
1350 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1351 * record-full.c (record_full_open_1): Update.
1352 * record-btrace.c (record_btrace_target_open): Update.
1353 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1354 (value_nsstring): Update.
1355 * linux-thread-db.c (add_thread_db_info)
1356 (thread_db_find_new_threads_silently, check_thread_db_callback)
1357 (try_thread_db_load_1, record_thread): Update.
1358 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1359 Update.
1360 * linux-fork.c (checkpoint_command): Update.
1361 * infrun.c (set_non_stop, set_observer_mode)
1362 (check_multi_target_resumption, for_each_just_stopped_thread)
1363 (maybe_remove_breakpoints, normal_stop)
1364 (class infcall_suspend_state): Update.
1365 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1366 (info_program_command, attach_command): Update.
1367 * infcall.c (call_function_by_hand_dummy): Update.
1368 * inf-loop.c (inferior_event_handler): Update.
1369 * gcore.c (gcore_command, derive_heap_segment): Update.
1370 * exec.c (exec_file_command): Update.
1371 * eval.c (evaluate_subexp): Update.
1372 * compile/compile.c (compile_to_object): Update.
1373 * cli/cli-dump.c (restore_command): Update.
1374 * breakpoint.c (update_watchpoint)
1375 (update_inserted_breakpoint_locations)
1376 (insert_breakpoint_locations, get_bpstat_thread): Update.
1377 * target.h (target_has_execution): Remove macro.
1378 (target_has_execution_current): Don't declare.
1379 (target_has_execution): Rename from target_has_execution_1. Add
1380 argument default.
1381
05374cfd
TT
13822020-09-28 Tom Tromey <tom@tromey.com>
1383
1384 * mi/mi-main.c (exec_reverse_continue)
1385 (mi_cmd_list_target_features): Update.
1386 * infrun.c (set_exec_direction_func): Update.
1387 * target.c (default_execution_direction): Update.
1388 * reverse.c (exec_reverse_once): Update.
1389 * target.h (target_can_execute_reverse): Now a function.
1390
9dccd06e
TT
13912020-09-28 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-regs.c (tui_get_register)
1394 (tui_data_window::show_registers): Update.
1395 * thread.c (scoped_restore_current_thread::restore)
1396 (scoped_restore_current_thread::scoped_restore_current_thread):
1397 Update.
1398 * regcache-dump.c (regcache_print): Update.
1399 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1400 Update.
1401 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1402 * mep-tdep.c (current_me_module, current_options): Update.
1403 * linux-thread-db.c (thread_db_load): Update.
1404 * infcmd.c (registers_info, info_vector_command)
1405 (info_float_command): Update.
1406 * ia64-tdep.c (ia64_frame_prev_register)
1407 (ia64_sigtramp_frame_prev_register): Update.
1408 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1409 * gcore.c (derive_stack_segment): Update.
1410 * frame.c (get_current_frame, has_stack_frames): Update.
1411 * findvar.c (language_defn::read_var_value): Update.
1412 * arm-tdep.c (arm_pc_is_thumb): Update.
1413 * target.c (target_has_registers): Rename from
1414 target_has_registers_1.
1415 * target.h (target_has_registers): Remove macro.
1416 (target_has_registers): Rename from target_has_registers_1.
1417
841de120
TT
14182020-09-28 Tom Tromey <tom@tromey.com>
1419
1420 * windows-tdep.c (tlb_make_value): Update.
1421 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1422 * thread.c (scoped_restore_current_thread::restore)
1423 (scoped_restore_current_thread::scoped_restore_current_thread)
1424 (thread_command): Update.
1425 * stack.c (backtrace_command_1, frame_apply_level_command)
1426 (frame_apply_all_command, frame_apply_command): Update.
1427 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1428 Update.
1429 * gcore.c (derive_stack_segment): Update.
1430 * frame.c (get_current_frame, has_stack_frames): Update.
1431 * auxv.c (info_auxv_command): Update.
1432 * ada-tasks.c (ada_build_task_list): Update.
1433 * target.c (target_has_stack): Rename from target_has_stack_1.
1434 * target.h (target_has_stack): Remove macro.
1435 (target_has_stack): Rename from target_has_stack_1.
1436
a739972c
TT
14372020-09-28 Tom Tromey <tom@tromey.com>
1438
1439 * target.c (target_has_memory): Rename from target_has_memory_1.
1440 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1441 * thread.c (scoped_restore_current_thread::restore)
1442 (scoped_restore_current_thread::scoped_restore_current_thread):
1443 Update.
1444 * frame.c (get_current_frame, has_stack_frames): Update.
1445 * target.h (target_has_memory): Remove macro.
1446 (target_has_memory): Rename from target_has_memory_1.
1447
5b8a4776
TT
14482020-09-28 Tom Tromey <tom@tromey.com>
1449
1450 * target.c (target_has_all_memory_1): Remove.
1451 * target.h (target_has_all_memory): Remove define.
1452 (target_has_all_memory_1): Don't declare.
1453
bd356ec6
SM
14542020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1455
1456 * ser-base.c: Adjust comments formatting.
1457
2c72d5e5
TT
14582020-09-27 Tom Tromey <tom@tromey.com>
1459
1460 PR tui/25342:
1461 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1462
35a98237
TT
14632020-09-27 Tom Tromey <tom@tromey.com>
1464
1465 PR tui/25342:
1466 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1467
9e820dec
TT
14682020-09-27 Tom Tromey <tom@tromey.com>
1469
1470 * unittests/tui-selftests.c: Update.
1471 * tui/tui-winsource.h (struct tui_source_window_base)
1472 <extra_margin, show_line_number, refresh_pad>: New methods.
1473 <m_max_length, m_pad>: New members.
1474 (tui_copy_source_line): Update.
1475 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1476 first_col, line_width, ndigits parameters. Add length.
1477 (tui_source_window_base::show_source_line): Write to pad. Line
1478 number now 0-based.
1479 (tui_source_window_base::refresh_pad): New method.
1480 (tui_source_window_base::show_source_content): Write to pad. Call
1481 refresh_pad.
1482 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1483 not refill.
1484 (tui_source_window_base::update_exec_info): Call
1485 show_line_number.
1486 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1487 method.
1488 <m_digits>: New member.
1489 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1490 and m_max_length.
1491 (tui_source_window::show_line_number): New method.
1492 * tui/tui-io.h (tui_puts): Fix comment.
1493 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1494 m_max_length.
1495
c15c15c8
TT
14962020-09-27 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-winsource.c
1499 (tui_source_window_base::set_is_exec_point_at): Don't call
1500 show_source_line.
1501
149830c1
TT
15022020-09-27 Tom Tromey <tom@tromey.com>
1503
1504 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1505 method.
1506 <erase>: Update.
1507 <cursor_x, cursor_y>: Remove.
1508 <m_inner_window>: New member.
1509 (tui_py_window::rerender): Create inner window.
1510 (tui_py_window::output): Write to inner window.
1511
8f9929bb
GR
15122020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1513
1514 PR python/26586
1515 * cli/cli-script.c (execute_control_commands): don't set
1516 instream to nullptr here as this breaks the from_tty argument
1517 to gdb.execute in Python.
1518 (execute_user_command): set instream to nullptr here instead.
1519
956bdb59
SM
15202020-09-25 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * infrun.h (infrun_debug_printf): Fix formatting.
1523 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1524
3b93626b
SJ
15252020-09-25 Saagar Jha <saagar@saagarjha.com>
1526
1527 * compile/compile-object-load.h (struct munmap_list): Add
1528 explicitly-defined move constructor.
1529
b551a89f
TT
15302020-09-24 Tom Tromey <tromey@adacore.com>
1531
1532 PR tui/26638:
1533 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1534 method.
1535 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1536 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1537 (tui_prev_win): Rewrite.
1538
99bb393f
HD
15392020-09-23 Hannes Domani <ssbssa@yahoo.de>
1540
1541 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1542 in WOW64 processes as SIGINT.
1543 * nat/windows-nat.h: Make wow64_process a shared variable.
1544 * windows-nat.c: Remove static wow64_process variable.
1545
20a5fcbd
TT
15462020-09-23 Tom Tromey <tom@tromey.com>
1547
1548 PR symtab/25470:
1549 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1550 offset and bit size.
1551 * printcmd.c (print_scalar_formatted): Handle zero-length
1552 integer.
1553 (print_scalar_formatted): Use bit_size_differs_p.
1554 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1555 constant.
1556 (union type_specific): <int_stuff>: New member.
1557 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1558 methods.
1559 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1560 TYPE_SPECIFIC_FIELD.
1561 (recursive_dump_type, copy_type_recursive): Update.
1562 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1563 DW_AT_data_bit_offset.
1564
bac51ab7
TT
15652020-09-23 Tom Tromey <tom@tromey.com>
1566
1567 * utils.h (class gdb_argv): Add move operators.
1568 <append>: New methods.
1569 * compile/compile.c (build_argc_argv): Remove.
1570 (compile_args_argc): Remove.
1571 (compile_args_argv): Change type.
1572 (set_compile_args): Simplify.
1573 (append_args): Remove.
1574 (filter_args): Remove argcp parameter.
1575 (get_args): Return gdb_argv. Simplify.
1576 (compile_to_object): Update.
1577
92677124
TT
15782020-09-23 Tom Tromey <tom@tromey.com>
1579
1580 * compile/compile-object-run.c (do_module_cleanup)
1581 <~do_module_cleanup> :Remove.
1582 (do_module_cleanup): Update.
1583 * compile/compile-object-load.h (struct munmap_list): Add move
1584 assignment operator.
1585 <source_file>: Now a std::string.
1586 <munmap_list>: Rename. No longer a pointer.
1587 * compile/compile-object-load.c (struct setup_sections_data): Add
1588 constructor.
1589 <setup_one_section>: Declare.
1590 <munmap_list>: Move earlier.
1591 <m_bfd>: New member.
1592 <m_last_size, m_last_section_first, m_last_prot,
1593 m_last_max_alignment>: Rename, add initializers where needed.
1594 (setup_sections_data::setup_one_section): Rename from
1595 setup_sections. Update.
1596 (compile_object_load): Update. Don't use bfd_map_over_sections.
1597
e616f60a
TT
15982020-09-23 Tom Tromey <tom@tromey.com>
1599
1600 * compile/compile-object-run.c (struct do_module_cleanup): Add
1601 parameters to constructor. Update destructor.
1602 <source_file, scope, scope_data, out_value_type, out_value_addr,
1603 munmap_list_head, objfile_name_string>: Remove.
1604 <module>: New member.
1605 (do_module_cleanup): Update.
1606 (compile_object_run): Update.
1607
e947a848
TT
16082020-09-23 Tom Tromey <tom@tromey.com>
1609
1610 * compile/compile.c (eval_compile_command): Update.
1611 * compile/compile-object-run.h (compile_object_run): Take a
1612 compile_module_up.
1613 * compile/compile-object-run.c (compile_object_run): Take a
1614 compile_module_up.
1615 * compile/compile-object-load.h (struct compile_module): Add
1616 constructor, destructor.
1617 (compile_module_up): New typedef.
1618 (compile_object_load): Return compile_object_up.
1619 * compile/compile-object-load.c (compile_object_load): Return
1620 compile_module_up.
1621
0dbf6ee6
TT
16222020-09-23 Tom Tromey <tom@tromey.com>
1623
1624 * compile/compile-object-run.c (struct do_module_cleanup): Add
1625 constructor, destructor.
1626 <objfile_name_string>: Don't use struct hack.
1627 (do_module_cleanup): Use delete.
1628 (compile_object_run): Use new.
1629
ebe824f5
TT
16302020-09-23 Tom Tromey <tom@tromey.com>
1631
1632 * compile/compile-cplus-types.c
1633 (compile_cplus_convert_struct_or_union): Use std::vector.
1634 (compile_cplus_convert_func): Likewise.
1635 * compile/compile-c-types.c (convert_func): Use std::vector.
1636
5dd918d9
TT
16372020-09-21 Tom Tromey <tromey@adacore.com>
1638
1639 * sparc-tdep.c (sparc32_skip_prologue): Use
1640 skip_prologue_using_sal.
1641
5486c517
TT
16422020-09-19 Tom Tromey <tom@tromey.com>
1643
1644 * symfile.c (add_section_size_callback): Remove.
1645 (load_one_section): Rename from load_section_callback. Change
1646 parameters.
1647 (generic_load): Use foreach.
1648
8a6bb1d1
TT
16492020-09-19 Tom Tromey <tom@tromey.com>
1650
1651 * exec.c (add_to_section_table): Remove.
1652 (build_section_table): Use foreach.
1653
08f93a1a
TT
16542020-09-19 Tom Tromey <tom@tromey.com>
1655
1656 * elfread.c (elf_locate_sections): Change parameters.
1657 (elf_symfile_read): Use foreach.
1658
03cd72b8
TT
16592020-09-19 Tom Tromey <tom@tromey.com>
1660
1661 * cli/cli-dump.c (struct callback_data): Remove.
1662 (restore_one_section): Rename from restore_section_callback.
1663 Change parameters.
1664 (restore_binary_file): Change parameters.
1665 (restore_command): Use foreach.
1666
f4f2b85f
TT
16672020-09-19 Tom Tromey <tom@tromey.com>
1668
1669 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1670 (gcore_copy_callback): Likewise.
1671 (gcore_memory_sections): Use foreach.
1672
b35c1d1c
TT
16732020-09-19 Tom Tromey <tom@tromey.com>
1674
1675 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1676 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1677 parameters.
1678 (generic_elf_osabi_sniffer): Use foreach.
1679 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1680 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1681
5bb6e9dd
TT
16822020-09-19 Tom Tromey <tom@tromey.com>
1683
1684 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1685 (dwarf2_get_dwz_file): Use foreach.
1686 (dwarf2_locate_dwo_sections): Change parameters.
1687 (open_and_init_dwo_file): Use foreach.
1688 (dwarf2_locate_common_dwp_sections): Change parameters.
1689 (open_and_init_dwp_file): Use foreach.
1690
ad7277da
TT
16912020-09-19 Tom Tromey <tom@tromey.com>
1692
1693 * symfile.h: (find_lowest_section): Don't declare.
1694 * symfile.c (find_lowest_section): Now static. Change
1695 parameters.
1696 (struct place_section_arg): Remove.
1697 (place_section): Change parameters.
1698 (addr_info_make_relative): Use foreach.
1699 (symfile_dummy_outputs): Remove.
1700 (default_symfile_relocate): Use foreach.
1701
cb814f2e
TT
17022020-09-19 Tom Tromey <tom@tromey.com>
1703
1704 * objfiles.c (add_to_objfile_sections): Rename from
1705 add_to_objfile_sections_full.
1706 (add_to_objfile_sections): Remove.
1707 (build_objfile_section_table): Use foreach.
1708
3cabfd26
TT
17092020-09-19 Tom Tromey <tom@tromey.com>
1710
1711 * stap-probe.c (get_stap_base_address_1): Remove.
1712 (get_stap_base_address): Use foreach.
1713
1ce51eb5
TT
17142020-09-19 Tom Tromey <tom@tromey.com>
1715
1716 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1717 parameters.
1718 (gdb_bfd_close_or_warn): Use foreach.
1719
a190fabb
TT
17202020-09-19 Tom Tromey <tom@tromey.com>
1721
1722 * corelow.c (add_to_thread_list): Change parameters.
1723 (core_target_open): Use foreach.
1724
cafb0d81
TT
17252020-09-19 Tom Tromey <tom@tromey.com>
1726
1727 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1728 existing function.
1729
c8d5abea
AB
17302020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1733 for arrays.
1734
6d816919
AB
17352020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * eval.c: Remove 'f-lang.h' include.
1738 (value_f90_subarray): Moved to f-lang.c.
1739 (eval_call): Renamed to...
1740 (evaluate_subexp_do_call): ...this, is no longer static, header
1741 comment moved into header file.
1742 (evaluate_funcall): Update call to eval_call.
1743 (skip_undetermined_arglist): Moved to f-lang.c.
1744 (fortran_value_subarray): Likewise.
1745 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1746 moved to evaluate_subexp_f.
1747 (calc_f77_array_dims): Moved to f-lang.c
1748 * expprint.c (print_subexp_funcall): New function.
1749 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1750 moved to print_subexp_f, OP_FUNCALL uses new function.
1751 (dump_subexp_body_funcall): New function.
1752 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1753 moved to dump_subexp_f, OP_FUNCALL uses new function.
1754 * expression.h (evaluate_subexp_do_call): Declare.
1755 * f-lang.c (value_f90_subarray): Moved from eval.c.
1756 (skip_undetermined_arglist): Likewise.
1757 (calc_f77_array_dims): Likewise.
1758 (fortran_value_subarray): Likewise.
1759 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1760 (operator_length_f): Likewise.
1761 (print_subexp_f): Likewise.
1762 (dump_subexp_body_f): Likewise.
1763 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1764 declaration of this operation to here.
1765 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1766 support moved to operator_length_f.
1767 * parser-defs.h (dump_subexp_body_funcall): Declare.
1768 (print_subexp_funcall): Declare.
1769 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1770 fortran-operator.def.
1771
8c37706a
AB
17722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * eval.c (fortran_value_subarray): New function, content is taken
1775 from...
1776 (evaluate_subexp_standard): ...here, in two places. Now arrays
1777 and strings both call the new function.
1778 (calc_f77_array_dims): Add header comment, handle strings.
1779
14f9473c
VC
17802020-09-18 Victor Collod <vcollod@nvidia.com>
1781
1782 PR gdb/26635
1783 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1784 (i386_analyze_prologue): Call i386_skip_endbr.
1785
b60cea74
TT
17862020-09-18 Tom Tromey <tromey@adacore.com>
1787
1788 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1789 (windows_nat_target::wait): Update.
1790 * target/wait.h (enum target_wait_flag): New. Use
1791 DEF_ENUM_FLAGS_TYPE.
1792 * target/target.h (target_wait): Change type of options.
1793 * target.h (target_options_to_string, default_target_wait):
1794 Update.
1795 (struct target_ops) <wait>: Change type of options.
1796 * target.c (target_wait, default_target_wait, do_option): Change
1797 type of "options".
1798 (target_options_to_string): Likewise.
1799 * target-delegates.c: Rebuild.
1800 * target-debug.h (target_debug_print_target_wait_flags): Rename
1801 from target_debug_print_options.
1802 * sol-thread.c (class sol_thread_target) <wait>: Update.
1803 (sol_thread_target::wait): Update.
1804 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1805 (rs6000_nat_target::wait): Update.
1806 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1807 Update.
1808 (remote_target::wait_ns, remote_target::wait_as): Change type of
1809 "options".
1810 (remote_target::wait): Update.
1811 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1812 (gdbsim_target::wait): Update.
1813 * record-full.c (class record_full_base_target) <wait>: Update.
1814 (record_full_wait_1): Change type of "options".
1815 (record_full_base_target::wait): Update.
1816 * record-btrace.c (class record_btrace_target) <wait>: Update.
1817 (record_btrace_target::wait): Update.
1818 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1819 Update.
1820 (ravenscar_thread_target::wait): Update.
1821 * procfs.c (class procfs_target) <wait>: Update.
1822 (procfs_target::wait): Update.
1823 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1824 * obsd-nat.c (obsd_nat_target::wait): Update.
1825 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1826 (nto_procfs_target::wait): Update.
1827 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1828 * nbsd-nat.c (nbsd_wait): Change type of "options".
1829 (nbsd_nat_target::wait): Update.
1830 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1831 (thread_db_target::wait): Update.
1832 * linux-nat.h (class linux_nat_target) <wait>: Update.
1833 * linux-nat.c (linux_nat_target::wait): Update.
1834 (linux_nat_wait_1): Update.
1835 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1836 "options".
1837 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1838 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1839 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1840 (go32_nat_target::wait): Update.
1841 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1842 * gnu-nat.c (gnu_nat_target::wait): Update.
1843 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1844 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1845 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1846 * darwin-nat.c (darwin_nat_target::wait): Update.
1847 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1848 (bsd_uthread_target::wait): Update.
1849 * aix-thread.c (class aix_thread_target) <wait>: Update.
1850 (aix_thread_target::wait): Update.
1851
0295dde6
AB
18522020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * compile/compile-object-run.c (create_copied_type_recursive): New
1855 function.
1856 (compile_object_run): Use new function.
1857
d3483b43
JT
18582020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1859
1860 * NEWS: Mention x86_64 Cygwin core file support.
1861
e7d612ad
JT
18622020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1863
1864 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1865 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1866
aff9d387
JT
18672020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1868
62a5151b
JT
1869 * windows-tdep.h: Add prototypes.
1870 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1871 (i386_windows_core_pid_to_str): Move and rename ...
1872 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1873 (windows_core_pid_to_str): ... and here.
1874 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1875
18762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1877 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1878 (amd64_windows_init_abi_common): ... and register.
1879
7d155da3
JT
18802020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1881
1882 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1883 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1884
e8ef12b9
PA
18852020-09-18 Pedro Alves <pedro@palves.net>
1886
1887 PR gdb/26631
1888 * thread.c (thread_find_command): Switch inferior before calling
1889 target methods.
1890
c1e1314d
TT
18912020-09-17 Tom Tromey <tromey@adacore.com>
1892
1893 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1894 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1895 (tdesc_arch_data_up): New typedef.
1896 (tdesc_use_registers, tdesc_data_alloc): Update.
1897 (tdesc_data_cleanup): Don't declare.
1898 * target-descriptions.c (tdesc_data_alloc): Return a
1899 tdesc_arch_data_up.
1900 (tdesc_arch_data_deleter::operator()): Rename from
1901 tdesc_data_cleanup. Change argument type.
1902 (tdesc_use_registers): Change early_data to an rvalue reference.
1903 (tdesc_use_registers): Don't use delete.
1904 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1905 * s390-tdep.c (s390_gdbarch_init): Update.
1906 * rx-tdep.c (rx_gdbarch_init): Update.
1907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1908 * riscv-tdep.c (riscv_gdbarch_init): Update.
1909 * or1k-tdep.c (or1k_gdbarch_init): Update.
1910 * nios2-tdep.c (nios2_gdbarch_init): Update.
1911 * nds32-tdep.c (nds32_gdbarch_init): Update.
1912 * mips-tdep.c (mips_gdbarch_init): Update.
1913 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1914 * m68k-tdep.c (m68k_gdbarch_init): Update.
1915 * i386-tdep.c (i386_gdbarch_init): Update.
1916 * arm-tdep.c (arm_gdbarch_init): Update.
1917 * arc-tdep.c (arc_tdesc_init): Update.
1918 (arc_gdbarch_init): Update.
1919 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1920
0363df3d
HD
19212020-09-17 Hannes Domani <ssbssa@yahoo.de>
1922
1923 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1924 for WOW64 processes.
1925
280a9412
TT
19262020-09-17 Tom Tromey <tom@tromey.com>
1927
1928 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1929
6108fd18
TT
19302020-09-17 Tom Tromey <tom@tromey.com>
1931
1932 * value.c (preserve_values): Update.
1933 * python/py-type.c (save_objfile_types): Update.
1934 * guile/scm-type.c (save_objfile_types): Update.
1935 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1936 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1937 * compile/compile-object-run.c (compile_object_run): Update.
1938
fa9b1164
TT
19392020-09-17 Tom Tromey <tom@tromey.com>
1940
1941 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1942 Remove.
1943 <m_table>: Now htab_up.
1944 * typeprint.c (typedef_hash_table::recursively_update)
1945 (typedef_hash_table::add_template_parameters)
1946 (typedef_hash_table::typedef_hash_table): Update.
1947 (typedef_hash_table::~typedef_hash_table): Remove.
1948 (typedef_hash_table::typedef_hash_table)
1949 (typedef_hash_table::find_global_typedef)
1950 (typedef_hash_table::find_typedef): Update.
1951
eb53f105
TT
19522020-09-17 Tom Tromey <tom@tromey.com>
1953
1954 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1955
7a8a5d47
TT
19562020-09-17 Tom Tromey <tom@tromey.com>
1957
1958 * linespec.c (class decode_compound_collector)
1959 <~decode_compound_collector>: Remove.
1960 <m_unique_syms>: Now htab_up.
1961 (decode_compound_collector::operator ()): Update.
1962 (class symtab_collector) <~symtab_collector>: Remove.
1963 <m_symtab_table>: Now htab_up.
1964 (symtab_collector::operator ()): Update.
1965
99032cfc
TT
19662020-09-17 Tom Tromey <tom@tromey.com>
1967
1968 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1969 (filename_seen_cache::clear): Update.
1970 (~filename_seen_cache): Remove.
1971 (filename_seen_cache::seen): Update.
1972 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1973 htab_up.
1974 <~filename_seen_cache>: Remove.
1975 <traverse>: Update.
1976
32580f6d
TT
19772020-09-17 Tom Tromey <tom@tromey.com>
1978
1979 * completer.c (completion_tracker::discard_completions)
1980 (completion_tracker::~completion_tracker)
1981 (completion_tracker::maybe_add_completion)
1982 (completion_tracker::remove_completion)
1983 (completion_tracker::recompute_lowest_common_denominator)
1984 (completion_tracker::build_completion_result): Update.
1985 * completer.h (class completion_tracker) <have_completions>:
1986 Update.
1987 <m_entries_hash>: Now htab_up.
1988
c1fb9836
TT
19892020-09-17 Tom Tromey <tom@tromey.com>
1990
1991 * breakpoint.c (ambiguous_names_p): Use htab_up.
1992
88f07206
TT
19932020-09-17 Tom Tromey <tom@tromey.com>
1994
1995 * auto-load.c (struct auto_load_pspace_info)
1996 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1997 <loaded_script_files, loaded_script_texts>: Change type to
1998 htab_up.
1999 (~auto_load_pspace_info) Remove.
2000 (init_loaded_scripts_info, maybe_add_script_file)
2001 (maybe_add_script_text, auto_load_info_scripts): Update.
2002
9519b2ee
TT
20032020-09-17 Tom Tromey <tromey@adacore.com>
2004
2005 * c-exp.y (name_obstack): Now static.
2006
d2cd4113
CC
20072020-09-17 Chungyi Chi <demonic@csie.io>
2008
2009 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2010
b650a282
SM
20112020-09-16 Simon Marchi <simon.marchi@efficios.com>
2012
2013 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2014 (add_solib_catchpoint): Likewise.
2015 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2016 to bool.
2017 (add_solib_catchpoint): Change int parameter/variable to bool.
2018 (catch_load_or_unload): Likewise.
2019 (init_catchpoint): Likewise.
2020 (create_fork_vfork_event_catchpoint): Likewise.
2021 (catch_fork_command_1): Likewise.
2022 (catch_exec_command_1): Likewise.
2023
4d0bcfcf
SM
20242020-09-16 Simon Marchi <simon.marchi@efficios.com>
2025
2026 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2027 Change instance_flags to m_instance_flags.
2028
fe830662
TT
20292020-09-16 Tom Tromey <tromey@adacore.com>
2030
2031 PR gdb/26598:
2032 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2033
fe5ddfc3
JB
20342020-09-16 John Baldwin <jhb@FreeBSD.org>
2035
2036 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2037 PL_FLAG_EXEC.
2038 (fbsd_nat_target::insert_exec_catchpoint)
2039 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2040 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2041 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2042
e911c666
JB
20432020-09-16 John Baldwin <jhb@FreeBSD.org>
2044
2045 * configure.ac: Remove check for kinfo_getvmmap().
2046 * configure, config.in: Regenerate.
2047 * fbsd-nat.c (fbsd_read_mapping): Remove
2048 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2049 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2050 kinfo_get_vmmap() are always present.
2051
1f17d372
JB
20522020-09-16 John Baldwin <jhb@FreeBSD.org>
2053
2054 * fbsd-nat.c: Always include support for
2055 TARGET_OBJECT_SIGNAL_INFO.
2056
bcb1da7f
JB
20572020-09-16 John Baldwin <jhb@FreeBSD.org>
2058
2059 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2060 sysctl and remove procfs fallback.
2061
5515f729
JB
20622020-09-16 John Baldwin <jhb@FreeBSD.org>
2063
2064 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2065 * fbsd-nat.h: Likewise.
2066
da1df1db
TBA
20672020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2068
2069 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2070 argument.
2071
0e25e767
AB
20722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_language_data): Delete.
2075 (ada_language): Remove references to ada_language_data.
2076 * c-lang.c (c_language_data): Delete.
2077 (c_language): Remove references to c_language_data.
2078 (cplus_language_data): Delete.
2079 (cplus_language): Remove references to cplus_language_data.
2080 (asm_language_data): Delete.
2081 (asm_language): Remove references to asm_language_data.
2082 (minimal_language_data): Delete.
2083 (minimal_language): Remove references to minimal_language_data.
2084 * d-lang.c (d_language_data): Delete.
2085 (d_language): Remove references to d_language_data.
2086 * f-lang.c (f_language_data): Delete.
2087 (f_language): Remove references to f_language_data.
2088 * go-lang.c (go_language_data): Delete.
2089 (go_language): Remove references to go_language_data.
2090 * language.c (unknown_language_data): Delete.
2091 (unknown_language): Remove references to unknown_language_data.
2092 (auto_language_data): Delete.
2093 (auto_language): Remove references to auto_language_data.
2094 * language.h (language_data): Delete struct.
2095 (language_defn): No longer inherit from language_data.
2096 * m2-lang.c (m2_language_data): Delete.
2097 (m2_language): Remove references to m2_language_data.
2098 * objc-lang.c (objc_language_data): Delete.
2099 (objc_language): Remove references to objc_language_data.
2100 * opencl-lang.c (opencl_language_data): Delete.
2101 (opencl_language): Remove references to opencl_language_data.
2102 * p-lang.c (pascal_language_data): Delete.
2103 (pascal_language): Remove references to pascal_language_data.
2104 * rust-lang.c (rust_language_data): Delete.
2105 (rust_language): Remove references to rust_language_data.
2106
b7c6e27d
AB
21072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2110 initializer.
2111 (ada_language::opcode_print_table): New member function.
2112 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2113 (c_language::opcode_print_table): New member function.
2114 (cplus_language_data): Remove la_op_print_tab initializer.
2115 (cplus_language::opcode_print_table): New member function.
2116 (asm_language_data): Remove la_op_print_tab initializer.
2117 (asm_language::opcode_print_table): New member function.
2118 (minimal_language_data): Remove la_op_print_tab initializer.
2119 (minimal_language::opcode_print_table): New member function.
2120 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2121 (d_language::opcode_print_table): New member function.
2122 * expprint.c (print_subexp_standard): Update call to
2123 opcode_print_table.
2124 (op_string): Likewise.
2125 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2126 (f_language::opcode_print_table): New member function.
2127 * go-lang.c (go_language_data): Remove la_op_print_tab
2128 initializer.
2129 (go_language::opcode_print_table): New member function.
2130 * language.c (unknown_language_data): Remove la_op_print_tab
2131 initializer.
2132 (unknown_language::opcode_print_table): New member function.
2133 (auto_language_data): Remove la_op_print_tab initializer.
2134 (auto_language::opcode_print_table): New member function.
2135 * language.h (language_data): Remove la_op_print_tab field.
2136 (language_defn::opcode_print_table): Declare new member function.
2137 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2138 initializer.
2139 (m2_language::opcode_print_table): New member function.
2140 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2141 initializer.
2142 (objc_language::opcode_print_table): New member function.
2143 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2144 initializer.
2145 (opencl_language::opcode_print_table): New member function.
2146 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2147 initializer.
2148 (pascal_language::opcode_print_table): New member function.
2149 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2150 initializer.
2151 (rust_language::opcode_print_table): New member function.
2152
5aba6ebe
AB
21532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2156 (ada_language::expression_ops): New member function.
2157 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2158 (c_language::expression_ops): New member function.
2159 (cplus_language_data): Remove la_exp_desc initializer.
2160 (cplus_language::expression_ops): New member function.
2161 (asm_language_data): Remove la_exp_desc initializer.
2162 (asm_language::expression_ops): New member function.
2163 (minimal_language_data): Remove la_exp_desc initializer.
2164 (minimal_language::expression_ops): New member function.
2165 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2166 (d_language::expression_ops): New member function.
2167 * eval.c (evaluate_subexp): Update call to expression_ops.
2168 * expprint.c (print_subexp): Likewise.
2169 (op_name): Likewise.
2170 (dump_subexp_body): Likewise.
2171 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2172 (f_language::expression_ops): New member function.
2173 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2174 (go_language::expression_ops): New member function.
2175 * language.c (language_defn::expression_ops): New function.
2176 (unknown_language_data): Remove la_exp_desc initializer.
2177 (auto_language_data): Likewise.
2178 * language.h (language_data): Remove la_exp_desc field.
2179 (language_defn::expression_ops): Declare new member function.
2180 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2181 (m2_language::expression_ops): New member function.
2182 * objc-lang.c (objc_language_data): Remove la_exp_desc
2183 initializer.
2184 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2185 initializer.
2186 (opencl_language::expression_ops): New member function.
2187 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2188 * parse.c (operator_length): Update call to expression_ops.
2189 (exp_iterate): Likewise.
2190 * rust-lang.c (rust_language_data): Remove la_exp_desc
2191 initializer.
2192 (ruse_language::expression_ops): New member function.
2193
b63a3f3f
AB
21942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2197 initializer.
2198 (ada_language::varobj_ops): New member function.
2199 * c-lang.c (c_language_data): Remove la_varobj_ops
2200 initializer.
2201 (cplus_language_data): Likewise.
2202 (cplus_language::varobj_ops): New member function.
2203 (asm_language_data): Remove la_varobj_ops initializer.
2204 (minimal_language_data): Likewise.
2205 * d-lang.c (d_language_data): Likewise.
2206 * f-lang.c (f_language_data): Likewise.
2207 * go-lang.c (go_language_data): Likewise.
2208 * language.c (language_defn::varobj_ops): New function.
2209 (unknown_language_data): Remove la_varobj_ops
2210 initializer.
2211 (auto_language_data): Likewise.
2212 * language.h (language_data): Remove la_varobj_ops field.
2213 (language_defn::varobj_ops): Declare new member function.
2214 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2215 * objc-lang.c (objc_language_data): Likewise.
2216 * opencl-lang.c (opencl_language_data): Likewise.
2217 * p-lang.c (pascal_language_data): Likewise.
2218 * rust-lang.c (rust_language_data): Likewise.
2219 * varobj.c (varobj_create): Update call to varobj_ops.
2220 * varobj.h (default_varobj_ops): Delete define.
2221
1ac14a04
AB
22222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2225 initializer.
2226 * c-lang.c (c_language_data): Likewise.
2227 (c_language::macro_expansion): New member function.
2228 (cplus_language_data): Likewise.
2229 (cplus_language::macro_expansion): New member function.
2230 (asm_language_data): Likewise.
2231 (asm_language::macro_expansion): New member function.
2232 (minimal_language_data): Likewise.
2233 (minimal_language::macro_expansion): New member function.
2234 * d-lang.c (d_language_data): Remove la_macro_expansion
2235 initializer.
2236 * f-lang.c (f_language_data): Likewise.
2237 * go-lang.c (go_language_data): Likewise.
2238 * language.c (unknown_language_data): Likewise.
2239 (auto_language_data): Likewise.
2240 * language.h (language_data): Remove la_macro_expansion field.
2241 (language_defn::macro_expansion): New member function.
2242 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2243 initializer.
2244 * objc-lang.c (objc_language_data): Likewise.
2245 (objc_language::macro_expansion): New member function.
2246 * opencl-lang.c (opencl_language_data): Likewise.
2247 (opencl_language::macro_expansion): New member function.
2248 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2249 initializer.
2250 * rust-lang.c (rust_language_data): Likewise.
2251 * symtab.c (default_collect_symbol_completion_matches_break_on):
2252 Update call to macro_expansion.
2253
3a3440fb
AB
22542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * ada-lang.c (ada_language_data): Remove la_array_ordering
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 * dwarf2/read.c (read_array_order): Update for call to
2264 array_ordering.
2265 * f-lang.c (f_language_data): Remove la_array_ordering
2266 initializer.
2267 (f_language::array_ordering): New member function.
2268 * go-lang.c (go_language_data): Remove la_array_ordering
2269 initializer.
2270 * language.c (unknown_language_data): Likewise.
2271 (auto_language_data): Likewise.
2272 * language.h (language_data): Delete la_array_ordering field.
2273 (language_defn::array_ordering): New member function.
2274 * m2-lang.c (m2_language_data): Remove la_array_ordering
2275 initializer.
2276 * objc-lang.c (objc_language_data): Likewise.
2277 * opencl-lang.c (opencl_language_data): Likewise.
2278 * p-lang.c (pascal_language_data): Likewise.
2279 * rust-lang.c (rust_language_data): Likewise.
2280
0d201fa4
AB
22812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2284 initializer.
2285 * c-lang.c (c_language_data): Likewise.
2286 (cplus_language_data): Likewise.
2287 (asm_language_data): Likewise.
2288 (minimal_language_data): Likewise.
2289 * d-lang.c (d_language_data): Likewise.
2290 * f-lang.c (f_language_data): Likewise.
2291 (f_language::case_sensitivity): New member function.
2292 * go-lang.c (go_language_data): Remove la_case_sensitivity
2293 initializer.
2294 * language.c (enum case_mode): Moved here from language.h.
2295 (case_mode): Make static.
2296 (show_case_command): Update for case_sensitivity being a method.
2297 (set_case_command): Likewise.
2298 (set_range_case): Likewise.
2299 (unknown_language_data): Remove la_case_sensitivity initializer.
2300 (auto_language_data): Likewise.
2301 * language.h (case_mode): Delete, move enum declaration to
2302 language.c.
2303 (language_data): Delete la_case_sensitivity field.
2304 (language_defn::case_sensitivity): New member function.
2305 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2306 initializer.
2307 * objc-lang.c (objc_language_data): Likewise.
2308 * opencl-lang.c (opencl_language_data): Likewise.
2309 * p-lang.c (pascal_language_data): Likewise.
2310 * rust-lang.c (rust_language_data): Likewise.
2311
efdf6a73
AB
23122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 * ada-lang.c (ada_language_data): Remove la_range_check
2315 initializer.
2316 * c-lang.c (c_language_data): Likewise.
2317 (cplus_language_data): Likewise.
2318 (asm_language_data): Likewise.
2319 (minimal_language_data): Likewise.
2320 * d-lang.c (d_language_data): Likewise.
2321 * f-lang.c (f_language_data): Likewise.
2322 (f_language::range_checking_on_by_default): New member function.
2323 * go-lang.c (go_language_data): Remove la_range_check initializer.
2324 * language.c (enum range_mode): Moved here from language.h.
2325 (range_mode): Made static.
2326 (show_range_command): Update to use
2327 range_checking_on_by_default.
2328 (set_range_command): Likewise.
2329 (set_range_case): Likewise.
2330 (unknown_language_data): Remove la_range_check initializer.
2331 (auto_language_data): Likewise.
2332 * language.h (range_mode): Delete. Enum definition moved to
2333 language.c.
2334 (language_data): Remove la_range_check field.
2335 (language_defn::range_checking_on_by_default): New member
2336 function.
2337 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2338 (m2_language::range_checking_on_by_default): New member function.
2339 * objc-lang.c (objc_language_data): Remove la_range_check
2340 initializer.
2341 * opencl-lang.c (opencl_language_data): Likewise.
2342 * p-lang.c (pascal_language_data): Likewise.
2343 (pascal_language::range_checking_on_by_default): New member
2344 function.
2345 * rust-lang.c (rust_language_data): Remove la_range_check
2346 initializer.
2347 (rust_language::range_checking_on_by_default): New member
2348 function.
2349
bf92aec5
AB
23502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * dwarf2/read.c (dwarf2_physname): Remove special case for
2353 language_go.
2354 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2355 member function.
2356
d3355e4d
AB
23572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * ada-lang.c (ada_language_data): Remove
2360 la_store_sym_names_in_linkage_form_p initializer.
2361 (ada_language::store_sym_names_in_linkage_form_p): New member
2362 function.
2363 * c-lang.c (c_language_data): Remove
2364 la_store_sym_names_in_linkage_form_p initializer.
2365 (c_language::store_sym_names_in_linkage_form_p): New member
2366 function.
2367 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2368 initializer.
2369 (asm_language_data): Likewise.
2370 (asm_language::store_sym_names_in_linkage_form_p): New member
2371 function.
2372 (minimal_language_data): Remove
2373 la_store_sym_names_in_linkage_form_p initializer.
2374 (minimal_language::store_sym_names_in_linkage_form_p): New member
2375 function.
2376 * d-lang.c (d_language_data): Remove
2377 la_store_sym_names_in_linkage_form_p initializer.
2378 * dwarf2/read.c (dwarf2_physname): Update call to
2379 store_sym_names_in_linkage_form_p.
2380 * f-lang.c (f_language_data): Remove
2381 la_store_sym_names_in_linkage_form_p initializer.
2382 * go-lang.c (go_language_data): Remove
2383 la_store_sym_names_in_linkage_form_p initializer.
2384 * language.c (unknown_language_data): Remove
2385 la_store_sym_names_in_linkage_form_p initializer.
2386 (unknown_language::store_sym_names_in_linkage_form_p): New member
2387 function.
2388 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2389 initializer.
2390 (auto_language::store_sym_names_in_linkage_form_p): New member
2391 function.
2392 * language.h (language_data): Remove
2393 la_store_sym_names_in_linkage_form_p member variable.
2394 (language_defn::store_sym_names_in_linkage_form_p): New member
2395 function.
2396 * m2-lang.c (m2_language_data): Remove
2397 la_store_sym_names_in_linkage_form_p initializer.
2398 * objc-lang.c (objc_language_data): Likewise.
2399 * opencl-lang.c (opencl_language_data): Likewise.
2400 * p-lang.c (pascal_language_data): Likewise.
2401 * rust-lang.c (rust_language_data): Likewise.
2402
22c12a6c
AB
24032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_language_data): Remove string_lower_bound
2406 initializer.
2407 * c-lang.c (c_language_data): Likewise.
2408 (cplus_language_data): Likewise.
2409 (asm_language_data): Likewise.
2410 (minimal_language_data): Likewise.
2411 * d-lang.c (d_language_data): Likewise.
2412 * f-lang.c (f_language_data): Likewise.
2413 * go-lang.c (go_language_data): Likewise.
2414 * language.c (unknown_language_data): Likewise.
2415 (auto_language_data): Likewise.
2416 * language.h (language_data): Remove string_lower_bound field.
2417 (language_defn::string_lower_bound): New member function.
2418 * m2-lang.c (m2_language_data): Remove string_lower_bound
2419 initializer.
2420 (m2_language::string_lower_bound): New member function.
2421 * objc-lang.c (objc_language_data): Remove string_lower_bound
2422 initializer.
2423 * opencl-lang.c (opencl_language_data): Likewise.
2424 * p-lang.c (pascal_language_data): Likewise.
2425 * rust-lang.c (rust_language_data): Likewise.
2426 * valops.c (value_cstring): Update call to string_lower_bound.
2427 (value_string): Likewise.
2428 * value.c (allocate_repeated_value): Likewise.
2429
1c236ddd
AB
24302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * valops.c (value_repeat): Fix incorrect argument name in comment.
2433
67bd3fd5
AB
24342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * ada-lang.c (ada_language_data): Remove c_style_arrays
2437 initializer.
2438 (ada_language::c_style_arrays_p): New member fuction.
2439 * c-lang.c (c_language_data): Remove c_style_arrays
2440 initializer.
2441 (cplus_language_data): Likewise.
2442 (asm_language_data): Likewise.
2443 (minimal_language_data): Likewise.
2444 * d-lang.c (d_language_data): Likewise.
2445 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2446 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2447 (f_language::c_style_arrays_p): New member function.
2448 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2449 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2450 * language.c (unknown_language_data): Remove c_style_arrays
2451 initializer.
2452 (auto_language_data): Likewise.
2453 * language.h (language_data): Remove c_style_arrays field.
2454 (language_defn::c_style_arrays_p): New member function.
2455 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2456 (m2_language::c_style_arrays_p): New member function.
2457 * objc-lang.c (objc_language_data): Remove c_style_arrays
2458 initializer.
2459 * opencl-lang.c (opencl_language_data): Likewise.
2460 * p-lang.c (pascal_language_data): Likewise.
2461 * rust-lang.c (rust_language_data): Likewise.
2462 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2463 and update local variable to a bool.
2464 * valops.c (value_cast): Update call to c_style_arrays_p.
2465 (value_array): Likewise.
2466 * value.c (coerce_array): Likewise.
2467
85967615
AB
24682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * ada-lang.c (ada_language_data): Remove la_language initializer.
2471 * c-lang.c (c_language_data): Likewise.
2472 (cplus_language_data): Likewise.
2473 (asm_language_data): Likewise.
2474 (minimal_language_data): Likewise.
2475 * d-lang.c (d_language_data): Likewise.
2476 * f-lang.c (f_language_data): Likewise.
2477 * go-lang.c (go_language_data): Likewise.
2478 * language.c (unknown_language_data): Likewise.
2479 (auto_language_data): Likewise.
2480 * language.h (language_data): Remove la_language field.
2481 (language_defn::language_defn): Initialise la_language field.
2482 (language_defn::la_language): New member variable.
2483 * m2-lang.c (m2_language_data): Remove la_language field.
2484 * objc-lang.c (objc_language_data): Likewise.
2485 * opencl-lang.c (opencl_language_data): Likewise.
2486 * p-lang.c (pascal_language_data): Likewise.
2487 * rust-lang.c (rust_language_data): Likewise.
2488
e171d6f1
AB
24892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * ada-lang.c (ada_extensions): Delete, moved into
2492 ada_language::filename_extensions.
2493 (ada_language_data): Remove la_filename_extensions initializer.
2494 (ada_language::filename_extensions): New member function.
2495 * c-lang.c (c_extensions): Delete, moved into
2496 c_language::filename_extensions.
2497 (c_language_data): Remove la_filename_extensions initializer.
2498 (c_language::filename_extensions): New member function.
2499 (cplus_extensions): Delete, moved into
2500 cplus_language::filename_extensions.
2501 (cplus_language_data): Remove la_filename_extensions initializer.
2502 (cplus_language::filename_extensions): New member function.
2503 (asm_extensions): Delete, moved into
2504 asm_language::filename_extensions.
2505 (asm_language_data): Remove la_filename_extensions initializer.
2506 (asm_language::filename_extensions): New member function.
2507 (minimal_language_data): Remove la_filename_extensions
2508 initializer.
2509 * d-lang.c (d_extensions): Delete, moved into
2510 d_language::filename_extensions.
2511 (d_language_data): Remove la_filename_extensions initializer.
2512 (d_language::filename_extensions): New member function.
2513 * f-lang.c (f_extensions): Delete, moved into
2514 f_language::filename_extensions.
2515 (f_language_data): Remove la_filename_extensions initializer.
2516 (f_language::filename_extensions): New member function.
2517 * go-lang.c (go_language_data): Remove la_filename_extensions
2518 initializer.
2519 * language.c (add_set_language_command): Update now that
2520 filename_extensions returns a vector.
2521 (unknown_language_data): Remove la_filename_extensions
2522 initializer.
2523 (auto_language_data): Likewise.
2524 * language.h (language_data): Remove la_filename_extensions field.
2525 (language_defn::filename_extensions): New member function.
2526 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2527 initializer.
2528 * objc-lang.c (objc_extensions): Delete, moved into
2529 objc_language::filename_extensions.
2530 (objc_language_data): Remove la_filename_extensions initializer.
2531 (objc_language::filename_extensions): New member function.
2532 * opencl-lang.c (opencl_language_data): Remove
2533 la_filename_extensions initializer.
2534 * p-lang.c (pascal_extensions): Delete, moved into
2535 pascal_language::filename_extensions.
2536 (pascal_language_data): Remove la_filename_extensions initializer.
2537 (pascal_language::filename_extensions): New member function.
2538 * rust-lang.c (rust_extensions): Delete, moved into
2539 rust_language::filename_extensions.
2540 (rust_language_data): Remove la_filename_extensions initializer.
2541 (rust_language::filename_extensions): New member function.
2542 * symfile.c (add_filename_language): Add new assert.
2543
6f7664a9
AB
25442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * ada-lang.c (ada_language_data): Remove la_name and
2547 la_natural_name initializers.
2548 (ada_language::name): New member function.
2549 (ada_language::natural_name): New member function.
2550 * c-lang.c (c_language_data): Remove la_name and
2551 la_natural_name initializers.
2552 (c_language::name): New member function.
2553 (c_language::natural_name): New member function.
2554 (cplus_language_data): Remove la_name and
2555 la_natural_name initializers.
2556 (cplus_language::name): New member function.
2557 (cplus_language::natural_name): New member function.
2558 (asm_language_data): Remove la_name and
2559 la_natural_name initializers.
2560 (asm_language::name): New member function.
2561 (asm_language::natural_name): New member function.
2562 (minimal_language_data): Remove la_name and
2563 la_natural_name initializers.
2564 (minimal_language::name): New member function.
2565 (minimal_language::natural_name): New member function.
2566 * compile/compile.c (compile_to_object): Update call to
2567 lanugage_defn::name.
2568 * d-lang.c (d_language_data): Remove la_name and
2569 la_natural_name initializers.
2570 (d_language::name): New member function.
2571 (d_language::natural_name): New member function.
2572 * expprint.c (print_subexp_standard): Update call to
2573 language_defn::name.
2574 (dump_raw_expression): Likewise
2575 (dump_prefix_expression): Likewise.
2576 * f-lang.c (f_language_data): Remove la_name and
2577 la_natural_name initializers.
2578 (f_language::name): New member function.
2579 (f_language::natural_name): New member function.
2580 * go-lang.c (go_language_data): Remove la_name and
2581 la_natural_name initializers.
2582 (go_language::name): New member function.
2583 (go_language::natural_name): New member function.
2584 * language.c (show_language_command): Update call to
2585 language_defn::name.
2586 (set_language_command): Likewise.
2587 (language_enum): Likewise.
2588 (language_str): Likewise.
2589 (add_set_language_command): Likewise, use
2590 language_defn::natural_name in the doc string.
2591 (unknown_language_data): Remove la_name and
2592 la_natural_name initializers.
2593 (unknown_language::name): New member function.
2594 (unknown_language::natural_name): New member function.
2595 (auto_language_data): Remove la_name and
2596 la_natural_name initializers.
2597 (auto_language::name): New member function.
2598 (auto_language::natural_name): New member function.
2599 (language_lookup_primitive_type_as_symbol): Update call to
2600 language_defn::name.
2601 * language.h (language_data): Remove la_name and la_natural_name
2602 member variables.
2603 (language_defn::name): New member function.
2604 (language_defn::natural_name): New member function.
2605 * m2-lang.c (m2_language_data): Remove la_name and
2606 la_natural_name initializers.
2607 (m2_language::name): New member function.
2608 (m2_language::natural_name): New member function.
2609 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2610 language_defn::natural_name.
2611 * objc-lang.c (objc_language_data): Remove la_name and
2612 la_natural_name initializers.
2613 (objc_language::name): New member function.
2614 (objc_language::natural_name): New member function.
2615 * opencl-lang.c (opencl_language_data): Remove la_name and
2616 la_natural_name initializers.
2617 (opencl_language::name): New member function.
2618 (opencl_language::natural_name): New member function.
2619 * p-lang.c (pascal_language_data): Remove la_name and
2620 la_natural_name initializers.
2621 (pascal_language::name): New member function.
2622 (pascal_language::natural_name): New member function.
2623 * rust-lang.c (rust_language_data): Remove la_name and
2624 la_natural_name initializers.
2625 (rust_language::name): New member function.
2626 (rust_language::natural_name): New member function.
2627 * symtab.c (lookup_language_this): Update call to
2628 language_defn::name.
2629
5bae7c4e
AB
26302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * ada-lang.c (ada_language_data): Remove la_name_of_this
2633 initializer.
2634 * ax-gdb.c (gen_expr): Update call to name_of_this.
2635 * c-exp.y (classify_name): Likewise.
2636 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2637 (cplus_language_data): Likewise.
2638 (cplus_language::name_of_this): New member function.
2639 (asm_language_data): Remove la_name_of_this initializer.
2640 (minimal_language_data): Likewise.
2641 * d-lang.c (d_language_data): Likewise.
2642 (d_language::name_of_this): New member function.
2643 * expprint.c (print_subexp_standard): Update call to name_of_this.
2644 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2645 * go-lang.c (go_language_data): Likewise.
2646 * language.c (unknown_language_data): Likewise.
2647 (unknown_language::name_of_this): New member function.
2648 (auto_language_data): Remove la_name_of_this initializer.
2649 (auto_language::name_of_this): New member function.
2650 * language.h (language_data): Delete la_name_of_this member
2651 variable.
2652 (language_defn::name_of_this): New member function.
2653 * m2-lang.c (m2_language_data): Remove la_name_of_this
2654 initializer.
2655 * objc-lang.c (objc_language_data): Likewise.
2656 (objc_language::name_of_this): New member function.
2657 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2658 initializer.
2659 * p-lang.c (pascal_language_data): Likewise.
2660 (pascal_language::name_of_this): New member function.
2661 * rust-lang.c (rust_language_data): Remove la_name_of_this
2662 initializer.
2663 * symtab.c (lookup_language_this): Update call to name_of_this.
2664 (lookup_symbol_aux): Likewise.
2665 * valops.c (value_of_this): Likewise.
2666
22e3f3ed
AB
26672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * ada-lang.c (ada_language_data): Remove
2670 la_struct_too_deep_ellipsis initializer.
2671 (ada_language::struct_too_deep_ellipsis): New member function.
2672 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2673 initializer.
2674 (cplus_language_data): Likewise.
2675 (asm_language_data): Likewise.
2676 (minimal_language_data): Likewise.
2677 * cp-valprint.c (cp_print_value): Update call to
2678 struct_too_deep_ellipsis.
2679 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2680 initializer.
2681 * f-lang.c (f_language_data): Likewise.
2682 (f_language::struct_too_deep_ellipsis): New member function.
2683 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2684 initializer.
2685 * language.c (unknown_language_data): Likewise.
2686 (auto_language_data): Likewise.
2687 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2688 member variable.
2689 (language_defn::struct_too_deep_ellipsis): New member function.
2690 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2691 initializer.Q
2692 * objc-lang.c (objc_language_data): Likewise.
2693 * opencl-lang.c (opencl_language_data): Likewise.
2694 * p-lang.c (pascal_language_data): Likewise.
2695 * rust-lang.c (rust_language_data): Likewise.
2696 * valprint.c (val_print_check_max_depth): Update call to
2697 struct_too_deep_ellipsis.
2698
ed29e1c7
FW
26992020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2700
2701 * MAINTAINERS (Write After Approval): Add myself.
2702
12d8f940
TT
27032020-09-15 Tom Tromey <tom@tromey.com>
2704
2705 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2706 Remove.
2707
6b5a7bc7
TT
27082020-09-15 Tom Tromey <tom@tromey.com>
2709
2710 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2711 and TYPE_CODE_METHODPTR cases.
2712 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2713 (c_value_print_inner): Update.
2714 * valprint.c (generic_value_print_memberptr): New function, from
2715 c_value_print_memberptr.
2716 (generic_value_print): Use it. Call cplus_print_method_ptr.
2717
47f0e2ff
TT
27182020-09-15 Tom Tromey <tromey@adacore.com>
2719
2720 * python/python-internal.h (PyInt_FromLong): Remove define.
2721 * python/py-value.c (convert_value_from_python): Use
2722 gdb_py_object_from_longest.
2723 * python/py-type.c (typy_get_code): Use
2724 gdb_py_object_from_longest.
2725 * python/py-symtab.c (salpy_get_line): Use
2726 gdb_py_object_from_longest.
2727 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2728 gdb_py_object_from_longest.
2729 * python/py-record.c (recpy_gap_reason_code): Use
2730 gdb_py_object_from_longest.
2731 * python/py-record-btrace.c (recpy_bt_insn_size)
2732 (recpy_bt_func_level, btpy_list_count): Use
2733 gdb_py_object_from_longest.
2734 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2735 gdb_py_object_from_longest. Fix error handling.
2736 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2737 gdb_py_object_from_longest.
2738 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2739 gdb_py_object_from_longest.
2740 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2741 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2742 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2743
512116ce
TT
27442020-09-15 Tom Tromey <tromey@adacore.com>
2745
2746 * python/python.c (gdbpy_parameter_value): Use
2747 gdb_py_object_from_ulongest.
2748
4ab1029c
TT
27492020-09-15 Tom Tromey <tromey@adacore.com>
2750
2751 * python/py-infevents.c (create_register_changed_event_object):
2752 Use gdb_py_object_from_longest.
2753 * python/py-exitedevent.c (create_exited_event_object): Use
2754 gdb_py_object_from_longest.
2755
062534d4
TT
27562020-09-15 Tom Tromey <tromey@adacore.com>
2757
2758 * python/python.c (gdbpy_parameter_value): Use
2759 gdb_py_object_from_longest.
2760 * python/py-type.c (convert_field, typy_range): Use
2761 gdb_py_object_from_longest.
2762 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2763 gdb_py_object_from_longest.
2764 * python/py-lazy-string.c (stpy_get_length): Use
2765 gdb_py_object_from_longest.
2766 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2767 gdb_py_object_from_longest.
2768 * python/py-infevents.c (create_memory_changed_event_object): Use
2769 gdb_py_object_from_longest.
2770 * python/py-inferior.c (infpy_get_num): Use
2771 gdb_py_object_from_longest.
2772 (infpy_get_pid): Likewise.
2773
d1cab987
TT
27742020-09-15 Tom Tromey <tromey@adacore.com>
2775
2776 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2777 defines.
2778 * python/py-value.c (valpy_long): Use
2779 gdb_py_object_from_ulongest.
2780 * python/py-symtab.c (salpy_get_pc): Use
2781 gdb_py_object_from_ulongest.
2782 (salpy_get_last): Likewise.
2783 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2784 gdb_py_object_from_ulongest.
2785 * python/py-lazy-string.c (stpy_get_address): Use
2786 gdb_py_object_from_ulongest.
2787 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2788 * python/py-arch.c (archpy_disassemble): Use
2789 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2790 error handling.
2791
4bde49dc
TT
27922020-09-15 Tom Tromey <tromey@adacore.com>
2793
2794 * python/python-internal.h (gdb_py_long_from_longest): Remove
2795 defines.
2796 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2797 * python/py-type.c (convert_field, typy_get_sizeof): Use
2798 gdb_py_object_from_longest.
2799 * python/py-record-btrace.c (btpy_list_index): Use
2800 gdb_py_object_from_longest.
2801
37431074
TT
28022020-09-15 Tom Tromey <tromey@adacore.com>
2803
2804 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2805 * python/py-record.c (recpy_element_number): Use
2806 gdb_py_object_from_longest.
2807 (recpy_gap_number): Likewise.
2808
cbe25684
TT
28092020-09-15 Tom Tromey <tromey@adacore.com>
2810
2811 * top.c (ui::ui): Update.
2812 (highest_ui_num): Remove.
2813 * top.h (struct ui) <num>: Remove.
2814
db92ac45
TT
28152020-09-15 Tom Tromey <tromey@adacore.com>
2816
2817 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2818 * ui-style.c (ansi_regex_text): Now array.
2819 * rust-exp.y (number_regex_text): Now array.
2820 * linespec.c (linespec_quote_characters): Now array.
2821 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2822 Now arrays.
2823
d2b31b67
SM
28242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * debuginfod-support.c (debuginfod_client_deleter): New.
2827 (debuginfod_client_up): New.
2828 (debuginfod_init): Return debuginfod_client_up.
2829 (debuginfod_source_query): Adjust.
2830 (debuginfod_debuginfo_query): Adjust.
2831
3246bd8e
SM
28322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2833
2834 * debuginfod-support.c (debuginfod_source_query): Use
2835 make_unique_xstrdup.
2836
10242f36
SM
28372020-09-14 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2840 with `type::instance_flags`.
2841
e1044e6a
MM
28422020-09-14 Michael Mullin <masmullin@gmail.com>
2843
2844 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2845 Remove baton parameter.
2846
04902b09
PA
28472020-09-14 Pedro Alves <pedro@palves.net>
2848
2849 * Makefile.in (SELFTESTS_SRCS): Add
2850 unittests/enum-flags-selftests.c.
2851 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2852 btrace_function_flags instead of enum btrace_function_flag.
2853 * compile/compile-c-types.c (convert_qualified): Use
2854 enum_flags::raw.
2855 * compile/compile-cplus-symbols.c (convert_one_symbol)
2856 (convert_symbol_bmsym):
2857 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2858 (compile_cplus_convert_struct_or_union_methods)
2859 (compile_cplus_instance::convert_qualified_base):
2860 * go-exp.y (parse_string_or_char): Add cast to int.
2861 * unittests/enum-flags-selftests.c: New file.
2862 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2863 type to btrace_thread_flags from btrace_thread_flag.
2864 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2865 local's type to btrace_thread_flags from btrace_thread_flag. Add
2866 cast in DEBUG call.
2867
69896a2c
PA
28682020-09-14 Pedro Alves <pedro@palves.net>
2869
2870 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2871 * gdbtypes.c (address_space_name_to_int): Rename to ...
2872 (address_space_name_to_type_instance_flags): ... this.
2873 (address_space_int_to_name): Rename to ...
2874 (address_space_type_instance_flags_to_name): ... this.
2875 * gdbtypes.h (address_space_name_to_int): Rename to ...
2876 (address_space_name_to_type_instance_flags): ... this.
2877 (address_space_int_to_name): Rename to ...
2878 (address_space_type_instance_flags_to_name): ... this.
2879 * type-stack.c (type_stack::insert): Adjust to rename.
2880 * type-stack.h (type_stack::insert): Likewise.
2881
314ad88d
PA
28822020-09-14 Pedro Alves <pedro@palves.net>
2883 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * avr-tdep.c (avr_address_class_type_flags): Return
2886 type_instance_flags.
2887 (avr_address_class_type_flags_to_name): Take a
2888 type_instance_flags.
2889 (avr_address_class_name_to_type_flags): Return bool and take a
2890 type_instance_flags.
2891 * d-lang.c (build_d_types): Use type::set_instance_flags.
2892 * ft32-tdep.c (ft32_address_class_type_flags): Return
2893 type_instance_flags.
2894 (ft32_address_class_type_flags_to_name): Take a
2895 type_instance_flags.
2896 (ft32_address_class_name_to_type_flags): Return bool and take a
2897 type_instance_flags.
2898 (ft32_gdbarch_init): Use type::set_instance_flags.
2899 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2900 * gdbarch.h, gdbarch.c: Regenerate.
2901 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2902 (address_class_name_to_type_flags): Use type_instance_flags and
2903 bool.
2904 * gdbtypes.c (address_space_name_to_int)
2905 (address_space_int_to_name, make_qualified_type): Use
2906 type_instance_flags.
2907 (make_qualified_type): Use type_instance_flags and
2908 type::set_instance_flags.
2909 (make_type_with_address_space, make_cv_type, make_vector_type)
2910 (check_typedef): Use type_instance_flags.
2911 (recursive_dump_type): Cast type_instance_flags to unsigned for
2912 printing.
2913 (copy_type_recursive): Use type::set_instance_flags.
2914 (gdbtypes_post_init): Use type::set_instance_flags.
2915 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2916 <m_instance_flags>: ... this.
2917 <instance_flags, set_instance_flags>: New methods.
2918 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2919 (SET_TYPE_INSTANCE_FLAGS): New.
2920 (address_space_name_to_int, address_space_int_to_name)
2921 (make_type_with_address_space): Pass flags using
2922 type_instance_flags instead of int.
2923 * stabsread.c (cleanup_undefined_types_noname): Use
2924 type::set_instance_flags.
2925 * s390-tdep.c (s390_address_class_type_flags): Return
2926 type_instance_flags.
2927 (s390_address_class_type_flags_to_name): Take a
2928 type_instance_flags.
2929 (s390_address_class_name_to_type_flags): Return bool and take a
2930 type_instance_flags.
2931 * type-stack.c (type_stack::follow_types): Use
2932 type_instance_flags.
2933 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2934
27087b7f
TT
29352020-09-14 Tom Tromey <tromey@adacore.com>
2936
2937 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2938 * x86-tdep.c (x86_is_thunk_register_name)
2939 (x86_in_indirect_branch_thunk): Update.
2940 * sparc64-tdep.c (sparc64_fpu_register_names)
2941 (sparc64_cp0_register_names, sparc64_register_names)
2942 (sparc64_pseudo_register_names): Now const.
2943 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2944 cp0_registers_num>: Now const.
2945 * sparc-tdep.c (sparc_core_register_names)
2946 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2947 (sparc32_pseudo_register_names): Now const.
2948 (validate_tdesc_registers): Update.
2949 * rust-lang.c (rust_extensions): Now const.
2950 * p-lang.c (p_extensions): Now const.
2951 * objc-lang.c (objc_extensions): Now const.
2952 * nto-tdep.c (nto_thread_state_str): Now const.
2953 * moxie-tdep.c (moxie_register_names): Now const.
2954 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2955 Now const.
2956 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2957 (mips_linux_reg_names): Now const.
2958 (mips_gdbarch_init): Update.
2959 * microblaze-tdep.c (microblaze_register_names): Now const.
2960 * m68k-tdep.c (m68k_register_names): Now const.
2961 * m32r-tdep.c (m32r_register_names): Now const.
2962 * ia64-tdep.c (ia64_register_names): Now const.
2963 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2964 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2965 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2966 ymm_avx512_register_names, pkeys_register_names>: Now const.
2967 * i386-tdep.c (i386_register_names, i386_zmm_names)
2968 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2969 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2970 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2971 * f-lang.c (f_extensions): Now const.
2972 * d-lang.c (d_extensions): Now const.
2973 * csky-tdep.c (csky_register_names): Now const.
2974 * charset.c (default_charset_names, charset_enum): Now const.
2975 (_initialize_charset): Update.
2976 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2977 const.
2978 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2979 (bsd_uthread_solib_loaded): Update.
2980 (bsd_uthread_state): Now const.
2981 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2982 (amd64_ymm_avx512_names, amd64_ymmh_names)
2983 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2984 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2985 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2986 (amd64_dword_names): Now const.
2987 * agent.c (can_use_agent_enum): Now const.
2988 * ada-tasks.c (task_states, long_task_states): Now const.
2989 * ada-lang.c (known_runtime_file_name_patterns)
2990 (known_auxiliary_function_name_patterns, attribute_names)
2991 (standard_exc, ada_extensions): Now const.
2992
89806626
SM
29932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2994
2995 * bcache.h (struct bcache) <bcache>: Remove constructor.
2996 <m_hash_function, m_compare_function>: Remove.
2997 <~bcache>: Make virtual.
2998 <compare>: Remove static method, introduce virtual method.
2999 <default_hash>: Remove.
3000 <hash>: New virtual method.
3001 * bcache.c (bcache::expand_hash_table): Update.
3002 (bcache::insert): Update.
3003 (bcache::hash): New.
3004 (bcache::compare): Update comment and parameter names.
3005 * gdbtypes.c (types_deeply_equal): Update.
3006 * psymtab.h (struct psymbol_bcache): New struct.
3007 (class psymtab_storage) <psymtab_storage>: Make default.
3008 <psymbol_cache>: Change type to psymbol_bcache.
3009 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3010 (psymbol_hash): Change to...
3011 (psymbol_bcache::hash): ... this.
3012 (psymbol_compare): Change to...
3013 (psymbol_bcache::compare): ... this.
3014
677c92fe
SM
30152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3016
3017 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3018 checking for initial lwp.
3019
3eba3a01
TT
30202020-09-14 Tom Tromey <tromey@adacore.com>
3021
3022 * m68k-tdep.c (m68k_extract_return_value): Use
3023 pointer_result_regnum.
3024 (m68k_store_return_value): Likewise.
3025 (m68k_reg_struct_return_p): Handle vectors and arrays.
3026 (m68k_return_value): Handle arrays.
3027 (m68k_svr4_return_value): Fix single-element aggregate handling.
3028 Handle long double. Adjust for embedded ABI.
3029 (m68k_svr4_init_abi): Set pointer_result_regnum.
3030 (m68k_embedded_init_abi): New function.
3031 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3032 (m68k_osabi_sniffer): New function.
3033 (_initialize_m68k_tdep): Register osabi sniffer.
3034 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3035 member.
3036
33f4dd48
SM
30372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3040 with gdb::unique_xmalloc_ptr<char>.
3041
8400a90d
SM
30422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 * xml-support.h (xml_fetch_another): Change type to be a
3045 function_view.
3046 (xml_process_xincludes): Remove baton parameter.
3047 (xml_fetch_content_from_file): Change baton parameter to
3048 dirname.
3049 * xml-support.c (struct xinclude_parsing_data)
3050 <xinclude_parsing_data>: Remove baton parameter.
3051 <fetcher_baton>: Remove.
3052 (xinclude_start_include): Adjust.
3053 (xml_process_xincludes): Adjust.
3054 (xml_fetch_content_from_file): Replace baton parameter with
3055 dirname.
3056 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3057 (xml_init_syscalls_info): Use a lambda.
3058 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3059 (file_read_description_xml): Use a lambda.
3060 (fetch_available_features_from_target): Change baton parameter
3061 to target_ops.
3062 (target_read_description_xml): Use a lambda.
3063 (target_fetch_description_xml): Use a lambda.
3064 (string_read_description_xml): Update.
3065
04f5bab2
SM
30662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3069 uses with type::endianity_is_not_default.
3070
db558e34
SM
30712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * gdbtypes.h (struct type) <endianity_is_not_default,
3074 set_endianity_is_not_default>: New methods.
3075 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3076 type::endianity_is_not_default, change all write call sites to
3077 use type::set_endianity_is_not_default.
3078
22c4c60c
SM
30792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3082 uses with type::is_fixed_instance.
3083
9cdd0d12
SM
30842020-09-14 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * gdbtypes.h (struct type) <is_fixed_instance,
3087 set_is_fixed_instance>: New methods.
3088 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3089 write call sites to use type::set_is_fixed_instance.
3090
0becda7a
SM
30912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3094 uses with type::is_gnu_ifunc.
3095
03cc7249
SM
30962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3099 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3100 use type::set_is_gnu_ifunc.
3101
3f46044c
SM
31022020-09-14 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3105 uses with type::stub_is_supported.
3106
9baccff6
SM
31072020-09-14 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3110 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3111 use type::set_stub_is_supported.
3112
bd63c870
SM
31132020-09-14 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3116 uses with type::is_vector.
3117
2062087b
SM
31182020-09-14 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3121 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3122 use type::set_is_vector.
3123
a409645d
SM
31242020-09-14 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3127 uses with type::has_varargs.
3128
1d6286ed
SM
31292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3130
3131 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3132 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3133 use type::set_has_varargs.
3134
7f9f399b
SM
31352020-09-14 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3138 uses with type::is_prototyped.
3139
27e69b7a
SM
31402020-09-14 Simon Marchi <simon.marchi@efficios.com>
3141
3142 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3143 New methods.
3144 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3145 call sites to use type::set_is_prototyped.
3146
d2183968
SM
31472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3150 uses with type::target_is_stub.
3151
8f53807e
SM
31522020-09-14 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3155 New methods.
3156 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3157 sites to use type::set_target_is_stub.
3158
e46d3488
SM
31592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * gdbtypes.h (TYPE_STUB): Remove, replace all
3162 uses with type::is_stub.
3163
b4b73759
SM
31642020-09-14 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3167 (TYPE_STUB): Use type::is_stub, change all write call sites to
3168 use type::set_is_stub.
3169
20ce4123
SM
31702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3173 type::has_no_signedness.
3174
15152a54
SM
31752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * gdbtypes.h (struct type) <has_no_signedness,
3178 set_has_no_signedness>: New methods.
3179 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3180 call sites to use type::set_has_no_signedness.
3181
c6d940a9
SM
31822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3185 type::is_unsigned.
3186
653223d3
SM
31872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3190 methods.
3191 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3192 sites to use type::set_is_unsigned.
3193
55ea94da 31942020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3195 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3196
e851246a
SM
3197 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3198 pointer and stack frame offset when unwinding.
55ea94da 3199
6791b117
PA
32002020-09-13 Pedro Alves <pedro@palves.net>
3201
3202 * NEWS: Document "-break-insert --qualified".
3203 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3204
77f2120b
PA
32052020-09-13 Pedro Alves <pedro@palves.net>
3206
3207 * linespec.c (classify_mtype, compare_msyms): Delete.
3208 (search_minsyms_for_name): Remove classification logic. Instead
3209 filter out trampoline symbols if we also found an external
3210 function of the same name.
3211
ed6a896c
JB
32122020-09-13 Joel Brobecker <brobecker@adacore.com>
3213
3214 * NEWS: Create a new section for the next release branch.
3215 Rename the section of the current branch, now that it has
3216 been cut.
3217
32aea73e
JB
32182020-09-13 Joel Brobecker <brobecker@adacore.com>
3219
3220 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3221 * version.in: Bump version to 11.0.50.DATE-git.
3222
8087c3fa
JB
32232020-09-12 Joel Brobecker <brobecker@adacore.com>
3224
3225 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3226
2a67f09d
FW
32272020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3228 Felix Willgerodt <Felix.Willgerodt@intel.com>
3229
3230 * gdbarch.sh: Added bfloat16 type.
3231 * gdbarch.c: Regenerated.
3232 * gdbarch.h: Regenerated.
3233 * gdbtypes.c (floatformats_bfloat16): New struct.
3234 (gdbtypes_post_init): Add builtin_bfloat16.
3235 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3236 (floatformats_bfloat16): New struct.
3237 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3238 (i386_ymm_type): Add field "v16_bfloat16"
3239 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3240 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3241 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3242 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3243 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3244 * features/i386/64bit-avx512.c: Regenerated.
3245 * features/i386/64bit-sse.xml: Add bfloat16 type.
3246 * features/i386/64bit-sse.c: Regenerated.
3247
1347d111
FW
32482020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3249
3250 * i386-tdep.c (i386_zmm_type): Fix field names.
3251 (i386_ymm_type): Fix field names.
3252
7a4e8e7d
TBA
32532020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3254
3255 * breakpoint.c: Fix typo in the help message of the
3256 "set breakpoint condition-evaluation" command.
3257
cf4ac4be
KR
32582020-09-10 Kamil Rytarowski <n54@gmx.com>
3259
3260 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3261 * (nbsd_nat_target::pid_to_exec_file)
3262 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3263 (nbsd_nat_target::post_startup_inferior)
3264 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3265 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3266 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3267 * (nbsd_thread_lister): Remove.
3268
f404573e
KR
32692020-09-10 Kamil Rytarowski <n54@gmx.com>
3270
3271 * fork-inferior.c (startup_inferior): Avoid double free.
3272
1ccb2c17
KR
32732020-09-10 Kamil Rytarowski <n54@gmx.com>
3274
3275 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3276 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3277
feedfcc7
KR
32782020-09-10 Kamil Rytarowski <n54@gmx.com>
3279
3280 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3281 * netbsd-nat.c: Include <sys/ptrace.h>.
3282 * (netbsd_nat::enable_proc_events): Add.
3283
c489f8c6
KR
32842020-09-10 Kamil Rytarowski <n54@gmx.com>
3285
3286 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3287 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3288 (netbsd_nat::for_each_thread): Add.
3289 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3290 "gdbsupport/common-debug.h".
3291 * (netbsd_nat::netbsd_thread_lister)
3292 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3293 (netbsd_nat::for_each_thread): Add.
3294
330662f6
KR
32952020-09-10 Kamil Rytarowski <n54@gmx.com>
3296
3297 * netbsd-nat.h: Include <unistd.h>.
3298 * (netbsd_nat::pid_to_exec_file): Add.
3299 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3300 * (netbsd_nat::pid_to_exec_file) Add.
3301
70b67307
KR
33022020-09-10 Kamil Rytarowski <n54@gmx.com>
3303
3304 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3305
99cf6da6
KR
33062020-09-10 Kamil Rytarowski <n54@gmx.com>
3307
3308 * netbsd-nat.h: New file.
3309 * netbsd-nat.c: Likewise.
3310
1b788fb6
TT
33112020-09-09 Tom Tromey <tromey@adacore.com>
3312
3313 * ada-lang.c (remove_extra_symbols): Do not increment when
3314 removing an element
3315
03b0a45f
TT
33162020-09-08 Tom Tromey <tromey@adacore.com>
3317
3318 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3319
3cae4447
TT
33202020-09-08 Tom Tromey <tromey@adacore.com>
3321
3322 PR win32/25302:
3323 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3324 (gdb_bfd_init_data): New function.
3325 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3326
7f08fd51
TBA
33272020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328
3329 * infrun.c (fetch_inferior_event): Use
3330 `switch_to_target_no_thread` to switch the target.
3331
3e6ff933
TT
33322020-09-06 Tom Tromey <tom@tromey.com>
3333
3334 * symfile.h (dwarf2_free_objfile): Don't declare.
3335
e56798df
AKS
33362020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3337
3338 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3339 to match 16 byte real/complex type generated by Flang compiler.
3340
8f5c6526
TV
33412020-09-03 Tom de Vries <tdevries@suse.de>
3342
3343 PR breakpoint/26546
3344 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3345 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3346
c5065df0
SM
33472020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * maint.c (index_digits): New function.
3350 (struct maint_print_section_data): Remove.
3351 (print_bfd_section_info): Remove print_data parameter, add arg
3352 and index_digits.
3353 (print_objfile_section_info): Likewise.
3354 (print_bfd_section_info_maybe_relocated): Likewise (plus
3355 objfile).
3356 (maintenance_info_sections): Adjust calls.
3357
02c6f3f1
TT
33582020-09-02 Tom Tromey <tromey@adacore.com>
3359
3360 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3361 for null pointers.
3362 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3363
ef5e5b0b
SM
33642020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * bcache.h (struct bcache) <insert>: Change type of `added` to
3367 pointer to bool.
3368 * bcache.c (bcache::insert): Likewise.
3369 * gdbtypes.c (check_types_worklist): Adjust.
3370 * psymtab.c (add_psymbol_to_bcache): Adjust.
3371
973695d6
KB
33722020-08-31 Kevin Buettner <kevinb@redhat.com>
3373
3374 * corelow.c (unordered_set): Include.
3375 (class core_target): Add field 'm_core_unavailable_mappings'.
3376 (core_target::build_file_mappings): Print only one warning
3377 per inaccessible file. Add unavailable/broken mappings
3378 to m_core_unavailable_mappings.
3379 (core_target::xfer_partial): Call...
3380 (core_target::xfer_memory_via_mappings): New method.
3381
264fc0e2
SM
33822020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3385 type to bool.
3386
2de01bdb
SM
33872020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * dwarf2/read.c (struct field_info): Fix indentation.
3390
f3bd50f1
SM
33912020-08-31 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3394 ordering in comment.
3395 * frame.c (frame_id_eq): Fix indentation.
3396
22b9b4b0
SL
33972020-08-31 Scott Linder <scott@scottlinder.com>
3398 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3401 inline frame ids in outer frame.
3402
84154d16
SM
34032020-08-31 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3406 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3407 (outer_frame_id): Use FID_STACK_OUTER instead of
3408 FID_STACK_INVALID.
3409 (frame_id_p): Don't check for outer_frame_id.
3410
8efaf6b3
SM
34112020-08-31 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3414 regnum/frame in value. Call allocate_value_lazy.
3415 * frame.c (frame_unwind_register_value): Use
3416 val_print_not_saved.
3417
fe1fe7ea
SM
34182020-08-31 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3421
f7c7700d
PA
34222020-08-29 Pedro Alves <pedro@palves.net>
3423
3424 * progspace.c (print_program_space): Use all_inferiors. Switch to
3425 the inferior before calling target_pid_to_str.
3426
e0814aae
TT
34272020-08-28 Tom Tromey <tom@tromey.com>
3428
3429 * xcoffread.c (xcoff_end_psymtab): Update comment.
3430 * dbxread.c (dbx_end_psymtab): Update comment.
3431
626d2320
TV
34322020-08-28 Tom de Vries <tdevries@suse.de>
3433
3434 PR breakpoint/26544
3435 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3436 event_location.
3437 (create_breakpoint): Same.
3438 (base_breakpoint_decode_location): Same.
3439 (bkpt_create_sals_from_location): Same.
3440 (bkpt_decode_location): Same.
3441 (bkpt_probe_create_sals_from_location): Same.
3442 (bkpt_probe_decode_location): Same.
3443 (tracepoint_create_sals_from_location): Same.
3444 (tracepoint_decode_location): Same.
3445 (tracepoint_probe_decode_location): Same.
3446 (strace_marker_create_sals_from_location): Same.
3447 (strace_marker_decode_location): Same.
3448 (create_sals_from_location_default): Same.
3449 (decode_location_default): Same.
3450 * breakpoint.h (struct breakpoint_ops): Same.
3451 (create_breakpoint): Same.
3452 * linespec.h (decode_line_full): Same.
3453 * linespec.c (decode_line_full): Same. Throw error if
3454 result.size () == 0.
3455
df631783
PA
34562020-08-27 Pedro Alves <pedro@palves.net>
3457
3458 PR gdb/26524
3459 * breakpoint.c (until_break_fsm) <location_breakpoint,
3460 caller_breakpoint>: Delete fields.
3461 <breakpoints>: New field.
3462 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3463 two individual breakpoints.
3464 (until_break_fsm::should_stop): Loop over breakpoints in the
3465 breakpoint vector.
3466 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3467 vector.
3468 (until_break_command): Handle location expanding into multiple
3469 sals.
3470
b2b38aa4
PA
34712020-08-27 Pedro Alves <pedro@palves.net>
3472
3473 PR gdb/26523
3474 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3475 bp_until breakpoints user-specified locations. Update intro
3476 comment.
3477
b886559f
SM
34782020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3481 gdb_bfd_sections): New.
3482 * maint.c (print_bfd_section_info): Change param type to
3483 maint_print_section_data.
3484 (print_objfile_section_info): Likewise.
3485 (print_bfd_section_info_maybe_relocated): Likewise.
3486 (maintenance_info_sections): Use gdb_bfd_sections.
3487
4c6e63bf
SV
34882020-08-25 Shahab Vahedi <shahab@synopsys.com>
3489
3490 * MAINTAINERS: Add ARC target and maintainer.
3491
8d7f0635
AK
34922020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3493
3494 * configure.tgt: ARC support for GNU/Linux.
3495 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3496 * arc-linux-tdep.c: New file.
3497 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3498 * arc-tdep.c (arc_write_pc): Use it.
3499
fdd8731b
SV
35002020-08-25 Shahab Vahedi <shahab@synopsys.com>
3501
3502 * arc-tdep.c (arc_check_for_hardware_loop): New.
3503 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3504
22459524
SV
35052020-08-25 Shahab Vahedi <shahab@synopsys.com>
3506
3507 * arc-tdep.h: Include "gdbarch.h".
3508
995d3a19
SV
35092020-08-25 Shahab Vahedi <shahab@synopsys.com>
3510
3511 * arch/arc.h
3512 (arc_gdbarch_features): New class to stir the selection of target XML.
3513 (arc_create_target_description): Use FEATURES to choose XML target.
3514 (arc_lookup_target_description): Use arc_create_target_description
3515 to create _new_ target descriptions or return the already created
3516 ones if the FEATURES is the same.
3517 * arch/arc.c: Implementation of prototypes described above.
3518 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3519 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3520 * arc-tdep.c (*_feature_name): Make feature names consistent.
3521 (arc_register_feature): A new struct to hold information about
3522 registers of a particular target/feature.
3523 (arc_check_tdesc_feature): Check if XML provides registers in
3524 compliance with ARC_REGISTER_FEATURE structs.
3525 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3526 (determine_*_reg_feature_set): Which feature name to look for.
3527 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3528 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3529 to expected ISA enums to be used in arc_gdbarch_features structs.
3530 * features/Makefile (FEATURE_XMLFILES): Add new files.
3531 * gdb/features/arc/v1-aux.c: New file.
3532 * gdb/features/arc/v1-aux.xml: Likewise.
3533 * gdb/features/arc/v1-core.c: Likewise.
3534 * gdb/features/arc/v1-core.xml: Likewise.
3535 * gdb/features/arc/v2-aux.c: Likewise.
3536 * gdb/features/arc/v2-aux.xml: Likewise.
3537 * gdb/features/arc/v2-core.c: Likewise.
3538 * gdb/features/arc/v2-core.xml: Likewise.
3539 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3540
3945d2d7
GM
35412020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3542 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 PR m2/26372
fc5d6901 3545 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3546 an assert. Remove single element array indexing pattern as the
3547 MULTI_SUBSCRIPT support will handle this case too.
3548
2677f2d3
SM
35492020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3550
3551 * value.h (valprint_check_validity): Move declaration from
3552 here...
3553 * valprint.h (valprint_check_validity): ... to here.
3554
c426fddb
SM
35552020-08-24 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * debug.h: New file.
3558 * debug.c (debug_prefixed_vprintf): New function.
3559 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3560 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3561
1eb8556f
SM
35622020-08-24 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * infrun.h (infrun_debug_printf_1): New function declaration.
3565 (infrun_debug_printf): New macro.
3566 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3567 throughout.
3568 (infrun_debug_printf): New function.
3569 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3570 (handle_jit_event): Likewise.
3571
b8fff44e
MW
35722020-08-21 Mark Wielaard <mark@klomp.org>
3573
3574 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3575
d19c3068
SM
35762020-08-22 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * frame.c (enum class frame_id_status): New.
3579 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3580 (fprintf_frame): Update.
3581 (compute_frame_id): Set frame id status to "computing" on entry.
3582 Set it back to "not_computed" on failure and to "computed" on
3583 success.
3584 (get_frame_id): Assert the frame id is not being computed.
3585 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3586 (create_new_frame): Likewise.
3587 (frame_cleanup_after_sniffer): Update assert.
3588
b70e516e
SM
35892020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * regcache.c (pid_ptid_regcache_map): New type.
3592 (target_ptid_regcache_map): Remove.
3593 (target_pid_ptid_regcache_map): New type.
3594 (regcaches): Change type to target_pid_ptid_regcache_map.
3595 (get_thread_arch_aspace_regcache): Update.
3596 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3597 case.
3598 (regcaches_size): Update.
3599 (regcache_count): Update.
3600 (registers_changed_ptid_target_pid_test): New.
3601 (_initialize_regcache): Register new test.
3602
cdd9148a
SM
36032020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * regcache.c (regcache_count): New.
3606 (struct regcache_test_data): New.
3607 (regcache_test_data_up): New.
3608 (populate_regcaches_for_test): New.
3609 (regcaches_test): Remove.
3610 (get_thread_arch_aspace_regcache_test): New.
3611 (registers_changed_ptid_all_test): New.
3612 (registers_changed_ptid_target_test): New.
3613 (registers_changed_ptid_target_ptid_test): New.
3614 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3615 (_initialize_regcache): Register new tests.
3616
dd125343
SM
36172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3618
3619 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3620 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3621 gdbarch and aspace parameter. Use current inferior's aspace.
3622 Validate regcache's arch value.
3623 (regcaches_test): Update.
3624
3ee93972
SM
36252020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3626
3627 * regcache.c (regcaches_test): Call registers_changed.
3628
33bf4c5c
TBA
36292020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630
3631 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3632
c2fd7fae
AKS
36332020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3634
3635 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3636 to find the end of prologue for flang compiled binaries.
3637 * arm-tdep.c (arm_skip_prologue): Likewise.
3638 * i386-tdep.c (i386_skip_prologue): Likewise.
3639 * producer.c (producer_is_llvm): New function.
3640 (producer_parsing_tests): Added new tests for clang/flang.
3641 * producer.h (producer_is_llvm): New declaration.
3642
9327494e
SM
36432020-08-18 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * linux-nat.c (linux_nat_debug_printf): New function.
3646 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3647
d138725a
AM
36482020-08-18 Aaron Merey <amerey@redhat.com>
3649
3650 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3651 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3652 (CLIBS): Add DEBUGINFOD_LIBS.
3653
f9b11e6b
ST
36542020-08-17 Sergei Trofimovich <siarheit@google.com>
3655
3656 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3657 'gdbarch_num_regs'.
3658
3ae7ab99
TT
36592020-08-17 Tom Tromey <tromey@adacore.com>
3660
3661 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3662 ada_get_decoded_value returns NULL.
3663
b017825f
TT
36642020-08-17 Tom Tromey <tromey@adacore.com>
3665
3666 * python/py-inferior.c (infpy_search_memory): Use
3667 gdb_py_object_from_ulongest.
3668 * python/py-infevents.c (create_inferior_call_event_object)
3669 (create_memory_changed_event_object): Use
3670 gdb_py_object_from_ulongest.
3671 * python/py-linetable.c (ltpy_entry_get_pc): Use
3672 gdb_py_object_from_ulongest.
3673
7635cf79
SM
36742020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3675
3676 * loc.c (class symbol_needs_eval_context): Fix indentation.
3677
f54be24b
SM
36782020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3679
3680 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3681 bool.
3682
53d5a2a5
TV
36832020-08-17 Tom de Vries <tdevries@suse.de>
3684
3685 PR gdb/26393
3686 * gdbtypes.c (dump_dynamic_prop): New function.
3687 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3688
547ce8f0
TV
36892020-08-15 Tom de Vries <tdevries@suse.de>
3690
3691 PR backtrace/26390
3692 * stack.c (print_frame_args): Temporarily set the selected
3693 frame to FRAME while printing the frame's arguments.
3694
6ea815e7
PFC
36952020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3696
3697 PR breakpoints/26385
3698 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3699 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3700
6e562fa3
PFC
37012020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3702
3703 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3704 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3705 and >= to check return value instead of == -1 and != -1.
3706
d369b608
SM
37072020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3708
3709 * utils.h (class gdb_argv) <as_array_view>: New method.
3710 * utils.c (gdb_argv_as_array_view_test): New.
3711 (_initialize_utils): Register selftest.
3712 * maint.c (maintenance_selftest): Use the new method.
3713
b31488a3
KR
37142020-08-13 Kamil Rytarowski <n54@gmx.com>
3715
3716 * target.h (supports_dumpcore, dumpcore): New
3717 function declarations.
3718 * target.c (supports_dumpcore, dumpcore): New
3719 functions.
3720 * target-delegates.c: Rebuild.
3721 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3722 and target_dumpcore ().
3723
002a3166
AM
37242020-08-13 Aaron Merey <amerey@redhat.com>
3725
3726 * debuginfod-support.c: Replace global variables with user_data.
3727
ece5bc8a
SM
37282020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3729
3730 * maint.c (maintenance_selftest): Split args and pass array_view
3731 to run_tests.
3732
6d8a0a5e
LM
37332020-08-12 Luis Machado <luis.machado@linaro.org>
3734
3735 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3736 type's length.
3737 Use %s and pulongest to print the length.
3738
7cf663a9
PA
37392020-08-12 Pedro Alves <palves@redhat.com>
3740
3741 * NEWS: Move "Multi-target debugging support" item to the
3742 "Changes since GDB 9" section.
3743
27c7b875
PA
37442020-08-12 Pedro Alves <palves@redhat.com>
3745
3746 PR gdb/26336
3747 * progspace.c (program_space::remove_objfile): Invalidate the
3748 frame cache.
3749
1796a2a1
TV
37502020-08-11 Tom de Vries <tdevries@suse.de>
3751
3752 * MAINTAINERS: Mark ms1 as deleted.
3753
f8e3fe0d
LM
37542020-08-10 Luis Machado <luis.machado@linaro.org>
3755
3756 PR gdb/26310
3757
3758 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3759 act accordingly.
3760 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3761 movz/str/stur/stp skipping behavior.
3762
cc308722
LM
37632020-08-10 Luis Machado <luis.machado@linaro.org>
3764
3765 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3766 struct user_sve_header instead of struct sve_context.
3767
041d9819
SM
37682020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3769
3770 * read.h (dwarf2_fetch_die_loc_sect_off,
3771 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3772 `void *` parameter with function_view.
3773 * read.c (dwarf2_fetch_die_loc_sect_off,
3774 dwarf2_fetch_die_loc_cu_off): Likewise.
3775 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3776 (per_cu_dwarf_call): Adjust.
3777 (get_frame_address_in_block_wrapper): Remove.
3778 (indirect_synthetic_pointer): Adjust.
3779 (get_ax_pc): Remove.
3780 (dwarf2_compile_expr_to_ax): Adjust.
3781
38f8aa06
TV
37822020-08-08 Tom de Vries <tdevries@suse.de>
3783
3784 PR build/26344
3785 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3786 constructor.
3787 * regcache.c (get_thread_arch_aspace_regcache): Same.
3788
a52b3ae2
TT
37892020-08-07 Tom Tromey <tromey@adacore.com>
3790
3791 * ravenscar-thread.c
3792 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3793 New method.
3794 (ravenscar_thread_target::wait): Check
3795 runtime_initialized.
3796 (ravenscar_thread_target::prepare_to_store)
3797 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3798 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3799 (ravenscar_thread_target::stopped_by_watchpoint)
3800 (ravenscar_thread_target::stopped_data_address)
3801 (ravenscar_thread_target::core_of_thread): Use
3802 scoped_restore_current_thread and
3803 set_base_thread_from_ravenscar_task.
3804
0e29517d
TT
38052020-08-07 Tom Tromey <tromey@adacore.com>
3806
3807 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3808
592f9bd7
TT
38092020-08-07 Tom Tromey <tromey@adacore.com>
3810
3811 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3812 update_inferior_ptid before update_thread_list.
3813 (temporarily_change_regcache_ptid): New class.
3814 (ravenscar_thread_target::fetch_registers)
3815 (ravenscar_thread_target::store_registers)
3816 (ravenscar_thread_target::prepare_to_store): Use base thread when
3817 forwarding operation.
3818
39e2018a
TT
38192020-08-07 Tom Tromey <tromey@adacore.com>
3820
3821 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3822 "is_pid" case.
3823
2080266b
TT
38242020-08-07 Tom Tromey <tromey@adacore.com>
3825
3826 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3827 New methods.
3828 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3829 first.
3830 (ravenscar_thread_target::add_thread): Rename from
3831 ravenscar_add_thread.
3832 (ravenscar_thread_target::update_thread_list): Use a lambda.
3833 (ravenscar_thread_target::xfer_partial): New method.
3834
78c02f21
TT
38352020-08-07 Tom Tromey <tromey@adacore.com>
3836
3837 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3838 gdb::function_view.
3839 (iterate_over_live_ada_tasks): Change type of argument.
3840 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3841 of argument.
3842
d5d833af
TT
38432020-08-07 Tom Tromey <tromey@adacore.com>
3844
3845 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3846 Remove.
3847 (ravenscar_thread_target::extra_thread_info): Remove.
3848 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3849 defer to target beneath for non-Ravenscar threads.
3850
a8ac85bb
TT
38512020-08-07 Tom Tromey <tromey@adacore.com>
3852
3853 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3854 get_base_thread_from_ravenscar_task>: Now methods.
3855 <m_cpu_map>: New member.
3856 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3857 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3858 (ravenscar_thread_target::task_is_currently_active): Update.
3859 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3860 Now a method.
3861 (ravenscar_thread_target::add_active_thread): Put initial thread
3862 into the m_cpu_map.
3863
550ab58d
TT
38642020-08-07 Tom Tromey <tromey@adacore.com>
3865
3866 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3867 event_ptid.
3868
e9546579
TT
38692020-08-07 Tom Tromey <tromey@adacore.com>
3870
3871 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3872 runtime_initialized.
3873
3d4470e5
TT
38742020-08-07 Tom Tromey <tromey@adacore.com>
3875
3876 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3877 add_active_thread.
3878 (ravenscar_thread_target::add_active_thread): Now public.
3879 (ravenscar_inferior_created): Call add_active_thread after pushing
3880 the target.
3881
888bdb2b
SM
38822020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3883
3884 * regcache.c (ptid_regcache_map): New type.
3885 (target_ptid_regcache_map): New type.
3886 (regcaches): Change type to target_ptid_regcache_map.
3887 (get_thread_arch_aspace_regcache): Update to regcaches' new
3888 type.
3889 (regcache_thread_ptid_changed): Likewise.
3890 (registers_changed_ptid): Likewise.
3891 (regcaches_size): Likewise.
3892 (regcaches_test): Update.
3893 (regcache_thread_ptid_changed): Update.
3894 * regcache.h (regcache_up): New type.
3895 * gdbsupport/ptid.h (hash_ptid): New struct.
3896
b161a60d
SM
38972020-08-07 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * observable.h (thread_ptid_changed): Add parameter
3900 `process_stratum_target *`.
3901 * infrun.c (infrun_thread_ptid_changed): Add parameter
3902 `process_stratum_target *` and use it.
3903 (selftests): New namespace.
3904 (infrun_thread_ptid_changed): New function.
3905 (_initialize_infrun): Register selftest.
3906 * regcache.c (regcache_thread_ptid_changed): Add parameter
3907 `process_stratum_target *` and use it.
3908 (regcache_thread_ptid_changed): New function.
3909 (_initialize_regcache): Register selftest.
3910 * thread.c (thread_change_ptid): Pass target to
3911 thread_ptid_changed observable.
3912
d2854d8d
CT
39132020-08-06 Caroline Tice <cmtice@google.com>
3914
fe4c3d43
SM
3915 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3916 (struct dwp_sections): Update field comments. Add loclists and
3917 rnglists fields.
3918 (struct virtual_v2_dwo_sections): Rename struct to
3919 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3920 size & offset fields for loclists and rnglists.
3921 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3922 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3923 skipping dummy type units.
3924 (create_dwp_hash_table): Update the large comment above the function to
3925 discuss Version 5 DWP files as well, with references. Update all the
3926 version checks in the function to check for version 5 as well. Add new
3927 section at the end to create dwp hash table for version 5.
3928 (create_dwp_v2_section): Rename function to
3929 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3930 Add V5 to error message text.
3931 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3932 into calls to create_dwp_v2_or_v5_section.
3933 (create_dwo_unit_in_dwp_v5): New function.
3934 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3935 check for version2; add else clause to handle version 5.
3936 (open_and_init_dwo_file): Add code to check dwarf version & only call
3937 create_debug_types_hash_table (with sections.types) if version is not 5;
3938 else call create_debug_type_hash_table, with sections.info.
3939 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3940 version 5.
3941 (dwarf2_locate_v5_dwp_sections): New function.
3942 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3943 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3944
159ed7d9
SM
39452020-08-06 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * regcache.h (class regcache): Remove friend
3948 registers_changed_ptid.
3949 <regcache_thread_ptid_changed>: Remove.
3950 <regcaches>: Remove.
3951 * regcache.c (regcache::regcaches): Rename to...
3952 (regcaches): ... this. Make static.
3953 (get_thread_arch_aspace_regcache): Update.
3954 (regcache::regcache_thread_ptid_changed): Rename to...
3955 (regcache_thread_ptid_changed): ... this. Update.
3956 (class regcache_access): Remove.
3957 (regcaches_test): Update.
3958 (_initialize_regcache): Update.
3959 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3960 <forward_list>.
3961
174981ae
SM
39622020-08-06 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * regcache.h (class regcache) <current_regcache>: Rename to...
3965 <regcaches>: ... this. Move doc here.
3966 * regcache.c (regcache::current_regcache) Rename to...
3967 (regcache::regcaches): ... this. Move doc to header.
3968 (get_thread_arch_aspace_regcache): Update.
3969 (regcache::regcache_thread_ptid_changed): Update.
3970 (registers_changed_ptid): Update.
3971 (class regcache_access) <current_regcache_size>: Rename to...
3972 <regcaches_size>: ... this.
3973 (current_regcache_test): Rename to...
3974 (regcaches_test): ... this.
3975 (_initialize_regcache): Update.
3976
ed908db6
VC
39772020-08-06 Victor Collod <vcollod@nvidia.com>
3978
3979 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3980
b5582ab7
KB
39812020-08-05 Kevin Buettner <kevinb@redhat.com>
3982
3983 * corelow.c (core_target::build_file_mappings): Don't output
3984 null pathname in warning.
3985
ea946b86
SM
39862020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3987
3988 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3989 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3990 gdb.dwarf2/dw2-single-line-discriminators.exp,
3991 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3992
57d02173
TT
39932020-08-05 Tom Tromey <tromey@adacore.com>
3994
3995 PR rust/26197:
3996 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3997 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3998 Fix off-by-one and type size errors in ordinary case.
3999
5555c86d
TV
40002020-08-05 Tom de Vries <tdevries@suse.de>
4001
4002 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4003 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4004
97916bfe
SM
40052020-08-04 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * frame.h (frame_id_p): Return bool.
4008 (frame_id_artificial_p): Return bool.
4009 (frame_id_eq): Return bool.
4010 (has_stack_frames): Return bool.
4011 (get_selected_frame): Fix typo in comment.
4012 (get_frame_pc_if_available): Return bool.
4013 (get_frame_address_in_block_if_available): Return bool.
4014 (get_frame_func_if_available): Return bool.
4015 (read_frame_register_unsigned): Return bool.
4016 (get_frame_register_bytes): Return bool.
4017 (safe_frame_unwind_memory): Return bool.
4018 (deprecated_frame_register_read): Return bool.
4019 (frame_unwinder_is): Return bool.
4020 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4021 bool.
4022 <this_id::p>: Likewise.
4023 <prev_p>: Likewise.
4024 (frame_stash_add): Return bool.
4025 (get_frame_id): Use bool.
4026 (frame_id_build_special) Use bool.
4027 (frame_id_build_unavailable_stack): Use bool.
4028 (frame_id_build): Use bool.
4029 (frame_id_p): Return bool, use true/false instead of 1/0.
4030 (frame_id_artificial_p): Likewise.
4031 (frame_id_eq): Likewise.
4032 (frame_id_inner): Likewise.
4033 (get_frame_func_if_available): Likewise.
4034 (read_frame_register_unsigned): Likewise.
4035 (deprecated_frame_register_read): Likewise.
4036 (get_frame_register_bytes): Likewise.
4037 (has_stack_frames): Likewise.
4038 (inside_main_func): Likewise.
4039 (inside_entry_func): Likewise.
4040 (get_frame_pc_if_available): Likewise.
4041 (get_frame_address_in_block_if_available): Likewise.
4042 (frame_unwinder_is): Likewise.
4043 (safe_frame_unwind_memory): Likewise.
4044 (frame_unwind_arch): Likewise.
4045
fedfee88
SM
40462020-08-04 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4049 type to cached_copy_status.
4050 (fprintf_frame): Adjust.
4051 (get_frame_func_if_available): Adjust.
4052 (frame_cleanup_after_sniffer): Adjust.
4053
6cfa9b59
MW
40542020-08-04 Mark Wielaard <mark@klomp.org>
4055
4056 * MAINTAINERS (Write After Approval): Update email address.
4057
66d6346b
SM
40582020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4059
4060 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4061 dynamic_prop::const_val.
4062
8a6d5e35
SM
40632020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4066 dynamic_prop::kind.
4067
51d6067d
SM
40682020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4069
4070 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4071
b26e2ae7
JM
40722020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4073
4074 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4075
39791af2
JM
40762020-08-04 Weimin Pan <weimin.pan@oracle.com>
4077 Jose E. Marchesi <jose.marchesi@oracle.com>
4078
4079 * configure.tgt: Add entry for bpf-*-*.
4080 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4081 (ALLDEPFILES): Add bpf-tdep.c.
4082 * bpf-tdep.c: New file.
4083 * MAINTAINERS: Add bpf target and maintainer.
4084 * NEWS: Mention the support for the new target.
4085
521894aa
TV
40862020-08-04 Tom de Vries <tdevries@suse.de>
4087
4088 PR symtab/23270
4089 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4090 Error.
4091
5d6356e9
JB
40922020-08-03 John Baldwin <jhb@FreeBSD.org>
4093
4094 * syscalls/freebsd.xml: Regenerate.
4095
0cf82b81
JB
40962020-08-03 John Baldwin <jhb@FreeBSD.org>
4097
4098 * syscalls/update-freebsd.sh: Fix usage and year range.
4099
8f34b746
TV
41002020-08-03 Tom de Vries <tdevries@suse.de>
4101
4102 PR symtab/26333
4103 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4104 DW_LNE_lo_user/DW_LNE_hi_user range.
4105
5e500d33
SM
41062020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 PR ada/26318
4109 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4110 kind.
4111
78319c15
TBA
41122020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4113
4114 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4115
4c55e970
TBA
41162020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4117
4118 * breakpoint.c (set_breakpoint_condition): Update the condition
4119 expressions after checking that the input condition string parses
4120 successfully and does not contain junk at the end.
4121
1e620590
TBA
41222020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4123
4124 * breakpoint.c (set_breakpoint_condition): Update the
4125 condition string after parsing the new condition successfully.
4126
c8693053
RO
41272020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128
4129 * proc-api.c (_STRUCTURED_PROC): Don't define.
4130 * proc-events.c: Likewise.
4131 * proc-flags.c: Likewise.
4132 * proc-why.c: Likewise.
4133 * procfs.c: Likewise.
4134
4135 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4136 * configure, config.in: Regenerate.
4137
5a99adb8
TV
41382020-07-30 Tom de Vries <tdevries@suse.de>
4139
4140 PR build/26320
4141 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4142 m_red/m_green/m_blue in a union.
4143
8ba83e91
TV
41442020-07-29 Tom de Vries <tdevries@suse.de>
4145
4146 PR tdep/26280
4147 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4148
f75a0693
AB
41492020-07-28 Tom Tromey <tromey@adacore.com>
4150
4151 PR symtab/26270:
4152 * symtab.h (find_pc_partial_function_sym): Declare.
4153 * cli/cli-cmds.c (disassemble_command): Use
4154 find_pc_partial_function_sym. Check asm_demangle.
4155 * blockframe.c (cache_pc_function_sym): New global.
4156 (cache_pc_function_name): Remove.
4157 (clear_pc_function_cache): Update.
4158 (find_pc_partial_function_sym): New function, from
4159 find_pc_partial_function.
4160 (find_pc_partial_function): Rewrite using
4161 find_pc_partial_function_sym.
4162
16f3242c
TT
41632020-07-28 Tom Tromey <tromey@adacore.com>
4164
4165 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4166 help. Add usage.
4167
4888741a
TT
41682020-07-28 Tom Tromey <tromey@adacore.com>
4169
4170 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4171 <DW_OP_GNU_variable_value>: Cast to address type.
4172
4d46f402
KR
41732020-07-28 Kamil Rytarowski <n54@gmx.com>
4174
4175 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4176 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4177 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4178 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4179 (nbsd_get_siginfo_type): New.
4180 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4181 (_initialize_nbsd_tdep): New.
4182
d70f978b
L
41832020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4184
4185 PR binutils/26301
4186 * configure: Regenerated.
4187
377170fa
L
41882020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4189
4190 PR binutils/26301
4191 * configure: Regenerated.
4192
43d5901d
AB
41932020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4194
4195 * python/py-frame.c: Remove 'user-regs.h' include.
4196 (frapy_read_register): Rewrite to make use of
4197 gdbpy_parse_register_id.
4198 * python/py-registers.c (gdbpy_parse_register_id): New function,
4199 moved here from python/py-unwind.c. Updated the return type, and
4200 also accepts register descriptor objects.
4201 * python/py-unwind.c: Remove 'user-regs.h' include.
4202 (pyuw_parse_register_id): Moved to python/py-registers.c.
4203 (unwind_infopy_add_saved_register): Update to use
4204 gdbpy_parse_register_id.
4205 (pending_framepy_read_register): Likewise.
4206 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4207
14fa8fb3
AB
42082020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * python/py-registers.c: Add 'user-regs.h' include.
4211 (register_descriptor_iter_find): New function.
4212 (register_descriptor_iterator_object_methods): New static global
4213 methods array.
4214 (register_descriptor_iterator_object_type): Add pointer to methods
4215 array.
4216
ddce1758
JB
42172020-07-27 John Baldwin <jhb@FreeBSD.org>
4218
4219 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4220 for all architectures on FreeBSD 11.3 and later.
4221
a4089f52
TT
42222020-07-27 Tom Tromey <tromey@adacore.com>
4223
4224 * gcore.h (load_corefile): Don't declare.
4225
95420d30
TV
42262020-07-27 Tom de Vries <tdevries@suse.de>
4227
4228 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4229 * config.in: Regenerate.
4230 * configure: Regenerate.
4231
05a6b8c2
EZ
42322020-07-26 Eli Zaretskii <eliz@gnu.org>
4233
4234 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4235 ws2tcpip.h. When checking whether socklen_t type is defined, use
4236 ws2tcpip.h if it is available and sys/socket.h isn't.
4237 * configure: Regenerate.
4238 * config.in: Regenerate.
4239
e79eb02f
AB
42402020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 PR fortran/23051
4243 PR fortran/26139
4244 * valops.c (value_ind): Pass address to
4245 readjust_indirect_value_type.
4246 * value.c (readjust_indirect_value_type): Make parameter
4247 non-const, and add extra address parameter. Resolve original type
4248 before using it.
4249 * value.h (readjust_indirect_value_type): Update function
4250 signature and comment.
4251
876518dd
TV
42522020-07-25 Tom de Vries <tdevries@suse.de>
4253
4254 PR symtab/26243
4255 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4256 entries.
4257
f6720b1c
AM
42582020-07-24 Aaron Merey <amerey@redhat.com>
4259
4260 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4261 * configure: Rebuild.
4262
513487e1
KB
42632020-07-23 Kevin Buettner <kevinb@redhat.com>
4264
4265 PR corefiles/26294
4266 * corelow.c (_initialize_corelow): Add period to help text
4267 for "maintenance print core-file-backed-mappings".
4268
e7bc9db8
PA
42692020-07-23 Pedro Alves <pedro@palves.net>
4270
4271 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4272 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4273 meanwhile.
4274 * frame.c (frame_cache_generation, get_frame_cache_generation):
4275 New.
4276 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4277 (get_prev_frame_if_no_cycle): On exception, don't touch
4278 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4279 * frame.h (get_frame_cache_generation): Declare.
4280
90fcc466
TV
42812020-07-23 Tom de Vries <tdevries@suse.de>
4282
4283 PR tui/26282
4284 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4285 New default constructor.
4286
78344df7
AB
42872020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4290 exclude non-statement entries.
4291
b089853a
KB
42922020-07-22 Kevin Buettner <kevinb@redhat.com>
4293
4294 * NEWS (New commands): Mention new command
4295 "maintenance print core-file-backed-mappings".
4296
09c2f5d4
KB
42972020-07-22 Kevin Buettner <kevinb@redhat.com>
4298
4299 * corelow.c (gdbcmd.h): Include.
4300 (core_target::info_proc_mappings): New method.
4301 (get_current_core_target): New function.
4302 (maintenance_print_core_file_backed_mappings): New function.
4303 (_initialize_corelow): Add core-file-backed-mappings to
4304 "maint print" commands.
4305
9c5ec5c2 43062020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4307
9c5ec5c2
KB
4308 * linux-tdep.c (dump_note_entry_p): New function.
4309 (linux_dump_mapping_p_ftype): New typedef.
4310 (linux_find_memory_regions_full): Add new parameter,
4311 should_dump_mapping_p.
4312 (linux_find_memory_regions): Adjust call to
4313 linux_find_memory_regions_full.
4314 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4315 call to linux_find_memory_regions_full.
4316
db082f59
KB
43172020-07-22 Kevin Buettner <kevinb@redhat.com>
4318
4319 * corelow.c (solist.h, unordered_map): Include.
4320 (class core_target): Add field m_core_file_mappings and
4321 method build_file_mappings.
4322 (core_target::core_target): Call build_file_mappings.
4323 (core_target::~core_target): Free memory associated with
4324 m_core_file_mappings.
4325 (core_target::build_file_mappings): New method.
4326 (core_target::xfer_partial): Use m_core_file_mappings
4327 for memory transfers.
4328 * linux-tdep.c (linux_read_core_file_mappings): New
4329 function.
4330 (linux_core_info_proc_mappings): Rewrite to use
4331 linux_read_core_file_mappings.
4332 (linux_init_abi): Register linux_read_core_file_mappings.
4333
7e183d27
KB
43342020-07-22 Kevin Buettner <kevinb@redhat.com>
4335
4336 * arch-utils.c (default_read_core_file_mappings): New function.
4337 * arch-utils.c (default_read_core_file_mappings): Declare.
4338 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4339 * gdbarch.h, gdbarch.c: Regenerate.
4340
2735d421
KB
43412020-07-22 Kevin Buettner <kevinb@redhat.com>
4342
4343 PR corefiles/25631
4344 * corelow.c (core_target:xfer_partial): Revise
4345 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4346 case after first checking the stratum beneath the core
4347 target.
4348 (has_all_memory): Return true.
4349 * target.c (raw_memory_xfer_partial): Revise comment
4350 regarding use of has_all_memory.
4351
e56cb451
KB
43522020-07-22 Kevin Buettner <kevinb@redhat.com>
4353
4354 * exec.h (section_table_xfer_memory): Revise declaration,
4355 replacing section name parameter with an optional callback
4356 predicate.
4357 * exec.c (section_table_xfer_memory): Likewise.
4358 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4359 of section_table_xfer_memory.
4360
32fa152e
TT
43612020-07-22 Tom Tromey <tromey@adacore.com>
4362
4363 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4364 lookup_symbol_search_name.
4365
a67a1c41
AB
43662020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4369 redundant local variable.
4370 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4371 reference, not pointer, update code accordingly.
4372
a7b4ff4f
SM
43732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4374 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4375
4376 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4377 * jit.c (jit_breakpoint_re_set_internal): Use the
4378 `skip_jit_symbol_lookup` field.
4379
2340e834
SM
43802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4381 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4382
4383 * jit.c (jit_read_descriptor): Define the descriptor address once,
4384 use twice.
4385 (jit_breakpoint_deleted): Move the declaration of the loop variable
4386 `iter` into the loop header.
4387 (jit_breakpoint_re_set_internal): Move the declaration of the local
4388 variable `objf_data` to the first point of definition.
4389 (jit_event_handler): Move the declaration of local variables
4390 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4391 Rename `objf` to `jited`.
4392
c1072906
SM
43932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4394
4395 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4396 Remove.
4397 * jit.c (get_jiter_objfile_data): Update.
4398
c8474dc3
TBA
43992020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4400 Simon Marchi <simon.marchi@polymtl.ca>
4401
4402 * jit.c (struct jit_program_space_data): Remove.
4403 (jit_program_space_key): Remove.
4404 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4405 stuff.
4406 (get_jit_program_space_data): Remove.
4407 (jit_breakpoint_deleted): Iterate on all of the program space's
4408 objfiles.
4409 (jit_inferior_init): Likewise.
4410 (jit_breakpoint_re_set_internal): Likewise. Also change return
4411 type to void.
4412 (jit_breakpoint_re_set): Pass current_program_space to
4413 jit_breakpoint_re_set_internal.
4414
77208eb7
SM
44152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * jit.h (struct jiter_objfile_data) <cached_code_address,
4418 jit_breakpoint>: Move to here from ...
4419 * jit.c (jit_program_space_data): ... here.
4420 (jiter_objfile_data::~jiter_objfile_data): Update.
4421 (jit_breakpoint_deleted): Update.
4422 (jit_breakpoint_re_set_internal): Update.
4423
8c1c720f
SM
44242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4427 checks.
4428 (jit_read_descriptor): Remove NULL check.
4429 (jit_event_handler): Add an assertion.
4430
0e74a041
SM
44312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4432
4433 * jit.h (struct jit_objfile_data): Split into...
4434 (struct jiter_objfile_data): ... this ...
4435 (struct jited_objfile_data): ... and this.
4436 * objfiles.h (struct objfile) <jit_data>: Remove.
4437 <jiter_data, jited_data>: New fields.
4438 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4439 (jiter_objfile_data::~jiter_objfile_data): ... this.
4440 (get_jit_objfile_data): Rename to ...
4441 (get_jiter_objfile_data): ... this.
4442 (add_objfile_entry): Update.
4443 (jit_read_descriptor): Use get_jiter_objfile_data.
4444 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4445 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4446 (jit_inferior_exit_hook): Use objfile's jited_data field.
4447
238b5c9f
SM
44482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * jit.h: Forward-declare `struct minimal_symbol`.
4451 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4452 constructor, destructor, and an objfile* field.
4453 * jit.c (jit_objfile_data): Remove.
4454 (struct jit_objfile_data): Migrate from here to jit.h.
4455 (jit_objfile_data::~jit_objfile_data): New destructor
4456 implementation with code moved from free_objfile_data.
4457 (free_objfile_data): Delete.
4458 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4459 (jit_find_objf_with_entry_addr): Ditto.
4460 (jit_inferior_exit_hook): Ditto.
4461 (_initialize_jit): Remove the call to
4462 register_objfile_data_with_cleanup.
4463 * objfiles.h (struct objfile) <jit_data>: New field.
4464
fe053b9e
TBA
44652020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4466
4467 * jit.h: Forward-declare `struct objfile`.
4468 (jit_event_handler): Add a second parameter, the JITer objfile.
4469 * jit.c (jit_read_descriptor): Change the signature to take the
4470 JITer objfile as an argument instead of the jit_program_space_data.
4471 (jit_inferior_init): Update the call to jit_read_descriptor.
4472 (jit_event_handler): Use the new JITer objfile argument when calling
4473 jit_read_descriptor.
4474 * breakpoint.c (handle_jit_event): Update the call to
4475 jit_event_handler to pass the JITer objfile.
4476
4cec0c66
JB
44772020-07-21 John Baldwin <jhb@FreeBSD.org>
4478
4479 * gdbarch.c: Regenerate.
4480 * gdbarch.h: Regenerate.
4481 * gdbarch.sh (handle_segmentation_fault): Remove method.
4482 * infrun.c (handle_segmentation_fault): Remove.
4483 (print_signal_received_reason): Remove call to
4484 handle_segmentation_fault.
4485
0e42f66a
JB
44862020-07-21 John Baldwin <jhb@FreeBSD.org>
4487
4488 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4489 Rename to sparc64_linux_report_signal_info and add siggnal
4490 argument.
4491 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4492 instead of sparc64_linux_handle_segmentation_fault.
4493
77bdfeb2
JB
44942020-07-21 John Baldwin <jhb@FreeBSD.org>
4495
4496 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4497 i386_linux_report_signal_info instead of
4498 i386_linux_handle_segmentation_fault.
4499 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4500 to i386_linux_report_signal_info and add siggnal argument.
4501 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4502 of i386_linux_handle_segmentation_fault.
4503 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4504 to i386_linux_report_signal_info and add siggnal argument.
4505
ad97bfc5
JB
45062020-07-21 John Baldwin <jhb@FreeBSD.org>
4507
4508 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4509 hook if present.
4510
272bb05c
JB
45112020-07-21 John Baldwin <jhb@FreeBSD.org>
4512
4513 * gdbarch.c: Regenerate.
4514 * gdbarch.h: Regenerate.
4515 * gdbarch.sh (report_signal_info): New method.
4516 * infrun.c (print_signal_received_reason): Invoke gdbarch
4517 report_signal_info hook if present.
4518
baf8791e
AB
45192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4520
4521 * python/py-registers.c : Add 'unordered_map' include.
4522 (gdbpy_new_reggroup): Renamed to...
4523 (gdbpy_get_reggroup): ...this. Update to only create register
4524 group descriptors when needed.
4525 (gdbpy_reggroup_iter_next): Update.
4526
f7306dac
AB
45272020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * python/py-registers.c (gdbpy_register_object_data): New static
4530 global.
4531 (gdbpy_register_object_data_init): New function.
4532 (gdbpy_new_register_descriptor): Renamed to...
4533 (gdbpy_get_register_descriptor): ...this, and update to reuse
4534 existing register descriptors where possible.
4535 (gdbpy_register_descriptor_iter_next): Update.
4536 (gdbpy_initialize_registers): Register new gdbarch data.
4537
05c309a8
SM
45382020-07-21 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * linux-nat.c (stopped_pids): Make static.
4541
d1fd641e
SM
45422020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4543
4544 PR ada/26235
4545 * gdbtypes.c (ada_discrete_type_low_bound,
4546 ada_discrete_type_high_bound): Handle undefined bounds.
4547
1de14d77
KR
45482020-07-21 Kamil Rytarowski <n54@gmx.com>
4549
4550 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4551 declaration.
4552 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4553 function.
4554
ed810cc7
JB
45552020-07-20 John Baldwin <jhb@FreeBSD.org>
4556
4557 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4558 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4559 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4560 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4561 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4562 method.
4563
ae5369e7
LC
45642020-07-20 Ludovic Courtès <ludo@gnu.org>
4565
4566 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4567 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4568 which are deprecated in Guile 3.0.
4569 * configure.ac (try_guile_versions): Add "guile-3.0".
4570 * configure (try_guile_versions): Regenerate.
4571 * NEWS: Update entry.
4572
68cf161c
LC
45732020-07-20 Ludovic Courtès <ludo@gnu.org>
4574 Doug Evans <dje@google.com>
4575
4576 PR gdb/21104
4577 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4578 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4579 USING_GUILE_BEFORE_2_2.
4580 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4581 Change type to 'scm_t_port_type *'.
4582 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4583 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4584 parameter and honor it. Update callers.
4585 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4586 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4587 functions.
4588 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4589 USING_GUILE_BEFORE_2_2.
4590 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4591 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4592 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4593 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4594 and 'SCM_PORT_TYPE'.
4595 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4596 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4597 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4598 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4599 [!USING_GUILE_BEFORE_2_2]: New functions.
4600 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4601 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4602 'gdbscm_memory_port_read'.
4603 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4604 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4605 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4606 function.
4607 (ioscm_init_memory_port): Remove.
4608 (ioscm_init_memory_port_stream): New function
4609 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4610 function.
4611 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4612 Return scm_from_uint (0).
4613 (gdbscm_set_memory_port_read_buffer_size_x)
4614 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4615 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4616 Return scm_from_uint (0).
4617 (gdbscm_set_memory_port_write_buffer_size_x)
4618 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4619 * configure.ac (try_guile_versions): Add "guile-2.2".
4620 * configure: Regenerate.
4621 * NEWS: Add entry.
4622
aee91db3
TT
46232020-07-18 Tom Tromey <tom@tromey.com>
4624
4625 * linux-nat.c (linux_multi_process): Remove.
4626 (linux_nat_target::supports_multi_process): Return true.
4627
0e267416
AB
46282020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4631 (riscv_lookup_target_description): Return pointer out of
4632 unique_ptr.
4633 * target-descriptions.c (allocate_target_description): Add
4634 comment.
4635 (target_desc_deleter::operator()): Likewise.
4636 * target-descriptions.h (struct target_desc_deleter): Moved to
4637 gdbsupport/tdesc.h.
4638 (target_desc_up): Likewise.
4639
f80c8ec4
TT
46402020-07-17 Tom Tromey <tromey@adacore.com>
4641
4642 * linux-nat.c (linux_nat_target::supports_non_stop)
4643 (linux_nat_target::always_non_stop_p): Use "true".
4644 (linux_nat_target::supports_disable_randomization): Use "true" and
4645 "false".
4646
d0ce17d8
CT
46472020-07-16 Caroline Tice <cmtice@google.com>
4648
4649 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4650 (RNGLIST_HEADER_SIZE64): New constant definition.
4651 (struct dwop_section_names): Add rnglists_dwo.
4652 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4653 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4654 (struct dwo_sections): Add rnglists field.
4655 (read_attribut_reprocess): Add tag parameter.
4656 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4657 (cu_debug_rnglists_section): New function (decl & definition).
4658 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4659 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4660 die whose range is being checked; get rnglist section from
4661 cu_debug_rnglists_section, to get from either objfile or dwo file as
4662 appropriate. Add cases for DW_RLE_base_addressx,
4663 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4664 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4665 test inside if-condition and updating complaint message.
4666 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4667 dwarf2_rnglists_process.
4668 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4669 dwarf2_ranges_process.
4670 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4671 need_ranges_base and update comment appropriately. Also pass die tag
4672 to dwarf2_ranges_read.
4673 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4674 need_ranges_base and update comment appropriately. Also pass die tag
4675 to dwarf2_ranges_process.
4676 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4677 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4678 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4679 need_ranges_base and update comment appropriately. Also pass die tag
4680 to read_attribute_reprocess and dwarf2_ranges_read.
4681 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4682 and update function comment appropriately.
4683 (read_loclist_index): Call read_loclists_rnglists_header instead of
4684 read_loclist_header.
4685 (read_rnglist_index): New function.
4686 (read_attribute_reprocess): Add tag parameter. Add code for
4687 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4688 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4689
3dcc261c
AB
46902020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4693 being resolved.
4694
ccb9eba6
AB
46952020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4696
4697 * arch-utils.c (show_architecture): Update formatting of messages.
4698
cf88be68
SM
46992020-07-12 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * gdbtypes.h (struct type) <bounds>: Handle array and string
4702 types.
4703 * ada-lang.c (assign_aggregate): Use type::bounds on
4704 array/string type.
4705 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4706 * c-varobj.c (c_number_of_children): Likewise.
4707 (c_describe_child): Likewise.
4708 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4709 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4710 (f_type_print_base): Likewise.
4711 * f-valprint.c (f77_array_offset_tbl): Likewise.
4712 (f77_get_upperbound): Likewise.
4713 (f77_print_array_1): Likewise.
4714 * guile/scm-type.c (gdbscm_type_range): Likewise.
4715 * m2-typeprint.c (m2_array): Likewise.
4716 (m2_is_long_set_of_type): Likewise.
4717 * m2-valprint.c (get_long_set_bounds): Likewise.
4718 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4719 * python/py-type.c (typy_range): Likewise.
4720 * rust-lang.c (rust_internal_print_type): Likewise.
4721 * type-stack.c (type_stack::follow_types): Likewise.
4722 * valarith.c (value_subscripted_rvalue): Likewise.
4723 * valops.c (value_cast): Likewise.
4724
509971ae
SM
47252020-07-12 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4728 callers to use the equivalent accessor methods.
4729
107406b7
SM
47302020-07-12 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4733 (struct type) <bit_stride>: New method.
4734 (TYPE_BIT_STRIDE): Remove.
4735 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4736
bb789949
SM
47372020-07-12 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4740 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4741 callers to use the equivalent accessor methods instead.
4742
39498edb
SM
47432020-07-12 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4746 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4747 callers to use the equivalent accessor methods instead.
4748
3b606f38
SM
47492020-07-12 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4752 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4753 to use dynamic_prop::kind.
4754
064d9cb9
SM
47552020-07-12 Simon Marchi <simon.marchi@efficios.com>
4756
4757 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4758 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4759 to get the bound property's kind and check against
4760 PROP_UNDEFINED.
4761
5537ddd0
SM
47622020-07-12 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4765 all callers to use type::range_bounds followed by
4766 dynamic_prop::{low,high}.
4767
8c2e4e06
SM
47682020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4769
4770 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4771 const_val, set_const_val, baton, set_locexpr, set_loclist,
4772 set_addr_offset, variant_parts, set_variant_parts,
4773 original_type, set_original_type>: New methods.
4774 <kind>: Rename to...
4775 <m_kind>: ... this. Update all users to use the new methods
4776 instead.
4777 <data>: Rename to...
4778 <m_data>: ... this. Update all users to use the new methods
4779 instead.
4780
7c6f2712
SM
47812020-07-12 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * gdbtypes.c (get_discrete_bounds): Return failure if
4784 the range type's bounds are not both defined and constant
4785 values.
4786 (get_array_bounds): Update comment. Remove undefined bound check.
4787
599088e3
SM
47882020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4791 the type::bounds method directly.
4792
c4dfcb36
SM
47932020-07-12 Simon Marchi <simon.marchi@efficios.com>
4794
4795 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4796 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4797 are used to set the range type's bounds to use set_bounds.
4798
0a278aa7
PW
47992020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4802
cce20f10
PA
48032020-07-10 Pedro Alves <pedro@palves.net>
4804
4805 * gdbthread.h (inferior_ref): Define.
4806 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4807 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4808 * thread.c
4809 (scoped_restore_current_thread::restore):
4810 Adjust to gdb::ref_ptr.
4811 (scoped_restore_current_thread::~scoped_restore_current_thread):
4812 Remove manual decref handling.
4813 (scoped_restore_current_thread::scoped_restore_current_thread):
4814 Adjust to use
4815 inferior_ref::new_reference/thread_info_ref::new_reference.
4816 Incref the thread before calling get_frame_id instead of after.
4817 Let TARGET_CLOSE_ERROR propagate.
4818
6d7aa592
PA
48192020-07-10 Pedro Alves <pedro@palves.net>
4820
4821 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4822 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4823 NOT_AVAILABLE_ERROR.
4824 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4825 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4826
b3e3a4c1
SM
48272020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4828 Pedro Alves <pedro@palves.net>
4829
4830 PR gdb/26199
4831 * infrun.c (threads_are_resumed_pending_p): Delete.
4832 (do_target_wait): Remove threads_are_executing and
4833 threads_are_resumed_pending_p checks from the inferior_matches
4834 lambda. Update comments.
4835
d6cc5d98
PA
48362020-07-10 Pedro Alves <pedro@palves.net>
4837
4838 PR gdb/26199
4839 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4840 executing threads.
4841
7d3badc6
PA
48422020-07-10 Pedro Alves <pedro@palves.net>
4843
4844 PR gdb/26199
4845 * infrun.c (handle_no_resumed): Handle multiple targets.
4846
42bd97a6
PA
48472020-07-10 Pedro Alves <pedro@palves.net>
4848
4849 PR gdb/26199
4850 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4851 target_is_async_p.
4852
43667cc6
PA
48532020-07-10 Pedro Alves <pedro@palves.net>
4854
4855 PR gdb/26199
4856 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4857 threads, not all threads.
4858
96118d11
PA
48592020-07-10 Pedro Alves <pedro@palves.net>
4860
4861 PR gdb/26199
4862 * remote.c (remote_target::open_1): Pass remote target pointer as
4863 data to create_async_event_handler.
4864 (remote_async_inferior_event_handler): Mark async event handler
4865 before returning if the remote target still has either pending
4866 events or unacknowledged notifications.
4867
54904d81
JB
48682020-07-10 John Baldwin <jhb@FreeBSD.org>
4869
4870 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4871 declaration.
4872 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4873 function.
4874
f37e5866
JB
48752020-07-09 John Baldwin <jhb@FreeBSD.org>
4876
4877 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4878 inferior_ptid.
4879
fc238d4a
JB
48802020-07-09 John Baldwin <jhb@FreeBSD.org>
4881
4882 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4883 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4884 AT_FREEBSD_PS_STRINGS.
4885
6e2469ff
HD
48862020-07-08 Hannes Domani <ssbssa@yahoo.de>
4887
4888 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4889 of debugfile path on Windows.
4890
d1076c41
JB
48912020-07-08 John Baldwin <jhb@FreeBSD.org>
4892
4893 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4894 argument to 'data'.
4895
15f3b077
TT
48962020-07-08 Tom Tromey <tromey@adacore.com>
4897
4898 * ada-lang.c (ada_exception_message_1): Use read_memory.
4899
9fc501fd
AB
49002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 PR python/22748
4903 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4904 special handling for inline frames.
4905 * findvar.c (value_of_register_lazy): Skip inline frames when
4906 creating lazy register values.
4907 * frame.c (frame_id_computed_p): Delete definition.
4908 * frame.h (frame_id_computed_p): Delete declaration.
4909
64cb3757
AB
49102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4911
4912 * NEWS: Mention additions to Python API.
4913 * python/py-arch.c (archpy_register_groups): New function.
4914 (arch_object_methods): Add 'register_groups' method.
4915 * python/py-registers.c (reggroup_iterator_object): New struct.
4916 (reggroup_object): New struct.
4917 (gdbpy_new_reggroup): New function.
4918 (gdbpy_reggroup_to_string): New function.
4919 (gdbpy_reggroup_name): New function.
4920 (gdbpy_reggroup_iter): New function.
4921 (gdbpy_reggroup_iter_next): New function.
4922 (gdbpy_new_reggroup_iterator): New function
4923 (gdbpy_initialize_registers): Register new types.
4924 (reggroup_iterator_object_type): Define new Python type.
4925 (gdbpy_reggroup_getset): New static global.
4926 (reggroup_object_type): Define new Python type.
4927 * python/python-internal.h
4928
0f767f94
AB
49292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4932 * python/py-arch.c (archpy_registers): New function.
4933 (arch_object_methods): Add 'registers' method.
4934 * python/py-registers.c: New file.
4935 * python/python-internal.h
4936 (gdbpy_new_register_descriptor_iterator): Declare.
4937 (gdbpy_initialize_registers): Declare.
4938 * python/python.c (do_start_initialization): Call
4939 gdbpy_initialize_registers.
4940 * NEWS: Mention additions to the Python API.
4941
87dbc774
AB
49422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 * NEWS: Mention new Python API method.
4945 * python/py-unwind.c (pending_framepy_architecture): New function.
4946 (pending_frame_object_methods): Add architecture method.
4947
3bc98c0c
AB
49482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4949
4950 * gdbarch.c: Regenerate.
4951 * gdbarch.h: Regenerate.
4952 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4953 (gdbarch_data): Use internal_error for the case where
4954 deprecated_set_gdbarch_data was originally needed.
4955 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4956 and use passed in obstack.
4957 (libunwind_frame_set_descr): Should no longer get back NULL from
4958 gdbarch_data.
4959 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4960 type.
4961 * user-regs.c (user_regs_init): Update parameters, and use passed
4962 in obstack.
4963 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4964 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4965
d8cc8af6
TV
49662020-07-06 Tom de Vries <tdevries@suse.de>
4967
4968 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4969 End-Of-Sequence in lte_is_less_than.
4970 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4971 "gdb: Don't reorder line table entries too much when sorting".
4972
947f7597
TV
49732020-07-06 Tom de Vries <tdevries@suse.de>
4974
4975 PR tui/26205
4976 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4977
1e7c1b22
TV
49782020-07-05 Tom de Vries <tdevries@suse.de>
4979
4980 PR build/26187
4981 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4982 std::uncaught_exceptions instead of deprecated
4983 std::uncaught_exception.
4984
a36158ec
SM
49852020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4986
4987 * macroexp.h (macro_stringify): Return
4988 gdb::unique_xmalloc_ptr<char>.
4989 * macroexp.c (macro_stringify): Likewise.
4990 * macrotab.c (fixup_definition): Update.
4991
14d960c8
SM
49922020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4995 (lex_one_token): Update.
4996 * macroexp.c (struct macro_buffer) <release>: Return
4997 gdb::unique_xmalloc_ptr<char>.
4998 (macro_stringify): Update.
4999 (macro_expand): Update.
5000 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5001 * macroexp.h (macro_expand_next): Likewise.
5002
211d5b1c
SM
50032020-07-02 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * macroexp.h (macro_lookup_ftype): Remove.
5006 (macro_expand, macro_expand_once, macro_expand_next): Remove
5007 lookup function parameters, add scope parameter.
5008 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5009 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5010 * macroscope.h (standard_macro_lookup): Change parameter type
5011 to macro_scope.
5012 * macroscope.c (standard_macro_lookup): Likewise.
5013 * c-exp.y (lex_one_token): Update.
5014 * macrocmd.c (macro_expand_command): Likewise.
5015 (macro_expand_once_command): Likewise.
5016
b1a35af2
SM
50172020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * inf-loop.c (inferior_event_handler): Remove client_data param.
5020 * inf-loop.h (inferior_event_handler): Likewise.
5021 * infcmd.c (step_1): Adjust.
5022 * infrun.c (proceed): Adjust.
5023 (fetch_inferior_event): Remove client_data param.
5024 (infrun_async_inferior_event_handler): Adjust.
5025 * infrun.h (fetch_inferior_event): Remove `void *` param.
5026 * linux-nat.c (handle_target_event): Adjust.
5027 * record-btrace.c (record_btrace_handle_async_inferior_event):
5028 Adjust.
5029 * record-full.c (record_full_async_inferior_event_handler):
5030 Adjust.
5031 * remote.c (remote_async_inferior_event_handler): Adjust.
5032
1cdf9e33
TT
50332020-07-01 Tom Tromey <tom@tromey.com>
5034
5035 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5036 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5037
32c1e210
TT
50382020-07-01 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5041 tui_gen_win_info.
5042 (tui_win_info::make_window): Merge with
5043 tui_gen_win_info::make_window.
5044 (tui_win_info::make_visible): Move from tui_gen_win_info.
5045 * tui/tui-win.c (tui_win_info::max_width): Move from
5046 tui_gen_win_info.
5047 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5048 type.
5049 <window_factory>: Likewise.
5050 * tui/tui-layout.c (tui_win_info::resize): Move from
5051 tui_gen_win_info.
5052 (make_standard_window): Change return type.
5053 (get_locator_window, tui_get_window_by_name): Likewise.
5054 (tui_layout_window::apply): Remove a cast.
5055 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5056 (struct tui_win_info): Merge with tui_gen_win_info.
5057 (struct tui_gen_win_info): Remove.
5058
a30cb6da
TT
50592020-07-01 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-stack.h (struct tui_locator_window): Derive from
5062 tui_win_info.
5063 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5064 <can_box>: New method.
5065
1eb2161f
TT
50662020-07-01 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5069
7134f2eb
TT
50702020-07-01 Tom Tromey <tom@tromey.com>
5071
5072 * tui/tui-regs.c (tui_data_window::display_registers_from)
5073 (tui_data_window::display_registers_from)
5074 (tui_data_window::first_data_item_displayed)
5075 (tui_data_window::delete_data_content_windows): Update.
5076 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5077 Remove.
5078 (tui_data_window::check_register_values): Update.
5079 (tui_data_item_window::rerender): Add parameters. Update.
5080 (tui_data_item_window::refresh_window): Remove.
5081 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5082 virtual.
5083 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5084 tui_gen_win_info.
5085 <refresh_window, max_height, min_height>: Remove.
5086 <rerender>: Add parameters.
5087 <x, y, visible>: New members.
5088 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5089 <m_item_width>: New member.
5090
22b7b041
TT
50912020-07-01 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-regs.c (tui_data_window::show_register_group)
5094 (tui_data_window::check_register_values): Update.
5095 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5096 from item_no.
5097
c9753adb
TT
50982020-07-01 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5101 useless "if".
5102
9ab26b4a
TT
51032020-07-01 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5106 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5107
e555083f
TT
51082020-07-01 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5111 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5112 (struct tui_line_or_address): Move from tui-data.h.
5113 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5114 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5115 (tui_cmd_window, tui_source_window_base, tui_source_window)
5116 (tui_disasm_window): Don't declare.
5117 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5118 to tui-winsource.h.
5119 (SINGLE_KEY): Move to tui-stack.c.
5120
7a02bab7
TT
51212020-07-01 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5124 std::string.
5125 * tui/tui-regs.c (class tab_expansion_file): New.
5126 (tab_expansion_file::write): New method.
5127 (tui_register_format): Change return type. Use
5128 tab_expansion_file.
5129 (tui_get_register, tui_data_window::display_registers_from)
5130 (tui_data_item_window::rerender): Update.
5131 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5132 * tui/tui-io.c (tui_expand_tabs): Remove.
5133
ea68593b
TT
51342020-07-01 Tom Tromey <tom@tromey.com>
5135
5136 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5137
a8caed5d
FS
51382020-07-01 Fangrui Song <maskray@google.com>
5139
5140 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5141
9cdf9820
AKS
51422020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5143
5144 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5145 forms for DW_AT_associated and DW_AT_allocated attributes,
5146 which is already checked in function attr_to_dynamic_prop.
5147
a1520ad8
TT
51482020-06-30 Tom Tromey <tromey@adacore.com>
5149
5150 * dwarf2/read.c (quirk_rust_enum): Correctly call
5151 alloc_rust_variant for default-less enum.
5152
5ac58899
TT
51532020-06-30 Tom Tromey <tromey@adacore.com>
5154
5155 PR build/26183:
5156 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5157 gdb::to_string.
5158
19b187a9
SM
51592020-06-29 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5162 * gdbarch.h: Re-generate.
5163
cd4c4c07
TT
51642020-06-28 Tom Tromey <tom@tromey.com>
5165
5166 * command.h (cmd_types): Remove.
5167 (cmd_type): Don't declare.
5168 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5169 typedef.
5170 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5171 * cli/cli-decode.c (cmd_type): Remove.
5172
05779d57
PA
51732020-06-27 Pedro Alves <palves@redhat.com>
5174
5175 * fork-child.c (prefork_hook): Adjust.
5176 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5177 Delete.
5178 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5179 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5180 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5181 Remove declarations.
5182 (struct inferior) <set_tty, tty>: New methods.
5183 (struct inferior) <terminal>: Rename to ...
5184 (struct inferior) <m_terminal>: ... this and make private.
5185 * main.c (captured_main_1): Adjust.
5186 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5187 (mi_cmd_inferior_tty_show): Adjust.
5188 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5189 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5190
1776e3e5
NA
51912020-06-26 Nick Alcock <nick.alcock@oracle.com>
5192
5193 * configure.ac: Add --enable-libctf: handle --disable-static
5194 properly.
5195 * acinclude.m4: sinclude ../config/enable.m4.
5196 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5197 (LIBCTF): Substitute in.
5198 (CTF_DEPS): New, likewise.
5199 (CLIBS): libctf needs symbols from libbfd: move earlier.
5200 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5201 flags.
5202 * ctfread.c: Surround in ENABLE_LIBCTF.
5203 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5204 * configure: Regenerate.
5205 * config.in: Likewise.
5206
58373b80
SM
52072020-06-25 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5210
277474ee
SM
52112020-06-25 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * inferior.h (struct inferior) <terminal>: Change type to
5214 gdb::unique_xmalloc_ptr<char>.
5215 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5216 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5217 field, adjust to unique pointer.
5218 (get_inferior_io_terminal): Adjust to unique pointer.
5219
6d74da72
AB
52202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5223 registers, not just the known core set of registers.
5224
2e52d038
AB
52252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5226
5227 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5228 fflags, frm, and fcsr registers.
5229 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5230 restore groups.
5231 (riscv_tdesc_unknown_reg): New function.
5232 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5233 tdesc_use_registers.
5234 * riscv-tdep.h (struct gdbarch_tdep): Add
5235 unknown_csrs_first_regnum, unknown_csrs_count,
5236 duplicate_fflags_regnum, duplicate_frm_regnum, and
5237 duplicate_fcsr_regnum fields.
5238
be64fd07
AB
52392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5240
5241 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5242 callback, use the callback (when not null) to help number unknown
5243 registers.
5244 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5245 (tdesc_use_registers): Add extra parameter to declaration.
5246
3b9fce96
AB
52472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5250 in the file.
5251 (class riscv_pending_register_alias): Likewise.
5252 (riscv_register_feature::register_info): Change 'required_p' field
5253 to 'required', and change its type. Add 'check' member function.
5254 (riscv_register_feature::register_info::check): Define new member
5255 function.
5256 (riscv_xreg_feature): Change initialisation of 'required' field.
5257 (riscv_freg_feature): Likewise.
5258 (riscv_virtual_feature): Likewise.
5259 (riscv_csr_feature): Likewise.
5260 (riscv_check_tdesc_feature): Take extra parameter, the csr
5261 tdesc_feature, rewrite the function to use the new
5262 riscv_register_feature::register_info::check function.
5263 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5264
865bad26
AB
52652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * features/Makefile: Remove all references to the deleted files
5268 below.
5269 * features/riscv/32bit-csr.c: Deleted.
5270 * features/riscv/32bit-csr.xml: Deleted.
5271 * features/riscv/64bit-csr.c: Deleted.
5272 * features/riscv/64bit-csr.xml: Deleted.
5273 * features/riscv/rebuild-csr-xml.sh: Deleted.
5274
ed69cbc8
AB
52752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5278 whitespace error for declaration of names member variable.
5279 (struct riscv_register_feature): Add new prefer_first_name member
5280 variable, and fix whitespace error in declaration of registers.
5281 (riscv_xreg_feature): Initialize prefer_first_name field.
5282 (riscv_freg_feature): Likewise.
5283 (riscv_virtual_feature): Likewise.
5284 (riscv_csr_feature): Likewise.
5285 (riscv_register_name): Expand on comments. Remove register name
5286 modifications for CSR and virtual registers.
5287
4445e8f5
AB
52882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5291 errors.
5292
767a879e
AB
52932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5296 riscv-opc.h.
5297 (class riscv_pending_register_alias): New class.
5298 (riscv_check_tdesc_feature): Take vector of pending aliases and
5299 populate it as appropriate.
5300 (riscv_setup_register_aliases): Delete.
5301 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5302 to riscv_check_tdesc_feature in all cases. Use the vector to
5303 create the register aliases.
5304
bb6e55f3
RO
53052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5306
5307 * sol2-tdep.c (sol2_static_transform_name): Remove.
5308 (sol2_init_abi): Don't register it.
5309 * gdbarch.sh (static_transform_name): Remove.
5310 * gdbarch.c, gdbarch.h: Regenerate.
5311
5312 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5313 gdbarch_static_transform_name.
5314 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5315 * stabsread.c (define_symbol) <'X'>: Remove.
5316 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5317 handling.
5318 <'V'>: Likewise.
5319 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5320 <'S'>: Remove call to gdbarch_static_transform_name.
5321
c6d36836
RO
53222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5323
5324 * procfs.c (procfs_pre_trace): New function.
5325 (procfs_target::create_inferior): Pass it to fork_inferior.
5326
a7e6196b
RO
53272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5328
5329 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5330 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5331 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5332 sol2-tdep.o, sparc-sol2-tdep.o.
5333 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5334 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5335 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5336 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5337
d412e696
RO
53382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5339
5340 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5341 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5342 Call sol2_init_abi.
5343 Remove calls to set_gdbarch_skip_solib_resolver,
5344 set_gdbarch_core_pid_to_str.
5345 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5346 (i386_sol2_static_transform_name): Remove.
5347 (i386_sol2_init_abi): Call sol2_init_abi.
5348 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5349 set_gdbarch_static_transform_name,
5350 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5351 Use sol2_sigtramp_p.
5352 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5353 (sol2_sigtramp_p): New function.
5354 (sol2_static_transform_name): New function.
5355 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5356 (sol2_init_abi): New function.
5357 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5358 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5359 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5360 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5361 (sparc_sol2_static_transform_name): Remove.
5362 (sparc32_sol2_init_abi): Call sol2_init_abi.
5363 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5364 set_gdbarch_static_transform_name,
5365 set_gdbarch_skip_solib_resolver,
5366 set_gdbarch_core_pid_to_str.
5367 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5368 (sparc_sol2_static_transform_name): Remove
5369 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5370 call sol2_sigtramp_p.
5371 (sparc64_sol2_init_abi): Call sol2_init_abi.
5372 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5373 set_gdbarch_static_transform_name,
5374 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5375
a8654e7d
PW
53762020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5377
5378 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5379 * exec.c (validate_exec_file): If from_tty, set both
5380 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5381 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5382 and from_tty, unconditionally ask a confirmation.
5383
caa7fd04
AB
53842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * target-descriptions.c (tdesc_architecture_name): Protect against
5387 NULL pointer dereference.
5388 (maint_print_xml_tdesc_cmd): New function.
5389 (_initialize_target_descriptions): Register new 'maint print
5390 xml-tdesc' command and give it the filename completer.
5391 * NEWS: Mention new 'maint print xml-tdesc' command.
5392
fbf42f4e
AB
53932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * target-descriptions.c (class tdesc_compatible_info): New class.
5396 (struct target_desc): Change type of compatible vector.
5397 (tdesc_compatible_p): Update for change in type of
5398 target_desc::compatible.
5399 (tdesc_compatible_info_list): New function.
5400 (tdesc_compatible_info_arch_name): New function.
5401 (tdesc_add_compatible): Update for change in type of
5402 target_desc::compatible.
5403 (print_c_tdesc::visit_pre): Likewise.
5404
20821f4e
AB
54052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5406
5407 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5408 whitespace to underscore.
5409 (maint_print_c_tdesc_cmd): Use fake filename for target
5410 descriptions that came from the target.
5411 (_initialize_target_descriptions): Add filename command completion
5412 for 'maint print c-tdesc'.
5413
1fb5ee62
SM
54142020-06-23 Simon Marchi <simon.marchi@efficios.com>
5415
5416 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5417 lines.
5418
fc3ecb3e
SM
54192020-06-23 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5422 lines.
5423 (dwarf2_find_location_expression): Likewise.
5424 (call_site_parameter_matches): Likewise.
5425 (dwarf2_compile_expr_to_ax): Likewise.
5426 (disassemble_dwarf_expression): Likewise.
5427 (loclist_describe_location): Likewise.
5428
236ef034
PA
54292020-06-23 Pedro Alves <palves@redhat.com>
5430
5431 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5432 progspace-and-thread.h. Include scoped-mock-context.h instead.
5433 (register_to_value_test): Use scoped_mock_context.
5434 * regcache.c: Include "scoped-mock-context.h".
5435 (cooked_read_test): Don't error out if a target is already pushed.
5436 Use scoped_mock_context. Adjust.
5437 * scoped-mock-context.h: New file.
5438
39e7ecca
AB
54392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5442 initializer.
5443 (ada_language::is_string_type_p): New member function.
5444 * c-lang.c (c_language_data): Delete la_is_string_type_p
5445 initializer.
5446 (cplus_language_data): Likewise.
5447 (asm_language_data): Likewise.
5448 (minimal_language_data): Likewise.
5449 * d-lang.c (d_language_data): Likewise.
5450 * f-lang.c (f_is_string_type_p): Delete function, implementation
5451 moved to f_language::is_string_type_p.
5452 (f_language_data): Delete la_is_string_type_p initializer.
5453 (f_language::is_string_type_p): New member function,
5454 implementation from f_is_string_type_p.
5455 * go-lang.c (go_is_string_type_p): Delete function, implementation
5456 moved to go_language::is_string_type_p.
5457 (go_language_data): Delete la_is_string_type_p initializer.
5458 (go_language::is_string_type_p): New member function,
5459 implementation from go_is_string_type_p.
5460 * language.c (language_defn::is_string_type_p): Define new member
5461 function.
5462 (default_is_string_type_p): Make static, add comment copied from
5463 header file.
5464 (unknown_language_data): Delete la_is_string_type_p initializer.
5465 (unknown_language::is_string_type_p): New member function.
5466 (auto_language_data): Delete la_is_string_type_p initializer.
5467 (auto_language::is_string_type_p): New member function.
5468 * language.h (language_data): Delete la_is_string_type_p field.
5469 (language_defn::is_string_type_p): Declare new function.
5470 (default_is_string_type_p): Delete desclaration, move comment to
5471 definition.
5472 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5473 moved to m2_language::is_string_type_p.
5474 (m2_language_data): Delete la_is_string_type_p initializer.
5475 (m2_language::is_string_type_p): New member function,
5476 implementation from m2_is_string_type_p.
5477 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5478 initializer.
5479 * opencl-lang.c (opencl_language_data): Likewise.
5480 * p-lang.c (pascal_is_string_type_p): Delete function,
5481 implementation moved to pascal_language::is_string_type_p.
5482 (pascal_language_data): Delete la_is_string_type_p initializer.
5483 (pascal_language::is_string_type_p): New member function,
5484 implementation from pascal_is_string_type_p.
5485 * rust-lang.c (rust_is_string_type_p): Delete function,
5486 implementation moved to rust_language::is_string_type_p.
5487 (rust_language_data): Delete la_is_string_type_p initializer.
5488 (rust_language::is_string_type_p): New member function,
5489 implementation from rust_is_string_type_p.
5490 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5491 is_string_type_p.
5492
4ffc13fb
AB
54932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * ada-lang.c (ada_language_data): Delete la_print_typedef
5496 initializer.
5497 (ada_language::print_typedef): New member function.
5498 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5499 (cplus_language_data): Likewise.
5500 (asm_language_data): Likewise.
5501 (minimal_language_data): Likewise.
5502 * d-lang.c (d_language_data): Likewise.
5503 * f-lang.c (f_language_data): Likewise.
5504 (f_language::print_typedef): New member function.
5505 * go-lang.c (go_language_data): Delete la_print_typedef
5506 initializer.
5507 * language.c (language_defn::print_typedef): Define member
5508 function.
5509 (unknown_language_data): Delete la_print_typedef initializer.
5510 (unknown_language::print_typedef): New member function.
5511 (auto_language_data): Delete la_print_typedef initializer.
5512 (auto_language::print_typedef): New member function.
5513 * language.h (language_data): Delete la_print_typedef field.
5514 (language_defn::print_typedef): Declare new member function.
5515 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5516 (default_print_typedef): Delete declaration.
5517 * m2-lang.c (m2_language_data): Delete la_print_typedef
5518 initializer.
5519 (m2_language::print_typedef): New member function.
5520 * objc-lang.c (objc_language_data): Delete la_print_typedef
5521 initializer.
5522 * opencl-lang.c (opencl_language_data): Likewise.
5523 * p-lang.c (pascal_language_data): Likewise.
5524 (pascal_language::print_typedef): New member function.
5525 * rust-lang.c (rust_print_typedef): Delete function,
5526 implementation moved to rust_language::print_typedef.
5527 (rust_language): Delete la_print_typedef initializer.
5528 (rust_language::print_typedef): New member function,
5529 implementation from rust_print_typedef.
5530 * typeprint.c (default_print_typedef): Delete.
5531
d711ee67
AB
55322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5535 (ada_language::printstr): New member function.
5536 * c-lang.c (c_language_data): Delete la_printstr initializer.
5537 (cplus_language_data): Likewise.
5538 (asm_language_data): Likewise.
5539 (minimal_language_data): Likewise.
5540 * d-lang.c (d_language_data): Likewise.
5541 * f-lang.c (f_printstr): Rename to f_language::printstr.
5542 (f_language_data): Delete la_printstr initializer.
5543 (f_language::printstr): New member function, implementation from
5544 f_printstr.
5545 * go-lang.c (go_language_data): Delete la_printstr initializer.
5546 * language.c (language_defn::printstr): Define new member
5547 function.
5548 (unk_lang_printstr): Delete.
5549 (unknown_language_data): Delete la_printstr initializer.
5550 (unknown_language::printstr): New member function.
5551 (auto_language_data): Delete la_printstr initializer.
5552 (auto_language::printstr): New member function.
5553 * language.h (language_data): Delete la_printstr field.
5554 (language_defn::printstr): Declare new member function.
5555 (LA_PRINT_STRING): Update call to printstr.
5556 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5557 (m2_language_data): Delete la_printstr initializer.
5558 (m2_language::printstr): New member function, implementation from
5559 m2_printstr.
5560 * objc-lang.c (objc_language_data): Delete la_printstr
5561 initializer.
5562 * opencl-lang.c (opencl_language_data): Likewise.
5563 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5564 (pascal_language_data): Delete la_printstr initializer.
5565 (pascal_language::printstr): New member function, implementation
5566 from pascal_printstr.
5567 * p-lang.h (pascal_printstr): Delete declaration.
5568 * rust-lang.c (rust_printstr): Update header comment.
5569 (rust_language_data): Delete la_printstr initializer.
5570 (rust_language::printstr): New member function.
5571
52b50f2c
AB
55722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5575 (ada_language::printchar): New member function.
5576 * c-lang.c (c_language_data): Delete la_printchar initializer.
5577 (cplus_language_data): Likewise.
5578 (asm_language_data): Likewise.
5579 (minimal_language_data): Likewise.
5580 * d-lang.c (d_language_data): Likewise.
5581 * f-lang.c (f_printchar): Rename to f_language::printchar.
5582 (f_language_data): Delete la_printchar initializer.
5583 (f_language::printchar): New member function, implementation from
5584 f_printchar.
5585 * go-lang.c (go_language_data): Delete la_printchar initializer.
5586 * language.c (unk_lang_printchar): Delete.
5587 (language_defn::printchar): Define new member function.
5588 (unknown_language_data): Delete la_printchar initializer.
5589 (unknown_language::printchar): New member function.
5590 (auto_language_data): Delete la_printchar initializer.
5591 (auto_language::printchar): New member function.
5592 * language.h (language_data): Delete la_printchar field.
5593 (language_defn::printchar): Declare new member function.
5594 (LA_PRINT_CHAR): Update call to printchar.
5595 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5596 (m2_language::printchar): New member function.
5597 * objc-lang.c (objc_language_data): Delete la_printchar
5598 initializer.
5599 * opencl-lang.c (opencl_language_data): Likewise.
5600 * p-lang.c (pascal_language_data): Delete la_printchar
5601 initializer.
5602 (pascal_language::printchar): New member function.
5603 * rust-lang.c (rust_printchar): Rename to
5604 rust_language::printchar.
5605 (rust_language_data): Delete la_printchar initializer.
5606 (rust_language::printchar): New member function, implementation
5607 from rust_printchar.
5608
ec8cec5b
AB
56092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5612 (ada_language_data): Delete la_emitchar initializer.
5613 (ada_language::emitchar): New member function, implementation from
5614 emit_char.
5615 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5616 (cplus_language_data): Likewise.
5617 (asm_language_data): Likewise.
5618 (minimal_language_data): Likewise.
5619 * d-lang.c (d_language_data): Likewise.
5620 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5621 (f_language_data): Delete la_emitchar initializer.
5622 (f_language::emitchar): New member function, implementation from
5623 f_emit_char.
5624 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5625 * language.c (unk_lang_emit_char): Delete.
5626 (language_defn::emitchar): New member function definition.
5627 (unknown_language_data): Delete la_emitchar initializer.
5628 (unknown_language::emitchar): New member function.
5629 (auto_language_data): Delete la_emitchar initializer.
5630 (auto_language::emitchar): New member function.
5631 * language.h (language_data): Delete la_emitchar field.
5632 (language_defn::emitchar): New member field declaration.
5633 (LA_EMIT_CHAR): Update call to emitchar.
5634 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5635 (m2_language_data): Delete la_emitchar initializer.
5636 (m2_language::emitchar): New member function, implementation from
5637 m2_emit_char.
5638 * objc-lang.c (objc_language_data): Delete la_emitchar
5639 initializer.
5640 * opencl-lang.c (opencl_language_data): Likewise.
5641 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5642 (pascal_language_data): Delete la_emitchar initializer.
5643 (pascal_language::emitchar): New member function, implementation
5644 from pascal_emit_char.
5645 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5646 (rust_language_data): Delete la_emitchar initializer.
5647 (rust_language::emitchar): New member function, implementation
5648 from rust_emitchar.
5649
1bf9c363
AB
56502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5651
5652 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5653 (ada_language_data): Delete la_post_parser initializer.
5654 (ada_language::post_parser): New member function.
5655 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5656 (cplus_language_data): Likewise.
5657 (asm_language_data): Likewise.
5658 (minimal_language_data): Likewise.
5659 * d-lang.c (d_language_data): Likewise.
5660 * f-lang.c (f_language_data): Likewise.
5661 * go-lang.c (go_language_data): Likewise.
5662 * language.c (unknown_language_data): Likewise.
5663 (auto_language_data): Likewise.
5664 * language.h (language_data): Delete la_post_parser field.
5665 (language_defn::post_parser): New member function.
5666 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5667 * objc-lang.c (objc_language_data): Likewise.
5668 * opencl-lang.c (opencl_language_data): Likewise.
5669 * p-lang.c (pascal_language_data): Likewise.
5670 * parse.c (parse_exp_in_context): Update call to post_parser.
5671 (null_post_parser): Delete definition.
5672 * parser-defs.h (null_post_parser): Delete declaration.
5673 * rust-lang.c (rust_language_data): Delete la_post_parser
5674 initializer.
5675
87afa652
AB
56762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * ada-lang.c (parse): Rename to ada_language::parser.
5679 (ada_language_data): Delete la_parser initializer.
5680 (ada_language::parser): New member function, implementation from
5681 parse.
5682 * c-lang.c (c_language_data): Delete la_parser initializer.
5683 (cplus_language_data): Likewise.
5684 (asm_language_data): Likewise.
5685 (minimal_language_data): Likewise.
5686 * d-lang.c (d_language_data): Likewise.
5687 (d_language::parser): New member function.
5688 * f-lang.c (f_language_data): Delete la_parser initializer.
5689 (f_language::parser): New member function.
5690 * go-lang.c (go_language_data): Delete la_parser initializer.
5691 (go_language::parser): New member function.
5692 * language.c (unk_lang_parser): Delete.
5693 (language_defn::parser): Define new member function.
5694 (unknown_language_data): Delete la_parser initializer.
5695 (unknown_language::parser): New member function.
5696 (auto_language_data): Delete la_parser initializer.
5697 (auto_language::parser): New member function.
5698 * language.h (language_data): Delete la_parser field.
5699 (language_defn::parser): Declare new member function.
5700 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5701 (m2_language::parser): New member function.
5702 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5703 * opencl-lang.c (opencl_language_data): Likewise.
5704 * p-lang.c (pascal_language_data): Likewise.
5705 (pascal_language::parser): New member function.
5706 * parse.c (parse_exp_in_context): Update call to parser.
5707 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5708 (rust_language::parser): New member function.
5709
37825800
AB
57102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * top.c (print_gdb_configuration): Print --with-python-libdir
5713 configuration value.
5714
5b860c93
PW
57152020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5716
5717 * NEWS: Mention change to the alias command.
5718
cf00cd6f
PW
57192020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5720
5721 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5722 (alias_command_completer)
5723 (make_alias_options_def_group): New functions.
5724 (alias_opts, alias_option_defs): New struct and array.
5725 (alias_usage_error): Update usage.
5726 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5727 Use option framework.
5728 (_initialize_cli_cmds): Update alias command help.
5729 Update aliases command help.
5730 (show_user):
5731 Add NULL for new default_args lookup_cmd argument.
5732 (valid_command_p): Rename to validate_aliased_command.
5733 Add NULL for new default_args lookup_cmd argument. Verify that the
5734 aliased_command has no default args.
5735 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5736 (lookup_cmd_1, lookup_cmd): New argument default_args.
5737 (add_alias_cmd):
5738 Add NULL for new default_args lookup_cmd argument.
5739 (print_help_for_command): Show default args under the layout
5740 alias some_alias = some_aliased_cmd some_alias_default_arg.
5741 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5742 xfree default_args in destructor.
5743 * cli/cli-script.c (process_next_line, do_define_command):
5744 Add NULL for new default_args lookup_cmd argument.
5745 * command.h: Declare new default_args argument in lookup_cmd
5746 and lookup_cmd_1.
5747 * completer.c (complete_line_internal_1):
5748 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5749 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5750 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5751 Likewise.
5752 * infcmd.c (_initialize_infcmd): Likewise.
5753 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5754 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5755 * python/py-param.c (add_setshow_generic): Likewise.
5756 * remote.c (_initialize_remote): Likewise.
5757 * top.c (execute_command): Prepend default_args if command has some.
5758 (set_verbose):
5759 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5760 * tracepoint.c (validate_actionline, encode_actions_1):
5761 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5762
bd920864
TBA
57632020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5764
5765 * jit.c (jit_read_descriptor): Use bool as the return type.
5766 (jit_breakpoint_re_set_internal): Use bool as the return type.
5767 Invert the return value logic; return true if the jit breakpoint
5768 has been successfully initialized.
5769 (jit_inferior_init): Update the call to
5770 jit_breakpoint_re_set_internal.
5771
f8098322
PA
57722020-06-22 Pedro Alves <palves@redhat.com>
5773
5774 PR gdb/25939
5775 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5776 Use the current inferior instead. Don't return
5777 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5778 wait again.
5779 * sol-thread.c (sol_thread_target::wait): Don't reference
5780 inferior_ptid.
5781 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5782 (sol_update_thread_list_callback): Use the current inferior's pid
5783 instead of inferior_ptid.
5784
196535a6
RO
57852020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5786
5787 * procfs.c: Cleanup many comments.
5788
5789 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5790 (AFTER_WATCHFLAG): Replace by value.
5791
5792 (MAIN_PROC_NAME_FORMAT): Inline ...
5793 (create_procinfo): ... here.
5794
5795 (procfs_debug_inferior): Remove SYS_exec handling.
5796 (syscall_is_exec): Likewise.
5797 (procfs_set_exec_trap): Likewise.
5798
5799 (syscall_is_lwp_exit): Inline in callers.
5800 (syscall_is_exit): Likewise.
5801 (syscall_is_exec): Likewise.
5802 (syscall_is_lwp_create): Likewise.
5803
5804 (invalidate_cache): Remove #if 0 code.
5805
5806 (make_signal_thread_runnable): Remove.
5807 (procfs_target::resume): Remove #if 0 code.
5808
cf6f3e86
RO
58092020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5810
5811 PR gdb/25939
5812 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5813 call ...
5814 (procfs_target::create_inferior): ... here.
5815
48e9cc84
PW
58162020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5817
5818 * exec.c (validate_exec_file): Ensure the build-id is up to
5819 date by calling reopen_exec_file (that checks file timestamp
5820 to decide to re-read the file).
5821
3922b302
PA
58222020-06-18 Pedro Alves <palves@redhat.com>
5823
5824 PR gdb/25412
5825 * gdbthread.h (delete_thread, delete_thread_silent)
5826 (find_thread_ptid): Update comments.
5827 * thread.c (current_thread_): New global.
5828 (is_current_thread): Move higher, and reimplement.
5829 (inferior_thread): Reimplement.
5830 (set_thread_exited): Use bool. Add assertions.
5831 (add_thread_silent): Simplify thread-reuse handling by always
5832 calling delete_thread.
5833 (delete_thread): Remove intro comment.
5834 (find_thread_ptid): Skip exited threads.
5835 (switch_to_thread_no_regs): Write to current_thread_.
5836 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5837 INFERIOR_PTID. Clear current_thread_.
5838
6dbdab44
PA
58392020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * aix-thread.c (pd_update): Use switch_to_thread.
5842
2da4b788
PA
58432020-06-18 Pedro Alves <palves@redhat.com>
5844
5845 * ravenscar-thread.c (ravenscar_thread_target): Update.
5846 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5847 (ravenscar_thread_target::add_active_thread): ... this. Don't
5848 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5849 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5850
50838d1b
PA
58512020-06-18 Pedro Alves <palves@redhat.com>
5852
5853 * nat/windows-nat.c (current_windows_thread): Remove.
5854 * nat/windows-nat.h (current_windows_thread): Remove.
5855 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5856 Adjust.
5857 (display_selectors): Adjust to fetch the current
5858 windows_thread_info based on inferior_ptid.
5859 (fake_create_process): No longer write to current_windows_thread.
5860 (windows_nat_target::get_windows_debug_event):
5861 Don't set inferior_ptid or current_windows_thread.
5862 (windows_nat_target::wait): Adjust to not rely on
5863 current_windows_thread.
5864 (do_initial_windows_stuff): Now a method of windows_nat_target.
5865 Switch to the last_ptid thread.
5866 (windows_nat_target::attach): Adjust.
5867 (windows_nat_target::detach): Use switch_to_no_thread instead of
5868 writing to inferior_ptid directly.
5869 (windows_nat_target::create_inferior): Adjust.
5870
31ce04e9
PA
58712020-06-18 Pedro Alves <palves@redhat.com>
5872
5873 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5874
1ee1a363
PA
58752020-06-18 Pedro Alves <palves@redhat.com>
5876
5877 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5878 after creating it, instead of writing to inferior_ptid. Don't
5879 write to inferior_ptid.
5880
6d350754
PA
58812020-06-18 Pedro Alves <palves@redhat.com>
5882
5883 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5884
5d971d48
PA
58852020-06-18 Pedro Alves <palves@redhat.com>
5886
5887 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5888 it, instead of writing to inferior_ptid.
5889
86e57d1b
PA
58902020-06-18 Pedro Alves <palves@redhat.com>
5891
5892 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5893 to inferior_ptid.
5894
f2e1c129
PA
58952020-06-18 Pedro Alves <palves@redhat.com>
5896
5897 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5898 instead of writing to inferior_ptid directly.
5899
60db1b85
PA
59002020-06-18 Pedro Alves <palves@redhat.com>
5901
5902 * corelow.c (core_target::close): Use switch_to_no_thread instead
5903 of writing to inferior_ptid directly.
5904 (add_to_thread_list, core_target_open): Use switch_to_thread
5905 instead of writing to inferior_ptid directly.
5906
fe7d6a8d
PA
59072020-06-18 Pedro Alves <palves@redhat.com>
5908
5909 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5910 inferior_ptid.
5911 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5912 inferior_ptid.
5913 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5914 inferior_ptid directly.
5915 (darwin_nat_target::init_thread_list): Switch to thread, instead
5916 of writing to inferior_ptid.
5917 (darwin_nat_target::attach): Don't write to inferior_ptid.
5918 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5919
975f8708
PA
59202020-06-18 Pedro Alves <palves@redhat.com>
5921
5922 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5923 thread.
5924 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5925 Instead use switch_to_thread.
5926 (gnu_nat_target::detach): Use switch_to_no_thread
5927 instead of writing to inferior_ptid directly. Used passed-in
5928 inferior instead of looking up the inferior by pid.
5929
1a204730
PA
59302020-06-18 Pedro Alves <palves@redhat.com>
5931
5932 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5933 inferior_ptid.
5934
ebe84f23
PA
59352020-06-18 Pedro Alves <palves@redhat.com>
5936
5937 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5938 inferior_ptid.
5939 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5940 thread.
5941 (nto_procfs_target::detach): Avoid referencing
5942 inferior_ptid. Use switch_to_no_thread instead of writing to
5943 inferior_ptid directly.
5944 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5945 instead of writing to inferior_ptid directly.
5946 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5947 to thread.
5948
191f02e5
PA
59492020-06-18 Pedro Alves <palves@redhat.com>
5950
5951 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5952 after creating it, instead of writing to inferior_ptid.
5953 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5954 to inferior_ptid directly.
5955 (gdbsim_target::wait): Don't write to inferior_ptid.
5956
0ac55310
PA
59572020-06-18 Pedro Alves <palves@redhat.com>
5958
5959 * remote.c (remote_target::remote_notice_new_inferior): Use
5960 switch_to_thread instead of writing to inferior_ptid directly.
5961 (remote_target::add_current_inferior_and_thread): Use
5962 switch_to_no_thread instead of writing to inferior_ptid directly.
5963 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5964 and switch_to_thread instead of using set_current_inferior or
5965 writing to inferior_ptid directly.
5966
5233f39b
PA
59672020-06-18 Pedro Alves <palves@redhat.com>
5968
5969 * tracectf.c (ctf_target_open): Switch to added thread instead of
5970 writing to inferior_ptid directly.
5971 (ctf_target::close): Use switch_to_no_thread instead of writing to
5972 inferior_ptid directly.
5973
087e161b
PA
59742020-06-18 Pedro Alves <palves@redhat.com>
5975
5976 * tracefile-tfile.c (tfile_target_open): Don't write to
5977 inferior_ptid directly, instead switch to added thread.
5978 (tfile_target::close): Use switch_to_no_thread instead of writing
5979 to inferior_ptid directly.
5980
7fb43e53
PA
59812020-06-18 Pedro Alves <palves@redhat.com>
5982
5983 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5984 (procfs_target::detach): Use switch_to_no_thread
5985 instead of writing to inferior_ptid directly.
5986 (do_attach): Change return type to void. Switch to the added
5987 thread.
5988 (procfs_target::create_inferior): Switch to the added thread.
5989 (procfs_do_thread_registers): Don't write to inferior_ptid.
5990
18493a00
PA
59912020-06-18 Pedro Alves <palves@redhat.com>
5992
5993 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5994 of writing to inferior_ptid.
5995 (scoped_restore_exited_inferior): Delete.
5996 (handle_vfork_child_exec_or_exit): Simplify using
5997 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5998 instead of writing to inferior_ptid.
5999 (THREAD_STOPPED_BY): Delete.
6000 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6001 (thread_stopped_by_hw_breakpoint): Delete.
6002 (save_waitstatus): Use
6003 scoped_restore_current_thread+switch_to_thread, and call
6004 target_stopped_by_watchpoint instead of
6005 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6006 instead of thread_stopped_by_sw_breakpoint, and
6007 target_stopped_by_hw_breakpoint instead of
6008 thread_stopped_by_hw_breakpoint.
6009 (handle_inferior_event)
6010 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6011 inferior_ptid directly, nor
6012 set_current_inferior/set_current_program_space. Use
6013 switch_to_thread / switch_to_inferior_no_thread instead.
6014
a0776b13
PA
60152020-06-18 Pedro Alves <palves@redhat.com>
6016
6017 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6018 instead of writing to inferior_ptid.
6019
6155c136
PA
60202020-06-18 Pedro Alves <palves@redhat.com>
6021
6022 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6023 added thread.
6024 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6025 to the added thread.
6026 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6027 instead of writing to inferior_ptid.
6028
c5316fc6
PA
60292020-06-18 Pedro Alves <palves@redhat.com>
6030
6031 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6032 (register_to_value_test): Mock a program_space too. Heap-allocate
6033 the address space. Don't write to inferior_ptid. Use
6034 switch_to_thread instead.
6035
8df01799
PA
60362020-06-18 Pedro Alves <palves@redhat.com>
6037
6038 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6039 Delete.
6040 (find_signalled_thread()): New, factored out from
6041 linux_make_corefile_notes and adjusted to handle exited threads.
6042 (linux_make_corefile_notes): Adjust to use the new
6043 find_signalled_thread.
6044
41792d68
PA
60452020-06-18 Pedro Alves <palves@redhat.com>
6046
6047 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6048 of saving/restoring inferior_ptid.
6049
612f258a
TT
60502020-06-17 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6053 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6054 declare.
6055 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6056
efb763a5
SM
60572020-06-15 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6060 of partial symtabs.
6061
2951f6c0
SM
60622020-06-17 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * regformats/reg-arm.dat: Remove.
6065 * regformats/reg-bfin.dat: Remove.
6066 * regformats/reg-cris.dat: Remove.
6067 * regformats/reg-crisv32.dat: Remove.
6068 * regformats/reg-m32r.dat: Remove.
6069 * regformats/reg-tilegx.dat: Remove.
6070 * regformats/reg-tilegx32.dat: Remove.
6071
7d458ea5
SM
60722020-06-17 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * features/Makefile (WHICH): Remove arm files.
6075 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6076 * regformats/arm/arm-with-neon.dat: Remove.
6077 * regformats/arm/arm-with-vfpv2.dat: Remove.
6078 * regformats/arm/arm-with-vfpv3.dat: Remove.
6079
3af96c0d
SM
60802020-06-17 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * features/Makefile (XMLTOC): Remove rx.xml.
6083
b25e22fd
PA
60842020-06-17 Pedro Alves <palves@redhat.com>
6085
6086 * gdbthread.h (thread_control_state) <trap_expected> Update
6087 comments.
6088
a78a19b1
AB
60892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6090
6091 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6092 ada_language::lookup_symbol_nonlocal.
6093 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6094 (ada_language::lookup_symbol_nonlocal): New member function,
6095 implementation from ada_lookup_symbol_nonlocal.
6096 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6097 initializer.
6098 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6099 initializer.
6100 (cplus_language::lookup_symbol_nonlocal): New member function.
6101 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6102 (minimal_language_data) Likewise.
6103 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6104 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6105 initializer.
6106 (d_language::lookup_symbol_nonlocal): New member function.
6107 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6108 initializer.
6109 (f_language::lookup_symbol_nonlocal): New member function.
6110 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6111 initializer.
6112 * language.c (unknown_language_data): Likewise.
6113 (auto_language_data): Likewise.
6114 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6115 field.
6116 (language_defn::lookup_symbol_nonlocal): New member function.
6117 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6118 initializer.
6119 * objc-lang.c (objc_language_data): Likewise.
6120 * opencl-lang.c (opencl_language_data): Likewise.
6121 * p-lang.c (pascal_language_data): Likewise.
6122 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6123 rust_language::lookup_symbol_nonlocal.
6124 (rust_language_data): Delete la_lookup_symbol_nonlocal
6125 initializer.
6126 (rust_language::lookup_symbol_nonlocal): New member function,
6127 implementation from rust_lookup_symbol_nonlocal.
6128 * symtab.c (lookup_symbol_aux): Update call to
6129 lookup_symbol_nonlocal.
6130 (basic_lookup_symbol_nonlocal): Rename to...
6131 (language_defn::lookup_symbol_nonlocal): ...this, and update
6132 header comment. Remove language_defn parameter, and replace with
6133 uses of `this'.
6134 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6135
ebe2334e
AB
61362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6139 initializer.
6140 (ada_language::value_print_inner): New member function.
6141 * c-lang.c (c_language_data): Delete la_value_print_inner
6142 initializer.
6143 (cplus_language_data): Likewise.
6144 (asm_language_data): Likewise.
6145 (minimal_language_data): Likewise.
6146 * d-lang.c (d_language_data): Likewise.
6147 (d_language::value_print_inner): New member function.
6148 * f-lang.c (f_language_data): Delete la_value_print_inner
6149 initializer.
6150 (f_language::value_print_inner): New member function.
6151 * f-lang.h (f_value_print_innner): Rename to...
6152 (f_value_print_inner): ...this (note spelling of 'inner').
6153 * f-valprint.c (f_value_print_innner): Rename to...
6154 (f_value_print_inner): ...this (note spelling of 'inner').
6155 * go-lang.c (go_language_data): Delete la_value_print_inner
6156 initializer.
6157 (go_language::value_print_inner): New member function.
6158 * language.c (language_defn::value_print_inner): Define new member
6159 function.
6160 (unk_lang_value_print_inner): Delete.
6161 (unknown_language_data): Delete la_value_print_inner initializer.
6162 (unknown_language::value_print_inner): New member function.
6163 (auto_language_data): Delete la_value_print_inner initializer.
6164 (auto_language::value_print_inner): New member function.
6165 * language.h (language_data): Delete la_value_print_inner field.
6166 (language_defn::value_print_inner): Delcare new member function.
6167 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6168 initializer.
6169 (m2_language::value_print_inner): New member function.
6170 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6171 initializer.
6172 * opencl-lang.c (opencl_language_data): Likewise.
6173 * p-lang.c (pascal_language_data): Likewise.
6174 (pascal_language::value_print_inner): New member function.
6175 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6176 initializer.
6177 (rust_language::value_print_inner): New member function.
6178 * valprint.c (do_val_print): Update call to value_print_inner.
6179
a1d1fa3e
AB
61802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * ada-lang.c (ada_language_data): Delete la_value_print
6183 initializer.
6184 (ada_language::value_print): New member function.
6185 * c-lang.c (c_language_data): Delete la_value_print initializer.
6186 (cplus_language_data): Likewise.
6187 (asm_language_data): Likewise.
6188 (minimal_language_data): Likewise.
6189 * d-lang.c (d_language_data): Likewise.
6190 * f-lang.c (f_language_data): Likewise.
6191 * go-lang.c (go_language_data): Likewise.
6192 * language.c (unk_lang_value_print): Delete.
6193 (language_defn::value_print): Define new member function.
6194 (unknown_language_data): Delete la_value_print initializer.
6195 (unknown_language::value_print): New member function.
6196 (auto_language_data): Delete la_value_print initializer.
6197 (auto_language::value_print): New member function.
6198 * language.h (language_data): Delete la_value_print field.
6199 (language_defn::value_print): Declare new member function.
6200 (LA_VALUE_PRINT): Update call to value_print.
6201 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6202 * objc-lang.c (objc_language_data): Likewise.
6203 * opencl-lang.c (opencl_language_data): Likewise.
6204 * p-lang.c (pascal_language_data): Likewise.
6205 (pascal_language::value_print): New member function.
6206 * rust-lang.c (rust_language_data): Delete la_value_print
6207 initializer.
6208
f16a9f57
AB
62092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * ada-lang.c (ada_watch_location_expression): Rename to
6212 ada_language::watch_location_expression.
6213 (ada_language_data): Delete la_watch_location_expression
6214 initializer.
6215 (ada_language::watch_location_expression): New member function,
6216 implementation from ada_watch_location_expression.
6217 * breakpoint.c (watch_command_1): Update call to
6218 watch_location_expression.
6219 * c-lang.c (c_watch_location_expression): Rename to
6220 language_defn::watch_location_expression.
6221 (c_language_data): Delete la_watch_location_expression
6222 initializer.
6223 (cplus_language_data): Likewise.
6224 (asm_language_data): Likewise.
6225 (minimal_language_data): Likewise.
6226 * c-lang.h (c_watch_location_expression): Delete declaration.
6227 * d-lang.c (d_language_data): Delete la_watch_location_expression
6228 initializer.
6229 * f-lang.c (f_language_data): Likewise.
6230 * go-lang.c (go_language_data): Likewise.
6231 * language.c (language_defn::watch_location_expression): Member
6232 function implementation from c_watch_location_expression.
6233 (unknown_language_data): Delete la_watch_location_expression
6234 initializer.
6235 (auto_language_data): Likewise.
6236 * language.h (language_data): Delete la_watch_location_expression
6237 field.
6238 (language_defn::watch_location_expression): Declare new member
6239 function.
6240 * m2-lang.c (m2_language_data): Delete
6241 la_watch_location_expression initializer.
6242 * objc-lang.c (objc_language_data): Likewise.
6243 * opencl-lang.c (opencl_language_data): Likewise.
6244 * p-lang.c (pascal_language_data): Likewise.
6245 * rust-lang.c (rust_watch_location_expression): Rename to
6246 rust_language::watch_location_expression.
6247 (rust_language_data): Delete la_watch_location_expression
6248 initializer.
6249 (rust_language::watch_location_expression): New member function,
6250 implementation from rust_watch_location_expression.
6251
7e56227d
AB
62522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6255 ada_language::collect_symbol_completion_matches.
6256 (ada_language_data): Delete la_collect_symbol_completion_matches
6257 initializer.
6258 (ada_language::collect_symbol_completion_matches): New member
6259 function, implementation from
6260 ada_collect_symbol_completion_matches.
6261 * c-lang.c (c_language_data): Delete
6262 la_collect_symbol_completion_matches initializer.
6263 (cplus_language_data): Likewise.
6264 (asm_language_data): Likewise.
6265 (minimal_language_data): Likewise.
6266 * d-lang.c (d_language_data): Likewise.
6267 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6268 f_language::collect_symbol_completion_matches.
6269 (f_language_data): Delete la_collect_symbol_completion_matches
6270 initializer.
6271 (f_language::collect_symbol_completion_matches) New member
6272 function, implementation from f_collect_symbol_completion_matches.
6273 * go-lang.c (go_language_data): Delete
6274 la_collect_symbol_completion_matches initializer.
6275 * language.c (unknown_language_data): Likewise.
6276 (auto_language_data): Likewise.
6277 * language.h (language_data): Delete
6278 la_collect_symbol_completion_matches field.
6279 (language_defn::collect_symbol_completion_matches): New member
6280 function.
6281 * m2-lang.c (m2_language_data): Delete
6282 la_collect_symbol_completion_matches initializer.
6283 * objc-lang.c (objc_language_data): Likewise.
6284 * opencl-lang.c (opencl_language_data): Likewise.
6285 * p-lang.c (pascal_language_data): Likewise.
6286 * rust-lang.c (rust_language_data): Likewise.
6287 * symtab.c (default_collect_symbol_completion_matches): Delete.
6288 (collect_symbol_completion_matches): Update call to
6289 collect_symbol_completion_matches.
6290 (collect_symbol_completion_matches_type): Likewise.
6291 * symtab.h (default_collect_symbol_completion_matches): Delete
6292 declaration.
6293
53fc67f8
AB
62942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6297 (ada_language_data): Delete la_word_break_characters initializer.
6298 (ada_language::word_break_characters): New member function.
6299 * c-lang.c (c_language_data): Delete la_word_break_characters
6300 initializer.
6301 (cplus_language_data): Likewise.
6302 (asm_language_data): Likewise.
6303 (minimal_language_data): Likewise.
6304 * completer.c: Update global comment.
6305 (advance_to_expression_complete_word_point): Update call to
6306 word_break_characters.
6307 (complete_files_symbols): Likewise.
6308 (complete_line_internal_1): Likewise.
6309 (default_completer_handle_brkchars): Likewise.
6310 (skip_quoted_chars): Likewise.
6311 * d-lang.c (d_language_data): Delete la_word_break_characters
6312 initializer.
6313 * f-lang.c (f_word_break_characters): Delete.
6314 (f_language_data): Delete la_word_break_characters initializer.
6315 (f_language::word_break_characters): New member function.
6316 * go-lang.c (go_language_data): Delete la_word_break_characters
6317 initializer.
6318 * language.c (unknown_language_data): Likewise.
6319 (auto_language_data): Likewise.
6320 * language.h (default_word_break_characters): Move declaration to
6321 earlier in the file.
6322 (language_data): Delete la_word_break_characters field.
6323 (language_defn::word_break_characters): New member function.
6324 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6325 initializer.
6326 * objc-lang.c (objc_language_data): Likewise.
6327 * opencl-lang.c (opencl_language_data): Likewise.
6328 * p-lang.c (pascal_language_data): Likewise.
6329 * rust-lang.c (rust_language_data): Likewise.
6330
c9debfb9
AB
63312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6334 (ada_language_data): Delete la_get_symbol_name_matcher
6335 initializer.
6336 (language_defn::get_symbol_name_matcher_inner): New member
6337 function.
6338 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6339 initializer.
6340 (cplus_language_data): Likewise.
6341 (cplus_language::get_symbol_name_matcher_inner): New member
6342 function.
6343 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6344 (minimal_language_data): Likewise.
6345 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6346 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6347 initializer.
6348 * dictionary.c (iter_match_first_hashed): Update call to
6349 get_symbol_name_matcher.
6350 (iter_match_next_hashed): Likewise.
6351 (iter_match_next_linear): Likewise.
6352 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6353 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6354 initializer.
6355 (f_language::get_symbol_name_matcher_inner): New member function.
6356 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6357 initializer.
6358 * language.c (default_symbol_name_matcher): Update header comment,
6359 make static.
6360 (language_defn::get_symbol_name_matcher): New definition.
6361 (language_defn::get_symbol_name_matcher_inner): Likewise.
6362 (get_symbol_name_matcher): Delete.
6363 (unknown_language_data): Delete la_get_symbol_name_matcher
6364 initializer.
6365 (auto_language_data): Likewise.
6366 * language.h (language_data): Delete la_get_symbol_name_matcher
6367 field.
6368 (language_defn::get_symbol_name_matcher): New member function.
6369 (language_defn::get_symbol_name_matcher_inner): Likewise.
6370 (default_symbol_name_matcher): Delete declaration.
6371 * linespec.c (find_methods): Update call to
6372 get_symbol_name_matcher.
6373 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6374 initializer.
6375 * minsyms.c (lookup_minimal_symbol): Update call to
6376 get_symbol_name_matcher.
6377 (iterate_over_minimal_symbols): Likewise.
6378 * objc-lang.c (objc_language_data): Delete
6379 la_get_symbol_name_matcher initializer.
6380 * opencl-lang.c (opencl_language_data): Likewise.
6381 * p-lang.c (pascal_language_data): Likewise.
6382 * psymtab.c (psymbol_name_matches): Update call to
6383 get_symbol_name_matcher.
6384 * rust-lang.c (rust_language_data): Delete
6385 la_get_symbol_name_matcher initializer.
6386 * symtab.c (symbol_matches_search_name): Update call to
6387 get_symbol_name_matcher.
6388 (compare_symbol_name): Likewise.
6389
9a49ad8c
AB
63902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * ada-lang.c (ada_language_data): Delete la_compute_program
6393 initializer.
6394 * c-lang.c (c_language_data): Likewise.
6395 (c_language::compute_program): New member function.
6396 (cplus_language_data): Delete la_compute_program initializer.
6397 (cplus_language::compute_program): New member function.
6398 (asm_language_data): Delete la_compute_program initializer.
6399 (minimal_language_data): Likewise.
6400 * c-lang.h (c_compute_program): Update comment.
6401 (cplus_compute_program): Likewise.
6402 * compile/compile-c-support.c (c_compute_program): Likewise.
6403 (cplus_compute_program): Likewise.
6404 * compile/compile.c (compile_to_object): Update call to
6405 la_compute_program.
6406 * d-lang.c (d_language_data): Delete la_compute_program
6407 initializer.
6408 * f-lang.c (f_language_data): Likewise.
6409 * go-lang.c (go_language_data): Likewise.
6410 * language.c (unknown_language_data): Likewise.
6411 (auto_language_data): Likewise.
6412 * language.h (language_data): Delete la_compute_program field.
6413 (language_defn::compute_program): New member function.
6414 * m2-lang.c (m2_language_data): Delete la_compute_program
6415 initializer.
6416 * objc-lang.c (objc_language_data): Likewise.
6417 * opencl-lang.c (opencl_language_data): Likewise.
6418 * p-lang.c (pascal_language_data): Likewise.
6419 * rust-lang.c (rust_language_data): Likewise.
6420
eff93b4d
AB
64212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * ada-lang.c (ada_language_data) Delete
6424 la_class_name_from_physname initializer.
6425 * c-lang.c (c_language_data): Likewise.
6426 (cplus_language_data): Likewise.
6427 (cplus_language::class_name_from_physname): New member function.
6428 (asm_language_data): Delete la_class_name_from_physname
6429 initializer.
6430 (minimal_language_data): Likewise.
6431 * d-lang.c (d_language_data): Likewise.
6432 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6433 method on language_defn class.
6434 (guess_full_die_structure_name): Likewise.
6435 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6436 initializer.
6437 * go-lang.c (go_language_data): Likewise.
6438 * language.c (language_class_name_from_physname): Delete.
6439 (unk_lang_class_name): Delete.
6440 (unknown_language_data): Delete la_class_name_from_physname
6441 initializer.
6442 (auto_language_data): Likewise.
6443 * language.h (language_data): Delete la_class_name_from_physname
6444 field.
6445 (language_defn::class_name_from_physname): New function.
6446 (language_class_name_from_physname): Delete declaration.
6447 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6448 initializer.
6449 * objc-lang.c (objc_language_data): Likewise.
6450 * opencl-lang.c (opencl_language_data): Likewise.
6451 * p-lang.c (pascal_language_data): Likewise.
6452 * rust-lang.c (rust_language_data): Likewise.
6453
de543742
TT
64542020-06-16 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-data.h (STATUS_NAME): New macro.
6457 * tui/tui-layout.c (tui_remove_some_windows)
6458 (initialize_known_windows, tui_register_window)
6459 (tui_layout_split::remove_windows, initialize_layouts)
6460 (tui_new_layout_command): Don't use hard-coded window names.
6461
a350efd4
TT
64622020-06-16 Tom Tromey <tom@tromey.com>
6463
6464 PR tui/25348:
6465 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6466 tui_initialize_readline. Only run once. Call rl_initialize.
6467 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6468 tui_initialize_readline.
6469 * tui/tui-io.c (tui_setup_io): Call
6470 tui_ensure_readline_initialized.
6471 * tui/tui-interp.c (tui_interp::init): Update.
6472
39ec0490
TT
64732020-06-16 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6476 Also preserve the status window.
6477
d2d1ea20
TT
64782020-06-16 Tom Tromey <tom@tromey.com>
6479
6480 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6481 where m_window==nullptr.
6482
66920317
TT
64832020-06-15 Tom Tromey <tromey@adacore.com>
6484
6485 * windows-nat.c (windows_nat::handle_output_debug_string):
6486 Update.
6487 (windows_nat::handle_ms_vc_exception): Update.
6488 * target.h (target_read_string): Change API.
6489 * target.c (target_read_string): Change API.
6490 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6491 Update.
6492 * solib-frv.c (frv_current_sos): Update.
6493 * solib-dsbt.c (dsbt_current_sos): Update.
6494 * solib-darwin.c (darwin_current_sos): Update.
6495 * linux-thread-db.c (inferior_has_bug): Update.
6496 * expprint.c (print_subexp_standard): Update.
6497 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6498 (ada_exception_message_1): Update.
6499
a5d871dd
TT
65002020-06-15 Tom Tromey <tromey@adacore.com>
6501
6502 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6503
670e35fa
TT
65042020-06-15 Tom Tromey <tromey@adacore.com>
6505
6506 * valprint.c (read_string): Update comment.
6507 * target.c (MIN): Remove.
6508 (target_read_string): Rewrite.
6509
f5272a3b
TT
65102020-06-15 Tom Tromey <tromey@adacore.com>
6511
6512 * corefile.c (read_memory_string): Remove.
6513 * ada-valprint.c (ada_value_print_ptr): Update.
6514 * ada-lang.h (ada_tag_name): Change return type.
6515 * ada-lang.c (type_from_tag): Update.
6516 (ada_tag_name_from_tsd): Change return type. Use
6517 target_read_string.
6518 (ada_tag_name): Likewise.
6519 * gdbcore.h (read_memory_string): Don't declare.
6520
2c074f49
HD
65212020-06-14 Hannes Domani <ssbssa@yahoo.de>
6522
6523 * symtab.c (rbreak_command): Ignore Windows drive colon.
6524
6a17d503
SM
65252020-06-12 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * NEWS: Mention removed GDBserver host support.
6528
453c733f
NC
65292020-06-12 Nelson Chu <nelson.chu@sifive.com>
6530
6531 * features/riscv/rebuild-csr-xml.sh: Updated.
6532
2b4e6a3f
TT
65332020-06-11 Tom Tromey <tom@tromey.com>
6534
6535 PR gdb/18318:
6536 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6537
4412332f
JG
65382020-06-09 Jonny Grant <jg@jguk.org>
65392020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6540
6541 * main.c (captured_main_1): Don't print new line after help.
6542 (print_gdb_help): add mailing list and IRC channel information
6543 to --help. Add new lines between items in the footer. Remove
6544 quotes around bug url.
6545
2f33032a
KS
65462020-06-11 Keith Seitz <keiths@redhat.com>
6547
6548 PR gdb/21356
6549 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6550 Resolve typedefs for type length calculations.
6551
7ab96794
TV
65522020-06-10 Tom de Vries <tdevries@suse.de>
6553
6554 PR ada/24713
6555 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6556 (write_psymbols): Enable .gdb_index for ada.
6557 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6558 ada.
6559
e5f3ece2
TV
65602020-06-10 Tom de Vries <tdevries@suse.de>
6561
6562 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6563 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6564 namei" instead of "const char *name" argument.
6565 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6566 dw2_symtab_iter_init.
6567
940da03e
SM
65682020-06-08 Simon Marchi <simon.marchi@efficios.com>
6569
6570 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6571 to use type::field and field::type instead.
6572
b6cdac4b
SM
65732020-06-08 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6576 to use field::type instead.
6577
5d14b6e5
SM
65782020-06-08 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * gdbtypes.h (struct field) <type, set_type>: New methods.
6581 Rename `type` field to...
6582 <m_type>: ... this. Change references throughout to use type or
6583 set_type methods.
6584 (FIELD_TYPE): Use field::type. Change call sites that modify
6585 the field's type to use field::set_type instead.
6586
3d967001
SM
65872020-06-08 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6590 to use type::index_type instead.
6591
262abc0d
SM
65922020-06-08 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6595 methods.
6596 (TYPE_INDEX_TYPE): Use type::index_type.
6597 * gdbtypes.c (create_array_type_with_stride): Likewise.
6598
82836c92
TT
65992020-06-07 Tom Tromey <tom@tromey.com>
6600
6601 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6602 parameter.
6603 (generic_value_print): Update.
6604
940dace9
AB
66052020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6606
6607 Revert commit 982a38f60b0.
6608 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6609
982a38f6
AB
66102020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6613 avoid use after free.
6614
82f06518
TV
66152020-06-05 Tom de Vries <tdevries@suse.de>
6616
6617 * NEWS: Fix typos.
6618
f8c41851
SM
66192020-06-04 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6622 the per_bfd object.
6623 (dwarf2_read_debug_names): Likewise.
6624 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6625 object when re-using a per_bfd object with an index.
6626
f9b5d5ea
TV
66272020-06-03 Tom de Vries <tdevries@suse.de>
6628
6629 PR symtab/26046
6630 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6631 children for C++.
6632 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6633 DW_TAG_subprogram.
6634
f6eee2d0
AB
66352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * ada-lang.c (ada_language_data): Delete skip_trampoline
6638 initializer.
6639 * c-lang.c (c_language_data): Likewise.
6640 (cplus_language_data): Likewise.
6641 (cplus_language::skip_trampoline): New member function.
6642 (asm_language_data): Delete skip_trampoline initializer.
6643 (minimal_language_data): Likewise.
6644 * d-lang.c (d_language_data): Likewise.
6645 * f-lang.c (f_language_data): Likewise.
6646 * go-lang.c (go_language_data): Likewise.
6647 * language.c (unk_lang_trampoline): Delete function.
6648 (skip_language_trampoline): Update.
6649 (unknown_language_data): Delete skip_trampoline initializer.
6650 (auto_language_data): Likewise.
6651 * language.h (language_data): Delete skip_trampoline field.
6652 (language_defn::skip_trampoline): New function.
6653 * m2-lang.c (m2_language_data): Delete skip_trampoline
6654 initializer.
6655 * objc-lang.c (objc_skip_trampoline): Delete function, move
6656 implementation to objc_language::skip_trampoline.
6657 (objc_language_data): Delete skip_trampoline initializer.
6658 (objc_language::skip_trampoline): New member function with
6659 implementation from objc_skip_trampoline.
6660 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6661 initializer.
6662 * p-lang.c (pascal_language_data): Likewise.
6663 * rust-lang.c (rust_language_data): Likewise.
6664
0a50df5d
AB
66652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6666
6667 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6668 (ada_language::demangle): New member function.
6669 * c-lang.c (c_language_data): Delete la_demangle initializer.
6670 (cplus_language_data): Delete la_demangle initializer.
6671 (cplus_language::demangle): New member function.
6672 (asm_language_data): Delete la_demangle initializer.
6673 (minimal_language_data): Delete la_demangle initializer.
6674 * d-lang.c (d_language_data): Delete la_demangle initializer.
6675 (d_language::demangle): New member function.
6676 * f-lang.c (f_language_data): Delete la_demangle initializer.
6677 (f_language::demangle): New member function.
6678 * go-lang.c (go_language_data): Delete la_demangle initializer.
6679 (go_language::demangle): New member function.
6680 * language.c (language_demangle): Update.
6681 (unk_lang_demangle): Delete.
6682 (unknown_language_data): Delete la_demangle initializer.
6683 (unknown_language::demangle): New member function.
6684 (auto_language_data): Delete la_demangle initializer.
6685 (auto_language::demangle): New member function.
6686 * language.h (language_data): Delete la_demangle field.
6687 (language_defn::demangle): New function.
6688 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6689 * objc-lang.c (objc_language_data): Delete la_demangle
6690 initializer.
6691 (objc_language::demangle): New member function.
6692 * opencl-lang.c (opencl_language_data): Delete la_demangle
6693 initializer.
6694 * p-lang.c (pascal_language_data): Likewise.
6695 * rust-lang.c (rust_language_data): Likewise.
6696 (rust_language::demangle): New member function.
6697
fbfb0a46
AB
66982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6699
6700 * ada-lang.c (ada_language_data): Delete la_print_type
6701 initializer.
6702 (ada_language::print_type): New member function.
6703 * c-lang.c (c_language_data): Delete la_print_type initializer.
6704 (c_language::print_type): New member function.
6705 (cplus_language_data): Delete la_print_type initializer.
6706 (cplus_language::print_type): New member function.
6707 (asm_language_data): Delete la_print_type initializer.
6708 (asm_language::print_type): New member function.
6709 (minimal_language_data): Delete la_print_type initializer.
6710 (minimal_language::print_type): New member function.
6711 * d-lang.c (d_language_data): Delete la_print_type initializer.
6712 (d_language::print_type): New member function.
6713 * f-lang.c (f_language_data): Delete la_print_type initializer.
6714 (f_language::print_type): New member function.
6715 * go-lang.c (go_language_data): Delete la_print_type initializer.
6716 (go_language::print_type): New member function.
6717 * language.c (unk_lang_print_type): Delete.
6718 (unknown_language_data): Delete la_print_type initializer.
6719 (unknown_language::print_type): New member function.
6720 (auto_language_data): Delete la_print_type initializer.
6721 (auto_language::print_type): New member function.
6722 * language.h (language_data): Delete la_print_type field.
6723 (language_defn::print_type): New function.
6724 (LA_PRINT_TYPE): Update.
6725 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6726 (m2_language::print_type): New member function.
6727 * objc-lang.c (objc_language_data): Delete la_print_type
6728 initializer.
6729 (objc_language::print_type): New member function.
6730 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6731 to opencl_language::print_type.
6732 (opencl_language_data): Delete la_print_type initializer.
6733 (opencl_language::print_type): New member function, implementation
6734 from opencl_print_type.
6735 * p-lang.c (pascal_language_data): Delete la_print_type
6736 initializer.
6737 (pascal_language::print_type): New member function.
6738 * rust-lang.c (rust_print_type): Delete, implementation moved to
6739 rust_language::print_type.
6740 (rust_language_data): Delete la_print_type initializer.
6741 (rust_language::print_type): New member function, implementation
6742 from rust_print_type.
6743
6f827019
AB
67442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6747 implementation moves to...
6748 (ada_language::sniff_from_mangled_name): ...here. Update return
6749 type.
6750 (ada_language_data): Delete la_sniff_from_mangled_name
6751 initializer.
6752 * c-lang.c (c_language_data): Likewise.
6753 (cplus_language_data): Likewise.
6754 (cplus_language::sniff_from_mangled_name): New member function,
6755 implementation taken from gdb_sniff_from_mangled_name.
6756 (asm_language_data): Delete la_sniff_from_mangled_name
6757 initializer.
6758 (minimal_language_data): Likewise.
6759 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6760 implementation moves to cplus_language::sniff_from_mangled_name.
6761 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6762 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6763 moves to...
6764 (d_language::sniff_from_mangled_name): ...here.
6765 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6766 * f-lang.c (f_language_data): Likewise.
6767 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6768 moves to...
6769 (go_language::sniff_from_mangled_name): ...here.
6770 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6771 * language.c (language_sniff_from_mangled_name): Delete.
6772 (unknown_language_data): Delete la_sniff_from_mangled_name
6773 initializer.
6774 (auto_language_data): Likewise.
6775 * language.h (language_data): Delete la_sniff_from_mangled_name
6776 field.
6777 (language_defn::sniff_from_mangled_name): New function.
6778 (language_sniff_from_mangled_name): Delete declaration.
6779 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6780 field.
6781 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6782 implementation moves to...
6783 (objc_language::sniff_from_mangled_name): ...here.
6784 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6785 * opencl-lang.c (opencl_language_data): Likewise.
6786 * p-lang.c (pascal_language_data): Likewise.
6787 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6788 implementation moves to...
6789 (rust_language::sniff_from_mangled_name): ...here.
6790 (rust_language_data): Delete la_sniff_from_mangled_name
6791 initializer.
6792 * symtab.c (symbol_find_demangled_name): Call
6793 sniff_from_mangled_name member function.
6794
fb8006fd
AB
67952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6798 initializer.
6799 * c-lang.c (c_language_data): Likewise.
6800 (cplus_language_data): Likewise.
6801 (cplus_language::search_name_hash): New member function.
6802 (asm_language_data): Delete la_search_name_hash initializer.
6803 (minimal_language_data): Likewise.
6804 * d-lang.c (d_language_data): Likewise.
6805 * dictionary.c (default_search_name_hash): Rename to...
6806 (language_defn::search_name_hash): ...this.
6807 * f-lang.c (f_language_data): Likewise.
6808 (f_language::search_name_hash): New member function.
6809 * go-lang.c (go_language_data): Delete la_search_name_hash
6810 initializer.
6811 * language.c (unknown_language_data): Likewise.
6812 (auto_language_data): Likewise.
6813 * language.h (struct language_data): Delete la_search_name_hash
6814 field.
6815 (language_defn::search_name_hash): Declare new member function.
6816 (default_search_name_hash): Delete declaration.
6817 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
6824
8e25bafe
AB
68252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6828 initializer.
6829 * c-lang.c (class compile_instance): Declare.
6830 (c_language_data): Delete la_get_compile_instance initializer.
6831 (c_language::get_compile_instance): New member function.
6832 (cplus_language_data): Delete la_get_compile_instance initializer.
6833 (cplus_language::get_compile_instance): New member function.
6834 (asm_language_data): Delete la_get_compile_instance initializer.
6835 (minimal_language_data): Likewise.
6836 * c-lang.h (c_get_compile_context): Update comment.
6837 (cplus_get_compile_context): Update comment.
6838 * compile/compile.c (compile_to_object): Update calls, don't rely
6839 on function pointer being NULL.
6840 * d-lang.c (d_language_data): Delete la_get_compile_instance
6841 initializer.
6842 * f-lang.c (f_language_data): Likewise.
6843 * go-lang.c (go_language_data): Likewise.
6844 * language.c (unknown_language_data): Likewise.
6845 (auto_language_data): Likewise.
6846 * language.h (language_data): Delete la_get_compile_instance field.
6847 (language_defn::get_compile_instance): New member function.
6848 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6849 initializer.
6850 * objc-lang.c (objc_language_data): Likewise.
6851 * opencl-lang.c (opencl_language_data): Likewise.
6852 * p-lang.c (pascal_language_data): Likewise.
6853 * rust-lang.c (rust_language_data): Likewise.
6854
4009ee92
AB
68552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * ada-lang.c (ada_add_all_symbols): Update comment.
6858 (ada_iterate_over_symbols): Delete, move implementation to...
6859 (ada_language::iterate_over_symbols): ...here, a new member
6860 function, rewrite to use range based for loop.
6861 (ada_language_data): Delete la_iterate_over_symbols initializer.
6862 * c-lang.c (c_language_data): Likewise.
6863 (cplus_language_data): Likewise.
6864 (asm_language_data): Likewise.
6865 (minimal_language_data): Likewise.
6866 * d-lang.c (d_language_data): Likewise.
6867 * f-lang.c (f_language_data): Likewise.
6868 * go-lang.c (go_language_data): Likewise.
6869 * language.c (unknown_language_data): Likewise.
6870 (auto_language_data): Likewise.
6871 * language.h (language_data): Delete la_iterate_over_symbols field.
6872 (language_defn::iterate_over_symbols): New member function.
6873 (LA_ITERATE_OVER_SYMBOLS): Update.
6874 * linespec.c (iterate_over_all_matching_symtabs): Update.
6875 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6876 initializer.
6877 * objc-lang.c (objc_language_data): Likewise.
6878 * opencl-lang.c (opencl_language_data): Likewise.
6879 * p-lang.c (pascal_language_data): Likewise.
6880 * rust-lang.c (rust_language_data): Likewise.
6881
54f4ca46
AB
68822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * ada-lang.c (ada_language_data): Delete
6885 la_lookup_transparent_type initializer.
6886 * c-lang.c (c_language_data): Likewise.
6887 (cplus_language_data): Likewise.
6888 (cplus_language::lookup_transparent_type): New member function.
6889 (asm_language_data): Delete la_lookup_transparent_type
6890 initializer.
6891 (minimal_language_data): Likewise.
6892 * d-lang.c (d_language_data): Likewise.
6893 * f-lang.c (f_language_data): Likewise.
6894 * go-lang.c (go_language_data): Likewise.
6895 * language.c (unknown_language_data): Likewise.
6896 (auto_language_data): Likewise.
6897 * language.h (struct language_data): Delete
6898 la_lookup_transparent_type field.
6899 (language_defn::lookup_transparent_type): New member function.
6900 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6901 initializer.
6902 * objc-lang.c (objc_language_data): Likewise.
6903 * opencl-lang.c (opencl_language_data): Likewise.
6904 * p-lang.c (pascal_language_data): Likewise.
6905 * rust-lang.c (rust_language_data): Likewise.
6906 * symtab.c (symbol_matches_domain): Update call.
6907
1fb314aa
AB
69082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * ada-lang.c (ada_language_arch_info): Delete function, move
6911 implementation to...
6912 (ada_language::language_arch_info): ...here, a new member
6913 function.
6914 (ada_language_data): Delete la_language_arch_info.
6915 * c-lang.c (c_language_data): Likewise.
6916 (c_language::language_arch_info): New member function.
6917 (cplus_language_arch_info): Delete function, move
6918 implementation to...
6919 (cplus_language::language_arch_info): ...here, a new member
6920 function.
6921 (cplus_language_data): Delete la_language_arch_info.
6922 (asm_language_data): Likewise.
6923 (asm_language::language_arch_info): New member function.
6924 (minimal_language_data): Delete la_language_arch_info.
6925 (minimal_language::language_arch_info): New member function.
6926 * d-lang.c (d_language_arch_info): Delete function, move
6927 implementation to...
6928 (d_language::language_arch_info): ...here, a new member
6929 function.
6930 (d_language_data): Delete la_language_arch_info.
6931 * f-lang.c (f_language_arch_info): Delete function, move
6932 implementation to...
6933 (f_language::language_arch_info): ...here, a new member
6934 function.
6935 (f_language_data): Delete la_language_arch_info.
6936 * go-lang.c (go_language_arch_info): Delete function, move
6937 implementation to...
6938 (go_language::language_arch_info): ...here, a new member
6939 function.
6940 (go_language_data): Delete la_language_arch_info.
6941 * language.c (unknown_language_data): Likewise.
6942 (unknown_language::language_arch_info): New member function.
6943 (auto_language_data): Delete la_language_arch_info.
6944 (auto_language::language_arch_info): New member function.
6945 (language_gdbarch_post_init): Update call to
6946 la_language_arch_info.
6947 * language.h (language_data): Delete la_language_arch_info
6948 function pointer.
6949 (language_defn::language_arch_info): New function.
6950 * m2-lang.c (m2_language_arch_info): Delete function, move
6951 implementation to...
6952 (m2_language::language_arch_info): ...here, a new member
6953 function.
6954 (m2_language_data): Delete la_language_arch_info.
6955 * objc-lang.c (objc_language_arch_info): Delete function, move
6956 implementation to...
6957 (objc_language::language_arch_info): ...here, a new member
6958 function.
6959 (objc_language_data): Delete la_language_arch_info.
6960 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6961 implementation to...
6962 (opencl_language::language_arch_info): ...here, a new member
6963 function.
6964 (opencl_language_data): Delete la_language_arch_info.
6965 * p-lang.c (pascal_language_arch_info): Delete function, move
6966 implementation to...
6967 (pascal_language::language_arch_info): ...here, a new member
6968 function.
6969 (pascal_language_data): Delete la_language_arch_info.
6970 * rust-lang.c (rust_language_arch_info): Delete function, move
6971 implementation to...
6972 (rust_language::language_arch_info): ...here, a new member
6973 function.
6974 (rust_language_data): Delete la_language_arch_info.
6975
48448202
AB
69762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6979 initializer.
6980 * c-lang.c (c_language_data): Likewise.
6981 (cplus_language_data): Likewise.
6982 (cplus_language::pass_by_reference_info): New method.
6983 (asm_language_data): Delete la_pass_by_reference initializer.
6984 (minimal_language_data): Likewise.
6985 * cp-abi.c (cp_pass_by_reference): Remove use of
6986 default_pass_by_reference.
6987 * d-lang.c (d_language_data): Likewise.
6988 * f-lang.c (f_language_data): Likewise.
6989 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6990 default_pass_by_reference.
6991 * go-lang.c (go_language_data): Likewise.
6992 * language.c (language_pass_by_reference): Update.
6993 (default_pass_by_reference): Delete.
6994 (unknown_language_data): Delete la_pass_by_reference
6995 initializer.
6996 (auto_language_data): Likewise.
6997 * language.h (struct language_data): Delete la_pass_by_reference
6998 field.
6999 (language_defn::pass_by_reference_info): New member function.
7000 (default_pass_by_reference): Delete declaration.
7001 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7002 initializer.
7003 * objc-lang.c (objc_language_data): Likewise.
7004 * opencl-lang.c (opencl_language_data): Likewise.
7005 * p-lang.c (pascal_language_data): Likewise.
7006 * rust-lang.c (rust_language_data): Likewise.
7007
15e5fd35
AB
70082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * ada-lang.c (ada_read_var_value): Delete function, move
7011 implementation to...
7012 (ada_language::read_var_value): ...here.
7013 (ada_language_data): Delete la_read_var_value initializer.
7014 * c-lang.c (c_language_data): Likewise.
7015 (cplus_language_data): Likewise.
7016 (minimal_language_data): Likewise.
7017 * d-lang.c (d_language_data): Likewise.
7018 * f-lang.c (f_language_data): Likewise.
7019 * findvar.c (default_read_var_value): Rename to...
7020 (language_defn::read_var_value): ...this.
7021 * findvar.c (read_var_value): Update header comment, and change to
7022 call member function instead of function pointer.
7023 * go-lang.c (go_language_data): Likewise.
7024 * language.c (unknown_language_data): Delete la_read_var_value
7025 initializer.
7026 (auto_language_data): Likewise.
7027 * language.h (struct language_data): Delete la_read_var_value
7028 field.
7029 (language_defn::read_var_value): New member function.
7030 (default_read_var_value): Delete declaration.
7031 * m2-lang.c (m2_language_data): Delete la_read_var_value
7032 initializer.
7033 * objc-lang.c (objc_language_data): Likewise.
7034 * opencl-lang.c (opencl_language_data): Likewise.
7035 * p-lang.c (pascal_language_data): Likewise.
7036 * rust-lang.c (rust_language_data): Likewise.
7037 * value.h (default_read_var_value): Delete declaration.
7038
5bd40f2a
AB
70392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 * ada-lang.c (ada_print_array_index): Delete function, move
7042 implementation to...
7043 (ada_language::print_array_index): ...here.
7044 (ada_language_data): Delete la_print_array_index initializer.
7045 * c-lang.c (c_language_data): Likewise.
7046 (cplus_language_data): Likewise.
7047 (minimal_language_data): Likewise.
7048 * d-lang.c (d_language_data): Likewise.
7049 * f-lang.c (f_language_data): Likewise.
7050 * go-lang.c (go_language_data): Likewise.
7051 * language.c (default_print_array_index): Delete function, move
7052 implementation to...
7053 (language_defn::print_array_index): ...here.
7054 (unknown_language_data): Delete la_print_array_index initializer.
7055 (auto_language_data): Likewise.
7056 * language.h (struct language_data): Delete la_print_array_index
7057 field.
7058 (language_defn::print_array_index): New member function.
7059 (LA_PRINT_ARRAY_INDEX): Update.
7060 (default_print_array_index): Delete declaration.
7061 * m2-lang.c (m2_language_data): Delete la_print_array_index
7062 initializer.
7063 * objc-lang.c (objc_language_data): Likewise.
7064 * opencl-lang.c (opencl_language_data): Likewise.
7065 * p-lang.c (pascal_language_data): Likewise.
7066 * rust-lang.c (rust_language_data): Likewise.
7067
0874fd07
AB
70682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * gdb/ada-lang.c (ada_language_defn): Convert to...
7071 (ada_language_data): ...this.
7072 (class ada_language): New class.
7073 (ada_language_defn): New static global.
7074 * gdb/c-lang.c (c_language_defn): Convert to...
7075 (c_language_data): ...this.
7076 (class c_language): New class.
7077 (c_language_defn): New static global.
7078 (cplus_language_defn): Convert to...
7079 (cplus_language_data): ...this.
7080 (class cplus_language): New class.
7081 (cplus_language_defn): New static global.
7082 (asm_language_defn): Convert to...
7083 (asm_language_data): ...this.
7084 (class asm_language): New class.
7085 (asm_language_defn): New static global.
7086 (minimal_language_defn): Convert to...
7087 (minimal_language_data): ...this.
7088 (class minimal_language): New class.
7089 (minimal_language_defn): New static global.
7090 * gdb/d-lang.c (d_language_defn): Convert to...
7091 (d_language_data): ...this.
7092 (class d_language): New class.
7093 (d_language_defn): New static global.
7094 * gdb/f-lang.c (f_language_defn): Convert to...
7095 (f_language_data): ...this.
7096 (class f_language): New class.
7097 (f_language_defn): New static global.
7098 * gdb/go-lang.c (go_language_defn): Convert to...
7099 (go_language_data): ...this.
7100 (class go_language): New class.
7101 (go_language_defn): New static global.
7102 * gdb/language.c (unknown_language_defn): Remove declaration.
7103 (current_language): Initialize to nullptr, real initialization is
7104 moved to _initialize_language.
7105 (languages): Delete global.
7106 (language_defn::languages): Define.
7107 (set_language_command): Use language_defn::languages.
7108 (set_language): Likewise.
7109 (range_error): Likewise.
7110 (language_enum): Likewise.
7111 (language_def): Likewise.
7112 (add_set_language_command): Use language_def::languages for the
7113 language list, and language_def to lookup language pointers.
7114 (skip_language_trampoline): Use language_defn::languages.
7115 (unknown_language_defn): Convert to...
7116 (unknown_language_data): ...this.
7117 (class unknown_language): New class.
7118 (unknown_language_defn): New static global.
7119 (auto_language_defn): Convert to...
7120 (auto_language_data): ...this.
7121 (class auto_language): New class.
7122 (auto_language_defn): New static global.
7123 (language_gdbarch_post_init): Use language_defn::languages.
7124 (_initialize_language): Initialize current_language.
7125 * gdb/language.h (struct language_defn): Rename to...
7126 (struct language_data): ...this.
7127 (struct language_defn): New.
7128 (auto_language_defn): Delete.
7129 (unknown_language_defn): Delete.
7130 (minimal_language_defn): Delete.
7131 (ada_language_defn): Delete.
7132 (asm_language_defn): Delete.
7133 (c_language_defn): Delete.
7134 (cplus_language_defn): Delete.
7135 (d_language_defn): Delete.
7136 (f_language_defn): Delete.
7137 (go_language_defn): Delete.
7138 (m2_language_defn): Delete.
7139 (objc_language_defn): Delete.
7140 (opencl_language_defn): Delete.
7141 (pascal_language_defn): Delete.
7142 (rust_language_defn): Delete.
7143 * gdb/m2-lang.c (m2_language_defn): Convert to...
7144 (m2_language_data): ...this.
7145 (class m2_language): New class.
7146 (m2_language_defn): New static global.
7147 * gdb/objc-lang.c (objc_language_defn): Convert to...
7148 (objc_language_data): ...this.
7149 (class objc_language): New class.
7150 (objc_language_defn): New static global.
7151 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7152 (opencl_language_data): ...this.
7153 (class opencl_language): New class.
7154 (opencl_language_defn): New static global.
7155 * gdb/p-lang.c (pascal_language_defn): Convert to...
7156 (pascal_language_data): ...this.
7157 (class pascal_language): New class.
7158 (pascal_language_defn): New static global.
7159 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7160 language pointer, update comment format.
7161 * gdb/rust-lang.c (rust_language_defn): Convert to...
7162 (rust_language_data): ...this.
7163 (class rust_language): New class.
7164 (rust_language_defn): New static global.
7165
1313c56e
AB
71662020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7169 member variable.
7170 <m_stmt_at_address>: New member variable.
7171 (lnp_state_machine::record_line): Don't record some lines, update
7172 tracking of is_stmt at the same address.
7173 (lnp_state_machine::lnp_state_machine): Initialise new member
7174 variables.
7175
b7ed9f3d
ST
71762020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7177
7178 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7179 "-include gnu-nat-mig.h".
7180 * gnu-nat-mig.h: New file.
7181 * gnu-nat.c: Include "gnu-nat-mig.h".
7182 (exc_server, msg_reply_server, notify_server,
7183 process_reply_server): Remove declarations.
7184
14a8ad62
ST
71852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7186
7187 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7188 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7189 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7190 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7191 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7192 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7193 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7194 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7195 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7196 to gnu_nat_target class.
7197 * gnu-nat.c: Likewise.
7198 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7199 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7200 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7201 object.
7202 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7203 instead of `gnu_target'.
7204
0af5e106
ST
72052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7206
7207 * i386-gnu-tdep.c: Include "gdbcore.h"
7208 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7209 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7210 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7211 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7212 i386_gnu_sigcontext_addr): New functions
7213 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7214 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7215 tdep.
7216
078f2fc9
ST
72172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7218
7219 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7220 before fork_inferior call. Avoid calling it if target_is_pushed returns
7221 true.
7222
53dff92c
ST
72232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7224
7225 * gnu-nat.h (gnu_target): New variable declaration.
7226 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7227 gnu_target.
7228 * gnu-nat.c (gnu_target): New variable.
7229 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7230 add_thread_silent, and add_thread calls.
7231 (gnu_nat_target::create_inferior): Pass gnu_target to
7232 add_thread_silent, thread_change_ptid call.
7233 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7234 call.
7235
5a8b8627
ST
72362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7237
7238 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7239 (gnu_nat_target::find_memory_regions): Remove unused
7240 `old_address' variable.
7241
366f550a
ST
72422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7243
7244 * gnu-nat.c: Include "gdbarch.h".
7245
f14871bf
ST
72462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7247
7248 * reply_mig_hack.awk (Error return): Cast function through
7249 void *, to bypass compiler function call check.
7250
c6887cfb
ST
72512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7252
7253 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7254 $(srcdir)/reply_mig_hack.awk.
7255
6930bffe
ST
72562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7257
7258 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7259
112c22ed
JG
72602020-05-30 Jonny Grant <jg@jguk.org>
7261
7262 * configure.ac (ACX_BUGURL): change bug URL to https.
7263
f68f85b5
PA
72642020-05-30 Pedro Alves <palves@redhat.com>
7265
7266 * cp-support.c (replace_typedefs_template): New.
7267 (replace_typedefs_qualified_name): Handle
7268 DEMANGLE_COMPONENT_TEMPLATE.
7269
976ca316
SM
72702020-05-29 Simon Marchi <simon.marchi@efficios.com>
7271
7272 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7273 dwarf2/index-cache.h, dwarf2/index-write.c,
7274 dwarf2/index-write.h, dwarf2/line-header.c,
7275 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7276 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7277 variables and fields from `dwarf2_per_objfile` to just
7278 `per_objfile` throughout.
7279
989ade05
SM
72802020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7283 <push_dwarf_reg_entry_value>: Add comment.
7284
c47bae85
KB
72852020-05-28 Kevin Buettner <kevinb@redhat.com>
7286 Keith Seitz <keiths@redhat.com>
7287
7288 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7289 instead of PyEval_ReleaseLock.
7290 (class gdbpy_gil): Move to earlier in file.
7291 (finalize_python): Set gdb_python_initialized.
7292 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7293 when not initialized.
7294
44486dcf
SM
72952020-05-28 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7298 <push_dwarf_reg_entry_value>: Remove assert. Override
7299 per_objfile with caller_per_objfile.
7300
f030440d
TV
73012020-05-28 Tom de Vries <tdevries@suse.de>
7302
7303 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7304 PR gold/15646 workaround to symbol kind "type".
7305
f0fbb768
TT
73062020-05-27 Tom Tromey <tromey@adacore.com>
7307
7308 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7309
af0b2a3e
TT
73102020-05-27 Tom Tromey <tromey@adacore.com>
7311
7312 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7313 Use htab_find_with_hash.
7314 <add_abbrev>: Remove "abbrev_number" parameter.
7315 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7316 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7317 (hash_abbrev): Add comment.
7318 (abbrev_table::lookup_abbrev): Move to header file.
7319 (abbrev_table::read): Update.
7320
7d00ffec
TT
73212020-05-27 Tom Tromey <tromey@adacore.com>
7322
7323 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7324 method.
7325 <canonical_name>: New member.
7326 <raw_name>: Rename from "name".
7327 (partial_die_info): Initialize canonical_name.
7328 (scan_partial_symbols): Check raw_name.
7329 (partial_die_parent_scope, partial_die_full_name)
7330 (add_partial_symbol, add_partial_subprogram)
7331 (add_partial_enumeration, load_partial_dies): Use "name" method.
7332 (partial_die_info::name): New method.
7333 (partial_die_info::read, guess_partial_die_structure_name)
7334 (partial_die_info::fixup): Update.
7335
697bba18
TT
73362020-05-27 Tom Tromey <tromey@adacore.com>
7337
7338 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7339 <get_ref_die_offset>: Inline.
7340 <get_ref_die_offset_complaint>: New method.
7341 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7342 (attribute::get_ref_die_offset_complaint): Rename from
7343 get_ref_die_offset. Just issue complaint.
7344
c17ace43
HD
73452020-05-27 Hannes Domani <ssbssa@yahoo.de>
7346
7347 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7348
96445f0b
HD
73492020-05-27 Hannes Domani <ssbssa@yahoo.de>
7350
7351 * exec.c (exec_file_attach): Use errno value of first openp failure.
7352
ac637ec3
HD
73532020-05-27 Hannes Domani <ssbssa@yahoo.de>
7354
7355 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7356 Don't close thread handle.
7357
17ee85fc
TT
73582020-05-27 Tom Tromey <tom@tromey.com>
7359 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7362 shared_ptr.
7363 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7364 member.
7365 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7366 dwarf2_per_bfd_objfile_data_key>: New globals.
7367 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7368 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7369 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7370 shared.
7371 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7372 short-circuit when sharing.
7373 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7374 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7375
39b16f87
SM
73762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7379 to...
7380 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7381 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7382
fcf23d5b
SM
73832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7386 build_name_components, find_name_components_bounds>:
7387 Add per_objfile parameter.
7388 (struct mapped_index) <symbol_name_at>: Likewise.
7389 (struct mapped_debug_names): Remove constructor.
7390 <dwarf2_per_objfile>: Remove field.
7391 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7392 (mapped_index_base::find_name_components_bounds,
7393 mapped_index_base::build_name_components,
7394 dw2_expand_symtabs_matching_symbol): Likewise.
7395 (class mock_mapped_index) <symbol_name_at>: Likewise.
7396 (check_match): Likewise.
7397 (check_find_bounds_finds): Likewise.
7398 (test_mapped_index_find_name_component_bounds): Update.
7399 (CHECK_MATCH): Update.
7400 (dw2_expand_symtabs_matching): Update.
7401 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7402 per_objfile parameter.
7403 <find_vec_in_debug_names>: Likewise.
7404 <m_per_objfile>: New field.
7405 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7406 parameter.
7407 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7408 (dw2_debug_names_iterator::next): Update.
7409 (dw2_debug_names_lookup_symbol): Update.
7410 (dw2_debug_names_expand_symtabs_for_function): Update.
7411 (dw2_debug_names_map_matching_symbols): Update.
7412 (dw2_debug_names_expand_symtabs_matching): Update.
7413 (dwarf2_read_debug_names): Update.
7414
7188ed02
SM
74152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7418 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7419 move to dwarf2_per_objfile.
7420 <read_in_chain>: Remove.
7421 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7422 remove_all_cus, age_comp_units>: New methods.
7423 <m_dwarf2_cus>: New member.
7424 (struct dwarf2_per_cu_data) <cu>: Remove.
7425 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7426 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7427 moved to methods of dwarf2_per_objfile.
7428 (dwarf2_clear_marks): Remove.
7429 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7430 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7431 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7432 (dwarf2_per_objfile::remove_all_cus): New.
7433 (class free_cached_comp_units) <~free_cached_comp_units>:
7434 Update.
7435 (load_cu): Update.
7436 (dw2_do_instantiate_symtab): Adjust.
7437 (fill_in_sig_entry_from_dwo_entry): Adjust.
7438 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7439 (cutu_reader::cutu_reader): Likewise.
7440 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7441 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7442 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7443 and dwarf2_per_objfile::age_comp_units.
7444 (load_partial_comp_unit): Update.
7445 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7446 (process_queue): Likewise.
7447 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7448 backlink.
7449 (dwarf2_read_addr_index): Likewise.
7450 (follow_die_offset): Likewise.
7451 (dwarf2_fetch_die_loc_sect_off): Likewise.
7452 (dwarf2_fetch_constant_bytes): Likewise.
7453 (dwarf2_fetch_die_type_sect_off): Likewise.
7454 (follow_die_sig_1): Likewise.
7455 (load_full_type_unit): Likewise.
7456 (read_signatured_type): Likewise.
7457 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7458 (dwarf2_cu::~dwarf2_cu): Remove.
7459 (dwarf2_per_objfile::get_cu): New.
7460 (dwarf2_per_objfile::set_cu): New.
7461 (age_cached_comp_units): Rename to...
7462 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7463 to std::unordered_map.
7464 (free_one_cached_comp_unit): Rename to...
7465 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7466 to std::unordered_map.
7467 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7468 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7469 a dwarf2_per_objfile in data.
7470 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7471 (dwarf2_clear_marks): Remove.
7472
2e671100
SM
74732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7476 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7477 (init_tu_and_read_dwo_dies): Likewise.
7478 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7479 (cutu_reader::cutu_reader): Likewise.
7480 (load_partial_comp_unit): Likewise.
7481 (process_psymtab_comp_unit): Update.
7482 (build_type_psymtabs_1): Update.
7483 (process_skeletonless_type_unit): Update.
7484 (load_full_comp_unit): Update.
7485 (find_partial_die): Update.
7486 (dwarf2_read_addr_index): Update.
7487 (read_signatured_type): Update.
7488
2e6a9f79
SM
74892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7490
7491 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7492 m_header_read_in>: New fields.
7493 <get_header>: New method.
7494 * dwarf2/read.c (per_cu_header_read_in): Remove.
7495 (dwarf2_per_cu_data::get_header): New.
7496 (dwarf2_per_cu_data::addr_size): Update.
7497 (dwarf2_per_cu_data::offset_size): Update.
7498 (dwarf2_per_cu_data::ref_addr_size): Update.
7499
1b555f17
SM
75002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7503 (dw2_do_instantiate_symtab): Update.
7504 (queue_and_load_all_dwo_tus): Change parameter from
7505 dwarf2_per_cu_data to dwarf2_cu.
7506 (dwarf2_fetch_die_loc_sect_off): Update.
7507 (dwarf2_fetch_constant_bytes): Update.
7508 (dwarf2_fetch_die_type_sect_off): Update.
7509
8fc0b21d
SM
75102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * dwarf2/read.c (process_full_comp_unit,
7513 process_full_type_unit): Remove per_cu, per_objfile paramters.
7514 Add dwarf2_cu parameter.
7515 (process_queue): Update.
7516
168c9250
SM
75172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7518
7519 * dwarf2/read.c (create_cu_from_index_list): Replace
7520 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7521 (create_cus_from_index_list): Likewise.
7522 (create_cus_from_index): Likewise.
7523 (create_signatured_type_table_from_index): Likewise.
7524 (create_cus_from_debug_names_list): Likewise.
7525 (create_cus_from_debug_names): Likewise.
7526 (dwarf2_read_gdb_index): Update.
7527 (dwarf2_read_debug_names): Update.
7528
e286671b
TT
75292020-05-27 Tom Tromey <tom@tromey.com>
7530 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * dwarf2/read.h (struct dwarf2_per_objfile)
7533 <get_type_for_signatured_type, set_type_for_signatured_type>:
7534 New methods.
7535 <m_type_map>: New member.
7536 (struct signatured_type) <type>: Remove.
7537 * dwarf2/read.c
7538 (dwarf2_per_objfile::get_type_for_signatured_type,
7539 dwarf2_per_objfile::set_type_for_signatured_type): New.
7540 (get_signatured_type): Use new methods.
7541
8adb8487
TT
75422020-05-27 Tom Tromey <tom@tromey.com>
7543 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7546 (struct dwarf2_per_objfile) <type_units>: New member.
7547 <get_type_unit_group_unshareable>: New method.
7548 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7549 num_symtabs, symtabs>: Remove; move to
7550 type_unit_group_unshareable.
7551 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7552 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7553 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7554
127bbf4b
SM
75552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * dwarf2/read.h (struct dwarf2_per_cu_data):
7558 <dwarf2_per_objfile>: Remove.
7559 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7560 dwarf2_per_objfile.
7561 (create_signatured_type_table_from_index): Likewise.
7562 (create_signatured_type_table_from_debug_names): Likewise.
7563 (create_debug_type_hash_table): Likewise.
7564 (fill_in_sig_entry_from_dwo_entry): Likewise.
7565 (create_type_unit_group): Likewise.
7566 (read_comp_units_from_section): Likewise.
7567 (create_cus_hash_table): Likewise.
7568
f6e649dd
SM
75692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7572 dwarf2_per_cu_data::dwarf2_per_objfile.
7573 (compute_compunit_symtab_includes): Likewise.
7574 (dwarf2_cu::start_symtab): Likewise.
7575
aa66c379
SM
75762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7577
7578 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7579 parameter.
7580 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7581 (read_namespace_alias): Update.
7582 (lookup_die_type): Update.
7583 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7585 Update.
7586 (disassemble_dwarf_expression): Update.
7587
120ce1b5
SM
75882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * dwarf2/read.h (struct dwarf2_queue_item): Add
7591 dwarf2_per_objfile parameter, assign new parameter.
7592 <per_objfile>: New field.
7593 * dwarf2/read.c (free_one_cached_comp_unit): Add
7594 dwarf2_per_objfile parameter.
7595 (queue_comp_unit): Likewise.
7596 (dw2_do_instantiate_symtab): Update.
7597 (process_psymtab_comp_unit): Update.
7598 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7599 (process_imported_unit_die): Update.
7600 (queue_and_load_dwo_tu): Update.
7601 (follow_die_offset): Update.
7602 (follow_die_sig_1): Update.
7603
9f47c707
SM
76042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7607 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7608 (read_call_site_scope): Assign per_objfile.
7609 (dwarf2_per_cu_data::objfile): Remove.
7610 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7611 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7612 dwarf2_per_objfile parameter.
7613 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7614 dwarf2_per_objfile parameter.
7615 (dwarf_expr_reg_to_entry_parameter): Add output
7616 dwarf2_per_objfile parameter.
7617 (locexpr_get_frame_base): Update.
7618 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7619 <push_dwarf_reg_entry_value>: Update.
7620 <call_site_to_target_addr>: Update.
7621 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7622 parameter.
7623 (value_of_dwarf_reg_entry): Update.
7624 (rw_pieced_value): Update.
7625 (indirect_synthetic_pointer): Update.
7626 (dwarf2_evaluate_property): Update.
7627 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7628 parameter.
7629 (locexpr_read_variable): Update.
7630 (locexpr_get_symbol_read_needs): Update.
7631 (loclist_read_variable): Update.
7632
14095eb3
SM
76332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7636 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7637 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7638 parameter.
7639 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7640 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7641 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7642 parameter.
7643 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7644 sect_variable_value): Add dwarf2_per_objfile parameter.
7645 (class dwarf_evaluate_loc_desc) <dwarf_call,
7646 dwarf_variable_value>: Update.
7647 (fetch_const_value_from_synthetic_pointer): Add
7648 dwarf2_per_objfile parameter.
7649 (fetch_const_value_from_synthetic_pointer): Update.
7650 (coerced_pieced_ref): Update.
7651 (class symbol_needs_eval_context) <dwarf_call,
7652 dwarf_variable_value>: Update.
7653 (dwarf2_compile_expr_to_ax): Update.
7654
3c3cd3d4
SM
76552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7658 parameter.
7659 (dwarf2_evaluate_loc_desc_full): Update.
7660
82ca3f51
SM
76612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7664 parameter.
7665 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7666 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7667 dwarf2_per_objfile parameter.
7668 (decode_debug_loc_dwo_addresses): Likewise.
7669 (dwarf2_find_location_expression): Update.
7670 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7671 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7672 parameter.
7673 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7674 parameter.
7675 (locexpr_describe_location_1): Likewise.
7676 (locexpr_describe_location): Update.
7677
4b167ea1
SM
76782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7679
7680 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7681 Remove.
7682 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7683 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7684 (dwarf2_compile_property_to_c): Update.
7685 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7686 use text offset from objfile.
7687 (locexpr_tracepoint_var_ref): Update.
7688 (locexpr_generate_c_location): Update.
7689 (loclist_describe_location): Update.
7690 (loclist_tracepoint_var_ref): Update.
7691 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7692 dwarf2_per_objfile parameter.
7693 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7694 use text offset from objfile.
7695 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7696
89b07335
SM
76972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/expr.h (struct dwarf_expr_context)
7700 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7701 <offset>: Remove.
7702 <per_objfile>: New member.
7703 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7704 dwarf2_per_objfile parameter. Don't set offset, set
7705 per_objfile.
7706 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7707 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7708 a dwarf2_per_objfile object instead of an offset.
7709 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7710 constructor.
7711 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7712 to dwarf2_expr_executor constructor. Don't set offset.
7713 (dwarf2_fetch_cfa_info): Update.
7714 (struct dwarf2_frame_cache) <text_offset>: Remove.
7715 <per_objfile>: New field.
7716 (dwarf2_frame_cache): Update.
7717 (dwarf2_frame_prev_register): Update.
7718 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7719 <dwarf_evaluate_loc_desc>: Add constructor.
7720 (dwarf2_evaluate_loc_desc_full): Update.
7721 (dwarf2_locexpr_baton_eval): Update.
7722 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7723 Add constructor.
7724 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7725
293e7e51
SM
77262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7727
7728 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7729 addr_sized_int_type>: Move to dwarf2_cu.
7730 <int_type>: Move to dwarf2_per_objfile.
7731 (struct dwarf2_per_objfile) <int_type>: Move here.
7732 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7733 addr_sized_int_type>: Move here.
7734 (read_func_scope): Update.
7735 (read_array_type): Update.
7736 (read_tag_string_type): Update.
7737 (attr_to_dynamic_prop): Update.
7738 (dwarf2_per_cu_data::int_type): Rename to...
7739 (dwarf2_per_objfile::int_type): ... this.
7740 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7741 (dwarf2_cu::addr_sized_int_type): ... this.
7742 (read_subrange_type): Update.
7743 (dwarf2_per_cu_data::addr_type): Rename to...
7744 (dwarf2_cu::addr_type): ... this.
7745 (set_die_type): Update.
7746
64874a40
SM
77472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7750 data through per_cu->cu.
7751
4ab09049
SM
77522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7755 dwarf2_per_cu_data parameter fo dwarf2_cu.
7756 (lookup_dwo_type_unit): Likewise.
7757 (read_cutu_die_from_dwo): Likewise.
7758 (lookup_dwo_unit): Likewise.
7759 (open_and_init_dwo_file): Likewise.
7760 (lookup_dwo_cutu): Likewise.
7761 (lookup_dwo_comp_unit): Likewise.
7762 (lookup_dwo_type_unit): Likewise.
7763 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7764 (cutu_reader::cutu_reader): Update.
7765
47b14e86
SM
77662020-05-27 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7769 parameter.
7770 (process_full_type_unit): Likewise.
7771 (process_queue): Update.
7772
43182c09
SM
77732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.c (recursively_compute_inclusions): Add
7776 dwarf2_per_objfile parameter.
7777 (compute_compunit_symtab_includes): Likewise.
7778 (process_cu_includes): Update.
7779
7aa104c4
SM
77802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7783 parameter.
7784 (create_type_unit_group): Update.
7785 (process_psymtab_comp_unit_reader): Update.
7786 (build_type_psymtabs_reader): Update.
7787
e3beb21d
SM
77882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7789
7790 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7791 object through m_this_cu->cu.
7792
d460f660
SM
77932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7794
7795 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7796 the info parameter.
7797 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7798
ab432490
SM
77992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7800
7801 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7802 per_objfile parameter.
7803 (load_full_type_unit): Add per_objfile parameter.
7804 (read_signatured_type): Likewise.
7805 (load_full_comp_unit): Likewise.
7806 (load_cu): Likewise.
7807 (dw2_do_instantiate_symtab): Likewise.
7808 (dw2_get_file_names): Likewise.
7809 (dw2_map_symtabs_matching_filename): Update.
7810 (dw_expand_symtabs_matching_file_matcher): Update.
7811 (dw2_map_symbol_filenames): Update.
7812 (process_psymtab_comp_unit): Add per_objfile parameter.
7813 (build_type_psymtabs_1): Update.
7814 (process_skeletonless_type_unit): Update.
7815 (dwarf2_build_psymtabs_hard): Update.
7816 (load_partial_comp_unit): Add per_objfile parameter.
7817 (scan_partial_symbols): Update.
7818 (load_full_comp_unit): Add per_objfile parameter.
7819 (process_imported_unit_die): Update.
7820 (create_cus_hash_table): Update.
7821 (find_partial_die): Update.
7822 (dwarf2_read_addr_index): Update.
7823 (follow_die_offset): Update.
7824 (dwarf2_fetch_die_loc_sect_off): Update.
7825 (dwarf2_fetch_constant_bytes): Update.
7826 (dwarf2_fetch_die_type_sect_off): Update.
7827 (follow_die_sig_1): Update.
7828 (load_full_type_unit): Add per_objfile parameter.
7829 (read_signatured_type): Likewise.
7830
313bad1b
SM
78312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7834 of objfile_name.
7835
c3699833
SM
78362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7837
7838 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7839 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7840 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7841 field.
7842 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7843 (create_cus_from_index): Update.
7844 (dwarf2_read_gdb_index): Update.
7845 (create_cus_from_debug_names): Update.
7846 (dwarf2_read_debug_names): Update.
7847 (get_abbrev_section_for_cu): Update.
7848 (create_all_comp_units): Update.
7849 (read_attribute_value): Update.
7850 (get_debug_line_section): Update.
7851 * dwarf2/index-cache.c (index_cache::store): Update.
7852 * dwarf2/index-write.c (save_gdb_index_command): Update.
7853 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7854
1859c670
SM
78552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7856
7857 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7858 member.
7859 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7860 dwarf2_per_cu_data::per_bfd.
7861 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7862 (create_type_unit_group): Likewise.
7863 (queue_comp_unit): Remove reference to
7864 per_cu->dwarf2_per_objfile.
7865 (maybe_queue_comp_unit): Likewise.
7866 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7867 (create_cus_hash_table): Assign new field.
7868
5e22e966
SM
78692020-05-27 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * dwarf2/read.c: Replace
7872 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7873 dwarf2_cu->per_objfile throughout.
7874
97a1449a
SM
78752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7876
7877 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7878 parameter, don't use per_cu->dwarf2_per_objfile.
7879 (dw2_instantiate_symtab): Likewise.
7880 (dw2_find_last_source_symtab): Update.
7881 (dw2_map_expand_apply): Update.
7882 (dw2_lookup_symbol): Update.
7883 (dw2_expand_symtabs_for_function): Update.
7884 (dw2_expand_all_symtabs): Update.
7885 (dw2_expand_symtabs_with_fullname): Update.
7886 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7887 don't use per_cu->dwarf2_per_objfile.
7888 (dw2_expand_marked_cus): Update.
7889 (dw2_find_pc_sect_compunit_symtab): Update.
7890 (dw2_debug_names_lookup_symbol): Update.
7891 (dw2_debug_names_expand_symtabs_for_function): Update.
7892 (dw2_debug_names_map_matching_symbols): Update.
7893 (dwarf2_psymtab::expand_psymtab): Update.
7894
9e021579
SM
78952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7898 <per_objfile>: New member.
7899 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7900 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7901 call to dwarf2_cu.
7902 (cutu_reader::cutu_reader): Update.
7903 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7904
ae090bdb
SM
79052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7908 struct dwarf2_per_objfile.
7909 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7910 dwarf2_per_bfd.
7911 * dwarf2/read.c (set_die_type): Update.
7912 (get_die_type_at_offset): Update.
7913
af758d11
SM
79142020-05-27 Tom Tromey <tom@tromey.com>
7915 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7918 method.
7919 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7920 get_symtab, set_symtab>: New methods.
7921 <m_symtabs>: New field.
7922 (struct dwarf2_psymtab): Derive from partial_symtab.
7923 <readin_p, get_compunit_symtab>: Declare methods.
7924 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7925 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7926 New methods.
7927 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7928 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7929 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7930 (dw2_symtab_iter_next, dw2_print_stats)
7931 (dw2_expand_symtabs_with_fullname)
7932 (dw2_expand_symtabs_matching_one)
7933 (dw_expand_symtabs_matching_file_matcher)
7934 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7935 (dw2_debug_names_iterator::next)
7936 (dw2_debug_names_map_matching_symbols)
7937 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7938 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7939 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7940 New methods.
7941 (get_compunit_symtab, process_full_comp_unit)
7942 (process_full_type_unit): Update.
7943 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7944
5989a64e
SM
79452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7946
7947 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7948 then introduce a new dwarf2_per_objfile type.
7949 <read_line_string>: Move to the new dwarf2_per_objfile type.
7950 <objfile>: Likewise.
7951 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7952 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7953 dwarf2_per_objfile->per_bfd.
7954 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7955 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7956 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7957 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7958 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7959 (dwarf2_per_objfile::locate_sections): Rename to...
7960 (dwarf2_per_bfd::locate_sections): ... this.
7961 (dwarf2_per_objfile::get_cutu): Rename to...
7962 (dwarf2_per_bfd::get_cutu): ... this.
7963 (dwarf2_per_objfile::get_cu): Rename to...
7964 (dwarf2_per_bfd::get_cu): ... this.
7965 (dwarf2_per_objfile::get_tu): Rename to...
7966 (dwarf2_per_bfd::get_tu): ... this.
7967 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7968 (dwarf2_per_bfd::allocate_per_cu): ... this.
7969 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7970 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7971 (get_gdb_index_contents_ftype): Change parameter from
7972 dwarf2_per_objfile to dwarf2_per_bfd.
7973 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7974 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7975
a50264ba
TT
79762020-05-27 Tom Tromey <tom@tromey.com>
7977 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7980 (allocate_piece_closure): Set "per_objfile" member.
7981 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7982 (locexpr_describe_location, loclist_describe_location): Use new
7983 member.
7984 * dwarf2/read.c (read_call_site_scope)
7985 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7986 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7987 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7988 handle_data_member_location): Set per_objfile member.
7989 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7990 member.
7991 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7992
d3473f0c
TT
79932020-05-27 Tom Tromey <tom@tromey.com>
7994
7995 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7996 allocate_signatured_type>: Declare new methods.
7997 <m_num_psymtabs>: New member.
7998 (struct dwarf2_per_cu_data) <index>: New member.
7999 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8000 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8001 (create_cu_from_index_list): Use allocate_per_cu.
8002 (create_signatured_type_table_from_index)
8003 (create_signatured_type_table_from_debug_names)
8004 (create_debug_type_hash_table, add_type_unit)
8005 (read_comp_units_from_section): Use allocate_signatured_type.
8006
5717c425
TT
80072020-05-27 Tom Tromey <tom@tromey.com>
8008
8009 * psymtab.c (partial_map_expand_apply)
8010 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8011 (psym_lookup_global_symbol_language)
8012 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8013 (psym_print_stats, psym_expand_symtabs_for_function)
8014 (psym_map_symbol_filenames, psym_map_matching_symbols)
8015 (psym_expand_symtabs_matching)
8016 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8017 (maintenance_check_psymtabs): Update.
8018 * psympriv.h (struct partial_symtab) <readin_p,
8019 get_compunit_symtab>: Add objfile parameter.
8020 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8021 Likewise.
8022 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8023 get_compunit_symtab>: Likewise.
8024 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8025
45940949
TT
80262020-05-27 Tom Tromey <tom@tromey.com>
8027
8028 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8029 member.
8030 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8031 (create_cu_from_index_list)
8032 (create_signatured_type_table_from_index)
8033 (create_signatured_type_table_from_debug_names)
8034 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8035 (dwarf2_create_include_psymtab)
8036 (create_debug_type_hash_table, add_type_unit)
8037 (create_type_unit_group, read_comp_units_from_section)
8038 (dwarf2_compute_name, create_cus_hash_table)
8039 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8040 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8041 obstack.
8042 (dw2_get_real_path): Likewise. Change argument to
8043 dwarf2_per_objfile.
8044
f8c6d152
LM
80452020-05-27 Luis Machado <luis.machado@linaro.org>
8046
8047 PR tdep/26000
8048 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8049 for ldrd (immediate).
8050
e98d2e6d
PW
80512020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8052
8053 * command.h: Add comment giving the name of class_tui.
8054 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8055 create the fake command for the help for class_tui.
8056
53a47a3e
TT
80572020-05-26 Tom Tromey <tromey@adacore.com>
8058
8059 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8060 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8061 (val_atr): New function.
8062 (value_val_atr): Use it.
8063 * ada-valprint.c (print_optional_low_bound): Change low bound
8064 handling for enums.
8065 (val_print_packed_array_elements): Don't call discrete_position.
8066 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8067 discrete_position for enum types.
8068 * language.c (default_print_array_index): Change type.
8069 * language.h (struct language_defn) <la_print_array_index>: Add
8070 index_type parameter, change type of index_value.
8071 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8072 (default_print_array_index): Update.
8073 * valprint.c (maybe_print_array_index): Don't call
8074 value_from_longest. Update.
8075 (value_print_array_elements): Don't call discrete_position.
8076
0bc2354b
TT
80772020-05-26 Tom Tromey <tromey@adacore.com>
8078
8079 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8080 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8081
1218a4bf
CDA
80822020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8083
8084 PR gdb/13519
8085 * avr-tdep.c (avr_integer_to_address): Return data or code
8086 address accordingly to the second 'type' argument of the
8087 function.
8088
92651b1d
MW
80892020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8090
8091 * infcmd.c, inferior.h: (construct_inferior_arguments):
8092 Moved function from here to gdbsupport/common-inferior.{h,cc}
8093
0a4f5f8c
TT
80942020-05-23 Tom Tromey <tom@tromey.com>
8095
8096 Revert commit eca1f90c:
8097 * NEWS: Remove entry for completion styling.
8098 * completer.c (_rl_completion_prefix_display_length): Move
8099 declaration later.
8100 (gdb_fnprint): Revert.
8101 (gdb_display_match_list_1): Likewise.
8102 * cli/cli-style.c (completion_prefix_style)
8103 (completion_difference_style, completion_suffix_style): Remove.
8104 (_initialize_cli_style): Revert.
8105 * cli/cli-style.h (completion_prefix_style)
8106 (completion_difference_style, completion_suffix_style): Don't
8107 declare.
8108
e08bd6c5
PA
81092020-05-24 Pedro Alves <palves@redhat.com>
8110
8111 * symtab.c (completion_list_add_name): Return boolean indication
8112 of whether the symbol matched.
8113 (completion_list_add_symbol): Don't try to remove C++ aliases if
8114 the symbol didn't match in the first place.
8115 * symtab.h (completion_list_add_name): Return bool.
8116
ceacbf6e
SM
81172020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8118
8119 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8120 type::field.
8121
26f16254
JB
81222020-05-23 Joel Brobecker <brobecker@adacore.com>
8123
8124 GDB 9.2 released.
8125
eca1f90c
TT
81262020-05-23 Tom Tromey <tom@tromey.com>
8127
8128 * NEWS: Add entry for completion styling.
8129 * completer.c (_rl_completion_prefix_display_length): Move
8130 declaration earlier.
8131 (gdb_fnprint): Use completion_style.
8132 (gdb_display_match_list_1): Likewise.
8133 * cli/cli-style.c (completion_prefix_style)
8134 (completion_difference_style, completion_suffix_style): New
8135 globals.
8136 (_initialize_cli_style): Register new globals.
8137 * cli/cli-style.h (completion_prefix_style)
8138 (completion_difference_style, completion_suffix_style): Declare.
8139
51e2cfa2
PA
81402020-05-23 Pedro Alves <palves@redhat.com>
8141
8142 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8143 (parse_escape): Use ISDIGIT instead of isdigit.
8144 (puts_debug): Use gdb_isprint instead of isprint.
8145 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8146 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8147 ISSPACE instead of isspace.
8148 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8149 instead of isspace.
8150 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8151 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8152 instead of isxdigit and ISDIGIT instead of isdigit.
8153
80fc5e77
SM
81542020-05-22 Simon Marchi <simon.marchi@efficios.com>
8155
8156 * gdbtypes.h (struct type) <field>: New method.
8157 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8158 or type::field.
8159
3cabb6b0
SM
81602020-05-22 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8163 (TYPE_FIELDS): Use type::fields. Change all call sites that
8164 modify the propery to use type::set_fields instead.
8165
1f704f76
SM
81662020-05-22 Simon Marchi <simon.marchi@efficios.com>
8167
8168 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8169 type::num_fields instead.
8170
5e33d5f4
SM
81712020-05-22 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8174 methods.
8175 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8176 that modify the number of fields to use type::set_num_fields
8177 instead.
8178
9392ebb3
TT
81792020-05-22 Tom Tromey <tromey@adacore.com>
8180
8181 * compile/compile-object-load.h (munmap_list_free): Don't
8182 declare.
8183
7c13f4e8
AB
81842020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * annotate.c (annotate_source_line): Update return type, add call
8187 to update current symtab and line.
8188 * annotate.h (annotate_source_line): Update return type, and
8189 extend header comment.
8190 * source.c (info_line_command): Check annotation_level before
8191 calling annotate_source_line.
8192 * stack.c (print_frame_info): If calling annotate_source_line
8193 returns true, then don't print any other source line information.
8194
aa370940
SM
81952020-05-21 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8198
84d53fa9
SM
81992020-05-21 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * coffread.c (patch_type): Remove NULL check before xfree.
8202 * corefile.c (set_gnutarget): Likewise.
8203 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8204 * exec.c (build_section_table): Likewise.
8205 * remote.c (remote_target::pass_signals): Likewise.
8206 * utils.c (n_spaces): Likewise.
8207 * cli/cli-script.c (document_command): Likewise.
8208 * i386-windows-tdep.c (core_process_module_section): Likewise.
8209 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8210
9d428aae
SM
82112020-05-20 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * symfile.c (reread_symbols): Clear objfile's section_offsets
8214 vector and section indices, re-compute them by calling
8215 sym_offsets.
8216
250106a7
TT
82172020-05-20 Tom Tromey <tromey@adacore.com>
8218
8219 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8220 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8221
9a0bacfb
TV
82222020-05-20 Tom de Vries <tdevries@suse.de>
8223
8224 PR symtab/25833
8225 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8226
7b958a48
AM
82272020-05-20 Alan Modra <amodra@gmail.com>
8228
8229 PR 25993
8230 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8231 bfd_set_filename.
8232 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8233 passed to bfd_set_filename.
8234 * symfile-mem.c (add_vsyscall_page): Likewise for string
8235 passed to symbol_file_add_from_memory.
8236 (symbol_file_add_from_memory): Make name param a const char* and
8237 don't strdup.
8238
c7e97679
AM
82392020-05-20 Alan Modra <amodra@gmail.com>
8240
8241 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8242 rather than accessing bfd->filename directly.
8243 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8244 and use bfd_section_name.
8245 * dwarf2/frame.c (decode_frame_entry): Likewise.
8246 * exec.c (exec_set_section_address): Likewise.
8247 * solib-aix.c (solib_aix_bfd_open): Likewise.
8248 * stap-probe.c (get_stap_base_address): Likewise.
8249 * symfile.c (reread_symbols): Likewise.
8250
563c591b
TT
82512020-05-19 Tom Tromey <tromey@adacore.com>
8252
8253 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8254
f408d82c
SM
82552020-05-19 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8258
98c59b52
PA
82592020-05-19 Pedro Alves <palves@redhat.com>
8260
8261 * NEWS (set exec-file-mismatch): Adjust entry.
8262 * exec.c: Include "build-id.h".
8263 (validate_exec_file): Try to match build IDs instead of filenames.
8264 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8265 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8266 and pass down 'warn_if_slow'.
8267 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8268 gdb_bfd_open_closure to pass it down.
8269 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8270
4111f652
PA
82712020-05-19 Pedro Alves <palves@redhat.com>
8272
8273 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8274 * target.c (target_fileio_open_1): Rename to target_fileio_open
8275 and make extern. Use bool.
8276 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8277 (target_fileio_read_alloc_1): Adjust.
8278 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8279 (target_fileio_open_warn_if_slow): Delete declaration.
8280
ad80db5b
PA
82812020-05-19 Pedro Alves <palves@redhat.com>
8282
8283 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8284 Adjust all callers.
8285
1d6ce4d3
YS
82862020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8287
8288 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8289 whether disp is negative.
8290
9005fbbb
SM
82912020-05-19 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * symfile.h (struct symfile_segment_data)
8294 <~symfile_segment_data>: Remove.
8295 <segment_info>: Change to std::vector.
8296 * symfile.c (default_symfile_segments): Update.
8297 * elfread.c (elf_symfile_segments): Update.
8298
68b888ff
SM
82992020-05-19 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8302 <segments>: New.
8303 <segment_bases, segment_sizes>: Remove.
8304 * symfile.c (default_symfile_segments): Update.
8305 * elfread.c (elf_symfile_segments): Update.
8306 * remote.c (remote_target::get_offsets): Update.
8307 * solib-target.c (solib_target_relocate_section_addresses):
8308 Update.
8309
62982abd
SM
83102020-05-19 Simon Marchi <simon.marchi@efficios.com>
8311
8312 * symfile.h (struct symfile_segment_data): Initialize fields.
8313 <~symfile_segment_data>: Add.
8314 (symfile_segment_data_up): New.
8315 (struct sym_fns) <sym_segments>: Return a
8316 symfile_segment_data_up.
8317 (default_symfile_segments): Return a symfile_segment_data_up.
8318 (free_symfile_segment_data): Remove.
8319 (get_symfile_segment_data): Return a symfile_segment_data_up.
8320 * symfile.c (default_symfile_segments): Likewise.
8321 (get_symfile_segment_data): Likewise.
8322 (free_symfile_segment_data): Remove.
8323 (symfile_find_segment_sections): Update.
8324 * elfread.c (elf_symfile_segments): Return a
8325 symfile_segment_data_up.
8326 * remote.c (remote_target::get_offsets): Update.
8327 * solib-target.c (solib_target_relocate_section_addresses):
8328 Update.
8329 * symfile-debug.c (debug_sym_segments): Return a
8330 symfile_segment_data_up.
8331
7f204339
RO
83322020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8333
e52a0f1b
RO
8334 PR build/25981
8335 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8336 Hardcode register numbers.
8337
7f204339
RO
8338 PR build/25981
8339 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8340 procfs_find_LDT_entry): Remove.
8341 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8342 procfs_find_LDT_entry): Remove.
8343 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8344 Remove.
8345
7f32a4d5
PA
83462020-05-17 Pedro Alves <palves@redhat.com>
8347 Andrew Burgess <andrew.burgess@embecosm.com>
8348 Keno Fischer <keno@juliacomputing.com>
8349
8350 PR gdb/25741
8351 * breakpoint.c (build_target_condition_list): Update comments.
8352 (build_target_command_list): Update comments and skip matching
8353 locations.
8354 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8355 a separate function. Simplify "set breakpoint auto-hw off"
8356 handling.
8357 (insert_breakpoints): Update comment.
8358 (tracepoint_locations_match): New parameter. For breakpoints,
8359 compare location types too, if the caller wants to.
8360 (handle_automatic_hardware_breakpoints): New functions.
8361 (bp_location_is_less_than): Also sort by location type and
8362 hardware breakpoint length.
8363 (update_global_location_list): Handle "set breakpoint auto-hw on"
8364 here.
8365 (update_breakpoint_locations): Ask breakpoint_locations_match to
8366 ignore location types.
8367
7d93a1e0
SM
83682020-05-16 Simon Marchi <simon.marchi@efficios.com>
8369
8370 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8371 type::name instead.
8372
d0e39ea2
SM
83732020-05-16 Simon Marchi <simon.marchi@efficios.com>
8374
8375 * gdbtypes.h (struct type) <name, set_name>: New methods.
8376 (TYPE_CODE): Use type::name. Change all call sites used to set
8377 the name to use type::set_name instead.
8378
2dab0c7b
TT
83792020-05-16 Tom Tromey <tom@tromey.com>
8380
8381 * top.c (quit_force): Update.
8382 * infrun.c (handle_no_resumed): Update.
8383 * top.h (all_uis): New function.
8384 (ALL_UIS): Remove.
8385
59f7bd8d
SM
83862020-05-16 Simon Marchi <simon.marchi@efficios.com>
8387
8388 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8389
9bf058f0
PA
83902020-05-16 Pedro Alves <palves@redhat.com>
8391
8392 * ia64-linux-nat.c
8393 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8394 Declare method.
8395 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8396
8f86ae1a
SM
83972020-05-15 Simon Marchi <simon.marchi@efficios.com>
8398
8399 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8400 (sparc64_adi_info): Likewise.
8401
d6bc0792
TT
84022020-05-15 Tom Tromey <tom@tromey.com>
8403
8404 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8405 block_objfile.
8406 (lookup_objfile_from_block): Remove.
8407 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8408 (lookup_global_symbol): Use block_objfile.
8409 * symtab.h (lookup_objfile_from_block): Don't declare.
8410 * printcmd.c (clear_dangling_display_expressions): Use
8411 block_objfile.
8412 * parse.c (operator_check_standard): Use block_objfile.
8413
8c14c3a3
TT
84142020-05-15 Tom Tromey <tom@tromey.com>
8415
8416 * language.c (language_alloc_type_symbol): Set
8417 SYMBOL_SECTION.
8418 * symtab.c (initialize_objfile_symbol): Remove.
8419 (allocate_symbol): Remove.
8420 (allocate_template_symbol): Remove.
8421 * dwarf2/read.c (fixup_go_packaging): Use "new".
8422 (new_symbol): Use "new".
8423 (read_variable): Don't call initialize_objfile_symbol. Use
8424 "new".
8425 (read_func_scope): Use "new".
8426 * xcoffread.c (process_xcoff_symbol): Don't call
8427 initialize_objfile_symbol.
8428 (SYMBOL_DUP): Remove.
8429 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8430 "new".
8431 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8432 (allocate_template_symbol): Don't declare.
8433 (struct symbol): Add copy constructor. Change defaults.
8434 * jit.c (finalize_symtab): Use "new".
8435 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8436 Use "new".
8437 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8438 (common_block_end): Use "new".
8439 * mdebugread.c (parse_symbol): Use "new".
8440 (new_symbol): Likewise.
8441
5b4a1a8d
PW
84422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8443
8444 * NEWS: Mention changes to help and apropos.
8445
57b4f16e
PW
84462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8447
8448 * command.h (enum command_class): Improve comments, document
8449 that class_alias is for user-defined aliases, give the class
8450 name for each class, remove unused class_xdb.
8451 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8452 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8453 by a precise class.
8454 * infcmd.c (_initialize_infcmd): Likewise.
8455 * reverse.c (_initialize_reverse): Likewise.
8456 * stack.c (_initialize_stack): Likewise.
8457 * symfile.c (_initialize_symfile): Likewise.
8458 * tracepoint.c (_initialize_tracepoint): Likewise.
8459
7c05caf7
PW
84602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8461
8462 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8463 when their aliased command is traversed.
8464 (help_cmd): Add fput_command_names_styled call to
8465 output command name and aliases when command has an alias.
8466
3b3aaacb
PW
84672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8468
8469 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8470 * cli/cli-decode.c (help_cmd_list): Declare as static,
8471 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8472 a command together with the command.
8473 (fput_command_name_styled, fput_command_names_styled): New functions.
8474 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8475 fput_command_name_styled.
8476 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8477 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8478
7aa1b46f
PW
84792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8480
8481 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8482 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8483 * command.h (cmd_show_list): Likewise.
8484 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8485 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8486
89bcba74
PW
84872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8488
8489 * unittests/command-def-selftests.c (traverse_command_structure):
8490 Verify all commands of a list have the same prefix command and
8491 that only the top cmdlist commands have a null prefix.
8492
3f4d92eb
PW
84932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8494
8495 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8496 as prefix, not one of its aliases.
8497 (set_cmd_prefix): Remove.
8498 (do_add_cmd): Centralize the setting of the prefix of a command, when
8499 command is defined after its full chain of prefix commands.
8500 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8501 (add_setshow_cmd_full): Likewise.
8502 (update_prefix_field_of_prefixed_commands): New function.
8503 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8504 update_prefix_field_of_prefixed_commands.
8505 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8506 addresses of remote_set_cmdlist and remote_show_cmdlist given
8507 as argument, not the address of an argument.
8508 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8509 * gdb/remote.c (_initialize_remote): Likewise.
8510
0605465f
PW
85112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8512
8513 * cli/cli-cmds.c (alias_command): Check for an existing alias
8514 using lookup_cmd_composition, as valid_command_p is too strict
8515 and forbids aliases that are the prefix of an existing alias
8516 or command.
8517 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8518 command is properly recognised as a valid command.
8519
58e6ac70
PW
85202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8521
8522 * unittests/help-doc-selftests.c: Rename to
8523 unittests/command-def-selftests.c
8524 * unittests/command-def-selftests.c (help_doc_tests): Update some
8525 comments.
8526 (command_structure_tests, traverse_command_structure): New namespace
8527 and function.
8528 (command_structure_invariants_tests): New function.
8529 (_initialize_command_def_selftests) Renamed from
8530 _initialize_help_doc_selftests, register command_structure_invariants
8531 selftest.
8532
a7b9ceb8
PW
85332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8534
8535 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8536 an alias of 'show'.
8537
b2188a06
JB
85382020-05-15 Joel Brobecker <brobecker@adacore.com>
8539
8540 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8541 ada_is_fixed_point_type. Update all callers.
8542 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8543 all callers.
8544 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8545 Update all callers.
8546 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8547 print_fixed_point_type. Update all callers.
8548 * ada-valprint.c (ada_value_print_num): Replace call to
8549 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8550
a51951c2
KB
85512020-05-14 Kevin Buettner <kevinb@redhat.com>
8552
8553 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8554 processors.
8555 (cpu_supports_bts): Add CV_AMD case.
8556
29d6859f
LM
85572020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8558 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * infrun.c (stop_all_threads): Collect multiple wait events at
8561 each pass.
8562
78134374
SM
85632020-05-14 Simon Marchi <simon.marchi@efficios.com>
8564
8565 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8566 type::code instead.
8567
67607e24
SM
85682020-05-14 Simon Marchi <simon.marchi@efficios.com>
8569
8570 * gdbtypes.h (struct type) <code, set_code>: New methods.
8571 (TYPE_CODE): Use type::code. Change all call sites used to set
8572 the code to use type::set_code instead.
8573
a05575d3
TBA
85742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8575 Tom de Vries <tdevries@suse.de>
8576 Pedro Alves <palves@redhat.com>
8577
8578 PR threads/25478
8579 * infrun.c (stop_all_threads): Do NOT ignore
8580 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8581 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8582 received.
8583 (handle_no_resumed): Remove code handling a live inferior with no
8584 threads.
8585 * remote.c (has_single_non_exited_thread): New.
8586 (remote_target::update_thread_list): Do not delete a thread if is
8587 the last thread of the process.
8588 * thread.c (thread_select): Call delete_exited_threads instead of
8589 prune_threads.
8590
6ad82919
TBA
85912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8592
8593 * infrun.c (stop_all_threads): Enable/disable thread events of all
8594 targets. Move a debug message denoting the end of the function
8595 into the SCOPED_EXIT block.
8596
d890404b
TBA
85972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8598
8599 * process-stratum-target.h: Include <set>.
8600 (all_non_exited_process_targets, switch_to_target_no_thread): New
8601 function declarations.
8602 * process-stratum-target.c (all_non_exited_process_targets)
8603 (switch_to_target_no_thread): New function implementations.
8604
293b3ebc
TBA
86052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8606
8607 * infrun.c (handle_inferior_event): Extract out a piece of code
8608 into...
8609 (mark_non_executing_threads): ...this new function.
8610
7ca9b62a
TBA
86112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8612
8613 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8614 use.
8615
fc75c28b
TBA
86162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8617
8618 * regcache.c (regcache_read_pc_protected): New function
8619 implementation that returns 0 if the PC cannot read via
8620 'regcache_read_pc'.
8621 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8622 instead of 'regcache_read_pc'.
8623 (keep_going_pass_signal): Ditto.
8624
a89febbd
TT
86252020-05-13 Tom Tromey <tromey@adacore.com>
8626
8627 * ada-lang.c (align_value): Remove.
8628 (ada_template_to_fixed_record_type_1): Use align_up.
8629
f7e23710
TBA
86302020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8631
8632 * async-event.c: Update the copyright year.
8633 * async-event.h: Update the copyright year.
8634
02ff80c2
SM
86352020-05-12 Simon Marchi <simon.marchi@efficios.com>
8636
8637 * objfiles.h (is_addr_in_objfile,
8638 shared_objfile_contains_address_p): Return bool.
8639 * objfile.c (is_addr_in_objfile,
8640 shared_objfile_contains_address_p): Return bool.
8641
4fd6c7e8
TT
86422020-05-11 Tom Tromey <tromey@adacore.com>
8643
8644 * cli/cli-cmds.c (info_command): Restore.
8645 (_initialize_cli_cmds): Use add_prefix_command for "info".
8646 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8647
5eb68a39
TT
86482020-05-11 Tom Tromey <tromey@adacore.com>
8649
8650 * ada-lang.c (ada_value_primitive_field): Now public.
8651 * ada-lang.h (ada_value_primitive_field): Declare.
8652 * ada-valprint.c (print_field_values): Use
8653 ada_value_primitive_field for wrapper fields.
8654
7666722f
TV
86552020-05-11 Tom de Vries <tdevries@suse.de>
8656
8657 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8658 MODULE_DOMAIN.
8659
3ee6bb11
TV
86602020-05-11 Tom de Vries <tdevries@suse.de>
8661
8662 PR symtab/25941
8663 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8664 with length 0, if not gdb-produced.
8665 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8666
43434996
TV
86672020-05-09 Tom de Vries <tdevries@suse.de>
8668
8669 PR gdb/25955
8670 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8671 calculation.
8672
2f78cffc
TT
86732020-05-09 Tom Tromey <tom@tromey.com>
8674
8675 * top.c (server_command): Now bool.
8676 * top.h (server_command): Now bool.
8677
4f7bc5ed
TT
86782020-05-08 Tom Tromey <tromey@adacore.com>
8679
8680 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8681 already being processed.
8682
8be4b118
TT
86832020-05-08 Tom Tromey <tom@tromey.com>
8684
8685 * printcmd.c (struct display) <next>: Remove.
8686 <display>: New constructor.
8687 <exp_string>: Now a std::string.
8688 <enabled_p>: Now a bool.
8689 (display_number): Move definition earlier.
8690 (displays): Rename from display_chain. Now a std::vector.
8691 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8692 (display_command): Update.
8693 (do_one_display, disable_display)
8694 (enable_disable_display_command, do_enable_disable_display):
8695 Update.
8696 (free_display): Remove.
8697 (clear_displays): Rewrite.
8698 (delete_display): Update.
8699 (map_display_numbers): Use function_view. Remove "data"
8700 parameter. Update.
8701 (do_delete_display): Remove.
8702 (undisplay_command): Update.
8703 (do_one_display, do_displays, disable_display)
8704 (info_display_command): Update.
8705 (do_enable_disable_display): Remove.
8706 (enable_disable_display_command)
8707 (clear_dangling_display_expressions): Update.
8708
94c93c35
TT
87092020-05-08 Tom Tromey <tom@tromey.com>
8710
8711 * symtab.c (set_symbol_cache_size)
8712 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8713 (maintenance_print_symbol_cache_statistics): Update.
8714 * symmisc.c (print_symbol_bcache_statistics)
8715 (print_objfile_statistics, maintenance_print_objfiles)
8716 (maintenance_info_symtabs, maintenance_check_symtabs)
8717 (maintenance_expand_symtabs, maintenance_info_line_tables):
8718 Update.
8719 * symfile-debug.c (set_debug_symfile): Update.
8720 * source.c (forget_cached_source_info): Update.
8721 * python/python.c (gdbpy_progspaces): Update.
8722 * psymtab.c (maintenance_info_psymtabs): Update.
8723 * probe.c (parse_probes): Update.
8724 * linespec.c (iterate_over_all_matching_symtabs)
8725 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8726 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8727 * exec.c (exec_target::close): Update.
8728 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8729 * breakpoint.c (print_one_breakpoint_location)
8730 (create_longjmp_master_breakpoint)
8731 (create_std_terminate_master_breakpoint): Update.
8732 * progspace.c (program_spaces): Now a std::vector.
8733 (maybe_new_address_space): Update.
8734 (add_program_space): Remove.
8735 (program_space::program_space): Update.
8736 (remove_program_space): Update.
8737 (number_of_program_spaces): Remove.
8738 (print_program_space, update_address_spaces): Update.
8739 * progspace.h (program_spaces): Change type.
8740 (ALL_PSPACES): Remove.
8741 (number_of_program_spaces): Don't declare.
8742 (struct program_space) <next>: Remove.
8743
a1fd1ac9
TT
87442020-05-08 Tom Tromey <tom@tromey.com>
8745
8746 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8747 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8748 (enable_break): Update.
8749 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8750 (frv_fdpic_find_canonical_descriptor): Update.
8751 (frv_fetch_objfile_link_map): Update.
8752 * progspace.c (program_space::free_all_objfiles): Update.
8753 (program_space::solibs): New method.
8754 * progspace.h (struct program_space) <solibs>: New method.
8755 * solist.h (master_so_list): Don't declare.
8756 (ALL_SO_LIBS): Remove.
8757 * solib.h (so_list_head): Remove.
8758 (update_solib_list): Update comment.
8759 * solib.c (master_so_list): Remove.
8760 (solib_used, update_solib_list, solib_add)
8761 (info_sharedlibrary_command, clear_solib)
8762 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8763
38eae084
TT
87642020-05-08 Tom Tromey <tom@tromey.com>
8765
8766 * extension.c (extension_languages): Now a std::array.
8767 (ALL_EXTENSION_LANGUAGES): Remove.
8768 (get_ext_lang_defn, get_ext_lang_of_file)
8769 (eval_ext_lang_from_control_command): Update.
8770 (finish_ext_lang_initialization)
8771 (auto_load_ext_lang_scripts_for_objfile)
8772 (ext_lang_type_printers::ext_lang_type_printers)
8773 (apply_ext_lang_type_printers)
8774 (ext_lang_type_printers::~ext_lang_type_printers)
8775 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8776 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8777 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8778 (get_matching_xmethod_workers, ext_lang_colorize)
8779 (ext_lang_before_prompt): Update.
8780 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8781
596dc4ad
TT
87822020-05-08 Tom Tromey <tom@tromey.com>
8783
8784 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8785 overload.
8786 <swap_string, m_string>: Remove.
8787 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8788 Update.
8789 * stabsread.c (define_symbol, read_type): Update.
8790 * linespec.c (find_linespec_symbols): Update.
8791 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8792 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8793 * dbxread.c (read_dbx_symtab): Update.
8794 * cp-support.h (cp_canonicalize_string_full)
8795 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8796 Return unique_xmalloc_ptr.
8797 * cp-support.c (inspect_type): Update.
8798 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8799 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8800 Likewise.
8801 * c-typeprint.c (print_name_maybe_canonical): Update.
8802 * break-catch-throw.c (check_status_exception_catchpoint):
8803 Update.
8804
bf4cb9be
TV
88052020-05-08 Tom de Vries <tdevries@suse.de>
8806
8807 * infrun.c (follow_fork): Copy current_line and current_symtab to
8808 child thread.
8809
a1b68f28
SM
88102020-05-07 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * async-event.c (struct async_signal_handler, struct
8813 async_event_handler): Reformat, remove typedef.
8814
98d48915
SM
88152020-05-07 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8818 access thistype->main_type->dyn_prop_list directly.
8819
7aa91313
SM
88202020-05-07 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8823 (remove_dyn_prop): Remove. Update all users to use
8824 type::remove_dyn_prop.
8825 * gdbtypes.c (remove_dyn_prop): Rename to...
8826 (type::remove_dyn_prop): ... this.
8827
5c54719c
SM
88282020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8829
8830 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8831 (add_dyn_prop): Remove. Update all users to use
8832 type::add_dyn_prop.
8833 * gdbtypes.c (add_dyn_prop): Rename to...
8834 (type::add_dyn_prop): ... this.
8835
24e99c6c
SM
88362020-05-07 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8839 (get_dyn_prop): Remove. Update all users to use
8840 type::dyn_prop.
8841 * gdbtypes.c (get_dyn_prop): Rename to...
8842 (type::dyn_prop): ... this.
8843
0d4bf016
SM
88442020-05-06 Simon Marchi <simon.marchi@efficios.com>
8845
8846 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8847
ac4a4f1c
SM
88482020-05-06 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8851 instruction, skip it if it's there.
8852
a3bbacc1
SM
88532020-05-05 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8856
c3236f84
SM
88572020-05-04 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8860 * gdbtypes.c (recursive_dump_type): Remove use of
8861 TYPE_INCOMPLETE.
8862
3b6acaee
TT
88632020-05-03 Tom Tromey <tom@tromey.com>
8864
8865 * breakpoint.c (catch_command, tcatch_command): Remove.
8866 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8867 add_show_prefix_cmd.
8868 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8869 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8870 Remove.
8871 (add_internal_problem_command): Use add_basic_prefix_cmd,
8872 add_show_prefix_cmd.
8873 * mips-tdep.c (set_mipsfpu_command): Remove.
8874 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8875 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8876 (_initialize_index_cache): Use add_basic_prefix_cmd.
8877 * memattr.c (dummy_cmd): Remove.
8878 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8879 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8880 (_initialize_tui_win): Use add_basic_prefix_cmd,
8881 add_show_prefix_cmd.
8882 * cli/cli-logging.c (set_logging_command): Remove.
8883 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8884 add_show_prefix_cmd.
8885 (show_logging_command): Remove.
8886 * target.c (target_command): Remove.
8887 (add_target): Use add_basic_prefix_cmd.
8888
a51119cd
HD
88892020-05-02 Hannes Domani <ssbssa@yahoo.de>
8890
8891 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8892
652fc23a 88932020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8894
652fc23a
PW
8895 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8896 info_command.
8897
117539e6
KR
88982020-04-30 Kamil Rytarowski <n54@gmx.com>
8899
8900 * nbsd-nat.c (nbsd_enable_proc_events)
8901 (nbsd_nat_target::post_startup_inferior): Add.
8902 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8903 (nbsd_nat_target::update_thread_list): Rewrite.
8904 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8905 "PTRACE_LWP_CREATE".
8906 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8907
102e38eb 89082020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8909
102e38eb
PW
8910 * stack.c (_initialize_stack): Remove duplicated creation
8911 of "frame" command and "f" alias.
8912
ee9d1e5f
HD
89132020-04-30 Hannes Domani <ssbssa@yahoo.de>
8914
8915 PR gdb/18706
8916 * gdbtypes.c (check_typedef): Calculate size of array of
8917 stubbed type.
8918
627c7fb8
HD
89192020-04-30 Hannes Domani <ssbssa@yahoo.de>
8920
8921 PR gdb/15559
8922 * i386-tdep.c (i386_push_dummy_call): Call
8923 i386_thiscall_push_dummy_call.
8924 (i386_thiscall_push_dummy_call): New function.
8925 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8926 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8927 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8928
ffc2844e
SM
89292020-04-29 Simon Marchi <simon.marchi@efficios.com>
8930
8931 * gdbarch.sh (do_read): Add shellcheck disable directive for
8932 warning SC2162.
8933
1207375d
SM
89342020-04-29 Simon Marchi <simon.marchi@efficios.com>
8935
8936 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8937 "referenced but not assigned" warning.
8938
9fdb2916
SM
89392020-04-29 Simon Marchi <simon.marchi@efficios.com>
8940
8941 * gdbarch.sh: Remove code that sets fallbackdefault.
8942
759cea5e
SM
89432020-04-29 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * gdbarch.sh: Use shell operators && and || instead of
8946 -a and -o.
8947
cb02ab24
SM
89482020-04-29 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * gdbarch.sh: Use $(...) instead of `...`.
8951
a6fc5ffc
SM
89522020-04-29 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * gdbarch.sh: Use double quotes around variables.
8955
8d113d13
SM
89562020-04-29 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * gdbarch.sh: Use %s with printf, instead of variables in the
8959 format string.
8960
ed6acedd
TT
89612020-04-29 Tom Tromey <tromey@adacore.com>
8962
8963 PR ada/25875:
8964 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8965 type fields here.
8966 (read_enumeration_type): Call
8967 update_enumeration_type_from_children later. Update comments.
8968 (process_enumeration_scope): Don't create type fields.
8969
b68b1b58
KR
89702020-04-29 Kamil Rytarowski <n54@gmx.com>
8971
8972 * nbsd-tdep.c: Include "xml-syscall.h".
8973 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8974
f94b2e03
KR
89752020-04-29 Kamil Rytarowski <n54@gmx.com>
8976
8977 * nbsd-nat.c: Include "sys/wait.h".
8978 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8979 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8980 (nbsd_nat_target::remove_exec_catchpoint)
8981 (nbsd_nat_target::set_syscall_catchpoint): Add.
8982 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8983 (nbsd_nat_target::insert_exec_catchpoint)
8984 (nbsd_nat_target::remove_exec_catchpoint)
8985 (nbsd_nat_target::set_syscall_catchpoint): Add.
8986 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8987 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8988 `nbsd_get_syscall_number'.
8989
fc49bc72
TT
89902020-04-29 Tom Tromey <tom@tromey.com>
8991
8992 * stack.c (print_block_frame_labels): Remove.
8993
d642b692
HD
89942020-04-29 Hannes Domani <ssbssa@yahoo.de>
8995
8996 PR gdb/17320
8997 * ada-valprint.c (val_print_packed_array_elements): Move array
8998 end bracket to new line.
8999 (ada_val_print_string): Remove extra spaces before first array
9000 element.
9001 * c-valprint.c (c_value_print_array): Likewise.
9002 * m2-valprint.c (m2_print_array_contents): Likewise.
9003 (m2_value_print_inner): Likewise.
9004 * p-valprint.c (pascal_value_print_inner): Likewise.
9005 * valprint.c (generic_val_print_array): Likewise.
9006 (value_print_array_elements): Move first array element and array
9007 end bracket to new line.
9008
ea90f227
TV
90092020-04-29 Tom de Vries <tdevries@suse.de>
9010
9011 PR symtab/25889
9012 * linespec.c (find_method): Fix ix calculation.
9013
4498ef4f
KR
90142020-04-28 Kamil Rytarowski <n54@gmx.com>
9015
9016 * syscalls/update-netbsd.sh: New file.
9017 * syscalls/netbsd.xml: Regenerate.
9018 * data-directory/Makefile.in: Register `netbsd.xml' in
9019 `SYSCALLS_FILES'.
9020
a55e30b5
SM
90212020-04-28 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * syscalls/update-freebsd.sh: Add double quotes.
9024
2b2fbab8
TT
90252020-04-28 Tom Tromey <tom@tromey.com>
9026
9027 * NEWS: Update.
9028 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9029 (cmdpy_init): Allow class_tui.
9030
a65189c9
TV
90312020-04-28 Mark Williams <mark@myosotissp.com>
9032
9033 PR gdb/24480
9034 * dwarf2read.c: Add missing assingments to list_in_scope when
9035 start_symtab was already called.
9036
1b95cdb7
SM
90372020-04-28 Simon Marchi <simon.marchi@efficios.com>
9038
9039 PR gdb/25881
9040 * dwarf2/read.c (offset_map_type): Use
9041 gdb:hash_enum<sect_offset> as hash function.
9042
15cd93d0
TV
90432020-04-28 Tom de Vries <tdevries@suse.de>
9044
9045 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9046 with DW_AT_signature.
9047
1eb39914
SM
90482020-04-27 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * configure.ac: Remove check for fs_base/gs_base in
9051 user_regs_struct.
9052 * configure: Re-generate.
9053 * config.in: Re-generate.
9054 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9055 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9056 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9057
991a3e2e
LM
90582020-04-27 Luis Machado <luis.machado@linaro.org>
9059
9060 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9061 problematic inline frame unwinding situation.
9062 * frame.c (frame_id_computed_p): New function.
9063 * frame.h (frame_id_computed_p): New prototype.
9064
361ba0e8
TT
90652020-04-26 Tom Tromey <tom@tromey.com>
9066
9067 * command.h (enum command_class) <class_pseudo>: Remove.
9068
bc3609fd
PW
90692020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9070
9071 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9072 and whitespace.
9073
b9771db7
KR
90742020-04-25 Kamil Rytarowski <n54@gmx.com>
9075
ec16513e
SM
9076 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9077 `PT_GET_PROCESS_STATE' block.
b9771db7 9078
7151c1af
TT
90792020-04-24 Tom Tromey <tom@tromey.com>
9080
9081 * symtab.h (symbol_get_demangled_name): Don't declare.
9082 * symtab.c (symbol_get_demangled_name): Remove.
9083 (general_symbol_info::natural_name)
9084 (general_symbol_info::demangled_name): Update.
9085
906bb4c5
TT
90862020-04-24 Tom Tromey <tom@tromey.com>
9087
9088 PR rust/25025:
9089 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9090
bcfe6157
TT
90912020-04-24 Tom Tromey <tom@tromey.com>
9092
9093 PR symtab/12707:
9094 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9095 exists.
9096 (new_symbol): Likewise.
9097 * compile/compile-object-load.c (get_out_value_type): Use
9098 symbol_matches_search_name.
9099
f049a313
TT
91002020-04-24 Tom Tromey <tom@tromey.com>
9101
9102 * dwarf2/read.c (add_partial_symbol): Do not call
9103 compute_and_set_names.
9104
76e288d1
TT
91052020-04-24 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9108 overload.
9109
2467f4f6
TT
91102020-04-24 Tom Tromey <tom@tromey.com>
9111
9112 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9113 (add_psymbol_to_list): New overload. Make old overload call new
9114 one.
9115 * psympriv.h (add_psymbol_to_list): New overload.
9116
e61108c9
TT
91172020-04-24 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/read.c (partial_die_info::read) <case
9120 DW_AT_linkage_name>: Use value_as_string.
9121 (dwarf2_string_attr): Use value_as_string.
9122 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9123 method.
9124 * dwarf2/attribute.c (attribute::value_as_string): New method.
9125
8c87a452
TT
91262020-04-24 Tom Tromey <tom@tromey.com>
9127
9128 * symtab.c (general_symbol_info::natural_name)
9129 (general_symbol_info::demangled_name): Check for language_rust.
9130
787de330
TT
91312020-04-24 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9134 (dwarf2_physname): ... from here.
9135 (partial_die_info::read): Add Rust "{" hack.
9136
ff985671
TT
91372020-04-24 Tom Tromey <tom@tromey.com>
9138
9139 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9140 method.
9141 (symbol_set_demangled_name): Don't declare.
9142 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9143 symbol_set_demangled_name.
9144 (general_symbol_info::set_language)
9145 (general_symbol_info::compute_and_set_names): Update.
9146 * minsyms.c (minimal_symbol_reader::install): Update.
9147 * dwarf2/read.c (new_symbol): Update.
9148
1acda803
TT
91492020-04-24 Tom Tromey <tromey@adacore.com>
9150
9151 PR python/23662:
9152 * python/py-type.c (convert_field): Handle
9153 FIELD_LOC_KIND_DWARF_BLOCK.
9154 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9155 (typy_get_dynamic): Nw function.
9156 (type_object_getset): Add "dynamic".
9157 * NEWS: Add entry.
9158
d656f129
TT
91592020-04-24 Tom Tromey <tromey@adacore.com>
9160
9161 * ada-typeprint.c (print_choices, print_variant_part)
9162 (print_record_field_types_dynamic): New functions.
9163 (print_record_field_types): Use print_record_field_types_dynamic.
9164
7d79de9a
TT
91652020-04-24 Tom Tromey <tromey@adacore.com>
9166
9167 * dwarf2/read.c (handle_data_member_location): New overload.
9168 (dwarf2_add_field): Use it.
9169 (decode_locdesc): Add "computed" parameter. Update comment.
9170 * gdbtypes.c (is_dynamic_type_internal): Also look for
9171 FIELD_LOC_KIND_DWARF_BLOCK.
9172 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9173 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9174 virtual base classes.
9175 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9176 FIELD_LOC_KIND_DWARF_BLOCK.
9177
f8e89861
TT
91782020-04-24 Tom Tromey <tromey@adacore.com>
9179
9180 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9181 * gdbtypes.c (is_dynamic_type_internal): Check
9182 TYPE_HAS_DYNAMIC_LENGTH.
9183 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9184 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9185 New macros.
9186 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9187 constant.
9188
9c6a1327
TT
91892020-04-24 Tom Tromey <tromey@adacore.com>
9190
9191 * dwarf2/read.c (struct variant_field): Rewrite.
9192 (struct variant_part_builder): New.
9193 (struct nextfield): Remove "variant" field. Add "offset".
9194 (struct field_info): Add "current_variant_part" and
9195 "variant_parts".
9196 (alloc_discriminant_info): Remove.
9197 (alloc_rust_variant): New function.
9198 (quirk_rust_enum): Update.
9199 (dwarf2_add_field): Set "offset" member. Don't handle
9200 DW_TAG_variant_part.
9201 (offset_map_type): New typedef.
9202 (convert_variant_range, create_one_variant)
9203 (create_one_variant_part, create_variant_parts)
9204 (add_variant_property): New functions.
9205 (dwarf2_attach_fields_to_type): Call add_variant_property.
9206 (read_structure_type): Don't handle DW_TAG_variant_part.
9207 (handle_variant_part, handle_variant): New functions.
9208 (handle_struct_member_die): Use them.
9209 (process_structure_scope): Don't handle variant parts.
9210 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9211 (struct discriminant_info): Remove.
9212 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9213 (struct main_type) <flag_discriminated_union>: Remove.
9214 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9215 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9216 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9217 Update.
9218 * valops.c (value_union_variant): Remove.
9219 * value.h (value_union_variant): Don't declare.
9220
b249d2c2
TT
92212020-04-24 Tom Tromey <tromey@adacore.com>
9222
9223 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9224 (ada_value_primitive_packed_val): Update.
9225 * ada-valprint.c (ada_value_print_1): Update.
9226 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9227 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9228 just an address. Use evaluate_for_locexpr_baton.
9229 (dwarf2_evaluate_property): Update.
9230 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9231 array_view.
9232 * findvar.c (default_read_var_value): Update.
9233 * gdbtypes.c (compute_variant_fields_inner)
9234 (resolve_dynamic_type_internal): Update.
9235 (resolve_dynamic_type): Change type of valaddr parameter.
9236 * gdbtypes.h (resolve_dynamic_type): Update.
9237 * valarith.c (value_subscripted_rvalue): Update.
9238 * value.c (value_from_contents_and_address): Update.
9239
61122aa9
TT
92402020-04-24 Tom Tromey <tromey@adacore.com>
9241
9242 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9243 "push_initial_value" parameter.
9244 (dwarf2_evaluate_property): Likewise.
9245 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9246
ef83a141
TT
92472020-04-24 Tom Tromey <tromey@adacore.com>
9248
9249 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9250 (variant::matches, compute_variant_fields_recurse)
9251 (compute_variant_fields_inner, compute_variant_fields): New
9252 functions.
9253 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9254 Use resolved_type after type is made.
9255 (operator==): Add new cases.
9256 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9257 (struct discriminant_range, struct variant, struct variant_part):
9258 New.
9259 (union dynamic_prop_data) <variant_parts, original_type>: New
9260 members.
9261 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9262 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9263 constants.
9264 * value.c (unpack_bits_as_long): Now public.
9265 * value.h (unpack_bits_as_long): Declare.
9266
675127ec
TT
92672020-04-24 Tom Tromey <tromey@adacore.com>
9268
9269 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9270 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9271
9852ceef
HD
92722020-04-24 Hannes Domani <ssbssa@yahoo.de>
9273
9274 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9275
7632c6ce
KR
92762020-04-24 Kamil Rytarowski <n54@gmx.com>
9277
9278 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9279 (remove_fork_catchpoint, post_startup_inferior)
9280 (post_attach): Move...
9281 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9282 (remove_fork_catchpoint, post_startup_inferior)
9283 (post_attach): ...here.
9284 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9285 (remove_fork_catchpoint, post_startup_inferior)
9286 (post_attach): Move...
9287 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9288 (remove_fork_catchpoint, post_startup_inferior)
9289 (post_attach): ...here.
9290
7be2bb4f
TT
92912020-04-24 Tom Tromey <tromey@adacore.com>
9292
9293 * nat/windows-nat.h (struct windows_thread_info)
9294 <pc_adjusted>: New member.
9295 * windows-nat.c (windows_fetch_one_register): Check
9296 pc_adjusted.
9297 (windows_nat_target::get_windows_debug_event)
9298 (windows_nat_target::wait): Set pc_adjusted.
9299
f80cb3b4
TV
93002020-04-24 Tom de Vries <tdevries@suse.de>
9301
9302 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9303 Run gdb-add-index inside temp dir.
9304
29514b87
TT
93052020-04-23 Tom Tromey <tromey@adacore.com>
9306
9307 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9308 in loop.
9309
5939967b
LM
93102020-04-23 Luis Machado <luis.machado@linaro.org>
9311
9312 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9313 get_frame_register instead of gdbarch_unwind_pc.
9314
70bc38f5
TV
93152020-04-23 Tom de Vries <tdevries@suse.de>
9316
9317 * symtab.c (lookup_global_symbol): Prefer def over decl.
9318
de82891c
TV
93192020-04-23 Tom de Vries <tdevries@suse.de>
9320
9321 PR symtab/25807
9322 * block.c (best_symbol, better_symbol): Promote to external.
9323 * block.h (best_symbol, better_symbol): Declare.
9324 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9325 decl.
9326
ecc6c606
TT
93272020-04-23 Tom Tromey <tromey@adacore.com>
9328
9329 PR ada/25837:
9330 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9331 "const char *", not a "const std::string &".
9332 <name_and_matcher::operator==>: Update.
9333 * unittests/lookup_name_info-selftests.c: Change type of
9334 "result".
9335
740480b8
TT
93362020-04-23 Tom Tromey <tom@tromey.com>
9337
9338 * inferior.h (iterate_over_inferiors): Don't declare.
9339 * inferior.c (iterate_over_inferiors): Remove.
9340 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9341 Remove.
9342 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9343 use iterate_over_inferiors.
9344 (darwin_resume_inferior_it)
9345 (struct resume_inferior_threads_param)
9346 (darwin_resume_inferior_threads_it): Remove.
9347 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9348
ae3ab1f0
TV
93492020-04-23 Tom de Vries <tdevries@suse.de>
9350
9351 * blockframe.c (find_pc_partial_function): Use
9352 find_pc_sect_compunit_symtab rather than
9353 objfile->sf->qf->find_pc_sect_compunit_symtab.
9354
317d2668
TV
93552020-04-22 Tom de Vries <tdevries@suse.de>
9356
9357 PR symtab/25764
9358 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9359 in psymtabs.
9360
eea9e357
TV
93612020-04-22 Tom de Vries <tdevries@suse.de>
9362
9363 PR symtab/25801
9364 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9365 symtabs.
9366
3d5afab3
TV
93672020-04-22 Tom de Vries <tdevries@suse.de>
9368
9369 PR symtab/25700
9370 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9371 CU if already created.
9372
d43b7a2d
TBA
93732020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9374
9375 * infrun.c (displaced_step_fixup): Switch to the event_thread
9376 before calling displaced_step_restore, not after.
9377
d89edf9b
MM
93782020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9379
9380 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9381 its inferior is not recorded by us.
9382 (record_btrace_target_open): Replace call to
9383 all_non_exited_threads () with call to current_inferior
9384 ()->non_exited_threads ().
9385 (record_btrace_target::stop_recording): Likewise.
9386 (record_btrace_target::close): Likewise.
9387 (record_btrace_target::wait): Likewise.
9388 (record_btrace_target::record_stop_replaying): Likewise.
9389
5897fd49
MM
93902020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9391
9392 * btrace.c (btrace_enable): Throw an error on double enables and
9393 when enabling recording fails.
9394 (btrace_disable): Throw an error if the thread is not recorded.
9395
1a476b6d
MM
93962020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9397
9398 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9399 request if we do not have a thread_info.
9400
4778a5f8
TV
94012020-04-21 Tom de Vries <tdevries@suse.de>
9402
9403 PR gdb/25471
9404 * thread.c
9405 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9406 exception in get_frame_id.
9407
0fa7617d
TT
94082020-04-20 Tom Tromey <tromey@adacore.com>
9409
9410 * python/python.c (struct gdbpy_event): Mark move constructor as
9411 noexcept.
9412 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9413 constructor as noexcept.
9414 * completer.h (struct completion_result): Mark move constructor as
9415 noexcept.
9416 * completer.c (completion_result::completion_result): Use
9417 initialization style. Don't call reset_match_list.
9418
ad23bda0
MS
94192020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9420
9421 * MAINTAINERS (Write After Approval): Add myself.
9422
45e1f031
TT
94232020-04-18 Tom Tromey <tom@tromey.com>
9424
9425 * windows-tdep.c (init_w32_command_list)
9426 (w32_prefix_command_valid): Restore.
9427 (_initialize_windows_tdep): Call init_w32_command_list.
9428
08feed99
TT
94292020-04-18 Tom Tromey <tom@tromey.com>
9430
9431 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9432 * value.c (value_fn_field): Update.
9433 * valops.c (find_function_in_inferior)
9434 (value_allocate_space_in_inferior): Update.
9435 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9436 Update.
9437 * tui/tui-source.c (tui_source_window::set_contents): Update.
9438 * symtab.c (lookup_global_or_static_symbol)
9439 (find_function_start_sal_1, skip_prologue_sal)
9440 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9441 * symmisc.c (dump_msymbols, dump_symtab_1)
9442 (maintenance_print_one_line_table): Update.
9443 * symfile.c (init_entry_point_info, section_is_mapped)
9444 (list_overlays_command, simple_read_overlay_table)
9445 (simple_overlay_update_1): Update.
9446 * stap-probe.c (handle_stap_probe): Update.
9447 * stabsread.c (dbx_init_float_type, define_symbol)
9448 (read_one_struct_field, read_enum_type, read_range_type): Update.
9449 * source.c (info_line_command): Update.
9450 * python/python.c (gdbpy_source_objfile_script)
9451 (gdbpy_execute_objfile_script): Update.
9452 * python/py-type.c (save_objfile_types): Update.
9453 * python/py-objfile.c (py_free_objfile): Update.
9454 * python/py-inferior.c (python_new_objfile): Update.
9455 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9456 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9457 (maintenance_check_psymtabs): Update.
9458 * printcmd.c (info_address_command): Update.
9459 * objfiles.h (struct objfile) <arch>: New method, from
9460 get_objfile_arch.
9461 (get_objfile_arch): Don't declare.
9462 * objfiles.c (get_objfile_arch): Remove.
9463 (filter_overlapping_sections): Update.
9464 * minsyms.c (msymbol_is_function): Update.
9465 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9466 (output_nondebug_symbol): Update.
9467 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9468 (mdebug_expand_psymtab): Update.
9469 * machoread.c (macho_add_oso_symfile): Update.
9470 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9471 Update.
9472 * linux-fork.c (checkpoint_command): Update.
9473 * linespec.c (convert_linespec_to_sals): Update.
9474 * jit.c (finalize_symtab): Update.
9475 * infrun.c (insert_exception_resume_from_probe): Update.
9476 * ia64-tdep.c (ia64_find_unwind_table): Update.
9477 * hppa-tdep.c (internalize_unwinds): Update.
9478 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9479 Update.
9480 * gcore.c (call_target_sbrk): Update.
9481 * elfread.c (record_minimal_symbol, elf_symtab_read)
9482 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9483 (elf_gnu_ifunc_resolve_by_got): Update.
9484 * dwarf2/read.c (create_addrmap_from_index)
9485 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9486 (read_debug_names_from_section)
9487 (process_psymtab_comp_unit_reader, add_partial_symbol)
9488 (add_partial_subprogram, process_full_comp_unit)
9489 (read_file_scope, read_func_scope, read_lexical_block_scope)
9490 (read_call_site_scope, dwarf2_ranges_read)
9491 (dwarf2_record_block_ranges, dwarf2_add_field)
9492 (mark_common_block_symbol_computed, read_tag_pointer_type)
9493 (read_tag_string_type, dwarf2_init_float_type)
9494 (dwarf2_init_complex_target_type, read_base_type)
9495 (partial_die_info::read, partial_die_info::read)
9496 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9497 (dwarf2_fetch_die_loc_sect_off): Update.
9498 * dwarf2/loc.c (dwarf2_find_location_expression)
9499 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9500 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9501 (dwarf2_loc_desc_get_symbol_read_needs)
9502 (locexpr_describe_location_piece, locexpr_describe_location_1)
9503 (loclist_describe_location): Update.
9504 * dwarf2/index-write.c (write_debug_names): Update.
9505 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9506 * dtrace-probe.c (dtrace_process_dof): Update.
9507 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9508 (process_one_symbol): Update.
9509 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9510 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9511 (coff_read_enum_type): Update.
9512 * cli/cli-cmds.c (edit_command, list_command): Update.
9513 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9514 * breakpoint.c (create_overlay_event_breakpoint)
9515 (create_longjmp_master_breakpoint)
9516 (create_std_terminate_master_breakpoint)
9517 (create_exception_master_breakpoint, get_sal_arch): Update.
9518 * block.c (block_gdbarch): Update.
9519 * annotate.c (annotate_source_line): Update.
9520
0743fc83
TT
95212020-04-17 Tom Tromey <tromey@adacore.com>
9522
9523 * auto-load.c (show_auto_load_cmd): Remove.
9524 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9525 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9526 (maintenance_print_arc_command): Remove.
9527 * tui/tui-win.c (tui_command): Remove.
9528 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9529 * tui/tui-layout.c (tui_layout_command): Remove.
9530 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9531 * python/python.c (user_set_python, user_show_python): Remove.
9532 (_initialize_python): Use add_basic_prefix_cmd,
9533 add_show_prefix_cmd.
9534 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9535 (install_gdb_commands): Use add_basic_prefix_cmd,
9536 add_show_prefix_cmd.
9537 (info_guile_command): Remove.
9538 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9539 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9540 add_show_prefix_cmd.
9541 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9542 Remove do_set and do_show parameters.
9543 * cli/cli-style.c (set_style, show_style): Remove.
9544 (_initialize_cli_style): Use add_basic_prefix_cmd,
9545 add_show_prefix_cmd.
9546 (cli_style_option::add_setshow_commands): Remove do_set and
9547 do_show parameters.
9548 (cli_style_option::add_setshow_commands): Use
9549 add_basic_prefix_cmd, add_show_prefix_cmd.
9550 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9551 (set_style_name): Remove.
9552 * cli/cli-dump.c (dump_command, append_command): Remove.
9553 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9554 (tekhex_dump_command, binary_dump_command)
9555 (binary_append_command): Remove.
9556 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9557 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9558 (init_w32_command_list): Remove; move into ...
9559 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9560 * valprint.c (set_print, show_print, set_print_raw)
9561 (show_print_raw): Remove.
9562 (_initialize_valprint): Use add_basic_prefix_cmd,
9563 add_show_prefix_cmd.
9564 * typeprint.c (set_print_type, show_print_type): Remove.
9565 (_initialize_typeprint): Use add_basic_prefix_cmd,
9566 add_show_prefix_cmd.
9567 * record.c (set_record_command, show_record_command): Remove.
9568 (_initialize_record): Use add_basic_prefix_cmd,
9569 add_show_prefix_cmd.
9570 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9571 add_show_prefix_cmd.
9572 (info_command, show_command, set_debug, show_debug): Remove.
9573 * top.h (set_history, show_history): Don't declare.
9574 * top.c (set_history, show_history): Remove.
9575 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9576 (unset_tdesc_cmd): Remove.
9577 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9578 add_show_prefix_cmd.
9579 * symtab.c (info_module_command): Remove.
9580 (_initialize_symtab): Use add_basic_prefix_cmd.
9581 * symfile.c (overlay_command): Remove.
9582 (_initialize_symfile): Use add_basic_prefix_cmd.
9583 * sparc64-tdep.c (info_adi_command): Remove.
9584 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9585 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9586 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9587 add_show_prefix_cmd.
9588 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9589 (_initialize_serial): Use add_basic_prefix_cmd,
9590 add_show_prefix_cmd.
9591 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9592 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9593 add_show_prefix_cmd.
9594 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9595 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9596 add_show_prefix_cmd.
9597 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9598 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9599 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9600 add_show_prefix_cmd.
9601 * remote.c (remote_command, set_remote_cmd): Remove.
9602 (_initialize_remote): Use add_basic_prefix_cmd.
9603 * record-full.c (set_record_full_command)
9604 (show_record_full_command): Remove.
9605 (_initialize_record_full): Use add_basic_prefix_cmd,
9606 add_show_prefix_cmd.
9607 * record-btrace.c (cmd_set_record_btrace)
9608 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9609 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9610 (cmd_show_record_btrace_pt): Remove.
9611 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9612 add_show_prefix_cmd.
9613 * ravenscar-thread.c (set_ravenscar_command)
9614 (show_ravenscar_command): Remove.
9615 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9616 add_show_prefix_cmd.
9617 * mips-tdep.c (show_mips_command, set_mips_command)
9618 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9619 add_show_prefix_cmd.
9620 * maint.c (maintenance_command, maintenance_info_command)
9621 (maintenance_check_command, maintenance_print_command)
9622 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9623 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9624 add_show_prefix_cmd.
9625 (show_per_command_cmd): Remove.
9626 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9627 Remove.
9628 (maintenance_show_test_settings_cmd): Remove.
9629 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9630 add_show_prefix_cmd.
9631 * maint-test-options.c (maintenance_test_options_command):
9632 Remove.
9633 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9634 * macrocmd.c (macro_command): Remove
9635 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9636 * language.c (set_check, show_check): Remove.
9637 (_initialize_language): Use add_basic_prefix_cmd,
9638 add_show_prefix_cmd.
9639 * infcmd.c (unset_command): Remove.
9640 (_initialize_infcmd): Use add_basic_prefix_cmd.
9641 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9642 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9643 add_show_prefix_cmd.
9644 * go32-nat.c (go32_info_dos_command): Remove.
9645 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9646 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9647 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9648 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9649 (_initialize_frame): Use add_basic_prefix_cmd,
9650 add_show_prefix_cmd.
9651 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9652 (_initialize_dcache): Use add_basic_prefix_cmd,
9653 add_show_prefix_cmd.
9654 * cp-support.c (maint_cplus_command): Remove.
9655 (_initialize_cp_support): Use add_basic_prefix_cmd.
9656 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9657 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9658 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9659 add_basic_prefix_cmd, add_show_prefix_cmd.
9660 * breakpoint.c (save_command): Remove.
9661 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9662 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9663 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9664 add_show_prefix_cmd.
9665 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9666 (set_ada_command, show_ada_command): Remove.
9667 (_initialize_ada_language): Use add_basic_prefix_cmd,
9668 add_show_prefix_cmd.
9669 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9670
3557f442
KR
96712020-04-16 Kamil Rytarowski <n54@gmx.com>
9672
9673 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9674 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9675
16197208
SM
96762020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9677
9678 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9679 warning messages.
9680
00ac85d3
SM
96812020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9682
9683 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9684 import table is not at beginning of .idata section.
9685
381ce63f
PA
96862020-04-16 Pedro Alves <palves@redhat.com>
9687
9688 * inferior.c (delete_inferior): Use delete operator directly
9689 instead of delete_program_space.
9690 * progspace.c (add_program_space): New, factored out from
9691 program_space::program_space.
9692 (remove_program_space): New, factored out from
9693 delete_program_space.
9694 (program_space::program_space): Remove intro comment. Rewrite.
9695 (program_space::~program_space): Remove intro comment. Call
9696 remove_program_space.
9697 (delete_program_space): Delete.
9698 * progspace.h (program_space::program_space): Make explicit. Move
9699 intro comment here, adjusted.
9700 (program_space::~program_space): Move intro comment here,
9701 adjusted.
9702 (delete_program_space): Remove.
9703
a010605f
TT
97042020-04-16 Tom Tromey <tromey@adacore.com>
9705
9706 * windows-nat.c (windows_nat::handle_access_violation): New
9707 function.
9708 * nat/windows-nat.h (handle_access_violation): Declare.
9709 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9710 windows-nat.c. Call handle_access_violation.
9711
efba5c23
TV
97122020-04-16 Tom de Vries <tdevries@suse.de>
9713
9714 PR symtab/25791
9715 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9716 CUs without psymtab.
9717
97ed802d
KB
97182020-04-16 Kevin Buettner <kevinb@redhat.com>
9719
9720 * python/python.c (do_start_initialization): Don't call
9721 PyEval_InitThreads for Python 3.9 and beyond.
9722
c7d64809
KR
97232020-04-15 Kamil Rytarowski <n54@gmx.com>
9724
9725 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9726 thread functions.
9727 (obsd_nat_target::wait): Likewise.
9728
ce127a96
TT
97292020-04-15 Tom Tromey <tromey@adacore.com>
9730
9731 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9732 (DEBUG_EXCEPT): Use debug_printf.
9733
99f1bc6a
AB
97342020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * completer.c (class completion_tracker::completion_hash_entry)
9737 <hash_name>: New member function.
9738 (completion_tracker::discard_completions): New callback to hash a
9739 completion_hash_entry, pass this to htab_create_alloc.
9740
a0e9b532
JT
97412016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9742
9743 * windows-nat.c (windows_make_so): Warn rather than stopping with
9744 an error if realpath() fails.
9745
06ca5dd4
KR
97462020-04-14 Kamil Rytarowski <n54@gmx.com>
9747
9748 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9749 (nbsd_nat_target::info_proc): Add do_status.
9750
194d088f
TV
97512020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9752 Tom de Vries <tdevries@suse.de>
9753
9754 PR symtab/25718
9755 * psympriv.h (struct partial_symtab::read_symtab)
9756 (struct partial_symtab::expand_psymtab)
9757 (struct partial_symtab::read_dependencies): Update comments.
9758 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9759 read_symtab for includer.
9760 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9761 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9762 (struct dwarf2_include_psymtab::m_readin): Remove.
9763 (struct dwarf2_include_psymtab::includer): New member function.
9764 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9765
c1a66c06
TV
97662020-04-14 Tom de Vries <tdevries@suse.de>
9767
9768 PR symtab/25720
9769 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9770 with NULL symbol_matcher and lookup_name.
9771 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9772 and lookup_name.
9773 * dwarf2/read.c (dw2_expand_symtabs_matching)
9774 (dw2_debug_names_expand_symtabs_matching): Same.
9775 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9776 Make lookup_name a pointer. Update comment.
9777 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9778 lookup_name being a pointer.
9779 * symfile.c (expand_symtabs_matching): Same.
9780 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9781 * linespec.c (iterate_over_all_matching_symtabs): Same.
9782
400b5eca
TT
97832020-04-13 Tom Tromey <tom@tromey.com>
9784
9785 * run-on-main-thread.c: Update include.
9786 * unittests/main-thread-selftests.c: Update include.
9787 * tui/tui-win.c: Update include.
9788 * tui/tui-io.c: Update include.
9789 * tui/tui-interp.c: Update include.
9790 * tui/tui-hooks.c: Update include.
9791 * top.h: Update include.
9792 * top.c: Update include.
9793 * ser-base.c: Update include.
9794 * remote.c: Update include.
9795 * remote-notif.c: Update include.
9796 * remote-fileio.c: Update include.
9797 * record-full.c: Update include.
9798 * record-btrace.c: Update include.
9799 * python/python.c: Update include.
9800 * posix-hdep.c: Update include.
9801 * mingw-hdep.c: Update include.
9802 * mi/mi-main.c: Update include.
9803 * mi/mi-interp.c: Update include.
9804 * main.c: Update include.
9805 * linux-nat.c: Update include.
9806 * interps.c: Update include.
9807 * infrun.c: Update include.
9808 * inf-loop.c: Update include.
9809 * event-top.c: Update include.
9810 * event-loop.c: Move to ../gdbsupport/.
9811 * event-loop.h: Move to ../gdbsupport/.
9812 * async-event.h: Update include.
9813 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9814
93b54c8e
TT
98152020-04-13 Tom Tromey <tom@tromey.com>
9816
9817 * tui/tui-win.c: Include async-event.h.
9818 * remote.c: Include async-event.h.
9819 * remote-notif.c: Include async-event.h.
9820 * record-full.c: Include async-event.h.
9821 * record-btrace.c: Include async-event.h.
9822 * infrun.c: Include async-event.h.
9823 * event-top.c: Include async-event.h.
9824 * event-loop.h: Move some declarations to async-event.h.
9825 * event-loop.c: Don't include ser-event.h or top.h. Move some
9826 code to async-event.c.
9827 * async-event.h: New file.
9828 * async-event.c: New file.
9829 * Makefile.in (COMMON_SFILES): Add async-event.c.
9830 (HFILES_NO_SRCDIR): Add async-event.h.
9831
c1cd3163
TT
98322020-04-13 Tom Tromey <tom@tromey.com>
9833
9834 * utils.c (flush_streams): New function.
9835 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9836
29f2bf4f
TT
98372020-04-13 Tom Tromey <tom@tromey.com>
9838
9839 * event-loop.c (handle_file_event): Use warning, not
9840 printf_unfiltered.
9841
98029d02
TT
98422020-04-13 Tom Tromey <tom@tromey.com>
9843
9844 * event-loop.c: Include <chrono>.
9845
06cc9596
TT
98462020-04-13 Tom Tromey <tom@tromey.com>
9847
9848 * gdb_select.h: Move to ../gdbsupport/.
9849 * event-loop.c: Update include path.
9850 * top.c: Update include path.
9851 * ser-base.c: Update include path.
9852 * ui-file.c: Update include path.
9853 * ser-tcp.c: Update include path.
9854 * guile/scm-ports.c: Update include path.
9855 * posix-hdep.c: Update include path.
9856 * ser-unix.c: Update include path.
9857 * gdb_usleep.c: Update include path.
9858 * mingw-hdep.c: Update include path.
9859 * inflow.c: Update include path.
9860 * infrun.c: Update include path.
9861 * event-top.c: Update include path.
9862
8ae8e197
TT
98632020-04-13 Tom Tromey <tom@tromey.com>
9864
9865 * configure: Rebuild.
9866 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9867
58cf28e8
TT
98682020-04-13 Tom Tromey <tom@tromey.com>
9869
9870 * event-loop.h (start_event_loop): Don't declare.
9871 * event-loop.c (start_event_loop): Move...
9872 * main.c (start_event_loop): ...here. Now static.
9873
b7f999ae
SDJ
98742020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9875
9876 * MAINTAINERS: Update my email address.
9877
1085dfd4
KR
98782020-04-12 Kamil Rytarowski <n54@gmx.com>
9879
9880 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9881 IP_ALL.
9882
49d1d1f5
KR
98832020-04-12 Kamil Rytarowski <n54@gmx.com>
9884
9885 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9886 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9887
b4848d2a
KR
98882020-04-12 Kamil Rytarowski <n54@gmx.com>
9889
9890 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9891 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9892
51c133d5
KR
98932020-04-12 Kamil Rytarowski <n54@gmx.com>
9894
9895 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9896
54b8cbd0
KR
98972020-04-11 Kamil Rytarowski <n54@gmx.com>
9898
9899 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9900 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9901 (nbsd_nat_target::info_proc): New functions.
9902 * nbsd-nat.c (kinfo_get_vmmap): New function.
9903 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9904 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9905 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9906 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9907 functions.
9908 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9909 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9910 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9911 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9912 (KINFO_VME_FLAG_GROWS_DOWN): New.
9913
cf83625d
AS
99142020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9915
9916 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9917 bit shift.
9918
0c4311ab
TT
99192020-04-10 Tom Tromey <tromey@adacore.com>
9920
9921 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9922
3e65b3e9
TT
99232020-04-10 Tom Tromey <tromey@adacore.com>
9924
9925 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9926 separate debug files.
9927
13302e95
HD
99282020-04-10 Hannes Domani <ssbssa@yahoo.de>
9929
9930 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9931 Move to...
9932 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9933 ... here.
9934 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9935 Check for STATUS_WX86_BREAKPOINT.
9936 (windows_nat_target::wait): Same.
9937
bdfc1e8a
TV
99382020-04-10 Tom de Vries <tdevries@suse.de>
9939
9940 PR cli/25808
9941 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9942
f4460aec
SM
99432020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9946 (Write After Approval): Remove Tom de Vries.
9947
a25198bb
BE
99482020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9949
9950 revert partially:
9951 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9952
aac66a4c
SM
9953 * buildsym.c (record_line): Fix undefined behavior and preserve
9954 lines at eof.
a25198bb 9955
206c98a6
KR
99562020-04-09 Kamil Rytarowski <n54@gmx.com>
9957
9958 * auxv.h (svr4_auxv_parse): New.
9959 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9960 and generic_auxv_parse.
9961 (svr4_auxv_parse): Add.
9962 * obsd-tdep.c: Include "auxv.h".
9963 (obsd_auxv_parse): Remove.
9964 (obsd_init_abi): Remove comment.
9965 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9966 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9967 * nbsd-tdep.c: Include "auxv.h".
9968 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9969
71fbdbaf
TT
99702020-04-08 Tom Tromey <tromey@adacore.com>
9971
9972 * nat/windows-nat.h (last_wait_event): Don't declare.
9973 (wait_for_debug_event): Update comment.
9974 * nat/windows-nat.c (last_wait_event): Now static.
9975
2c1d95e8
TT
99762020-04-08 Tom Tromey <tromey@adacore.com>
9977
9978 * windows-nat.c (wait_for_debug_event): Move to
9979 nat/windows-nat.c.
9980 * nat/windows-nat.h (wait_for_debug_event): Declare.
9981 * nat/windows-nat.c (wait_for_debug_event): Move from
9982 windows-nat.c. No longer static.
9983
d2977bc4
TT
99842020-04-08 Tom Tromey <tromey@adacore.com>
9985
9986 * windows-nat.c (get_windows_debug_event): Use
9987 fetch_pending_stop.
9988 * nat/windows-nat.h (fetch_pending_stop): Declare.
9989 * nat/windows-nat.c (fetch_pending_stop): New function.
9990
e758e19c
TT
99912020-04-08 Tom Tromey <tromey@adacore.com>
9992
9993 * windows-nat.c (windows_continue): Use matching_pending_stop and
9994 continue_last_debug_event.
9995 * nat/windows-nat.h (matching_pending_stop)
9996 (continue_last_debug_event): Declare.
9997 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9998 (matching_pending_stop, continue_last_debug_event): New
9999 functions.
10000
8d30e395
TT
100012020-04-08 Tom Tromey <tromey@adacore.com>
10002
10003 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10004 (handle_exception_result): Move to nat/windows-nat.h.
10005 (DEBUG_EXCEPTION_SIMPLE): Remove.
10006 (windows_nat::handle_ms_vc_exception): New function.
10007 (handle_exception): Move to nat/windows-nat.c.
10008 (get_windows_debug_event): Update.
10009 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10010 nat/windows-nat.c.
10011 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10012 (handle_exception_result): Move from windows-nat.c.
10013 (handle_exception): Declare.
10014 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10015 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10016 windows-nat.c.
10017
29de418d
TT
100182020-04-08 Tom Tromey <tromey@adacore.com>
10019
10020 * windows-nat.c (exception_count, event_count): Remove.
10021 (handle_exception, get_windows_debug_event)
10022 (do_initial_windows_stuff): Update.
10023
a816ba18
TT
100242020-04-08 Tom Tromey <tromey@adacore.com>
10025
10026 * windows-nat.c (windows_nat::handle_load_dll)
10027 (windows_nat::handle_unload_dll): Rename. No longer static.
10028 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10029 Declare.
10030
a00caa12
TT
100312020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * complaints.h (stop_whining): Declare at top-level.
10034 (complaint): Don't declare stop_whining.
10035
d41b524f
TT
100362020-04-08 Tom Tromey <tromey@adacore.com>
10037
10038 * windows-nat.c (windows_nat::handle_output_debug_string):
10039 Rename. No longer static.
10040 * nat/windows-nat.h (handle_output_debug_string): Declare.
10041
3c76026d
TT
100422020-04-08 Tom Tromey <tromey@adacore.com>
10043
10044 * windows-nat.c (current_process_handle, current_process_id)
10045 (main_thread_id, last_sig, current_event, last_wait_event)
10046 (current_windows_thread, desired_stop_thread_id, pending_stops)
10047 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10048 (display_selectors, fake_create_process)
10049 (get_windows_debug_event): Update.
10050 * nat/windows-nat.h (current_process_handle, current_process_id)
10051 (main_thread_id, last_sig, current_event, last_wait_event)
10052 (current_windows_thread, desired_stop_thread_id, pending_stops)
10053 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10054 * nat/windows-nat.c (current_process_handle, current_process_id)
10055 (main_thread_id, last_sig, current_event, last_wait_event)
10056 (current_windows_thread, desired_stop_thread_id, pending_stops)
10057 (siginfo_er): New globals. Move from windows-nat.c.
10058
9d8679cc
TT
100592020-04-08 Tom Tromey <tromey@adacore.com>
10060
10061 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10062 (handle_load_dll): Update.
10063 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10064
28688adf
TT
100652020-04-08 Tom Tromey <tromey@adacore.com>
10066
10067 * windows-nat.c (enum thread_disposition_type): Move to
10068 nat/windows-nat.h.
10069 (windows_nat::thread_rec): Rename from thread_rec. No longer
10070 static.
10071 (windows_add_thread, windows_nat_target::fetch_registers)
10072 (windows_nat_target::store_registers, handle_exception)
10073 (windows_nat_target::resume, get_windows_debug_event)
10074 (windows_nat_target::get_tib_address)
10075 (windows_nat_target::thread_name)
10076 (windows_nat_target::thread_alive): Update.
10077 * nat/windows-nat.h (enum thread_disposition_type): Move from
10078 windows-nat.c.
10079 (thread_rec): Declare.
10080
4834dad0
TT
100812020-04-08 Tom Tromey <tromey@adacore.com>
10082
10083 * windows-nat.c: Add "using namespace".
10084 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10085 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10086
65bafd5b
TT
100872020-04-08 Tom Tromey <tromey@adacore.com>
10088
10089 * nat/windows-nat.h (struct windows_thread_info): Declare
10090 destructor.
10091 * nat/windows-nat.c (~windows_thread_info): New.
10092
0a4afda3
TT
100932020-04-08 Tom Tromey <tromey@adacore.com>
10094
10095 PR gdb/22992
10096 * windows-nat.c (current_event): Update comment.
10097 (last_wait_event, desired_stop_thread_id): New globals.
10098 (struct pending_stop): New.
10099 (pending_stops): New global.
10100 (windows_nat_target) <stopped_by_sw_breakpoint>
10101 <supports_stopped_by_sw_breakpoint>: New methods.
10102 (windows_fetch_one_register): Add assertions. Adjust PC.
10103 (windows_continue): Handle pending stops. Suspend other threads
10104 when stepping. Use last_wait_event
10105 (wait_for_debug_event): New function.
10106 (get_windows_debug_event): Use wait_for_debug_event. Handle
10107 pending stops. Queue spurious stops.
10108 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10109 (windows_nat_target::kill): Use wait_for_debug_event.
10110 * nat/windows-nat.h (struct windows_thread_info)
10111 <stopped_at_software_breakpoint>: New field.
10112 * nat/windows-nat.c (windows_thread_info::resume): Clear
10113 stopped_at_software_breakpoint.
10114
8e61ebec
TT
101152020-04-08 Tom Tromey <tromey@adacore.com>
10116
10117 * windows-nat.c (enum thread_disposition_type): New.
10118 (thread_rec): Replace "get_context" parameter with "disposition";
10119 change type.
10120 (windows_add_thread, windows_nat_target::fetch_registers)
10121 (windows_nat_target::store_registers, handle_exception)
10122 (windows_nat_target::resume, get_windows_debug_event)
10123 (windows_nat_target::get_tib_address)
10124 (windows_nat_target::thread_name)
10125 (windows_nat_target::thread_alive): Update.
10126
98a03287
TT
101272020-04-08 Tom Tromey <tromey@adacore.com>
10128
10129 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10130 (windows_continue): Use windows_continue::resume.
10131 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10132 resume>: Declare new methods.
10133 * nat/windows-nat.c: New file.
10134 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10135
7c7411bc
TT
101362020-04-08 Tom Tromey <tromey@adacore.com>
10137
10138 * windows-nat.c (windows_add_thread, windows_delete_thread)
10139 (windows_nat_target::fetch_registers)
10140 (windows_nat_target::store_registers, fake_create_process)
10141 (windows_nat_target::resume, windows_nat_target::resume)
10142 (get_windows_debug_event, windows_nat_target::wait)
10143 (windows_nat_target::pid_to_str)
10144 (windows_nat_target::get_tib_address)
10145 (windows_nat_target::get_ada_task_ptid)
10146 (windows_nat_target::thread_name)
10147 (windows_nat_target::thread_alive): Use lwp, not tid.
10148
2950fdf7
TT
101492020-04-08 Tom Tromey <tromey@adacore.com>
10150
10151 * windows-nat.c (handle_exception)
10152 (windows_nat_target::thread_name): Update.
10153 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10154 <name>: Now unique_xmalloc_ptr.
10155
62fe396b
TT
101562020-04-08 Tom Tromey <tromey@adacore.com>
10157
10158 * windows-nat.c (thread_rec)
10159 (windows_nat_target::fetch_registers): Update.
10160 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10161 Update comment.
10162 <debug_registers_changed, reload_context>: Now bool.
10163
e9534bd2
TT
101642020-04-08 Tom Tromey <tromey@adacore.com>
10165
10166 * windows-nat.c (windows_add_thread): Use new.
10167 (windows_init_thread_list, windows_delete_thread): Use delete.
10168 (get_windows_debug_event): Update.
10169 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10170 destructor, and initializers.
10171
ae1f8880
TT
101722020-04-08 Tom Tromey <tromey@adacore.com>
10173
10174 * windows-nat.c (struct windows_thread_info): Remove.
10175 * nat/windows-nat.h: New file.
10176
55a1e039
TT
101772020-04-08 Tom Tromey <tromey@adacore.com>
10178
10179 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10180 (thread_rec, windows_add_thread, windows_delete_thread)
10181 (windows_continue): Update.
10182
93366324
TT
101832020-04-08 Tom Tromey <tromey@adacore.com>
10184
10185 * windows-nat.c (struct windows_thread_info): Remove typedef.
10186 (thread_head): Remove.
10187 (thread_list): New global.
10188 (thread_rec, windows_add_thread, windows_init_thread_list)
10189 (windows_delete_thread, windows_continue): Update.
10190
0f2265e2
SM
101912020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10192
10193 * windows-tdep.h (windows_init_abi): Add comment.
10194 (cygwin_init_abi): New declaration.
10195 * windows-tdep.c: Split signal enumeration in two, one for
10196 Windows and one for Cygwin.
10197 (windows_gdb_signal_to_target): Only deal with signal of the
10198 Windows OS ABI.
10199 (cygwin_gdb_signal_to_target): New function.
10200 (windows_init_abi): Rename to windows_init_abi_common, don't set
10201 gdb_signal_to_target gdbarch method. Add new new function with
10202 this name.
10203 (cygwin_init_abi): New function.
10204 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10205 comment. Don't call windows_init_abi.
10206 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10207 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10208 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10209 i386_windows_init_abi_common, don't call windows_init_abi. Add
10210 a new function of this name.
10211 (i386_cygwin_init_abi): New function.
10212 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10213 OS ABI Cygwin.
10214
3810f182
SM
102152020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10218 parameter.c.
10219 (dwarf2_read_gdb_index): Update.
10220
063f8e80
KR
102212020-04-07 Kamil Rytarowski <n54@gmx.com>
10222
10223 * nbsd-tdep.c: Include "objfiles.h".
10224 (nbsd_skip_solib_resolver): New.
10225 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10226
85a9510c 102272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10228
10229 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10230 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10231 with DW_LLE_base_addressx are being emitted in DWARFv5.
10232 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10233 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10234 unsigned integer.
10235
9fc3eaae 102362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10237
10238 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10239 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10240 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10241 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10242 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10243 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10244 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10245
10246
41144253 102472020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10248
10249 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10250 (read_loclist_index): New function definition.
10251 (lookup_loclist_base): New function definition.
10252 (read_loclist_header): New function definition.
10253 (dwarf2_cu): Add loclist_base and loclist_header field.
10254 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10255 (read_full_die_1): Read the value of DW_AT_loclists_base.
10256 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10257 (read_attribute_value): Handle DW_FORM_loclistx.
10258 (skip_one_die): Handle DW_FORM_loclistx.
10259 (loclist_header): New structure declaration.
10260 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10261
9f4e76a4
SM
102622020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10263
10264 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10265 constructor. Remove `addr` parameter from other constructor and
10266 add `per_cu` parameter.
10267 * dwarf2/read.c (create_partial_symtab): Update.
10268
25c11aca
TV
102692020-04-07 Tom de Vries <tdevries@suse.de>
10270
10271 PR symtab/25796
10272 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10273 (partial_die_info::fixup): Inherit has_const_value.
10274
5707e24b
TV
102752020-04-07 Tom de Vries <tdevries@suse.de>
10276
10277 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10278 symbols without address.
10279
05f00e22
KR
102802020-04-06 Kamil Rytarowski <n54@gmx.com>
10281
10282 * nbsd-nat.h (struct thread_info): Add forward declaration.
10283 (nbsd_nat_target::thread_alive): Add.
10284 (nbsd_nat_target::thread_name): Likewise.
10285 (nbsd_nat_target::update_thread_list): Likewise.
10286 (update_thread_list::post_attach): Likewise.
10287 (post_attach::pid_to_str): Likewise.
10288 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10289 (nbsd_thread_lister): Add.
10290 (nbsd_nat_target::thread_alive): Likewise.
10291 (nbsd_nat_target::thread_name): Likewise.
10292 (nbsd_add_threads): Likewise.
10293 (update_thread_list::post_attach): Likewise.
10294 (nbsd_nat_target::update_thread_list): Likewise.
10295 (post_attach::pid_to_str): Likewise.
10296
6ee448cc
TT
102972020-04-06 Tom Tromey <tromey@adacore.com>
10298
10299 * ada-valprint.c (print_variant_part): Extract the variant field.
10300 (print_field_values): Use the field as the outer value when
10301 recursing.
10302
dea34e8c
TT
103032020-04-06 Tom Tromey <tromey@adacore.com>
10304
10305 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10306 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10307 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10308 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10309 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10310
93689ce9
TT
103112020-04-06 Tom Tromey <tromey@adacore.com>
10312
10313 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10314 TYPE_CODE_ERROR.
10315
79743962
KR
103162020-04-06 Kamil Rytarowski <n54@gmx.com>
10317
10318 * nbsd-tdep.c: Include "gdbarch.h".
10319 Define enum with NetBSD signal numbers.
10320 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10321 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10322 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10323 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10324 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10325 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10326 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10327 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10328 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10329 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10330 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10331 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10332
9e7c9a03
HD
103332020-04-03 Hannes Domani <ssbssa@yahoo.de>
10334
10335 PR gdb/25325
10336 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10337
d9e49b61
TT
103382020-04-03 Tom Tromey <tromey@adacore.com>
10339
10340 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10341 Read constant block.
10342
e0fc5c3f
SM
103432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10344
10345 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10346 (gdb_bfd_get_full_section_contents): New declaration.
10347 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10348 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10349 gdb_bfd_get_full_section_contents.
10350
e2ff18a0
SM
103512020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10352
10353 * exec.c (build_section_table): Replace internal_error with
10354 gdb_assert.
10355 (section_table_xfer_memory_partial): Likewise.
10356 * mdebugread.c (parse_partial_symbols): Likewise.
10357 * psymtab.c (lookup_partial_symbol): Likewise.
10358 * utils.c (wrap_here): Likewise.
10359
0830d301
TT
103602020-04-02 Tom Tromey <tromey@adacore.com>
10361
10362 * f-lang.c (build_fortran_types): Use arch_type to initialize
10363 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10364
e7da7f8f
TT
103652020-04-02 Tom Tromey <tromey@adacore.com>
10366
10367 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10368 of attributes.
10369
c90d28ac
AB
103702020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10371 Bernd Edlinger <bernd.edlinger@hotmail.de>
10372 Tom Tromey <tromey@adacore.com>
10373
10374 * buildsym.c (buildsym_compunit::record_line): Remove
10375 deduplication code.
10376
1aa98955
TV
103772020-04-02 Tom de Vries <tdevries@suse.de>
10378
10379 PR ada/24671
10380 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10381
d3214198
TV
103822020-04-02 Tom de Vries <tdevries@suse.de>
10383
10384 * dwarf2/read.c (dwarf2_gdb_index_functions,
10385 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10386 NULL.
10387 * psymtab.c (psym_lookup_global_symbol_language): New function.
10388 (psym_functions): Init psym_lookup_global_symbol_language with
10389 psym_lookup_global_symbol_language.
10390 * symfile-debug.c (debug_sym_quick_functions): Init
10391 lookup_global_symbol_language with NULL.
10392 * symfile.c (set_initial_language): Remove fixme comment.
10393 * symfile.h (struct quick_symbol_functions): Add
10394 lookup_global_symbol_language.
10395 * symtab.c (find_quick_global_symbol_language): New function.
10396 (find_main_name): Use find_quick_global_symbol_language.
10397
2836752f
SM
103982020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10401
64dc2d4b
BE
104022020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10403
10404 * buildsym.c (record_line): Fix undefined behavior and preserve
10405 lines at eof.
10406
bbe3dc41
BE
104072020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10408
10409 * buildsym.c (record_line): Fix the resizing condition.
10410
6b4a335b
TT
104112020-04-01 Tom Tromey <tom@tromey.com>
10412
10413 * value.h (value_literal_complex): Add comment.
10414 * valops.c (value_literal_complex): Refer to value.h.
10415
3638a098
TT
104162020-04-01 Tom Tromey <tom@tromey.com>
10417
10418 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10419 (scalar_type): New rule, from typebase.
10420 (typebase): Use scalar_type. Recognize complex types.
10421 (field_name): Handle FLOAT_KEYWORD.
10422 (ident_tokens): Add _Complex and __complex__.
10423
c34e8714
TT
104242020-04-01 Tom Tromey <tom@tromey.com>
10425
10426 PR exp/25299:
10427 * valarith.c (promotion_type, complex_binop): New functions.
10428 (scalar_binop): Handle complex numbers. Use promotion_type.
10429 (value_pos, value_neg, value_complement): Handle complex numbers.
10430
fa649bb7
TT
104312020-04-01 Tom Tromey <tom@tromey.com>
10432
10433 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10434 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10435 (parse_number): Handle complex numbers.
10436
981c08ce
TT
104372020-04-01 Tom Tromey <tom@tromey.com>
10438
10439 * c-valprint.c (c_decorations): Change complex suffix to "i".
10440
4c99290d
TT
104412020-04-01 Tom Tromey <tom@tromey.com>
10442
10443 * valprint.c (generic_value_print_complex): Use accessors.
10444 * value.h (value_real_part, value_imaginary_part): Declare.
10445 * valops.c (value_real_part, value_imaginary_part): New
10446 functions.
10447 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10448
5b930b45
TT
104492020-04-01 Tom Tromey <tom@tromey.com>
10450
10451 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10452 (read_range_type): Update.
10453 * mdebugread.c (basic_type): Update.
10454 * go-lang.c (build_go_types): Use init_complex_type.
10455 * gdbtypes.h (struct main_type) <complex_type>: New member.
10456 (init_complex_type): Update.
10457 (arch_complex_type): Don't declare.
10458 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10459 Make name if none given. Use alloc_type_copy. Look for cached
10460 complex type.
10461 (arch_complex_type): Remove.
10462 (gdbtypes_post_init): Use init_complex_type.
10463 * f-lang.c (build_fortran_types): Use init_complex_type.
10464 * dwarf2/read.c (read_base_type): Update.
10465 * d-lang.c (build_d_types): Use init_complex_type.
10466 * ctfread.c (read_base_type): Update.
10467
53cccef1
TBA
104682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10469
10470 * infrun.c (stop_all_threads): Update assertion, plus when
10471 stopping threads, take into account that we might be trying
10472 to stop an all-stop target.
10473 (stop_waiting): Call 'stop_all_threads' if there exists a
10474 non-stop target.
10475
a0714d30
TBA
104762020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10477
10478 * target.h (exists_non_stop_target): New function declaration.
10479 * target.c (exists_non_stop_target): New function.
10480
60e22c1e
HD
104812020-04-01 Hannes Domani <ssbssa@yahoo.de>
10482
10483 PR gdb/24789
10484 * eval.c (is_integral_or_integral_reference): New function.
10485 (evaluate_subexp_standard): Allow integer references in
10486 pointer arithmetic.
10487
e139a727
TBA
104882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10489
10490 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10491 check for no ptid in the stop reply when the target is non-stop.
10492
e0802d59
TT
104932020-04-01 Tom Tromey <tromey@adacore.com>
10494
10495 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10496 "name" parameter to rvalue reference. Initialize m_name_holder.
10497 <lookup_name_info>: New overloads.
10498 <name>: Return gdb::string_view.
10499 <c_str>: New method.
10500 <make_ignore_params>: Update.
10501 <search_name_hash>: Update.
10502 <language_lookup_name>: Return const char *.
10503 <m_name>: Change type.
10504 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10505 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10506 (lookup_name_info::match_any): Update.
10507 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10508 Update.
10509 * minsyms.c (linkage_name_str): Update.
10510 * language.c (default_symbol_name_matcher): Update.
10511 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10512 Update.
10513 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10514 (ada_lookup_name_info::ada_lookup_name_info): Update.
10515 (literal_symbol_name_matcher): Update.
10516
8c072cb6
TT
105172020-04-01 Tom Tromey <tromey@adacore.com>
10518
10519 * psymtab.c (psymtab_search_name): Remove function.
10520 (psym_lookup_symbol): Create search name and lookup name here.
10521 (lookup_partial_symbol): Remove "name" parameter; add
10522 lookup_name.
10523 (psym_expand_symtabs_for_function): Update.
10524
6f29a534
TT
105252020-03-31 Joel Jones <joelkevinjones@gmail.com>
10526
10527 PR tui/25597:
10528 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10529
af62665e
TT
105302020-03-31 Tom Tromey <tromey@adacore.com>
10531
10532 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10533 memcpy.
10534
d1a89da5
NC
105352020-03-30 Nelson Chu <nelson.chu@sifive.com>
10536
10537 * features/riscv/32bit-csr.xml: Regenerated.
10538 * features/riscv/64bit-csr.xml: Regenerated.
10539
d8af9068
TT
105402020-03-30 Tom Tromey <tromey@adacore.com>
10541
10542 * ada-valprint.c (print_variant_part): Update.
10543 * ada-lang.h (ada_which_variant_applies): Update.
10544 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10545 outer_valaddr parameters; replace with "outer" value parameter.
10546 (to_fixed_variant_branch_type): Update.
10547
227c0bf4
PFC
105482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10549
10550 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10551 <list>. Remove inclusion of observable.h.
10552 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10553 (struct arch_lwp_info): New struct.
10554 (class ppc_linux_dreg_interface): New class.
10555 (struct ppc_linux_process_info): New struct.
10556 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10557 <low_new_clone, low_forget_process, low_prepare_to_resume>
10558 <copy_thread_dreg_state, mark_thread_stale>
10559 <mark_debug_registers_changed, register_hw_breakpoint>
10560 <clear_hw_breakpoint, register_wp, clear_wp>
10561 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10562 <num_memory_accesses, get_trigger_type>
10563 <create_watchpoint_request, hwdebug_point_cmp>
10564 <init_arch_lwp_info, get_arch_lwp_info>
10565 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10566 methods.
10567 <struct ptid_hash>: New inner struct.
10568 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10569 members.
10570 (saved_dabr_value, hwdebug_info, max_slots_number)
10571 (struct hw_break_tuple, struct thread_points, ppc_threads)
10572 (have_ptrace_hwdebug_interface)
10573 (hwdebug_find_thread_points_by_tid)
10574 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10575 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10576 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10577 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10578 use m_dreg_interface.
10579 (hwdebug_point_cmp): Change to...
10580 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10581 reference arguments instead of pointers.
10582 (ppc_linux_nat_target::ranged_break_num_registers): Use
10583 m_dreg_interface.
10584 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10585 m_dreg_interface. Call register_hw_breakpoint.
10586 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10587 m_dreg_interface. Call clear_hw_breakpoint.
10588 (get_trigger_type): Change to...
10589 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10590 comment.
10591 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10592 use m_dreg_interface. Call register_hw_breakpoint.
10593 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10594 use m_dreg_interface. Call clear_hw_breakpoint.
10595 (can_use_watchpoint_cond_accel): Change to...
10596 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10597 method. Update comment, use m_dreg_interface and
10598 m_process_info.
10599 (calculate_dvc): Change to...
10600 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10601 m_dreg_interface.
10602 (num_memory_accesses): Change to...
10603 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10604 (check_condition): Change to...
10605 (ppc_linux_nat_target::check_condition): ...this method.
10606 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10607 comment, use m_dreg_interface.
10608 (create_watchpoint_request): Change to...
10609 (ppc_linux_nat_target::create_watchpoint_request): ...this
10610 method. Use m_dreg_interface.
10611 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10612 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10613 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10614 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10615 (ppc_linux_nat_target::low_forget_process)
10616 (ppc_linux_nat_target::low_new_fork)
10617 (ppc_linux_nat_target::low_new_clone)
10618 (ppc_linux_nat_target::low_delete_thread)
10619 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10620 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10621 only call mark_thread_stale.
10622 (ppc_linux_thread_exit): Remove.
10623 (ppc_linux_nat_target::stopped_data_address): Change to...
10624 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10625 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10626 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10627 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10628 comment. Call low_stopped_data_address.
10629 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10630 m_dreg_interface.
10631 (ppc_linux_nat_target::masked_watch_num_registers): Use
10632 m_dreg_interface.
10633 (ppc_linux_nat_target::copy_thread_dreg_state)
10634 (ppc_linux_nat_target::mark_thread_stale)
10635 (ppc_linux_nat_target::mark_debug_registers_changed)
10636 (ppc_linux_nat_target::register_hw_breakpoint)
10637 (ppc_linux_nat_target::clear_hw_breakpoint)
10638 (ppc_linux_nat_target::register_wp)
10639 (ppc_linux_nat_target::clear_wp)
10640 (ppc_linux_nat_target::init_arch_lwp_info)
10641 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10642 (_initialize_ppc_linux_nat): Remove observer callback.
10643
4db10d8f
PFC
106442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10645
10646 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10647 (ppc_linux_nat_target::auxv_parse)
10648 (ppc_linux_nat_target::read_description)
10649 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10650 Move up.
10651
1310c1b0
PFC
106522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10653
10654 * linux-nat.h (low_new_clone): New method.
10655 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10656
69b037c3
SM
106572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10658
10659 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10660 (dbx_expand_psymtab): ... this.
10661 (start_psymtab): Update.
10662 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10663 (mdebug_expand_psymtab): ... this.
10664 (parse_partial_symbols): Update.
10665 (new_psymtab): Update.
10666 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10667 (xcoff_expand_psymtab): ... this.
10668 (xcoff_start_psymtab): Update.
10669
48993951
SM
106702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10671
10672 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10673 <expand_dependencies>: ... this.
10674 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10675 (partial_symtab::expand_dependencies): ... this.
10676 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10677 Update.
10678 (dwarf2_psymtab::expand_psymtab): Update.
10679 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10680 * mdebugread.c (psymtab_to_symtab_1): Update.
10681 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10682
3ad83046
SM
106832020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10684
10685 * psympriv.h (discard_psymtab): Remove.
10686 * dbxread.c (dbx_end_psymtab): Update.
10687 * xcoffread.c (xcoff_end_psymtab): Update.
10688
4d1b9ab6
TT
106892020-03-28 Tom Tromey <tom@tromey.com>
10690
10691 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10692 comment.
10693
f1749218
TT
106942020-03-28 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10697
ebea7626
HD
106982020-03-27 Hannes Domani <ssbssa@yahoo.de>
10699
10700 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10701
a879b4d5
JB
107022020-03-26 John Baldwin <jhb@FreeBSD.org>
10703
10704 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10705
0826b30a
TT
107062020-03-26 Tom Tromey <tom@tromey.com>
10707
10708 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10709 (mark_common_block_symbol_computed, read_tag_string_type)
10710 (attr_to_dynamic_prop, read_subrange_type): Update.
10711 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10712 to be methods on struct attribute.
10713 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10714 (read_call_site_scope, partial_die_info::read)
10715 (partial_die_info::read, lookup_die_type, follow_die_ref):
10716 Update.
10717 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10718 from dwarf2_get_ref_die_offset.
10719 (attribute::constant_value): New method, from
10720 dwarf2_get_attr_constant_value.
10721 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10722 Declare method.
10723 <constant_value>: New method.
10724
2b2558bf
TT
107252020-03-26 Tom Tromey <tom@tromey.com>
10726
10727 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10728 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10729 (dwarf_type_encoding_name): Move to stringify.c.
10730 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10731 * dwarf2/stringify.c: New file.
10732 * dwarf2/stringify.h: New file.
10733
eeb64781
TT
107342020-03-26 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10737 Rewrite.
10738
a39fdb41
TT
107392020-03-26 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10742 methods.
10743 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10744 (lookup_ranges_base): Likewise.
10745 (read_cutu_die_from_dwo, read_full_die_1): Update.
10746
436c571c
TT
107472020-03-26 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/read.c (read_import_statement, read_file_scope)
10750 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10751 (read_lexical_block_scope, read_call_site_scope)
10752 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10753 (handle_struct_member_die, process_structure_scope)
10754 (update_enumeration_type_from_children)
10755 (process_enumeration_scope, read_array_type, read_common_block)
10756 (read_namespace, read_module, read_subroutine_type): Update.
10757 (sibling_die): Remove.
10758
052c8bb8
TT
107592020-03-26 Tom Tromey <tom@tromey.com>
10760
10761 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10762 (build_type_psymtabs_reader, read_structure_type)
10763 (read_enumeration_type, read_full_die_1): Update.
10764 (dwarf2_attr_no_follow): Move to die.h.
10765 * dwarf2/die.h (struct die_info) <attr>: New method.
10766
2b24b6e4
TT
107672020-03-26 Tom Tromey <tom@tromey.com>
10768
10769 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10770 <base_address>: Now an optional.
10771 (dwarf2_find_base_address, dwarf2_rnglists_process)
10772 (dwarf2_ranges_process, fill_in_loclist_baton)
10773 (dwarf2_symbol_mark_computed): Update.
10774
c2d50fd0
TT
107752020-03-26 Tom Tromey <tom@tromey.com>
10776
10777 * dwarf2/read.c (struct die_info): Move to die.h.
10778 * dwarf2/die.h: New file.
10779
0df7ad3a
TT
107802020-03-26 Tom Tromey <tom@tromey.com>
10781
10782 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10783 * dwarf2/read.c
10784 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10785 Move to line-header.c.
10786 (read_checked_initial_length_and_offset, read_formatted_entries):
10787 Likewise.
10788 (dwarf_decode_line_header): Split into two.
10789 * dwarf2/line-header.c
10790 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10791 Move from read.c.
10792 (read_checked_initial_length_and_offset, read_formatted_entries):
10793 Likewise.
10794 (dwarf_decode_line_header): New function, split from read.c.
10795
86c0bb4c
TT
107962020-03-26 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10799 Declare method.
10800 * dwarf2/read.c (read_attribute_value): Update.
10801 (dwarf2_per_objfile::read_line_string): Rename from
10802 read_indirect_line_string.
10803 (read_formatted_entries): Update.
10804
2ef46c2f
TT
108052020-03-26 Tom Tromey <tom@tromey.com>
10806
10807 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10808 variable.
10809
4f9c1eda
TT
108102020-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10813 const.
10814 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10815 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10816 parameter const.
10817
5a0e026f
TT
108182020-03-26 Tom Tromey <tom@tromey.com>
10819
10820 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10821 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10822 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10823 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10824
8844c11b
TT
108252020-03-26 Tom Tromey <tom@tromey.com>
10826
10827 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10828 file_names_size, file_full_name, file_file_name>: Use const.
10829 <file_name_at, file_names>: Add const overload.
10830 * dwarf2/line-header.c (line_header::file_file_name)
10831 (line_header::file_full_name): Update.
10832
c90ec28a
TT
108332020-03-26 Tom Tromey <tom@tromey.com>
10834
10835 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10836 (macro_start_file, consume_improper_spaces)
10837 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10838 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10839 (dwarf_decode_macros): Move to macro.c.
10840 * dwarf2/macro.c: New file.
10841 * dwarf2/macro.h: New file.
10842 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10843
4f44ae6c
TT
108442020-03-26 Tom Tromey <tom@tromey.com>
10845
10846 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10847 method.
10848 * dwarf2/section.c: New method. From
10849 read_indirect_string_at_offset_from.
10850 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10851 (read_indirect_string_at_offset_from): Move to section.c.
10852 (read_indirect_string_at_offset): Rewrite.
10853 (read_indirect_line_string_at_offset): Remove.
10854 (read_indirect_string, read_indirect_line_string)
10855 (dwarf_decode_macro_bytes): Update.
10856
a0194fa8
TT
108572020-03-26 Tom Tromey <tom@tromey.com>
10858
10859 * dwarf2/section.h (struct dwarf2_section_info)
10860 <overload_complaint>: Declare.
10861 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10862 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10863 Rename from dwarf2_section_buffer_overflow_complaint.
10864 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10865 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10866
3d27bbdb
TT
108672020-03-26 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10870 Declare.
10871 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10872 Move from read.c.
10873 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10874 to section.c.
10875
9eac9650
TT
108762020-03-26 Tom Tromey <tom@tromey.com>
10877
10878 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10879
bf80d710
TT
108802020-03-26 Tom Tromey <tom@tromey.com>
10881
10882 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10883 "builder".
10884 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10885 parameter.
10886 (dwarf_decode_macros): Update.
10887
0314b390
TT
108882020-03-26 Tom Tromey <tom@tromey.com>
10889
10890 * dwarf2/read.c (read_attribute_value): Update.
10891 (read_indirect_string_from_dwz): Move to dwz.c; change into
10892 method.
10893 (dwarf_decode_macro_bytes): Update.
10894 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10895 * dwarf2/dwz.c: New file.
10896 * Makefile.in (COMMON_SFILES): Add dwz.c.
10897
9fda78b6
TT
108982020-03-26 Tom Tromey <tom@tromey.com>
10899
10900 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10901 * dwarf2/read.c: Add include.
10902 * dwarf2/index-write.c: Add include.
10903 * dwarf2/index-cache.c: Add include.
10904 * dwarf2/dwz.h: New file.
10905
33aa3c10
TT
109062020-03-25 Tom Tromey <tom@tromey.com>
10907
10908 * compile/compile-object-load.c (get_out_value_type): Mention
10909 correct symbol name in error message.
10910
d503b685
HD
109112020-03-25 Hannes Domani <ssbssa@yahoo.de>
10912
10913 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10914
7b1eff95
TV
109152020-03-25 Tom de Vries <tdevries@suse.de>
10916
10917 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10918 * symmisc.c (dump_symtab_1): Print user and includes fields.
10919 (maintenance_info_symtabs): Same.
10920
dd895392
AB
109212020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 PR gdb/25534
10924 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10925 (riscv_regcache_cooked_write): New function.
10926 (riscv_push_dummy_call): Use new function.
10927 (riscv_return_value): Likewise.
10928
5ab2fbf1
SM
109292020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10930
10931 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10932 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10933 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10934 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10935 * infrun.c (follow_fork): Likewise.
10936 (follow_fork_inferior): Likewise.
10937 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10938 * linux-nat.h (class linux_nat_target): Likewise.
10939 * remote.c (class remote_target) <follow_fork>: Likewise.
10940 (remote_target::follow_fork): Likewise.
10941 * target-delegates.c: Re-generate.
10942 * target.c (default_follow_fork): Likewise.
10943 (target_follow_fork): Likewise.
10944 * target.h (struct target_ops) <follow_fork>: Likewise.
10945 (target_follow_fork): Likewise.
10946
a64fafb5
TV
109472020-03-24 Tom de Vries <tdevries@suse.de>
10948
10949 * psymtab.c (maintenance_info_psymtabs): Print user field.
10950
fe26d3a3
TT
109512020-03-20 Tom Tromey <tromey@adacore.com>
10952
10953 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10954 const.
10955 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10956 const.
10957
c884cc46
SM
109582020-03-20 Simon Marchi <simon.marchi@efficios.com>
10959
10960 * ptrace.m4: Don't check for ptrace declaration.
10961 * config.in: Re-generate.
10962 * configure: Re-generate.
10963 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10964 not defined.
10965
1ff700c2
KR
109662020-03-20 Kamil Rytarowski <n54@gmx.com>
10967
10968 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10969 `PTRACE_TYPE_RET'.
10970 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10971 * sparc-nat.c (gdb_ptrace): Likewise.
10972 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10973
f7d4f0b1
TT
109742020-03-20 Tom Tromey <tromey@adacore.com>
10975
10976 * c-exp.y (lex_one_token): Fix assert.
10977
f67210ff
TT
109782020-03-20 Tom Tromey <tromey@adacore.com>
10979
10980 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10981 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10982 strncpy call.
10983
1773be9e
TT
109842020-03-20 Tom Tromey <tromey@adacore.com>
10985
10986 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10987
70304be9
TT
109882020-03-20 Tom Tromey <tromey@adacore.com>
10989
10990 * ada-valprint.c (print_variant_part): Remove parameters; switch
10991 to value-based API.
10992 (print_field_values): Likewise.
10993 (ada_val_print_struct_union): Likewise.
10994 (ada_value_print_1): Update.
10995
9faa006d
KR
109962020-03-20 Kamil Rytarowski <n54@gmx.com>
10997
10998 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10999 nbsd_nat_target instead of inf_ptrace_target.
11000 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11001 nbsd_nat_target.
11002
4a90f062
KR
110032020-03-20 Kamil Rytarowski <n54@gmx.com>
11004
11005 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11006 it to the ptrace call.
11007 * (store_registers): Likewise.
11008
110092020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11010
11011 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11012 it to the ptrace call.
11013 * (store_registers): Likewise.
11014
2d07da27
LM
110152020-03-19 Luis Machado <luis.machado@linaro.org>
11016
11017 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11018 valid, fetch vg value from ptrace.
11019
f09db380
KR
110202020-03-19 Kamil Rytarowski <n54@gmx.com>
11021 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11022 * inf-ptrace.c: Likewise.
11023 * (gdb_ptrace): Add.
11024 * (inf_ptrace_target::resume): Update.
11025 * (inf_ptrace_target::xfer_partial): Likewise.
11026 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11027 * (inf_ptrace_peek_poke): Update.
11028
fcc7376e
KR
110292020-03-19 Kamil Rytarowski <n54@gmx.com>
11030
11031 * x86-bsd-nat.c (gdb_ptrace): New.
11032 * (x86bsd_dr_set): Add new argument `ptid'.
11033 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11034 x86bsd_dr_set_addr): Update.
11035
cada5fc9
AB
110362020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11037
11038 * remote.c (remote_target::process_stop_reply): Handle events for
11039 all threads differently.
11040
19a2740f
AB
110412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11042
11043 * completer.c (completion_tracker::remove_completion): Define new
11044 function.
11045 * completer.h (completion_tracker::remove_completion): Declare new
11046 function.
11047 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11048 when adding a C++ function symbol.
11049
724fd9ba
AB
110502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11051
11052 * completer.c (completion_tracker::completion_hash_entry): Define
11053 new class.
11054 (advance_to_filename_complete_word_point): Call
11055 recompute_lowest_common_denominator.
11056 (completion_tracker::completion_tracker): Call discard_completions
11057 to setup the hash table.
11058 (completion_tracker::discard_completions): Allow for being called
11059 from the constructor, pass new equal function, and element deleter
11060 when constructing the hash table. Initialise new class member
11061 variables.
11062 (completion_tracker::maybe_add_completion): Remove use of
11063 m_entries_vec, and store more information into m_entries_hash.
11064 (completion_tracker::recompute_lcd_visitor): New function, most
11065 content taken from...
11066 (completion_tracker::recompute_lowest_common_denominator):
11067 ...here, this now just visits each item in the hash calling the
11068 above visitor.
11069 (completion_tracker::build_completion_result): Remove use of
11070 m_entries_vec, call recompute_lowest_common_denominator.
11071 * completer.h (completion_tracker::have_completions): Remove use
11072 of m_entries_vec.
11073 (completion_tracker::completion_hash_entry): Declare new class.
11074 (completion_tracker::recompute_lowest_common_denominator): Change
11075 function signature.
11076 (completion_tracker::recompute_lcd_visitor): Declare new function.
11077 (completion_tracker::m_entries_vec): Delete.
11078 (completion_tracker::m_entries_hash): Initialize to NULL.
11079 (completion_tracker::m_lowest_common_denominator_valid): New
11080 member variable.
11081 (completion_tracker::m_lowest_common_denominator_max_length): New
11082 member variable.
11083
5a82b8a1
KR
110842020-03-17 Kamil Rytarowski <n54@gmx.com>
11085
11086 * regformats/regdef.h: Put reg in gdb namespace.
11087
fb516a69
KR
110882020-03-17 Kamil Rytarowski <n54@gmx.com>
11089
11090 * i386-bsd-nat.c (gdb_ptrace): New.
11091 * (i386bsd_fetch_inferior_registers,
11092 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11093 * (i386bsd_fetch_inferior_registers,
11094 i386bsd_store_inferior_registers) Use gdb_ptrace.
11095
1c0aa1fb
KR
110962020-03-17 Kamil Rytarowski <n54@gmx.com>
11097
11098 * amd64-bsd-nat.c (gdb_ptrace): New.
11099 * (amd64bsd_fetch_inferior_registers,
11100 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11101 * (amd64bsd_fetch_inferior_registers,
11102 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11103
5ccd2fb7
KR
111042020-03-17 Kamil Rytarowski <n54@gmx.com>
11105
11106 * user-regs.c (user_reg::read): Rename to...
11107 (user_reg::xread): ...this.
11108 * (append_user_reg): Rename argument `read' to `xread'.
11109 * (user_reg_add_builtin): Likewise.
11110 * (user_reg_add): Likewise.
11111 * (value_of_user_reg): Likewise.
11112
2108a63a
KR
111132020-03-17 Kamil Rytarowski <n54@gmx.com>
11114
11115 * sparc-nat.c (gdb_ptrace): New.
11116 * sparc-nat.c (sparc_fetch_inferior_registers)
11117 (sparc_store_inferior_registers) Remove obsolete comment.
11118 * sparc-nat.c (sparc_fetch_inferior_registers)
11119 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11120 * sparc-nat.c (sparc_fetch_inferior_registers)
11121 (sparc_store_inferior_registers) Use gdb_ptrace.
11122
a225c9a8
KR
111232020-03-17 Kamil Rytarowski <n54@gmx.com>
11124
11125 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11126 it to the ptrace call.
11127 * sh-nbsd-nat.c (store_registers): Likewise.
11128
98097623
KR
111292020-03-17 Kamil Rytarowski <n54@gmx.com>
11130
11131 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11132 nbsd_nat_target instead of inf_ptrace_target.
11133 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11134 nbsd_nat_target.
11135
9e38d619
KR
111362020-03-17 Kamil Rytarowski <n54@gmx.com>
11137
11138 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11139
a2ecbe9f
KR
111402020-03-17 Kamil Rytarowski <n54@gmx.com>
11141
11142 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11143 <sys/sysctl.h>.
11144 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11145
58990295
TV
111462020-03-17 Tom de Vries <tdevries@suse.de>
11147
11148 PR gdb/23710
11149 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11150 fields.
11151 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11152 fields.
11153 (process_imported_unit_die): Skip import of c++ CUs.
11154
771dd3a8
TT
111552020-03-16 Tom Tromey <tom@tromey.com>
11156
11157 * p-valprint.c (pascal_object_print_value): Initialize
11158 base_value.
11159
817a7585
AK
111602020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11161 Shahab Vahedi <shahab@synopsys.com>
11162
11163 * Makefile.in: Add arch/arc.o
11164 * configure.tgt: Likewise.
11165 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11166 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11167 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11168 * arc-tdep.h (arc_read_description): Add proto type.
11169 * arch/arc.c: New file.
11170 * arch/arc.h: Likewise.
11171 * features/Makefile: Replace old target descriptions with new.
11172 * features/arc-arcompact.c: Remove.
11173 * features/arc-arcompact.xml: Likewise.
11174 * features/arc-v2.c: Likewise
11175 * features/arc-v2.xml: Likewise
11176 * features/arc/aux-arcompact.xml: New file.
11177 * features/arc/aux-v2.xml: Likewise.
11178 * features/arc/core-arcompact.xml: Likewise.
11179 * features/arc/core-v2.xml: Likewise.
11180 * features/arc/aux-arcompact.c: Generate.
11181 * features/arc/aux-v2.c: Likewise.
11182 * features/arc/core-arcompact.c: Likewise.
11183 * features/arc/core-v2.c: Likewise.
11184 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11185
67430cd0
TT
111862020-03-16 Tom Tromey <tromey@adacore.com>
11187
11188 PR gdb/25663:
11189 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11190 putting value into bcache.
11191
30efb6c7
SM
111922020-03-16 Simon Marchi <simon.marchi@efficios.com>
11193
11194 PR gdb/21500
11195 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11196 to...
11197 (amd64_windows_init_abi_common): ... this. Don't set size of
11198 long type.
11199 (amd64_windows_init_abi): New function.
11200 (amd64_cygwin_init_abi): New function.
11201 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11202 the Cygwin OS ABI.
11203 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11204 comment.
11205
8db52437
SM
112062020-03-16 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11209 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11210 (pe_import_directory_entry): New struct type.
11211 (is_linked_with_cygwin_dll): New function.
11212 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11213 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11214 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11215
5982a56a
SM
112162020-03-16 Simon Marchi <simon.marchi@efficios.com>
11217
11218 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11219 i386_cygwin_core_osabi_sniffer.
11220
7a1998df
SM
112212020-03-16 Simon Marchi <simon.marchi@efficios.com>
11222
11223 * i386-cygwin-tdep.c: Rename to...
11224 * i386-windows-tdep.c: ... this.
11225 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11226 i386-windows-tdep.c.
11227 * configure.tgt: Likewise.
11228
053205cc
SM
112292020-03-16 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11232 * osabi.c (gdb_osabi_names): Add "Windows".
11233 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11234 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11235 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11236 i386_cygwin_osabi_sniffer.
11237 (_initialize_i386_cygwin_tdep): Register OS ABI
11238 GDB_OSABI_WINDOWS for i386.
11239 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11240 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11241 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11242 for x86-64.
11243 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11244 when the target matches '*-*-mingw*'.
11245
fe4b2ee6
SM
112462020-03-16 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * defs.h (enum gdb_osabi): Move to...
11249 * osabi.h (enum gdb_osabi): ... here.
11250 * gdbarch.sh: Include osabi.h in gdbarch.h.
11251 * gdbarch.h: Re-generate.
11252
cb9b645d
SM
112532020-03-16 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11256 function.
11257 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11258
3293bbaf
TT
112592020-03-14 Tom Tromey <tom@tromey.com>
11260
11261 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11262 for C++.
11263 (c_type_print_modifier): Likewise. Add "language" parameter.
11264 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11265 (c_type_print_base_1): Update.
11266 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11267 constants.
11268 * type-stack.c (type_stack::insert): Handle tp_atomic and
11269 tp_restrict.
11270 (type_stack::follow_type_instance_flags): Likewise.
11271 (type_stack::follow_types): Likewise. Merge type-following code.
11272 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11273 (space_identifier, cv_with_space_id)
11274 (const_or_volatile_or_space_identifier_noopt)
11275 (const_or_volatile_or_space_identifier): Remove.
11276 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11277 rules.
11278 (ptr_operator, typebase): Update.
11279 (enum token_flag) <FLAG_C>: New constant.
11280 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11281 "_Atomic".
11282 (lex_one_token): Handle FLAG_C.
11283
154151a6
KR
112842020-03-14 Kamil Rytarowski <n54@gmx.com>
11285
11286 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11287 it to the ptrace call.
11288 * m68k-bsd-nat.c (store_registers): Likewise.
11289
bc107784
KR
112902020-03-14 Kamil Rytarowski <n54@gmx.com>
11291
11292 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11293 gdb_byte *.
11294 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11295 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11296 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11297
01a80117
KR
112982020-03-14 Kamil Rytarowski <n54@gmx.com>
11299
11300 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11301 nbsd_nat_target instead of inf_ptrace_target.
11302 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11303 nbsd_nat_target.
11304
f90280ca
KR
113052020-03-14 Kamil Rytarowski <n54@gmx.com>
11306
11307 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11308 register_t.
11309
6def66f1
KR
113102020-03-14 Kamil Rytarowski <n54@gmx.com>
11311
11312 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11313 it to the ptrace call.
11314 * alpha-bsd-nat.c (store_registers): Likewise.
11315
66eaca97
KR
113162020-03-14 Kamil Rytarowski <n54@gmx.com>
11317
11318 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11319 includes.
11320 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11321 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11322 fill_fpregset): Likewise.
11323
4fed520b
KR
113242020-03-14 Kamil Rytarowski <n54@gmx.com>
11325
11326 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11327 nbsd_nat_target instead of inf_ptrace_target.
11328 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11329 nbsd_nat_target.
11330
2190cf06
KR
113312020-03-14 Kamil Rytarowski <n54@gmx.com>
11332
11333 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11334 register_t.
11335
75c56d3d
KR
113362020-03-14 Kamil Rytarowski <n54@gmx.com>
11337
11338 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11339 it to the ptrace call.
11340 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11341 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11342 * arm-nbsd-nat.c (store_register): Likewise.
11343 * arm-nbsd-nat.c (store_regs): Likewise.
11344 * arm-nbsd-nat.c (store_fp_register): Likewise.
11345 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11346
6018d381
KR
113472020-03-14 Kamil Rytarowski <n54@gmx.com>
11348
11349 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11350 nbsd_nat_target instead of inf_ptrace_target.
11351 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11352 nbsd_nat_target.
11353
013f99f0
KR
113542020-03-14 Kamil Rytarowski <n54@gmx.com>
11355
11356 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11357 it to the ptrace call.
11358 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11359
12753073
KR
113602020-03-14 Kamil Rytarowski <n54@gmx.com>
11361
6227b330
KR
11362 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11363 it to the ptrace call.
11364 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11365
113662020-03-14 Kamil Rytarowski <n54@gmx.com>
11367
11368 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11369 gdb_byte *.
12753073
KR
11370 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11371
d5be5fa4
KR
113722020-03-14 Kamil Rytarowski <n54@gmx.com>
11373
11374 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11375 instead of inf_ptrace_target.
11376 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11377 nbsd_nat_target.
11378
8110f842
KR
113792020-03-14 Kamil Rytarowski <n54@gmx.com>
11380
11381 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11382 register_t.
11383
52feded7
KR
113842020-03-14 Kamil Rytarowski <n54@gmx.com>
11385
11386 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11387 register_t.
11388
25567eee
KR
113892020-03-14 Kamil Rytarowski <n54@gmx.com>
11390
11391 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11392 register_t.
11393
426a9c18
TT
113942020-03-13 Tom Tromey <tom@tromey.com>
11395
11396 * value.h (val_print): Don't declare.
11397 * valprint.h (val_print_array_elements)
11398 (val_print_scalar_formatted, generic_val_print): Don't declare.
11399 * valprint.c (generic_val_print_array): Take a struct value.
11400 (generic_val_print_ptr, generic_val_print_memberptr)
11401 (generic_val_print_bool, generic_val_print_int)
11402 (generic_val_print_char, generic_val_print_complex)
11403 (generic_val_print): Remove.
11404 (generic_value_print): Update.
11405 (do_val_print): Remove unused parameters. Don't call
11406 la_val_print.
11407 (val_print): Remove.
11408 (common_val_print): Update. Don't call value_check_printable.
11409 (val_print_scalar_formatted, val_print_array_elements): Remove.
11410 * rust-lang.c (rust_val_print): Remove.
11411 (rust_language_defn): Update.
11412 * p-valprint.c (pascal_val_print): Remove.
11413 (pascal_value_print_inner): Update.
11414 (pascal_object_print_val_fields, pascal_object_print_val):
11415 Remove.
11416 (pascal_object_print_static_field): Update.
11417 * p-lang.h (pascal_val_print): Don't declare.
11418 * p-lang.c (pascal_language_defn): Update.
11419 * opencl-lang.c (opencl_language_defn): Update.
11420 * objc-lang.c (objc_language_defn): Update.
11421 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11422 * m2-lang.h (m2_val_print): Don't declare.
11423 * m2-lang.c (m2_language_defn): Update.
11424 * language.h (struct language_defn) <la_val_print>: Remove.
11425 * language.c (unk_lang_value_print_inner): Rename. Change
11426 argument types.
11427 (unknown_language_defn, auto_language_defn): Update.
11428 * go-valprint.c (go_val_print): Remove.
11429 * go-lang.h (go_val_print): Don't declare.
11430 * go-lang.c (go_language_defn): Update.
11431 * f-valprint.c (f_val_print): Remove.
11432 * f-lang.h (f_value_print): Don't declare.
11433 * f-lang.c (f_language_defn): Update.
11434 * d-valprint.c (d_val_print): Remove.
11435 * d-lang.h (d_value_print): Don't declare.
11436 * d-lang.c (d_language_defn): Update.
11437 * cp-valprint.c (cp_print_value_fields)
11438 (cp_print_value_fields_rtti, cp_print_value): Remove.
11439 (cp_print_static_field): Update.
11440 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11441 (c_val_print_struct, c_val_print_union, c_val_print_int)
11442 (c_val_print_memberptr, c_val_print): Remove.
11443 * c-lang.h (c_val_print_array, cp_print_value_fields)
11444 (cp_print_value_fields_rtti): Don't declare.
11445 * c-lang.c (c_language_defn, cplus_language_defn)
11446 (asm_language_defn, minimal_language_defn): Update.
11447 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11448 (ada_val_print_enum): Take a struct value.
11449 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11450 (ada_val_print): Remove.
11451 (ada_value_print_1): Update.
11452 (printable_val_type): Remove.
11453 * ada-lang.h (ada_val_print): Don't declare.
11454 * ada-lang.c (ada_language_defn): Update.
11455
42331a1e
TT
114562020-03-13 Tom Tromey <tom@tromey.com>
11457
11458 * valprint.c (do_val_print): Update.
11459 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11460 a struct value.
11461 (value_to_value_object_no_release): Declare.
11462 * python/py-value.c (value_to_value_object_no_release): New
11463 function.
11464 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11465 struct value.
11466 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11467 function.
11468 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11469 a struct value.
11470 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11471 Declare.
11472 (gdbscm_apply_val_pretty_printer): Take a struct value.
11473 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11474 value.
11475 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11476 value.
11477 * extension-priv.h (struct extension_language_ops)
11478 <apply_val_pretty_printer>: Take a struct value.
11479 * cp-valprint.c (cp_print_value): Create a struct value.
11480 (cp_print_value): Update.
11481
3a916a97
TT
114822020-03-13 Tom Tromey <tom@tromey.com>
11483
11484 * ada-valprint.c (print_field_values): Call common_val_print.
11485
b59eac37
TT
114862020-03-13 Tom Tromey <tom@tromey.com>
11487
11488 * ada-valprint.c (val_print_packed_array_elements): Remove
11489 bitoffset and val parameters. Call common_val_print.
11490 (ada_val_print_string): Remove offset, address, and original_value
11491 parameters.
11492 (ada_val_print_array): Update.
11493 (ada_value_print_array): New function.
11494 (ada_value_print_1): Call it.
11495
03371129
TT
114962020-03-13 Tom Tromey <tom@tromey.com>
11497
11498 * ada-valprint.c (ada_value_print): Use common_val_print.
11499
2e088f8b
TT
115002020-03-13 Tom Tromey <tom@tromey.com>
11501
11502 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11503
39ef85a8
TT
115042020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * ada-valprint.c (ada_value_print_num): New function.
11507 (ada_value_print_1): Use it.
11508
b9fa6e07
TT
115092020-03-13 Tom Tromey <tom@tromey.com>
11510
11511 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11512
416595d6
TT
115132020-03-13 Tom Tromey <tom@tromey.com>
11514
11515 * ada-valprint.c (ada_value_print_ptr): New function.
11516 (ada_value_print_1): Use it.
11517
5b5e15ec
TT
115182020-03-13 Tom Tromey <tom@tromey.com>
11519
11520 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11521 call common_val_print.
11522 (ada_val_print_1): Update.
11523 (ada_value_print_1): New function.
11524 (ada_value_print_inner): Rewrite.
11525
fbf54e75
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * cp-valprint.c (cp_print_value_fields): Update.
11529 (cp_print_value): New function.
11530
64b653ca
TT
115312020-03-13 Tom Tromey <tom@tromey.com>
11532
11533 * m2-valprint.c (m2_value_print_inner): Use
11534 cp_print_value_fields.
11535 * cp-valprint.c (cp_print_value_fields): New function.
11536 * c-valprint.c (c_value_print_struct): New function.
11537 (c_value_print_inner): Use c_value_print_struct.
11538 * c-lang.h (cp_print_value_fields): Declare.
11539
6999f067
TT
115402020-03-13 Tom Tromey <tom@tromey.com>
11541
11542 * c-valprint.c (c_value_print_array): New function.
11543 (c_value_print_inner): Use it.
11544
ce80b8bd
TT
115452020-03-13 Tom Tromey <tom@tromey.com>
11546
11547 * c-valprint.c (c_value_print_memberptr): New function.
11548 (c_value_print_inner): Use it.
11549
2faac269
TT
115502020-03-13 Tom Tromey <tom@tromey.com>
11551
11552 * c-valprint.c (c_value_print_int): New function.
11553 (c_value_print_inner): Use it.
11554
da3e2c29
TT
115552020-03-13 Tom Tromey <tom@tromey.com>
11556
11557 * c-valprint.c (c_value_print_ptr): New function.
11558 (c_value_print_inner): Use it.
11559
50836231
TT
115602020-03-13 Tom Tromey <tom@tromey.com>
11561
11562 * c-valprint.c (c_value_print_inner): Rewrite.
11563
4f412b6e
TT
115642020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * valprint.c (generic_value_print_complex): New function.
11567 (generic_value_print): Use it.
11568
f5354008
TT
115692020-03-13 Tom Tromey <tom@tromey.com>
11570
11571 * valprint.c (generic_val_print_float): Don't call
11572 val_print_scalar_formatted.
11573 (generic_val_print, generic_value_print): Update.
11574
3eec3b05
TT
115752020-03-13 Tom Tromey <tom@tromey.com>
11576
11577 * valprint.c (generic_value_print_char): New function
11578 (generic_value_print): Use it.
11579
fdddfccb
TT
115802020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * valprint.c (generic_value_print_int): New function.
11583 (generic_value_print): Use it.
11584
6dde7521
TT
115852020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * valprint.c (generic_value_print_bool): New function.
11588 (generic_value_print): Use it.
11589
4112d2e6
TT
115902020-03-13 Tom Tromey <tom@tromey.com>
11591
11592 * valprint.c (generic_val_print_func): Simplify.
11593 (generic_val_print, generic_value_print): Update.
11594
65786af6
TT
115952020-03-13 Tom Tromey <tom@tromey.com>
11596
11597 * valprint.c (generic_val_print_flags): Remove.
11598 (generic_val_print, generic_value_print): Update.
11599 (val_print_type_code_flags): Add original_value parameter.
11600
40f3ce18
TT
116012020-03-13 Tom Tromey <tom@tromey.com>
11602
11603 * valprint.c (generic_val_print): Update.
11604 (generic_value_print): Update.
11605 * valprint.c (generic_val_print_enum): Don't call
11606 val_print_scalar_formatted.
11607
2a5b130b
TT
116082020-03-13 Tom Tromey <tom@tromey.com>
11609
11610 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11611 * valprint.c (generic_value_print_ptr): New function.
11612
abc66ce9
TT
116132020-03-13 Tom Tromey <tom@tromey.com>
11614
11615 * valprint.c (generic_value_print): Rewrite.
11616
07a32858
TT
116172020-03-13 Tom Tromey <tom@tromey.com>
11618
11619 * p-valprint.c (pascal_object_print_value_fields)
11620 (pascal_object_print_value): New functions.
11621
64d64d3a
TT
116222020-03-13 Tom Tromey <tom@tromey.com>
11623
11624 * p-valprint.c (pascal_value_print_inner): Rewrite.
11625
6a95a1f5
TT
116262020-03-13 Tom Tromey <tom@tromey.com>
11627
11628 * f-valprint.c (f_value_print_innner): Rewrite.
11629
59fcdac6
TT
116302020-03-13 Tom Tromey <tom@tromey.com>
11631
11632 * m2-valprint.c (m2_print_unbounded_array): New overload.
11633 (m2_print_unbounded_array): Update.
11634 (m2_print_array_contents): Take a struct value.
11635 (m2_value_print_inner): Rewrite.
11636
d133c3e1
TT
116372020-03-13 Tom Tromey <tom@tromey.com>
11638
11639 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11640 (d_value_print_inner): New function.
11641 * d-lang.h (d_value_print_inner): Declare.
11642 * d-lang.c (d_language_defn): Use d_value_print_inner.
11643
23b0f06b
TT
116442020-03-13 Tom Tromey <tom@tromey.com>
11645
11646 * go-valprint.c (go_value_print_inner): New function.
11647 * go-lang.h (go_value_print_inner): Declare.
11648 * go-lang.c (go_language_defn): Use go_value_print_inner.
11649
5f56f7cb
TT
116502020-03-13 Tom Tromey <tom@tromey.com>
11651
11652 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11653 API.
11654 (rust_val_print): Rewrite.
11655 (rust_value_print_inner): New function, from rust_val_print.
11656 (rust_language_defn): Use rust_value_print_inner.
11657
26792ee0
TT
116582020-03-13 Tom Tromey <tom@tromey.com>
11659
11660 * ada-valprint.c (ada_value_print_inner): New function.
11661 * ada-lang.h (ada_value_print_inner): Declare.
11662 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11663
24051bbe
TT
116642020-03-13 Tom Tromey <tom@tromey.com>
11665
11666 * f-valprint.c (f_value_print_innner): New function.
11667 * f-lang.h (f_value_print_innner): Declare.
11668 * f-lang.c (f_language_defn): Use f_value_print_innner.
11669
c0941be6
TT
116702020-03-13 Tom Tromey <tom@tromey.com>
11671
11672 * p-valprint.c (pascal_value_print_inner): New function.
11673 * p-lang.h (pascal_value_print_inner): Declare.
11674 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11675
62c4663d
TT
116762020-03-13 Tom Tromey <tom@tromey.com>
11677
11678 * m2-valprint.c (m2_value_print_inner): New function.
11679 * m2-lang.h (m2_value_print_inner): Declare.
11680 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11681
62182190
TT
116822020-03-13 Tom Tromey <tom@tromey.com>
11683
11684 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11685 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11686 * c-valprint.c (c_value_print_inner): New function.
11687 * c-lang.h (c_value_print_inner): Declare.
11688 * c-lang.c (c_language_defn, cplus_language_defn)
11689 (asm_language_defn, minimal_language_defn): Use
11690 c_value_print_inner.
11691
1e592a8a
TT
116922020-03-13 Tom Tromey <tom@tromey.com>
11693
11694 * p-valprint.c (pascal_object_print_value_fields): Now static.
11695 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11696
7fe471e9
TT
116972020-03-13 Tom Tromey <tom@tromey.com>
11698
11699 * c-valprint.c (c_val_print_array): Simplify.
11700
d121c6ce
TT
117012020-03-13 Tom Tromey <tom@tromey.com>
11702
11703 * valprint.c (value_print_array_elements): New function.
11704 * valprint.h (value_print_array_elements): Declare.
11705
4dba70ee
TT
117062020-03-13 Tom Tromey <tom@tromey.com>
11707
11708 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11709 * mips-tdep.c (mips_print_register): Use
11710 value_print_scalar_formatted.
11711
4f9ae810
TT
117122020-03-13 Tom Tromey <tom@tromey.com>
11713
11714 * valprint.h (value_print_scalar_formatted): Declare.
11715 * valprint.c (value_print_scalar_formatted): New function.
11716
156bfec9
TT
117172020-03-13 Tom Tromey <tom@tromey.com>
11718
11719 * valprint.h (generic_value_print): Declare.
11720 * valprint.c (generic_value_print): New function.
11721
2b4e573d
TT
117222020-03-13 Tom Tromey <tom@tromey.com>
11723
11724 * valprint.c (do_val_print): Call la_value_print_inner, if
11725 available.
11726 * rust-lang.c (rust_language_defn): Update.
11727 * p-lang.c (pascal_language_defn): Update.
11728 * opencl-lang.c (opencl_language_defn): Update.
11729 * objc-lang.c (objc_language_defn): Update.
11730 * m2-lang.c (m2_language_defn): Update.
11731 * language.h (struct language_defn) <la_value_print_inner>: New
11732 member.
11733 * language.c (unknown_language_defn, auto_language_defn): Update.
11734 * go-lang.c (go_language_defn): Update.
11735 * f-lang.c (f_language_defn): Update.
11736 * d-lang.c (d_language_defn): Update.
11737 * c-lang.c (c_language_defn, cplus_language_defn)
11738 (asm_language_defn, minimal_language_defn): Update.
11739 * ada-lang.c (ada_language_defn): Update.
11740
a1f6a07c
TT
117412020-03-13 Tom Tromey <tom@tromey.com>
11742
11743 * c-valprint.c (c_value_print): Use common_val_print.
11744
410cf315
TT
117452020-03-13 Tom Tromey <tom@tromey.com>
11746
11747 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11748
72a45c93
TT
117492020-03-13 Tom Tromey <tom@tromey.com>
11750
11751 * f-valprint.c (f77_print_array_1, f_val_print): Use
11752 common_val_print.
11753
040f66bd
TT
117542020-03-13 Tom Tromey <tom@tromey.com>
11755
11756 * riscv-tdep.c (riscv_print_one_register_info): Use
11757 common_val_print.
11758
a6e05a6c
TT
117592020-03-13 Tom Tromey <tom@tromey.com>
11760
11761 * mi/mi-main.c (output_register): Use common_val_print.
11762
3444c526
TT
117632020-03-13 Tom Tromey <tom@tromey.com>
11764
11765 * infcmd.c (default_print_one_register_info): Use
11766 common_val_print.
11767
c2a44efe
TT
117682020-03-13 Tom Tromey <tom@tromey.com>
11769
11770 * valprint.h (common_val_print_checked): Declare.
11771 * valprint.c (common_val_print_checked): New function.
11772 * stack.c (print_frame_arg): Use common_val_print_checked.
11773
b0c26e99
TT
117742020-03-13 Tom Tromey <tom@tromey.com>
11775
11776 * valprint.c (do_val_print): New function, from val_print.
11777 (val_print): Use do_val_print.
11778 (common_val_print): Use do_val_print.
11779
ce3acbe9
TT
117802020-03-13 Tom Tromey <tom@tromey.com>
11781
11782 * valprint.c (value_print): Use scoped_value_mark.
11783
96c7f873
TV
117842020-03-13 Tom de Vries <tdevries@suse.de>
11785
11786 PR symtab/25646
11787 * psymtab.c (partial_symtab::partial_symtab): Don't set
11788 globals_offset and statics_offset. Push element onto
11789 current_global_psymbols and current_static_psymbols stacks.
11790 (concat): New function.
11791 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11792 element from current_global_psymbols and current_static_psymbols
11793 stacks. Concat popped elements to global_psymbols and
11794 static_symbols.
11795 (add_psymbol_to_list): Use current_global_psymbols and
11796 current_static_psymbols stacks.
11797 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11798 current_static_psymbols fields.
11799
6ba0a321
CB
118002020-03-12 Christian Biesinger <cbiesinger@google.com>
11801
11802 * corelow.c (sniff_core_bfd): Remove.
11803 (class core_target) <m_core_vec>: Remove.
11804 (core_target::core_target): Update.
11805 (core_file_fns): Remove.
11806 (deprecated_add_core_fns): Remove.
11807 (default_core_sniffer): Remove.
11808 (sniff_core_bfd): Remove.
11809 (default_check_format): Remove.
11810 (gdb_check_format): Remove.
11811 (core_target_open): Update.
11812 (core_target::get_core_register_section): Update.
11813 (get_core_registers_cb): Update.
11814 (core_target::fetch_registers): Update.
11815 * gdbcore.h (struct core_fns): Remove.
11816 (deprecated_add_core_fns): Remove.
11817 (default_core_sniffer): Remove.
11818 (default_check_format): Remove.
11819
227031b2
TT
118202020-03-12 Tom Tromey <tom@tromey.com>
11821
11822 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11823 CORE_ADDR.
11824 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11825
53807e9f
TT
118262020-03-12 Tom Tromey <tom@tromey.com>
11827
11828 * remote.c (remote_target::download_tracepoint)
11829 (remote_target::enable_tracepoint)
11830 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11831 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11832 sprintf_vma.
11833
64f25102
TT
118342020-03-12 Tom Tromey <tom@tromey.com>
11835
11836 * symfile-mem.c: Update CORE_ADDR size assert.
11837
272cd5a3
SM
118382020-03-12 Simon Marchi <simon.marchi@efficios.com>
11839
11840 * selftest.m4: Move to gdbsupport/.
11841 * acinclude.m4: Update path to selftest.m4.
11842
74cd3f9d
SM
118432020-03-12 Simon Marchi <simon.marchi@efficios.com>
11844
11845 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11846 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11847 gdbarch-selfselftests.c and selftest-arch.c.
11848 (SUBDIR_UNITTESTS_OBS): Rename to...
11849 (SELFTESTS_OBS): ... this.
11850 (COMMON_SFILES): Remove disasm-selftests.c and
11851 gdbarch-selftests.c.
11852 * configure.ac: Don't add selftest-arch.{c,o} to
11853 CONFIG_{SRCS,OBS}.
11854 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11855 preprocessor conditions.
11856
db6878ac
SM
118572020-03-12 Simon Marchi <simon.marchi@efficios.com>
11858
11859 * configure.ac: Don't source bfd/development.sh.
11860 * selftest.m4: Modify comment.
11861 * configure: Re-generate.
11862
4d696a5c
SM
118632020-03-12 Simon Marchi <simon.marchi@efficios.com>
11864
11865 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11866 not "true" or "false".
11867 * configure: Re-generate.
11868
8dd8e1c7
CB
118692020-03-12 Christian Biesinger <cbiesinger@google.com>
11870
11871 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11872 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11873 renamed to arm_nbsd_supply_gregset.
11874 (fetch_register): Update to call arm_nbsd_supply_gregset.
11875 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11876 (arm_netbsd_nat_target::fetch_registers): Update.
11877 (fetch_elfcore_registers): Removed.
11878 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11879 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11880 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11881 not require NetBSD system headers.
11882 (arm_nbsd_regset): New struct.
11883 (arm_nbsd_iterate_over_regset_sections): New function.
11884 (arm_netbsd_init_abi_common): Updated to call
11885 set_gdbarch_iterate_over_regset_sections.
11886 * arm-nbsd-tdep.h: New file.
11887
dd69bf7a
KB
118882020-03-11 Kevin Buettner <kevinb@redhat.com>
11889
11890 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11891 recursion.
11892
a0761e34
SM
118932020-03-11 Simon Marchi <simon.marchi@efficios.com>
11894
11895 * configure: Re-generate.
11896
e7a82140
TT
118972020-03-11 Tom Tromey <tromey@adacore.com>
11898
11899 * ada-typeprint.c (print_choices): Fix comment.
11900
dcc050c8
AB
119012020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11902
11903 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11904 previous item in the list, when the list has no items.
11905
1c33af77
TV
119062020-03-11 Tom de Vries <tdevries@suse.de>
11907
11908 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11909 PROP_LOCLIST handling code.
11910
8c95582d
AB
119112020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11912
11913 * buildsym-legacy.c (record_line): Pass extra parameter to
11914 record_line.
11915 * buildsym.c (buildsym_compunit::record_line): Take an extra
11916 parameter, reduce duplication in the line table, and record the
11917 is_stmt flag in the line table.
11918 * buildsym.h (buildsym_compunit::record_line): Add extra
11919 parameter.
11920 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11921 non-statement lines.
11922 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11923 this to the symtab builder.
11924 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11925 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11926 through to dwarf_record_line_1.
11927 * infrun.c (process_event_stop_test): When stepping, don't stop at
11928 a non-statement instruction, and only refresh the step info when
11929 we land in the middle of a line's range. Also add an extra
11930 comment.
11931 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11932 field.
11933 * record-btrace.c (btrace_find_line_range): Only record lines
11934 marked as is-statement.
11935 * stack.c (frame_show_address): Show the frame address if we are
11936 in a non-statement sal.
11937 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11938 (maintenance_print_one_line_table): Print a header for the is_stmt
11939 column, and include is_stmt information in the output.
11940 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11941 preference to non-statements.
11942 (find_pcs_for_symtab_line): Prefer is-statement entries.
11943 (find_line_common): Likewise.
11944 * symtab.h (struct linetable_entry): Add is_stmt field.
11945 (struct symtab_and_line): Likewise.
11946 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11947 arranging the line table.
11948
e4003a34
TV
119492020-03-07 Tom de Vries <tdevries@suse.de>
11950
11951 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11952 DIE.
11953
e8932576
TT
119542020-03-07 Tom Tromey <tom@tromey.com>
11955
11956 * valops.c (value_literal_complex): Remove obsolete comment.
11957 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11958 comment.
11959
29734269
SM
119602020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11961
11962 * infrun.h: Forward-declare thread_info.
11963 (set_step_info): Add thread_info parameter, add doc.
11964 * infrun.c (set_step_info): Add thread_info parameter, move doc
11965 to header.
11966 * infrun.c (process_event_stop_test): Pass thread to
11967 set_step_info call.
11968 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11969 set_step_info.
11970 (prepare_one_step): Add thread_info parameter, pass it to
11971 set_step_frame and prepare_one_step (recursive) call.
11972 (step_1): Pass thread to prepare_one_step call.
11973 (step_command_fsm::should_stop): Pass thread to
11974 prepare_one_step.
11975 (until_next_fsm): Pass thread to set_step_frame call.
11976 (finish_command): Pass thread to set_step_info call.
11977
b7d64b29
HD
119782020-03-06 Hannes Domani <ssbssa@yahoo.de>
11979
11980 * windows-tdep.c (windows_solib_create_inferior_hook):
11981 Check if inferior is running.
11982
09f2921c
TV
119832020-03-06 Tom de Vries <tdevries@suse.de>
11984
11985 * NEWS: Fix "the the".
11986 * ctfread.c: Same.
11987
fd760e79
TV
119882020-03-06 Tom de Vries <tdevries@suse.de>
11989
11990 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11991
20ea4a60
AB
119922020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11993
11994 * .dir-locals.el: Add a comment referencing the other copies of
11995 this file.
11996
0afbabf0
JB
119972020-03-05 John Baldwin <jhb@FreeBSD.org>
11998
11999 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12000 psargs.
12001
842806cb
TBA
120022020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12003
12004 * .gitattributes: New file.
12005
be1e3d3e
TT
120062020-03-04 Tom Tromey <tom@tromey.com>
12007
12008 * symmisc.c (print_symbol_bcache_statistics)
12009 (print_objfile_statistics): Update.
12010 * symfile.c (allocate_symtab): Use intern.
12011 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12012 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12013 macro_cache>: Remove.
12014 <string_cache>: New member.
12015 (struct objfile) <intern>: New methods.
12016 * elfread.c (elf_symtab_read): Use intern.
12017 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12018 (dwarf2_compute_name, dwarf2_physname)
12019 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12020 names.
12021 (guess_partial_die_structure_name): Update.
12022 (partial_die_info::fixup): Intern name.
12023 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12024 name.
12025 (dwarf2_name): Intern name. Update.
12026 * buildsym.c (buildsym_compunit::get_macro_table): Use
12027 string_cache.
12028
4e7625fd
TT
120292020-03-04 Tom Tromey <tom@tromey.com>
12030
12031 * jit.c (bfd_open_from_target_memory): Make "target" const.
12032 * corefile.c (gnutarget): Now const.
12033 * gdbcore.h (gnutarget): Now const.
12034
46f9f931
HD
120352020-03-04 Hannes Domani <ssbssa@yahoo.de>
12036
12037 * NEWS: Mention support for WOW64 processes.
12038 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12039 (amd64_windows_segment_register_p): Remove static.
12040 (_initialize_amd64_windows_nat): Update.
12041 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12042 * i386-windows-nat.c (context_offset): Update.
12043 (i386_mappings): Rename and remove static.
12044 (i386_windows_segment_register_p): Remove static.
12045 (_initialize_i386_windows_nat): Update.
12046 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12047 (STATUS_WX86_SINGLE_STEP): New macro.
12048 (EnumProcessModulesEx): New macro.
12049 (Wow64SuspendThread): New macro.
12050 (Wow64GetThreadContext): New macro.
12051 (Wow64SetThreadContext): New macro.
12052 (Wow64GetThreadSelectorEntry): New macro.
12053 (windows_set_context_register_offsets): Add static.
12054 (windows_set_segment_register_p): Likewise.
12055 (windows_add_thread): Adapt for WOW64 processes.
12056 (windows_fetch_one_register): Likewise.
12057 (windows_nat_target::fetch_registers): Likewise.
12058 (windows_store_one_register): Likewise.
12059 (display_selector): Likewise.
12060 (display_selectors): Likewise.
12061 (handle_exception): Likewise.
12062 (windows_continue): Likewise.
12063 (windows_nat_target::resume): Likewise.
12064 (windows_add_all_dlls): Likewise.
12065 (do_initial_windows_stuff): Likewise.
12066 (windows_nat_target::attach): Likewise.
12067 (windows_get_exec_module_filename): Likewise.
12068 (windows_nat_target::create_inferior): Likewise.
12069 (windows_xfer_siginfo): Likewise.
12070 (_initialize_loadable): Initialize Wow64SuspendThread,
12071 Wow64GetThreadContext, Wow64SetThreadContext,
12072 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12073 * windows-nat.h (windows_set_context_register_offsets):
12074 Remove declaration.
12075 (windows_set_segment_register_p): Likewise.
12076 (i386_windows_segment_register_p): Add declaration.
12077 (amd64_windows_segment_register_p): Likewise.
12078
440cf44e
LM
120792020-03-04 Luis Machado <luis.machado@linaro.org>
12080
12081 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12082 in "info registers" for AArch64/ARM.
12083
12084 The change caused "info registers" to not print GPR's.
12085
12086 gdb/ChangeLog:
12087
12088 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12089
12090 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12091 when reg->group is empty and reggroup is not.
12092
1009d92f
TT
120932020-03-03 Tom Tromey <tromey@adacore.com>
12094
12095 * dwarf2/frame.c (struct dwarf2_frame_cache)
12096 <checked_tailcall_bottom, entry_cfa_sp_offset,
12097 entry_cfa_sp_offset_p>: Remove members.
12098 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12099 (dwarf2_frame_prev_register): Don't call
12100 dwarf2_tailcall_sniffer_first.
12101 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12102 * frame-unwind.c (add_unwinder): New fuction.
12103 (frame_unwind_init): Use it. Add tailcall unwinder.
12104
5e5d66b6
AB
121052020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12106 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12107
12108 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12109 value should be printed as true.
12110
584cf46d
HD
121112020-03-03 Hannes Domani <ssbssa@yahoo.de>
12112
12113 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12114 (windows_init_abi): Set and use windows_so_ops.
12115
7b973adc
SDJ
121162020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12117
12118 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12119 when verifying if dealing with a convenience variable.
12120
bb7b70ab
LM
121212020-03-03 Luis Machado <luis.machado@linaro.org>
12122
12123 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12124
9822cb57
SM
121252020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12126
12127 * infrun.c (gdbarch_supports_displaced_stepping): New.
12128 (use_displaced_stepping): Break up conditions in smaller pieces.
12129 Use gdbarch_supports_displaced_stepping.
12130 (displaced_step_prepare_throw): Use
12131 gdbarch_supports_displaced_stepping.
12132
63e163f2
AB
121332020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12134
12135 * NEWS: Mention new behaviour of the history filename.
12136 * top.c (write_history_p): Add comment.
12137 (show_write_history_p): Add header comment, give a different
12138 message when history writing is on, but the history filename is
12139 empty.
12140 (history_filename): Add comment.
12141 (history_filename_empty): New function.
12142 (show_history_filename): Add header comment, give a different
12143 message when the filename is empty.
12144 (init_history): Compare history_filename against nullptr, and only
12145 read history if the filename is not empty.
12146 (set_history_filename): Add header comment, and only make
12147 non-empty filenames absolute.
12148 (init_main): Make the filename argument to 'set history filename'
12149 optional.
12150
81b86b97
CB
121512020-03-02 Christian Biesinger <cbiesinger@google.com>
12152
12153 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12154 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12155 (fetch_fp_register): Update.
12156 (fetch_fp_regs): Update.
12157 (store_fp_register): Update.
12158 (store_fp_regs): Update.
12159 (arm_netbsd_nat_target::read_description): New function.
12160 (fetch_elfcore_registers): Update.
12161
24ed6739
AB
121622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12163
12164 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12165 general_thread if the stop reply is missing a thread-id.
12166 (remote_target::process_stop_reply): Use the first non-exited
12167 thread if the target didn't pass a thread-id.
12168 * infrun.c (do_target_wait): Move call to
12169 switch_to_inferior_no_thread to ....
12170 (do_target_wait_1): ... here.
12171
a84bb2a0
JT
121722020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12173
12174 * debuginfod-support.c: Include defs.h first.
12175
658dadf0
TV
121762020-02-28 Tom de Vries <tdevries@suse.de>
12177
12178 * symfile.c (set_initial_language): Use default language for lookup.
12179
4ebe4877
SM
121802020-02-28 Simon Marchi <simon.marchi@efficios.com>
12181
12182 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12183 reader variable, pass `this` to read_cutu_die_from_dwo.
12184
e5da1139
AM
121852020-02-27 Aaron Merey <amerey@redhat.com>
12186
12187 * source.c (open_source_file): Check for nullptr when computing
12188 srcpath.
12189
317f7127
TT
121902020-02-27 Tom Tromey <tromey@adacore.com>
12191
12192 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12193 member.
12194 (dwarf2_add_field): Don't update nfields.
12195 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12196
3104d9ee
AB
121972020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12200 abs.
12201
b83470bf
TT
122022020-02-26 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12205 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12206 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12207 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12208 per_cu_data.
12209
edfe0a0c
TT
122102020-02-26 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/index-write.c (psym_index_map): Change type.
12213 (add_address_entry_worker, write_one_signatured_type)
12214 (recursively_count_psymbols, recursively_write_psymbols)
12215 (class debug_names, psyms_seen_size, write_gdbindex)
12216 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12217
0d79cdc4
AM
122182020-02-26 Aaron Merey <amerey@redhat.com>
12219
12220 * Makefile.in: Handle optional debuginfod support.
12221 * NEWS: Update.
12222 * README: Add --with-debuginfod summary.
12223 * config.in: Regenerate.
12224 * configure: Regenerate.
12225 * configure.ac: Handle optional debuginfod support.
12226 * debuginfod-support.c: debuginfod helper functions.
12227 * debuginfod-support.h: Ditto.
12228 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12229 summary.
12230 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12231 when a dwz file cannot be found.
12232 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12233 debuginfo file cannot be found.
12234 * source.c (open_source_file): Query debuginfod servers when a
12235 source file cannot be found.
12236 * top.c (print_gdb_configuration): Include
12237 --{with,without}-debuginfod in the output.
12238
b65ce565
JG
122392020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12240
12241 * thread.c (thr_try_catch_cmd): Print thread name.
12242
d4c9a4f8
SM
122432020-02-26 Simon Marchi <simon.marchi@efficios.com>
12244
12245 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12246 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12247 dwarf2_fetch_die_type_sect_off): Move to...
12248 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12249 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12250 dwarf2_fetch_die_type_sect_off): ... here.
12251 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12252 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12253 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12254
0dce4280
TV
122552020-02-26 Tom de Vries <tdevries@suse.de>
12256
12257 PR gdb/25603
12258 * symfile.c (set_initial_language): Exit-early if
12259 language_mode == language_mode_manual.
12260
450a1bfc
SM
122612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12262
12263 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12264 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12265 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12266
9e80cfa1
AB
122672020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12268
12269 * gdbtypes.c (create_array_type_with_stride): Handle negative
12270 array strides.
12271 * valarith.c (value_subscripted_rvalue): Likewise.
12272
09624f1f
LM
122732020-02-25 Luis Machado <luis.machado@linaro.org>
12274
12275 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12276
8cb5117c
SM
122772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12278
12279 * loc.h (dwarf2_get_die_type): Move to...
12280 * read.h (dwarf2_get_die_type): ... here.
12281 * read.c (dwarf2_get_die_type): Move doc to header.
12282
c325c44e
JB
122832020-02-25 Joel Brobecker <brobecker@adacore.com>
12284
12285 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12286 'gnulib/Makefile.in' to the list.
12287
4ac93832
TT
122882020-02-24 Tom Tromey <tom@tromey.com>
12289
12290 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12291 Remove.
12292 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12293 XOBNEWVEC.
12294
197400e8
TT
122952020-02-24 Tom Tromey <tom@tromey.com>
12296
12297 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12298 New method.
12299 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12300 (dw2_do_instantiate_symtab, dw2_get_file_names)
12301 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12302
76935768
TT
123032020-02-24 Tom Tromey <tom@tromey.com>
12304
12305 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12306 make_scoped_restore.
12307 (dwarf2_psymtab::read_symtab): Don't clear
12308 reading_partial_symbols.
12309
a88ef40d
TV
123102020-02-24 Tom de Vries <tdevries@suse.de>
12311
12312 PR gdb/25592
12313 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12314
c9af6521
TV
123152020-02-24 Tom de Vries <tdevries@suse.de>
12316
12317 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12318 commands layout next/prev/regs.
12319
5707a07a
TT
123202020-02-22 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12323 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12324
3b0fb49e
TT
123252020-02-22 Tom Tromey <tom@tromey.com>
12326
12327 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12328
283be8bf
TT
123292020-02-22 Tom Tromey <tom@tromey.com>
12330
12331 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12332 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12333 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12334 * tui/tui.c (_initialize_tui): Add usage text.
12335
ca793b96
TT
123362020-02-22 Tom Tromey <tom@tromey.com>
12337
12338 * tui/tui-win.c (tui_set_focus_command)
12339 (tui_set_win_height_command): Use error_no_arg.
12340 (_initialize_tui_win): Update help text.
12341 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12342
432b5c40
TT
123432020-02-22 Tom Tromey <tom@tromey.com>
12344
12345 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12346 * tui/tui-disasm.h (struct tui_disasm_window)
12347 <display_start_addr>: Declare.
12348 * tui/tui-source.h (struct tui_source_window)
12349 <display_start_addr>: Declare.
12350 * tui/tui-winsource.h (struct tui_source_window_base)
12351 <show_source_line, display_start_addr>: New methods.
12352 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12353 Rename and move to protected section.
12354 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12355 (tui_source_window_base::do_erase_source_content): Update.
12356 (tui_source_window_base::show_source_line): Now a method.
12357 (tui_source_window_base::show_source_content)
12358 (tui_source_window_base::tui_source_window_base)
12359 (tui_source_window_base::rerender)
12360 (tui_source_window_base::refill)
12361 (tui_source_window_base::do_scroll_horizontal)
12362 (tui_source_window_base::set_is_exec_point_at)
12363 (tui_source_window_base::update_breakpoint_info)
12364 (tui_source_window_base::update_exec_info): Update.
12365 * tui/tui-source.c (tui_source_window::set_contents)
12366 (tui_source_window::showing_source_p)
12367 (tui_source_window::do_scroll_vertical)
12368 (tui_source_window::location_matches_p)
12369 (tui_source_window::line_is_displayed): Update.
12370 (tui_source_window::display_start_addr): New method.
12371 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12372 (tui_disasm_window::do_scroll_vertical)
12373 (tui_disasm_window::location_matches_p): Update.
12374 (tui_disasm_window::display_start_addr): New method.
12375
01b1af32
TT
123762020-02-22 Tom Tromey <tom@tromey.com>
12377
12378 * NEWS: Add entry for gdb.register_window_type.
12379 * tui/tui-layout.h (window_factory): New typedef.
12380 (tui_register_window): Declare.
12381 * tui/tui-layout.c (saved_tui_windows): New global.
12382 (tui_apply_current_layout): Use it.
12383 (tui_register_window): New function.
12384 * python/python.c (do_start_initialization): Call
12385 gdbpy_initialize_tui.
12386 (python_GdbMethods): Add "register_window_type" function.
12387 * python/python-internal.h (gdbpy_register_tui_window)
12388 (gdbpy_initialize_tui): Declare.
12389 * python/py-tui.c: New file.
12390 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12391
fc96d20b
TT
123922020-02-22 Tom Tromey <tom@tromey.com>
12393
12394 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12395
935c78c0
TT
123962020-02-22 Tom Tromey <tom@tromey.com>
12397
12398 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12399 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12400 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12401 (tui_set_win_focus_to): Move from tui-win.c.
12402
0240c8f1
TT
124032020-02-22 Tom Tromey <tom@tromey.com>
12404
12405 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12406 functions.
12407 (known_window_types): New global.
12408 (tui_get_window_by_name): Reimplement.
12409 (initialize_known_windows): New function.
12410 (validate_window_name): Rewrite.
12411 (_initialize_tui_layout): Call initialize_known_windows.
12412
fdb01f0c
TT
124132020-02-22 Tom Tromey <tom@tromey.com>
12414
12415 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12416 Remove constants.
12417 * tui/tui-winsource.h (struct tui_source_window_base)
12418 <tui_source_window_base>: Remove parameter.
12419 * tui/tui-winsource.c
12420 (tui_source_window_base::tui_source_window_base): Remove
12421 parameter.
12422 (tui_source_window_base::refill): Update.
12423 * tui/tui-stack.h (struct tui_locator_window)
12424 <tui_locator_window>: Update.
12425 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12426 Default the constructor.
12427 * tui/tui-regs.h (struct tui_data_item_window)
12428 <tui_data_item_window>: Default the constructor.
12429 (struct tui_data_window) <tui_data_window>: Likewise.
12430 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12431 Default the constructor.
12432 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12433 Default the constructor.
12434 <type>: Remove.
12435 (struct tui_win_info) <tui_win_info>: Default the constructor.
12436 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12437 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12438 Default the constructor.
12439
865a5aec
TT
124402020-02-22 Tom Tromey <tom@tromey.com>
12441
12442 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12443 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12444 * tui/tui-win.c (tui_resize_all): Don't call
12445 tui_delete_invisible_windows.
12446 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12447 done.
12448 (tui_set_layout): Update.
12449 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12450 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12451 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12452
e098d18c
TT
124532020-02-22 Tom Tromey <tom@tromey.com>
12454
12455 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12456 correctly.
12457
eb9c8874
TT
124582020-02-22 Tom Tromey <tom@tromey.com>
12459
12460 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12461
7eed1a8e
TT
124622020-02-22 Tom Tromey <tom@tromey.com>
12463
12464 * tui/tui-winsource.h (struct tui_source_window_iterator)
12465 <inner_iterator>: New etytypedef.
12466 <tui_source_window_iterator>: Take "end" parameter.
12467 <tui_source_window_iterator>: Take iterator.
12468 <operator*, advance>: Update.
12469 <m_iter>: Change type.
12470 <m_end>: New field.
12471 (struct tui_source_windows) <begin, end>: Update.
12472 * tui/tui-layout.c (tui_windows): New global.
12473 (tui_apply_current_layout): Clear tui_windows.
12474 (tui_layout_window::apply): Update tui_windows.
12475 * tui/tui-data.h (tui_windows): Declare.
12476 (all_tui_windows): Now inline function.
12477 (class tui_window_iterator, struct all_tui_windows): Remove.
12478
7c043ba6
TT
124792020-02-22 Tom Tromey <tom@tromey.com>
12480
12481 PR tui/17850:
12482 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12483 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12484 "height" argument.
12485 (class tui_layout_window) <get_sizes>: Likewise.
12486 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12487 argument.
12488 <get_sizes>: Add "height" argument.
12489 <m_vertical>: New field.
12490 * tui/tui-layout.c (tui_layout_split::clone): Update.
12491 (tui_layout_split::get_sizes): Add "height" argument.
12492 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12493 (tui_new_layout_command): Parse "-horizontal".
12494 (_initialize_tui_layout): Update help string.
12495 (tui_layout_split::specification): Add "-horizontal" when needed.
12496 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12497 argument.
12498 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12499 New methods.
12500
6bc56648
TT
125012020-02-22 Tom Tromey <tom@tromey.com>
12502
12503 * tui/tui-layout.h (enum tui_adjust_result): New.
12504 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12505 (class tui_layout_window) <adjust_size>: Return
12506 tui_adjust_result. Rewrite.
12507 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12508 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12509
c22fef7e
TT
125102020-02-22 Tom Tromey <tom@tromey.com>
12511
12512 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12513 parameter and return types.
12514 (class tui_layout_base) <specification>: Add "depth".
12515 (class tui_layout_window) <specification>: Add "depth".
12516 (class tui_layout_split) <specification>: Add "depth".
12517 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12518 and return types.
12519 (tui_new_layout_command): Parse sub-layouts.
12520 (_initialize_tui_layout): Update help string.
12521 (tui_layout_window::specification): Add "depth".
12522 (add_layout_command): Update.
12523
ee325b61
TT
125242020-02-22 Tom Tromey <tom@tromey.com>
12525
12526 * NEWS: Add "tui new-layout" item.
12527 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12528 Add new-layout command to help text.
12529 (validate_window_name): New function.
12530 (tui_new_layout_command): New function.
12531 (_initialize_tui_layout): Register "new-layout".
12532 (tui_layout_window::specification): New method.
12533 (tui_layout_window::specification): New method.
12534 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12535 method.
12536 (class tui_layout_window) <specification>: New method.
12537 (class tui_layout_split) <specification>: New method.
12538
416eb92d
TT
125392020-02-22 Tom Tromey <tom@tromey.com>
12540
12541 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12542 * tui/tui-win.c (window_name_completer): Update comment.
12543 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12544 Declare method.
12545 (class tui_layout_window) <replace_window>: Likewise.
12546 (class tui_layout_split) <replace_window>: Likewise.
12547 (tui_set_layout): Don't declare.
12548 (tui_set_initial_layout): Declare function.
12549 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12550 (asm_regs_layout): New globals.
12551 (tui_current_layout, show_layout): Remove.
12552 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12553 (find_layout, tui_apply_layout): New function.
12554 (layout_completer): Remove.
12555 (tui_next_layout): Reimplement.
12556 (tui_next_layout_command): New function.
12557 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12558 (tui_regs_layout): Reimplement.
12559 (tui_regs_layout_command): New function.
12560 (extract_display_start_addr): Rewrite.
12561 (next_layout, prev_layout): Remove.
12562 (tui_layout_window::replace_window): New method.
12563 (tui_layout_split::replace_window): New method.
12564 (destroy_layout): New function.
12565 (layout_list): New global.
12566 (add_layout_command): New function.
12567 (initialize_layouts): Update.
12568 (tui_layout_command): New function.
12569 (_initialize_tui_layout): Install "layout" commands.
12570 * tui/tui-data.h (enum tui_layout_type): Remove.
12571 (tui_current_layout): Don't declare.
12572
0dbc2fc7
TT
125732020-02-22 Tom Tromey <tom@tromey.com>
12574
12575 * tui/tui-regs.c (tui_reg_layout): Remove.
12576 (tui_reg_command): Use tui_regs_layout.
12577 * tui/tui-layout.h (tui_reg_command): Declare.
12578 * tui/tui-layout.c (tui_reg_command): New function.
12579
5afe342e
TT
125802020-02-22 Tom Tromey <tom@tromey.com>
12581
12582 * tui/tui.c (tui_rl_delete_other_windows): Call
12583 tui_remove_some_windows.
12584 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12585 Declare method.
12586 (class tui_layout_window) <remove_windows>: New method.
12587 (class tui_layout_split) <remove_windows>: Declare.
12588 (tui_remove_some_windows): Declare.
12589 * tui/tui-layout.c (tui_remove_some_windows): New function.
12590 (tui_layout_split::remove_windows): New method.
12591
427326a8
TT
125922020-02-22 Tom Tromey <tom@tromey.com>
12593
12594 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12595 * tui/tui-layout.h (tui_next_layout): Declare.
12596 * tui/tui-layout.c (tui_next_layout): New function.
12597
3fe12b6d
TT
125982020-02-22 Tom Tromey <tom@tromey.com>
12599
12600 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12601 correct coordinates.
12602
59b8b5d2
TT
126032020-02-22 Tom Tromey <tom@tromey.com>
12604
12605 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12606 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12607 DATA_WIN case.
12608
2a3d458b
TT
126092020-02-22 Tom Tromey <tom@tromey.com>
12610
12611 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12612 TUI_DISASM_WIN, not tui_win_list.
12613
3f0cbb04
TT
126142020-02-22 Tom Tromey <tom@tromey.com>
12615
12616 * valprint.c (generic_val_print_enum_1)
12617 (val_print_type_code_flags): Style member names.
12618 * rust-lang.c (val_print_struct, rust_print_enum)
12619 (rust_print_struct_def, rust_internal_print_type): Style member
12620 names.
12621 * p-valprint.c (pascal_object_print_value_fields): Style member
12622 names. Only call fprintf_symbol_filtered for static members.
12623 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12624 * f-valprint.c (f_val_print): Style member names.
12625 * f-typeprint.c (f_type_print_base): Style member names.
12626 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12627 call fprintf_symbol_filtered for static members.
12628 (cp_print_class_member): Style member names.
12629 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12630 member names.
12631 * ada-valprint.c (ada_print_scalar): Style enum names.
12632 (ada_val_print_enum): Likewise.
12633 * ada-typeprint.c (print_enum_type): Style enum names.
12634
d4d947ae
TT
126352020-02-21 Tom Tromey <tom@tromey.com>
12636
12637 * psympriv.h (struct partial_symtab): Update comment.
12638
e94e944b
TT
126392020-02-21 Tom Tromey <tromey@adacore.com>
12640
12641 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12642 type is CORE_ADDR.
12643
1eb73179
TV
126442020-02-21 Tom de Vries <tdevries@suse.de>
12645
12646 PR gdb/25534
12647 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12648 if dependencies[i]->user != NULL.
12649
4f180d53
AT
126502020-02-21 Ali Tamur <tamur@google.com>
12651
12652 * dwarf2/read.c (dwarf2_name): Add null check.
12653
22b6cd70
TT
126542020-02-20 Tom Tromey <tom@tromey.com>
12655
12656 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12657 ">=", in binary search.
12658 (dwarf2_find_containing_comp_unit): New overload.
12659 (run_test): New self-test.
12660 (_initialize_dwarf2_read): Register new test.
12661
bd0cf5a6
NC
126622020-02-20 Nelson Chu <nelson.chu@sifive.com>
12663
12664 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12665 * riscv-tdep.h: Likewise.
12666 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12667 rv32-only CSR.
12668 * features/riscv/64bit-csr.xml: Regenerated.
12669
3f702acd
SDJ
126702020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12671 Tom Tromey <tom@tromey.com>
12672
12673 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12674 of 'fputc_unfiltered'.
12675 (putchar_unfiltered): Call 'fputc_unfiltered'.
12676 (fputc_unfiltered): Call 'fputs_unfiltered'.
12677
d13c7322
AB
126782020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12679
12680 * config.in: Regenerate.
12681 * configure: Regenerate.
12682 * configure.ac: Add --with-python-libdir option.
12683 * main.c: Use WITH_PYTHON_LIBDIR.
12684
869d8950
TT
126852020-02-19 Tom Tromey <tom@tromey.com>
12686
12687 * symtab.c (general_symbol_info::compute_and_set_names): Use
12688 obstack_strndup. Simplify call to symbol_set_demangled_name.
12689
298e9637
SM
126902020-02-19 Simon Marchi <simon.marchi@efficios.com>
12691
12692 * dwarf2/read.c (allocate_signatured_type_table,
12693 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12694 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12695 Remove objfile parameter, update all callers.
12696
08410482
DE
126972020-02-19 Doug Evans <dje@google.com>
12698
12699 PR rust/25535
12700 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12701 rust_enum_variant calculation.
12702
dfdeeca1
TT
127032020-02-19 Tom Tromey <tromey@adacore.com>
12704
12705 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12706
2ef5453b
TT
127072020-02-19 Tom Tromey <tromey@adacore.com>
12708
12709 * ada-lang.c (cache_symbol): Use obstack_strdup.
12710
9f1528a1
AB
127112020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12712
12713 * configure: Regenerate.
12714
d3c22fa8
TT
127152020-02-19 Tom Tromey <tromey@adacore.com>
12716
12717 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12718 NULL check.
12719
bf84f706
MR
127202020-02-19 Maciej W. Rozycki <macro@wdc.com>
12721
12722 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12723
d1c9b20f
AB
127242020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12725
12726 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12727 if GDBSERVER is not defined.
12728 (riscv_tdesc_cache): Likewise, also store const target_desc.
12729 (STATIC_IN_GDB): Define.
12730 (riscv_create_target_description): Update declaration with
12731 STATIC_IN_GDB.
12732 (riscv_lookup_target_description): New function, only define if
12733 GDBSERVER is not defined.
12734 * arch/riscv.h (riscv_create_target_description): Declare only
12735 when GDBSERVER is defined.
12736 (riscv_lookup_target_description): New declaration when GDBSERVER
12737 is not defined.
12738 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12739 (riscv_linux_read_features): ...this, and return
12740 riscv_gdbarch_features instead of target_desc.
12741 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12742 (riscv_linux_read_description): Rename to...
12743 (riscv_linux_read_features): ...this.
12744 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12745 Update to use riscv_gdbarch_features and
12746 riscv_lookup_target_description.
12747 * riscv-tdep.c (riscv_find_default_target_description): Use
12748 riscv_lookup_target_description instead of
12749 riscv_create_target_description.
12750
373d7ac0
SM
127512020-02-18 Simon Marchi <simon.marchi@efficios.com>
12752
12753 * valprint.c (generic_val_print_enum_1): When printing a flag
12754 enum with value 0 and there is no enumerator with value 0, print
12755 just "0" instead of "(unknown: 0x0)".
12756
b29a2df0
SM
127572020-02-18 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * valprint.c (generic_val_print_enum_1): Print unknown part of
12760 flag enum in hex.
12761
6740f0cc
SM
127622020-02-18 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12765 flag enums to contain duplicate enumerators.
12766 * valprint.c (generic_val_print_enum_1): Update comment.
12767
edd45eb0
SM
127682020-02-18 Simon Marchi <simon.marchi@efficios.com>
12769
12770 * dwarf2/read.c: Include "count-one-bits.h".
12771 (update_enumeration_type_from_children): If an enumerator has
12772 multiple bits set, don't treat the enumeration as a "flag enum".
12773 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12774 of flag enums have 0 or 1 bit set.
12775
6d0cf446
BE
127762020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12777
12778 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12779 conversion.
12780 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12781 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12782 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12783 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12784 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12785
7001c1b7
SM
127862020-02-18 Simon Marchi <simon.marchi@efficios.com>
12787
12788 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12789
fdb61c6c
SM
127902020-02-14 Simon Marchi <simon.marchi@efficios.com>
12791
12792 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12793 displaced_step_closure_up.
12794 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12795 (struct displaced_step_closure_up):
12796 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12797 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12798 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12799 Likewise.
12800 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12801 * gdbarch.c, gdbarch.h: Re-generate.
12802 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12803 displaced_step_closure_up.
12804 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12805 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12806 * infrun.h (displaced_step_closure_up): New type alias.
12807 (struct displaced_step_inferior_state) <step_closure>: Change
12808 type to displaced_step_closure_up.
12809 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12810 displaced_step_closure_up.
12811 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12812
a4a38eb4
TT
128132020-02-14 Tom Tromey <tom@tromey.com>
12814
12815 * minidebug.c (gnu_debug_key): New global.
12816 (find_separate_debug_file_in_section): Use it.
12817
e8217e61
SM
128182020-02-14 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12821 std::unique_ptr.
12822 * gdbarch.c: Re-generate.
12823 * gdbarch.h: Re-generate.
12824 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12825 change.
12826 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12827 type to std::unique_ptr.
12828 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12829 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12830 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12831 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12832 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12833 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12834 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12835 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12836 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12837
d8d83535
SM
128382020-02-14 Simon Marchi <simon.marchi@efficios.com>
12839
12840 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12841 std::unique_ptr.
12842 (displaced_step_clear): Rename to...
12843 (displaced_step_reset): ... this. Just call displaced->reset ().
12844 (displaced_step_clear_cleanup): Rename to...
12845 (displaced_step_reset_cleanup): ... this.
12846 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12847 (displaced_step_fixup): Likewise.
12848 (resume_1): Likewise.
12849 (handle_inferior_event): Restore child's memory before calling
12850 displaced_step_fixup on the parent.
12851 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12852 to std::unique_ptr.
12853 <step_closure>: Change type to std::unique_ptr.
12854
5f661e03
SM
128552020-02-14 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * arm-tdep.c: Include count-one-bits.h.
12858 (cleanup_block_store_pc): Use count_one_bits.
12859 (cleanup_block_load_pc): Use count_one_bits.
12860 (arm_copy_block_xfer): Use count_one_bits.
12861 (thumb2_copy_block_xfer): Use count_one_bits.
12862 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12863 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12864 (thumb_get_next_pcs_raw): Use count_one_bits.
12865 (arm_get_next_pcs_raw): Use count_one_bits_l.
12866 * arch/arm.c (bitcount): Remove.
12867 * arch/arm.h (bitcount): Remove.
12868
8084e579
TT
128692020-02-14 Tom Tromey <tromey@adacore.com>
12870
12871 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12872 Update.
12873 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12874 * dwarf2/loc.c (call_site_find_chain_1): Return
12875 unique_xmalloc_ptr.
12876 (call_site_find_chain): Likewise.
12877
258bf0ee
RB
128782020-02-14 Richard Biener <rguenther@suse.de>
12879
12880 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12881 on expression with division operators.
12882
f98a8458
AKS
128832020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12884
12885 * MAINTAINERS (Write After Approval): Adding myself.
12886
d1437c0e
TT
128872020-02-12 Tom Tromey <tom@tromey.com>
12888
12889 * event-loop.c (event_data, gdb_event, event_handler_func):
12890 Remove.
12891
3d4560f7
TT
128922020-02-12 Tom Tromey <tom@tromey.com>
12893
12894 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12895 (dwarf2_frame_objfile_data): Add comment.
12896 (find_comp_unit, set_comp_unit): New functions.
12897 (dwarf2_frame_find_fde): Use find_comp_unit.
12898 (dwarf2_build_frame_info): Use set_comp_unit.
12899
21982304
TT
129002020-02-12 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12903 (comp_unit): Don't initialize objfile.
12904 (execute_cfa_program): Add text_offset parameter.
12905 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12906 (dwarf2_frame_cache): Update.
12907 (dwarf2_build_frame_info): Don't set "objfile" member.
12908
4debb237
TT
129092020-02-12 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12912 (decode_frame_entry): Likewise.
12913 (dwarf2_build_frame_info): Update.
12914
0d404d44
TT
129152020-02-12 Tom Tromey <tom@tromey.com>
12916
12917 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12918 (decode_frame_entry_1): Use the comp_unit obstack.
12919
a7a3ae5c
TT
129202020-02-12 Tom Tromey <tom@tromey.com>
12921
12922 * dwarf2/frame.c (struct comp_unit): Add initializers and
12923 constructor.
12924 (dwarf2_frame_objfile_data): Store a comp_unit.
12925 (dwarf2_frame_find_fde): Update.
12926 (dwarf2_build_frame_info): Use "new".
12927
a9d65418
TT
129282020-02-12 Tom Tromey <tom@tromey.com>
12929
12930 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12931 (dwarf2_fde_table): Typedef for std::vector.
12932 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12933 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12934 (decode_frame_entry): Update.
12935 (dwarf2_build_frame_info): Use "new".
12936
7559c217
CB
129372020-02-12 Christian Biesinger <cbiesinger@google.com>
12938
12939 * arm-tdep.c (arm_gdbarch_init): Update.
12940 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12941 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12942 have_neon, is_m>: Change to bool.
12943
aeefc73c
CB
129442020-02-12 Christian Biesinger <cbiesinger@google.com>
12945
12946 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12947
d27b8e5f
TT
129482020-02-12 Tom Tromey <tom@tromey.com>
12949
12950 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12951
cd5900f3
HD
129522020-02-12 Hannes Domani <ssbssa@yahoo.de>
12953
12954 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12955 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12956
f056b22b
TT
129572020-02-11 Tom Tromey <tom@tromey.com>
12958
12959 * psymtab.h: Update comment.
12960
f92ff6b5
TT
129612020-02-11 Tom Tromey <tom@tromey.com>
12962
12963 * gdb_obstack.h (struct auto_obstack): Use
12964 DISABLE_COPY_AND_ASSIGN.
12965
3fd6912b
TT
129662020-02-11 Tom Tromey <tom@tromey.com>
12967
12968 * dwarf2/frame.h (struct objfile): Don't forward declare.
12969
69ed9b74
CB
129702020-02-11 Christian Biesinger <cbiesinger@google.com>
12971
12972 * cris-tdep.c (cris_supply_gregset): Change signature to match
12973 what struct regset expects.
12974 (cris_regset): New struct.
12975 (fetch_core_registers): Remove.
12976 (cris_iterate_over_regset_sections): New function.
12977 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12978 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12979
bda874f6
CB
129802020-02-11 Christian Biesinger <cbiesinger@google.com>
12981
12982 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12983 registers.
12984
754e1564
CB
129852020-02-11 Christian Biesinger <cbiesinger@google.com>
12986
12987 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12988
8ddd8e0e
SM
129892020-02-11 Simon Marchi <simon.marchi@efficios.com>
12990
12991 * configure: Re-generate.
12992
898e7f60
SM
129932020-02-11 Simon Marchi <simon.marchi@efficios.com>
12994
12995 * configure: Re-generate.
12996
58df732b
SM
129972020-02-11 Simon Marchi <simon.marchi@efficios.com>
12998
12999 * acinclude: Update warning.m4 path.
13000 * warning.m4: Move to gdbsupport.
13001
da5bd37e
TT
130022020-02-11 Tom Tromey <tromey@adacore.com>
13003
13004 * remote.c (remote_console_output): Update.
13005 * printcmd.c (printf_command): Update.
13006 * event-loop.c (gdb_wait_for_event): Update.
13007 * linux-nat.c (sigchld_handler): Update.
13008 * remote-sim.c (gdb_os_write_stdout): Update.
13009 (gdb_os_flush_stdout): Update.
13010 (gdb_os_flush_stderr): Update.
13011 (gdb_os_write_stderr): Update.
13012 * exceptions.c (print_exception): Update.
13013 * remote-fileio.c (remote_fileio_func_read): Update.
13014 (remote_fileio_func_write): Update.
13015 * tui/tui.c (tui_enable): Update.
13016 * tui/tui-interp.c (tui_interp::init): Update.
13017 * utils.c (init_page_info): Update.
13018 (putchar_unfiltered, fputc_unfiltered): Update.
13019 (gdb_flush): Update.
13020 (emit_style_escape): Update.
13021 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13022 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13023 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13024 (stderr_file::write): Update.
13025 (stderr_file::puts): Update.
13026 * ui-file.h (ui_file_isatty, ui_file_write)
13027 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13028 (ui_file_puts): Don't declare.
13029
85f0dd3c
TV
130302020-02-10 Tom de Vries <tdevries@suse.de>
13031
13032 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13033 sentinel to char *.
13034
2e927613
TV
130352020-02-09 Tom de Vries <tdevries@suse.de>
13036
13037 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13038 filename if it matches "<artificial>".
13039
6bafc845
HD
130402020-02-09 Hannes Domani <ssbssa@yahoo.de>
13041
13042 * windows-tdep.c (struct enum_value_name): New struct.
13043 (create_enum): New function.
13044 (windows_get_siginfo_type): Create and use enum types.
13045
7928d571
HD
130462020-02-09 Hannes Domani <ssbssa@yahoo.de>
13047
13048 * NEWS: Mention $_siginfo support for Windows.
13049 * windows-nat.c (handle_exception): Set siginfo_er.
13050 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13051 (windows_xfer_siginfo): New function.
13052 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13053 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13054 (init_windows_gdbarch_data): New function.
13055 (get_windows_gdbarch_data): New function.
13056 (windows_get_siginfo_type): New function.
13057 (windows_init_abi): Register windows_get_siginfo_type.
13058 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13059
6751ebae
TT
130602020-02-08 Tom Tromey <tom@tromey.com>
13061
13062 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13063 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13064 <keep>: Declare method.
13065 <m_keep>: Remove member.
13066 <~cutu_reader>: Remove.
13067 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13068 (cutu_reader::cutu_reader): Update.
13069 (cutu_reader::keep): Rename from ~cutu_reader.
13070 (process_psymtab_comp_unit, build_type_psymtabs_1)
13071 (process_skeletonless_type_unit, load_partial_comp_unit)
13072 (load_full_comp_unit, dwarf2_read_addr_index)
13073 (read_signatured_type): Update.
13074
135f5437
TT
130752020-02-08 Tom Tromey <tom@tromey.com>
13076
13077 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13078 "want_partial_unit" parameter.
13079 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13080 Inline check for DW_TAG_partial_unit.
13081 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13082
9f66ff1c
TT
130832020-02-08 Tom Tromey <tom@tromey.com>
13084
13085 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13086 read.c.
13087 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13088 read.c.
13089
c8a7a66f
TT
130902020-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2/read.c (read_address): Move to comp-unit.c.
13093 (dwarf2_rnglists_process, dwarf2_ranges_process)
13094 (read_attribute_value, dwarf_decode_lines_1)
13095 (var_decode_location, decode_locdesc): Update.
13096 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13097 read.c. Remove "cu" parameter.
13098 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13099 method.
13100
8266302d
TT
131012020-02-08 Tom Tromey <tom@tromey.com>
13102
13103 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13104 (read_indirect_line_string): Update.
13105 * dwarf2/comp-unit.c (read_offset): Remove.
13106 (read_comp_unit_head): Update.
13107 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13108 method.
13109 (read_offset): Don't declare.
13110
4057dfde
TT
131112020-02-08 Tom Tromey <tom@tromey.com>
13112
13113 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13114 * dwarf2/read.c (struct comp_unit_head): Move to
13115 dwarf2/comp-unit.h.
13116 (enum class rcuh_kind): Move to comp-unit.h.
13117 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13118 (read_comp_unit_head, error_check_comp_unit_head)
13119 (read_and_check_comp_unit_head): Move to comp-unit.c.
13120 (read_offset, dwarf_unit_type_name): Likewise.
13121 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13122 (cutu_reader::cutu_reader, read_call_site_scope)
13123 (find_partial_die, follow_die_offset): Update.
13124 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13125
24aa364d
TT
131262020-02-08 Tom Tromey <tom@tromey.com>
13127
13128 * dwarf2/read.c (read_offset_1): Move to leb.c.
13129 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13130 (dwarf_decode_macro_bytes): Update.
13131 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13132 * dwarf2/leb.h (read_offset): Declare.
13133
2c7d5afc
TT
131342020-02-08 Tom Tromey <tom@tromey.com>
13135
13136 * dwarf2/read.c (dwarf2_section_size): Remove.
13137 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13138 Update.
13139 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13140
4075cb26
TT
131412020-02-08 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.c (read_initial_length): Move to leb.c.
13144 * dwarf2/leb.h (read_initial_length): Declare.
13145 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13146 handle_nonstd parameter.
13147 * dwarf2/frame.c (read_initial_length): Remove.
13148 (decode_frame_entry_1): Update.
13149
09ba997f
TT
131502020-02-08 Tom Tromey <tom@tromey.com>
13151
13152 * dwarf2/loc.c (dwarf2_find_location_expression)
13153 (dwarf_evaluate_loc_desc::get_tls_address)
13154 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13155 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13156 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13157 (dwarf2_compile_property_to_c)
13158 (dwarf2_loc_desc_get_symbol_read_needs)
13159 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13160 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13161 (loclist_describe_location, loclist_tracepoint_var_ref)
13162 (loclist_generate_c_location): Update.
13163 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13164 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13165 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13166 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13167 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13168 (dwarf2_per_cu_data::addr_size)
13169 (dwarf2_per_cu_data::ref_addr_size)
13170 (dwarf2_per_cu_data::text_offset)
13171 (dwarf2_per_cu_data::addr_type): Now methods.
13172 (per_cu_header_read_in): Make per_cu "const".
13173 (dwarf2_version): Remove.
13174 (dwarf2_per_cu_data::int_type): Now a method.
13175 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13176 (set_die_type, read_array_type, read_subrange_index_type)
13177 (read_tag_string_type, read_subrange_type): Update.
13178 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13179 offset_size, ref_addr_size, text_offset, addr_type, version,
13180 objfile, int_type, addr_sized_int_type>: Declare methods.
13181
96c738c0
TT
131822020-02-08 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13185 Move earlier.
13186
8fdd972c
TT
131872020-02-08 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/read.h (dwarf_line_debug): Declare.
13190 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13191 * dwarf2/read.c: Move line_header code to new files.
13192 (dwarf_line_debug): No longer static.
13193 * dwarf2/line-header.c: New file.
13194 * dwarf2/line-header.h: New file.
13195
03075812
TT
131962020-02-08 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/read.c (struct line_header) <file_full_name,
13199 file_file_name>: Return unique_xmalloc_ptr.
13200 (line_header::file_file_name): Update.
13201 (line_header::file_full_name): Update.
13202 (dw2_get_file_names_reader): Update.
13203 (macro_start_file): Update.
13204
bb822404
TT
132052020-02-08 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/read.c (struct line_header) <file_full_name,
13208 file_file_name>: Declare methods.
13209 (dw2_get_file_names_reader): Update.
13210 (file_file_name): Now a method.
13211 (file_full_name): Likewise.
13212 (macro_start_file): Update.
13213
009b64fc
TT
132142020-02-08 Tom Tromey <tom@tromey.com>
13215
13216 * dwarf2/read.c (dwarf_always_disassemble)
13217 (show_dwarf_always_disassemble): Move to loc.c.
13218 (_initialize_dwarf2_read): Move "always-disassemble" registration
13219 to loc.c.
13220 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13221 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13222 static.
13223 (show_dwarf_always_disassemble): Move from read.c.
13224 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13225
5895093f
TT
132262020-02-08 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13229 (create_quick_file_names_table): Return htab_up.
13230 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13231 Update.
13232 * dwarf2/read.h (struct dwarf2_per_objfile)
13233 <quick_file_names_table>: Now htab_up.
13234
b3b32279
TT
132352020-02-08 Tom Tromey <tom@tromey.com>
13236
13237 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13238
1d33d811
TT
132392020-02-08 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13242 Rewrite.
13243 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13244 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13245 (abbrev_table::abbrev_table): No longer inline.
13246 (ABBREV_HASH_SIZE): Remove.
13247 (abbrev_table::m_abbrevs): Now an htab_up.
13248
86de1d91
TT
132492020-02-08 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13252 (cutu_reader): Update.
13253 (build_type_psymtabs_1): Update.
13254 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13255 (abbrev_table::alloc_abbrev): Update.
13256 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13257 (abbrev_table::read): New static method, renamed from
13258 abbrev_table_read_table.
13259 (abbrev_table::alloc_abbrev)
13260 (abbrev_table::add_abbrev): Now private.
13261 (abbrev_table::abbrev_table): Now private.
13262 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13263
0335378b
TT
132642020-02-08 Tom Tromey <tom@tromey.com>
13265
13266 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13267 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13268 htab_up.
13269
48b490f2
TT
132702020-02-08 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13273 htab_up.
13274 (lookup_dwo_unit_in_dwp): Update.
13275 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13276 on obstack.
13277
bc68fb19
TT
132782020-02-08 Tom Tromey <tom@tromey.com>
13279
13280 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13281 obstack.
13282
d15acc42
TT
132832020-02-08 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13286 line_header_hash.
13287 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13288 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13289 Change type to htab_up.
13290
eaa5fa8b
TT
132912020-02-08 Tom Tromey <tom@tromey.com>
13292
13293 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13294 htab_up. Don't allocate on obstack.
13295 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13296 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13297 Change type to htab_up.
13298
b0b6a987
TT
132992020-02-08 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13302 Change type to htab_up.
13303 * dwarf2/read.c (create_signatured_type_table_from_index)
13304 (create_signatured_type_table_from_debug_names)
13305 (create_all_type_units, add_type_unit)
13306 (lookup_dwo_signatured_type, lookup_signatured_type)
13307 (process_skeletonless_type_unit): Update.
13308 (create_debug_type_hash_table, create_debug_types_hash_table):
13309 Change type of types_htab.
13310 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13311 htab_up. Don't allocate on obstack.
13312 (create_cus_hash_table): Change type of cus_htab parameter.
13313 (struct dwo_file) <cus, tus>: Now htab_up.
13314 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13315 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13316 (queue_and_load_all_dwo_tus): Update.
13317 * dwarf2/index-write.c (write_gdbindex): Update.
13318 (write_debug_names): Update.
13319
39856def
TT
133202020-02-08 Tom Tromey <tom@tromey.com>
13321
13322 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13323 dwarf2/read.c. Remove "next" member. Add constructor ntad
13324 destructor.
13325 (struct dwarf2_per_objfile) <queue>: New member.
13326 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13327 dwarf2/read.h.
13328 (dwarf2_queue, dwarf2_queue_tail): Remove.
13329 (class dwarf2_queue_guard): Add parameter to constructor. Use
13330 DISABLE_COPY_AND_ASSIGN.
13331 <m_per_objfile>: New member.
13332 <~dwarf2_queue_guard>: Rewrite.
13333 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13334 Update.
13335 (~dwarf2_queue_item): New.
13336
3e225074
TT
133372020-02-08 Tom Tromey <tom@tromey.com>
13338
13339 * dwarf2/read.c (struct die_info) <has_children>: New member.
13340 (dw2_get_file_names_reader): Remove has_children.
13341 (dw2_get_file_names): Update.
13342 (read_cutu_die_from_dwo): Remove has_children.
13343 (cutu_reader::init_tu_and_read_dwo_dies)
13344 (cutu_reader::cutu_reader): Update.
13345 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13346 Remove has_children.
13347 (build_type_psymtabs_1, process_skeletonless_type_unit)
13348 (load_partial_comp_unit, load_full_comp_unit): Update.
13349 (create_dwo_cu_reader): Remove has_children.
13350 (create_cus_hash_table, read_die_and_children): Update.
13351 (read_full_die_1,read_full_die): Remove has_children.
13352 (read_signatured_type): Update.
13353 (class cutu_reader) <has_children>: Remove.
13354
82ca8957
TT
133552020-02-08 Tom Tromey <tom@tromey.com>
13356
13357 * dwarf2/expr.c: Rename from dwarf2expr.c.
13358 * dwarf2/expr.h: Rename from dwarf2expr.h.
13359 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13360 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13361 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13362 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13363 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13364 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13365 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13366 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13367 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13368 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13369 * dwarf2/loc.c: Rename from dwarf2loc.c.
13370 * dwarf2/loc.h: Rename from dwarf2loc.h.
13371 * dwarf2/read.c: Rename from dwarf2read.c.
13372 * dwarf2/read.h: Rename from dwarf2read.h.
13373 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13374 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13375 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13376 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13377 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13378 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13379 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13380 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13381 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13382 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13383 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13384 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13385 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13386 Update.
13387 * Makefile.in (COMMON_SFILES): Update.
13388 (HFILES_NO_SRCDIR): Update.
13389
9e35d499
TT
133902020-02-08 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13393 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13394
1eba2311
TT
133952020-02-08 Tom Tromey <tom@tromey.com>
13396
13397 * dwarf2read.h (struct die_info): Don't declare.
13398
e41c2da2
TT
133992020-02-08 Tom Tromey <tom@tromey.com>
13400
13401 * dwarf2read.h (die_info_ptr): Remove typedef.
13402
4fc6c0d5
TT
134032020-02-08 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2read.c (read_call_site_scope)
13406 (handle_data_member_location, dwarf2_add_member_fn)
13407 (mark_common_block_symbol_computed, read_common_block)
13408 (attr_to_dynamic_prop, partial_die_info::read)
13409 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13410 (dwarf2_symbol_mark_computed, set_die_type): Update.
13411 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13412 method.
13413 (attr_form_is_block): Don't declare.
13414 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13415
cd6c91b4
TT
134162020-02-08 Tom Tromey <tom@tromey.com>
13417
13418 * dwarf2read.c (dwarf2_find_base_address, )
13419 (read_call_site_scope, rust_containing_type)
13420 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13421 (handle_data_member_location, dwarf2_add_member_fn)
13422 (get_alignment, read_structure_type, process_structure_scope)
13423 (mark_common_block_symbol_computed, read_common_block)
13424 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13425 (partial_die_info::read, read_attribute_value, new_symbol)
13426 (lookup_die_type, dwarf2_get_ref_die_offset)
13427 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13428 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13429 (dwarf2_symbol_mark_computed): Update.
13430 * dwarf2/attribute.h (struct attribute) <value_as_address,
13431 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13432 methods.
13433 (value_as_address, attr_form_is_section_offset)
13434 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13435 * dwarf2/attribute.c (attribute::value_as_address)
13436 (attribute::form_is_section_offset, attribute::form_is_constant)
13437 (attribute::form_is_ref): Now methods.
13438
162dce55
TT
134392020-02-08 Tom Tromey <tom@tromey.com>
13440
13441 * dwarf2read.c (struct attribute, DW_STRING)
13442 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13443 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13444 (attr_form_is_block, attr_form_is_section_offset)
13445 (attr_form_is_constant, attr_form_is_ref): Move.
13446 * dwarf2/attribute.h: New file.
13447 * dwarf2/attribute.c: New file, from dwarf2read.c.
13448 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13449
3054dd54
TT
134502020-02-08 Tom Tromey <tom@tromey.com>
13451
13452 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13453 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13454 Move.
13455 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13456 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13457 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13458 abbrev.c.
13459 * dwarf2/abbrev.h: New file.
13460 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13461 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13462
96b79293
TT
134632020-02-08 Tom Tromey <tom@tromey.com>
13464
13465 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13466 (dwarf2_section_size, dwarf2_get_section_info)
13467 (create_signatured_type_table_from_debug_names)
13468 (create_addrmap_from_aranges, read_debug_names_from_section)
13469 (get_gdb_index_contents_from_section, read_comp_unit_head)
13470 (error_check_comp_unit_head, read_abbrev_offset)
13471 (create_debug_type_hash_table, init_cu_die_reader)
13472 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13473 (read_comp_units_from_section, create_cus_hash_table)
13474 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13475 (create_dwp_v2_section, dwarf2_rnglists_process)
13476 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13477 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13478 (read_indirect_string_from_dwz, read_addr_index_1)
13479 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13480 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13481 (fill_in_loclist_baton): Update.
13482 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13483 get_containing_section, get_bfd_owner, get_bfd_section,
13484 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13485 (dwarf2_read_section, get_section_name, get_section_file_name)
13486 (get_containing_section, get_section_bfd_owner)
13487 (get_section_bfd_section, get_section_name, get_section_file_name)
13488 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13489 declare.
13490 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13491 (dwarf2_section_info::get_bfd_owner)
13492 (dwarf2_section_info::get_bfd_section)
13493 (dwarf2_section_info::get_name)
13494 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13495 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13496 (dwarf2_section_info::read): Now methods.
13497 * dwarf-index-write.c (class debug_names): Update.
13498
2c86cff9
TT
134992020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13502 Move to dwarf2/section.h.
13503 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13504 (get_section_bfd_section, get_section_name)
13505 (get_section_file_name, get_section_id, get_section_flags)
13506 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13507 dwarf2/section.c.
13508 * dwarf2/section.h: New file.
13509 * dwarf2/section.c: New file, from dwarf2read.c.
13510 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13511
f4382c45
TT
135122020-02-08 Tom Tromey <tom@tromey.com>
13513
13514 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13515 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13516 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13517 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13518 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13519 * dwarf2/leb.h: New file, from dwarf2read.c.
13520 * dwarf2/leb.c: New file, from dwarf2read.c.
13521 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13522 Remove.
13523 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13524 (COMMON_SFILES): Add dwarf2/leb.c.
13525
01840b7a
JB
135262020-02-08 Joel Brobecker <brobecker@adacore.com>
13527
13528 GDB 9.1 released.
13529
dfcb27e4
IB
135302020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13531
13532 PR gdb/25190:
aac66a4c
SM
13533 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13534 * gdb/remote.c (remote_console_output): Update.
13535 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13536 (ui_file_puts): ...this.
13537 * gdb/ui-file.h (ui_file_puts): Add declaration.
13538 * gdb/utils.c (emit_style_escape): Update.
13539 (flush_wrap_buffer): Update.
13540 (fputs_maybe_filtered): Update.
13541 (fputs_unfiltered): Add function.
dfcb27e4 13542
faa17681
IB
135432020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13544
aac66a4c
SM
13545 * gdb/event-loop.c (gdb_wait_for_event): Update.
13546 * gdb/printcmd.c (printf_command): Update.
13547 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13548 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13549 (gdb_os_flush_stderr): Update.
13550 * gdb/remote.c (remote_console_output): Update.
13551 * gdb/ui-file.c (gdb_flush): Rename to...
13552 (ui_file_flush): ...this.
13553 (stderr_file::write): Update.
13554 (stderr_file::puts): Update.
13555 * gdb/ui-file.h (gdb_flush): Rename to...
13556 (ui_file_flush): ...this.
13557 * gdb/utils.c (gdb_flush): Add function.
13558 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13559
5abbbe1d
TT
135602020-02-07 Tom Tromey <tromey@adacore.com>
13561
13562 PR breakpoints/24915:
13563 * source.c (find_and_open_source): Do not check basenames_may_differ.
13564
919adfe8
TT
135652020-02-07 Tom Tromey <tom@tromey.com>
13566
13567 * README: Update gdbserver documentation.
13568 * gdbserver: Move to top level.
13569 * configure.tgt (build_gdbserver): Remove.
13570 * configure.ac: Remove --enable-gdbserver.
13571 * configure: Rebuild.
13572 * Makefile.in (distclean): Don't mention gdbserver.
13573
1d5d29e7
SV
135742020-02-06 Shahab Vahedi <shahab@synopsys.com>
13575
13576 * source-cache.c (source_cache::ensure): Surround
13577 get_plain_source_lines with a try/catch.
13578 (source_cache::get_line_charpos): Get rid of try/catch
13579 and only check for the return value of "ensure".
13580 * tui/tui-source.c (tui_source_window::set_contents):
13581 Simplify "nlines" calculation.
13582
6eb1129c
SV
135832020-02-06 Shahab Vahedi <shahab@synopsys.com>
13584
13585 * MAINTAINERS (Write After Approval): Add myself.
13586
c6a42d11
CB
135872020-02-05 Christian Biesinger <cbiesinger@google.com>
13588
13589 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13590 function call.
13591
c8ecdda6
CB
135922020-02-05 Christian Biesinger <cbiesinger@google.com>
13593
13594 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13595
f6480e70
MR
135962020-02-05 Maciej W. Rozycki <macro@wdc.com>
13597
13598 * nat/riscv-linux-tdesc.h: New file.
13599 * nat/riscv-linux-tdesc.c: New file, taking code from...
13600 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13601 ... here.
13602 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13603 NATDEPFILES.
13604
dcc9fbc6
AB
136052020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13606
13607 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13608 we don't set the fake simulator ptid to the null_ptid.
13609
719546c4
SM
136102020-02-03 Simon Marchi <simon.marchi@efficios.com>
13611
13612 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13613 * gdbthread.h (class thread_info) <resumed>: Likewise.
13614 * infrun.c (resume_1): Likewise.
13615 (proceed): Likewise.
13616 (infrun_thread_stop_requested): Likewise.
13617 (stop_all_threads): Likewise.
13618 (handle_inferior_event): Likewise.
13619 (restart_threads): Likewise.
13620 (finish_step_over): Likewise.
13621 (keep_going_stepped_thread): Likewise.
13622 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13623 (linux_handle_extended_wait): Likewise.
13624 * record-btrace.c (get_thread_current_frame_id): Likewise.
13625 * record-full.c (record_full_wait_1): Likewise.
13626 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13627 * target.c (target_resume): Likewise.
13628 * thread.c (set_running_thread): Likewise.
13629
e409c542
AKS
136302020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13631
13632 * f-valprint.c (f77_print_array_1): Changed datatype of index
13633 variable to LONGEST from int to enable it to contain bound
13634 values correctly.
13635
ee98c0da
MR
136362020-02-03 Maciej W. Rozycki <macro@wdc.com>
13637
13638 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13639 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13640 offsets according to FLEN determined.
13641 (riscv_linux_nat_target::read_description): Determine FLEN
13642 dynamically.
13643 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13644 according to FLEN determined.
13645 (riscv_linux_nat_target::store_registers): Likewise.
13646
aa66aac4
SV
136472020-02-01 Shahab Vahedi <shahab@synopsys.com>
13648
13649 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13650 when reg->group is empty and reggroup is not.
13651
fd9faca8
TT
136522020-01-31 Tom Tromey <tromey@adacore.com>
13653
13654 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13655 Call beneath target's mourn_inferior after unpushing.
13656
42330a68
AB
136572020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13658
13659 PR tui/9765
13660 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13661 have enough lines to fill the screen, still return the lowest
13662 address we found.
13663
7a27a45b
AB
136642020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13667 '-', '<', and '>' commands.
13668
c47f70e2
PA
136692020-01-29 Pedro Alves <palves@redhat.com>
13670 Sergio Durigan Junior <sergiodj@redhat.com>
13671
13672 * infcmd.c (construct_inferior_arguments): Assert that
13673 'argc' is greater than 0.
13674
5133a315
LM
136752020-01-29 Luis Machado <luis.machado@linaro.org>
13676
13677 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13678 (BRK_INSN_MASK): Define to 0xd4200000.
13679 (aarch64_program_breakpoint_here_p): New function.
13680 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13681 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13682 breakpoint.c.
13683 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13684 breakpoint.h
13685 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13686 call gdbarch_program_breakpoint_here_p.
13687 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13688 default_program_breakpoint_here_p, changed return type to bool and
13689 simplified.
13690 * breakpoint.h (program_breakpoint_here): Moved prototype to
13691 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13692 return type to bool.
13693 * gdbarch.c: Regenerate.
13694 * gdbarch.h: Regenerate.
13695 * gdbarch.sh (program_breakpoint_here_p): New method.
13696 * infrun.c (handle_signal_stop): Call
13697 gdbarch_program_breakpoint_here_p.
13698
168f8c6b
TT
136992020-01-26 Tom Tromey <tom@tromey.com>
13700
13701 * ctfread.c (struct ctf_fp_info): Reindent.
13702 (_initialize_ctfread): Remove.
13703
128a391f
TT
137042020-01-26 Tom Tromey <tom@tromey.com>
13705
13706 * psymtab.c (partial_map_expand_apply)
13707 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13708 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13709 (psym_print_stats, psym_expand_symtabs_for_function)
13710 (psym_map_symbol_filenames, psym_map_matching_symbols)
13711 (psym_expand_symtabs_matching)
13712 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13713 (maintenance_check_psymtabs): Use new methods.
13714 * psympriv.h (struct partial_symtab) <readin_p,
13715 get_compunit_symtab>: New methods.
13716 <readin, compunit_symtab>: Remove members.
13717 (struct standard_psymtab): New.
13718 (struct legacy_psymtab): Derive from standard_psymtab.
13719 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13720 standard_psymtab.
13721 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13722
0494dbec
TT
137232020-01-26 Tom Tromey <tom@tromey.com>
13724
13725 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13726 read_dependencies. Add assert.
13727 * psymtab.c (partial_symtab::read_dependencies): New method.
13728 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13729 method.
13730 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13731 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13732 read_dependencies.
13733 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13734 Add assert.
13735
8566b89b
TT
137362020-01-26 Tom Tromey <tom@tromey.com>
13737
13738 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13739 Call expand_psymtab.
13740 (xcoff_read_symtab): Call expand_psymtab.
13741 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13742 legacy_expand_psymtab.
13743 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13744 method.
13745 (struct legacy_psymtab) <expand_psymtab>: Implement.
13746 <legacy_expand_psymtab>: New member.
13747 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13748 (parse_partial_symbols): Set legacy_expand_psymtab.
13749 (psymtab_to_symtab_1): Change argument order. Call
13750 expand_psymtab.
13751 (new_psymtab): Set legacy_expand_psymtab.
13752 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13753 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13754 expand_psymtab.
13755 (dwarf2_psymtab::expand_psymtab): Rename from
13756 psymtab_to_symtab_1. Call expand_psymtab.
13757 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13758 (dbx_end_psymtab): Likewise.
13759 (dbx_psymtab_to_symtab_1): Change argument order. Call
13760 expand_psymtab.
13761 (dbx_read_symtab): Call expand_psymtab.
13762 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13763 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13764 (ctf_psymtab::read_symtab): Call expand_psymtab.
13765
077cbab2
TT
137662020-01-26 Tom Tromey <tom@tromey.com>
13767
13768 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13769 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13770 messages.
13771 * mdebugread.c (mdebug_read_symtab): Remove prints.
13772 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13773 assert.
13774 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13775
891813be
TT
137762020-01-26 Tom Tromey <tom@tromey.com>
13777
13778 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13779 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13780 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13781 legacy_symtab.
13782 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13783 * psymtab.c (psymtab_to_symtab): Call method.
13784 (dump_psymtab): Update.
13785 * psympriv.h (struct partial_symtab): Add virtual destructor.
13786 <read_symtab>: New method.
13787 (struct legacy_symtab): New.
13788 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13789 (struct pst_map) <pst>: Now a legacy_psymtab.
13790 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13791 (new_psymtab): Use legacy_psymtab.
13792 * dwarf2read.h (struct dwarf2_psymtab): New.
13793 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13794 * dwarf2read.c (dwarf2_create_include_psymtab)
13795 (dwarf2_build_include_psymtabs, create_type_unit_group)
13796 (create_partial_symtab, process_psymtab_comp_unit_reader)
13797 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13798 (set_partial_user): Use dwarf2_psymtab.
13799 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13800 (psymtab_to_symtab_1, process_full_comp_unit)
13801 (process_full_type_unit, dwarf2_ranges_read)
13802 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13803 (dwarf_decode_lines): Use dwarf2_psymtab.
13804 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13805 (add_address_entry_worker, write_one_signatured_type)
13806 (recursively_count_psymbols, recursively_write_psymbols)
13807 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13808 (write_debug_names): Likewise.
13809 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13810 <pst>: Now a legacy_psymtab.
13811 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13812 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13813 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13814 * ctfread.c (struct ctf_psymtab): New.
13815 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13816 ctf_psymtab.
13817 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13818 (create_partial_symtab): Return a ctf_psymtab.
13819 (scan_partial_symbols): Update.
13820
c3693a1d
TT
138212020-01-26 Tom Tromey <tom@tromey.com>
13822
13823 * xcoffread.c (xcoff_start_psymtab): Use new.
13824 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13825 renamed from start_psymtab_common.
13826 * psympriv.h (struct partial_symtab): Add new constructor.
13827 (start_psymtab_common): Don't declare.
13828 * mdebugread.c (parse_partial_symbols): Use new.
13829 * dwarf2read.c (create_partial_symtab): Use new.
13830 * dbxread.c (start_psymtab): Use new.
13831 * ctfread.c (create_partial_symtab): Use new.
13832
32caafd0
TT
138332020-01-26 Tom Tromey <tom@tromey.com>
13834
13835 * xcoffread.c (xcoff_end_psymtab): Use new.
13836 * psymtab.c (start_psymtab_common): Use new.
13837 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13838 Update.
13839 * psympriv.h (struct partial_symtab): Add parameters to
13840 constructor. Don't inline.
13841 (allocate_psymtab): Don't declare.
13842 * mdebugread.c (new_psymtab): Use new.
13843 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13844 * dbxread.c (dbx_end_psymtab): Use new.
13845
abaa2f23
TT
138462020-01-26 Tom Tromey <tom@tromey.com>
13847
13848 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13849 allocate_psymtab. Update documentation.
13850 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13851 allocate_psymtab. Do not use new.
13852 (allocate_psymtab): Use new. Update.
13853
6d94535f
TT
138542020-01-26 Tom Tromey <tom@tromey.com>
13855
13856 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13857 * psymtab.c (psym_print_stats): Update.
13858 * psympriv.h (struct partial_symtab) <readin,
13859 psymtabs_addrmap_supported, anonymous>: Now bool.
13860 * mdebugread.c (psymtab_to_symtab_1): Update.
13861 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13862 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13863 (process_full_comp_unit, process_full_type_unit): Update.
13864 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13865 * ctfread.c (psymtab_to_symtab): Update.
13866
6f17252b
TT
138672020-01-26 Tom Tromey <tom@tromey.com>
13868
13869 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13870 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13871 * psymtab.c (psymtab_storage): Delete psymtabs.
13872 (psymtab_storage::allocate_psymtab): Use new.
13873 (psymtab_storage::discard_psymtab): Use delete.
13874 * psympriv.h (struct partial_symtab): Add constructor and
13875 initializers.
13876
f6f1cebc
TT
138772020-01-26 Tom Tromey <tom@tromey.com>
13878
13879 * machoread.c: Do not include psympriv.h.
13880
e47e48f6
PW
138812020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13882
13883 * NEWS: Mention the new option and the set/show commands.
13884
a2fedca9
PW
138852020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13886
13887 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13888 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13889 (validate_exec_file): New variables, enums, functions.
13890 (exec_file_locate_attach, print_section_info): Style the filenames.
13891 (_initialize_exec): Install show_exec_file_mismatch_command and
13892 set_exec_file_mismatch_command.
13893 * gdbcore.h (validate_exec_file): Declare.
13894 * infcmd.c (attach_command): Call validate_exec_file.
13895 * remote.c ( remote_target::remote_add_inferior): Likewise.
13896
7ffa82e1
AB
138972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13898
13899 * frame.c (find_frame_sal): Move call to get_next_frame into more
13900 inner scope.
13901 * inline-frame.c (inilne_state) <inline_state>: Update argument
13902 types.
13903 (inilne_state) <skipped_symbol>: Rename to...
13904 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13905 (skip_inline_frames): Build vector of skipped symbols and use this
13906 to reate the inline_state.
13907 (inline_skipped_symbol): Add a comment and some assertions, fetch
13908 skipped symbol from the list.
13909
3d92a3e3
AB
139102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13911
13912 * buildsym.c (lte_is_less_than): Delete.
13913 (buildsym_compunit::end_symtab_with_blockvector): Create local
13914 lambda function to sort line table entries, and use
13915 std::stable_sort instead of std::sort.
13916 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13917 markers when looking for a previous line.
13918
94a72be7
AB
139192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13920
13921 * dwarf2read.c (lnp_state_machine::record_line): Include
13922 end_sequence parameter in debug print out. Record the line if we
13923 are at an end_sequence marker even if it's not the start of a
13924 statement.
13925 * symmisc.c (maintenance_print_one_line_table): Print end of
13926 sequence markers with 'END' not '0'.
13927
53af73bf
PA
139282020-01-24 Pedro Alves <palves@redhat.com>
13929
13930 PR gdb/25410
13931 * thread.c (scoped_restore_current_thread::restore): Use
13932 switch_to_inferior_no_thread.
13933 * exec.c: Include "progspace-and-thread.h".
13934 (add_target_sections, remove_target_sections):
13935 scoped_restore_current_pspace_and_thread instead of
13936 scoped_restore_current_thread.
13937 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13938 and aspace to the inferior before calling clone_program_space.
13939 Remove stale comment.
13940
3050c6f4
CB
139412020-01-24 Christian Biesinger <cbiesinger@google.com>
13942
13943 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13944 (arm_netbsd_nat_target::fetch_registers): ...this.
13945 (arm_nbsd_nat_target::store_registers): Rename to...
13946 (arm_netbsd_nat_target::store_registers): ...this.
13947
73685c7e
CB
139482020-01-24 Christian Biesinger <cbiesinger@google.com>
13949
13950 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13951 register_t.
13952
89203d40
CB
139532020-01-24 Christian Biesinger <cbiesinger@google.com>
13954
13955 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13956 Update comment.
13957 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13958 Likewise.
13959 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13960 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13961 the correct replacement (iterate_over_regset_sections).
13962 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13963 Update comment.
13964
1ba1ac88
AB
139652020-01-24 Graham Markall <graham.markall@embecosm.com>
13966
13967 PR gdb/23718
13968 * gdb/python/python.c (execute_gdb_command): Call
13969 async_enable_stdin in catch block.
13970
f3364a6d
AB
139712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13972
13973 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13974 SWITCH_THRU_ALL_UIS.
13975
733d0a67
AB
139762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13977
13978 PR tui/9765
13979 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13980 comment, add extra parameter, and update to store previous symbol
13981 when appropriate.
13982 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13983 add extra parameter.
13984 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13985 remove unneeded parameter, add try/catch around gdb_print_insn,
13986 rewrite to add items to asm_lines vector.
13987 (tui_find_backward_disassembly_start_address): New function.
13988 (tui_find_disassembly_address): Updated throughout.
13989 (tui_disasm_window::set_contents): Update for changes to
13990 tui_disassemble.
13991 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13992 number of lines to scroll.
13993
b3b3bada
SM
139942020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13995
13996 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13997 (SECT_OFF_DATA): Likewise.
13998 (SECT_OFF_RODATA): Likewise.
13999 (SECT_OFF_TEXT): Likewise.
14000 (SECT_OFF_BSS): Likewise.
14001 (struct objfile) <text_section_offset, data_section_offset>: New
14002 methods.
14003 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14004 objfile::text_section_offset.
14005 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14006 * coffread.c (coff_symtab_read): Likewise.
14007 (enter_linenos): Likewise.
14008 (process_coff_symbol): Likewise.
14009 * ctfread.c (get_objfile_text_range): Likewise.
14010 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14011 Use objfile::data_section_offset.
14012 * dwarf2-frame.c (execute_cfa_program): Use
14013 objfile::text_section_offset.
14014 (dwarf2_frame_find_fde): Likewise.
14015 * dwarf2read.c (create_addrmap_from_index): Likewise.
14016 (create_addrmap_from_aranges): Likewise.
14017 (dw2_find_pc_sect_compunit_symtab): Likewise.
14018 (process_psymtab_comp_unit_reader): Likewise.
14019 (add_partial_symbol): Likewise.
14020 (add_partial_subprogram): Likewise.
14021 (process_full_comp_unit): Likewise.
14022 (read_file_scope): Likewise.
14023 (read_func_scope): Likewise.
14024 (read_lexical_block_scope): Likewise.
14025 (read_call_site_scope): Likewise.
14026 (dwarf2_rnglists_process): Likewise.
14027 (dwarf2_ranges_process): Likewise.
14028 (dwarf2_ranges_read): Likewise.
14029 (dwarf_decode_lines_1): Likewise.
14030 (new_symbol): Likewise.
14031 (dwarf2_fetch_die_loc_sect_off): Likewise.
14032 (dwarf2_per_cu_text_offset): Likewise.
14033 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14034 * hppa-tdep.c (read_unwind_info): Likewise.
14035 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14036 * psympriv.h (struct partial_symtab): Likewise.
14037 * psymtab.c (find_pc_sect_psymtab): Likewise.
14038 * solib-svr4.c (enable_break): Likewise.
14039 * stap-probe.c (relocate_address): Use
14040 objfile::data_section_offset.
14041 * xcoffread.c (enter_line_range): Use
14042 objfile::text_section_offset.
14043 (read_xcoff_symtab): Likewise.
14044
ab53f382
SM
140452020-01-23 Simon Marchi <simon.marchi@efficios.com>
14046
14047 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14048 declaration to narrower scopes.
14049
e7eee665
SM
140502020-01-23 Simon Marchi <simon.marchi@efficios.com>
14051
14052 * darwin-nat.h (struct darwin_exception_msg, enum
14053 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14054 Move up.
14055 (class darwin_nat_target) <wait_1, check_new_threads,
14056 decode_exception_message, decode_message, stop_inferior,
14057 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14058 * darwin-nat.c (darwin_check_new_threads): Rename to...
14059 (darwin_nat_target::check_new_threads): ... this.
14060 (darwin_suspend_inferior_it): Remove.
14061 (darwin_decode_exception_message): Rename to...
14062 (darwin_nat_target::decode_exception_message): ... this.
14063 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14064 (darwin_decode_message): Rename to...
14065 (darwin_nat_target::decode_message): ... this.
14066 (cancel_breakpoint): Rename to...
14067 (darwin_nat_target::cancel_breakpoint): ... this.
14068 (darwin_wait): Rename to...
14069 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14070 instead of iterate_over_inferiors.
14071 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14072 (darwin_stop_inferior): Rename to...
14073 (darwin_nat_target::stop_inferior): ... this.
14074 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14075 (darwin_init_thread_list): Rename to...
14076 (darwin_nat_target::init_thread_list): ... this.
14077 (darwin_ptrace_him): Rename to...
14078 (darwin_nat_target::ptrace_him): ... this.
14079 (darwin_nat_target::create_inferior): Pass lambda function to
14080 fork_inferior.
14081 (darwin_nat_target::detach): Call stop_inferior instead of
14082 darwin_stop_inferior.
14083 * fork-inferior.h (fork_inferior): Change init_trace_fun
14084 parameter to gdb::function_view.
14085 * fork-inferior.c (fork_inferior): Likewise.
14086
c162ed3e
HD
140872020-01-23 Hannes Domani <ssbssa@yahoo.de>
14088
14089 * i386-cygwin-tdep.c (core_process_module_section): Update.
14090 * windows-nat.c (struct lm_info_windows): Add text_offset.
14091 (windows_xfer_shared_libraries): Update.
14092 * windows-tdep.c (windows_xfer_shared_library):
14093 Add text_offset_cached argument.
14094 * windows-tdep.h (windows_xfer_shared_library): Update.
14095
a1237872
SM
140962020-01-21 Simon Marchi <simon.marchi@efficios.com>
14097
14098 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14099
b3ee6dd9
SM
141002020-01-21 Simon Marchi <simon.marchi@efficios.com>
14101
14102 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14103 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14104 replace with range-based for.
14105 (gdbsim_interrupt_inferior): Remove.
14106 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14107 with a range-based for. Inline code from
14108 gdbsim_interrupt_inferior.
14109
f9fac3c8
SM
141102020-01-21 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * infrun.c (proceed): Fix indentation.
14113
f6474de9
TT
141142020-01-21 Tom Tromey <tromey@adacore.com>
14115
14116 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14117 * python/python.c (python_extension_ops): Update.
14118 (gdbpy_colorize): New function.
14119 * python/lib/gdb/__init__.py (colorize): New function.
14120 * extension.h (ext_lang_colorize): Declare.
14121 * extension.c (ext_lang_colorize): New function.
14122 * extension-priv.h (struct extension_language_ops) <colorize>: New
14123 member.
14124 * cli/cli-style.c (_initialize_cli_style): Update help text.
14125
f0c702d4
LM
141262020-01-21 Luis Machado <luis.machado@linaro.org>
14127
14128 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14129 <cond>: Change type to bool.
14130 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14131 (aarch64_displaced_step_cb): Likewise.
14132 (aarch64_displaced_step_tb): Likewise.
14133
1ab139e5
LM
141342020-01-21 Luis Machado <luis.machado@linaro.org>
14135
14136 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14137 output.
14138
0c271889
LM
141392020-01-21 Luis Machado <luis.machado@linaro.org>
14140
14141 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14142 <pc_adjust>: Adjust the documentation.
14143 (aarch64_displaced_step_fixup): Check if PC really moved before
14144 adjusting it.
14145
4d89c1c7
TT
141462020-01-19 Tom Tromey <tom@tromey.com>
14147
14148 * disasm.c (~gdb_disassembler): New destructor.
14149 (gdb_buffered_insn_length): Call disassemble_free_target.
14150 * disasm.h (class gdb_disassembler): Declare destructor. Use
14151 DISABLE_COPY_AND_ASSIGN.
14152
c0ab21c2
TT
141532020-01-19 Tom Tromey <tom@tromey.com>
14154
14155 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14156 (die_reader_func_ftype): Remove.
14157 (cutu_reader): New class.
14158 (dw2_get_file_names_reader): Remove "data" parameter.
14159 (dw2_get_file_names): Use cutu_reader.
14160 (create_debug_type_hash_table): Update.
14161 (read_cutu_die_from_dwo): Update comment.
14162 (lookup_dwo_unit): Add dwo_name parameter.
14163 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14164 die_reader_func_ftype and data parameters.
14165 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14166 Remove die_reader_func_ftype and data parameters.
14167 (~cutu_reader): New; from init_cutu_and_read_dies.
14168 (cutu_reader::cutu_reader): Rename from
14169 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14170 and data parameters.
14171 (init_cutu_and_read_dies_simple): Remove.
14172 (struct process_psymtab_comp_unit_data): Remove.
14173 (process_psymtab_comp_unit_reader): Remove data parameter; add
14174 want_partial_unit and pretend_language parameters.
14175 (process_psymtab_comp_unit): Use cutu_reader.
14176 (build_type_psymtabs_reader): Remove data parameter.
14177 (build_type_psymtabs_1): Use cutu_reader.
14178 (process_skeletonless_type_unit): Likewise.
14179 (load_partial_comp_unit_reader): Remove.
14180 (load_partial_comp_unit): Use cutu_reader.
14181 (load_full_comp_unit_reader): Remove.
14182 (load_full_comp_unit): Use cutu_reader.
14183 (struct create_dwo_cu_data): Remove.
14184 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14185 dwo_unit parameters.
14186 (create_cus_hash_table): Use cutu_reader.
14187 (struct dwarf2_read_addr_index_data): Remove.
14188 (dwarf2_read_addr_index_reader): Remove.
14189 (dwarf2_read_addr_index): Use cutu_reader.
14190 (read_signatured_type_reader): Remove.
14191 (read_signatured_type): Use cutu_reader.
14192
45bbae5c
TT
141932020-01-19 Tom Tromey <tom@tromey.com>
14194
14195 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14196 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14197 (tui_wrefresh): Declare.
14198 * tui/tui-wingeneral.c (suppress_output): New global.
14199 (tui_suppress_output, ~tui_suppress_output): New constructor and
14200 destructor.
14201 (tui_wrefresh): New function.
14202 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14203 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14204 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14205 method.
14206 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14207 tui_wrefresh.
14208 (tui_data_window::no_refresh): New method.
14209 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14210 (tui_reg_command): Use tui_suppress_output
14211 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14212 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14213 method.
14214 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14215
4f13c1c0
TT
142162020-01-19 Tom Tromey <tom@tromey.com>
14217
14218 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14219 Handle case where symtab is null.
14220
fa47e446
SM
142212020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14222
14223 * linux-fork.c (one_fork_p): Simplify.
14224
26f42329
SM
142252020-01-17 Simon Marchi <simon.marchi@efficios.com>
14226
14227 * top.c (struct qt_args): Remove.
14228 (kill_or_detach): Change return type to void, replace `void *`
14229 parameter with a proper one.
14230 (print_inferior_quit_action): Likewise.
14231 (quit_confirm): Use range-based for loop to iterate over inferiors.
14232 (quit_force): Likewise.
14233
a9ac81b1
SM
142342020-01-17 Simon Marchi <simon.marchi@efficios.com>
14235
14236 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14237 `void *` parameter with proper parameters.
14238 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14239 (print_one_inferior): Change return type to void, replace `void *`
14240 parameter with proper parameters.
14241 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14242 inferiors.
14243 (get_other_inferior): Remove.
14244 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14245 inferiors.
14246
788eca49
SM
142472020-01-17 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * mi/mi-interp.c (report_initial_inferior): Remove.
14250 (mi_interp::init): Use range-based for to iterate over inferiors.
14251
d9bc85b6
SM
142522020-01-17 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * python/py-inferior.c (build_inferior_list): Remove.
14255 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14256
40c94099
CB
142572020-01-16 Christian Biesinger <cbiesinger@google.com>
14258
14259 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14260 (btrace_stitch_trace): Likewise.
14261 * charset.c (intermediate_encoding): Likewise (vaild).
14262 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14263 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14264 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14265
e0cdfe3c
HD
142662020-01-16 Hannes Domani <ssbssa@yahoo.de>
14267
14268 * windows-tdep.c (windows_get_tlb_type):
14269 Add rtl_user_process_parameters type.
14270
790f1718 142712020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14272 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14273
14274 PR build/24805
14275 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14276 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14277 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14278 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14279 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14280 (ps_plog): Redeclare exported functions with default visibility.
14281
3112ed97
NA
142822020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14283
14284 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14285 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14286
8dc3273e
SM
142872020-01-15 Simon Marchi <simon.marchi@efficios.com>
14288
14289 * infcmd.c (post_create_inferior): Use get_thread_regcache
14290 instead of get_current_regcache.
14291
ff47f4f0
TT
142922020-01-14 Tom Tromey <tom@tromey.com>
14293
14294 PR symtab/12535:
14295 * python/python.c (gdbpy_decode_line): Treat empty string the same
14296 as no argument.
14297
975f45b7
TT
142982020-01-14 Tom Tromey <tom@tromey.com>
14299
14300 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14301
25e57356
TT
143022020-01-14 Tom Tromey <tom@tromey.com>
14303
14304 * nat/linux-btrace.c: Don't include <config.h>.
14305 * nat/linux-ptrace.c: Don't include <config.h>.
14306 * nat/x86-linux-dregs.c: Don't include <config.h>.
14307
05ea2a05
TT
143082020-01-14 Tom Tromey <tom@tromey.com>
14309
14310 * configure: Rebuild.
14311 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14312
01027315
TT
143132020-01-14 Tom Tromey <tom@tromey.com>
14314
14315 * nat/x86-linux-dregs.c: Include configh.h.
14316 * nat/linux-ptrace.c: Include configh.h.
14317 * nat/linux-btrace.c: Include configh.h.
14318 * defs.h: Include config.h, bfd.h.
14319 * configure.ac: Don't source common.host.
14320 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14321 * configure: Rebuild.
14322 * acinclude.m4: Update path.
14323 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14324 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14325 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14326 (CLIBS): Add LIBSUPPORT.
14327 (CDEPS): Likewise.
14328 (COMMON_SFILES): Remove gdbsupport files.
14329 (HFILES_NO_SRCDIR): Likewise.
14330 (stamp-version): Update path to create-version.sh.
14331 (ALLDEPFILES): Remove gdbsupport files.
14332
b2ceabe8
TT
143332020-01-14 Tom Tromey <tom@tromey.com>
14334
14335 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14336 USE_WIN32API when needed.
14337 * configure.ac (USE_WIN32API): Don't define.
14338 (WIN32LIBS): Use WIN32APILIBS.
14339 * configure: Rebuild.
14340
25c51f71
TT
143412020-01-14 Tom Tromey <tom@tromey.com>
14342
14343 * configure: Rebuild.
14344 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14345
717c684d
BE
143462020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14347
14348 * skip.c (skip_function_command): Make skip w/o arguments use the
14349 name of the inlined function if pc is inside any inlined function.
14350
7da6a5b9
LM
143512020-01-14 Luis Machado <luis.machado@linaro.org>
14352
14353 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14354 * infrun.c (resume_1): Likewise.
14355 (handle_inferior_event): Remove stale comment.
14356 * linux-nat.c (linux_nat_target::resume): Update comments.
14357 (save_stop_reason): Likewise.
14358 (linux_nat_filter_event): Likewise.
14359 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14360
44e4c775
AB
143612020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14362
14363 * elfread.c (record_minimal_symbol): Set section index to 0 for
14364 non-allocatable sections.
14365
18a8505e
AT
14366
143672020-01-13 Ali Tamur <tamur@google.com>
14368
14369 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14370 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14371 to gdb::optional. Update comments.
14372 (dwo_file): Update comments.
14373 (read_attribute): Update API to take an additional out parameter,
14374 need_reprocess. This is used to mark attributes that need other
14375 attributes (e.g. str_offsets_base) for correct computation which may not
14376 have been read yet.
14377 (read_attribute_reprocess): New function declaration.
14378 (read_addr_index): Likewise.
14379 (read_dwo_str_index): Likewise.
14380 (read_stub_str_index): Likewise.
14381 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14382 (lookup_addr_base): New function definition.
14383 (lookup_ranges_base): Likewise.
14384 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14385 lookup_ranges_base.
14386 (init_cutu_and_read_dies): Update comments.
14387 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14388 unit. This is used to inherit parent's str_offsets_base and addr_base.
14389 Update comments.
14390 (init_cutu_and_read_dies_simple): Reflect API changes.
14391 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14392 (create_cus_hash_table): Change API to take parent compile unit.
14393 Reflect API changes.
14394 (open_and_init_dwo_file): Reflect API changes.
14395 (dwarf2_get_pc_bounds): Update comments.
14396 (dwarf2_record_block_ranges): Likewise.
14397 (read_full_die_1): Change implementation to reprocess attributes that
14398 need str_offsets_base and addr_base.
14399 (partial_die_info::read): Likewise.
14400 (read_attribute_reprocess): New function definition.
14401 (read_attribute_value): Change API to take an additional out parameter,
14402 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14403 when a non-dwo compile unit has index based attributes.
14404 (read_attribute): Reflect API changes.
14405 (read_addr_index_1): Reflect API changes. Update comments.
14406 (dwarf2_read_addr_index_data): Reflect API changes.
14407 (dwarf2_read_addr_index): Likewise.
14408 (read_str_index): Change API and implementation. This becomes a helper
14409 to be used by the new string index related methods. Update error
14410 message and comments.
14411 (read_dwo_str_index): New function definition.
14412 (read_stub_str_index): Likewise.
14413 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14414 * symfile.h (dwarf2_debug_sections): Likewise.
14415 * xcoffread.c (dwarf2_debug_sections): Likewise.
14416
0cac9354
SM
144172020-01-13 Simon Marchi <simon.marchi@efficios.com>
14418
14419 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14420 core_reg_sect type to gdb_byte *.
14421 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14422 * cris-tdep.c (fetch_core_registers): Likewise.
14423 * corelow.c (core_target::get_core_register_section): Change
14424 type of `contents` to gdb::byte_vector.
14425
9a6d629c
AB
144262020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14427
14428 * tui/tui-wingeneral.c (box_win): Position the title in the center
14429 of the border.
14430
d8b2f9e3
SM
144312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14432
14433 * corelow.c (core_target::get_core_register_section): Use
14434 std::vector instead of alloca.
14435
bb564c58
SM
144362020-01-13 Simon Marchi <simon.marchi@efficios.com>
14437
14438 * warning.m4: Add -Wmissing-declarations to build_warnings.
14439 * configure: Re-generate.
14440
6b366111
SM
144412020-01-13 Simon Marchi <simon.marchi@efficios.com>
14442
14443 * python/python.c (init__gdb_module): Add declaration.
14444
6c265988
SM
144452020-01-13 Simon Marchi <simon.marchi@efficios.com>
14446
14447 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14448 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14449 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14450 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14451 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14452 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14453 * ada-exp.y (_initialize_ada_exp): Add declaration.
14454 * ada-lang.c (_initialize_ada_language): Add declaration.
14455 * ada-tasks.c (_initialize_tasks): Add declaration.
14456 * agent.c (_initialize_agent): Add declaration.
14457 * aix-thread.c (_initialize_aix_thread): Add declaration.
14458 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14459 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14460 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14461 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14462 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14463 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14464 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14465 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14466 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14467 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14468 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14469 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14470 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14471 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14472 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14473 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14474 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14475 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14476 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14477 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14478 * annotate.c (_initialize_annotate): Add declaration.
14479 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14480 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14481 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14482 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14483 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14484 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14485 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14486 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14487 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14488 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14489 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14490 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14491 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14492 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14493 * auto-load.c (_initialize_auto_load): Add declaration.
14494 * auxv.c (_initialize_auxv): Add declaration.
14495 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14496 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14497 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14498 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14499 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14500 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14501 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14502 * breakpoint.c (_initialize_breakpoint): Add declaration.
14503 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14504 * btrace.c (_initialize_btrace): Add declaration.
14505 * charset.c (_initialize_charset): Add declaration.
14506 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14507 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14508 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14509 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14510 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14511 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14512 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14513 * coffread.c (_initialize_coffread): Add declaration.
14514 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14515 * compile/compile.c (_initialize_compile): Add declaration.
14516 * complaints.c (_initialize_complaints): Add declaration.
14517 * completer.c (_initialize_completer): Add declaration.
14518 * copying.c (_initialize_copying): Add declaration.
14519 * corefile.c (_initialize_core): Add declaration.
14520 * corelow.c (_initialize_corelow): Add declaration.
14521 * cp-abi.c (_initialize_cp_abi): Add declaration.
14522 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14523 * cp-support.c (_initialize_cp_support): Add declaration.
14524 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14525 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14526 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14527 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14528 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14529 * ctfread.c (_initialize_ctfread): Add declaration.
14530 * d-lang.c (_initialize_d_language): Add declaration.
14531 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14532 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14533 * dbxread.c (_initialize_dbxread): Add declaration.
14534 * dcache.c (_initialize_dcache): Add declaration.
14535 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14536 * disasm.c (_initialize_disasm): Add declaration.
14537 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14538 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14539 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14540 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14541 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14542 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14543 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14544 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14545 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14546 * elfread.c (_initialize_elfread): Add declaration.
14547 * exec.c (_initialize_exec): Add declaration.
14548 * extension.c (_initialize_extension): Add declaration.
14549 * f-lang.c (_initialize_f_language): Add declaration.
14550 * f-valprint.c (_initialize_f_valprint): Add declaration.
14551 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14552 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14553 * filesystem.c (_initialize_filesystem): Add declaration.
14554 * findcmd.c (_initialize_mem_search): Add declaration.
14555 * findvar.c (_initialize_findvar): Add declaration.
14556 * fork-child.c (_initialize_fork_child): Add declaration.
14557 * frame-base.c (_initialize_frame_base): Add declaration.
14558 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14559 * frame.c (_initialize_frame): Add declaration.
14560 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14561 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14562 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14563 * gcore.c (_initialize_gcore): Add declaration.
14564 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14565 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14566 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14567 * gdbarch.c (_initialize_gdbarch): Add declaration.
14568 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14569 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14570 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14571 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14572 * go-lang.c (_initialize_go_language): Add declaration.
14573 * go32-nat.c (_initialize_go32_nat): Add declaration.
14574 * guile/guile.c (_initialize_guile): Add declaration.
14575 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14576 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14577 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14578 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14579 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14580 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14581 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14582 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14583 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14584 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14585 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14586 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14587 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14588 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14589 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14590 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14591 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14592 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14593 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14594 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14595 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14596 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14597 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14598 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14599 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14600 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14601 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14602 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14603 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14604 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14605 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14606 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14607 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14608 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14609 * infcall.c (_initialize_infcall): Add declaration.
14610 * infcmd.c (_initialize_infcmd): Add declaration.
14611 * inflow.c (_initialize_inflow): Add declaration.
14612 * infrun.c (_initialize_infrun): Add declaration.
14613 * interps.c (_initialize_interpreter): Add declaration.
14614 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14615 * jit.c (_initialize_jit): Add declaration.
14616 * language.c (_initialize_language): Add declaration.
14617 * linux-fork.c (_initialize_linux_fork): Add declaration.
14618 * linux-nat.c (_initialize_linux_nat): Add declaration.
14619 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14620 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14621 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14622 * m2-lang.c (_initialize_m2_language): Add declaration.
14623 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14624 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14625 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14626 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14627 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14628 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14629 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14630 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14631 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14632 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14633 * machoread.c (_initialize_machoread): Add declaration.
14634 * macrocmd.c (_initialize_macrocmd): Add declaration.
14635 * macroscope.c (_initialize_macroscope): Add declaration.
14636 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14637 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14638 * maint.c (_initialize_maint_cmds): Add declaration.
14639 * mdebugread.c (_initialize_mdebugread): Add declaration.
14640 * memattr.c (_initialize_mem): Add declaration.
14641 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14642 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14643 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14644 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14645 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14646 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14647 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14648 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14649 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14650 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14651 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14652 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14653 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14654 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14655 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14656 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14657 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14658 * mipsread.c (_initialize_mipsread): Add declaration.
14659 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14660 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14661 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14662 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14663 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14664 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14665 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14666 * nto-procfs.c (_initialize_procfs): Add declaration.
14667 * objc-lang.c (_initialize_objc_language): Add declaration.
14668 * observable.c (_initialize_observer): Add declaration.
14669 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14670 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14671 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14672 * osabi.c (_initialize_gdb_osabi): Add declaration.
14673 * osdata.c (_initialize_osdata): Add declaration.
14674 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14675 * parse.c (_initialize_parse): Add declaration.
14676 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14677 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14678 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14679 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14680 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14681 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14682 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14683 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14684 * printcmd.c (_initialize_printcmd): Add declaration.
14685 * probe.c (_initialize_probe): Add declaration.
14686 * proc-api.c (_initialize_proc_api): Add declaration.
14687 * proc-events.c (_initialize_proc_events): Add declaration.
14688 * proc-service.c (_initialize_proc_service): Add declaration.
14689 * procfs.c (_initialize_procfs): Add declaration.
14690 * producer.c (_initialize_producer): Add declaration.
14691 * psymtab.c (_initialize_psymtab): Add declaration.
14692 * python/python.c (_initialize_python): Add declaration.
14693 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14694 * record-btrace.c (_initialize_record_btrace): Add declaration.
14695 * record-full.c (_initialize_record_full): Add declaration.
14696 * record.c (_initialize_record): Add declaration.
14697 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14698 * regcache.c (_initialize_regcache): Add declaration.
14699 * reggroups.c (_initialize_reggroup): Add declaration.
14700 * remote-notif.c (_initialize_notif): Add declaration.
14701 * remote-sim.c (_initialize_remote_sim): Add declaration.
14702 * remote.c (_initialize_remote): Add declaration.
14703 * reverse.c (_initialize_reverse): Add declaration.
14704 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14705 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14706 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14707 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14708 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14709 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14710 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14711 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14712 Add declaration.
14713 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14714 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14715 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14716 * rust-exp.y (_initialize_rust_exp): Add declaration.
14717 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14718 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14719 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14720 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14721 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14722 * score-tdep.c (_initialize_score_tdep): Add declaration.
14723 * ser-go32.c (_initialize_ser_dos): Add declaration.
14724 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14725 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14726 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14727 * ser-uds.c (_initialize_ser_socket): Add declaration.
14728 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14729 * serial.c (_initialize_serial): Add declaration.
14730 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14731 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14732 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14733 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14734 * skip.c (_initialize_step_skip): Add declaration.
14735 * sol-thread.c (_initialize_sol_thread): Add declaration.
14736 * solib-aix.c (_initialize_solib_aix): Add declaration.
14737 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14738 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14739 * solib-frv.c (_initialize_frv_solib): Add declaration.
14740 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14741 * solib-target.c (_initialize_solib_target): Add declaration.
14742 * solib.c (_initialize_solib): Add declaration.
14743 * source-cache.c (_initialize_source_cache): Add declaration.
14744 * source.c (_initialize_source): Add declaration.
14745 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14746 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14747 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14748 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14749 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14750 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14751 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14752 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14753 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14754 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14755 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14756 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14757 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14758 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14759 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14760 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14761 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14762 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14763 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14764 * stabsread.c (_initialize_stabsread): Add declaration.
14765 * stack.c (_initialize_stack): Add declaration.
14766 * stap-probe.c (_initialize_stap_probe): Add declaration.
14767 * std-regs.c (_initialize_frame_reg): Add declaration.
14768 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14769 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14770 * symfile.c (_initialize_symfile): Add declaration.
14771 * symmisc.c (_initialize_symmisc): Add declaration.
14772 * symtab.c (_initialize_symtab): Add declaration.
14773 * target.c (_initialize_target): Add declaration.
14774 * target-connection.c (_initialize_target_connection): Add
14775 declaration.
14776 * target-dcache.c (_initialize_target_dcache): Add declaration.
14777 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14778 * thread.c (_initialize_thread): Add declaration.
14779 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14780 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14781 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14782 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14783 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14784 * tracectf.c (_initialize_ctf): Add declaration.
14785 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14786 * tracefile.c (_initialize_tracefile): Add declaration.
14787 * tracepoint.c (_initialize_tracepoint): Add declaration.
14788 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14789 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14790 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14791 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14792 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14793 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14794 * tui/tui.c (_initialize_tui): Add declaration.
14795 * typeprint.c (_initialize_typeprint): Add declaration.
14796 * ui-style.c (_initialize_ui_style): Add declaration.
14797 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14798 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14799 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14800 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14801 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14802 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14803 * unittests/filtered_iterator-selftests.c
14804 (_initialize_filtered_iterator_selftests): Add declaration.
14805 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14806 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14807 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14808 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14809 * unittests/main-thread-selftests.c
14810 (_initialize_main_thread_selftests): Add declaration.
14811 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14812 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14813 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14814 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14815 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14816 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14817 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14818 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14819 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14820 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14821 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14822 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14823 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14824 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14825 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14826 declaration.
14827 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14828 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14829 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14830 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14831 * user-regs.c (_initialize_user_regs): Add declaration.
14832 * utils.c (_initialize_utils): Add declaration.
14833 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14834 * valops.c (_initialize_valops): Add declaration.
14835 * valprint.c (_initialize_valprint): Add declaration.
14836 * value.c (_initialize_values): Add declaration.
14837 * varobj.c (_initialize_varobj): Add declaration.
14838 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14839 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14840 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14841 * windows-nat.c (_initialize_windows_nat): Add declaration.
14842 (_initialize_check_for_gdb_ini): Add declaration.
14843 (_initialize_loadable): Add declaration.
14844 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14845 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14846 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14847 * xcoffread.c (_initialize_xcoffread): Add declaration.
14848 * xml-support.c (_initialize_xml_support): Add declaration.
14849 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14850 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14851 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14852 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14853
e2de1eec
SM
148542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14855
14856 * regformats/regdat.sh: Generate declaration for init function.
14857
e0037b4c
SM
148582020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14859
14860 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14861 up.
14862 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14863 close_one_inferior>: New methods.
14864 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14865 pass down target to find_inferior_pid.
14866 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14867 Pass down target to find_inferior_ptid.
14868 (gdbsim_target::create_inferior): Pass down target to
14869 add_thread_silent.
14870 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14871 target down to find_inferior_ptid and switch_to_thread.
14872 (gdbsim_target::close): Update to call close_one_inferior.
14873 (struct resume_data): Remove.
14874 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14875 directly, rather than through a void pointer.
14876 (gdbsim_target::resume): Update to call resume_one_inferior.
14877
58920b5b
SM
148782020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14879
14880 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14881
4ec89149
PA
148822020-01-12 Pedro Alves <palves@redhat.com>
14883
14884 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14885 directly for the current inferior instead of
14886 discard_all_inferiors.
14887 (discard_all_inferiors): Delete.
14888
7c392d1d
TT
148892020-01-11 Tom Tromey <tom@tromey.com>
14890
14891 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14892 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14893 deprecated_safe_get_selected_frame.
14894
d9ebdab7
TBA
148952020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14896
14897 * inferior.c (print_inferior): Switch inferior before printing it.
14898
f3c469b9
PA
148992020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14900 Pedro Alves <palves@redhat.com>
14901
14902 * progspace-and-thread.c (switch_to_program_space_and_thread):
14903 Assert there's an inferior for PSPACE. Use
14904 switch_to_inferior_no_thread to switch the inferior too.
14905 * progspace.c (program_space::~program_space): Call
14906 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14907 (program_space::free_all_objfiles): Don't call clear_symtab_users
14908 here.
14909 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14910
65c574f6
PA
149112020-01-10 Pedro Alves <palves@redhat.com>
14912
14913 * NEWS: Mention multi-target debugging, "info connections", and
14914 "add-inferior -no-connection".
14915
2f4fcf00
PA
149162020-01-10 Pedro Alves <palves@redhat.com>
14917
14918 * infrun.c: Include "target-connection.h".
14919 (check_multi_target_resumption): New.
14920 (proceed): Call it.
14921 * target-connection.c (make_target_connection_string): Make
14922 extern.
14923 * target-connection.h (make_target_connection_string): Declare.
14924
121b3efd
PA
149252020-01-10 Pedro Alves <palves@redhat.com>
14926
14927 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14928 * inferior.c (uiout_field_connection): New function.
14929 (print_inferior): Add new "connection-id" column.
14930 (add_inferior_command): Show connection number/string of added
14931 inferior.
14932 * process-stratum-target.h
14933 (process_stratum_target::connection_string): New virtual method.
14934 (process_stratum_target::connection_number): New field.
14935 * remote.c (remote_target::connection_string): New override.
14936 * target-connection.c: New file.
14937 * target-connection.h: New file.
14938 * target.c (decref_target): Remove process_stratum targets from
14939 the connection list.
14940 (target_stack::push): Add process_stratum targets to the
14941 connection list.
14942
4f837581
PA
149432020-01-10 Pedro Alves <palves@redhat.com>
14944
14945 Revert:
14946 2016-04-12 Pedro Alves <palves@redhat.com>
14947 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14948 Remove references to name.
14949 * serial.h (struct serial) <name>: Delete.
14950
f4ec508e
PA
149512020-01-10 Pedro Alves <palves@redhat.com>
14952
14953 * gdbarch-selftests.c (register_to_value_test): Remove "target
14954 already pushed" check.
14955
5b6d1e4f
PA
149562020-01-10 Pedro Alves <palves@redhat.com>
14957 John Baldwin <jhb@FreeBSD.org>
14958
14959 * aarch64-linux-nat.c
14960 (aarch64_linux_nat_target::thread_architecture): Adjust.
14961 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14962 (task_command_1): Likewise.
14963 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14964 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14965 (aix_thread_target::store_registers)
14966 (aix_thread_target::thread_alive): Adjust.
14967 * amd64-fbsd-tdep.c: Include "inferior.h".
14968 (amd64fbsd_get_thread_local_address): Pass down target.
14969 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14970 thread's gdbarch instead of target_gdbarch.
14971 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14972 get_last_target_status.
14973 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14974 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14975 inferiors.
14976 (update_inserted_breakpoint_locations): Skip if inferiors with no
14977 execution.
14978 (update_global_location_list): When handling moribund locations,
14979 find representative inferior for location's pspace, and use thread
14980 count of its process_stratum target.
14981 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14982 * bsd-uthread.c (bsd_uthread_target::wait): Use
14983 as_process_stratum_target and adjust thread_change_ptid and
14984 add_thread calls.
14985 (bsd_uthread_target::update_thread_list): Use
14986 as_process_stratum_target and adjust find_thread_ptid,
14987 thread_change_ptid and add_thread calls.
14988 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14989 find_thread_ptid call.
14990 * corelow.c (add_to_thread_list): Adjust add_thread call.
14991 (core_target_open): Adjust add_thread_silent and thread_count
14992 calls.
14993 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14994 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14995 * event-top.c (async_disconnect): Pop targets from all inferiors.
14996 * exec.c (add_target_sections): Push exec target on all inferiors
14997 sharing the program space.
14998 (remove_target_sections): Remove the exec target from all
14999 inferiors sharing the program space.
15000 (exec_on_vfork): New.
15001 * exec.h (exec_on_vfork): Declare.
15002 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15003 Pass it down.
15004 (fbsd_nat_target::update_thread_list): Adjust.
15005 (fbsd_nat_target::resume): Adjust.
15006 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15007 down.
15008 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15009 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15010 get_thread_arch_regcache call.
15011 * fork-child.c (gdb_startup_inferior): Pass target down to
15012 startup_inferior and set_executing.
15013 * gdbthread.h (struct process_stratum_target): Forward declare.
15014 (add_thread, add_thread_silent, add_thread_with_info)
15015 (in_thread_list): Add process_stratum_target parameter.
15016 (find_thread_ptid(inferior*, ptid_t)): New overload.
15017 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15018 parameter.
15019 (all_threads()): Delete overload.
15020 (all_threads, all_non_exited_threads): Add process_stratum_target
15021 parameter.
15022 (all_threads_safe): Use brace initialization.
15023 (thread_count): Add process_stratum_target parameter.
15024 (set_resumed, set_running, set_stop_requested, set_executing)
15025 (threads_are_executing, finish_thread_state): Add
15026 process_stratum_target parameter.
15027 (switch_to_thread): Use is_current_thread.
15028 * i386-fbsd-tdep.c: Include "inferior.h".
15029 (i386fbsd_get_thread_local_address): Pass down target.
15030 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15031 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15032 have_inferiors check.
15033 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15034 (inf_ptrace_target::attach): Adjust.
15035 * infcall.c (run_inferior_call): Adjust.
15036 * infcmd.c (run_command_1): Pass target to
15037 scoped_finish_thread_state.
15038 (proceed_thread_callback): Skip inferiors with no execution.
15039 (continue_command): Rename 'all_threads' local to avoid hiding
15040 'all_threads' function. Adjust get_last_target_status call.
15041 (prepare_one_step): Adjust set_running call.
15042 (signal_command): Use user_visible_resume_target. Compare thread
15043 pointers instead of inferior_ptid.
15044 (info_program_command): Adjust to pass down target.
15045 (attach_command): Mark target's 'thread_executing' flag.
15046 (stop_current_target_threads_ns): New, factored out from ...
15047 (interrupt_target_1): ... this. Switch inferior before making
15048 target calls.
15049 * inferior-iter.h
15050 (struct all_inferiors_iterator, struct all_inferiors_range)
15051 (struct all_inferiors_safe_range)
15052 (struct all_non_exited_inferiors_range): Filter on
15053 process_stratum_target too. Remove explicit.
15054 * inferior.c (inferior::inferior): Push dummy target on target
15055 stack.
15056 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15057 Add process_stratum_target parameter, and pass it down.
15058 (have_live_inferiors): Adjust.
15059 (switch_to_inferior_and_push_target): New.
15060 (add_inferior_command, clone_inferior_command): Handle
15061 "-no-connection" parameter. Use
15062 switch_to_inferior_and_push_target.
15063 (_initialize_inferior): Mention "-no-connection" option in
15064 the help of "add-inferior" and "clone-inferior" commands.
15065 * inferior.h: Include "process-stratum-target.h".
15066 (interrupt_target_1): Use bool.
15067 (struct inferior) <push_target, unpush_target, target_is_pushed,
15068 find_target_beneath, top_target, process_target, target_at,
15069 m_stack>: New.
15070 (discard_all_inferiors): Delete.
15071 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15072 (all_inferiors, all_non_exited_inferiors): Add
15073 process_stratum_target parameter.
15074 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15075 (target_last_proc_target): New global.
15076 (follow_fork_inferior): Push target on new inferior. Pass target
15077 to add_thread_silent. Call exec_on_vfork. Handle target's
15078 reference count.
15079 (follow_fork): Adjust get_last_target_status call. Also consider
15080 target.
15081 (follow_exec): Push target on new inferior.
15082 (struct execution_control_state) <target>: New field.
15083 (user_visible_resume_target): New.
15084 (do_target_resume): Call target_async.
15085 (resume_1): Set target's threads_executing flag. Consider resume
15086 target.
15087 (commit_resume_all_targets): New.
15088 (proceed): Also consider resume target. Skip threads of inferiors
15089 with no execution. Commit resumtion in all targets.
15090 (start_remote): Pass current inferior to wait_for_inferior.
15091 (infrun_thread_stop_requested): Consider target as well. Pass
15092 thread_info pointer to clear_inline_frame_state instead of ptid.
15093 (infrun_thread_thread_exit): Consider target as well.
15094 (random_pending_event_thread): New inferior parameter. Use it.
15095 (do_target_wait): Rename to ...
15096 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15097 down.
15098 (threads_are_resumed_pending_p, do_target_wait): New.
15099 (prepare_for_detach): Adjust calls.
15100 (wait_for_inferior): New inferior parameter. Handle it. Use
15101 do_target_wait_1 instead of do_target_wait.
15102 (fetch_inferior_event): Adjust. Switch to representative
15103 inferior. Pass target down.
15104 (set_last_target_status): Add process_stratum_target parameter.
15105 Save target in global.
15106 (get_last_target_status): Add process_stratum_target parameter and
15107 handle it.
15108 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15109 (context_switch): Check inferior_ptid == null_ptid before calling
15110 inferior_thread().
15111 (get_inferior_stop_soon): Pass down target.
15112 (wait_one): Rename to ...
15113 (poll_one_curr_target): ... this.
15114 (struct wait_one_event): New.
15115 (wait_one): New.
15116 (stop_all_threads): Adjust.
15117 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15118 event's target.
15119 (switch_back_to_stepped_thread): Also consider target.
15120 (print_stop_event): Update.
15121 (normal_stop): Update. Also consider the resume target.
15122 * infrun.h (wait_for_inferior): Remove declaration.
15123 (user_visible_resume_target): New declaration.
15124 (get_last_target_status, set_last_target_status): New
15125 process_stratum_target parameter.
15126 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15127 process_stratum_target parameter, and use it.
15128 (clear_inline_frame_state (thread_info*)): New.
15129 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15130 process_stratum_target parameter.
15131 (clear_inline_frame_state (thread_info*)): Declare.
15132 * linux-fork.c (delete_checkpoint_command): Pass target down to
15133 find_thread_ptid.
15134 (checkpoint_command): Adjust.
15135 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15136 instead of just tweaking inferior_ptid.
15137 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15138 (exit_lwp): Pass target down to find_thread_ptid.
15139 (attach_proc_task_lwp_callback): Pass target down to
15140 add_thread/set_running/set_executing.
15141 (linux_nat_target::attach): Pass target down to
15142 thread_change_ptid.
15143 (get_detach_signal): Pass target down to find_thread_ptid.
15144 Consider last target status's target.
15145 (linux_resume_one_lwp_throw, resume_lwp)
15146 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15147 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15148 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15149 (linux_nat_target::async_wait_fd): New.
15150 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15151 target down.
15152 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15153 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15154 * linux-thread-db.c (struct thread_db_info::process_target): New
15155 field.
15156 (add_thread_db_info): Save target.
15157 (get_thread_db_info): New process_stratum_target parameter. Also
15158 match target.
15159 (delete_thread_db_info): New process_stratum_target parameter.
15160 Also match target.
15161 (thread_from_lwp): Adjust to pass down target.
15162 (thread_db_notice_clone): Pass down target.
15163 (check_thread_db_callback): Pass down target.
15164 (try_thread_db_load_1): Always push the thread_db target.
15165 (try_thread_db_load, record_thread): Pass target down.
15166 (thread_db_target::detach): Pass target down. Always unpush the
15167 thread_db target.
15168 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15169 target down. Always unpush the thread_db target.
15170 (find_new_threads_callback, thread_db_find_new_threads_2)
15171 (thread_db_target::update_thread_list): Pass target down.
15172 (thread_db_target::pid_to_str): Pass current inferior down.
15173 (thread_db_target::get_thread_local_address): Pass target down.
15174 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15175 target down.
15176 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15177 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15178 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15179 (procfs_init_inferior): Rename to ...
15180 (procfs_target::procfs_init_inferior): ... this and adjust.
15181 (procfs_target::create_inferior, procfs_notice_thread)
15182 (procfs_do_thread_registers): Adjust.
15183 * ppc-fbsd-tdep.c: Include "inferior.h".
15184 (ppcfbsd_get_thread_local_address): Pass down target.
15185 * proc-service.c (ps_xfer_memory): Switch current inferior and
15186 program space as well.
15187 (get_ps_regcache): Pass target down.
15188 * process-stratum-target.c
15189 (process_stratum_target::thread_address_space)
15190 (process_stratum_target::thread_architecture): Pass target down.
15191 * process-stratum-target.h
15192 (process_stratum_target::threads_executing): New field.
15193 (as_process_stratum_target): New.
15194 * ravenscar-thread.c
15195 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15196 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15197 down.
15198 * record-btrace.c (record_btrace_target::info_record): Adjust.
15199 (record_btrace_target::record_method)
15200 (record_btrace_target::record_is_replaying)
15201 (record_btrace_target::fetch_registers)
15202 (get_thread_current_frame_id, record_btrace_target::resume)
15203 (record_btrace_target::wait, record_btrace_target::stop): Pass
15204 target down.
15205 * record-full.c (record_full_wait_1): Switch to event thread.
15206 Pass target down.
15207 * regcache.c (regcache::regcache)
15208 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15209 process_stratum_target parameter and handle it.
15210 (current_thread_target): New global.
15211 (get_thread_regcache): Add process_stratum_target parameter and
15212 handle it. Switch inferior before calling target method.
15213 (get_thread_regcache): Pass target down.
15214 (get_thread_regcache_for_ptid): Pass target down.
15215 (registers_changed_ptid): Add process_stratum_target parameter and
15216 handle it.
15217 (registers_changed_thread, registers_changed): Pass target down.
15218 (test_get_thread_arch_aspace_regcache): New.
15219 (current_regcache_test): Define a couple local test_target_ops
15220 instances and use them for testing.
15221 (readwrite_regcache): Pass process_stratum_target parameter.
15222 (cooked_read_test, cooked_write_test): Pass mock_target down.
15223 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15224 (get_thread_arch_aspace_regcache): Add process_stratum_target
15225 parameter.
15226 (regcache::target): New method.
15227 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15228 (regcache::registers_changed_ptid): Add process_stratum_target
15229 parameter.
15230 (regcache::m_target): New field.
15231 (registers_changed_ptid): Add process_stratum_target parameter.
15232 * remote.c (remote_state::supports_vCont_probed): New field.
15233 (remote_target::async_wait_fd): New method.
15234 (remote_unpush_and_throw): Add remote_target parameter.
15235 (get_current_remote_target): Adjust.
15236 (remote_target::remote_add_inferior): Push target.
15237 (remote_target::remote_add_thread)
15238 (remote_target::remote_notice_new_inferior)
15239 (get_remote_thread_info): Pass target down.
15240 (remote_target::update_thread_list): Skip threads of inferiors
15241 bound to other targets. (remote_target::close): Don't discard
15242 inferiors. (remote_target::add_current_inferior_and_thread)
15243 (remote_target::process_initial_stop_replies)
15244 (remote_target::start_remote)
15245 (remote_target::remote_serial_quit_handler): Pass down target.
15246 (remote_target::remote_unpush_target): New remote_target
15247 parameter. Unpush the target from all inferiors.
15248 (remote_target::remote_unpush_and_throw): New remote_target
15249 parameter. Pass it down.
15250 (remote_target::open_1): Check whether the current inferior has
15251 execution instead of checking whether any inferior is live. Pass
15252 target down.
15253 (remote_target::remote_detach_1): Pass down target. Use
15254 remote_unpush_target.
15255 (extended_remote_target::attach): Pass down target.
15256 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15257 (remote_target::append_resumption): Pass down target.
15258 (remote_target::append_pending_thread_resumptions)
15259 (remote_target::remote_resume_with_hc, remote_target::resume)
15260 (remote_target::commit_resume): Pass down target.
15261 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15262 (remote_target::interrupt_query)
15263 (remote_target::remove_new_fork_children)
15264 (remote_target::check_pending_events_prevent_wildcard_vcont)
15265 (remote_target::remote_parse_stop_reply)
15266 (remote_target::process_stop_reply): Pass down target.
15267 (first_remote_resumed_thread): New remote_target parameter. Pass
15268 it down.
15269 (remote_target::wait_as): Pass down target.
15270 (unpush_and_perror): New remote_target parameter. Pass it down.
15271 (remote_target::readchar, remote_target::remote_serial_write)
15272 (remote_target::getpkt_or_notif_sane_1)
15273 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15274 down target.
15275 (remote_target::mourn_inferior): Pass down target. Use
15276 remote_unpush_target.
15277 (remote_target::core_of_thread)
15278 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15279 (remote_target::pid_to_exec_file)
15280 (remote_target::thread_handle_to_thread_info): Pass down target.
15281 (remote_target::async_wait_fd): New.
15282 * riscv-fbsd-tdep.c: Include "inferior.h".
15283 (riscv_fbsd_get_thread_local_address): Pass down target.
15284 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15285 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15286 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15287 Adjust.
15288 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15289 * solib-svr4.c (enable_break): Pass down target.
15290 * spu-multiarch.c (parse_spufs_run): Pass down target.
15291 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15292 * target-delegates.c: Regenerate.
15293 * target.c (g_target_stack): Delete.
15294 (current_top_target): Return the current inferior's top target.
15295 (target_has_execution_1): Refer to the passed-in inferior's top
15296 target.
15297 (target_supports_terminal_ours): Check whether the initial
15298 inferior was already created.
15299 (decref_target): New.
15300 (target_stack::push): Incref/decref the target.
15301 (push_target, push_target, unpush_target): Adjust.
15302 (target_stack::unpush): Defref target.
15303 (target_is_pushed): Return bool. Adjust to refer to the current
15304 inferior's target stack.
15305 (dispose_inferior): Delete, and inline parts ...
15306 (target_preopen): ... here. Only dispose of the current inferior.
15307 (target_detach): Hold strong target reference while detaching.
15308 Pass target down.
15309 (target_thread_name): Add assertion.
15310 (target_resume): Pass down target.
15311 (target_ops::beneath, find_target_at): Adjust to refer to the
15312 current inferior's target stack.
15313 (get_dummy_target): New.
15314 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15315 has a thread running.
15316 (initialize_targets): Rename to ...
15317 (_initialize_target): ... this.
15318 * target.h: Include "gdbsupport/refcounted-object.h".
15319 (struct target_ops): Inherit refcounted_object.
15320 (target_ops::shortname, target_ops::longname): Make const.
15321 (target_ops::async_wait_fd): New method.
15322 (decref_target): Declare.
15323 (struct target_ops_ref_policy): New.
15324 (target_ops_ref): New typedef.
15325 (get_dummy_target): Declare function.
15326 (target_is_pushed): Return bool.
15327 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15328 (all_matching_threads_iterator::all_matching_threads_iterator):
15329 Handle filter target.
15330 * thread-iter.h (struct all_matching_threads_iterator, struct
15331 all_matching_threads_range, class all_non_exited_threads_range):
15332 Filter by target too. Remove explicit.
15333 * thread.c (threads_executing): Delete.
15334 (inferior_thread): Pass down current inferior.
15335 (clear_thread_inferior_resources): Pass down thread pointer
15336 instead of ptid_t.
15337 (add_thread_silent, add_thread_with_info, add_thread): Add
15338 process_stratum_target parameter. Use it for thread and inferior
15339 searches.
15340 (is_current_thread): New.
15341 (thread_info::deletable): Use it.
15342 (find_thread_ptid, thread_count, in_thread_list)
15343 (thread_change_ptid, set_resumed, set_running): New
15344 process_stratum_target parameter. Pass it down.
15345 (set_executing): New process_stratum_target parameter. Pass it
15346 down. Adjust reference to 'threads_executing'.
15347 (threads_are_executing): New process_stratum_target parameter.
15348 Adjust reference to 'threads_executing'.
15349 (set_stop_requested, finish_thread_state): New
15350 process_stratum_target parameter. Pass it down.
15351 (switch_to_thread): Also match inferior.
15352 (switch_to_thread): New process_stratum_target parameter. Pass it
15353 down.
15354 (update_threads_executing): Reimplement.
15355 * top.c (quit_force): Pop targets from all inferior.
15356 (gdb_init): Don't call initialize_targets.
15357 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15358 Declare.
15359 (windows_add_thread, windows_delete_thread): Adjust.
15360 (get_windows_debug_event): Rename to ...
15361 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15362 * tracefile-tfile.c (tfile_target_open): Pass down target.
15363 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15364 Forward declare.
15365 (switch_to_thread): Add process_stratum_target parameter.
15366 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15367 parameter. Use it.
15368 (mi_on_resume): Pass target down.
15369 * nat/fork-inferior.c (startup_inferior): Add
15370 process_stratum_target parameter. Pass it down.
15371 * nat/fork-inferior.h (startup_inferior): Add
15372 process_stratum_target parameter.
15373 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15374
75c6c844
PA
153752020-01-10 Pedro Alves <palves@redhat.com>
15376
15377 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15378 directly. Instead find the first thread in the thread list and
15379 use switch_to_thread.
15380
78f2c40a
PA
153812020-01-10 Pedro Alves <palves@redhat.com>
15382
15383 * remote.c (remote_target::remote_add_inferior): Don't bind a
15384 process to the current inferior if the current inferior is already
15385 bound to a process.
15386
e7af6c70
TBA
153872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15388 Pedro Alves <palves@redhat.com>
15389
15390 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15391 If no process is specified, return null_ptid instead of
15392 inferior_ptid.
15393 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15394 TARGET_WAITKIND_SIGNALLED with no pid.
15395
31ba933e
PA
153962020-01-10 Pedro Alves <palves@redhat.com>
15397
15398 * remote.c (first_remote_resumed_thread): New.
15399 (remote_target::wait_as): Use it as default event_ptid instead of
15400 inferior_ptid.
15401
735fc2ca
PA
154022020-01-10 Pedro Alves <palves@redhat.com>
15403
15404 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15405
c17e02e1
PA
154062020-01-10 Pedro Alves <palves@redhat.com>
15407
15408 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15409 not -1.
15410
ab1ddbcf
PA
154112020-01-10 Pedro Alves <palves@redhat.com>
15412
15413 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15414 ptid to get_last_target_status.
15415 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15416 ptid to get_last_target_status.
15417 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15418 get_last_target_status.
15419 (info_program_command): Don't pass a target_waitstatus to
15420 get_last_target_status.
15421 * infrun.c (init_wait_for_inferior): Use
15422 nullify_last_target_wait_ptid.
15423 (get_last_target_status): Handle nullptr arguments.
15424 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15425 (print_stop_event): Don't pass a ptid to get_last_target_status.
15426 (normal_stop): Don't pass a ptid to get_last_target_status.
15427 * infrun.h (get_last_target_status, set_last_target_status): Move
15428 comments here and update.
15429 (nullify_last_target_wait_ptid): Declare.
15430 * linux-fork.c (fork_load_infrun_state): Remove local extern
15431 declaration of nullify_last_target_wait_ptid.
15432 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15433 to get_last_target_status.
15434
f3f8ece4
PA
154352020-01-10 Pedro Alves <palves@redhat.com>
15436
15437 * gdbthread.h (scoped_restore_current_thread)
15438 <dont_restore, restore, m_dont_restore>: Declare.
15439 * thread.c (thread_alive): Add assertion. Return bool.
15440 (switch_to_thread_if_alive): New.
15441 (prune_threads): Switch inferior/thread.
15442 (print_thread_info_1): Switch thread before calling target methods.
15443 (scoped_restore_current_thread::restore): New, factored out from
15444 ...
15445 (scoped_restore_current_thread::~scoped_restore_current_thread):
15446 ... this.
15447 (scoped_restore_current_thread::scoped_restore_current_thread):
15448 Add assertion.
15449 (thread_apply_all_command, thread_select): Use
15450 switch_to_thread_if_alive.
15451 * infrun.c (proceed, restart_threads, handle_signal_stop)
15452 (switch_back_to_stepped_thread): Switch current thread before
15453 calling target methods.
15454
db2d40f7
PA
154552020-01-10 Pedro Alves <palves@redhat.com>
15456
15457 * inferior.c (switch_to_inferior_no_thread): New function,
15458 factored out from ...
15459 (inferior_command): ... here.
15460 * inferior.h (switch_to_inferior_no_thread): Declare.
15461 * mi/mi-main.c (run_one_inferior): Use
15462 switch_to_inferior_no_thread.
15463
bd420a2d
PA
154642020-01-10 Pedro Alves <palves@redhat.com>
15465
15466 * infcmd.c (kill_command): Remove dead code.
15467
ddf5db90
PA
154682020-01-10 Pedro Alves <palves@redhat.com>
15469
15470 * remote.c (remote_target::mourn_inferior): No longer check
15471 whether the target is running.
15472
5018ce90
PA
154732020-01-10 Pedro Alves <palves@redhat.com>
15474
15475 * corelow.c (core_target::has_execution): Change parameter type to
15476 inferior pointer.
15477 * inferior.c (number_of_live_inferiors): Use
15478 inferior::has_execution instead of target_has_execution_1.
15479 * inferior.h (inferior::has_execution): New.
15480 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15481 inferior::has_execution instead of target_has_execution_1.
15482 * process-stratum-target.c
15483 (process_stratum_target::has_execution): Change parameter type to
15484 inferior pointer. Check the inferior's PID instead of
15485 inferior_ptid.
15486 * process-stratum-target.h
15487 (process_stratum_target::has_execution): Change parameter type to
15488 inferior pointer.
15489 * record-full.c (record_full_core_target::has_execution): Change
15490 parameter type to inferior pointer.
15491 * target.c (target_has_execution_1): Change parameter type to
15492 inferior pointer.
15493 (target_has_execution_current): Adjust.
15494 * target.h (target_ops::has_execution): Change parameter type to
15495 inferior pointer.
15496 (target_has_execution_1): Change parameter type to inferior
15497 pointer. Change return type to bool.
15498 * tracefile.h (tracefile_target::has_execution): Change parameter
15499 type to inferior pointer.
15500
74375d18
PA
155012020-01-10 Pedro Alves <palves@redhat.com>
15502
15503 * exceptions.c (print_flush): Remove current_top_target() check.
15504
acdf84a6
PA
155052020-01-10 Pedro Alves <palves@redhat.com>
15506
15507 * remote.c (show_remote_exec_file): Show the current inferior's
15508 exec-file instead of the command variable's value.
15509
ec506636
PA
155102020-01-10 Pedro Alves <palves@redhat.com>
15511
15512 * record-full.c (record_full_resume_ptid): New global.
15513 (record_full_target::resume): Set it.
15514 (record_full_wait_1): Use record_full_resume_ptid instead of
15515 inferior_ptid.
15516
873657b9
PA
155172020-01-10 Pedro Alves <palves@redhat.com>
15518
15519 * gdbthread.h (scoped_restore_current_thread)
15520 <dont_restore, restore, m_dont_restore>: Declare.
15521 * thread.c (thread_alive): Add assertion. Return bool.
15522 (switch_to_thread_if_alive): New.
15523 (prune_threads): Switch inferior/thread.
15524 (print_thread_info_1): Switch thread before calling target methods.
15525 (scoped_restore_current_thread::restore): New, factored out from
15526 ...
15527 (scoped_restore_current_thread::~scoped_restore_current_thread):
15528 ... this.
15529 (scoped_restore_current_thread::scoped_restore_current_thread):
15530 Add assertion.
15531 (thread_apply_all_command, thread_select): Use
15532 switch_to_thread_if_alive.
15533
7f0ae84c
GB
155342020-01-10 George Barrett <bob@bob131.so>
15535
15536 * stap-probe.c (stap_modify_semaphore): Don't check for null
15537 semaphores.
15538 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15539 for null semaphores.
15540
f5a7c406
AB
155412020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15542
15543 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15544 all source windows, and maintain horizontal scroll status while
15545 doing so.
15546
9ae6bf64
TT
155472020-01-09 Tom Tromey <tom@tromey.com>
15548
15549 PR tui/18932:
15550 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15551 update_source_window, not print_source_lines.
15552
b2efe70c
AB
155532020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15554
15555 * tui/tui.c (tui_enable): Register tui hooks after calling
15556 tui_display_main.
15557
5f23a082
CB
155582020-01-09 Christian Biesinger <cbiesinger@google.com>
15559
15560 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15561
3061113b
SM
155622020-01-08 Simon Marchi <simon.marchi@efficios.com>
15563
15564 * thread.c (print_thread_info_1): Fix indentation.
15565
57d75002
CB
155662020-01-09 Christian Biesinger <cbiesinger@google.com>
15567
15568 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15569 unique_xmalloc_ptr outside the if to always free the demangled name.
15570
6a053cb1
TT
155712020-01-08 Tom Tromey <tromey@adacore.com>
15572
15573 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15574 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15575 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15576 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15577 Remove.
15578 (section_offsets): New typedef.
15579 * symtab.c (fixup_section, get_msymbol_address): Update.
15580 * symmisc.c (dump_msymbols): Update.
15581 * symfile.h (relative_addr_info_to_section_offsets)
15582 (symfile_map_offsets_to_segments): Update.
15583 * symfile.c (build_section_addr_info_from_objfile)
15584 (init_objfile_sect_indices): Update.
15585 (struct place_section_arg): Change type of "offsets".
15586 (place_section): Update.
15587 (relative_addr_info_to_section_offsets): Change type of
15588 "section_offsets". Remove "num_sections" parameter.
15589 (default_symfile_offsets, syms_from_objfile_1)
15590 (set_objfile_default_section_offset): Update.
15591 (reread_symbols): No need to preserve section offsets by hand.
15592 (symfile_map_offsets_to_segments): Change type of "offsets".
15593 * stap-probe.c (relocate_address): Update.
15594 * stabsread.h (process_one_symbol): Update.
15595 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15596 (solib_target_relocate_section_addresses): Update.
15597 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15598 Update.
15599 * solib-frv.c (frv_relocate_main_executable): Update.
15600 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15601 * solib-aix.c (solib_aix_get_section_offsets): Change return
15602 type.
15603 (solib_aix_solib_create_inferior_hook): Update.
15604 * remote.c (remote_target::get_offsets): Update.
15605 * psymtab.c (find_pc_sect_psymtab): Update.
15606 * psympriv.h (struct partial_symbol) <address, text_low,
15607 text_high>: Update.
15608 * objfiles.h (obj_section_offset): Update.
15609 (struct objfile) <section_offsets>: Change type.
15610 <num_sections>: Remove.
15611 (objfile_relocate): Update.
15612 * objfiles.c (entry_point_address_query): Update
15613 (relocate_one_symbol): Change type of "section_offsets".
15614 (objfile_relocate1, objfile_relocate1): Change type of
15615 "new_offsets".
15616 (objfile_rebase1): Update.
15617 * mipsread.c (mipscoff_symfile_read): Update.
15618 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15619 parameter.
15620 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15621 (parse_external, psymtab_to_symtab_1): Update.
15622 * machoread.c (macho_symfile_offsets): Update.
15623 * ia64-tdep.c (ia64_find_unwind_table): Update.
15624 * hppa-tdep.c (read_unwind_info): Update.
15625 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15626 * dwarf2read.c (create_addrmap_from_index)
15627 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15628 (process_psymtab_comp_unit_reader, add_partial_symbol)
15629 (add_partial_subprogram, process_full_comp_unit)
15630 (read_file_scope, read_func_scope, read_lexical_block_scope)
15631 (read_call_site_scope, dwarf2_rnglists_process)
15632 (dwarf2_ranges_process, dwarf2_ranges_read)
15633 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15634 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15635 Update.
15636 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15637 Update.
15638 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15639 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15640 (process_one_symbol): Change type of "section_offsets".
15641 * ctfread.c (get_objfile_text_range): Update.
15642 * coffread.c (coff_symtab_read, enter_linenos)
15643 (process_coff_symbol): Update.
15644 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15645 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15646
456e800a
TT
156472020-01-08 Tom Tromey <tromey@adacore.com>
15648
15649 * dwarf2read.c (parse_macro_definition): Use std::string.
15650 (parse_macro_definition): Likewise.
15651
6dfa2fc2
TT
156522020-01-08 Tom Tromey <tromey@adacore.com>
15653
15654 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15655 (ATTR_ALLOC_CHUNK): Remove.
15656
421d1616
TT
156572020-01-08 Tom Tromey <tromey@adacore.com>
15658
15659 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15660
43816ebc
TT
156612020-01-08 Tom Tromey <tromey@adacore.com>
15662
15663 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15664 (dwarf2_compute_name, open_dwo_file): Likewise.
15665 (process_enumeration_scope): Use std::vector.
15666 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15667 (partial_die_info::fixup, dwarf2_start_subfile)
15668 (guess_full_die_structure_name, dwarf2_name): Likewise.
15669 (determine_prefix): Update.
15670 (guess_full_die_structure_name): Make return type const.
15671 (partial_die_full_name): Return unique_xmalloc_ptr.
15672 (DW_FIELD_ALLOC_CHUNK): Remove.
15673
4212d509
TT
156742020-01-07 Tom Tromey <tromey@adacore.com>
15675
15676 PR build/24937:
15677 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15678
06a6207a
JT
156792020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15680
15681 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15682
153d79c4
AB
156832020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15684
15685 * stack.c (print_frame_info): Move disassemble_next_line code
15686 inside source_print block.
15687
66182876
EZ
156882020-01-06 Eli Zaretskii <eliz@gnu.org>
15689
15690 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15691 gdb/signals.h, as we are now using native signal symbols.
15692
cbfa8581
SV
156932020-01-06 Shahab Vahedi <shahab@synopsys.com>
15694
15695 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15696 overflow by an early check of content vs threshold.
aac66a4c 15697 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15698 Likewise.
15699
3f602821
EZ
157002020-01-06 Eli Zaretskii <eliz@gnu.org>
15701
15702 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15703
a08c904d
JT
157042020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15705
15706 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15707 export table if no section contains it's RVA.
15708
89a65580
EZ
157092020-01-06 Eli Zaretskii <eliz@gnu.org>
15710
15711 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15712
8b7fcda2
HD
157132020-01-06 Hannes Domani <ssbssa@yahoo.de>
15714
15715 * source.c (print_source_lines_base): Set last_line_listed.
15716
a61b4f69
SV
157172020-01-06 Shahab Vahedi <shahab@synopsys.com>
15718
15719 * tui/tui-disasm.c: Remove trailing spaces.
15720
559e7e50
EZ
157212020-01-06 Eli Zaretskii <eliz@gnu.org>
15722 Pedro Alves <palves@redhat.com>
15723
15724 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15725 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15726 (windows_gdb_signal_to_target): New function, uses the above
15727 enumeration to convert GDB internal signal codes to equivalent
15728 Windows codes.
15729 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15730 * windows-nat.c: Include "gdb_wait.h".
15731 (get_windows_debug_event): Extract the fatal exception from the
15732 exit status and convert to the equivalent Posix signal number.
15733 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15734 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15735 * gdbsupport/gdb_wait.c: New file, implements
15736 windows_status_to_termsig.
15737 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15738 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15739
f2302a34
AB
157402020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15741
15742 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15743 show_layout.
15744
6a5206eb
LM
157452020-01-05 Luis Machado <luis.machado@linaro.org>
15746
15747 * aarch64-linux-nat.c
15748 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15749 and bfd_mach_aarch64.
15750
6ec1d75e
PW
157512020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15752
15753 * ui-file.c (stdio_file::can_emit_style_escape)
15754 (tee_file::can_emit_style_escape): Ensure style is used also on
15755 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15756 to gdb_stdout.
15757 * main.c (set_gdb_data_directory): Use file style to output the
15758 warning that the given pathname is not a directory.
15759 * top.c (show_history_filename, gdb_safe_append_history)
15760 (show_gdb_datadir): Use file style.
15761
44f81a76
HD
157622020-01-03 Hannes Domani <ssbssa@yahoo.de>
15763
15764 * solib-target.c (struct lm_info_target):
15765 Change offsets to be a unique_xmalloc_ptr.
15766 (solib_target_relocate_section_addresses): Update.
15767
25057eb0
HD
157682020-01-03 Hannes Domani <ssbssa@yahoo.de>
15769
15770 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15771
6e2118f5
BE
157722020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15773
15774 * MAINTAINERS (Write After Approval): Add myself.
15775
8133c7dc
LM
157762020-01-02 Luis Machado <luis.machado@linaro.org>
15777
15778 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15779 Cell BE architecture.
15780 * target.h (struct target_ops) <thread_architecture>: Likewise.
15781
48189bec
HD
157822020-01-01 Hannes Domani <ssbssa@yahoo.de>
15783
15784 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15785
ead1063b
HD
157862020-01-01 Hannes Domani <ssbssa@yahoo.de>
15787
15788 * MAINTAINERS (Write After Approval): Add myself.
15789
e5d78223
JB
157902020-01-01 Joel Brobecker <brobecker@adacore.com>
15791
15792 * gdbarch.sh: Update copyright year range of generated files.
15793
b811d2c2
JB
157942020-01-01 Joel Brobecker <brobecker@adacore.com>
15795
15796 Update copyright year range in all GDB files.
15797
5f4def5c
JB
157982020-01-01 Joel Brobecker <brobecker@adacore.com>
15799
15800 * copyright.py: Convert to Python 3.
15801
51fd4002
JB
158022020-01-01 Joel Brobecker <brobecker@adacore.com>
15803
15804 * copyright.py: Adapt after move of gnulib directory from gdb
15805 directory to toplevel directory.
15806
5fb651f2
JB
158072020-01-01 Joel Brobecker <brobecker@adacore.com>
15808
15809 * copyright.py (main): Exit if run from the wrong directory.
15810
5dd8bf88
JB
158112020-01-01 Joel Brobecker <brobecker@adacore.com>
15812
15813 * top.c (print_gdb_version): Change copyright year to 2020.
15814
9f71dacb 158152020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15816
9f71dacb 15817 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15818
9f71dacb 15819For older changes see ChangeLog-2019.
c906108c
SS
15820\f
15821Local Variables:
15822mode: change-log
15823left-margin: 8
15824fill-column: 74
15825version-control: never
57da7796 15826coding: utf-8
c906108c 15827End: