]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove commented-out code from gcore.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
784c8592
TT
12020-10-29 Tom Tromey <tom@tromey.com>
2
3 * gcore.c (default_gcore_mach): Remove.
4 (create_gcore_bfd): Update.
5
8a4f1402
TT
62020-10-29 Tom Tromey <tom@tromey.com>
7
8 * progspace.c (program_space::exec_close): New method, from
9 exec_close in exec.c.
10 * exec.c (exec_close): Move to progspace.c.
11 (exec_target::close, exec_file_attach): Update.
12 * progspace.h (struct program_space) <exec_close>: Declare
13 method.
14
c20cb686
TT
152020-10-29 Tom Tromey <tom@tromey.com>
16
17 * progspace.h (struct program_space) <exec_filename>: Rename from
18 pspace_exec_filename. Now a unique_xmalloc_ptr.
19 * inferior.c (print_selected_inferior): Update.
20 (print_inferior): Update.
21 * mi/mi-main.c (print_one_inferior): Update.
22 * exec.h (exec_filename): Remove macro.
23 * corefile.c (get_exec_file): Update.
24 * exec.c (exec_close): Update.
25 (exec_file_attach): Update.
26 * progspace.c (clone_program_space): Update.
27 (print_program_space): Update.
28
6be2a9ab
TT
292020-10-29 Tom Tromey <tom@tromey.com>
30
31 * target-section.h (struct target_section): Add constructor.
32 * exec.c (build_section_table, add_target_sections_of_objfile):
33 Update.
34 * corelow.c (core_target::build_file_mappings): Update.
35
cfaa8f76
TBA
362020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
37
38 PR gdb/19318
39 * inferior.c (detach_inferior_command): Restore the current thread.
40 (kill_inferior_command): Ditto.
41
1b00ef06
TV
422020-10-28 Tom de Vries <tdevries@suse.de>
43
44 PR symtab/26772
45 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
46 map, check it in the "best match" loop.
47
7f40ce1a
SM
482020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
49
50 * m32c-tdep.c: Remove unused includes.
51
5eb9e3f5
SM
522020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * xtensa-tdep.c: Remove includes.
55
b1d4d8d1
TBA
562020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
57
58 * breakpoint.c (struct condition_command_opts): New struct.
59 (condition_command_option_defs): New static global.
60 (make_condition_command_options_def_group): New function.
61 (condition_completer): Update to consider the '-force' flag.
62 (condition_command): Use gdb::option for the '-force' flag.
63
bd24c5d6
TV
642020-10-27 Tom de Vries <tdevries@suse.de>
65
66 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
67 symbols in section check.
68
61eb46a4
TV
692020-10-27 Tom de Vries <tdevries@suse.de>
70
71 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
72
733d554a
TBA
732020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
74
75 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
76 * breakpoint.c: Update the help text of the 'condition' and 'break'
77 commands.
78 (set_breakpoint_condition): Take a new bool parameter
79 to control whether condition definition should be forced even when
80 the condition expression is invalid in all of the current locations.
81 (condition_command): Update the call to 'set_breakpoint_condition'.
82 (find_condition_and_thread): Take the "-force-condition" flag into
83 account.
84 * linespec.c (linespec_keywords): Add "-force-condition" as an
85 element.
86 (FORCE_KEYWORD_INDEX): New #define.
87 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
88 as a keyword.
89 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
90 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
91 * python/py-breakpoint.c (bppy_set_condition): Ditto.
92 * NEWS: Mention the changes to the 'break' and 'condition' commands.
93
b5fa468f
TBA
942020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
95
96 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
97 * breakpoint.c (set_breakpoint_location_condition): New function.
98 (set_breakpoint_condition): Disable a breakpoint location if parsing
99 the condition string gives an error.
100 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
101 (build_target_condition_list): Ditto.
102 (build_target_command_list): Ditto.
103 (build_bpstat_chain): Ditto.
104 (print_one_breakpoint_location): Ditto.
105 (print_one_breakpoint): Ditto.
106 (breakpoint_1): Ditto.
107 (bp_location::bp_location): Ditto.
108 (locations_are_equal): Ditto.
109 (update_breakpoint_locations): Ditto.
110 (enable_disable_bp_num_loc): Ditto.
111 (init_breakpoint_sal): Use set_breakpoint_location_condition.
112 (find_condition_and_thread_for_sals): New static function.
113 (create_breakpoint): Call find_condition_and_thread_for_sals.
114 (location_to_sals): Call find_condition_and_thread_for_sals instead
115 of find_condition_and_thread.
116
1c47ec3e
TV
1172020-10-26 Tom de Vries <tdevries@suse.de>
118
119 * dwarf2/read.c (process_full_comp_unit): Call
120 dwarf2_find_base_address.
121
6390859c
TT
1222020-10-26 Tom Tromey <tromey@adacore.com>
123
124 * gdbtypes.c (create_range_type): Revert previous patch. Add
125 comment.
126
d744f0f9
PA
1272020-10-26 Pedro Alves <pedro@palves.net>
128
129 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
130 (my_waitpid): Use gdb::handle_eintr.
131
006811bc
SM
1322020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * acinclude.m4: Update ptrace.m4 path.
135 * ptrace.m4: Moved to gdbsupport.
136
c75e31a1
SM
1372020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
140 instead of target_gdbarch.
141
32495661
SM
1422020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * jit.c (jit_reader_load_command): Pass current inferior.
145 (jit_inferior_init): Change parameter type to inferior, use it.
146 (jit_inferior_created): Remove.
147 (jit_inferior_created_hook): Pass inferior parameter down.
148 (_initialize_jit): Use jit_inferior_created_hook instead of
149 jit_inferior_created.
150 * jit.h (jit_inferior_created_hook): Add inferior parameter.
151 * infrun.c (follow_exec): Pass inferior to
152 jit_inferior_created_hook.
153
3f66685e
SM
1542020-10-24 Simon Marchi <simon.marchi@efficios.com>
155
156 * linux-thread-db.c (check_pid_namespace_match): Add inferior
157 parameter and use it.
158 (thread_db_inferior_created): Pass inferior argument.
159
a0ff652f
SM
1602020-10-24 Simon Marchi <simon.marchi@efficios.com>
161
162 * aix-thread.c (aix_thread_inferior_created): Add inferior
163 parameter.
164 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
165 * dummy-frame.c (cleanup_dummy_frames): Likewise.
166 * jit.c (jit_inferior_created): Likewise.
167 * linux-thread-db.c (thread_db_inferior_created): Likewise.
168 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
169 * observable.h (inferior_created): Likewise.
170 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
171 * symfile-mem.c (add_vsyscall_page): Likewise.
172 * infcmd.c (post_create_inferior): Pass inferior argument.
173
3c67532c
JB
1742020-10-24 Joel Brobecker <brobecker@adacore.com>
175
176 GDB 10.1 released.
177
8747316e
JB
1782020-10-23 Joel Brobecker <brobecker@adacore.com>
179
180 * ada-typeprint.c (ada_print_type): Remove superfluous second call
181 to ada_check_typedef.
182
1a0ea399
AB
1832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * f-exp.y (f_parse): Rename to...
186 (f_language::parser): ...this.
187 * f-lang.c (f_get_encoding): Rename to...
188 (f_language::get_encoding): ...this.
189 (f_op_print_tab): Rename to...
190 (f_language::op_print_tab): ...this.
191 (exp_descriptor_f): Rename to...
192 (f_language::exp_descriptor_tab): ...this.
193 (class f_language): Moved to f-lang.h.
194 (f_language::language_arch_info): New function, moved out of class
195 declaration.
196 (f_language::search_name_hash): Likewise.
197 (f_language::lookup_symbol_nonlocal): Likewise.
198 (f_language::get_symbol_name_matcher_inner): Likewise.
199 * f-lang.h: Add 'valprint.h' include.
200 (class f_language): Moved here from f-lang.c.
201 * f-typeprint.c (f_type_print_args): Delete commented out
202 declaration.
203 (f_print_typedef): Rename to...
204 (f_language::print_typedef): ...this.
205 (f_print_type): Rename to...
206 (f_language::print_type): ...this.
207 (f_type_print_varspec_prefix): Delete declaration and rename to...
208 (f_language::f_type_print_varspec_prefix): ...this.
209 (f_type_print_varspec_suffix): Delete declaration and rename to...
210 (f_language::f_type_print_varspec_suffix): ...this.
211 (f_type_print_base): Delete declaration and rename to...
212 (f_language::f_type_print_base): ...this.
213 * f-valprint.c (f_value_print_inner): Rename to...
214 (f_language::value_print_inner): ...this.
215 * parse.c: Delete 'f-lang.h' include.
216
88cefd9b
AB
2172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * language.h (language_defn::print_type): Add variable names in
220 declaration, and update header comment.
221
5399db93
AB
2222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * ada-lang.c (ada_language::demangle): Rename to...
225 (ada_language::demangle_symbol): ...this.
226 * c-lang.c (cplus_language::demangle): Rename to...
227 (cplus_language::demangle_symbol): ...this.
228 * d-lang.c (d_language::demangle): Rename to...
229 (d_language::demangle_symbol): ...this.
230 * f-lang.c (f_language::demangle): Rename to...
231 (f_language::demangle_symbol): ...this.
232 * go-lang.c (go_language::demangle): Rename to...
233 (go_language::demangle_symbol): ...this.
234 * language.c (language_demangle): Update call to demangle_symbol.
235 (auto_or_unknown_language::demangle): Rename to...
236 (auto_or_unknown_language::demangle_symbol): ...this.
237 * language.h (language_defn::demangle): Rename to...
238 (language_defn::demangle_symbol): ...this.
239 * objc-lang.c (objc_language::demangle): Rename to...
240 (objc_language::demangle_symbol): ...this.
241 * rust-lang.c (rust_language::demangle): Rename to...
242 (rust_language::demangle_symbol): ...this.
243
4b2f86ef
AB
2442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
247 (iterate_over_file_blocks): Replace use of macro with the macros
248 definition.
249
e74b39de
AB
2502020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
253 * valprint.c (maybe_print_array_index): Replace use of macro with
254 the macros definition.
255
00c696a6
AB
2562020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * ada-lang.c (ada_language::print_array_index): Call value_print
259 directly.
260 * language.c (language_defn::print_array_index): Likewise.
261 * language.h (LA_VALUE_PRINT): Delete.
262 * valprint.c (value_print): Call value_print on the
263 current_language directly.
264
d3b67c56
AB
2652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * language.h (LA_PRINT_TYPEDEF): Delete.
268 * typeprint.c (typedef_print): Call print_typedef directly on the
269 current_language object.
270
790e2a12
AB
2712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * m2-exp.y (m2_parse): Rename to...
274 (m2_language::parser): ...this. Update function signature.
275 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
276 (m2_op_print): Rename to...
277 (m2_language::op_print_tab): ...this, and make const.
278 (exp_descriptor_modula2): Rename to...
279 (m2_language::exp_descriptor_modula2): ...this.
280 (class m2_language): Move to m2-lang.h.
281 (m2_language::language_arch_info): New function, moved out of
282 class declaration.
283 (m2_language::printchar): New function, body from m2_printchar.
284 (m2_language::printstr): New function, moved out of class
285 declaration.
286 (m2_language::emitchar): Likewise.
287 * m2-lang.h (m2_parse): Delete declaration.
288 (m2_print_typedef): Delete declaration.
289 (m2_value_print_inner): Delete declaration.
290 (class m2_language): Class declaration moved from m2-lang.c,
291 larger functions are left in m2-lang.c.
292 * m2-typeprint.c (m2_print_typedef): Rename to...
293 (m2_language::print_typedef): ...this, and update function
294 signature.
295 * m2-valprint.c (m2_value_print_inner): Rename to...
296 (m2_language::value_print_inner): ...this, replace use of
297 LA_PRINT_STRING with a direct call to printstr member function,
298 and update recursive call.
299
b01175fc
AB
3002020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * language.c (default_is_string_type_p): Delete, implementation
303 moved into auto_or_unknown_language::is_string_type_p.
304 (unk_op_print_tab): Moved into
305 auto_or_unknown_language::opcode_print_table.
306 (unknown_language_arch_info): Delete, implementation moved into
307 auto_or_unknown_language::language_arch_info.
308 (class auto_or_unknown_language): New class, member functions
309 copied from unknown_language class, with some updates.
310 (class unknown_language): Most member functions moved into
311 auto_or_unknown_language class. Inherit from
312 auto_or_unknown_language class.
313 (class auto_language): Inherit from auto_or_unknown_language.
314 Delete most member functions.
315
1a97fe8c
HD
3162020-10-22 Hannes Domani <ssbssa@yahoo.de>
317
318 * stabsread.c (read_member_functions): Remove gdb_assert.
319
6b9d0dfd
HD
3202020-10-22 Hannes Domani <ssbssa@yahoo.de>
321
322 * gdbtypes.c (init_complex_type): Check target type name.
323
4b4bb603
SM
3242020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * target-debug.h (target_debug_print_struct_target_ops_p):
327 Remove.
328 (target_debug_print_async_callback_ftype_p): Remove.
329 (target_debug_print_struct_trace_state_variable_p): Remove.
330 (target_debug_print_struct_traceframe_info_p): Remove.
331 (target_debug_print_VEC__btrace_block_s__pp): Remove.
332 (target_debug_print_enum_btrace_format): Remove.
333 (target_debug_print_enum_info_proc_what): Remove.
334 (target_debug_print_thread_info_pp): Remove.
335
24f5300a
SM
3362020-10-22 Simon Marchi <simon.marchi@efficios.com>
337
338 * target.h (struct target_ops) <make_corefile_notes>:
339 Change return type to unique pointer.
340 * target.c (dummy_make_corefile_notes): Likewise.
341 * exec.c (struct exec_target) <make_corefile_notes>:
342 Likewise.
343 (exec_target::make_corefile_notes): Likewise.
344 * procfs.c (class procfs_target) <make_corefile_notes>:
345 Likewise.
346 (procfs_do_thread_registers): Adjust to unique pointer.
347 (struct procfs_corefile_thread_data): Add constructor.
348 <note_data>: Change type to unique pointer.
349 (procfs_corefile_thread_callback): Adjust to unique pointer.
350 (procfs_target::make_corefile_notes): Change return type to
351 unique pointer.
352 * target-delegates.c: Re-generate.
353 * gcore.c (write_gcore_file_1): Adjust.
354 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
355 New.
356
5fb4027f
TV
3572020-10-22 Tom de Vries <tdevries@suse.de>
358
359 * block.c (find_block_in_blockvector): Make sure the returned block
360 contains pc.
361
4a636814
SM
3622020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
363
364 PR gdb/26693
365 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
366 parameter.
367 (load_cu): Pass existing CU.
368 (process_imported_unit_die): Likewise.
369 (follow_die_offset): Likewise.
370
1bd57575
LM
3712020-10-22 Luis Machado <luis.machado@linaro.org>
372
373 * corelow.c (core_target::xfer_partial): Also check for an empty
374 m_core_unavailable_mappings vector.
375
6b4c676c
AB
3762020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
379 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
380 * f-exp.y (arglist): Allow for a series of subranges.
381 (subrange): Add cases for subranges with strides.
382 * f-lang.c (value_f90_subarray): Catch use of array strides and
383 throw an error.
384 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
385
f2d8e4c5
AB
3862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * expprint.c (print_subexp_standard): Change enum range_type to
389 range_flag and rename variables to match.
390 (dump_subexp_body_standard): Likewise.
391 * expression.h (enum range_type): Rename to...
392 (enum range_flag): ...this.
393 (range_types): Rename to...
394 (range_flags): ...this.
395 * f-lang.c (value_f90_subarray): Change enum range_type to
396 range_flag and rename variables to match.
397 * parse.c (operator_length_standard): Likewise.
398 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
399 range_type to range_flag.
400 * rust-lang.c (rust_evaluate_funcall): Likewise.
401 (rust_range): Likewise.
402 (rust_compute_range): Likewise.
403 (rust_subscript): Likewise.
404
2f1b18db
AB
4052020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * expprint.c (print_subexp_standard): Update to reflect changes to
408 enum range_type.
409 (dump_subexp_body_standard): Likewise.
410 * expression.h (enum range_type): Convert to a bit field enum, and
411 make the enum unsigned.
412 * f-exp.y (subrange): Update to reflect changes to enum
413 range_type.
414 * f-lang.c (value_f90_subarray): Likewise.
415 * parse.c (operator_length_standard): Likewise.
416 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
417 * rust-lang.c (rust_range): Likewise.
418 (rust_compute_range): Likewise.
419 (rust_subscript): Likewise.
420
a46d1843
SM
4212020-10-21 Simon Marchi <simon.marchi@efficios.com>
422
423 * infrun.c (displaced_step_in_progress_thread): Fix comment.
424 (displaced_step_in_progress): Fix comment.
425
c21f37a8
SM
4262020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * gdbarch.sh (make_corefile_notes): Return unique pointer.
429 * gdbarch.c: Re-generate.
430 * gdbarch.h: Re-generate.
431 * gcore.c (write_gcore_file_1): Adjust.
432 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
433 constructor.
434 <note_data>: Change type to unique pointer.
435 <abort_iteration>: Change type to bool.
436 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
437 (fbsd_collect_thread_registers): Return void, adjust.
438 (struct fbsd_corefile_thread_data): Add construtor.
439 <note_data>: Change type to unique pointer.
440 (fbsd_corefile_thread): Adjust.
441 (fbsd_make_corefile_notes): Return unique pointer, adjust.
442 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
443 to unique pointer, adjust.
444 (struct linux_collect_regset_section_cb_data): Add constructor.
445 <note_data>: Change type to unique pointer.
446 <abort_iteration>: Change type to bool.
447 (linux_collect_thread_registers): Return void, adjust.
448 (struct linux_corefile_thread_data): Add constructor.
449 <note_data>: Change type to unique pointer.
450 (linux_corefile_thread): Adjust.
451 (linux_make_corefile_notes): Return unique pointer, adjust.
452
07fbbd01
SM
4532020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
456 * gdbarch.c: Re-generate.
457 * gdbarch.h: Re-generate.
458 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
459 bool.
460 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
461 Likewise.
462 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
463 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
464 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
465 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
466
39535193
SM
4672020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * gdbarch.sh: Make generated predicates return bool.
470 * gdbarch.c: Re-generate.
471 * gdbarch.h: Re-generate.
472
ad523d01
TT
4732020-10-20 Tom Tromey <tom@tromey.com>
474
475 * varobj-iter.h (struct varobj_item): Remove typedef.
476
c4464ade
SM
4772020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
478
479 * infrun.c (currently_stepping): Change int to bool
480 (maybe_software_singlestep): Likewise.
481 (show_stop_on_solib_events): Likewise.
482 (stepping_past_nonsteppable_watchpoint): Likewise.
483 (displaced_step_in_progress_any_inferior): Likewise.
484 (displaced_step_in_progress_thread): Likewise.
485 (keep_going_stepped_thread): Likewise.
486 (thread_still_needs_step_over): Likewise.
487 (start_step_over): Likewise.
488 (do_target_resume): Likewise.
489 (resume_1): Likewise.
490 (clear_proceed_status): Likewise.
491 (thread_still_needs_step_over_bp): Likewise.
492 (proceed): Likewise.
493 (switch_back_to_stepped_thread): Likewise.
494 (adjust_pc_after_break): Likewise.
495 (stepped_in_from): Likewise.
496 (handle_stop_requested): Likewise.
497 (handle_syscall_event): Likewise.
498 (handle_no_resumed): Likewise.
499 (handle_inferior_event): Likewise.
500 (finish_step_over): Likewise.
501 (handle_signal_stop): Likewise.
502 (process_event_stop_test): Likewise.
503
2eb20436
SM
5042020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * infrun.c (get_displaced_stepping_state): Fix comment.
507
e0c45ded
AS
5082020-10-20 Andreas Schwab <schwab@linux-m68k.org>
509
510 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
511
22cc388e
TT
5122020-10-19 Tom Tromey <tromey@adacore.com>
513
514 PR tui/26719
515 * tui/tui-winsource.h (struct tui_source_window_base)
516 <refresh_window>: Rename from refresh_pad.
517 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
518 Rename from refresh_pad.
519 (tui_source_window_base::show_source_content)
520 (tui_source_window_base::do_scroll_horizontal): Update.
521
3c6eb4d4
TBA
5222020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * thread.c (_initialize_thread): Fine-tune the help text of
525 'info threads'.
526
26703721
TBA
5272020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
528
529 * frame.c: Remove the unused 'uinteger_option_def' type alias.
530
61c26be8
MS
5312020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
532
533 * breakpoint.c (handle_jit_event): Add an argument, change how
534 `jit_event_handler` is called.
535
932539d7
TT
5362020-10-17 Tom Tromey <tom@tromey.com>
537
538 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
539 (scan_xcoff_symtab): Update.
540 * psymtab.h (class psymtab_storage) <global_psymbols,
541 static_psymbols, current_global_psymbols,
542 current_static_psymbols>: Remove.
543 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
544 (match_partial_symbol, lookup_partial_symbol): Update.
545 (print_partial_symbols): Change parameters.
546 (dump_psymtab, recursively_search_psymtabs)
547 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
548 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
549 (concat): Remove.
550 (end_psymtab_common): Simplify.
551 (append_psymbol_to_list): Change parameters.
552 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
553 (init_psymbol_list): Simplify.
554 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
555 * psympriv.h (struct partial_symtab) <empty>: New method.
556 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
557 Remove.
558 <global_psymbols, static_psymbols>: New members.
559 <add_psymbol>: New methods.
560 (add_psymbol_to_list): Don't declare.
561 (psymbol_placement): Move earlier.
562 * mdebugread.c (parse_partial_symbols): Update.
563 (handle_psymbol_enumerators): Change parameters.
564 (mdebug_expand_psymtab): Update.
565 * dwarf2/read.c (process_psymtab_comp_unit_reader)
566 (add_partial_symbol): Update.
567 * dwarf2/index-write.c (write_psymbols): Change parameters.
568 (write_one_signatured_type): Update.
569 (recursively_count_psymbols): Update.
570 (recursively_write_psymbols): Update.
571 (class debug_names) <recursively_write_psymbols>: Update.
572 <write_psymbols>: Change parameters.
573 <write_one_signatured_type>: Update.
574 * dbxread.c (read_dbx_symtab): Update.
575 (dbx_end_psymtab): Use partial_symtab::empty.
576 * ctfread.c (struct ctf_context) <pst>: New member.
577 (create_partial_symtab): Set it.
578 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
579 (scan_partial_symbols): Use the psymtab's context. Update.
580
cfabbd35
TT
5812020-10-17 Tom Tromey <tom@tromey.com>
582
583 * valprint.c (generic_value_print): Remove comment.
584 * m2-valprint.c (m2_value_print_inner): Remove comment.
585 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
586 type.
587
520596f2
TV
5882020-10-17 Tom de Vries <tdevries@suse.de>
589
590 PR symtab/26317
591 * source.c (select_source_symtab): Handling sal.symtab == NULL for
592 symbol main.
593
76547ab3
TV
5942020-10-14 Tom de Vries <tdevries@suse.de>
595
596 PR gdb/26733
597 * solib.c (solib_contains_address_p): Handle
598 'solib->sections == nullptr'.
599
d3a07122
SM
6002020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
601
602 PR gdb/26642
603 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
604 target can't do async.
605 * target.c (target_wait): Assert that we don't pass
606 TARGET_WNOHANG to a target that can't async.
607
1b71cfcf
KR
6082020-10-13 Kamil Rytarowski <n54@gmx.com>
609
610 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
611 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
612 * alpha-bsd-nat.c: Adjust include.
613 * alpha-bsd-tdep.h: Adjust comment.
614 * alpha-nbsd-tdep.c: Rename to ...
615 * alpha-netbsd-tdep.c: ... this, adjust include.
616 * amd64-nbsd-nat.c: Rename to ...
617 * amd64-netbsd-nat.c: ... this, adjust include.
618 * amd64-nbsd-tdep.c: Rename to ...
619 * amd64-netbsd-tdep.c: ... this, adjust include.
620 * amd64-tdep.h: Adjust include.
621 * arm-nbsd-nat.c: Rename to ...
622 * arm-netbsd-nat.c: ... this, adjust include.
623 * arm-nbsd-tdep.c: Rename to ...
624 * arm-netbsd-tdep.c: ... this, adjust include.
625 * arm-nbsd-tdep.h: Rename to ...
626 * arm-netbsd-tdep.h: ... this, adjust include.
627 * configure.nat: Adjust file lists.
628 * configure.tgt: Likewise.
629 * hppa-nbsd-nat.c: Rename to ...
630 * hppa-netbsd-nat.c: ... this, adjust include.
631 * hppa-nbsd-tdep.c: Rename to ...
632 * hppa-netbsd-tdep.c: ... this, adjust include.
633 * i386-nbsd-nat.c: Rename to ...
634 * i386-netbsd-nat.c: ... this, adjust include.
635 * i386-nbsd-tdep.c: Rename to ...
636 * i386-netbsd-tdep.c: ... this, adjust include.
637 * m68k-bsd-nat.c: Adjust include.
638 * mips-nbsd-nat.c: Rename to ...
639 * mips-netbsd-nat.c: ... this, adjust include.
640 * mips-nbsd-tdep.c: Rename to ...
641 * mips-netbsd-tdep.c: ... this, adjust include.
642 * mips-nbsd-tdep.h: Rename to ...
643 * mips-netbsd-tdep.h: ... this.
644 * nbsd-nat.c: Rename to ...
645 * netbsd-nat.c: ... this, adjust include.
646 * nbsd-nat.h: Rename to ...
647 * netbsd-nat.h: ... this, adjust include.
648 * nbsd-tdep.c: Rename to ...
649 * netbsd-tdep.c: ... this, adjust include.
650 * nbsd-tdep.h: Rename to ...
651 * netbsd-tdep.h: ... this.
652 * ppc-nbsd-nat.c: Rename to ...
653 * ppc-netbsd-nat.c: ... this, adjust include.
654 * ppc-nbsd-tdep.c: Rename to ...
655 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
656 * ppc-nbsd-tdep.h: Rename to ...
657 * ppc-netbsd-tdep.h: ... this.
658 * sh-nbsd-nat.c: Rename to ...
659 * sh-netbsd-nat.c: ... this, adjust include.
660 * sh-nbsd-tdep.c: Rename to ...
661 * sh-netbsd-tdep.c: ... this, adjust include.
662 * sparc-nbsd-nat.c: Rename to ...
663 * sparc-netbsd-nat.c: ... this.
664 * sparc-nbsd-tdep.c: Rename to ...
665 * sparc-netbsd-tdep.c: ... this, adjust include.
666 * sparc64-nbsd-nat.c: Rename to ...
667 * sparc64-netbsd-nat.c: ... this.
668 * sparc64-nbsd-tdep.c: Rename to ...
669 * sparc64-netbsd-tdep.c: ... this, adjust include.
670 * sparc64-tdep.h: Adjust comment.
671 * vax-bsd-nat.c: Adjust include.
672 * vax-nbsd-tdep.c: Rename to ...
673 * vax-netbsd-tdep.c: ... this, adjust include.
674
d7a78e5c
TT
6752020-10-12 Tom Tromey <tom@tromey.com>
676
677 * target.h (struct target_ops) <get_section_table>: Update.
678 (target_get_section_table): Update.
679 * target.c (target_get_section_table, target_section_by_addr)
680 (memory_xfer_partial_1): Update.
681 * target-section.h (target_section_table): Now an alias.
682 * target-delegates.c: Rebuild.
683 * target-debug.h (target_debug_print_target_section_table_p):
684 Rename from target_debug_print_struct_target_section_table_p.
685 * symfile.c (build_section_addr_info_from_section_table): Update.
686 * solib.c (solib_map_sections, solib_contains_address_p): Update.
687 * solib-svr4.c (scan_dyntag): Update.
688 * solib-dsbt.c (scan_dyntag): Update.
689 * remote.c (remote_target::remote_xfer_live_readonly_partial):
690 Update.
691 * record-full.c (record_full_core_target::xfer_partial): Update.
692 * progspace.h (struct program_space) <target_sections>: Update.
693 * exec.h (print_section_info): Update.
694 * exec.c (exec_target::close, build_section_table)
695 (add_target_sections, add_target_sections_of_objfile)
696 (remove_target_sections, exec_on_vfork)
697 (section_table_available_memory)
698 (section_table_xfer_memory_partial)
699 (exec_target::get_section_table, exec_target::xfer_partial)
700 (print_section_info, set_section_command)
701 (exec_set_section_address, exec_target::has_memory): Update.
702 * corelow.c (core_target::build_file_mappings)
703 (core_target::xfer_partial, core_target::info_proc_mappings)
704 (core_target::info_proc_mappings): Update.
705 * bfd-target.c (class target_bfd): Update
706
eda214ce
TT
7072020-10-12 Tom Tromey <tom@tromey.com>
708
709 * progspace.c (program_space::~program_space): Don't call
710 clear_section_table.
711 * exec.h (clear_section_table): Don't declare.
712 * exec.c (exec_target::close): Update.
713 (clear_section_table): Remove.
714
91840ee3
TT
7152020-10-12 Tom Tromey <tom@tromey.com>
716
717 * exec.c (add_target_sections_of_objfile): Simplify.
718
2d128614
TT
7192020-10-12 Tom Tromey <tom@tromey.com>
720
721 * solib.c (solib_map_sections): Update.
722 * record-full.c (record_full_core_open_1): Update.
723 * exec.h (build_section_table): Return a target_section_table.
724 * exec.c (exec_file_attach): Update.
725 (build_section_table): Return a target_section_table.
726 * corelow.c (core_target::core_target): Update.
727 * bfd-target.c (target_bfd::target_bfd): Update.
728
bb2a6777
TT
7292020-10-12 Tom Tromey <tom@tromey.com>
730
731 * target.c (target_section_by_addr, memory_xfer_partial_1):
732 Update.
733 * target-section.h (struct target_section_table): Use
734 std::vector.
735 * symfile.h (build_section_addr_info_from_section_table): Take a
736 target_section_table.
737 * symfile.c (build_section_addr_info_from_section_table): Take a
738 target_section_table.
739 * solist.h (struct so_list) <sections>: Change type.
740 <sections_end>: Remove.
741 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
742 (solib_contains_address_p): Update.
743 * solib-svr4.c (scan_dyntag): Update.
744 * solib-dsbt.c (scan_dyntag): Update.
745 * remote.c (remote_target::remote_xfer_live_readonly_partial):
746 Update.
747 * record-full.c (record_full_core_start, record_full_core_end):
748 Remove.
749 (record_full_core_sections): New global.
750 (record_full_core_open_1, record_full_core_target::xfer_partial):
751 Update.
752 * exec.h (build_section_table, section_table_xfer_memory_partial)
753 (add_target_sections): Take a target_section_table.
754 * exec.c (exec_file_attach, clear_section_table): Update.
755 (resize_section_table): Remove.
756 (build_section_table, add_target_sections): Take a
757 target_section_table.
758 (add_target_sections_of_objfile, remove_target_sections)
759 (exec_on_vfork): Update.
760 (section_table_available_memory): Take a target_section_table.
761 (section_table_read_available_memory): Update.
762 (section_table_xfer_memory_partial): Take a target_section_table.
763 (print_section_info, set_section_command)
764 (exec_set_section_address, exec_target::has_memory): Update.
765 * corelow.c (class core_target) <m_core_section_table,
766 m_core_file_mappings>: Remove braces.
767 <~core_target>: Remove.
768 (core_target::core_target): Update.
769 (core_target::~core_target): Remove.
770 (core_target::build_file_mappings)
771 (core_target::xfer_memory_via_mappings)
772 (core_target::xfer_partial, core_target::info_proc_mappings):
773 Update.
774 * bfd-target.c (target_bfd::xfer_partial): Update.
775 (target_bfd::target_bfd): Update.
776 (target_bfd::~target_bfd): Remove.
777
7b466b10
TT
7782020-10-12 Tom Tromey <tom@tromey.com>
779
780 * target.h (struct target_section, struct target_section_table):
781 Move to target-section.h.
782 * target-section.h: New file.
783
87a37e5e
PA
7842020-10-12 Pedro Alves <pedro@palves.net>
785
786 PR exp/26602
787 * valops.c (struct struct_field_searcher): New.
788 (update_search_result): Rename to ...
789 (struct_field_searcher::update_result): ... this. Simplify
790 prototype. Record all found fields.
791 (do_search_struct_field): Rename to ...
792 (struct_field_searcher::search): ... this. Simplify prototype.
793 Maintain stack of visited baseclass path. Call update_result for
794 fields too. Keep searching fields in baseclasses instead of
795 stopping at the first found field.
796 (search_struct_field): Use struct_field_searcher. When looking
797 for fields, report ambiguous access attempts.
798
9370fd51
AB
7992020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * frame.c (inside_main_func): Check full symbols as well as
802 minimal symbols.
803
59c8a30b
JB
8042020-10-09 Joel Brobecker <brobecker@adacore.com>
805
806 * ada-lang.c (advance_wild_match): Rewrite the function's
807 description. Change the type of target0, t0 and t1 to char.
808
7c184d33
TT
8092020-10-09 Tom Tromey <tromey@adacore.com>
810
811 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
812
5c4258f4
TT
8132020-10-09 Tom Tromey <tromey@adacore.com>
814
815 * ada-lang.h (ada_encode): Return std::string.
816 * ada-lang.c (ada_encode_1): Return std::string.
817 (ada_encode): Likewise.
818 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
819 Update.
820 * ada-exp.y (block_lookup, write_var_or_type): Update.
821
3d87245c
HD
8222020-10-09 Hannes Domani <ssbssa@yahoo.de>
823
824 PR exp/26714
825 * printcmd.c (print_formatted): Handle void results as
826 unformatted prints.
827
bbb826f5
AB
8282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * arch/aarch32.c (aarch32_create_target_description): Release the
831 target_desc_up as late as possible.
832 * arch/aarch64.c (aarch64_create_target_description): Likewise.
833 * arch/amd64.c (amd64_create_target_description): Likewise.
834 * arch/arc.c (arc_create_target_description): Return a
835 target_desc_up, don't release it.
836 * arch/arc.h (arc_create_target_description): Update declaration.
837 (arc_lookup_target_description): Move target_desc_up into the
838 cache, and return a borrowed pointer.
839 * arch/arm.c (arm_create_target_description): Release the
840 target_desc_up as late as possible.
841 * arch/i386.c (i386_create_target_description): Likewise.
842 * arch/riscv.h (riscv_create_target_description): Update
843 declaration to match definition.
844 * arch/tic6x.c (tic6x_create_target_description): Release the
845 target_desc_up as late as possible.
846
361cb219
AB
8472020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
850 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
851
f5c4b229
JV
8522020-10-09 Jan Vrany <jan.vrany@labware.com>
853
854 * source.c (directory_command): Notify observers that "directories"
855 parameter has changed.
856
b2701685
TT
8572020-10-08 Tom Tromey <tom@tromey.com>
858
859 * cli/cli-cmds.c (print_disassembly): Style function name and
860 addresses. Add _() wrappers.
861
ada508b6
SV
8622020-10-08 Shahab Vahedi <shahab@synopsys.com>
863
864 * NEWS: Mention ARC support in GDBserver.
865
51a948fd
AB
8662020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * arch/aarch32.c (aarch32_create_target_description): Release
869 unique_ptr returned from allocate_target_description.
870 * arch/aarch64.c (aarch64_create_target_description): Likewise.
871 * arch/amd64.c (amd64_create_target_description): Likewise.
872 * arch/arc.c (arc_create_target_description): Likewise.
873 * arch/arm.c (arm_create_target_description): Likewise.
874 * arch/i386.c (i386_create_target_description): Likewise.
875 * arch/riscv.c (riscv_create_target_description): Update return
876 type. Handle allocate_target_description returning a unique_ptr.
877 (riscv_lookup_target_description): Update to handle unique_ptr.
878 * arch/tic6x.c (tic6x_create_target_description): Release
879 unique_ptr returned from allocate_target_description.
880 * features/microblaze-with-stack-protect.c: Regenerate.
881 * features/microblaze.c: Regenerate.
882 * features/mips-dsp-linux.c: Regenerate.
883 * features/mips-linux.c: Regenerate.
884 * features/mips64-dsp-linux.c: Regenerate.
885 * features/mips64-linux.c: Regenerate.
886 * features/nds32.c: Regenerate.
887 * features/nios2.c: Regenerate.
888 * features/or1k.c: Regenerate.
889 * features/rs6000/powerpc-32.c: Regenerate.
890 * features/rs6000/powerpc-32l.c: Regenerate.
891 * features/rs6000/powerpc-403.c: Regenerate.
892 * features/rs6000/powerpc-403gc.c: Regenerate.
893 * features/rs6000/powerpc-405.c: Regenerate.
894 * features/rs6000/powerpc-505.c: Regenerate.
895 * features/rs6000/powerpc-601.c: Regenerate.
896 * features/rs6000/powerpc-602.c: Regenerate.
897 * features/rs6000/powerpc-603.c: Regenerate.
898 * features/rs6000/powerpc-604.c: Regenerate.
899 * features/rs6000/powerpc-64.c: Regenerate.
900 * features/rs6000/powerpc-64l.c: Regenerate.
901 * features/rs6000/powerpc-7400.c: Regenerate.
902 * features/rs6000/powerpc-750.c: Regenerate.
903 * features/rs6000/powerpc-860.c: Regenerate.
904 * features/rs6000/powerpc-altivec32.c: Regenerate.
905 * features/rs6000/powerpc-altivec32l.c: Regenerate.
906 * features/rs6000/powerpc-altivec64.c: Regenerate.
907 * features/rs6000/powerpc-altivec64l.c: Regenerate.
908 * features/rs6000/powerpc-e500.c: Regenerate.
909 * features/rs6000/powerpc-e500l.c: Regenerate.
910 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
911 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
912 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
913 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
914 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
915 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
916 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
917 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
918 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
919 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
920 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
921 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
922 * features/rs6000/powerpc-vsx32.c: Regenerate.
923 * features/rs6000/powerpc-vsx32l.c: Regenerate.
924 * features/rs6000/powerpc-vsx64.c: Regenerate.
925 * features/rs6000/powerpc-vsx64l.c: Regenerate.
926 * features/rs6000/rs6000.c: Regenerate.
927 * features/rx.c: Regenerate.
928 * features/s390-gs-linux64.c: Regenerate.
929 * features/s390-linux32.c: Regenerate.
930 * features/s390-linux32v1.c: Regenerate.
931 * features/s390-linux32v2.c: Regenerate.
932 * features/s390-linux64.c: Regenerate.
933 * features/s390-linux64v1.c: Regenerate.
934 * features/s390-linux64v2.c: Regenerate.
935 * features/s390-te-linux64.c: Regenerate.
936 * features/s390-tevx-linux64.c: Regenerate.
937 * features/s390-vx-linux64.c: Regenerate.
938 * features/s390x-gs-linux64.c: Regenerate.
939 * features/s390x-linux64.c: Regenerate.
940 * features/s390x-linux64v1.c: Regenerate.
941 * features/s390x-linux64v2.c: Regenerate.
942 * features/s390x-te-linux64.c: Regenerate.
943 * features/s390x-tevx-linux64.c: Regenerate.
944 * features/s390x-vx-linux64.c: Regenerate.
945 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
946 from allocate_target_description.
947 * target-descriptions.c (allocate_target_description): Update
948 return type.
949 (print_c_tdesc::visit_pre): Release unique_ptr returned from
950 allocate_target_description.
951
485c47e5
TT
9522020-10-07 Tom Tromey <tromey@adacore.com>
953
954 * unittests/search-memory-selftests.c: New file.
955 * Makefile.in (SELFTESTS_SRCS): Add
956 unittests/search-memory-selftests.c.
957
3a135a91
TT
9582020-10-07 Tom Tromey <tromey@adacore.com>
959
960 PR gdb/16930:
961 * findcmd.c (_initialize_mem_search): Mention that the range is
962 inclusive.
963
4a72de73
TT
9642020-10-07 Tom Tromey <tromey@adacore.com>
965
966 * target.h (simple_search_memory): Don't declare.
967 * target.c (simple_search_memory): Move to gdbsupport.
968 (default_search_memory): Update.
969 * remote.c (remote_target::search_memory): Update.
970
a038ffd8
SM
9712020-10-07 Simon Marchi <simon.marchi@efficios.com>
972
973 * Makefile.in (COMPILE): Add CXXFLAGS.
974 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
975 (check-headers): Add CXXFLAGS.
976
cc463201
AK
9772020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
978
979 * arc-linux-tdep.h: New file.
980 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
981 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
982 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
983 arc_linux_gregset, arc_linux_v2_regset,
984 arc_linux_iterate_over_regset_sections,
985 arc_linux_core_read_description): Implement.
986 (arc_linux_init_osabi): Set iterate_over_regset_sections.
987 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
988 (arc_gdbarch_features_create): Add.
989 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
990
e4bd363f
SV
9912020-10-07 Shahab Vahedi <shahab@synopsys.com>
992
993 * arch/arc.h: Rename "arc_gdbarch_features" to
994 "arc_arch_features".
995 * arc-tdep.h: Likewise.
996 * arc-tdep.c: Likewise.
997
b68bef99
TBA
9982020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
999
1000 * infcmd.c (attach_command): Remove the redundant call to
1001 `clear_proceed_status`.
1002
4641551a
KR
10032020-10-07 Kamil Rytarowski <n54@gmx.com>
1004
1005 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1006
91e5e8db
KR
10072020-10-07 Kamil Rytarowski <n54@gmx.com>
1008
1009 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1010 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1011 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1012
64c03bdb
SM
10132020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1016 (_initialize_break_catch_sig): Don't allocate array.
1017
31a8f60f
AB
10182020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * symtab.c (find_pc_line): Return unmapped addresses when the
1021 requested address is also unmapped.
1022
9e6dbd8b
SM
10232020-10-05 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1026 tui/tui-out.h.
1027
a1d217e8
SM
10282020-10-05 Simon Marchi <simon.marchi@efficios.com>
1029
1030 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1031 type::is_vector instead of TYPE_VECTOR.
1032
7d144117
SM
10332020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * auto-load.c (auto_load_objfile_script_1): Don't use
1036 debugfile_holder as temporary variable when stripping drive
1037 letter.
1038
cd096ec8
HD
10392020-10-05 Hannes Domani <ssbssa@yahoo.de>
1040
1041 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1042 Add TYPE_CODE_COMPLEX.
1043 (amd64_windows_return_value): Fix types returned via XMM0.
1044
b58e7f72
AH
10452020-10-05 Alan Hayward <alan.hayward@arm.com>
1046
1047 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1048 AArch64/ARM maintainers.
1049
8d378f27
SM
10502020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * NEWS: Mention set/show debug event-loop.
1053
d5519913
TT
10542020-10-02 Tom Tromey <tromey@adacore.com>
1055
1056 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1057 REG_EXTENDED.
1058
18b67edc
SM
10592020-10-02 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1062 * procfs.c (procfs_inferior_created): Remove.
1063 (_initialize_procfs): Don't register procfs_inferior_created.
1064
6b01403b
SM
10652020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * async-event.c (invoke_async_signal_handlers): Add debug
1068 print.
1069 (check_async_event_handlers): Likewise.
1070 * event-top.c (show_debug_event_loop): New function.
1071 (_initialize_event_top): Register "set debug event-loop"
1072 setting.
1073
ba988419
SM
10742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1077 * debug.h: Remove.
1078 * infrun.c: Include gdbsupport/common-debug.h.
1079 * linux-nat.c: Likewise.
1080
db20ebdf
SM
10812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1082
1083 * async-event.h (create_async_signal_handler): Add name
1084 parameter.
1085 (create_async_event_handler): Likewise.
1086 * async-event.c (struct async_signal_handler) <name>: New field.
1087 (struct async_event_handler) <name>: New field.
1088 (create_async_signal_handler): Assign name.
1089 (create_async_event_handler): Assign name.
1090 * event-top.c (async_init_signals): Pass name when creating
1091 handler.
1092 * infrun.c (_initialize_infrun): Likewise.
1093 * record-btrace.c (record_btrace_push_target): Likewise.
1094 * record-full.c (record_full_open): Likewise.
1095 * remote-notif.c (remote_notif_state_allocate): Likewise.
1096 * remote.c (remote_target::open_1): Likewise.
1097 * tui/tui-win.c (tui_initialize_win): Likewise.
1098
2554f6f5
SM
10992020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * async-event.c (initialize_async_signal_handlers): Pass name to
1102 add_file_handler
1103 * event-top.c (ui_register_input_event_handler): Likewise.
1104 * linux-nat.c (linux_nat_target::async): Likewise.
1105 * run-on-main-thread.c (_initialize_run_on_main_thread):
1106 Likewise
1107 * ser-base.c (reschedule): Likewise.
1108 (ser_base_async): Likewise.
1109 * tui/tui-io.c: Likewise.
1110 * top.h (struct ui) <num>: New field.
1111 * top.c (highest_ui_num): New variable.
1112 (ui::ui): Initialize num.
1113
a7aba266
SM
11142020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 * observable.h <inferior_created>: Remove parameters. Update all
1117 listeners.
1118 * inferior.h (post_create_inferior): Remove target parameter.
1119 Update all callers.
1120
048fde1e 11212020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1122
1123 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1124 and DW_MACRO_undef_strx.
1125 (dwarf_decode_macros): Likewise
1126 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1127 which is the value of DW_AT_str_offsets_base.
1128 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1129 str_offsets_base.
1130
064280be
KR
11312020-10-01 Kamil Rytarowski <n54@gmx.com>
1132
1133 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1134
6ff33035
KR
11352020-10-01 Kamil Rytarowski <n54@gmx.com>
1136
1137 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1138 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1139
1eb6eb79
KR
11402020-10-01 Kamil Rytarowski <n54@gmx.com>
1141
1142 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1143
95eb9e54
TV
11442020-09-30 Tom de Vries <tdevries@suse.de>
1145
1146 PR symtab/26683
1147 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1148
cae21f8e
TT
11492020-09-30 Tom Tromey <tromey@adacore.com>
1150
1151 * dwarf2/read.c (handle_variant): Use constant_value.
1152
529908cb
TT
11532020-09-29 Tom Tromey <tom@tromey.com>
1154
1155 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1156 (read_file_scope, dwarf2_get_pc_bounds)
1157 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1158 (read_structure_type, handle_struct_member_die)
1159 (read_enumeration_type, read_array_type, read_set_type)
1160 (read_tag_pointer_type, read_tag_reference_type)
1161 (read_subroutine_type, read_base_type, read_subrange_type)
1162 (read_full_die_1, partial_die_info::read)
1163 (partial_die_info::read, by, new_symbol)
1164 (dwarf2_const_value_data, dwarf2_const_value_attr)
1165 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1166 (prepare_one_comp_unit): Update.
1167 * dwarf2/attribute.h (DW_UNSND): Remove.
1168
c45bc3f8
TT
11692020-09-29 Tom Tromey <tom@tromey.com>
1170
1171 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1172 (read_subroutine_type, partial_die_info::read)
1173 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1174 (dwarf2_add_member_fn): Update.
1175 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1176 * dwarf2/attribute.c (attribute::as_boolean): New method.
1177
23dca5c3
TT
11782020-09-29 Tom Tromey <tom@tromey.com>
1179
1180 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1181 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1182 method.
1183 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1184
52c14d11
TT
11852020-09-29 Tom Tromey <tom@tromey.com>
1186
1187 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1188 the attribute's form.
1189
e8e5c158
TT
11902020-09-29 Tom Tromey <tom@tromey.com>
1191
1192 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1193 (dwarf2_add_member_fn): Update.
1194 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1195 * dwarf2/attribute.c (attribute::defaulted): New method, from
1196 is_valid_DW_AT_defaulted.
1197
d4df075e
TT
11982020-09-29 Tom Tromey <tom@tromey.com>
1199
1200 * dwarf2/read.c (dw2_get_file_names_reader)
1201 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1202 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1203 (dwarf2_symbol_mark_computed): Use as_unsigned.
1204 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1205 method.
1206 <form_is_section_offset>: Update comment.
1207
bf23a268
TT
12082020-09-29 Tom Tromey <tom@tromey.com>
1209
1210 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1211 dwarf2_default_access_attribute. Look up attribute.
1212 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1213 Update.
1214
7a5f294d
TT
12152020-09-29 Tom Tromey <tom@tromey.com>
1216
1217 * dwarf2/read.c (skip_one_die): Update.
1218 (read_full_die_1): Change how reprocessing is done.
1219 (partial_die_info::read): Update.
1220 (read_attribute_value): Remove need_reprocess parameter.
1221 (read_attribute): Likewise.
1222 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1223 New method.
1224
36d378cf
TT
12252020-09-29 Tom Tromey <tom@tromey.com>
1226
1227 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1228 (dwarf2_const_value_attr, dump_die_shallow)
1229 (dwarf2_fetch_constant_bytes): Update.
1230 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1231 comment.
1232 <set_address>: New method.
1233 (DW_ADDR): Remove.
1234 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1235 (attribute::as_string, attribute::as_address): Add assert.
1236
fe56917a
TT
12372020-09-29 Tom Tromey <tom@tromey.com>
1238
1239 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1240 (read_attribute_reprocess, read_attribute_value): Update.
1241 (read_attribute): Clear requires_reprocessing.
1242 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1243 form_requires_reprocessing>: New methods.
1244 <string_init>: Clear requires_reprocessing.
1245 <set_unsigned_reprocess>: New method.
1246 <name>: Shrink by one bit.
1247 <requires_reprocessing>: New member.
1248 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1249 method.
1250
414ad644
TT
12512020-09-29 Tom Tromey <tom@tromey.com>
1252
1253 * dwarf2/read.c (read_attribute_value): Update.
1254 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1255 set_unsigned>: New methods.
1256 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1257
1bc397c5
TT
12582020-09-29 Tom Tromey <tom@tromey.com>
1259
1260 * dwarf2/read.c (get_alignment, read_array_order)
1261 (read_attribute_value, dwarf2_const_value_attr)
1262 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1263 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1264 New methods.
1265 (DW_SND): Remove.
1266
630ed6b9
TT
12672020-09-29 Tom Tromey <tom@tromey.com>
1268
1269 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1270 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1271 Update.
1272 * dwarf2/attribute.h (struct attribute) <as_signature,
1273 set_signature>: New methods.
1274 (DW_SIGNATURE): Remove.
1275
9d2246fc
TT
12762020-09-29 Tom Tromey <tom@tromey.com>
1277
1278 * dwarf2/read.c (read_call_site_scope)
1279 (handle_data_member_location, dwarf2_add_member_fn)
1280 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1281 (partial_die_info::read, read_attribute_value)
1282 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1283 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1284 (dwarf2_symbol_mark_computed): Update.
1285 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1286 methods.
1287 (DW_BLOCK): Remove.
1288 * dwarf2/attribute.c (attribute::form_is_block): Add
1289 DW_FORM_data16.
1290
c6481205
TT
12912020-09-29 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf2/read.c (read_cutu_die_from_dwo)
1294 (read_attribute_reprocess, read_attribute_value, read_attribute)
1295 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1296 (dwarf2_fetch_constant_bytes): Update.
1297 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1298 <set_string_noncanonical, set_string_canonical>: New methods.
1299 <string_is_canonical>: Update comment.
1300 <canonical_string_p>: Add assert.
1301 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1302 * dwarf2/attribute.c (attribute::form_is_string): New method.
1303 (attribute::string): Use it.
1304
3b64bf15
TT
13052020-09-29 Tom Tromey <tom@tromey.com>
1306
1307 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1308 (dump_die_shallow): Use canonical_string_p.
1309 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1310 method.
1311
2c830f54
TT
13122020-09-29 Tom Tromey <tom@tromey.com>
1313
1314 * dwarf2/read.c (partial_die_info::read)
1315 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1316 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1317 attribute::as_string.
1318
6c412691
TT
13192020-09-29 Tom Tromey <tom@tromey.com>
1320
1321 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1322 DW_ADDR.
1323 (attribute::string): Don't use DW_STRING.
1324 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1325 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1326
95f982e5
TT
13272020-09-29 Tom Tromey <tom@tromey.com>
1328
1329 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1330 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1331 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1332 * dwarf2/attribute.h (struct attribute): Rename methods.
1333 * dwarf2/attribute.c (attribute::as_address): Rename from
1334 value_as_address.
1335 (attribute::as_string): Rename from value_as_string.
1336
f800b00e
TT
13372020-09-29 Tom Tromey <tom@tromey.com>
1338
1339 * dwarf2/read.c (partial_die_info::read) <case
1340 DW_AT_linkage_name>: Use value_as_string.
1341 (dwarf2_string_attr): Use value_as_string.
1342 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1343 method.
1344 * dwarf2/attribute.c (attribute::value_as_string): New method.
1345
de38d64a
PA
13462020-09-29 Pedro Alves <pedro@palves.net>
1347
1348 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1349 defined before using '#pragma GCC diagnostic' instead of checking
1350 __clang__.
1351
9aed480c
TT
13522020-09-28 Tom Tromey <tom@tromey.com>
1353
1354 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1355 (handle_signal_stop): Update.
1356 * procfs.c (procfs_target::insert_watchpoint): Update.
1357 * target.h (target_have_steppable_watchpoint): Now a function.
1358
8a3ecb79
TT
13592020-09-28 Tom Tromey <tom@tromey.com>
1360
1361 * infrun.c (set_schedlock_func): Update.
1362 * target.h (target_can_lock_scheduler): Now a function.
1363
55f6301a
TT
13642020-09-28 Tom Tromey <tom@tromey.com>
1365
1366 * inferior.h (class inferior) <has_execution>: Update.
1367 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1368 * valops.c (find_function_in_inferior)
1369 (value_allocate_space_in_inferior): Update.
1370 * top.c (kill_or_detach): Update.
1371 * target.c (target_preopen, set_target_permissions): Update.
1372 (target_has_execution_current): Remove.
1373 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1374 Update.
1375 * solib.c (update_solib_list, reload_shared_libraries): Update.
1376 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1377 * solib-dsbt.c (enable_break): Update.
1378 * score-tdep.c (score7_fetch_inst): Update.
1379 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1380 Update.
1381 * remote.c (remote_target::start_remote)
1382 (remote_target::remote_check_symbols, remote_target::open_1)
1383 (remote_target::remote_detach_1, remote_target::verify_memory)
1384 (remote_target::xfer_partial, remote_target::read_description)
1385 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1386 * record-full.c (record_full_open_1): Update.
1387 * record-btrace.c (record_btrace_target_open): Update.
1388 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1389 (value_nsstring): Update.
1390 * linux-thread-db.c (add_thread_db_info)
1391 (thread_db_find_new_threads_silently, check_thread_db_callback)
1392 (try_thread_db_load_1, record_thread): Update.
1393 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1394 Update.
1395 * linux-fork.c (checkpoint_command): Update.
1396 * infrun.c (set_non_stop, set_observer_mode)
1397 (check_multi_target_resumption, for_each_just_stopped_thread)
1398 (maybe_remove_breakpoints, normal_stop)
1399 (class infcall_suspend_state): Update.
1400 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1401 (info_program_command, attach_command): Update.
1402 * infcall.c (call_function_by_hand_dummy): Update.
1403 * inf-loop.c (inferior_event_handler): Update.
1404 * gcore.c (gcore_command, derive_heap_segment): Update.
1405 * exec.c (exec_file_command): Update.
1406 * eval.c (evaluate_subexp): Update.
1407 * compile/compile.c (compile_to_object): Update.
1408 * cli/cli-dump.c (restore_command): Update.
1409 * breakpoint.c (update_watchpoint)
1410 (update_inserted_breakpoint_locations)
1411 (insert_breakpoint_locations, get_bpstat_thread): Update.
1412 * target.h (target_has_execution): Remove macro.
1413 (target_has_execution_current): Don't declare.
1414 (target_has_execution): Rename from target_has_execution_1. Add
1415 argument default.
1416
05374cfd
TT
14172020-09-28 Tom Tromey <tom@tromey.com>
1418
1419 * mi/mi-main.c (exec_reverse_continue)
1420 (mi_cmd_list_target_features): Update.
1421 * infrun.c (set_exec_direction_func): Update.
1422 * target.c (default_execution_direction): Update.
1423 * reverse.c (exec_reverse_once): Update.
1424 * target.h (target_can_execute_reverse): Now a function.
1425
9dccd06e
TT
14262020-09-28 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-regs.c (tui_get_register)
1429 (tui_data_window::show_registers): Update.
1430 * thread.c (scoped_restore_current_thread::restore)
1431 (scoped_restore_current_thread::scoped_restore_current_thread):
1432 Update.
1433 * regcache-dump.c (regcache_print): Update.
1434 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1435 Update.
1436 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1437 * mep-tdep.c (current_me_module, current_options): Update.
1438 * linux-thread-db.c (thread_db_load): Update.
1439 * infcmd.c (registers_info, info_vector_command)
1440 (info_float_command): Update.
1441 * ia64-tdep.c (ia64_frame_prev_register)
1442 (ia64_sigtramp_frame_prev_register): Update.
1443 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1444 * gcore.c (derive_stack_segment): Update.
1445 * frame.c (get_current_frame, has_stack_frames): Update.
1446 * findvar.c (language_defn::read_var_value): Update.
1447 * arm-tdep.c (arm_pc_is_thumb): Update.
1448 * target.c (target_has_registers): Rename from
1449 target_has_registers_1.
1450 * target.h (target_has_registers): Remove macro.
1451 (target_has_registers): Rename from target_has_registers_1.
1452
841de120
TT
14532020-09-28 Tom Tromey <tom@tromey.com>
1454
1455 * windows-tdep.c (tlb_make_value): Update.
1456 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1457 * thread.c (scoped_restore_current_thread::restore)
1458 (scoped_restore_current_thread::scoped_restore_current_thread)
1459 (thread_command): Update.
1460 * stack.c (backtrace_command_1, frame_apply_level_command)
1461 (frame_apply_all_command, frame_apply_command): Update.
1462 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1463 Update.
1464 * gcore.c (derive_stack_segment): Update.
1465 * frame.c (get_current_frame, has_stack_frames): Update.
1466 * auxv.c (info_auxv_command): Update.
1467 * ada-tasks.c (ada_build_task_list): Update.
1468 * target.c (target_has_stack): Rename from target_has_stack_1.
1469 * target.h (target_has_stack): Remove macro.
1470 (target_has_stack): Rename from target_has_stack_1.
1471
a739972c
TT
14722020-09-28 Tom Tromey <tom@tromey.com>
1473
1474 * target.c (target_has_memory): Rename from target_has_memory_1.
1475 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1476 * thread.c (scoped_restore_current_thread::restore)
1477 (scoped_restore_current_thread::scoped_restore_current_thread):
1478 Update.
1479 * frame.c (get_current_frame, has_stack_frames): Update.
1480 * target.h (target_has_memory): Remove macro.
1481 (target_has_memory): Rename from target_has_memory_1.
1482
5b8a4776
TT
14832020-09-28 Tom Tromey <tom@tromey.com>
1484
1485 * target.c (target_has_all_memory_1): Remove.
1486 * target.h (target_has_all_memory): Remove define.
1487 (target_has_all_memory_1): Don't declare.
1488
bd356ec6
SM
14892020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * ser-base.c: Adjust comments formatting.
1492
2c72d5e5
TT
14932020-09-27 Tom Tromey <tom@tromey.com>
1494
1495 PR tui/25342:
1496 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1497
35a98237
TT
14982020-09-27 Tom Tromey <tom@tromey.com>
1499
1500 PR tui/25342:
1501 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1502
9e820dec
TT
15032020-09-27 Tom Tromey <tom@tromey.com>
1504
1505 * unittests/tui-selftests.c: Update.
1506 * tui/tui-winsource.h (struct tui_source_window_base)
1507 <extra_margin, show_line_number, refresh_pad>: New methods.
1508 <m_max_length, m_pad>: New members.
1509 (tui_copy_source_line): Update.
1510 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1511 first_col, line_width, ndigits parameters. Add length.
1512 (tui_source_window_base::show_source_line): Write to pad. Line
1513 number now 0-based.
1514 (tui_source_window_base::refresh_pad): New method.
1515 (tui_source_window_base::show_source_content): Write to pad. Call
1516 refresh_pad.
1517 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1518 not refill.
1519 (tui_source_window_base::update_exec_info): Call
1520 show_line_number.
1521 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1522 method.
1523 <m_digits>: New member.
1524 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1525 and m_max_length.
1526 (tui_source_window::show_line_number): New method.
1527 * tui/tui-io.h (tui_puts): Fix comment.
1528 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1529 m_max_length.
1530
c15c15c8
TT
15312020-09-27 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-winsource.c
1534 (tui_source_window_base::set_is_exec_point_at): Don't call
1535 show_source_line.
1536
149830c1
TT
15372020-09-27 Tom Tromey <tom@tromey.com>
1538
1539 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1540 method.
1541 <erase>: Update.
1542 <cursor_x, cursor_y>: Remove.
1543 <m_inner_window>: New member.
1544 (tui_py_window::rerender): Create inner window.
1545 (tui_py_window::output): Write to inner window.
1546
8f9929bb
GR
15472020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1548
1549 PR python/26586
1550 * cli/cli-script.c (execute_control_commands): don't set
1551 instream to nullptr here as this breaks the from_tty argument
1552 to gdb.execute in Python.
1553 (execute_user_command): set instream to nullptr here instead.
1554
956bdb59
SM
15552020-09-25 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * infrun.h (infrun_debug_printf): Fix formatting.
1558 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1559
3b93626b
SJ
15602020-09-25 Saagar Jha <saagar@saagarjha.com>
1561
1562 * compile/compile-object-load.h (struct munmap_list): Add
1563 explicitly-defined move constructor.
1564
b551a89f
TT
15652020-09-24 Tom Tromey <tromey@adacore.com>
1566
1567 PR tui/26638:
1568 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1569 method.
1570 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1571 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1572 (tui_prev_win): Rewrite.
1573
99bb393f
HD
15742020-09-23 Hannes Domani <ssbssa@yahoo.de>
1575
1576 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1577 in WOW64 processes as SIGINT.
1578 * nat/windows-nat.h: Make wow64_process a shared variable.
1579 * windows-nat.c: Remove static wow64_process variable.
1580
20a5fcbd
TT
15812020-09-23 Tom Tromey <tom@tromey.com>
1582
1583 PR symtab/25470:
1584 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1585 offset and bit size.
1586 * printcmd.c (print_scalar_formatted): Handle zero-length
1587 integer.
1588 (print_scalar_formatted): Use bit_size_differs_p.
1589 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1590 constant.
1591 (union type_specific): <int_stuff>: New member.
1592 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1593 methods.
1594 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1595 TYPE_SPECIFIC_FIELD.
1596 (recursive_dump_type, copy_type_recursive): Update.
1597 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1598 DW_AT_data_bit_offset.
1599
bac51ab7
TT
16002020-09-23 Tom Tromey <tom@tromey.com>
1601
1602 * utils.h (class gdb_argv): Add move operators.
1603 <append>: New methods.
1604 * compile/compile.c (build_argc_argv): Remove.
1605 (compile_args_argc): Remove.
1606 (compile_args_argv): Change type.
1607 (set_compile_args): Simplify.
1608 (append_args): Remove.
1609 (filter_args): Remove argcp parameter.
1610 (get_args): Return gdb_argv. Simplify.
1611 (compile_to_object): Update.
1612
92677124
TT
16132020-09-23 Tom Tromey <tom@tromey.com>
1614
1615 * compile/compile-object-run.c (do_module_cleanup)
1616 <~do_module_cleanup> :Remove.
1617 (do_module_cleanup): Update.
1618 * compile/compile-object-load.h (struct munmap_list): Add move
1619 assignment operator.
1620 <source_file>: Now a std::string.
1621 <munmap_list>: Rename. No longer a pointer.
1622 * compile/compile-object-load.c (struct setup_sections_data): Add
1623 constructor.
1624 <setup_one_section>: Declare.
1625 <munmap_list>: Move earlier.
1626 <m_bfd>: New member.
1627 <m_last_size, m_last_section_first, m_last_prot,
1628 m_last_max_alignment>: Rename, add initializers where needed.
1629 (setup_sections_data::setup_one_section): Rename from
1630 setup_sections. Update.
1631 (compile_object_load): Update. Don't use bfd_map_over_sections.
1632
e616f60a
TT
16332020-09-23 Tom Tromey <tom@tromey.com>
1634
1635 * compile/compile-object-run.c (struct do_module_cleanup): Add
1636 parameters to constructor. Update destructor.
1637 <source_file, scope, scope_data, out_value_type, out_value_addr,
1638 munmap_list_head, objfile_name_string>: Remove.
1639 <module>: New member.
1640 (do_module_cleanup): Update.
1641 (compile_object_run): Update.
1642
e947a848
TT
16432020-09-23 Tom Tromey <tom@tromey.com>
1644
1645 * compile/compile.c (eval_compile_command): Update.
1646 * compile/compile-object-run.h (compile_object_run): Take a
1647 compile_module_up.
1648 * compile/compile-object-run.c (compile_object_run): Take a
1649 compile_module_up.
1650 * compile/compile-object-load.h (struct compile_module): Add
1651 constructor, destructor.
1652 (compile_module_up): New typedef.
1653 (compile_object_load): Return compile_object_up.
1654 * compile/compile-object-load.c (compile_object_load): Return
1655 compile_module_up.
1656
0dbf6ee6
TT
16572020-09-23 Tom Tromey <tom@tromey.com>
1658
1659 * compile/compile-object-run.c (struct do_module_cleanup): Add
1660 constructor, destructor.
1661 <objfile_name_string>: Don't use struct hack.
1662 (do_module_cleanup): Use delete.
1663 (compile_object_run): Use new.
1664
ebe824f5
TT
16652020-09-23 Tom Tromey <tom@tromey.com>
1666
1667 * compile/compile-cplus-types.c
1668 (compile_cplus_convert_struct_or_union): Use std::vector.
1669 (compile_cplus_convert_func): Likewise.
1670 * compile/compile-c-types.c (convert_func): Use std::vector.
1671
5dd918d9
TT
16722020-09-21 Tom Tromey <tromey@adacore.com>
1673
1674 * sparc-tdep.c (sparc32_skip_prologue): Use
1675 skip_prologue_using_sal.
1676
5486c517
TT
16772020-09-19 Tom Tromey <tom@tromey.com>
1678
1679 * symfile.c (add_section_size_callback): Remove.
1680 (load_one_section): Rename from load_section_callback. Change
1681 parameters.
1682 (generic_load): Use foreach.
1683
8a6bb1d1
TT
16842020-09-19 Tom Tromey <tom@tromey.com>
1685
1686 * exec.c (add_to_section_table): Remove.
1687 (build_section_table): Use foreach.
1688
08f93a1a
TT
16892020-09-19 Tom Tromey <tom@tromey.com>
1690
1691 * elfread.c (elf_locate_sections): Change parameters.
1692 (elf_symfile_read): Use foreach.
1693
03cd72b8
TT
16942020-09-19 Tom Tromey <tom@tromey.com>
1695
1696 * cli/cli-dump.c (struct callback_data): Remove.
1697 (restore_one_section): Rename from restore_section_callback.
1698 Change parameters.
1699 (restore_binary_file): Change parameters.
1700 (restore_command): Use foreach.
1701
f4f2b85f
TT
17022020-09-19 Tom Tromey <tom@tromey.com>
1703
1704 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1705 (gcore_copy_callback): Likewise.
1706 (gcore_memory_sections): Use foreach.
1707
b35c1d1c
TT
17082020-09-19 Tom Tromey <tom@tromey.com>
1709
1710 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1711 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1712 parameters.
1713 (generic_elf_osabi_sniffer): Use foreach.
1714 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1715 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1716
5bb6e9dd
TT
17172020-09-19 Tom Tromey <tom@tromey.com>
1718
1719 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1720 (dwarf2_get_dwz_file): Use foreach.
1721 (dwarf2_locate_dwo_sections): Change parameters.
1722 (open_and_init_dwo_file): Use foreach.
1723 (dwarf2_locate_common_dwp_sections): Change parameters.
1724 (open_and_init_dwp_file): Use foreach.
1725
ad7277da
TT
17262020-09-19 Tom Tromey <tom@tromey.com>
1727
1728 * symfile.h: (find_lowest_section): Don't declare.
1729 * symfile.c (find_lowest_section): Now static. Change
1730 parameters.
1731 (struct place_section_arg): Remove.
1732 (place_section): Change parameters.
1733 (addr_info_make_relative): Use foreach.
1734 (symfile_dummy_outputs): Remove.
1735 (default_symfile_relocate): Use foreach.
1736
cb814f2e
TT
17372020-09-19 Tom Tromey <tom@tromey.com>
1738
1739 * objfiles.c (add_to_objfile_sections): Rename from
1740 add_to_objfile_sections_full.
1741 (add_to_objfile_sections): Remove.
1742 (build_objfile_section_table): Use foreach.
1743
3cabfd26
TT
17442020-09-19 Tom Tromey <tom@tromey.com>
1745
1746 * stap-probe.c (get_stap_base_address_1): Remove.
1747 (get_stap_base_address): Use foreach.
1748
1ce51eb5
TT
17492020-09-19 Tom Tromey <tom@tromey.com>
1750
1751 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1752 parameters.
1753 (gdb_bfd_close_or_warn): Use foreach.
1754
a190fabb
TT
17552020-09-19 Tom Tromey <tom@tromey.com>
1756
1757 * corelow.c (add_to_thread_list): Change parameters.
1758 (core_target_open): Use foreach.
1759
cafb0d81
TT
17602020-09-19 Tom Tromey <tom@tromey.com>
1761
1762 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1763 existing function.
1764
c8d5abea
AB
17652020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1768 for arrays.
1769
6d816919
AB
17702020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * eval.c: Remove 'f-lang.h' include.
1773 (value_f90_subarray): Moved to f-lang.c.
1774 (eval_call): Renamed to...
1775 (evaluate_subexp_do_call): ...this, is no longer static, header
1776 comment moved into header file.
1777 (evaluate_funcall): Update call to eval_call.
1778 (skip_undetermined_arglist): Moved to f-lang.c.
1779 (fortran_value_subarray): Likewise.
1780 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1781 moved to evaluate_subexp_f.
1782 (calc_f77_array_dims): Moved to f-lang.c
1783 * expprint.c (print_subexp_funcall): New function.
1784 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1785 moved to print_subexp_f, OP_FUNCALL uses new function.
1786 (dump_subexp_body_funcall): New function.
1787 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1788 moved to dump_subexp_f, OP_FUNCALL uses new function.
1789 * expression.h (evaluate_subexp_do_call): Declare.
1790 * f-lang.c (value_f90_subarray): Moved from eval.c.
1791 (skip_undetermined_arglist): Likewise.
1792 (calc_f77_array_dims): Likewise.
1793 (fortran_value_subarray): Likewise.
1794 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1795 (operator_length_f): Likewise.
1796 (print_subexp_f): Likewise.
1797 (dump_subexp_body_f): Likewise.
1798 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1799 declaration of this operation to here.
1800 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1801 support moved to operator_length_f.
1802 * parser-defs.h (dump_subexp_body_funcall): Declare.
1803 (print_subexp_funcall): Declare.
1804 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1805 fortran-operator.def.
1806
8c37706a
AB
18072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * eval.c (fortran_value_subarray): New function, content is taken
1810 from...
1811 (evaluate_subexp_standard): ...here, in two places. Now arrays
1812 and strings both call the new function.
1813 (calc_f77_array_dims): Add header comment, handle strings.
1814
14f9473c
VC
18152020-09-18 Victor Collod <vcollod@nvidia.com>
1816
1817 PR gdb/26635
1818 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1819 (i386_analyze_prologue): Call i386_skip_endbr.
1820
b60cea74
TT
18212020-09-18 Tom Tromey <tromey@adacore.com>
1822
1823 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1824 (windows_nat_target::wait): Update.
1825 * target/wait.h (enum target_wait_flag): New. Use
1826 DEF_ENUM_FLAGS_TYPE.
1827 * target/target.h (target_wait): Change type of options.
1828 * target.h (target_options_to_string, default_target_wait):
1829 Update.
1830 (struct target_ops) <wait>: Change type of options.
1831 * target.c (target_wait, default_target_wait, do_option): Change
1832 type of "options".
1833 (target_options_to_string): Likewise.
1834 * target-delegates.c: Rebuild.
1835 * target-debug.h (target_debug_print_target_wait_flags): Rename
1836 from target_debug_print_options.
1837 * sol-thread.c (class sol_thread_target) <wait>: Update.
1838 (sol_thread_target::wait): Update.
1839 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1840 (rs6000_nat_target::wait): Update.
1841 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1842 Update.
1843 (remote_target::wait_ns, remote_target::wait_as): Change type of
1844 "options".
1845 (remote_target::wait): Update.
1846 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1847 (gdbsim_target::wait): Update.
1848 * record-full.c (class record_full_base_target) <wait>: Update.
1849 (record_full_wait_1): Change type of "options".
1850 (record_full_base_target::wait): Update.
1851 * record-btrace.c (class record_btrace_target) <wait>: Update.
1852 (record_btrace_target::wait): Update.
1853 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1854 Update.
1855 (ravenscar_thread_target::wait): Update.
1856 * procfs.c (class procfs_target) <wait>: Update.
1857 (procfs_target::wait): Update.
1858 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1859 * obsd-nat.c (obsd_nat_target::wait): Update.
1860 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1861 (nto_procfs_target::wait): Update.
1862 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1863 * nbsd-nat.c (nbsd_wait): Change type of "options".
1864 (nbsd_nat_target::wait): Update.
1865 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1866 (thread_db_target::wait): Update.
1867 * linux-nat.h (class linux_nat_target) <wait>: Update.
1868 * linux-nat.c (linux_nat_target::wait): Update.
1869 (linux_nat_wait_1): Update.
1870 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1871 "options".
1872 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1873 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1874 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1875 (go32_nat_target::wait): Update.
1876 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1877 * gnu-nat.c (gnu_nat_target::wait): Update.
1878 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1879 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1880 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1881 * darwin-nat.c (darwin_nat_target::wait): Update.
1882 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1883 (bsd_uthread_target::wait): Update.
1884 * aix-thread.c (class aix_thread_target) <wait>: Update.
1885 (aix_thread_target::wait): Update.
1886
0295dde6
AB
18872020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * compile/compile-object-run.c (create_copied_type_recursive): New
1890 function.
1891 (compile_object_run): Use new function.
1892
d3483b43
JT
18932020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1894
1895 * NEWS: Mention x86_64 Cygwin core file support.
1896
e7d612ad
JT
18972020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1898
1899 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1900 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1901
aff9d387
JT
19022020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1903
62a5151b
JT
1904 * windows-tdep.h: Add prototypes.
1905 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1906 (i386_windows_core_pid_to_str): Move and rename ...
1907 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1908 (windows_core_pid_to_str): ... and here.
1909 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1910
19112020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1912 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1913 (amd64_windows_init_abi_common): ... and register.
1914
7d155da3
JT
19152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1916
1917 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1918 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1919
e8ef12b9
PA
19202020-09-18 Pedro Alves <pedro@palves.net>
1921
1922 PR gdb/26631
1923 * thread.c (thread_find_command): Switch inferior before calling
1924 target methods.
1925
c1e1314d
TT
19262020-09-17 Tom Tromey <tromey@adacore.com>
1927
1928 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1929 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1930 (tdesc_arch_data_up): New typedef.
1931 (tdesc_use_registers, tdesc_data_alloc): Update.
1932 (tdesc_data_cleanup): Don't declare.
1933 * target-descriptions.c (tdesc_data_alloc): Return a
1934 tdesc_arch_data_up.
1935 (tdesc_arch_data_deleter::operator()): Rename from
1936 tdesc_data_cleanup. Change argument type.
1937 (tdesc_use_registers): Change early_data to an rvalue reference.
1938 (tdesc_use_registers): Don't use delete.
1939 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1940 * s390-tdep.c (s390_gdbarch_init): Update.
1941 * rx-tdep.c (rx_gdbarch_init): Update.
1942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1943 * riscv-tdep.c (riscv_gdbarch_init): Update.
1944 * or1k-tdep.c (or1k_gdbarch_init): Update.
1945 * nios2-tdep.c (nios2_gdbarch_init): Update.
1946 * nds32-tdep.c (nds32_gdbarch_init): Update.
1947 * mips-tdep.c (mips_gdbarch_init): Update.
1948 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1949 * m68k-tdep.c (m68k_gdbarch_init): Update.
1950 * i386-tdep.c (i386_gdbarch_init): Update.
1951 * arm-tdep.c (arm_gdbarch_init): Update.
1952 * arc-tdep.c (arc_tdesc_init): Update.
1953 (arc_gdbarch_init): Update.
1954 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1955
0363df3d
HD
19562020-09-17 Hannes Domani <ssbssa@yahoo.de>
1957
1958 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1959 for WOW64 processes.
1960
280a9412
TT
19612020-09-17 Tom Tromey <tom@tromey.com>
1962
1963 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1964
6108fd18
TT
19652020-09-17 Tom Tromey <tom@tromey.com>
1966
1967 * value.c (preserve_values): Update.
1968 * python/py-type.c (save_objfile_types): Update.
1969 * guile/scm-type.c (save_objfile_types): Update.
1970 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1971 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1972 * compile/compile-object-run.c (compile_object_run): Update.
1973
fa9b1164
TT
19742020-09-17 Tom Tromey <tom@tromey.com>
1975
1976 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1977 Remove.
1978 <m_table>: Now htab_up.
1979 * typeprint.c (typedef_hash_table::recursively_update)
1980 (typedef_hash_table::add_template_parameters)
1981 (typedef_hash_table::typedef_hash_table): Update.
1982 (typedef_hash_table::~typedef_hash_table): Remove.
1983 (typedef_hash_table::typedef_hash_table)
1984 (typedef_hash_table::find_global_typedef)
1985 (typedef_hash_table::find_typedef): Update.
1986
eb53f105
TT
19872020-09-17 Tom Tromey <tom@tromey.com>
1988
1989 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1990
7a8a5d47
TT
19912020-09-17 Tom Tromey <tom@tromey.com>
1992
1993 * linespec.c (class decode_compound_collector)
1994 <~decode_compound_collector>: Remove.
1995 <m_unique_syms>: Now htab_up.
1996 (decode_compound_collector::operator ()): Update.
1997 (class symtab_collector) <~symtab_collector>: Remove.
1998 <m_symtab_table>: Now htab_up.
1999 (symtab_collector::operator ()): Update.
2000
99032cfc
TT
20012020-09-17 Tom Tromey <tom@tromey.com>
2002
2003 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2004 (filename_seen_cache::clear): Update.
2005 (~filename_seen_cache): Remove.
2006 (filename_seen_cache::seen): Update.
2007 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2008 htab_up.
2009 <~filename_seen_cache>: Remove.
2010 <traverse>: Update.
2011
32580f6d
TT
20122020-09-17 Tom Tromey <tom@tromey.com>
2013
2014 * completer.c (completion_tracker::discard_completions)
2015 (completion_tracker::~completion_tracker)
2016 (completion_tracker::maybe_add_completion)
2017 (completion_tracker::remove_completion)
2018 (completion_tracker::recompute_lowest_common_denominator)
2019 (completion_tracker::build_completion_result): Update.
2020 * completer.h (class completion_tracker) <have_completions>:
2021 Update.
2022 <m_entries_hash>: Now htab_up.
2023
c1fb9836
TT
20242020-09-17 Tom Tromey <tom@tromey.com>
2025
2026 * breakpoint.c (ambiguous_names_p): Use htab_up.
2027
88f07206
TT
20282020-09-17 Tom Tromey <tom@tromey.com>
2029
2030 * auto-load.c (struct auto_load_pspace_info)
2031 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2032 <loaded_script_files, loaded_script_texts>: Change type to
2033 htab_up.
2034 (~auto_load_pspace_info) Remove.
2035 (init_loaded_scripts_info, maybe_add_script_file)
2036 (maybe_add_script_text, auto_load_info_scripts): Update.
2037
9519b2ee
TT
20382020-09-17 Tom Tromey <tromey@adacore.com>
2039
2040 * c-exp.y (name_obstack): Now static.
2041
d2cd4113
CC
20422020-09-17 Chungyi Chi <demonic@csie.io>
2043
2044 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2045
b650a282
SM
20462020-09-16 Simon Marchi <simon.marchi@efficios.com>
2047
2048 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2049 (add_solib_catchpoint): Likewise.
2050 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2051 to bool.
2052 (add_solib_catchpoint): Change int parameter/variable to bool.
2053 (catch_load_or_unload): Likewise.
2054 (init_catchpoint): Likewise.
2055 (create_fork_vfork_event_catchpoint): Likewise.
2056 (catch_fork_command_1): Likewise.
2057 (catch_exec_command_1): Likewise.
2058
4d0bcfcf
SM
20592020-09-16 Simon Marchi <simon.marchi@efficios.com>
2060
2061 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2062 Change instance_flags to m_instance_flags.
2063
fe830662
TT
20642020-09-16 Tom Tromey <tromey@adacore.com>
2065
2066 PR gdb/26598:
2067 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2068
fe5ddfc3
JB
20692020-09-16 John Baldwin <jhb@FreeBSD.org>
2070
2071 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2072 PL_FLAG_EXEC.
2073 (fbsd_nat_target::insert_exec_catchpoint)
2074 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2075 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2076 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2077
e911c666
JB
20782020-09-16 John Baldwin <jhb@FreeBSD.org>
2079
2080 * configure.ac: Remove check for kinfo_getvmmap().
2081 * configure, config.in: Regenerate.
2082 * fbsd-nat.c (fbsd_read_mapping): Remove
2083 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2084 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2085 kinfo_get_vmmap() are always present.
2086
1f17d372
JB
20872020-09-16 John Baldwin <jhb@FreeBSD.org>
2088
2089 * fbsd-nat.c: Always include support for
2090 TARGET_OBJECT_SIGNAL_INFO.
2091
bcb1da7f
JB
20922020-09-16 John Baldwin <jhb@FreeBSD.org>
2093
2094 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2095 sysctl and remove procfs fallback.
2096
5515f729
JB
20972020-09-16 John Baldwin <jhb@FreeBSD.org>
2098
2099 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2100 * fbsd-nat.h: Likewise.
2101
da1df1db
TBA
21022020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2103
2104 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2105 argument.
2106
0e25e767
AB
21072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * ada-lang.c (ada_language_data): Delete.
2110 (ada_language): Remove references to ada_language_data.
2111 * c-lang.c (c_language_data): Delete.
2112 (c_language): Remove references to c_language_data.
2113 (cplus_language_data): Delete.
2114 (cplus_language): Remove references to cplus_language_data.
2115 (asm_language_data): Delete.
2116 (asm_language): Remove references to asm_language_data.
2117 (minimal_language_data): Delete.
2118 (minimal_language): Remove references to minimal_language_data.
2119 * d-lang.c (d_language_data): Delete.
2120 (d_language): Remove references to d_language_data.
2121 * f-lang.c (f_language_data): Delete.
2122 (f_language): Remove references to f_language_data.
2123 * go-lang.c (go_language_data): Delete.
2124 (go_language): Remove references to go_language_data.
2125 * language.c (unknown_language_data): Delete.
2126 (unknown_language): Remove references to unknown_language_data.
2127 (auto_language_data): Delete.
2128 (auto_language): Remove references to auto_language_data.
2129 * language.h (language_data): Delete struct.
2130 (language_defn): No longer inherit from language_data.
2131 * m2-lang.c (m2_language_data): Delete.
2132 (m2_language): Remove references to m2_language_data.
2133 * objc-lang.c (objc_language_data): Delete.
2134 (objc_language): Remove references to objc_language_data.
2135 * opencl-lang.c (opencl_language_data): Delete.
2136 (opencl_language): Remove references to opencl_language_data.
2137 * p-lang.c (pascal_language_data): Delete.
2138 (pascal_language): Remove references to pascal_language_data.
2139 * rust-lang.c (rust_language_data): Delete.
2140 (rust_language): Remove references to rust_language_data.
2141
b7c6e27d
AB
21422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2145 initializer.
2146 (ada_language::opcode_print_table): New member function.
2147 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2148 (c_language::opcode_print_table): New member function.
2149 (cplus_language_data): Remove la_op_print_tab initializer.
2150 (cplus_language::opcode_print_table): New member function.
2151 (asm_language_data): Remove la_op_print_tab initializer.
2152 (asm_language::opcode_print_table): New member function.
2153 (minimal_language_data): Remove la_op_print_tab initializer.
2154 (minimal_language::opcode_print_table): New member function.
2155 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2156 (d_language::opcode_print_table): New member function.
2157 * expprint.c (print_subexp_standard): Update call to
2158 opcode_print_table.
2159 (op_string): Likewise.
2160 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2161 (f_language::opcode_print_table): New member function.
2162 * go-lang.c (go_language_data): Remove la_op_print_tab
2163 initializer.
2164 (go_language::opcode_print_table): New member function.
2165 * language.c (unknown_language_data): Remove la_op_print_tab
2166 initializer.
2167 (unknown_language::opcode_print_table): New member function.
2168 (auto_language_data): Remove la_op_print_tab initializer.
2169 (auto_language::opcode_print_table): New member function.
2170 * language.h (language_data): Remove la_op_print_tab field.
2171 (language_defn::opcode_print_table): Declare new member function.
2172 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2173 initializer.
2174 (m2_language::opcode_print_table): New member function.
2175 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2176 initializer.
2177 (objc_language::opcode_print_table): New member function.
2178 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2179 initializer.
2180 (opencl_language::opcode_print_table): New member function.
2181 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2182 initializer.
2183 (pascal_language::opcode_print_table): New member function.
2184 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2185 initializer.
2186 (rust_language::opcode_print_table): New member function.
2187
5aba6ebe
AB
21882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2191 (ada_language::expression_ops): New member function.
2192 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2193 (c_language::expression_ops): New member function.
2194 (cplus_language_data): Remove la_exp_desc initializer.
2195 (cplus_language::expression_ops): New member function.
2196 (asm_language_data): Remove la_exp_desc initializer.
2197 (asm_language::expression_ops): New member function.
2198 (minimal_language_data): Remove la_exp_desc initializer.
2199 (minimal_language::expression_ops): New member function.
2200 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2201 (d_language::expression_ops): New member function.
2202 * eval.c (evaluate_subexp): Update call to expression_ops.
2203 * expprint.c (print_subexp): Likewise.
2204 (op_name): Likewise.
2205 (dump_subexp_body): Likewise.
2206 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2207 (f_language::expression_ops): New member function.
2208 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2209 (go_language::expression_ops): New member function.
2210 * language.c (language_defn::expression_ops): New function.
2211 (unknown_language_data): Remove la_exp_desc initializer.
2212 (auto_language_data): Likewise.
2213 * language.h (language_data): Remove la_exp_desc field.
2214 (language_defn::expression_ops): Declare new member function.
2215 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2216 (m2_language::expression_ops): New member function.
2217 * objc-lang.c (objc_language_data): Remove la_exp_desc
2218 initializer.
2219 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2220 initializer.
2221 (opencl_language::expression_ops): New member function.
2222 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2223 * parse.c (operator_length): Update call to expression_ops.
2224 (exp_iterate): Likewise.
2225 * rust-lang.c (rust_language_data): Remove la_exp_desc
2226 initializer.
2227 (ruse_language::expression_ops): New member function.
2228
b63a3f3f
AB
22292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2232 initializer.
2233 (ada_language::varobj_ops): New member function.
2234 * c-lang.c (c_language_data): Remove la_varobj_ops
2235 initializer.
2236 (cplus_language_data): Likewise.
2237 (cplus_language::varobj_ops): New member function.
2238 (asm_language_data): Remove la_varobj_ops initializer.
2239 (minimal_language_data): Likewise.
2240 * d-lang.c (d_language_data): Likewise.
2241 * f-lang.c (f_language_data): Likewise.
2242 * go-lang.c (go_language_data): Likewise.
2243 * language.c (language_defn::varobj_ops): New function.
2244 (unknown_language_data): Remove la_varobj_ops
2245 initializer.
2246 (auto_language_data): Likewise.
2247 * language.h (language_data): Remove la_varobj_ops field.
2248 (language_defn::varobj_ops): Declare new member function.
2249 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2250 * objc-lang.c (objc_language_data): Likewise.
2251 * opencl-lang.c (opencl_language_data): Likewise.
2252 * p-lang.c (pascal_language_data): Likewise.
2253 * rust-lang.c (rust_language_data): Likewise.
2254 * varobj.c (varobj_create): Update call to varobj_ops.
2255 * varobj.h (default_varobj_ops): Delete define.
2256
1ac14a04
AB
22572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2260 initializer.
2261 * c-lang.c (c_language_data): Likewise.
2262 (c_language::macro_expansion): New member function.
2263 (cplus_language_data): Likewise.
2264 (cplus_language::macro_expansion): New member function.
2265 (asm_language_data): Likewise.
2266 (asm_language::macro_expansion): New member function.
2267 (minimal_language_data): Likewise.
2268 (minimal_language::macro_expansion): New member function.
2269 * d-lang.c (d_language_data): Remove la_macro_expansion
2270 initializer.
2271 * f-lang.c (f_language_data): Likewise.
2272 * go-lang.c (go_language_data): Likewise.
2273 * language.c (unknown_language_data): Likewise.
2274 (auto_language_data): Likewise.
2275 * language.h (language_data): Remove la_macro_expansion field.
2276 (language_defn::macro_expansion): New member function.
2277 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2278 initializer.
2279 * objc-lang.c (objc_language_data): Likewise.
2280 (objc_language::macro_expansion): New member function.
2281 * opencl-lang.c (opencl_language_data): Likewise.
2282 (opencl_language::macro_expansion): New member function.
2283 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2284 initializer.
2285 * rust-lang.c (rust_language_data): Likewise.
2286 * symtab.c (default_collect_symbol_completion_matches_break_on):
2287 Update call to macro_expansion.
2288
3a3440fb
AB
22892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * ada-lang.c (ada_language_data): Remove la_array_ordering
2292 initializer.
2293 * c-lang.c (c_language_data): Likewise.
2294 (cplus_language_data): Likewise.
2295 (asm_language_data): Likewise.
2296 (minimal_language_data): Likewise.
2297 * d-lang.c (d_language_data): Likewise.
2298 * dwarf2/read.c (read_array_order): Update for call to
2299 array_ordering.
2300 * f-lang.c (f_language_data): Remove la_array_ordering
2301 initializer.
2302 (f_language::array_ordering): New member function.
2303 * go-lang.c (go_language_data): Remove la_array_ordering
2304 initializer.
2305 * language.c (unknown_language_data): Likewise.
2306 (auto_language_data): Likewise.
2307 * language.h (language_data): Delete la_array_ordering field.
2308 (language_defn::array_ordering): New member function.
2309 * m2-lang.c (m2_language_data): Remove la_array_ordering
2310 initializer.
2311 * objc-lang.c (objc_language_data): Likewise.
2312 * opencl-lang.c (opencl_language_data): Likewise.
2313 * p-lang.c (pascal_language_data): Likewise.
2314 * rust-lang.c (rust_language_data): Likewise.
2315
0d201fa4
AB
23162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2319 initializer.
2320 * c-lang.c (c_language_data): Likewise.
2321 (cplus_language_data): Likewise.
2322 (asm_language_data): Likewise.
2323 (minimal_language_data): Likewise.
2324 * d-lang.c (d_language_data): Likewise.
2325 * f-lang.c (f_language_data): Likewise.
2326 (f_language::case_sensitivity): New member function.
2327 * go-lang.c (go_language_data): Remove la_case_sensitivity
2328 initializer.
2329 * language.c (enum case_mode): Moved here from language.h.
2330 (case_mode): Make static.
2331 (show_case_command): Update for case_sensitivity being a method.
2332 (set_case_command): Likewise.
2333 (set_range_case): Likewise.
2334 (unknown_language_data): Remove la_case_sensitivity initializer.
2335 (auto_language_data): Likewise.
2336 * language.h (case_mode): Delete, move enum declaration to
2337 language.c.
2338 (language_data): Delete la_case_sensitivity field.
2339 (language_defn::case_sensitivity): New member function.
2340 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2341 initializer.
2342 * objc-lang.c (objc_language_data): Likewise.
2343 * opencl-lang.c (opencl_language_data): Likewise.
2344 * p-lang.c (pascal_language_data): Likewise.
2345 * rust-lang.c (rust_language_data): Likewise.
2346
efdf6a73
AB
23472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * ada-lang.c (ada_language_data): Remove la_range_check
2350 initializer.
2351 * c-lang.c (c_language_data): Likewise.
2352 (cplus_language_data): Likewise.
2353 (asm_language_data): Likewise.
2354 (minimal_language_data): Likewise.
2355 * d-lang.c (d_language_data): Likewise.
2356 * f-lang.c (f_language_data): Likewise.
2357 (f_language::range_checking_on_by_default): New member function.
2358 * go-lang.c (go_language_data): Remove la_range_check initializer.
2359 * language.c (enum range_mode): Moved here from language.h.
2360 (range_mode): Made static.
2361 (show_range_command): Update to use
2362 range_checking_on_by_default.
2363 (set_range_command): Likewise.
2364 (set_range_case): Likewise.
2365 (unknown_language_data): Remove la_range_check initializer.
2366 (auto_language_data): Likewise.
2367 * language.h (range_mode): Delete. Enum definition moved to
2368 language.c.
2369 (language_data): Remove la_range_check field.
2370 (language_defn::range_checking_on_by_default): New member
2371 function.
2372 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2373 (m2_language::range_checking_on_by_default): New member function.
2374 * objc-lang.c (objc_language_data): Remove la_range_check
2375 initializer.
2376 * opencl-lang.c (opencl_language_data): Likewise.
2377 * p-lang.c (pascal_language_data): Likewise.
2378 (pascal_language::range_checking_on_by_default): New member
2379 function.
2380 * rust-lang.c (rust_language_data): Remove la_range_check
2381 initializer.
2382 (rust_language::range_checking_on_by_default): New member
2383 function.
2384
bf92aec5
AB
23852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * dwarf2/read.c (dwarf2_physname): Remove special case for
2388 language_go.
2389 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2390 member function.
2391
d3355e4d
AB
23922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * ada-lang.c (ada_language_data): Remove
2395 la_store_sym_names_in_linkage_form_p initializer.
2396 (ada_language::store_sym_names_in_linkage_form_p): New member
2397 function.
2398 * c-lang.c (c_language_data): Remove
2399 la_store_sym_names_in_linkage_form_p initializer.
2400 (c_language::store_sym_names_in_linkage_form_p): New member
2401 function.
2402 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2403 initializer.
2404 (asm_language_data): Likewise.
2405 (asm_language::store_sym_names_in_linkage_form_p): New member
2406 function.
2407 (minimal_language_data): Remove
2408 la_store_sym_names_in_linkage_form_p initializer.
2409 (minimal_language::store_sym_names_in_linkage_form_p): New member
2410 function.
2411 * d-lang.c (d_language_data): Remove
2412 la_store_sym_names_in_linkage_form_p initializer.
2413 * dwarf2/read.c (dwarf2_physname): Update call to
2414 store_sym_names_in_linkage_form_p.
2415 * f-lang.c (f_language_data): Remove
2416 la_store_sym_names_in_linkage_form_p initializer.
2417 * go-lang.c (go_language_data): Remove
2418 la_store_sym_names_in_linkage_form_p initializer.
2419 * language.c (unknown_language_data): Remove
2420 la_store_sym_names_in_linkage_form_p initializer.
2421 (unknown_language::store_sym_names_in_linkage_form_p): New member
2422 function.
2423 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2424 initializer.
2425 (auto_language::store_sym_names_in_linkage_form_p): New member
2426 function.
2427 * language.h (language_data): Remove
2428 la_store_sym_names_in_linkage_form_p member variable.
2429 (language_defn::store_sym_names_in_linkage_form_p): New member
2430 function.
2431 * m2-lang.c (m2_language_data): Remove
2432 la_store_sym_names_in_linkage_form_p initializer.
2433 * objc-lang.c (objc_language_data): Likewise.
2434 * opencl-lang.c (opencl_language_data): Likewise.
2435 * p-lang.c (pascal_language_data): Likewise.
2436 * rust-lang.c (rust_language_data): Likewise.
2437
22c12a6c
AB
24382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * ada-lang.c (ada_language_data): Remove string_lower_bound
2441 initializer.
2442 * c-lang.c (c_language_data): Likewise.
2443 (cplus_language_data): Likewise.
2444 (asm_language_data): Likewise.
2445 (minimal_language_data): Likewise.
2446 * d-lang.c (d_language_data): Likewise.
2447 * f-lang.c (f_language_data): Likewise.
2448 * go-lang.c (go_language_data): Likewise.
2449 * language.c (unknown_language_data): Likewise.
2450 (auto_language_data): Likewise.
2451 * language.h (language_data): Remove string_lower_bound field.
2452 (language_defn::string_lower_bound): New member function.
2453 * m2-lang.c (m2_language_data): Remove string_lower_bound
2454 initializer.
2455 (m2_language::string_lower_bound): New member function.
2456 * objc-lang.c (objc_language_data): Remove string_lower_bound
2457 initializer.
2458 * opencl-lang.c (opencl_language_data): Likewise.
2459 * p-lang.c (pascal_language_data): Likewise.
2460 * rust-lang.c (rust_language_data): Likewise.
2461 * valops.c (value_cstring): Update call to string_lower_bound.
2462 (value_string): Likewise.
2463 * value.c (allocate_repeated_value): Likewise.
2464
1c236ddd
AB
24652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * valops.c (value_repeat): Fix incorrect argument name in comment.
2468
67bd3fd5
AB
24692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * ada-lang.c (ada_language_data): Remove c_style_arrays
2472 initializer.
2473 (ada_language::c_style_arrays_p): New member fuction.
2474 * c-lang.c (c_language_data): Remove c_style_arrays
2475 initializer.
2476 (cplus_language_data): Likewise.
2477 (asm_language_data): Likewise.
2478 (minimal_language_data): Likewise.
2479 * d-lang.c (d_language_data): Likewise.
2480 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2481 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2482 (f_language::c_style_arrays_p): New member function.
2483 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2484 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2485 * language.c (unknown_language_data): Remove c_style_arrays
2486 initializer.
2487 (auto_language_data): Likewise.
2488 * language.h (language_data): Remove c_style_arrays field.
2489 (language_defn::c_style_arrays_p): New member function.
2490 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2491 (m2_language::c_style_arrays_p): New member function.
2492 * objc-lang.c (objc_language_data): Remove c_style_arrays
2493 initializer.
2494 * opencl-lang.c (opencl_language_data): Likewise.
2495 * p-lang.c (pascal_language_data): Likewise.
2496 * rust-lang.c (rust_language_data): Likewise.
2497 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2498 and update local variable to a bool.
2499 * valops.c (value_cast): Update call to c_style_arrays_p.
2500 (value_array): Likewise.
2501 * value.c (coerce_array): Likewise.
2502
85967615
AB
25032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_language_data): Remove la_language initializer.
2506 * c-lang.c (c_language_data): Likewise.
2507 (cplus_language_data): Likewise.
2508 (asm_language_data): Likewise.
2509 (minimal_language_data): Likewise.
2510 * d-lang.c (d_language_data): Likewise.
2511 * f-lang.c (f_language_data): Likewise.
2512 * go-lang.c (go_language_data): Likewise.
2513 * language.c (unknown_language_data): Likewise.
2514 (auto_language_data): Likewise.
2515 * language.h (language_data): Remove la_language field.
2516 (language_defn::language_defn): Initialise la_language field.
2517 (language_defn::la_language): New member variable.
2518 * m2-lang.c (m2_language_data): Remove la_language field.
2519 * objc-lang.c (objc_language_data): Likewise.
2520 * opencl-lang.c (opencl_language_data): Likewise.
2521 * p-lang.c (pascal_language_data): Likewise.
2522 * rust-lang.c (rust_language_data): Likewise.
2523
e171d6f1
AB
25242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * ada-lang.c (ada_extensions): Delete, moved into
2527 ada_language::filename_extensions.
2528 (ada_language_data): Remove la_filename_extensions initializer.
2529 (ada_language::filename_extensions): New member function.
2530 * c-lang.c (c_extensions): Delete, moved into
2531 c_language::filename_extensions.
2532 (c_language_data): Remove la_filename_extensions initializer.
2533 (c_language::filename_extensions): New member function.
2534 (cplus_extensions): Delete, moved into
2535 cplus_language::filename_extensions.
2536 (cplus_language_data): Remove la_filename_extensions initializer.
2537 (cplus_language::filename_extensions): New member function.
2538 (asm_extensions): Delete, moved into
2539 asm_language::filename_extensions.
2540 (asm_language_data): Remove la_filename_extensions initializer.
2541 (asm_language::filename_extensions): New member function.
2542 (minimal_language_data): Remove la_filename_extensions
2543 initializer.
2544 * d-lang.c (d_extensions): Delete, moved into
2545 d_language::filename_extensions.
2546 (d_language_data): Remove la_filename_extensions initializer.
2547 (d_language::filename_extensions): New member function.
2548 * f-lang.c (f_extensions): Delete, moved into
2549 f_language::filename_extensions.
2550 (f_language_data): Remove la_filename_extensions initializer.
2551 (f_language::filename_extensions): New member function.
2552 * go-lang.c (go_language_data): Remove la_filename_extensions
2553 initializer.
2554 * language.c (add_set_language_command): Update now that
2555 filename_extensions returns a vector.
2556 (unknown_language_data): Remove la_filename_extensions
2557 initializer.
2558 (auto_language_data): Likewise.
2559 * language.h (language_data): Remove la_filename_extensions field.
2560 (language_defn::filename_extensions): New member function.
2561 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2562 initializer.
2563 * objc-lang.c (objc_extensions): Delete, moved into
2564 objc_language::filename_extensions.
2565 (objc_language_data): Remove la_filename_extensions initializer.
2566 (objc_language::filename_extensions): New member function.
2567 * opencl-lang.c (opencl_language_data): Remove
2568 la_filename_extensions initializer.
2569 * p-lang.c (pascal_extensions): Delete, moved into
2570 pascal_language::filename_extensions.
2571 (pascal_language_data): Remove la_filename_extensions initializer.
2572 (pascal_language::filename_extensions): New member function.
2573 * rust-lang.c (rust_extensions): Delete, moved into
2574 rust_language::filename_extensions.
2575 (rust_language_data): Remove la_filename_extensions initializer.
2576 (rust_language::filename_extensions): New member function.
2577 * symfile.c (add_filename_language): Add new assert.
2578
6f7664a9
AB
25792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * ada-lang.c (ada_language_data): Remove la_name and
2582 la_natural_name initializers.
2583 (ada_language::name): New member function.
2584 (ada_language::natural_name): New member function.
2585 * c-lang.c (c_language_data): Remove la_name and
2586 la_natural_name initializers.
2587 (c_language::name): New member function.
2588 (c_language::natural_name): New member function.
2589 (cplus_language_data): Remove la_name and
2590 la_natural_name initializers.
2591 (cplus_language::name): New member function.
2592 (cplus_language::natural_name): New member function.
2593 (asm_language_data): Remove la_name and
2594 la_natural_name initializers.
2595 (asm_language::name): New member function.
2596 (asm_language::natural_name): New member function.
2597 (minimal_language_data): Remove la_name and
2598 la_natural_name initializers.
2599 (minimal_language::name): New member function.
2600 (minimal_language::natural_name): New member function.
2601 * compile/compile.c (compile_to_object): Update call to
2602 lanugage_defn::name.
2603 * d-lang.c (d_language_data): Remove la_name and
2604 la_natural_name initializers.
2605 (d_language::name): New member function.
2606 (d_language::natural_name): New member function.
2607 * expprint.c (print_subexp_standard): Update call to
2608 language_defn::name.
2609 (dump_raw_expression): Likewise
2610 (dump_prefix_expression): Likewise.
2611 * f-lang.c (f_language_data): Remove la_name and
2612 la_natural_name initializers.
2613 (f_language::name): New member function.
2614 (f_language::natural_name): New member function.
2615 * go-lang.c (go_language_data): Remove la_name and
2616 la_natural_name initializers.
2617 (go_language::name): New member function.
2618 (go_language::natural_name): New member function.
2619 * language.c (show_language_command): Update call to
2620 language_defn::name.
2621 (set_language_command): Likewise.
2622 (language_enum): Likewise.
2623 (language_str): Likewise.
2624 (add_set_language_command): Likewise, use
2625 language_defn::natural_name in the doc string.
2626 (unknown_language_data): Remove la_name and
2627 la_natural_name initializers.
2628 (unknown_language::name): New member function.
2629 (unknown_language::natural_name): New member function.
2630 (auto_language_data): Remove la_name and
2631 la_natural_name initializers.
2632 (auto_language::name): New member function.
2633 (auto_language::natural_name): New member function.
2634 (language_lookup_primitive_type_as_symbol): Update call to
2635 language_defn::name.
2636 * language.h (language_data): Remove la_name and la_natural_name
2637 member variables.
2638 (language_defn::name): New member function.
2639 (language_defn::natural_name): New member function.
2640 * m2-lang.c (m2_language_data): Remove la_name and
2641 la_natural_name initializers.
2642 (m2_language::name): New member function.
2643 (m2_language::natural_name): New member function.
2644 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2645 language_defn::natural_name.
2646 * objc-lang.c (objc_language_data): Remove la_name and
2647 la_natural_name initializers.
2648 (objc_language::name): New member function.
2649 (objc_language::natural_name): New member function.
2650 * opencl-lang.c (opencl_language_data): Remove la_name and
2651 la_natural_name initializers.
2652 (opencl_language::name): New member function.
2653 (opencl_language::natural_name): New member function.
2654 * p-lang.c (pascal_language_data): Remove la_name and
2655 la_natural_name initializers.
2656 (pascal_language::name): New member function.
2657 (pascal_language::natural_name): New member function.
2658 * rust-lang.c (rust_language_data): Remove la_name and
2659 la_natural_name initializers.
2660 (rust_language::name): New member function.
2661 (rust_language::natural_name): New member function.
2662 * symtab.c (lookup_language_this): Update call to
2663 language_defn::name.
2664
5bae7c4e
AB
26652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * ada-lang.c (ada_language_data): Remove la_name_of_this
2668 initializer.
2669 * ax-gdb.c (gen_expr): Update call to name_of_this.
2670 * c-exp.y (classify_name): Likewise.
2671 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2672 (cplus_language_data): Likewise.
2673 (cplus_language::name_of_this): New member function.
2674 (asm_language_data): Remove la_name_of_this initializer.
2675 (minimal_language_data): Likewise.
2676 * d-lang.c (d_language_data): Likewise.
2677 (d_language::name_of_this): New member function.
2678 * expprint.c (print_subexp_standard): Update call to name_of_this.
2679 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2680 * go-lang.c (go_language_data): Likewise.
2681 * language.c (unknown_language_data): Likewise.
2682 (unknown_language::name_of_this): New member function.
2683 (auto_language_data): Remove la_name_of_this initializer.
2684 (auto_language::name_of_this): New member function.
2685 * language.h (language_data): Delete la_name_of_this member
2686 variable.
2687 (language_defn::name_of_this): New member function.
2688 * m2-lang.c (m2_language_data): Remove la_name_of_this
2689 initializer.
2690 * objc-lang.c (objc_language_data): Likewise.
2691 (objc_language::name_of_this): New member function.
2692 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2693 initializer.
2694 * p-lang.c (pascal_language_data): Likewise.
2695 (pascal_language::name_of_this): New member function.
2696 * rust-lang.c (rust_language_data): Remove la_name_of_this
2697 initializer.
2698 * symtab.c (lookup_language_this): Update call to name_of_this.
2699 (lookup_symbol_aux): Likewise.
2700 * valops.c (value_of_this): Likewise.
2701
22e3f3ed
AB
27022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * ada-lang.c (ada_language_data): Remove
2705 la_struct_too_deep_ellipsis initializer.
2706 (ada_language::struct_too_deep_ellipsis): New member function.
2707 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2708 initializer.
2709 (cplus_language_data): Likewise.
2710 (asm_language_data): Likewise.
2711 (minimal_language_data): Likewise.
2712 * cp-valprint.c (cp_print_value): Update call to
2713 struct_too_deep_ellipsis.
2714 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2715 initializer.
2716 * f-lang.c (f_language_data): Likewise.
2717 (f_language::struct_too_deep_ellipsis): New member function.
2718 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2719 initializer.
2720 * language.c (unknown_language_data): Likewise.
2721 (auto_language_data): Likewise.
2722 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2723 member variable.
2724 (language_defn::struct_too_deep_ellipsis): New member function.
2725 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2726 initializer.Q
2727 * objc-lang.c (objc_language_data): Likewise.
2728 * opencl-lang.c (opencl_language_data): Likewise.
2729 * p-lang.c (pascal_language_data): Likewise.
2730 * rust-lang.c (rust_language_data): Likewise.
2731 * valprint.c (val_print_check_max_depth): Update call to
2732 struct_too_deep_ellipsis.
2733
ed29e1c7
FW
27342020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2735
2736 * MAINTAINERS (Write After Approval): Add myself.
2737
12d8f940
TT
27382020-09-15 Tom Tromey <tom@tromey.com>
2739
2740 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2741 Remove.
2742
6b5a7bc7
TT
27432020-09-15 Tom Tromey <tom@tromey.com>
2744
2745 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2746 and TYPE_CODE_METHODPTR cases.
2747 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2748 (c_value_print_inner): Update.
2749 * valprint.c (generic_value_print_memberptr): New function, from
2750 c_value_print_memberptr.
2751 (generic_value_print): Use it. Call cplus_print_method_ptr.
2752
47f0e2ff
TT
27532020-09-15 Tom Tromey <tromey@adacore.com>
2754
2755 * python/python-internal.h (PyInt_FromLong): Remove define.
2756 * python/py-value.c (convert_value_from_python): Use
2757 gdb_py_object_from_longest.
2758 * python/py-type.c (typy_get_code): Use
2759 gdb_py_object_from_longest.
2760 * python/py-symtab.c (salpy_get_line): Use
2761 gdb_py_object_from_longest.
2762 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2763 gdb_py_object_from_longest.
2764 * python/py-record.c (recpy_gap_reason_code): Use
2765 gdb_py_object_from_longest.
2766 * python/py-record-btrace.c (recpy_bt_insn_size)
2767 (recpy_bt_func_level, btpy_list_count): Use
2768 gdb_py_object_from_longest.
2769 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2770 gdb_py_object_from_longest. Fix error handling.
2771 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2772 gdb_py_object_from_longest.
2773 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2774 gdb_py_object_from_longest.
2775 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2776 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2777 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2778
512116ce
TT
27792020-09-15 Tom Tromey <tromey@adacore.com>
2780
2781 * python/python.c (gdbpy_parameter_value): Use
2782 gdb_py_object_from_ulongest.
2783
4ab1029c
TT
27842020-09-15 Tom Tromey <tromey@adacore.com>
2785
2786 * python/py-infevents.c (create_register_changed_event_object):
2787 Use gdb_py_object_from_longest.
2788 * python/py-exitedevent.c (create_exited_event_object): Use
2789 gdb_py_object_from_longest.
2790
062534d4
TT
27912020-09-15 Tom Tromey <tromey@adacore.com>
2792
2793 * python/python.c (gdbpy_parameter_value): Use
2794 gdb_py_object_from_longest.
2795 * python/py-type.c (convert_field, typy_range): Use
2796 gdb_py_object_from_longest.
2797 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2798 gdb_py_object_from_longest.
2799 * python/py-lazy-string.c (stpy_get_length): Use
2800 gdb_py_object_from_longest.
2801 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2802 gdb_py_object_from_longest.
2803 * python/py-infevents.c (create_memory_changed_event_object): Use
2804 gdb_py_object_from_longest.
2805 * python/py-inferior.c (infpy_get_num): Use
2806 gdb_py_object_from_longest.
2807 (infpy_get_pid): Likewise.
2808
d1cab987
TT
28092020-09-15 Tom Tromey <tromey@adacore.com>
2810
2811 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2812 defines.
2813 * python/py-value.c (valpy_long): Use
2814 gdb_py_object_from_ulongest.
2815 * python/py-symtab.c (salpy_get_pc): Use
2816 gdb_py_object_from_ulongest.
2817 (salpy_get_last): Likewise.
2818 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2819 gdb_py_object_from_ulongest.
2820 * python/py-lazy-string.c (stpy_get_address): Use
2821 gdb_py_object_from_ulongest.
2822 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2823 * python/py-arch.c (archpy_disassemble): Use
2824 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2825 error handling.
2826
4bde49dc
TT
28272020-09-15 Tom Tromey <tromey@adacore.com>
2828
2829 * python/python-internal.h (gdb_py_long_from_longest): Remove
2830 defines.
2831 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2832 * python/py-type.c (convert_field, typy_get_sizeof): Use
2833 gdb_py_object_from_longest.
2834 * python/py-record-btrace.c (btpy_list_index): Use
2835 gdb_py_object_from_longest.
2836
37431074
TT
28372020-09-15 Tom Tromey <tromey@adacore.com>
2838
2839 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2840 * python/py-record.c (recpy_element_number): Use
2841 gdb_py_object_from_longest.
2842 (recpy_gap_number): Likewise.
2843
cbe25684
TT
28442020-09-15 Tom Tromey <tromey@adacore.com>
2845
2846 * top.c (ui::ui): Update.
2847 (highest_ui_num): Remove.
2848 * top.h (struct ui) <num>: Remove.
2849
db92ac45
TT
28502020-09-15 Tom Tromey <tromey@adacore.com>
2851
2852 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2853 * ui-style.c (ansi_regex_text): Now array.
2854 * rust-exp.y (number_regex_text): Now array.
2855 * linespec.c (linespec_quote_characters): Now array.
2856 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2857 Now arrays.
2858
d2b31b67
SM
28592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * debuginfod-support.c (debuginfod_client_deleter): New.
2862 (debuginfod_client_up): New.
2863 (debuginfod_init): Return debuginfod_client_up.
2864 (debuginfod_source_query): Adjust.
2865 (debuginfod_debuginfo_query): Adjust.
2866
3246bd8e
SM
28672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * debuginfod-support.c (debuginfod_source_query): Use
2870 make_unique_xstrdup.
2871
10242f36
SM
28722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2875 with `type::instance_flags`.
2876
e1044e6a
MM
28772020-09-14 Michael Mullin <masmullin@gmail.com>
2878
2879 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2880 Remove baton parameter.
2881
04902b09
PA
28822020-09-14 Pedro Alves <pedro@palves.net>
2883
2884 * Makefile.in (SELFTESTS_SRCS): Add
2885 unittests/enum-flags-selftests.c.
2886 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2887 btrace_function_flags instead of enum btrace_function_flag.
2888 * compile/compile-c-types.c (convert_qualified): Use
2889 enum_flags::raw.
2890 * compile/compile-cplus-symbols.c (convert_one_symbol)
2891 (convert_symbol_bmsym):
2892 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2893 (compile_cplus_convert_struct_or_union_methods)
2894 (compile_cplus_instance::convert_qualified_base):
2895 * go-exp.y (parse_string_or_char): Add cast to int.
2896 * unittests/enum-flags-selftests.c: New file.
2897 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2898 type to btrace_thread_flags from btrace_thread_flag.
2899 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2900 local's type to btrace_thread_flags from btrace_thread_flag. Add
2901 cast in DEBUG call.
2902
69896a2c
PA
29032020-09-14 Pedro Alves <pedro@palves.net>
2904
2905 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2906 * gdbtypes.c (address_space_name_to_int): Rename to ...
2907 (address_space_name_to_type_instance_flags): ... this.
2908 (address_space_int_to_name): Rename to ...
2909 (address_space_type_instance_flags_to_name): ... this.
2910 * gdbtypes.h (address_space_name_to_int): Rename to ...
2911 (address_space_name_to_type_instance_flags): ... this.
2912 (address_space_int_to_name): Rename to ...
2913 (address_space_type_instance_flags_to_name): ... this.
2914 * type-stack.c (type_stack::insert): Adjust to rename.
2915 * type-stack.h (type_stack::insert): Likewise.
2916
314ad88d
PA
29172020-09-14 Pedro Alves <pedro@palves.net>
2918 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * avr-tdep.c (avr_address_class_type_flags): Return
2921 type_instance_flags.
2922 (avr_address_class_type_flags_to_name): Take a
2923 type_instance_flags.
2924 (avr_address_class_name_to_type_flags): Return bool and take a
2925 type_instance_flags.
2926 * d-lang.c (build_d_types): Use type::set_instance_flags.
2927 * ft32-tdep.c (ft32_address_class_type_flags): Return
2928 type_instance_flags.
2929 (ft32_address_class_type_flags_to_name): Take a
2930 type_instance_flags.
2931 (ft32_address_class_name_to_type_flags): Return bool and take a
2932 type_instance_flags.
2933 (ft32_gdbarch_init): Use type::set_instance_flags.
2934 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2935 * gdbarch.h, gdbarch.c: Regenerate.
2936 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2937 (address_class_name_to_type_flags): Use type_instance_flags and
2938 bool.
2939 * gdbtypes.c (address_space_name_to_int)
2940 (address_space_int_to_name, make_qualified_type): Use
2941 type_instance_flags.
2942 (make_qualified_type): Use type_instance_flags and
2943 type::set_instance_flags.
2944 (make_type_with_address_space, make_cv_type, make_vector_type)
2945 (check_typedef): Use type_instance_flags.
2946 (recursive_dump_type): Cast type_instance_flags to unsigned for
2947 printing.
2948 (copy_type_recursive): Use type::set_instance_flags.
2949 (gdbtypes_post_init): Use type::set_instance_flags.
2950 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2951 <m_instance_flags>: ... this.
2952 <instance_flags, set_instance_flags>: New methods.
2953 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2954 (SET_TYPE_INSTANCE_FLAGS): New.
2955 (address_space_name_to_int, address_space_int_to_name)
2956 (make_type_with_address_space): Pass flags using
2957 type_instance_flags instead of int.
2958 * stabsread.c (cleanup_undefined_types_noname): Use
2959 type::set_instance_flags.
2960 * s390-tdep.c (s390_address_class_type_flags): Return
2961 type_instance_flags.
2962 (s390_address_class_type_flags_to_name): Take a
2963 type_instance_flags.
2964 (s390_address_class_name_to_type_flags): Return bool and take a
2965 type_instance_flags.
2966 * type-stack.c (type_stack::follow_types): Use
2967 type_instance_flags.
2968 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2969
27087b7f
TT
29702020-09-14 Tom Tromey <tromey@adacore.com>
2971
2972 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2973 * x86-tdep.c (x86_is_thunk_register_name)
2974 (x86_in_indirect_branch_thunk): Update.
2975 * sparc64-tdep.c (sparc64_fpu_register_names)
2976 (sparc64_cp0_register_names, sparc64_register_names)
2977 (sparc64_pseudo_register_names): Now const.
2978 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2979 cp0_registers_num>: Now const.
2980 * sparc-tdep.c (sparc_core_register_names)
2981 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2982 (sparc32_pseudo_register_names): Now const.
2983 (validate_tdesc_registers): Update.
2984 * rust-lang.c (rust_extensions): Now const.
2985 * p-lang.c (p_extensions): Now const.
2986 * objc-lang.c (objc_extensions): Now const.
2987 * nto-tdep.c (nto_thread_state_str): Now const.
2988 * moxie-tdep.c (moxie_register_names): Now const.
2989 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2990 Now const.
2991 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2992 (mips_linux_reg_names): Now const.
2993 (mips_gdbarch_init): Update.
2994 * microblaze-tdep.c (microblaze_register_names): Now const.
2995 * m68k-tdep.c (m68k_register_names): Now const.
2996 * m32r-tdep.c (m32r_register_names): Now const.
2997 * ia64-tdep.c (ia64_register_names): Now const.
2998 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2999 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3000 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3001 ymm_avx512_register_names, pkeys_register_names>: Now const.
3002 * i386-tdep.c (i386_register_names, i386_zmm_names)
3003 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3004 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3005 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3006 * f-lang.c (f_extensions): Now const.
3007 * d-lang.c (d_extensions): Now const.
3008 * csky-tdep.c (csky_register_names): Now const.
3009 * charset.c (default_charset_names, charset_enum): Now const.
3010 (_initialize_charset): Update.
3011 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3012 const.
3013 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3014 (bsd_uthread_solib_loaded): Update.
3015 (bsd_uthread_state): Now const.
3016 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3017 (amd64_ymm_avx512_names, amd64_ymmh_names)
3018 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3019 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3020 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3021 (amd64_dword_names): Now const.
3022 * agent.c (can_use_agent_enum): Now const.
3023 * ada-tasks.c (task_states, long_task_states): Now const.
3024 * ada-lang.c (known_runtime_file_name_patterns)
3025 (known_auxiliary_function_name_patterns, attribute_names)
3026 (standard_exc, ada_extensions): Now const.
3027
89806626
SM
30282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * bcache.h (struct bcache) <bcache>: Remove constructor.
3031 <m_hash_function, m_compare_function>: Remove.
3032 <~bcache>: Make virtual.
3033 <compare>: Remove static method, introduce virtual method.
3034 <default_hash>: Remove.
3035 <hash>: New virtual method.
3036 * bcache.c (bcache::expand_hash_table): Update.
3037 (bcache::insert): Update.
3038 (bcache::hash): New.
3039 (bcache::compare): Update comment and parameter names.
3040 * gdbtypes.c (types_deeply_equal): Update.
3041 * psymtab.h (struct psymbol_bcache): New struct.
3042 (class psymtab_storage) <psymtab_storage>: Make default.
3043 <psymbol_cache>: Change type to psymbol_bcache.
3044 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3045 (psymbol_hash): Change to...
3046 (psymbol_bcache::hash): ... this.
3047 (psymbol_compare): Change to...
3048 (psymbol_bcache::compare): ... this.
3049
677c92fe
SM
30502020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3053 checking for initial lwp.
3054
3eba3a01
TT
30552020-09-14 Tom Tromey <tromey@adacore.com>
3056
3057 * m68k-tdep.c (m68k_extract_return_value): Use
3058 pointer_result_regnum.
3059 (m68k_store_return_value): Likewise.
3060 (m68k_reg_struct_return_p): Handle vectors and arrays.
3061 (m68k_return_value): Handle arrays.
3062 (m68k_svr4_return_value): Fix single-element aggregate handling.
3063 Handle long double. Adjust for embedded ABI.
3064 (m68k_svr4_init_abi): Set pointer_result_regnum.
3065 (m68k_embedded_init_abi): New function.
3066 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3067 (m68k_osabi_sniffer): New function.
3068 (_initialize_m68k_tdep): Register osabi sniffer.
3069 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3070 member.
3071
33f4dd48
SM
30722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3073
3074 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3075 with gdb::unique_xmalloc_ptr<char>.
3076
8400a90d
SM
30772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * xml-support.h (xml_fetch_another): Change type to be a
3080 function_view.
3081 (xml_process_xincludes): Remove baton parameter.
3082 (xml_fetch_content_from_file): Change baton parameter to
3083 dirname.
3084 * xml-support.c (struct xinclude_parsing_data)
3085 <xinclude_parsing_data>: Remove baton parameter.
3086 <fetcher_baton>: Remove.
3087 (xinclude_start_include): Adjust.
3088 (xml_process_xincludes): Adjust.
3089 (xml_fetch_content_from_file): Replace baton parameter with
3090 dirname.
3091 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3092 (xml_init_syscalls_info): Use a lambda.
3093 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3094 (file_read_description_xml): Use a lambda.
3095 (fetch_available_features_from_target): Change baton parameter
3096 to target_ops.
3097 (target_read_description_xml): Use a lambda.
3098 (target_fetch_description_xml): Use a lambda.
3099 (string_read_description_xml): Update.
3100
04f5bab2
SM
31012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3104 uses with type::endianity_is_not_default.
3105
db558e34
SM
31062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * gdbtypes.h (struct type) <endianity_is_not_default,
3109 set_endianity_is_not_default>: New methods.
3110 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3111 type::endianity_is_not_default, change all write call sites to
3112 use type::set_endianity_is_not_default.
3113
22c4c60c
SM
31142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3117 uses with type::is_fixed_instance.
3118
9cdd0d12
SM
31192020-09-14 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * gdbtypes.h (struct type) <is_fixed_instance,
3122 set_is_fixed_instance>: New methods.
3123 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3124 write call sites to use type::set_is_fixed_instance.
3125
0becda7a
SM
31262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3129 uses with type::is_gnu_ifunc.
3130
03cc7249
SM
31312020-09-14 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3134 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3135 use type::set_is_gnu_ifunc.
3136
3f46044c
SM
31372020-09-14 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3140 uses with type::stub_is_supported.
3141
9baccff6
SM
31422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3145 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3146 use type::set_stub_is_supported.
3147
bd63c870
SM
31482020-09-14 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3151 uses with type::is_vector.
3152
2062087b
SM
31532020-09-14 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3156 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3157 use type::set_is_vector.
3158
a409645d
SM
31592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3162 uses with type::has_varargs.
3163
1d6286ed
SM
31642020-09-14 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3167 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3168 use type::set_has_varargs.
3169
7f9f399b
SM
31702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3173 uses with type::is_prototyped.
3174
27e69b7a
SM
31752020-09-14 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3178 New methods.
3179 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3180 call sites to use type::set_is_prototyped.
3181
d2183968
SM
31822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3185 uses with type::target_is_stub.
3186
8f53807e
SM
31872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3190 New methods.
3191 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3192 sites to use type::set_target_is_stub.
3193
e46d3488
SM
31942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbtypes.h (TYPE_STUB): Remove, replace all
3197 uses with type::is_stub.
3198
b4b73759
SM
31992020-09-14 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3202 (TYPE_STUB): Use type::is_stub, change all write call sites to
3203 use type::set_is_stub.
3204
20ce4123
SM
32052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3208 type::has_no_signedness.
3209
15152a54
SM
32102020-09-14 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * gdbtypes.h (struct type) <has_no_signedness,
3213 set_has_no_signedness>: New methods.
3214 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3215 call sites to use type::set_has_no_signedness.
3216
c6d940a9
SM
32172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3220 type::is_unsigned.
3221
653223d3
SM
32222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3225 methods.
3226 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3227 sites to use type::set_is_unsigned.
3228
55ea94da 32292020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3230 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3231
e851246a
SM
3232 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3233 pointer and stack frame offset when unwinding.
55ea94da 3234
6791b117
PA
32352020-09-13 Pedro Alves <pedro@palves.net>
3236
3237 * NEWS: Document "-break-insert --qualified".
3238 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3239
77f2120b
PA
32402020-09-13 Pedro Alves <pedro@palves.net>
3241
3242 * linespec.c (classify_mtype, compare_msyms): Delete.
3243 (search_minsyms_for_name): Remove classification logic. Instead
3244 filter out trampoline symbols if we also found an external
3245 function of the same name.
3246
ed6a896c
JB
32472020-09-13 Joel Brobecker <brobecker@adacore.com>
3248
3249 * NEWS: Create a new section for the next release branch.
3250 Rename the section of the current branch, now that it has
3251 been cut.
3252
32aea73e
JB
32532020-09-13 Joel Brobecker <brobecker@adacore.com>
3254
3255 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3256 * version.in: Bump version to 11.0.50.DATE-git.
3257
8087c3fa
JB
32582020-09-12 Joel Brobecker <brobecker@adacore.com>
3259
3260 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3261
2a67f09d
FW
32622020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3263 Felix Willgerodt <Felix.Willgerodt@intel.com>
3264
3265 * gdbarch.sh: Added bfloat16 type.
3266 * gdbarch.c: Regenerated.
3267 * gdbarch.h: Regenerated.
3268 * gdbtypes.c (floatformats_bfloat16): New struct.
3269 (gdbtypes_post_init): Add builtin_bfloat16.
3270 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3271 (floatformats_bfloat16): New struct.
3272 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3273 (i386_ymm_type): Add field "v16_bfloat16"
3274 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3275 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3276 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3277 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3278 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3279 * features/i386/64bit-avx512.c: Regenerated.
3280 * features/i386/64bit-sse.xml: Add bfloat16 type.
3281 * features/i386/64bit-sse.c: Regenerated.
3282
1347d111
FW
32832020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3284
3285 * i386-tdep.c (i386_zmm_type): Fix field names.
3286 (i386_ymm_type): Fix field names.
3287
7a4e8e7d
TBA
32882020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3289
3290 * breakpoint.c: Fix typo in the help message of the
3291 "set breakpoint condition-evaluation" command.
3292
cf4ac4be
KR
32932020-09-10 Kamil Rytarowski <n54@gmx.com>
3294
3295 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3296 * (nbsd_nat_target::pid_to_exec_file)
3297 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3298 (nbsd_nat_target::post_startup_inferior)
3299 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3300 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3301 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3302 * (nbsd_thread_lister): Remove.
3303
f404573e
KR
33042020-09-10 Kamil Rytarowski <n54@gmx.com>
3305
3306 * fork-inferior.c (startup_inferior): Avoid double free.
3307
1ccb2c17
KR
33082020-09-10 Kamil Rytarowski <n54@gmx.com>
3309
3310 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3311 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3312
feedfcc7
KR
33132020-09-10 Kamil Rytarowski <n54@gmx.com>
3314
3315 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3316 * netbsd-nat.c: Include <sys/ptrace.h>.
3317 * (netbsd_nat::enable_proc_events): Add.
3318
c489f8c6
KR
33192020-09-10 Kamil Rytarowski <n54@gmx.com>
3320
3321 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3322 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3323 (netbsd_nat::for_each_thread): Add.
3324 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3325 "gdbsupport/common-debug.h".
3326 * (netbsd_nat::netbsd_thread_lister)
3327 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3328 (netbsd_nat::for_each_thread): Add.
3329
330662f6
KR
33302020-09-10 Kamil Rytarowski <n54@gmx.com>
3331
3332 * netbsd-nat.h: Include <unistd.h>.
3333 * (netbsd_nat::pid_to_exec_file): Add.
3334 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3335 * (netbsd_nat::pid_to_exec_file) Add.
3336
70b67307
KR
33372020-09-10 Kamil Rytarowski <n54@gmx.com>
3338
3339 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3340
99cf6da6
KR
33412020-09-10 Kamil Rytarowski <n54@gmx.com>
3342
3343 * netbsd-nat.h: New file.
3344 * netbsd-nat.c: Likewise.
3345
1b788fb6
TT
33462020-09-09 Tom Tromey <tromey@adacore.com>
3347
3348 * ada-lang.c (remove_extra_symbols): Do not increment when
3349 removing an element
3350
03b0a45f
TT
33512020-09-08 Tom Tromey <tromey@adacore.com>
3352
3353 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3354
3cae4447
TT
33552020-09-08 Tom Tromey <tromey@adacore.com>
3356
3357 PR win32/25302:
3358 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3359 (gdb_bfd_init_data): New function.
3360 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3361
7f08fd51
TBA
33622020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 * infrun.c (fetch_inferior_event): Use
3365 `switch_to_target_no_thread` to switch the target.
3366
3e6ff933
TT
33672020-09-06 Tom Tromey <tom@tromey.com>
3368
3369 * symfile.h (dwarf2_free_objfile): Don't declare.
3370
e56798df
AKS
33712020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3372
3373 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3374 to match 16 byte real/complex type generated by Flang compiler.
3375
8f5c6526
TV
33762020-09-03 Tom de Vries <tdevries@suse.de>
3377
3378 PR breakpoint/26546
3379 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3380 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3381
c5065df0
SM
33822020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * maint.c (index_digits): New function.
3385 (struct maint_print_section_data): Remove.
3386 (print_bfd_section_info): Remove print_data parameter, add arg
3387 and index_digits.
3388 (print_objfile_section_info): Likewise.
3389 (print_bfd_section_info_maybe_relocated): Likewise (plus
3390 objfile).
3391 (maintenance_info_sections): Adjust calls.
3392
02c6f3f1
TT
33932020-09-02 Tom Tromey <tromey@adacore.com>
3394
3395 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3396 for null pointers.
3397 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3398
ef5e5b0b
SM
33992020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3400
3401 * bcache.h (struct bcache) <insert>: Change type of `added` to
3402 pointer to bool.
3403 * bcache.c (bcache::insert): Likewise.
3404 * gdbtypes.c (check_types_worklist): Adjust.
3405 * psymtab.c (add_psymbol_to_bcache): Adjust.
3406
973695d6
KB
34072020-08-31 Kevin Buettner <kevinb@redhat.com>
3408
3409 * corelow.c (unordered_set): Include.
3410 (class core_target): Add field 'm_core_unavailable_mappings'.
3411 (core_target::build_file_mappings): Print only one warning
3412 per inaccessible file. Add unavailable/broken mappings
3413 to m_core_unavailable_mappings.
3414 (core_target::xfer_partial): Call...
3415 (core_target::xfer_memory_via_mappings): New method.
3416
264fc0e2
SM
34172020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3420 type to bool.
3421
2de01bdb
SM
34222020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * dwarf2/read.c (struct field_info): Fix indentation.
3425
f3bd50f1
SM
34262020-08-31 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3429 ordering in comment.
3430 * frame.c (frame_id_eq): Fix indentation.
3431
22b9b4b0
SL
34322020-08-31 Scott Linder <scott@scottlinder.com>
3433 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3436 inline frame ids in outer frame.
3437
84154d16
SM
34382020-08-31 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3441 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3442 (outer_frame_id): Use FID_STACK_OUTER instead of
3443 FID_STACK_INVALID.
3444 (frame_id_p): Don't check for outer_frame_id.
3445
8efaf6b3
SM
34462020-08-31 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3449 regnum/frame in value. Call allocate_value_lazy.
3450 * frame.c (frame_unwind_register_value): Use
3451 val_print_not_saved.
3452
fe1fe7ea
SM
34532020-08-31 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3456
f7c7700d
PA
34572020-08-29 Pedro Alves <pedro@palves.net>
3458
3459 * progspace.c (print_program_space): Use all_inferiors. Switch to
3460 the inferior before calling target_pid_to_str.
3461
e0814aae
TT
34622020-08-28 Tom Tromey <tom@tromey.com>
3463
3464 * xcoffread.c (xcoff_end_psymtab): Update comment.
3465 * dbxread.c (dbx_end_psymtab): Update comment.
3466
626d2320
TV
34672020-08-28 Tom de Vries <tdevries@suse.de>
3468
3469 PR breakpoint/26544
3470 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3471 event_location.
3472 (create_breakpoint): Same.
3473 (base_breakpoint_decode_location): Same.
3474 (bkpt_create_sals_from_location): Same.
3475 (bkpt_decode_location): Same.
3476 (bkpt_probe_create_sals_from_location): Same.
3477 (bkpt_probe_decode_location): Same.
3478 (tracepoint_create_sals_from_location): Same.
3479 (tracepoint_decode_location): Same.
3480 (tracepoint_probe_decode_location): Same.
3481 (strace_marker_create_sals_from_location): Same.
3482 (strace_marker_decode_location): Same.
3483 (create_sals_from_location_default): Same.
3484 (decode_location_default): Same.
3485 * breakpoint.h (struct breakpoint_ops): Same.
3486 (create_breakpoint): Same.
3487 * linespec.h (decode_line_full): Same.
3488 * linespec.c (decode_line_full): Same. Throw error if
3489 result.size () == 0.
3490
df631783
PA
34912020-08-27 Pedro Alves <pedro@palves.net>
3492
3493 PR gdb/26524
3494 * breakpoint.c (until_break_fsm) <location_breakpoint,
3495 caller_breakpoint>: Delete fields.
3496 <breakpoints>: New field.
3497 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3498 two individual breakpoints.
3499 (until_break_fsm::should_stop): Loop over breakpoints in the
3500 breakpoint vector.
3501 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3502 vector.
3503 (until_break_command): Handle location expanding into multiple
3504 sals.
3505
b2b38aa4
PA
35062020-08-27 Pedro Alves <pedro@palves.net>
3507
3508 PR gdb/26523
3509 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3510 bp_until breakpoints user-specified locations. Update intro
3511 comment.
3512
b886559f
SM
35132020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3516 gdb_bfd_sections): New.
3517 * maint.c (print_bfd_section_info): Change param type to
3518 maint_print_section_data.
3519 (print_objfile_section_info): Likewise.
3520 (print_bfd_section_info_maybe_relocated): Likewise.
3521 (maintenance_info_sections): Use gdb_bfd_sections.
3522
4c6e63bf
SV
35232020-08-25 Shahab Vahedi <shahab@synopsys.com>
3524
3525 * MAINTAINERS: Add ARC target and maintainer.
3526
8d7f0635
AK
35272020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3528
3529 * configure.tgt: ARC support for GNU/Linux.
3530 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3531 * arc-linux-tdep.c: New file.
3532 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3533 * arc-tdep.c (arc_write_pc): Use it.
3534
fdd8731b
SV
35352020-08-25 Shahab Vahedi <shahab@synopsys.com>
3536
3537 * arc-tdep.c (arc_check_for_hardware_loop): New.
3538 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3539
22459524
SV
35402020-08-25 Shahab Vahedi <shahab@synopsys.com>
3541
3542 * arc-tdep.h: Include "gdbarch.h".
3543
995d3a19
SV
35442020-08-25 Shahab Vahedi <shahab@synopsys.com>
3545
3546 * arch/arc.h
3547 (arc_gdbarch_features): New class to stir the selection of target XML.
3548 (arc_create_target_description): Use FEATURES to choose XML target.
3549 (arc_lookup_target_description): Use arc_create_target_description
3550 to create _new_ target descriptions or return the already created
3551 ones if the FEATURES is the same.
3552 * arch/arc.c: Implementation of prototypes described above.
3553 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3554 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3555 * arc-tdep.c (*_feature_name): Make feature names consistent.
3556 (arc_register_feature): A new struct to hold information about
3557 registers of a particular target/feature.
3558 (arc_check_tdesc_feature): Check if XML provides registers in
3559 compliance with ARC_REGISTER_FEATURE structs.
3560 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3561 (determine_*_reg_feature_set): Which feature name to look for.
3562 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3563 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3564 to expected ISA enums to be used in arc_gdbarch_features structs.
3565 * features/Makefile (FEATURE_XMLFILES): Add new files.
3566 * gdb/features/arc/v1-aux.c: New file.
3567 * gdb/features/arc/v1-aux.xml: Likewise.
3568 * gdb/features/arc/v1-core.c: Likewise.
3569 * gdb/features/arc/v1-core.xml: Likewise.
3570 * gdb/features/arc/v2-aux.c: Likewise.
3571 * gdb/features/arc/v2-aux.xml: Likewise.
3572 * gdb/features/arc/v2-core.c: Likewise.
3573 * gdb/features/arc/v2-core.xml: Likewise.
3574 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3575
3945d2d7
GM
35762020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3577 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 PR m2/26372
fc5d6901 3580 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3581 an assert. Remove single element array indexing pattern as the
3582 MULTI_SUBSCRIPT support will handle this case too.
3583
2677f2d3
SM
35842020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3585
3586 * value.h (valprint_check_validity): Move declaration from
3587 here...
3588 * valprint.h (valprint_check_validity): ... to here.
3589
c426fddb
SM
35902020-08-24 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * debug.h: New file.
3593 * debug.c (debug_prefixed_vprintf): New function.
3594 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3595 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3596
1eb8556f
SM
35972020-08-24 Simon Marchi <simon.marchi@efficios.com>
3598
3599 * infrun.h (infrun_debug_printf_1): New function declaration.
3600 (infrun_debug_printf): New macro.
3601 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3602 throughout.
3603 (infrun_debug_printf): New function.
3604 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3605 (handle_jit_event): Likewise.
3606
b8fff44e
MW
36072020-08-21 Mark Wielaard <mark@klomp.org>
3608
3609 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3610
d19c3068
SM
36112020-08-22 Simon Marchi <simon.marchi@efficios.com>
3612
3613 * frame.c (enum class frame_id_status): New.
3614 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3615 (fprintf_frame): Update.
3616 (compute_frame_id): Set frame id status to "computing" on entry.
3617 Set it back to "not_computed" on failure and to "computed" on
3618 success.
3619 (get_frame_id): Assert the frame id is not being computed.
3620 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3621 (create_new_frame): Likewise.
3622 (frame_cleanup_after_sniffer): Update assert.
3623
b70e516e
SM
36242020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * regcache.c (pid_ptid_regcache_map): New type.
3627 (target_ptid_regcache_map): Remove.
3628 (target_pid_ptid_regcache_map): New type.
3629 (regcaches): Change type to target_pid_ptid_regcache_map.
3630 (get_thread_arch_aspace_regcache): Update.
3631 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3632 case.
3633 (regcaches_size): Update.
3634 (regcache_count): Update.
3635 (registers_changed_ptid_target_pid_test): New.
3636 (_initialize_regcache): Register new test.
3637
cdd9148a
SM
36382020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3639
3640 * regcache.c (regcache_count): New.
3641 (struct regcache_test_data): New.
3642 (regcache_test_data_up): New.
3643 (populate_regcaches_for_test): New.
3644 (regcaches_test): Remove.
3645 (get_thread_arch_aspace_regcache_test): New.
3646 (registers_changed_ptid_all_test): New.
3647 (registers_changed_ptid_target_test): New.
3648 (registers_changed_ptid_target_ptid_test): New.
3649 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3650 (_initialize_regcache): Register new tests.
3651
dd125343
SM
36522020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3653
3654 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3655 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3656 gdbarch and aspace parameter. Use current inferior's aspace.
3657 Validate regcache's arch value.
3658 (regcaches_test): Update.
3659
3ee93972
SM
36602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3661
3662 * regcache.c (regcaches_test): Call registers_changed.
3663
33bf4c5c
TBA
36642020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3667
c2fd7fae
AKS
36682020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3669
3670 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3671 to find the end of prologue for flang compiled binaries.
3672 * arm-tdep.c (arm_skip_prologue): Likewise.
3673 * i386-tdep.c (i386_skip_prologue): Likewise.
3674 * producer.c (producer_is_llvm): New function.
3675 (producer_parsing_tests): Added new tests for clang/flang.
3676 * producer.h (producer_is_llvm): New declaration.
3677
9327494e
SM
36782020-08-18 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * linux-nat.c (linux_nat_debug_printf): New function.
3681 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3682
d138725a
AM
36832020-08-18 Aaron Merey <amerey@redhat.com>
3684
3685 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3686 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3687 (CLIBS): Add DEBUGINFOD_LIBS.
3688
f9b11e6b
ST
36892020-08-17 Sergei Trofimovich <siarheit@google.com>
3690
3691 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3692 'gdbarch_num_regs'.
3693
3ae7ab99
TT
36942020-08-17 Tom Tromey <tromey@adacore.com>
3695
3696 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3697 ada_get_decoded_value returns NULL.
3698
b017825f
TT
36992020-08-17 Tom Tromey <tromey@adacore.com>
3700
3701 * python/py-inferior.c (infpy_search_memory): Use
3702 gdb_py_object_from_ulongest.
3703 * python/py-infevents.c (create_inferior_call_event_object)
3704 (create_memory_changed_event_object): Use
3705 gdb_py_object_from_ulongest.
3706 * python/py-linetable.c (ltpy_entry_get_pc): Use
3707 gdb_py_object_from_ulongest.
3708
7635cf79
SM
37092020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * loc.c (class symbol_needs_eval_context): Fix indentation.
3712
f54be24b
SM
37132020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3714
3715 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3716 bool.
3717
53d5a2a5
TV
37182020-08-17 Tom de Vries <tdevries@suse.de>
3719
3720 PR gdb/26393
3721 * gdbtypes.c (dump_dynamic_prop): New function.
3722 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3723
547ce8f0
TV
37242020-08-15 Tom de Vries <tdevries@suse.de>
3725
3726 PR backtrace/26390
3727 * stack.c (print_frame_args): Temporarily set the selected
3728 frame to FRAME while printing the frame's arguments.
3729
6ea815e7
PFC
37302020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3731
3732 PR breakpoints/26385
3733 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3734 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3735
6e562fa3
PFC
37362020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3737
3738 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3739 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3740 and >= to check return value instead of == -1 and != -1.
3741
d369b608
SM
37422020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * utils.h (class gdb_argv) <as_array_view>: New method.
3745 * utils.c (gdb_argv_as_array_view_test): New.
3746 (_initialize_utils): Register selftest.
3747 * maint.c (maintenance_selftest): Use the new method.
3748
b31488a3
KR
37492020-08-13 Kamil Rytarowski <n54@gmx.com>
3750
3751 * target.h (supports_dumpcore, dumpcore): New
3752 function declarations.
3753 * target.c (supports_dumpcore, dumpcore): New
3754 functions.
3755 * target-delegates.c: Rebuild.
3756 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3757 and target_dumpcore ().
3758
002a3166
AM
37592020-08-13 Aaron Merey <amerey@redhat.com>
3760
3761 * debuginfod-support.c: Replace global variables with user_data.
3762
ece5bc8a
SM
37632020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * maint.c (maintenance_selftest): Split args and pass array_view
3766 to run_tests.
3767
6d8a0a5e
LM
37682020-08-12 Luis Machado <luis.machado@linaro.org>
3769
3770 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3771 type's length.
3772 Use %s and pulongest to print the length.
3773
7cf663a9
PA
37742020-08-12 Pedro Alves <palves@redhat.com>
3775
3776 * NEWS: Move "Multi-target debugging support" item to the
3777 "Changes since GDB 9" section.
3778
27c7b875
PA
37792020-08-12 Pedro Alves <palves@redhat.com>
3780
3781 PR gdb/26336
3782 * progspace.c (program_space::remove_objfile): Invalidate the
3783 frame cache.
3784
1796a2a1
TV
37852020-08-11 Tom de Vries <tdevries@suse.de>
3786
3787 * MAINTAINERS: Mark ms1 as deleted.
3788
f8e3fe0d
LM
37892020-08-10 Luis Machado <luis.machado@linaro.org>
3790
3791 PR gdb/26310
3792
3793 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3794 act accordingly.
3795 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3796 movz/str/stur/stp skipping behavior.
3797
cc308722
LM
37982020-08-10 Luis Machado <luis.machado@linaro.org>
3799
3800 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3801 struct user_sve_header instead of struct sve_context.
3802
041d9819
SM
38032020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3804
3805 * read.h (dwarf2_fetch_die_loc_sect_off,
3806 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3807 `void *` parameter with function_view.
3808 * read.c (dwarf2_fetch_die_loc_sect_off,
3809 dwarf2_fetch_die_loc_cu_off): Likewise.
3810 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3811 (per_cu_dwarf_call): Adjust.
3812 (get_frame_address_in_block_wrapper): Remove.
3813 (indirect_synthetic_pointer): Adjust.
3814 (get_ax_pc): Remove.
3815 (dwarf2_compile_expr_to_ax): Adjust.
3816
38f8aa06
TV
38172020-08-08 Tom de Vries <tdevries@suse.de>
3818
3819 PR build/26344
3820 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3821 constructor.
3822 * regcache.c (get_thread_arch_aspace_regcache): Same.
3823
a52b3ae2
TT
38242020-08-07 Tom Tromey <tromey@adacore.com>
3825
3826 * ravenscar-thread.c
3827 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3828 New method.
3829 (ravenscar_thread_target::wait): Check
3830 runtime_initialized.
3831 (ravenscar_thread_target::prepare_to_store)
3832 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3833 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3834 (ravenscar_thread_target::stopped_by_watchpoint)
3835 (ravenscar_thread_target::stopped_data_address)
3836 (ravenscar_thread_target::core_of_thread): Use
3837 scoped_restore_current_thread and
3838 set_base_thread_from_ravenscar_task.
3839
0e29517d
TT
38402020-08-07 Tom Tromey <tromey@adacore.com>
3841
3842 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3843
592f9bd7
TT
38442020-08-07 Tom Tromey <tromey@adacore.com>
3845
3846 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3847 update_inferior_ptid before update_thread_list.
3848 (temporarily_change_regcache_ptid): New class.
3849 (ravenscar_thread_target::fetch_registers)
3850 (ravenscar_thread_target::store_registers)
3851 (ravenscar_thread_target::prepare_to_store): Use base thread when
3852 forwarding operation.
3853
39e2018a
TT
38542020-08-07 Tom Tromey <tromey@adacore.com>
3855
3856 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3857 "is_pid" case.
3858
2080266b
TT
38592020-08-07 Tom Tromey <tromey@adacore.com>
3860
3861 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3862 New methods.
3863 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3864 first.
3865 (ravenscar_thread_target::add_thread): Rename from
3866 ravenscar_add_thread.
3867 (ravenscar_thread_target::update_thread_list): Use a lambda.
3868 (ravenscar_thread_target::xfer_partial): New method.
3869
78c02f21
TT
38702020-08-07 Tom Tromey <tromey@adacore.com>
3871
3872 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3873 gdb::function_view.
3874 (iterate_over_live_ada_tasks): Change type of argument.
3875 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3876 of argument.
3877
d5d833af
TT
38782020-08-07 Tom Tromey <tromey@adacore.com>
3879
3880 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3881 Remove.
3882 (ravenscar_thread_target::extra_thread_info): Remove.
3883 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3884 defer to target beneath for non-Ravenscar threads.
3885
a8ac85bb
TT
38862020-08-07 Tom Tromey <tromey@adacore.com>
3887
3888 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3889 get_base_thread_from_ravenscar_task>: Now methods.
3890 <m_cpu_map>: New member.
3891 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3892 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3893 (ravenscar_thread_target::task_is_currently_active): Update.
3894 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3895 Now a method.
3896 (ravenscar_thread_target::add_active_thread): Put initial thread
3897 into the m_cpu_map.
3898
550ab58d
TT
38992020-08-07 Tom Tromey <tromey@adacore.com>
3900
3901 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3902 event_ptid.
3903
e9546579
TT
39042020-08-07 Tom Tromey <tromey@adacore.com>
3905
3906 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3907 runtime_initialized.
3908
3d4470e5
TT
39092020-08-07 Tom Tromey <tromey@adacore.com>
3910
3911 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3912 add_active_thread.
3913 (ravenscar_thread_target::add_active_thread): Now public.
3914 (ravenscar_inferior_created): Call add_active_thread after pushing
3915 the target.
3916
888bdb2b
SM
39172020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * regcache.c (ptid_regcache_map): New type.
3920 (target_ptid_regcache_map): New type.
3921 (regcaches): Change type to target_ptid_regcache_map.
3922 (get_thread_arch_aspace_regcache): Update to regcaches' new
3923 type.
3924 (regcache_thread_ptid_changed): Likewise.
3925 (registers_changed_ptid): Likewise.
3926 (regcaches_size): Likewise.
3927 (regcaches_test): Update.
3928 (regcache_thread_ptid_changed): Update.
3929 * regcache.h (regcache_up): New type.
3930 * gdbsupport/ptid.h (hash_ptid): New struct.
3931
b161a60d
SM
39322020-08-07 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * observable.h (thread_ptid_changed): Add parameter
3935 `process_stratum_target *`.
3936 * infrun.c (infrun_thread_ptid_changed): Add parameter
3937 `process_stratum_target *` and use it.
3938 (selftests): New namespace.
3939 (infrun_thread_ptid_changed): New function.
3940 (_initialize_infrun): Register selftest.
3941 * regcache.c (regcache_thread_ptid_changed): Add parameter
3942 `process_stratum_target *` and use it.
3943 (regcache_thread_ptid_changed): New function.
3944 (_initialize_regcache): Register selftest.
3945 * thread.c (thread_change_ptid): Pass target to
3946 thread_ptid_changed observable.
3947
d2854d8d
CT
39482020-08-06 Caroline Tice <cmtice@google.com>
3949
fe4c3d43
SM
3950 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3951 (struct dwp_sections): Update field comments. Add loclists and
3952 rnglists fields.
3953 (struct virtual_v2_dwo_sections): Rename struct to
3954 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3955 size & offset fields for loclists and rnglists.
3956 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3957 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3958 skipping dummy type units.
3959 (create_dwp_hash_table): Update the large comment above the function to
3960 discuss Version 5 DWP files as well, with references. Update all the
3961 version checks in the function to check for version 5 as well. Add new
3962 section at the end to create dwp hash table for version 5.
3963 (create_dwp_v2_section): Rename function to
3964 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3965 Add V5 to error message text.
3966 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3967 into calls to create_dwp_v2_or_v5_section.
3968 (create_dwo_unit_in_dwp_v5): New function.
3969 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3970 check for version2; add else clause to handle version 5.
3971 (open_and_init_dwo_file): Add code to check dwarf version & only call
3972 create_debug_types_hash_table (with sections.types) if version is not 5;
3973 else call create_debug_type_hash_table, with sections.info.
3974 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3975 version 5.
3976 (dwarf2_locate_v5_dwp_sections): New function.
3977 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3978 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3979
159ed7d9
SM
39802020-08-06 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * regcache.h (class regcache): Remove friend
3983 registers_changed_ptid.
3984 <regcache_thread_ptid_changed>: Remove.
3985 <regcaches>: Remove.
3986 * regcache.c (regcache::regcaches): Rename to...
3987 (regcaches): ... this. Make static.
3988 (get_thread_arch_aspace_regcache): Update.
3989 (regcache::regcache_thread_ptid_changed): Rename to...
3990 (regcache_thread_ptid_changed): ... this. Update.
3991 (class regcache_access): Remove.
3992 (regcaches_test): Update.
3993 (_initialize_regcache): Update.
3994 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3995 <forward_list>.
3996
174981ae
SM
39972020-08-06 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * regcache.h (class regcache) <current_regcache>: Rename to...
4000 <regcaches>: ... this. Move doc here.
4001 * regcache.c (regcache::current_regcache) Rename to...
4002 (regcache::regcaches): ... this. Move doc to header.
4003 (get_thread_arch_aspace_regcache): Update.
4004 (regcache::regcache_thread_ptid_changed): Update.
4005 (registers_changed_ptid): Update.
4006 (class regcache_access) <current_regcache_size>: Rename to...
4007 <regcaches_size>: ... this.
4008 (current_regcache_test): Rename to...
4009 (regcaches_test): ... this.
4010 (_initialize_regcache): Update.
4011
ed908db6
VC
40122020-08-06 Victor Collod <vcollod@nvidia.com>
4013
4014 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4015
b5582ab7
KB
40162020-08-05 Kevin Buettner <kevinb@redhat.com>
4017
4018 * corelow.c (core_target::build_file_mappings): Don't output
4019 null pathname in warning.
4020
ea946b86
SM
40212020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4024 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4025 gdb.dwarf2/dw2-single-line-discriminators.exp,
4026 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4027
57d02173
TT
40282020-08-05 Tom Tromey <tromey@adacore.com>
4029
4030 PR rust/26197:
4031 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4032 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4033 Fix off-by-one and type size errors in ordinary case.
4034
5555c86d
TV
40352020-08-05 Tom de Vries <tdevries@suse.de>
4036
4037 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4038 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4039
97916bfe
SM
40402020-08-04 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * frame.h (frame_id_p): Return bool.
4043 (frame_id_artificial_p): Return bool.
4044 (frame_id_eq): Return bool.
4045 (has_stack_frames): Return bool.
4046 (get_selected_frame): Fix typo in comment.
4047 (get_frame_pc_if_available): Return bool.
4048 (get_frame_address_in_block_if_available): Return bool.
4049 (get_frame_func_if_available): Return bool.
4050 (read_frame_register_unsigned): Return bool.
4051 (get_frame_register_bytes): Return bool.
4052 (safe_frame_unwind_memory): Return bool.
4053 (deprecated_frame_register_read): Return bool.
4054 (frame_unwinder_is): Return bool.
4055 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4056 bool.
4057 <this_id::p>: Likewise.
4058 <prev_p>: Likewise.
4059 (frame_stash_add): Return bool.
4060 (get_frame_id): Use bool.
4061 (frame_id_build_special) Use bool.
4062 (frame_id_build_unavailable_stack): Use bool.
4063 (frame_id_build): Use bool.
4064 (frame_id_p): Return bool, use true/false instead of 1/0.
4065 (frame_id_artificial_p): Likewise.
4066 (frame_id_eq): Likewise.
4067 (frame_id_inner): Likewise.
4068 (get_frame_func_if_available): Likewise.
4069 (read_frame_register_unsigned): Likewise.
4070 (deprecated_frame_register_read): Likewise.
4071 (get_frame_register_bytes): Likewise.
4072 (has_stack_frames): Likewise.
4073 (inside_main_func): Likewise.
4074 (inside_entry_func): Likewise.
4075 (get_frame_pc_if_available): Likewise.
4076 (get_frame_address_in_block_if_available): Likewise.
4077 (frame_unwinder_is): Likewise.
4078 (safe_frame_unwind_memory): Likewise.
4079 (frame_unwind_arch): Likewise.
4080
fedfee88
SM
40812020-08-04 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4084 type to cached_copy_status.
4085 (fprintf_frame): Adjust.
4086 (get_frame_func_if_available): Adjust.
4087 (frame_cleanup_after_sniffer): Adjust.
4088
6cfa9b59
MW
40892020-08-04 Mark Wielaard <mark@klomp.org>
4090
4091 * MAINTAINERS (Write After Approval): Update email address.
4092
66d6346b
SM
40932020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4096 dynamic_prop::const_val.
4097
8a6d5e35
SM
40982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4101 dynamic_prop::kind.
4102
51d6067d
SM
41032020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4104
4105 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4106
b26e2ae7
JM
41072020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4108
4109 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4110
39791af2
JM
41112020-08-04 Weimin Pan <weimin.pan@oracle.com>
4112 Jose E. Marchesi <jose.marchesi@oracle.com>
4113
4114 * configure.tgt: Add entry for bpf-*-*.
4115 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4116 (ALLDEPFILES): Add bpf-tdep.c.
4117 * bpf-tdep.c: New file.
4118 * MAINTAINERS: Add bpf target and maintainer.
4119 * NEWS: Mention the support for the new target.
4120
521894aa
TV
41212020-08-04 Tom de Vries <tdevries@suse.de>
4122
4123 PR symtab/23270
4124 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4125 Error.
4126
5d6356e9
JB
41272020-08-03 John Baldwin <jhb@FreeBSD.org>
4128
4129 * syscalls/freebsd.xml: Regenerate.
4130
0cf82b81
JB
41312020-08-03 John Baldwin <jhb@FreeBSD.org>
4132
4133 * syscalls/update-freebsd.sh: Fix usage and year range.
4134
8f34b746
TV
41352020-08-03 Tom de Vries <tdevries@suse.de>
4136
4137 PR symtab/26333
4138 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4139 DW_LNE_lo_user/DW_LNE_hi_user range.
4140
5e500d33
SM
41412020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 PR ada/26318
4144 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4145 kind.
4146
78319c15
TBA
41472020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4150
4c55e970
TBA
41512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4152
4153 * breakpoint.c (set_breakpoint_condition): Update the condition
4154 expressions after checking that the input condition string parses
4155 successfully and does not contain junk at the end.
4156
1e620590
TBA
41572020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4158
4159 * breakpoint.c (set_breakpoint_condition): Update the
4160 condition string after parsing the new condition successfully.
4161
c8693053
RO
41622020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4163
4164 * proc-api.c (_STRUCTURED_PROC): Don't define.
4165 * proc-events.c: Likewise.
4166 * proc-flags.c: Likewise.
4167 * proc-why.c: Likewise.
4168 * procfs.c: Likewise.
4169
4170 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4171 * configure, config.in: Regenerate.
4172
5a99adb8
TV
41732020-07-30 Tom de Vries <tdevries@suse.de>
4174
4175 PR build/26320
4176 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4177 m_red/m_green/m_blue in a union.
4178
8ba83e91
TV
41792020-07-29 Tom de Vries <tdevries@suse.de>
4180
4181 PR tdep/26280
4182 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4183
f75a0693
AB
41842020-07-28 Tom Tromey <tromey@adacore.com>
4185
4186 PR symtab/26270:
4187 * symtab.h (find_pc_partial_function_sym): Declare.
4188 * cli/cli-cmds.c (disassemble_command): Use
4189 find_pc_partial_function_sym. Check asm_demangle.
4190 * blockframe.c (cache_pc_function_sym): New global.
4191 (cache_pc_function_name): Remove.
4192 (clear_pc_function_cache): Update.
4193 (find_pc_partial_function_sym): New function, from
4194 find_pc_partial_function.
4195 (find_pc_partial_function): Rewrite using
4196 find_pc_partial_function_sym.
4197
16f3242c
TT
41982020-07-28 Tom Tromey <tromey@adacore.com>
4199
4200 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4201 help. Add usage.
4202
4888741a
TT
42032020-07-28 Tom Tromey <tromey@adacore.com>
4204
4205 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4206 <DW_OP_GNU_variable_value>: Cast to address type.
4207
4d46f402
KR
42082020-07-28 Kamil Rytarowski <n54@gmx.com>
4209
4210 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4211 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4212 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4213 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4214 (nbsd_get_siginfo_type): New.
4215 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4216 (_initialize_nbsd_tdep): New.
4217
d70f978b
L
42182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4219
4220 PR binutils/26301
4221 * configure: Regenerated.
4222
377170fa
L
42232020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4224
4225 PR binutils/26301
4226 * configure: Regenerated.
4227
43d5901d
AB
42282020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * python/py-frame.c: Remove 'user-regs.h' include.
4231 (frapy_read_register): Rewrite to make use of
4232 gdbpy_parse_register_id.
4233 * python/py-registers.c (gdbpy_parse_register_id): New function,
4234 moved here from python/py-unwind.c. Updated the return type, and
4235 also accepts register descriptor objects.
4236 * python/py-unwind.c: Remove 'user-regs.h' include.
4237 (pyuw_parse_register_id): Moved to python/py-registers.c.
4238 (unwind_infopy_add_saved_register): Update to use
4239 gdbpy_parse_register_id.
4240 (pending_framepy_read_register): Likewise.
4241 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4242
14fa8fb3
AB
42432020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4244
4245 * python/py-registers.c: Add 'user-regs.h' include.
4246 (register_descriptor_iter_find): New function.
4247 (register_descriptor_iterator_object_methods): New static global
4248 methods array.
4249 (register_descriptor_iterator_object_type): Add pointer to methods
4250 array.
4251
ddce1758
JB
42522020-07-27 John Baldwin <jhb@FreeBSD.org>
4253
4254 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4255 for all architectures on FreeBSD 11.3 and later.
4256
a4089f52
TT
42572020-07-27 Tom Tromey <tromey@adacore.com>
4258
4259 * gcore.h (load_corefile): Don't declare.
4260
95420d30
TV
42612020-07-27 Tom de Vries <tdevries@suse.de>
4262
4263 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4264 * config.in: Regenerate.
4265 * configure: Regenerate.
4266
05a6b8c2
EZ
42672020-07-26 Eli Zaretskii <eliz@gnu.org>
4268
4269 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4270 ws2tcpip.h. When checking whether socklen_t type is defined, use
4271 ws2tcpip.h if it is available and sys/socket.h isn't.
4272 * configure: Regenerate.
4273 * config.in: Regenerate.
4274
e79eb02f
AB
42752020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 PR fortran/23051
4278 PR fortran/26139
4279 * valops.c (value_ind): Pass address to
4280 readjust_indirect_value_type.
4281 * value.c (readjust_indirect_value_type): Make parameter
4282 non-const, and add extra address parameter. Resolve original type
4283 before using it.
4284 * value.h (readjust_indirect_value_type): Update function
4285 signature and comment.
4286
876518dd
TV
42872020-07-25 Tom de Vries <tdevries@suse.de>
4288
4289 PR symtab/26243
4290 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4291 entries.
4292
f6720b1c
AM
42932020-07-24 Aaron Merey <amerey@redhat.com>
4294
4295 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4296 * configure: Rebuild.
4297
513487e1
KB
42982020-07-23 Kevin Buettner <kevinb@redhat.com>
4299
4300 PR corefiles/26294
4301 * corelow.c (_initialize_corelow): Add period to help text
4302 for "maintenance print core-file-backed-mappings".
4303
e7bc9db8
PA
43042020-07-23 Pedro Alves <pedro@palves.net>
4305
4306 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4307 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4308 meanwhile.
4309 * frame.c (frame_cache_generation, get_frame_cache_generation):
4310 New.
4311 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4312 (get_prev_frame_if_no_cycle): On exception, don't touch
4313 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4314 * frame.h (get_frame_cache_generation): Declare.
4315
90fcc466
TV
43162020-07-23 Tom de Vries <tdevries@suse.de>
4317
4318 PR tui/26282
4319 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4320 New default constructor.
4321
78344df7
AB
43222020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4325 exclude non-statement entries.
4326
b089853a
KB
43272020-07-22 Kevin Buettner <kevinb@redhat.com>
4328
4329 * NEWS (New commands): Mention new command
4330 "maintenance print core-file-backed-mappings".
4331
09c2f5d4
KB
43322020-07-22 Kevin Buettner <kevinb@redhat.com>
4333
4334 * corelow.c (gdbcmd.h): Include.
4335 (core_target::info_proc_mappings): New method.
4336 (get_current_core_target): New function.
4337 (maintenance_print_core_file_backed_mappings): New function.
4338 (_initialize_corelow): Add core-file-backed-mappings to
4339 "maint print" commands.
4340
9c5ec5c2 43412020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4342
9c5ec5c2
KB
4343 * linux-tdep.c (dump_note_entry_p): New function.
4344 (linux_dump_mapping_p_ftype): New typedef.
4345 (linux_find_memory_regions_full): Add new parameter,
4346 should_dump_mapping_p.
4347 (linux_find_memory_regions): Adjust call to
4348 linux_find_memory_regions_full.
4349 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4350 call to linux_find_memory_regions_full.
4351
db082f59
KB
43522020-07-22 Kevin Buettner <kevinb@redhat.com>
4353
4354 * corelow.c (solist.h, unordered_map): Include.
4355 (class core_target): Add field m_core_file_mappings and
4356 method build_file_mappings.
4357 (core_target::core_target): Call build_file_mappings.
4358 (core_target::~core_target): Free memory associated with
4359 m_core_file_mappings.
4360 (core_target::build_file_mappings): New method.
4361 (core_target::xfer_partial): Use m_core_file_mappings
4362 for memory transfers.
4363 * linux-tdep.c (linux_read_core_file_mappings): New
4364 function.
4365 (linux_core_info_proc_mappings): Rewrite to use
4366 linux_read_core_file_mappings.
4367 (linux_init_abi): Register linux_read_core_file_mappings.
4368
7e183d27
KB
43692020-07-22 Kevin Buettner <kevinb@redhat.com>
4370
4371 * arch-utils.c (default_read_core_file_mappings): New function.
4372 * arch-utils.c (default_read_core_file_mappings): Declare.
4373 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4374 * gdbarch.h, gdbarch.c: Regenerate.
4375
2735d421
KB
43762020-07-22 Kevin Buettner <kevinb@redhat.com>
4377
4378 PR corefiles/25631
4379 * corelow.c (core_target:xfer_partial): Revise
4380 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4381 case after first checking the stratum beneath the core
4382 target.
4383 (has_all_memory): Return true.
4384 * target.c (raw_memory_xfer_partial): Revise comment
4385 regarding use of has_all_memory.
4386
e56cb451
KB
43872020-07-22 Kevin Buettner <kevinb@redhat.com>
4388
4389 * exec.h (section_table_xfer_memory): Revise declaration,
4390 replacing section name parameter with an optional callback
4391 predicate.
4392 * exec.c (section_table_xfer_memory): Likewise.
4393 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4394 of section_table_xfer_memory.
4395
32fa152e
TT
43962020-07-22 Tom Tromey <tromey@adacore.com>
4397
4398 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4399 lookup_symbol_search_name.
4400
a67a1c41
AB
44012020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4402
4403 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4404 redundant local variable.
4405 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4406 reference, not pointer, update code accordingly.
4407
a7b4ff4f
SM
44082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4409 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4410
4411 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4412 * jit.c (jit_breakpoint_re_set_internal): Use the
4413 `skip_jit_symbol_lookup` field.
4414
2340e834
SM
44152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4416 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4417
4418 * jit.c (jit_read_descriptor): Define the descriptor address once,
4419 use twice.
4420 (jit_breakpoint_deleted): Move the declaration of the loop variable
4421 `iter` into the loop header.
4422 (jit_breakpoint_re_set_internal): Move the declaration of the local
4423 variable `objf_data` to the first point of definition.
4424 (jit_event_handler): Move the declaration of local variables
4425 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4426 Rename `objf` to `jited`.
4427
c1072906
SM
44282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4431 Remove.
4432 * jit.c (get_jiter_objfile_data): Update.
4433
c8474dc3
TBA
44342020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4435 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * jit.c (struct jit_program_space_data): Remove.
4438 (jit_program_space_key): Remove.
4439 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4440 stuff.
4441 (get_jit_program_space_data): Remove.
4442 (jit_breakpoint_deleted): Iterate on all of the program space's
4443 objfiles.
4444 (jit_inferior_init): Likewise.
4445 (jit_breakpoint_re_set_internal): Likewise. Also change return
4446 type to void.
4447 (jit_breakpoint_re_set): Pass current_program_space to
4448 jit_breakpoint_re_set_internal.
4449
77208eb7
SM
44502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 * jit.h (struct jiter_objfile_data) <cached_code_address,
4453 jit_breakpoint>: Move to here from ...
4454 * jit.c (jit_program_space_data): ... here.
4455 (jiter_objfile_data::~jiter_objfile_data): Update.
4456 (jit_breakpoint_deleted): Update.
4457 (jit_breakpoint_re_set_internal): Update.
4458
8c1c720f
SM
44592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4462 checks.
4463 (jit_read_descriptor): Remove NULL check.
4464 (jit_event_handler): Add an assertion.
4465
0e74a041
SM
44662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4467
4468 * jit.h (struct jit_objfile_data): Split into...
4469 (struct jiter_objfile_data): ... this ...
4470 (struct jited_objfile_data): ... and this.
4471 * objfiles.h (struct objfile) <jit_data>: Remove.
4472 <jiter_data, jited_data>: New fields.
4473 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4474 (jiter_objfile_data::~jiter_objfile_data): ... this.
4475 (get_jit_objfile_data): Rename to ...
4476 (get_jiter_objfile_data): ... this.
4477 (add_objfile_entry): Update.
4478 (jit_read_descriptor): Use get_jiter_objfile_data.
4479 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4480 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4481 (jit_inferior_exit_hook): Use objfile's jited_data field.
4482
238b5c9f
SM
44832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4484
4485 * jit.h: Forward-declare `struct minimal_symbol`.
4486 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4487 constructor, destructor, and an objfile* field.
4488 * jit.c (jit_objfile_data): Remove.
4489 (struct jit_objfile_data): Migrate from here to jit.h.
4490 (jit_objfile_data::~jit_objfile_data): New destructor
4491 implementation with code moved from free_objfile_data.
4492 (free_objfile_data): Delete.
4493 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4494 (jit_find_objf_with_entry_addr): Ditto.
4495 (jit_inferior_exit_hook): Ditto.
4496 (_initialize_jit): Remove the call to
4497 register_objfile_data_with_cleanup.
4498 * objfiles.h (struct objfile) <jit_data>: New field.
4499
fe053b9e
TBA
45002020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4501
4502 * jit.h: Forward-declare `struct objfile`.
4503 (jit_event_handler): Add a second parameter, the JITer objfile.
4504 * jit.c (jit_read_descriptor): Change the signature to take the
4505 JITer objfile as an argument instead of the jit_program_space_data.
4506 (jit_inferior_init): Update the call to jit_read_descriptor.
4507 (jit_event_handler): Use the new JITer objfile argument when calling
4508 jit_read_descriptor.
4509 * breakpoint.c (handle_jit_event): Update the call to
4510 jit_event_handler to pass the JITer objfile.
4511
4cec0c66
JB
45122020-07-21 John Baldwin <jhb@FreeBSD.org>
4513
4514 * gdbarch.c: Regenerate.
4515 * gdbarch.h: Regenerate.
4516 * gdbarch.sh (handle_segmentation_fault): Remove method.
4517 * infrun.c (handle_segmentation_fault): Remove.
4518 (print_signal_received_reason): Remove call to
4519 handle_segmentation_fault.
4520
0e42f66a
JB
45212020-07-21 John Baldwin <jhb@FreeBSD.org>
4522
4523 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4524 Rename to sparc64_linux_report_signal_info and add siggnal
4525 argument.
4526 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4527 instead of sparc64_linux_handle_segmentation_fault.
4528
77bdfeb2
JB
45292020-07-21 John Baldwin <jhb@FreeBSD.org>
4530
4531 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4532 i386_linux_report_signal_info instead of
4533 i386_linux_handle_segmentation_fault.
4534 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4535 to i386_linux_report_signal_info and add siggnal argument.
4536 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4537 of i386_linux_handle_segmentation_fault.
4538 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4539 to i386_linux_report_signal_info and add siggnal argument.
4540
ad97bfc5
JB
45412020-07-21 John Baldwin <jhb@FreeBSD.org>
4542
4543 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4544 hook if present.
4545
272bb05c
JB
45462020-07-21 John Baldwin <jhb@FreeBSD.org>
4547
4548 * gdbarch.c: Regenerate.
4549 * gdbarch.h: Regenerate.
4550 * gdbarch.sh (report_signal_info): New method.
4551 * infrun.c (print_signal_received_reason): Invoke gdbarch
4552 report_signal_info hook if present.
4553
baf8791e
AB
45542020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * python/py-registers.c : Add 'unordered_map' include.
4557 (gdbpy_new_reggroup): Renamed to...
4558 (gdbpy_get_reggroup): ...this. Update to only create register
4559 group descriptors when needed.
4560 (gdbpy_reggroup_iter_next): Update.
4561
f7306dac
AB
45622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4563
4564 * python/py-registers.c (gdbpy_register_object_data): New static
4565 global.
4566 (gdbpy_register_object_data_init): New function.
4567 (gdbpy_new_register_descriptor): Renamed to...
4568 (gdbpy_get_register_descriptor): ...this, and update to reuse
4569 existing register descriptors where possible.
4570 (gdbpy_register_descriptor_iter_next): Update.
4571 (gdbpy_initialize_registers): Register new gdbarch data.
4572
05c309a8
SM
45732020-07-21 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * linux-nat.c (stopped_pids): Make static.
4576
d1fd641e
SM
45772020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4578
4579 PR ada/26235
4580 * gdbtypes.c (ada_discrete_type_low_bound,
4581 ada_discrete_type_high_bound): Handle undefined bounds.
4582
1de14d77
KR
45832020-07-21 Kamil Rytarowski <n54@gmx.com>
4584
4585 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4586 declaration.
4587 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4588 function.
4589
ed810cc7
JB
45902020-07-20 John Baldwin <jhb@FreeBSD.org>
4591
4592 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4593 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4594 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4595 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4596 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4597 method.
4598
ae5369e7
LC
45992020-07-20 Ludovic Courtès <ludo@gnu.org>
4600
4601 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4602 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4603 which are deprecated in Guile 3.0.
4604 * configure.ac (try_guile_versions): Add "guile-3.0".
4605 * configure (try_guile_versions): Regenerate.
4606 * NEWS: Update entry.
4607
68cf161c
LC
46082020-07-20 Ludovic Courtès <ludo@gnu.org>
4609 Doug Evans <dje@google.com>
4610
4611 PR gdb/21104
4612 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4613 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4614 USING_GUILE_BEFORE_2_2.
4615 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4616 Change type to 'scm_t_port_type *'.
4617 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4618 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4619 parameter and honor it. Update callers.
4620 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4621 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4622 functions.
4623 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4624 USING_GUILE_BEFORE_2_2.
4625 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4626 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4627 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4628 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4629 and 'SCM_PORT_TYPE'.
4630 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4631 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4632 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4633 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4634 [!USING_GUILE_BEFORE_2_2]: New functions.
4635 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4636 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4637 'gdbscm_memory_port_read'.
4638 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4639 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4640 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4641 function.
4642 (ioscm_init_memory_port): Remove.
4643 (ioscm_init_memory_port_stream): New function
4644 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4645 function.
4646 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4647 Return scm_from_uint (0).
4648 (gdbscm_set_memory_port_read_buffer_size_x)
4649 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4650 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4651 Return scm_from_uint (0).
4652 (gdbscm_set_memory_port_write_buffer_size_x)
4653 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4654 * configure.ac (try_guile_versions): Add "guile-2.2".
4655 * configure: Regenerate.
4656 * NEWS: Add entry.
4657
aee91db3
TT
46582020-07-18 Tom Tromey <tom@tromey.com>
4659
4660 * linux-nat.c (linux_multi_process): Remove.
4661 (linux_nat_target::supports_multi_process): Return true.
4662
0e267416
AB
46632020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4666 (riscv_lookup_target_description): Return pointer out of
4667 unique_ptr.
4668 * target-descriptions.c (allocate_target_description): Add
4669 comment.
4670 (target_desc_deleter::operator()): Likewise.
4671 * target-descriptions.h (struct target_desc_deleter): Moved to
4672 gdbsupport/tdesc.h.
4673 (target_desc_up): Likewise.
4674
f80c8ec4
TT
46752020-07-17 Tom Tromey <tromey@adacore.com>
4676
4677 * linux-nat.c (linux_nat_target::supports_non_stop)
4678 (linux_nat_target::always_non_stop_p): Use "true".
4679 (linux_nat_target::supports_disable_randomization): Use "true" and
4680 "false".
4681
d0ce17d8
CT
46822020-07-16 Caroline Tice <cmtice@google.com>
4683
4684 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4685 (RNGLIST_HEADER_SIZE64): New constant definition.
4686 (struct dwop_section_names): Add rnglists_dwo.
4687 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4688 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4689 (struct dwo_sections): Add rnglists field.
4690 (read_attribut_reprocess): Add tag parameter.
4691 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4692 (cu_debug_rnglists_section): New function (decl & definition).
4693 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4694 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4695 die whose range is being checked; get rnglist section from
4696 cu_debug_rnglists_section, to get from either objfile or dwo file as
4697 appropriate. Add cases for DW_RLE_base_addressx,
4698 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4699 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4700 test inside if-condition and updating complaint message.
4701 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4702 dwarf2_rnglists_process.
4703 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4704 dwarf2_ranges_process.
4705 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4706 need_ranges_base and update comment appropriately. Also pass die tag
4707 to dwarf2_ranges_read.
4708 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4709 need_ranges_base and update comment appropriately. Also pass die tag
4710 to dwarf2_ranges_process.
4711 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4712 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4713 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4714 need_ranges_base and update comment appropriately. Also pass die tag
4715 to read_attribute_reprocess and dwarf2_ranges_read.
4716 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4717 and update function comment appropriately.
4718 (read_loclist_index): Call read_loclists_rnglists_header instead of
4719 read_loclist_header.
4720 (read_rnglist_index): New function.
4721 (read_attribute_reprocess): Add tag parameter. Add code for
4722 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4723 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4724
3dcc261c
AB
47252020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4728 being resolved.
4729
ccb9eba6
AB
47302020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * arch-utils.c (show_architecture): Update formatting of messages.
4733
cf88be68
SM
47342020-07-12 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * gdbtypes.h (struct type) <bounds>: Handle array and string
4737 types.
4738 * ada-lang.c (assign_aggregate): Use type::bounds on
4739 array/string type.
4740 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4741 * c-varobj.c (c_number_of_children): Likewise.
4742 (c_describe_child): Likewise.
4743 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4744 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4745 (f_type_print_base): Likewise.
4746 * f-valprint.c (f77_array_offset_tbl): Likewise.
4747 (f77_get_upperbound): Likewise.
4748 (f77_print_array_1): Likewise.
4749 * guile/scm-type.c (gdbscm_type_range): Likewise.
4750 * m2-typeprint.c (m2_array): Likewise.
4751 (m2_is_long_set_of_type): Likewise.
4752 * m2-valprint.c (get_long_set_bounds): Likewise.
4753 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4754 * python/py-type.c (typy_range): Likewise.
4755 * rust-lang.c (rust_internal_print_type): Likewise.
4756 * type-stack.c (type_stack::follow_types): Likewise.
4757 * valarith.c (value_subscripted_rvalue): Likewise.
4758 * valops.c (value_cast): Likewise.
4759
509971ae
SM
47602020-07-12 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4763 callers to use the equivalent accessor methods.
4764
107406b7
SM
47652020-07-12 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4768 (struct type) <bit_stride>: New method.
4769 (TYPE_BIT_STRIDE): Remove.
4770 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4771
bb789949
SM
47722020-07-12 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4775 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4776 callers to use the equivalent accessor methods instead.
4777
39498edb
SM
47782020-07-12 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4781 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4782 callers to use the equivalent accessor methods instead.
4783
3b606f38
SM
47842020-07-12 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4787 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4788 to use dynamic_prop::kind.
4789
064d9cb9
SM
47902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4793 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4794 to get the bound property's kind and check against
4795 PROP_UNDEFINED.
4796
5537ddd0
SM
47972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4800 all callers to use type::range_bounds followed by
4801 dynamic_prop::{low,high}.
4802
8c2e4e06
SM
48032020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4806 const_val, set_const_val, baton, set_locexpr, set_loclist,
4807 set_addr_offset, variant_parts, set_variant_parts,
4808 original_type, set_original_type>: New methods.
4809 <kind>: Rename to...
4810 <m_kind>: ... this. Update all users to use the new methods
4811 instead.
4812 <data>: Rename to...
4813 <m_data>: ... this. Update all users to use the new methods
4814 instead.
4815
7c6f2712
SM
48162020-07-12 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * gdbtypes.c (get_discrete_bounds): Return failure if
4819 the range type's bounds are not both defined and constant
4820 values.
4821 (get_array_bounds): Update comment. Remove undefined bound check.
4822
599088e3
SM
48232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4824
4825 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4826 the type::bounds method directly.
4827
c4dfcb36
SM
48282020-07-12 Simon Marchi <simon.marchi@efficios.com>
4829
4830 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4831 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4832 are used to set the range type's bounds to use set_bounds.
4833
0a278aa7
PW
48342020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835
4836 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4837
cce20f10
PA
48382020-07-10 Pedro Alves <pedro@palves.net>
4839
4840 * gdbthread.h (inferior_ref): Define.
4841 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4842 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4843 * thread.c
4844 (scoped_restore_current_thread::restore):
4845 Adjust to gdb::ref_ptr.
4846 (scoped_restore_current_thread::~scoped_restore_current_thread):
4847 Remove manual decref handling.
4848 (scoped_restore_current_thread::scoped_restore_current_thread):
4849 Adjust to use
4850 inferior_ref::new_reference/thread_info_ref::new_reference.
4851 Incref the thread before calling get_frame_id instead of after.
4852 Let TARGET_CLOSE_ERROR propagate.
4853
6d7aa592
PA
48542020-07-10 Pedro Alves <pedro@palves.net>
4855
4856 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4857 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4858 NOT_AVAILABLE_ERROR.
4859 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4860 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4861
b3e3a4c1
SM
48622020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4863 Pedro Alves <pedro@palves.net>
4864
4865 PR gdb/26199
4866 * infrun.c (threads_are_resumed_pending_p): Delete.
4867 (do_target_wait): Remove threads_are_executing and
4868 threads_are_resumed_pending_p checks from the inferior_matches
4869 lambda. Update comments.
4870
d6cc5d98
PA
48712020-07-10 Pedro Alves <pedro@palves.net>
4872
4873 PR gdb/26199
4874 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4875 executing threads.
4876
7d3badc6
PA
48772020-07-10 Pedro Alves <pedro@palves.net>
4878
4879 PR gdb/26199
4880 * infrun.c (handle_no_resumed): Handle multiple targets.
4881
42bd97a6
PA
48822020-07-10 Pedro Alves <pedro@palves.net>
4883
4884 PR gdb/26199
4885 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4886 target_is_async_p.
4887
43667cc6
PA
48882020-07-10 Pedro Alves <pedro@palves.net>
4889
4890 PR gdb/26199
4891 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4892 threads, not all threads.
4893
96118d11
PA
48942020-07-10 Pedro Alves <pedro@palves.net>
4895
4896 PR gdb/26199
4897 * remote.c (remote_target::open_1): Pass remote target pointer as
4898 data to create_async_event_handler.
4899 (remote_async_inferior_event_handler): Mark async event handler
4900 before returning if the remote target still has either pending
4901 events or unacknowledged notifications.
4902
54904d81
JB
49032020-07-10 John Baldwin <jhb@FreeBSD.org>
4904
4905 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4906 declaration.
4907 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4908 function.
4909
f37e5866
JB
49102020-07-09 John Baldwin <jhb@FreeBSD.org>
4911
4912 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4913 inferior_ptid.
4914
fc238d4a
JB
49152020-07-09 John Baldwin <jhb@FreeBSD.org>
4916
4917 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4918 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4919 AT_FREEBSD_PS_STRINGS.
4920
6e2469ff
HD
49212020-07-08 Hannes Domani <ssbssa@yahoo.de>
4922
4923 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4924 of debugfile path on Windows.
4925
d1076c41
JB
49262020-07-08 John Baldwin <jhb@FreeBSD.org>
4927
4928 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4929 argument to 'data'.
4930
15f3b077
TT
49312020-07-08 Tom Tromey <tromey@adacore.com>
4932
4933 * ada-lang.c (ada_exception_message_1): Use read_memory.
4934
9fc501fd
AB
49352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 PR python/22748
4938 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4939 special handling for inline frames.
4940 * findvar.c (value_of_register_lazy): Skip inline frames when
4941 creating lazy register values.
4942 * frame.c (frame_id_computed_p): Delete definition.
4943 * frame.h (frame_id_computed_p): Delete declaration.
4944
64cb3757
AB
49452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * NEWS: Mention additions to Python API.
4948 * python/py-arch.c (archpy_register_groups): New function.
4949 (arch_object_methods): Add 'register_groups' method.
4950 * python/py-registers.c (reggroup_iterator_object): New struct.
4951 (reggroup_object): New struct.
4952 (gdbpy_new_reggroup): New function.
4953 (gdbpy_reggroup_to_string): New function.
4954 (gdbpy_reggroup_name): New function.
4955 (gdbpy_reggroup_iter): New function.
4956 (gdbpy_reggroup_iter_next): New function.
4957 (gdbpy_new_reggroup_iterator): New function
4958 (gdbpy_initialize_registers): Register new types.
4959 (reggroup_iterator_object_type): Define new Python type.
4960 (gdbpy_reggroup_getset): New static global.
4961 (reggroup_object_type): Define new Python type.
4962 * python/python-internal.h
4963
0f767f94
AB
49642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4967 * python/py-arch.c (archpy_registers): New function.
4968 (arch_object_methods): Add 'registers' method.
4969 * python/py-registers.c: New file.
4970 * python/python-internal.h
4971 (gdbpy_new_register_descriptor_iterator): Declare.
4972 (gdbpy_initialize_registers): Declare.
4973 * python/python.c (do_start_initialization): Call
4974 gdbpy_initialize_registers.
4975 * NEWS: Mention additions to the Python API.
4976
87dbc774
AB
49772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * NEWS: Mention new Python API method.
4980 * python/py-unwind.c (pending_framepy_architecture): New function.
4981 (pending_frame_object_methods): Add architecture method.
4982
3bc98c0c
AB
49832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4984
4985 * gdbarch.c: Regenerate.
4986 * gdbarch.h: Regenerate.
4987 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4988 (gdbarch_data): Use internal_error for the case where
4989 deprecated_set_gdbarch_data was originally needed.
4990 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4991 and use passed in obstack.
4992 (libunwind_frame_set_descr): Should no longer get back NULL from
4993 gdbarch_data.
4994 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4995 type.
4996 * user-regs.c (user_regs_init): Update parameters, and use passed
4997 in obstack.
4998 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4999 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5000
d8cc8af6
TV
50012020-07-06 Tom de Vries <tdevries@suse.de>
5002
5003 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5004 End-Of-Sequence in lte_is_less_than.
5005 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5006 "gdb: Don't reorder line table entries too much when sorting".
5007
947f7597
TV
50082020-07-06 Tom de Vries <tdevries@suse.de>
5009
5010 PR tui/26205
5011 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5012
1e7c1b22
TV
50132020-07-05 Tom de Vries <tdevries@suse.de>
5014
5015 PR build/26187
5016 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5017 std::uncaught_exceptions instead of deprecated
5018 std::uncaught_exception.
5019
a36158ec
SM
50202020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * macroexp.h (macro_stringify): Return
5023 gdb::unique_xmalloc_ptr<char>.
5024 * macroexp.c (macro_stringify): Likewise.
5025 * macrotab.c (fixup_definition): Update.
5026
14d960c8
SM
50272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5030 (lex_one_token): Update.
5031 * macroexp.c (struct macro_buffer) <release>: Return
5032 gdb::unique_xmalloc_ptr<char>.
5033 (macro_stringify): Update.
5034 (macro_expand): Update.
5035 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5036 * macroexp.h (macro_expand_next): Likewise.
5037
211d5b1c
SM
50382020-07-02 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * macroexp.h (macro_lookup_ftype): Remove.
5041 (macro_expand, macro_expand_once, macro_expand_next): Remove
5042 lookup function parameters, add scope parameter.
5043 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5044 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5045 * macroscope.h (standard_macro_lookup): Change parameter type
5046 to macro_scope.
5047 * macroscope.c (standard_macro_lookup): Likewise.
5048 * c-exp.y (lex_one_token): Update.
5049 * macrocmd.c (macro_expand_command): Likewise.
5050 (macro_expand_once_command): Likewise.
5051
b1a35af2
SM
50522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5053
5054 * inf-loop.c (inferior_event_handler): Remove client_data param.
5055 * inf-loop.h (inferior_event_handler): Likewise.
5056 * infcmd.c (step_1): Adjust.
5057 * infrun.c (proceed): Adjust.
5058 (fetch_inferior_event): Remove client_data param.
5059 (infrun_async_inferior_event_handler): Adjust.
5060 * infrun.h (fetch_inferior_event): Remove `void *` param.
5061 * linux-nat.c (handle_target_event): Adjust.
5062 * record-btrace.c (record_btrace_handle_async_inferior_event):
5063 Adjust.
5064 * record-full.c (record_full_async_inferior_event_handler):
5065 Adjust.
5066 * remote.c (remote_async_inferior_event_handler): Adjust.
5067
1cdf9e33
TT
50682020-07-01 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5071 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5072
32c1e210
TT
50732020-07-01 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5076 tui_gen_win_info.
5077 (tui_win_info::make_window): Merge with
5078 tui_gen_win_info::make_window.
5079 (tui_win_info::make_visible): Move from tui_gen_win_info.
5080 * tui/tui-win.c (tui_win_info::max_width): Move from
5081 tui_gen_win_info.
5082 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5083 type.
5084 <window_factory>: Likewise.
5085 * tui/tui-layout.c (tui_win_info::resize): Move from
5086 tui_gen_win_info.
5087 (make_standard_window): Change return type.
5088 (get_locator_window, tui_get_window_by_name): Likewise.
5089 (tui_layout_window::apply): Remove a cast.
5090 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5091 (struct tui_win_info): Merge with tui_gen_win_info.
5092 (struct tui_gen_win_info): Remove.
5093
a30cb6da
TT
50942020-07-01 Tom Tromey <tom@tromey.com>
5095
5096 * tui/tui-stack.h (struct tui_locator_window): Derive from
5097 tui_win_info.
5098 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5099 <can_box>: New method.
5100
1eb2161f
TT
51012020-07-01 Tom Tromey <tom@tromey.com>
5102
5103 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5104
7134f2eb
TT
51052020-07-01 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-regs.c (tui_data_window::display_registers_from)
5108 (tui_data_window::display_registers_from)
5109 (tui_data_window::first_data_item_displayed)
5110 (tui_data_window::delete_data_content_windows): Update.
5111 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5112 Remove.
5113 (tui_data_window::check_register_values): Update.
5114 (tui_data_item_window::rerender): Add parameters. Update.
5115 (tui_data_item_window::refresh_window): Remove.
5116 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5117 virtual.
5118 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5119 tui_gen_win_info.
5120 <refresh_window, max_height, min_height>: Remove.
5121 <rerender>: Add parameters.
5122 <x, y, visible>: New members.
5123 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5124 <m_item_width>: New member.
5125
22b7b041
TT
51262020-07-01 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-regs.c (tui_data_window::show_register_group)
5129 (tui_data_window::check_register_values): Update.
5130 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5131 from item_no.
5132
c9753adb
TT
51332020-07-01 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5136 useless "if".
5137
9ab26b4a
TT
51382020-07-01 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5141 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5142
e555083f
TT
51432020-07-01 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5146 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5147 (struct tui_line_or_address): Move from tui-data.h.
5148 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5149 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5150 (tui_cmd_window, tui_source_window_base, tui_source_window)
5151 (tui_disasm_window): Don't declare.
5152 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5153 to tui-winsource.h.
5154 (SINGLE_KEY): Move to tui-stack.c.
5155
7a02bab7
TT
51562020-07-01 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5159 std::string.
5160 * tui/tui-regs.c (class tab_expansion_file): New.
5161 (tab_expansion_file::write): New method.
5162 (tui_register_format): Change return type. Use
5163 tab_expansion_file.
5164 (tui_get_register, tui_data_window::display_registers_from)
5165 (tui_data_item_window::rerender): Update.
5166 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5167 * tui/tui-io.c (tui_expand_tabs): Remove.
5168
ea68593b
TT
51692020-07-01 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5172
a8caed5d
FS
51732020-07-01 Fangrui Song <maskray@google.com>
5174
5175 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5176
9cdf9820
AKS
51772020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5178
5179 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5180 forms for DW_AT_associated and DW_AT_allocated attributes,
5181 which is already checked in function attr_to_dynamic_prop.
5182
a1520ad8
TT
51832020-06-30 Tom Tromey <tromey@adacore.com>
5184
5185 * dwarf2/read.c (quirk_rust_enum): Correctly call
5186 alloc_rust_variant for default-less enum.
5187
5ac58899
TT
51882020-06-30 Tom Tromey <tromey@adacore.com>
5189
5190 PR build/26183:
5191 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5192 gdb::to_string.
5193
19b187a9
SM
51942020-06-29 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5197 * gdbarch.h: Re-generate.
5198
cd4c4c07
TT
51992020-06-28 Tom Tromey <tom@tromey.com>
5200
5201 * command.h (cmd_types): Remove.
5202 (cmd_type): Don't declare.
5203 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5204 typedef.
5205 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5206 * cli/cli-decode.c (cmd_type): Remove.
5207
05779d57
PA
52082020-06-27 Pedro Alves <palves@redhat.com>
5209
5210 * fork-child.c (prefork_hook): Adjust.
5211 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5212 Delete.
5213 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5214 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5215 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5216 Remove declarations.
5217 (struct inferior) <set_tty, tty>: New methods.
5218 (struct inferior) <terminal>: Rename to ...
5219 (struct inferior) <m_terminal>: ... this and make private.
5220 * main.c (captured_main_1): Adjust.
5221 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5222 (mi_cmd_inferior_tty_show): Adjust.
5223 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5224 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5225
1776e3e5
NA
52262020-06-26 Nick Alcock <nick.alcock@oracle.com>
5227
5228 * configure.ac: Add --enable-libctf: handle --disable-static
5229 properly.
5230 * acinclude.m4: sinclude ../config/enable.m4.
5231 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5232 (LIBCTF): Substitute in.
5233 (CTF_DEPS): New, likewise.
5234 (CLIBS): libctf needs symbols from libbfd: move earlier.
5235 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5236 flags.
5237 * ctfread.c: Surround in ENABLE_LIBCTF.
5238 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5239 * configure: Regenerate.
5240 * config.in: Likewise.
5241
58373b80
SM
52422020-06-25 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5245
277474ee
SM
52462020-06-25 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * inferior.h (struct inferior) <terminal>: Change type to
5249 gdb::unique_xmalloc_ptr<char>.
5250 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5251 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5252 field, adjust to unique pointer.
5253 (get_inferior_io_terminal): Adjust to unique pointer.
5254
6d74da72
AB
52552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5258 registers, not just the known core set of registers.
5259
2e52d038
AB
52602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5263 fflags, frm, and fcsr registers.
5264 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5265 restore groups.
5266 (riscv_tdesc_unknown_reg): New function.
5267 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5268 tdesc_use_registers.
5269 * riscv-tdep.h (struct gdbarch_tdep): Add
5270 unknown_csrs_first_regnum, unknown_csrs_count,
5271 duplicate_fflags_regnum, duplicate_frm_regnum, and
5272 duplicate_fcsr_regnum fields.
5273
be64fd07
AB
52742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5275
5276 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5277 callback, use the callback (when not null) to help number unknown
5278 registers.
5279 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5280 (tdesc_use_registers): Add extra parameter to declaration.
5281
3b9fce96
AB
52822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5285 in the file.
5286 (class riscv_pending_register_alias): Likewise.
5287 (riscv_register_feature::register_info): Change 'required_p' field
5288 to 'required', and change its type. Add 'check' member function.
5289 (riscv_register_feature::register_info::check): Define new member
5290 function.
5291 (riscv_xreg_feature): Change initialisation of 'required' field.
5292 (riscv_freg_feature): Likewise.
5293 (riscv_virtual_feature): Likewise.
5294 (riscv_csr_feature): Likewise.
5295 (riscv_check_tdesc_feature): Take extra parameter, the csr
5296 tdesc_feature, rewrite the function to use the new
5297 riscv_register_feature::register_info::check function.
5298 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5299
865bad26
AB
53002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * features/Makefile: Remove all references to the deleted files
5303 below.
5304 * features/riscv/32bit-csr.c: Deleted.
5305 * features/riscv/32bit-csr.xml: Deleted.
5306 * features/riscv/64bit-csr.c: Deleted.
5307 * features/riscv/64bit-csr.xml: Deleted.
5308 * features/riscv/rebuild-csr-xml.sh: Deleted.
5309
ed69cbc8
AB
53102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5313 whitespace error for declaration of names member variable.
5314 (struct riscv_register_feature): Add new prefer_first_name member
5315 variable, and fix whitespace error in declaration of registers.
5316 (riscv_xreg_feature): Initialize prefer_first_name field.
5317 (riscv_freg_feature): Likewise.
5318 (riscv_virtual_feature): Likewise.
5319 (riscv_csr_feature): Likewise.
5320 (riscv_register_name): Expand on comments. Remove register name
5321 modifications for CSR and virtual registers.
5322
4445e8f5
AB
53232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5326 errors.
5327
767a879e
AB
53282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5329
5330 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5331 riscv-opc.h.
5332 (class riscv_pending_register_alias): New class.
5333 (riscv_check_tdesc_feature): Take vector of pending aliases and
5334 populate it as appropriate.
5335 (riscv_setup_register_aliases): Delete.
5336 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5337 to riscv_check_tdesc_feature in all cases. Use the vector to
5338 create the register aliases.
5339
bb6e55f3
RO
53402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5341
5342 * sol2-tdep.c (sol2_static_transform_name): Remove.
5343 (sol2_init_abi): Don't register it.
5344 * gdbarch.sh (static_transform_name): Remove.
5345 * gdbarch.c, gdbarch.h: Regenerate.
5346
5347 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5348 gdbarch_static_transform_name.
5349 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5350 * stabsread.c (define_symbol) <'X'>: Remove.
5351 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5352 handling.
5353 <'V'>: Likewise.
5354 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5355 <'S'>: Remove call to gdbarch_static_transform_name.
5356
c6d36836
RO
53572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5358
5359 * procfs.c (procfs_pre_trace): New function.
5360 (procfs_target::create_inferior): Pass it to fork_inferior.
5361
a7e6196b
RO
53622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5363
5364 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5365 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5366 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5367 sol2-tdep.o, sparc-sol2-tdep.o.
5368 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5369 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5370 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5371 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5372
d412e696
RO
53732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5374
5375 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5376 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5377 Call sol2_init_abi.
5378 Remove calls to set_gdbarch_skip_solib_resolver,
5379 set_gdbarch_core_pid_to_str.
5380 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5381 (i386_sol2_static_transform_name): Remove.
5382 (i386_sol2_init_abi): Call sol2_init_abi.
5383 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5384 set_gdbarch_static_transform_name,
5385 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5386 Use sol2_sigtramp_p.
5387 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5388 (sol2_sigtramp_p): New function.
5389 (sol2_static_transform_name): New function.
5390 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5391 (sol2_init_abi): New function.
5392 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5393 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5394 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5395 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5396 (sparc_sol2_static_transform_name): Remove.
5397 (sparc32_sol2_init_abi): Call sol2_init_abi.
5398 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5399 set_gdbarch_static_transform_name,
5400 set_gdbarch_skip_solib_resolver,
5401 set_gdbarch_core_pid_to_str.
5402 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5403 (sparc_sol2_static_transform_name): Remove
5404 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5405 call sol2_sigtramp_p.
5406 (sparc64_sol2_init_abi): Call sol2_init_abi.
5407 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5408 set_gdbarch_static_transform_name,
5409 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5410
a8654e7d
PW
54112020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5412
5413 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5414 * exec.c (validate_exec_file): If from_tty, set both
5415 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5416 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5417 and from_tty, unconditionally ask a confirmation.
5418
caa7fd04
AB
54192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * target-descriptions.c (tdesc_architecture_name): Protect against
5422 NULL pointer dereference.
5423 (maint_print_xml_tdesc_cmd): New function.
5424 (_initialize_target_descriptions): Register new 'maint print
5425 xml-tdesc' command and give it the filename completer.
5426 * NEWS: Mention new 'maint print xml-tdesc' command.
5427
fbf42f4e
AB
54282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * target-descriptions.c (class tdesc_compatible_info): New class.
5431 (struct target_desc): Change type of compatible vector.
5432 (tdesc_compatible_p): Update for change in type of
5433 target_desc::compatible.
5434 (tdesc_compatible_info_list): New function.
5435 (tdesc_compatible_info_arch_name): New function.
5436 (tdesc_add_compatible): Update for change in type of
5437 target_desc::compatible.
5438 (print_c_tdesc::visit_pre): Likewise.
5439
20821f4e
AB
54402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5443 whitespace to underscore.
5444 (maint_print_c_tdesc_cmd): Use fake filename for target
5445 descriptions that came from the target.
5446 (_initialize_target_descriptions): Add filename command completion
5447 for 'maint print c-tdesc'.
5448
1fb5ee62
SM
54492020-06-23 Simon Marchi <simon.marchi@efficios.com>
5450
5451 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5452 lines.
5453
fc3ecb3e
SM
54542020-06-23 Simon Marchi <simon.marchi@efficios.com>
5455
5456 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5457 lines.
5458 (dwarf2_find_location_expression): Likewise.
5459 (call_site_parameter_matches): Likewise.
5460 (dwarf2_compile_expr_to_ax): Likewise.
5461 (disassemble_dwarf_expression): Likewise.
5462 (loclist_describe_location): Likewise.
5463
236ef034
PA
54642020-06-23 Pedro Alves <palves@redhat.com>
5465
5466 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5467 progspace-and-thread.h. Include scoped-mock-context.h instead.
5468 (register_to_value_test): Use scoped_mock_context.
5469 * regcache.c: Include "scoped-mock-context.h".
5470 (cooked_read_test): Don't error out if a target is already pushed.
5471 Use scoped_mock_context. Adjust.
5472 * scoped-mock-context.h: New file.
5473
39e7ecca
AB
54742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5477 initializer.
5478 (ada_language::is_string_type_p): New member function.
5479 * c-lang.c (c_language_data): Delete la_is_string_type_p
5480 initializer.
5481 (cplus_language_data): Likewise.
5482 (asm_language_data): Likewise.
5483 (minimal_language_data): Likewise.
5484 * d-lang.c (d_language_data): Likewise.
5485 * f-lang.c (f_is_string_type_p): Delete function, implementation
5486 moved to f_language::is_string_type_p.
5487 (f_language_data): Delete la_is_string_type_p initializer.
5488 (f_language::is_string_type_p): New member function,
5489 implementation from f_is_string_type_p.
5490 * go-lang.c (go_is_string_type_p): Delete function, implementation
5491 moved to go_language::is_string_type_p.
5492 (go_language_data): Delete la_is_string_type_p initializer.
5493 (go_language::is_string_type_p): New member function,
5494 implementation from go_is_string_type_p.
5495 * language.c (language_defn::is_string_type_p): Define new member
5496 function.
5497 (default_is_string_type_p): Make static, add comment copied from
5498 header file.
5499 (unknown_language_data): Delete la_is_string_type_p initializer.
5500 (unknown_language::is_string_type_p): New member function.
5501 (auto_language_data): Delete la_is_string_type_p initializer.
5502 (auto_language::is_string_type_p): New member function.
5503 * language.h (language_data): Delete la_is_string_type_p field.
5504 (language_defn::is_string_type_p): Declare new function.
5505 (default_is_string_type_p): Delete desclaration, move comment to
5506 definition.
5507 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5508 moved to m2_language::is_string_type_p.
5509 (m2_language_data): Delete la_is_string_type_p initializer.
5510 (m2_language::is_string_type_p): New member function,
5511 implementation from m2_is_string_type_p.
5512 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5513 initializer.
5514 * opencl-lang.c (opencl_language_data): Likewise.
5515 * p-lang.c (pascal_is_string_type_p): Delete function,
5516 implementation moved to pascal_language::is_string_type_p.
5517 (pascal_language_data): Delete la_is_string_type_p initializer.
5518 (pascal_language::is_string_type_p): New member function,
5519 implementation from pascal_is_string_type_p.
5520 * rust-lang.c (rust_is_string_type_p): Delete function,
5521 implementation moved to rust_language::is_string_type_p.
5522 (rust_language_data): Delete la_is_string_type_p initializer.
5523 (rust_language::is_string_type_p): New member function,
5524 implementation from rust_is_string_type_p.
5525 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5526 is_string_type_p.
5527
4ffc13fb
AB
55282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * ada-lang.c (ada_language_data): Delete la_print_typedef
5531 initializer.
5532 (ada_language::print_typedef): New member function.
5533 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5534 (cplus_language_data): Likewise.
5535 (asm_language_data): Likewise.
5536 (minimal_language_data): Likewise.
5537 * d-lang.c (d_language_data): Likewise.
5538 * f-lang.c (f_language_data): Likewise.
5539 (f_language::print_typedef): New member function.
5540 * go-lang.c (go_language_data): Delete la_print_typedef
5541 initializer.
5542 * language.c (language_defn::print_typedef): Define member
5543 function.
5544 (unknown_language_data): Delete la_print_typedef initializer.
5545 (unknown_language::print_typedef): New member function.
5546 (auto_language_data): Delete la_print_typedef initializer.
5547 (auto_language::print_typedef): New member function.
5548 * language.h (language_data): Delete la_print_typedef field.
5549 (language_defn::print_typedef): Declare new member function.
5550 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5551 (default_print_typedef): Delete declaration.
5552 * m2-lang.c (m2_language_data): Delete la_print_typedef
5553 initializer.
5554 (m2_language::print_typedef): New member function.
5555 * objc-lang.c (objc_language_data): Delete la_print_typedef
5556 initializer.
5557 * opencl-lang.c (opencl_language_data): Likewise.
5558 * p-lang.c (pascal_language_data): Likewise.
5559 (pascal_language::print_typedef): New member function.
5560 * rust-lang.c (rust_print_typedef): Delete function,
5561 implementation moved to rust_language::print_typedef.
5562 (rust_language): Delete la_print_typedef initializer.
5563 (rust_language::print_typedef): New member function,
5564 implementation from rust_print_typedef.
5565 * typeprint.c (default_print_typedef): Delete.
5566
d711ee67
AB
55672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5570 (ada_language::printstr): New member function.
5571 * c-lang.c (c_language_data): Delete la_printstr initializer.
5572 (cplus_language_data): Likewise.
5573 (asm_language_data): Likewise.
5574 (minimal_language_data): Likewise.
5575 * d-lang.c (d_language_data): Likewise.
5576 * f-lang.c (f_printstr): Rename to f_language::printstr.
5577 (f_language_data): Delete la_printstr initializer.
5578 (f_language::printstr): New member function, implementation from
5579 f_printstr.
5580 * go-lang.c (go_language_data): Delete la_printstr initializer.
5581 * language.c (language_defn::printstr): Define new member
5582 function.
5583 (unk_lang_printstr): Delete.
5584 (unknown_language_data): Delete la_printstr initializer.
5585 (unknown_language::printstr): New member function.
5586 (auto_language_data): Delete la_printstr initializer.
5587 (auto_language::printstr): New member function.
5588 * language.h (language_data): Delete la_printstr field.
5589 (language_defn::printstr): Declare new member function.
5590 (LA_PRINT_STRING): Update call to printstr.
5591 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5592 (m2_language_data): Delete la_printstr initializer.
5593 (m2_language::printstr): New member function, implementation from
5594 m2_printstr.
5595 * objc-lang.c (objc_language_data): Delete la_printstr
5596 initializer.
5597 * opencl-lang.c (opencl_language_data): Likewise.
5598 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5599 (pascal_language_data): Delete la_printstr initializer.
5600 (pascal_language::printstr): New member function, implementation
5601 from pascal_printstr.
5602 * p-lang.h (pascal_printstr): Delete declaration.
5603 * rust-lang.c (rust_printstr): Update header comment.
5604 (rust_language_data): Delete la_printstr initializer.
5605 (rust_language::printstr): New member function.
5606
52b50f2c
AB
56072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5608
5609 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5610 (ada_language::printchar): New member function.
5611 * c-lang.c (c_language_data): Delete la_printchar initializer.
5612 (cplus_language_data): Likewise.
5613 (asm_language_data): Likewise.
5614 (minimal_language_data): Likewise.
5615 * d-lang.c (d_language_data): Likewise.
5616 * f-lang.c (f_printchar): Rename to f_language::printchar.
5617 (f_language_data): Delete la_printchar initializer.
5618 (f_language::printchar): New member function, implementation from
5619 f_printchar.
5620 * go-lang.c (go_language_data): Delete la_printchar initializer.
5621 * language.c (unk_lang_printchar): Delete.
5622 (language_defn::printchar): Define new member function.
5623 (unknown_language_data): Delete la_printchar initializer.
5624 (unknown_language::printchar): New member function.
5625 (auto_language_data): Delete la_printchar initializer.
5626 (auto_language::printchar): New member function.
5627 * language.h (language_data): Delete la_printchar field.
5628 (language_defn::printchar): Declare new member function.
5629 (LA_PRINT_CHAR): Update call to printchar.
5630 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5631 (m2_language::printchar): New member function.
5632 * objc-lang.c (objc_language_data): Delete la_printchar
5633 initializer.
5634 * opencl-lang.c (opencl_language_data): Likewise.
5635 * p-lang.c (pascal_language_data): Delete la_printchar
5636 initializer.
5637 (pascal_language::printchar): New member function.
5638 * rust-lang.c (rust_printchar): Rename to
5639 rust_language::printchar.
5640 (rust_language_data): Delete la_printchar initializer.
5641 (rust_language::printchar): New member function, implementation
5642 from rust_printchar.
5643
ec8cec5b
AB
56442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5647 (ada_language_data): Delete la_emitchar initializer.
5648 (ada_language::emitchar): New member function, implementation from
5649 emit_char.
5650 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5651 (cplus_language_data): Likewise.
5652 (asm_language_data): Likewise.
5653 (minimal_language_data): Likewise.
5654 * d-lang.c (d_language_data): Likewise.
5655 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5656 (f_language_data): Delete la_emitchar initializer.
5657 (f_language::emitchar): New member function, implementation from
5658 f_emit_char.
5659 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5660 * language.c (unk_lang_emit_char): Delete.
5661 (language_defn::emitchar): New member function definition.
5662 (unknown_language_data): Delete la_emitchar initializer.
5663 (unknown_language::emitchar): New member function.
5664 (auto_language_data): Delete la_emitchar initializer.
5665 (auto_language::emitchar): New member function.
5666 * language.h (language_data): Delete la_emitchar field.
5667 (language_defn::emitchar): New member field declaration.
5668 (LA_EMIT_CHAR): Update call to emitchar.
5669 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5670 (m2_language_data): Delete la_emitchar initializer.
5671 (m2_language::emitchar): New member function, implementation from
5672 m2_emit_char.
5673 * objc-lang.c (objc_language_data): Delete la_emitchar
5674 initializer.
5675 * opencl-lang.c (opencl_language_data): Likewise.
5676 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5677 (pascal_language_data): Delete la_emitchar initializer.
5678 (pascal_language::emitchar): New member function, implementation
5679 from pascal_emit_char.
5680 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5681 (rust_language_data): Delete la_emitchar initializer.
5682 (rust_language::emitchar): New member function, implementation
5683 from rust_emitchar.
5684
1bf9c363
AB
56852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5688 (ada_language_data): Delete la_post_parser initializer.
5689 (ada_language::post_parser): New member function.
5690 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5691 (cplus_language_data): Likewise.
5692 (asm_language_data): Likewise.
5693 (minimal_language_data): Likewise.
5694 * d-lang.c (d_language_data): Likewise.
5695 * f-lang.c (f_language_data): Likewise.
5696 * go-lang.c (go_language_data): Likewise.
5697 * language.c (unknown_language_data): Likewise.
5698 (auto_language_data): Likewise.
5699 * language.h (language_data): Delete la_post_parser field.
5700 (language_defn::post_parser): New member function.
5701 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5702 * objc-lang.c (objc_language_data): Likewise.
5703 * opencl-lang.c (opencl_language_data): Likewise.
5704 * p-lang.c (pascal_language_data): Likewise.
5705 * parse.c (parse_exp_in_context): Update call to post_parser.
5706 (null_post_parser): Delete definition.
5707 * parser-defs.h (null_post_parser): Delete declaration.
5708 * rust-lang.c (rust_language_data): Delete la_post_parser
5709 initializer.
5710
87afa652
AB
57112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * ada-lang.c (parse): Rename to ada_language::parser.
5714 (ada_language_data): Delete la_parser initializer.
5715 (ada_language::parser): New member function, implementation from
5716 parse.
5717 * c-lang.c (c_language_data): Delete la_parser initializer.
5718 (cplus_language_data): Likewise.
5719 (asm_language_data): Likewise.
5720 (minimal_language_data): Likewise.
5721 * d-lang.c (d_language_data): Likewise.
5722 (d_language::parser): New member function.
5723 * f-lang.c (f_language_data): Delete la_parser initializer.
5724 (f_language::parser): New member function.
5725 * go-lang.c (go_language_data): Delete la_parser initializer.
5726 (go_language::parser): New member function.
5727 * language.c (unk_lang_parser): Delete.
5728 (language_defn::parser): Define new member function.
5729 (unknown_language_data): Delete la_parser initializer.
5730 (unknown_language::parser): New member function.
5731 (auto_language_data): Delete la_parser initializer.
5732 (auto_language::parser): New member function.
5733 * language.h (language_data): Delete la_parser field.
5734 (language_defn::parser): Declare new member function.
5735 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5736 (m2_language::parser): New member function.
5737 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5738 * opencl-lang.c (opencl_language_data): Likewise.
5739 * p-lang.c (pascal_language_data): Likewise.
5740 (pascal_language::parser): New member function.
5741 * parse.c (parse_exp_in_context): Update call to parser.
5742 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5743 (rust_language::parser): New member function.
5744
37825800
AB
57452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 * top.c (print_gdb_configuration): Print --with-python-libdir
5748 configuration value.
5749
5b860c93
PW
57502020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5751
5752 * NEWS: Mention change to the alias command.
5753
cf00cd6f
PW
57542020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5755
5756 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5757 (alias_command_completer)
5758 (make_alias_options_def_group): New functions.
5759 (alias_opts, alias_option_defs): New struct and array.
5760 (alias_usage_error): Update usage.
5761 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5762 Use option framework.
5763 (_initialize_cli_cmds): Update alias command help.
5764 Update aliases command help.
5765 (show_user):
5766 Add NULL for new default_args lookup_cmd argument.
5767 (valid_command_p): Rename to validate_aliased_command.
5768 Add NULL for new default_args lookup_cmd argument. Verify that the
5769 aliased_command has no default args.
5770 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5771 (lookup_cmd_1, lookup_cmd): New argument default_args.
5772 (add_alias_cmd):
5773 Add NULL for new default_args lookup_cmd argument.
5774 (print_help_for_command): Show default args under the layout
5775 alias some_alias = some_aliased_cmd some_alias_default_arg.
5776 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5777 xfree default_args in destructor.
5778 * cli/cli-script.c (process_next_line, do_define_command):
5779 Add NULL for new default_args lookup_cmd argument.
5780 * command.h: Declare new default_args argument in lookup_cmd
5781 and lookup_cmd_1.
5782 * completer.c (complete_line_internal_1):
5783 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5784 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5785 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5786 Likewise.
5787 * infcmd.c (_initialize_infcmd): Likewise.
5788 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5789 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5790 * python/py-param.c (add_setshow_generic): Likewise.
5791 * remote.c (_initialize_remote): Likewise.
5792 * top.c (execute_command): Prepend default_args if command has some.
5793 (set_verbose):
5794 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5795 * tracepoint.c (validate_actionline, encode_actions_1):
5796 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5797
bd920864
TBA
57982020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5799
5800 * jit.c (jit_read_descriptor): Use bool as the return type.
5801 (jit_breakpoint_re_set_internal): Use bool as the return type.
5802 Invert the return value logic; return true if the jit breakpoint
5803 has been successfully initialized.
5804 (jit_inferior_init): Update the call to
5805 jit_breakpoint_re_set_internal.
5806
f8098322
PA
58072020-06-22 Pedro Alves <palves@redhat.com>
5808
5809 PR gdb/25939
5810 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5811 Use the current inferior instead. Don't return
5812 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5813 wait again.
5814 * sol-thread.c (sol_thread_target::wait): Don't reference
5815 inferior_ptid.
5816 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5817 (sol_update_thread_list_callback): Use the current inferior's pid
5818 instead of inferior_ptid.
5819
196535a6
RO
58202020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5821
5822 * procfs.c: Cleanup many comments.
5823
5824 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5825 (AFTER_WATCHFLAG): Replace by value.
5826
5827 (MAIN_PROC_NAME_FORMAT): Inline ...
5828 (create_procinfo): ... here.
5829
5830 (procfs_debug_inferior): Remove SYS_exec handling.
5831 (syscall_is_exec): Likewise.
5832 (procfs_set_exec_trap): Likewise.
5833
5834 (syscall_is_lwp_exit): Inline in callers.
5835 (syscall_is_exit): Likewise.
5836 (syscall_is_exec): Likewise.
5837 (syscall_is_lwp_create): Likewise.
5838
5839 (invalidate_cache): Remove #if 0 code.
5840
5841 (make_signal_thread_runnable): Remove.
5842 (procfs_target::resume): Remove #if 0 code.
5843
cf6f3e86
RO
58442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845
5846 PR gdb/25939
5847 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5848 call ...
5849 (procfs_target::create_inferior): ... here.
5850
48e9cc84
PW
58512020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5852
5853 * exec.c (validate_exec_file): Ensure the build-id is up to
5854 date by calling reopen_exec_file (that checks file timestamp
5855 to decide to re-read the file).
5856
3922b302
PA
58572020-06-18 Pedro Alves <palves@redhat.com>
5858
5859 PR gdb/25412
5860 * gdbthread.h (delete_thread, delete_thread_silent)
5861 (find_thread_ptid): Update comments.
5862 * thread.c (current_thread_): New global.
5863 (is_current_thread): Move higher, and reimplement.
5864 (inferior_thread): Reimplement.
5865 (set_thread_exited): Use bool. Add assertions.
5866 (add_thread_silent): Simplify thread-reuse handling by always
5867 calling delete_thread.
5868 (delete_thread): Remove intro comment.
5869 (find_thread_ptid): Skip exited threads.
5870 (switch_to_thread_no_regs): Write to current_thread_.
5871 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5872 INFERIOR_PTID. Clear current_thread_.
5873
6dbdab44
PA
58742020-06-18 Pedro Alves <palves@redhat.com>
5875
5876 * aix-thread.c (pd_update): Use switch_to_thread.
5877
2da4b788
PA
58782020-06-18 Pedro Alves <palves@redhat.com>
5879
5880 * ravenscar-thread.c (ravenscar_thread_target): Update.
5881 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5882 (ravenscar_thread_target::add_active_thread): ... this. Don't
5883 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5884 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5885
50838d1b
PA
58862020-06-18 Pedro Alves <palves@redhat.com>
5887
5888 * nat/windows-nat.c (current_windows_thread): Remove.
5889 * nat/windows-nat.h (current_windows_thread): Remove.
5890 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5891 Adjust.
5892 (display_selectors): Adjust to fetch the current
5893 windows_thread_info based on inferior_ptid.
5894 (fake_create_process): No longer write to current_windows_thread.
5895 (windows_nat_target::get_windows_debug_event):
5896 Don't set inferior_ptid or current_windows_thread.
5897 (windows_nat_target::wait): Adjust to not rely on
5898 current_windows_thread.
5899 (do_initial_windows_stuff): Now a method of windows_nat_target.
5900 Switch to the last_ptid thread.
5901 (windows_nat_target::attach): Adjust.
5902 (windows_nat_target::detach): Use switch_to_no_thread instead of
5903 writing to inferior_ptid directly.
5904 (windows_nat_target::create_inferior): Adjust.
5905
31ce04e9
PA
59062020-06-18 Pedro Alves <palves@redhat.com>
5907
5908 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5909
1ee1a363
PA
59102020-06-18 Pedro Alves <palves@redhat.com>
5911
5912 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5913 after creating it, instead of writing to inferior_ptid. Don't
5914 write to inferior_ptid.
5915
6d350754
PA
59162020-06-18 Pedro Alves <palves@redhat.com>
5917
5918 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5919
5d971d48
PA
59202020-06-18 Pedro Alves <palves@redhat.com>
5921
5922 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5923 it, instead of writing to inferior_ptid.
5924
86e57d1b
PA
59252020-06-18 Pedro Alves <palves@redhat.com>
5926
5927 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5928 to inferior_ptid.
5929
f2e1c129
PA
59302020-06-18 Pedro Alves <palves@redhat.com>
5931
5932 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5933 instead of writing to inferior_ptid directly.
5934
60db1b85
PA
59352020-06-18 Pedro Alves <palves@redhat.com>
5936
5937 * corelow.c (core_target::close): Use switch_to_no_thread instead
5938 of writing to inferior_ptid directly.
5939 (add_to_thread_list, core_target_open): Use switch_to_thread
5940 instead of writing to inferior_ptid directly.
5941
fe7d6a8d
PA
59422020-06-18 Pedro Alves <palves@redhat.com>
5943
5944 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5945 inferior_ptid.
5946 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5947 inferior_ptid.
5948 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5949 inferior_ptid directly.
5950 (darwin_nat_target::init_thread_list): Switch to thread, instead
5951 of writing to inferior_ptid.
5952 (darwin_nat_target::attach): Don't write to inferior_ptid.
5953 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5954
975f8708
PA
59552020-06-18 Pedro Alves <palves@redhat.com>
5956
5957 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5958 thread.
5959 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5960 Instead use switch_to_thread.
5961 (gnu_nat_target::detach): Use switch_to_no_thread
5962 instead of writing to inferior_ptid directly. Used passed-in
5963 inferior instead of looking up the inferior by pid.
5964
1a204730
PA
59652020-06-18 Pedro Alves <palves@redhat.com>
5966
5967 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5968 inferior_ptid.
5969
ebe84f23
PA
59702020-06-18 Pedro Alves <palves@redhat.com>
5971
5972 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5973 inferior_ptid.
5974 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5975 thread.
5976 (nto_procfs_target::detach): Avoid referencing
5977 inferior_ptid. Use switch_to_no_thread instead of writing to
5978 inferior_ptid directly.
5979 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5980 instead of writing to inferior_ptid directly.
5981 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5982 to thread.
5983
191f02e5
PA
59842020-06-18 Pedro Alves <palves@redhat.com>
5985
5986 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5987 after creating it, instead of writing to inferior_ptid.
5988 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5989 to inferior_ptid directly.
5990 (gdbsim_target::wait): Don't write to inferior_ptid.
5991
0ac55310
PA
59922020-06-18 Pedro Alves <palves@redhat.com>
5993
5994 * remote.c (remote_target::remote_notice_new_inferior): Use
5995 switch_to_thread instead of writing to inferior_ptid directly.
5996 (remote_target::add_current_inferior_and_thread): Use
5997 switch_to_no_thread instead of writing to inferior_ptid directly.
5998 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5999 and switch_to_thread instead of using set_current_inferior or
6000 writing to inferior_ptid directly.
6001
5233f39b
PA
60022020-06-18 Pedro Alves <palves@redhat.com>
6003
6004 * tracectf.c (ctf_target_open): Switch to added thread instead of
6005 writing to inferior_ptid directly.
6006 (ctf_target::close): Use switch_to_no_thread instead of writing to
6007 inferior_ptid directly.
6008
087e161b
PA
60092020-06-18 Pedro Alves <palves@redhat.com>
6010
6011 * tracefile-tfile.c (tfile_target_open): Don't write to
6012 inferior_ptid directly, instead switch to added thread.
6013 (tfile_target::close): Use switch_to_no_thread instead of writing
6014 to inferior_ptid directly.
6015
7fb43e53
PA
60162020-06-18 Pedro Alves <palves@redhat.com>
6017
6018 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6019 (procfs_target::detach): Use switch_to_no_thread
6020 instead of writing to inferior_ptid directly.
6021 (do_attach): Change return type to void. Switch to the added
6022 thread.
6023 (procfs_target::create_inferior): Switch to the added thread.
6024 (procfs_do_thread_registers): Don't write to inferior_ptid.
6025
18493a00
PA
60262020-06-18 Pedro Alves <palves@redhat.com>
6027
6028 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6029 of writing to inferior_ptid.
6030 (scoped_restore_exited_inferior): Delete.
6031 (handle_vfork_child_exec_or_exit): Simplify using
6032 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6033 instead of writing to inferior_ptid.
6034 (THREAD_STOPPED_BY): Delete.
6035 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6036 (thread_stopped_by_hw_breakpoint): Delete.
6037 (save_waitstatus): Use
6038 scoped_restore_current_thread+switch_to_thread, and call
6039 target_stopped_by_watchpoint instead of
6040 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6041 instead of thread_stopped_by_sw_breakpoint, and
6042 target_stopped_by_hw_breakpoint instead of
6043 thread_stopped_by_hw_breakpoint.
6044 (handle_inferior_event)
6045 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6046 inferior_ptid directly, nor
6047 set_current_inferior/set_current_program_space. Use
6048 switch_to_thread / switch_to_inferior_no_thread instead.
6049
a0776b13
PA
60502020-06-18 Pedro Alves <palves@redhat.com>
6051
6052 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6053 instead of writing to inferior_ptid.
6054
6155c136
PA
60552020-06-18 Pedro Alves <palves@redhat.com>
6056
6057 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6058 added thread.
6059 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6060 to the added thread.
6061 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6062 instead of writing to inferior_ptid.
6063
c5316fc6
PA
60642020-06-18 Pedro Alves <palves@redhat.com>
6065
6066 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6067 (register_to_value_test): Mock a program_space too. Heap-allocate
6068 the address space. Don't write to inferior_ptid. Use
6069 switch_to_thread instead.
6070
8df01799
PA
60712020-06-18 Pedro Alves <palves@redhat.com>
6072
6073 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6074 Delete.
6075 (find_signalled_thread()): New, factored out from
6076 linux_make_corefile_notes and adjusted to handle exited threads.
6077 (linux_make_corefile_notes): Adjust to use the new
6078 find_signalled_thread.
6079
41792d68
PA
60802020-06-18 Pedro Alves <palves@redhat.com>
6081
6082 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6083 of saving/restoring inferior_ptid.
6084
612f258a
TT
60852020-06-17 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6088 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6089 declare.
6090 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6091
efb763a5
SM
60922020-06-15 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6095 of partial symtabs.
6096
2951f6c0
SM
60972020-06-17 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * regformats/reg-arm.dat: Remove.
6100 * regformats/reg-bfin.dat: Remove.
6101 * regformats/reg-cris.dat: Remove.
6102 * regformats/reg-crisv32.dat: Remove.
6103 * regformats/reg-m32r.dat: Remove.
6104 * regformats/reg-tilegx.dat: Remove.
6105 * regformats/reg-tilegx32.dat: Remove.
6106
7d458ea5
SM
61072020-06-17 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * features/Makefile (WHICH): Remove arm files.
6110 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6111 * regformats/arm/arm-with-neon.dat: Remove.
6112 * regformats/arm/arm-with-vfpv2.dat: Remove.
6113 * regformats/arm/arm-with-vfpv3.dat: Remove.
6114
3af96c0d
SM
61152020-06-17 Simon Marchi <simon.marchi@efficios.com>
6116
6117 * features/Makefile (XMLTOC): Remove rx.xml.
6118
b25e22fd
PA
61192020-06-17 Pedro Alves <palves@redhat.com>
6120
6121 * gdbthread.h (thread_control_state) <trap_expected> Update
6122 comments.
6123
a78a19b1
AB
61242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6125
6126 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6127 ada_language::lookup_symbol_nonlocal.
6128 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6129 (ada_language::lookup_symbol_nonlocal): New member function,
6130 implementation from ada_lookup_symbol_nonlocal.
6131 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6132 initializer.
6133 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6134 initializer.
6135 (cplus_language::lookup_symbol_nonlocal): New member function.
6136 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6137 (minimal_language_data) Likewise.
6138 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6139 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6140 initializer.
6141 (d_language::lookup_symbol_nonlocal): New member function.
6142 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6143 initializer.
6144 (f_language::lookup_symbol_nonlocal): New member function.
6145 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6146 initializer.
6147 * language.c (unknown_language_data): Likewise.
6148 (auto_language_data): Likewise.
6149 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6150 field.
6151 (language_defn::lookup_symbol_nonlocal): New member function.
6152 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6153 initializer.
6154 * objc-lang.c (objc_language_data): Likewise.
6155 * opencl-lang.c (opencl_language_data): Likewise.
6156 * p-lang.c (pascal_language_data): Likewise.
6157 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6158 rust_language::lookup_symbol_nonlocal.
6159 (rust_language_data): Delete la_lookup_symbol_nonlocal
6160 initializer.
6161 (rust_language::lookup_symbol_nonlocal): New member function,
6162 implementation from rust_lookup_symbol_nonlocal.
6163 * symtab.c (lookup_symbol_aux): Update call to
6164 lookup_symbol_nonlocal.
6165 (basic_lookup_symbol_nonlocal): Rename to...
6166 (language_defn::lookup_symbol_nonlocal): ...this, and update
6167 header comment. Remove language_defn parameter, and replace with
6168 uses of `this'.
6169 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6170
ebe2334e
AB
61712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6172
6173 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6174 initializer.
6175 (ada_language::value_print_inner): New member function.
6176 * c-lang.c (c_language_data): Delete la_value_print_inner
6177 initializer.
6178 (cplus_language_data): Likewise.
6179 (asm_language_data): Likewise.
6180 (minimal_language_data): Likewise.
6181 * d-lang.c (d_language_data): Likewise.
6182 (d_language::value_print_inner): New member function.
6183 * f-lang.c (f_language_data): Delete la_value_print_inner
6184 initializer.
6185 (f_language::value_print_inner): New member function.
6186 * f-lang.h (f_value_print_innner): Rename to...
6187 (f_value_print_inner): ...this (note spelling of 'inner').
6188 * f-valprint.c (f_value_print_innner): Rename to...
6189 (f_value_print_inner): ...this (note spelling of 'inner').
6190 * go-lang.c (go_language_data): Delete la_value_print_inner
6191 initializer.
6192 (go_language::value_print_inner): New member function.
6193 * language.c (language_defn::value_print_inner): Define new member
6194 function.
6195 (unk_lang_value_print_inner): Delete.
6196 (unknown_language_data): Delete la_value_print_inner initializer.
6197 (unknown_language::value_print_inner): New member function.
6198 (auto_language_data): Delete la_value_print_inner initializer.
6199 (auto_language::value_print_inner): New member function.
6200 * language.h (language_data): Delete la_value_print_inner field.
6201 (language_defn::value_print_inner): Delcare new member function.
6202 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6203 initializer.
6204 (m2_language::value_print_inner): New member function.
6205 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6206 initializer.
6207 * opencl-lang.c (opencl_language_data): Likewise.
6208 * p-lang.c (pascal_language_data): Likewise.
6209 (pascal_language::value_print_inner): New member function.
6210 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6211 initializer.
6212 (rust_language::value_print_inner): New member function.
6213 * valprint.c (do_val_print): Update call to value_print_inner.
6214
a1d1fa3e
AB
62152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6216
6217 * ada-lang.c (ada_language_data): Delete la_value_print
6218 initializer.
6219 (ada_language::value_print): New member function.
6220 * c-lang.c (c_language_data): Delete la_value_print initializer.
6221 (cplus_language_data): Likewise.
6222 (asm_language_data): Likewise.
6223 (minimal_language_data): Likewise.
6224 * d-lang.c (d_language_data): Likewise.
6225 * f-lang.c (f_language_data): Likewise.
6226 * go-lang.c (go_language_data): Likewise.
6227 * language.c (unk_lang_value_print): Delete.
6228 (language_defn::value_print): Define new member function.
6229 (unknown_language_data): Delete la_value_print initializer.
6230 (unknown_language::value_print): New member function.
6231 (auto_language_data): Delete la_value_print initializer.
6232 (auto_language::value_print): New member function.
6233 * language.h (language_data): Delete la_value_print field.
6234 (language_defn::value_print): Declare new member function.
6235 (LA_VALUE_PRINT): Update call to value_print.
6236 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6237 * objc-lang.c (objc_language_data): Likewise.
6238 * opencl-lang.c (opencl_language_data): Likewise.
6239 * p-lang.c (pascal_language_data): Likewise.
6240 (pascal_language::value_print): New member function.
6241 * rust-lang.c (rust_language_data): Delete la_value_print
6242 initializer.
6243
f16a9f57
AB
62442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6245
6246 * ada-lang.c (ada_watch_location_expression): Rename to
6247 ada_language::watch_location_expression.
6248 (ada_language_data): Delete la_watch_location_expression
6249 initializer.
6250 (ada_language::watch_location_expression): New member function,
6251 implementation from ada_watch_location_expression.
6252 * breakpoint.c (watch_command_1): Update call to
6253 watch_location_expression.
6254 * c-lang.c (c_watch_location_expression): Rename to
6255 language_defn::watch_location_expression.
6256 (c_language_data): Delete la_watch_location_expression
6257 initializer.
6258 (cplus_language_data): Likewise.
6259 (asm_language_data): Likewise.
6260 (minimal_language_data): Likewise.
6261 * c-lang.h (c_watch_location_expression): Delete declaration.
6262 * d-lang.c (d_language_data): Delete la_watch_location_expression
6263 initializer.
6264 * f-lang.c (f_language_data): Likewise.
6265 * go-lang.c (go_language_data): Likewise.
6266 * language.c (language_defn::watch_location_expression): Member
6267 function implementation from c_watch_location_expression.
6268 (unknown_language_data): Delete la_watch_location_expression
6269 initializer.
6270 (auto_language_data): Likewise.
6271 * language.h (language_data): Delete la_watch_location_expression
6272 field.
6273 (language_defn::watch_location_expression): Declare new member
6274 function.
6275 * m2-lang.c (m2_language_data): Delete
6276 la_watch_location_expression initializer.
6277 * objc-lang.c (objc_language_data): Likewise.
6278 * opencl-lang.c (opencl_language_data): Likewise.
6279 * p-lang.c (pascal_language_data): Likewise.
6280 * rust-lang.c (rust_watch_location_expression): Rename to
6281 rust_language::watch_location_expression.
6282 (rust_language_data): Delete la_watch_location_expression
6283 initializer.
6284 (rust_language::watch_location_expression): New member function,
6285 implementation from rust_watch_location_expression.
6286
7e56227d
AB
62872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6288
6289 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6290 ada_language::collect_symbol_completion_matches.
6291 (ada_language_data): Delete la_collect_symbol_completion_matches
6292 initializer.
6293 (ada_language::collect_symbol_completion_matches): New member
6294 function, implementation from
6295 ada_collect_symbol_completion_matches.
6296 * c-lang.c (c_language_data): Delete
6297 la_collect_symbol_completion_matches initializer.
6298 (cplus_language_data): Likewise.
6299 (asm_language_data): Likewise.
6300 (minimal_language_data): Likewise.
6301 * d-lang.c (d_language_data): Likewise.
6302 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6303 f_language::collect_symbol_completion_matches.
6304 (f_language_data): Delete la_collect_symbol_completion_matches
6305 initializer.
6306 (f_language::collect_symbol_completion_matches) New member
6307 function, implementation from f_collect_symbol_completion_matches.
6308 * go-lang.c (go_language_data): Delete
6309 la_collect_symbol_completion_matches initializer.
6310 * language.c (unknown_language_data): Likewise.
6311 (auto_language_data): Likewise.
6312 * language.h (language_data): Delete
6313 la_collect_symbol_completion_matches field.
6314 (language_defn::collect_symbol_completion_matches): New member
6315 function.
6316 * m2-lang.c (m2_language_data): Delete
6317 la_collect_symbol_completion_matches initializer.
6318 * objc-lang.c (objc_language_data): Likewise.
6319 * opencl-lang.c (opencl_language_data): Likewise.
6320 * p-lang.c (pascal_language_data): Likewise.
6321 * rust-lang.c (rust_language_data): Likewise.
6322 * symtab.c (default_collect_symbol_completion_matches): Delete.
6323 (collect_symbol_completion_matches): Update call to
6324 collect_symbol_completion_matches.
6325 (collect_symbol_completion_matches_type): Likewise.
6326 * symtab.h (default_collect_symbol_completion_matches): Delete
6327 declaration.
6328
53fc67f8
AB
63292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6332 (ada_language_data): Delete la_word_break_characters initializer.
6333 (ada_language::word_break_characters): New member function.
6334 * c-lang.c (c_language_data): Delete la_word_break_characters
6335 initializer.
6336 (cplus_language_data): Likewise.
6337 (asm_language_data): Likewise.
6338 (minimal_language_data): Likewise.
6339 * completer.c: Update global comment.
6340 (advance_to_expression_complete_word_point): Update call to
6341 word_break_characters.
6342 (complete_files_symbols): Likewise.
6343 (complete_line_internal_1): Likewise.
6344 (default_completer_handle_brkchars): Likewise.
6345 (skip_quoted_chars): Likewise.
6346 * d-lang.c (d_language_data): Delete la_word_break_characters
6347 initializer.
6348 * f-lang.c (f_word_break_characters): Delete.
6349 (f_language_data): Delete la_word_break_characters initializer.
6350 (f_language::word_break_characters): New member function.
6351 * go-lang.c (go_language_data): Delete la_word_break_characters
6352 initializer.
6353 * language.c (unknown_language_data): Likewise.
6354 (auto_language_data): Likewise.
6355 * language.h (default_word_break_characters): Move declaration to
6356 earlier in the file.
6357 (language_data): Delete la_word_break_characters field.
6358 (language_defn::word_break_characters): New member function.
6359 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6360 initializer.
6361 * objc-lang.c (objc_language_data): Likewise.
6362 * opencl-lang.c (opencl_language_data): Likewise.
6363 * p-lang.c (pascal_language_data): Likewise.
6364 * rust-lang.c (rust_language_data): Likewise.
6365
c9debfb9
AB
63662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6367
6368 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6369 (ada_language_data): Delete la_get_symbol_name_matcher
6370 initializer.
6371 (language_defn::get_symbol_name_matcher_inner): New member
6372 function.
6373 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6374 initializer.
6375 (cplus_language_data): Likewise.
6376 (cplus_language::get_symbol_name_matcher_inner): New member
6377 function.
6378 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6379 (minimal_language_data): Likewise.
6380 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6381 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6382 initializer.
6383 * dictionary.c (iter_match_first_hashed): Update call to
6384 get_symbol_name_matcher.
6385 (iter_match_next_hashed): Likewise.
6386 (iter_match_next_linear): Likewise.
6387 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6388 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6389 initializer.
6390 (f_language::get_symbol_name_matcher_inner): New member function.
6391 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6392 initializer.
6393 * language.c (default_symbol_name_matcher): Update header comment,
6394 make static.
6395 (language_defn::get_symbol_name_matcher): New definition.
6396 (language_defn::get_symbol_name_matcher_inner): Likewise.
6397 (get_symbol_name_matcher): Delete.
6398 (unknown_language_data): Delete la_get_symbol_name_matcher
6399 initializer.
6400 (auto_language_data): Likewise.
6401 * language.h (language_data): Delete la_get_symbol_name_matcher
6402 field.
6403 (language_defn::get_symbol_name_matcher): New member function.
6404 (language_defn::get_symbol_name_matcher_inner): Likewise.
6405 (default_symbol_name_matcher): Delete declaration.
6406 * linespec.c (find_methods): Update call to
6407 get_symbol_name_matcher.
6408 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6409 initializer.
6410 * minsyms.c (lookup_minimal_symbol): Update call to
6411 get_symbol_name_matcher.
6412 (iterate_over_minimal_symbols): Likewise.
6413 * objc-lang.c (objc_language_data): Delete
6414 la_get_symbol_name_matcher initializer.
6415 * opencl-lang.c (opencl_language_data): Likewise.
6416 * p-lang.c (pascal_language_data): Likewise.
6417 * psymtab.c (psymbol_name_matches): Update call to
6418 get_symbol_name_matcher.
6419 * rust-lang.c (rust_language_data): Delete
6420 la_get_symbol_name_matcher initializer.
6421 * symtab.c (symbol_matches_search_name): Update call to
6422 get_symbol_name_matcher.
6423 (compare_symbol_name): Likewise.
6424
9a49ad8c
AB
64252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * ada-lang.c (ada_language_data): Delete la_compute_program
6428 initializer.
6429 * c-lang.c (c_language_data): Likewise.
6430 (c_language::compute_program): New member function.
6431 (cplus_language_data): Delete la_compute_program initializer.
6432 (cplus_language::compute_program): New member function.
6433 (asm_language_data): Delete la_compute_program initializer.
6434 (minimal_language_data): Likewise.
6435 * c-lang.h (c_compute_program): Update comment.
6436 (cplus_compute_program): Likewise.
6437 * compile/compile-c-support.c (c_compute_program): Likewise.
6438 (cplus_compute_program): Likewise.
6439 * compile/compile.c (compile_to_object): Update call to
6440 la_compute_program.
6441 * d-lang.c (d_language_data): Delete la_compute_program
6442 initializer.
6443 * f-lang.c (f_language_data): Likewise.
6444 * go-lang.c (go_language_data): Likewise.
6445 * language.c (unknown_language_data): Likewise.
6446 (auto_language_data): Likewise.
6447 * language.h (language_data): Delete la_compute_program field.
6448 (language_defn::compute_program): New member function.
6449 * m2-lang.c (m2_language_data): Delete la_compute_program
6450 initializer.
6451 * objc-lang.c (objc_language_data): Likewise.
6452 * opencl-lang.c (opencl_language_data): Likewise.
6453 * p-lang.c (pascal_language_data): Likewise.
6454 * rust-lang.c (rust_language_data): Likewise.
6455
eff93b4d
AB
64562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * ada-lang.c (ada_language_data) Delete
6459 la_class_name_from_physname initializer.
6460 * c-lang.c (c_language_data): Likewise.
6461 (cplus_language_data): Likewise.
6462 (cplus_language::class_name_from_physname): New member function.
6463 (asm_language_data): Delete la_class_name_from_physname
6464 initializer.
6465 (minimal_language_data): Likewise.
6466 * d-lang.c (d_language_data): Likewise.
6467 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6468 method on language_defn class.
6469 (guess_full_die_structure_name): Likewise.
6470 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6471 initializer.
6472 * go-lang.c (go_language_data): Likewise.
6473 * language.c (language_class_name_from_physname): Delete.
6474 (unk_lang_class_name): Delete.
6475 (unknown_language_data): Delete la_class_name_from_physname
6476 initializer.
6477 (auto_language_data): Likewise.
6478 * language.h (language_data): Delete la_class_name_from_physname
6479 field.
6480 (language_defn::class_name_from_physname): New function.
6481 (language_class_name_from_physname): Delete declaration.
6482 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6483 initializer.
6484 * objc-lang.c (objc_language_data): Likewise.
6485 * opencl-lang.c (opencl_language_data): Likewise.
6486 * p-lang.c (pascal_language_data): Likewise.
6487 * rust-lang.c (rust_language_data): Likewise.
6488
de543742
TT
64892020-06-16 Tom Tromey <tom@tromey.com>
6490
6491 * tui/tui-data.h (STATUS_NAME): New macro.
6492 * tui/tui-layout.c (tui_remove_some_windows)
6493 (initialize_known_windows, tui_register_window)
6494 (tui_layout_split::remove_windows, initialize_layouts)
6495 (tui_new_layout_command): Don't use hard-coded window names.
6496
a350efd4
TT
64972020-06-16 Tom Tromey <tom@tromey.com>
6498
6499 PR tui/25348:
6500 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6501 tui_initialize_readline. Only run once. Call rl_initialize.
6502 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6503 tui_initialize_readline.
6504 * tui/tui-io.c (tui_setup_io): Call
6505 tui_ensure_readline_initialized.
6506 * tui/tui-interp.c (tui_interp::init): Update.
6507
39ec0490
TT
65082020-06-16 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6511 Also preserve the status window.
6512
d2d1ea20
TT
65132020-06-16 Tom Tromey <tom@tromey.com>
6514
6515 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6516 where m_window==nullptr.
6517
66920317
TT
65182020-06-15 Tom Tromey <tromey@adacore.com>
6519
6520 * windows-nat.c (windows_nat::handle_output_debug_string):
6521 Update.
6522 (windows_nat::handle_ms_vc_exception): Update.
6523 * target.h (target_read_string): Change API.
6524 * target.c (target_read_string): Change API.
6525 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6526 Update.
6527 * solib-frv.c (frv_current_sos): Update.
6528 * solib-dsbt.c (dsbt_current_sos): Update.
6529 * solib-darwin.c (darwin_current_sos): Update.
6530 * linux-thread-db.c (inferior_has_bug): Update.
6531 * expprint.c (print_subexp_standard): Update.
6532 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6533 (ada_exception_message_1): Update.
6534
a5d871dd
TT
65352020-06-15 Tom Tromey <tromey@adacore.com>
6536
6537 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6538
670e35fa
TT
65392020-06-15 Tom Tromey <tromey@adacore.com>
6540
6541 * valprint.c (read_string): Update comment.
6542 * target.c (MIN): Remove.
6543 (target_read_string): Rewrite.
6544
f5272a3b
TT
65452020-06-15 Tom Tromey <tromey@adacore.com>
6546
6547 * corefile.c (read_memory_string): Remove.
6548 * ada-valprint.c (ada_value_print_ptr): Update.
6549 * ada-lang.h (ada_tag_name): Change return type.
6550 * ada-lang.c (type_from_tag): Update.
6551 (ada_tag_name_from_tsd): Change return type. Use
6552 target_read_string.
6553 (ada_tag_name): Likewise.
6554 * gdbcore.h (read_memory_string): Don't declare.
6555
2c074f49
HD
65562020-06-14 Hannes Domani <ssbssa@yahoo.de>
6557
6558 * symtab.c (rbreak_command): Ignore Windows drive colon.
6559
6a17d503
SM
65602020-06-12 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * NEWS: Mention removed GDBserver host support.
6563
453c733f
NC
65642020-06-12 Nelson Chu <nelson.chu@sifive.com>
6565
6566 * features/riscv/rebuild-csr-xml.sh: Updated.
6567
2b4e6a3f
TT
65682020-06-11 Tom Tromey <tom@tromey.com>
6569
6570 PR gdb/18318:
6571 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6572
4412332f
JG
65732020-06-09 Jonny Grant <jg@jguk.org>
65742020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6575
6576 * main.c (captured_main_1): Don't print new line after help.
6577 (print_gdb_help): add mailing list and IRC channel information
6578 to --help. Add new lines between items in the footer. Remove
6579 quotes around bug url.
6580
2f33032a
KS
65812020-06-11 Keith Seitz <keiths@redhat.com>
6582
6583 PR gdb/21356
6584 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6585 Resolve typedefs for type length calculations.
6586
7ab96794
TV
65872020-06-10 Tom de Vries <tdevries@suse.de>
6588
6589 PR ada/24713
6590 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6591 (write_psymbols): Enable .gdb_index for ada.
6592 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6593 ada.
6594
e5f3ece2
TV
65952020-06-10 Tom de Vries <tdevries@suse.de>
6596
6597 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6598 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6599 namei" instead of "const char *name" argument.
6600 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6601 dw2_symtab_iter_init.
6602
940da03e
SM
66032020-06-08 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6606 to use type::field and field::type instead.
6607
b6cdac4b
SM
66082020-06-08 Simon Marchi <simon.marchi@efficios.com>
6609
6610 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6611 to use field::type instead.
6612
5d14b6e5
SM
66132020-06-08 Simon Marchi <simon.marchi@efficios.com>
6614
6615 * gdbtypes.h (struct field) <type, set_type>: New methods.
6616 Rename `type` field to...
6617 <m_type>: ... this. Change references throughout to use type or
6618 set_type methods.
6619 (FIELD_TYPE): Use field::type. Change call sites that modify
6620 the field's type to use field::set_type instead.
6621
3d967001
SM
66222020-06-08 Simon Marchi <simon.marchi@efficios.com>
6623
6624 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6625 to use type::index_type instead.
6626
262abc0d
SM
66272020-06-08 Simon Marchi <simon.marchi@efficios.com>
6628
6629 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6630 methods.
6631 (TYPE_INDEX_TYPE): Use type::index_type.
6632 * gdbtypes.c (create_array_type_with_stride): Likewise.
6633
82836c92
TT
66342020-06-07 Tom Tromey <tom@tromey.com>
6635
6636 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6637 parameter.
6638 (generic_value_print): Update.
6639
940dace9
AB
66402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 Revert commit 982a38f60b0.
6643 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6644
982a38f6
AB
66452020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6646
6647 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6648 avoid use after free.
6649
82f06518
TV
66502020-06-05 Tom de Vries <tdevries@suse.de>
6651
6652 * NEWS: Fix typos.
6653
f8c41851
SM
66542020-06-04 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6657 the per_bfd object.
6658 (dwarf2_read_debug_names): Likewise.
6659 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6660 object when re-using a per_bfd object with an index.
6661
f9b5d5ea
TV
66622020-06-03 Tom de Vries <tdevries@suse.de>
6663
6664 PR symtab/26046
6665 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6666 children for C++.
6667 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6668 DW_TAG_subprogram.
6669
f6eee2d0
AB
66702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * ada-lang.c (ada_language_data): Delete skip_trampoline
6673 initializer.
6674 * c-lang.c (c_language_data): Likewise.
6675 (cplus_language_data): Likewise.
6676 (cplus_language::skip_trampoline): New member function.
6677 (asm_language_data): Delete skip_trampoline initializer.
6678 (minimal_language_data): Likewise.
6679 * d-lang.c (d_language_data): Likewise.
6680 * f-lang.c (f_language_data): Likewise.
6681 * go-lang.c (go_language_data): Likewise.
6682 * language.c (unk_lang_trampoline): Delete function.
6683 (skip_language_trampoline): Update.
6684 (unknown_language_data): Delete skip_trampoline initializer.
6685 (auto_language_data): Likewise.
6686 * language.h (language_data): Delete skip_trampoline field.
6687 (language_defn::skip_trampoline): New function.
6688 * m2-lang.c (m2_language_data): Delete skip_trampoline
6689 initializer.
6690 * objc-lang.c (objc_skip_trampoline): Delete function, move
6691 implementation to objc_language::skip_trampoline.
6692 (objc_language_data): Delete skip_trampoline initializer.
6693 (objc_language::skip_trampoline): New member function with
6694 implementation from objc_skip_trampoline.
6695 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6696 initializer.
6697 * p-lang.c (pascal_language_data): Likewise.
6698 * rust-lang.c (rust_language_data): Likewise.
6699
0a50df5d
AB
67002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6703 (ada_language::demangle): New member function.
6704 * c-lang.c (c_language_data): Delete la_demangle initializer.
6705 (cplus_language_data): Delete la_demangle initializer.
6706 (cplus_language::demangle): New member function.
6707 (asm_language_data): Delete la_demangle initializer.
6708 (minimal_language_data): Delete la_demangle initializer.
6709 * d-lang.c (d_language_data): Delete la_demangle initializer.
6710 (d_language::demangle): New member function.
6711 * f-lang.c (f_language_data): Delete la_demangle initializer.
6712 (f_language::demangle): New member function.
6713 * go-lang.c (go_language_data): Delete la_demangle initializer.
6714 (go_language::demangle): New member function.
6715 * language.c (language_demangle): Update.
6716 (unk_lang_demangle): Delete.
6717 (unknown_language_data): Delete la_demangle initializer.
6718 (unknown_language::demangle): New member function.
6719 (auto_language_data): Delete la_demangle initializer.
6720 (auto_language::demangle): New member function.
6721 * language.h (language_data): Delete la_demangle field.
6722 (language_defn::demangle): New function.
6723 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6724 * objc-lang.c (objc_language_data): Delete la_demangle
6725 initializer.
6726 (objc_language::demangle): New member function.
6727 * opencl-lang.c (opencl_language_data): Delete la_demangle
6728 initializer.
6729 * p-lang.c (pascal_language_data): Likewise.
6730 * rust-lang.c (rust_language_data): Likewise.
6731 (rust_language::demangle): New member function.
6732
fbfb0a46
AB
67332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6734
6735 * ada-lang.c (ada_language_data): Delete la_print_type
6736 initializer.
6737 (ada_language::print_type): New member function.
6738 * c-lang.c (c_language_data): Delete la_print_type initializer.
6739 (c_language::print_type): New member function.
6740 (cplus_language_data): Delete la_print_type initializer.
6741 (cplus_language::print_type): New member function.
6742 (asm_language_data): Delete la_print_type initializer.
6743 (asm_language::print_type): New member function.
6744 (minimal_language_data): Delete la_print_type initializer.
6745 (minimal_language::print_type): New member function.
6746 * d-lang.c (d_language_data): Delete la_print_type initializer.
6747 (d_language::print_type): New member function.
6748 * f-lang.c (f_language_data): Delete la_print_type initializer.
6749 (f_language::print_type): New member function.
6750 * go-lang.c (go_language_data): Delete la_print_type initializer.
6751 (go_language::print_type): New member function.
6752 * language.c (unk_lang_print_type): Delete.
6753 (unknown_language_data): Delete la_print_type initializer.
6754 (unknown_language::print_type): New member function.
6755 (auto_language_data): Delete la_print_type initializer.
6756 (auto_language::print_type): New member function.
6757 * language.h (language_data): Delete la_print_type field.
6758 (language_defn::print_type): New function.
6759 (LA_PRINT_TYPE): Update.
6760 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6761 (m2_language::print_type): New member function.
6762 * objc-lang.c (objc_language_data): Delete la_print_type
6763 initializer.
6764 (objc_language::print_type): New member function.
6765 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6766 to opencl_language::print_type.
6767 (opencl_language_data): Delete la_print_type initializer.
6768 (opencl_language::print_type): New member function, implementation
6769 from opencl_print_type.
6770 * p-lang.c (pascal_language_data): Delete la_print_type
6771 initializer.
6772 (pascal_language::print_type): New member function.
6773 * rust-lang.c (rust_print_type): Delete, implementation moved to
6774 rust_language::print_type.
6775 (rust_language_data): Delete la_print_type initializer.
6776 (rust_language::print_type): New member function, implementation
6777 from rust_print_type.
6778
6f827019
AB
67792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6782 implementation moves to...
6783 (ada_language::sniff_from_mangled_name): ...here. Update return
6784 type.
6785 (ada_language_data): Delete la_sniff_from_mangled_name
6786 initializer.
6787 * c-lang.c (c_language_data): Likewise.
6788 (cplus_language_data): Likewise.
6789 (cplus_language::sniff_from_mangled_name): New member function,
6790 implementation taken from gdb_sniff_from_mangled_name.
6791 (asm_language_data): Delete la_sniff_from_mangled_name
6792 initializer.
6793 (minimal_language_data): Likewise.
6794 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6795 implementation moves to cplus_language::sniff_from_mangled_name.
6796 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6797 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6798 moves to...
6799 (d_language::sniff_from_mangled_name): ...here.
6800 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6801 * f-lang.c (f_language_data): Likewise.
6802 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6803 moves to...
6804 (go_language::sniff_from_mangled_name): ...here.
6805 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6806 * language.c (language_sniff_from_mangled_name): Delete.
6807 (unknown_language_data): Delete la_sniff_from_mangled_name
6808 initializer.
6809 (auto_language_data): Likewise.
6810 * language.h (language_data): Delete la_sniff_from_mangled_name
6811 field.
6812 (language_defn::sniff_from_mangled_name): New function.
6813 (language_sniff_from_mangled_name): Delete declaration.
6814 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6815 field.
6816 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6817 implementation moves to...
6818 (objc_language::sniff_from_mangled_name): ...here.
6819 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6820 * opencl-lang.c (opencl_language_data): Likewise.
6821 * p-lang.c (pascal_language_data): Likewise.
6822 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6823 implementation moves to...
6824 (rust_language::sniff_from_mangled_name): ...here.
6825 (rust_language_data): Delete la_sniff_from_mangled_name
6826 initializer.
6827 * symtab.c (symbol_find_demangled_name): Call
6828 sniff_from_mangled_name member function.
6829
fb8006fd
AB
68302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6833 initializer.
6834 * c-lang.c (c_language_data): Likewise.
6835 (cplus_language_data): Likewise.
6836 (cplus_language::search_name_hash): New member function.
6837 (asm_language_data): Delete la_search_name_hash initializer.
6838 (minimal_language_data): Likewise.
6839 * d-lang.c (d_language_data): Likewise.
6840 * dictionary.c (default_search_name_hash): Rename to...
6841 (language_defn::search_name_hash): ...this.
6842 * f-lang.c (f_language_data): Likewise.
6843 (f_language::search_name_hash): New member function.
6844 * go-lang.c (go_language_data): Delete la_search_name_hash
6845 initializer.
6846 * language.c (unknown_language_data): Likewise.
6847 (auto_language_data): Likewise.
6848 * language.h (struct language_data): Delete la_search_name_hash
6849 field.
6850 (language_defn::search_name_hash): Declare new member function.
6851 (default_search_name_hash): Delete declaration.
6852 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6853 initializer.
6854 * objc-lang.c (objc_language_data): Likewise.
6855 * opencl-lang.c (opencl_language_data): Likewise.
6856 * p-lang.c (pascal_language_data): Likewise.
6857 * rust-lang.c (rust_language_data): Likewise.
6858 * symtab.c (search_name_hash): Update call.
6859
8e25bafe
AB
68602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6863 initializer.
6864 * c-lang.c (class compile_instance): Declare.
6865 (c_language_data): Delete la_get_compile_instance initializer.
6866 (c_language::get_compile_instance): New member function.
6867 (cplus_language_data): Delete la_get_compile_instance initializer.
6868 (cplus_language::get_compile_instance): New member function.
6869 (asm_language_data): Delete la_get_compile_instance initializer.
6870 (minimal_language_data): Likewise.
6871 * c-lang.h (c_get_compile_context): Update comment.
6872 (cplus_get_compile_context): Update comment.
6873 * compile/compile.c (compile_to_object): Update calls, don't rely
6874 on function pointer being NULL.
6875 * d-lang.c (d_language_data): Delete la_get_compile_instance
6876 initializer.
6877 * f-lang.c (f_language_data): Likewise.
6878 * go-lang.c (go_language_data): Likewise.
6879 * language.c (unknown_language_data): Likewise.
6880 (auto_language_data): Likewise.
6881 * language.h (language_data): Delete la_get_compile_instance field.
6882 (language_defn::get_compile_instance): New member function.
6883 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6884 initializer.
6885 * objc-lang.c (objc_language_data): Likewise.
6886 * opencl-lang.c (opencl_language_data): Likewise.
6887 * p-lang.c (pascal_language_data): Likewise.
6888 * rust-lang.c (rust_language_data): Likewise.
6889
4009ee92
AB
68902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6891
6892 * ada-lang.c (ada_add_all_symbols): Update comment.
6893 (ada_iterate_over_symbols): Delete, move implementation to...
6894 (ada_language::iterate_over_symbols): ...here, a new member
6895 function, rewrite to use range based for loop.
6896 (ada_language_data): Delete la_iterate_over_symbols initializer.
6897 * c-lang.c (c_language_data): Likewise.
6898 (cplus_language_data): Likewise.
6899 (asm_language_data): Likewise.
6900 (minimal_language_data): Likewise.
6901 * d-lang.c (d_language_data): Likewise.
6902 * f-lang.c (f_language_data): Likewise.
6903 * go-lang.c (go_language_data): Likewise.
6904 * language.c (unknown_language_data): Likewise.
6905 (auto_language_data): Likewise.
6906 * language.h (language_data): Delete la_iterate_over_symbols field.
6907 (language_defn::iterate_over_symbols): New member function.
6908 (LA_ITERATE_OVER_SYMBOLS): Update.
6909 * linespec.c (iterate_over_all_matching_symtabs): Update.
6910 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6911 initializer.
6912 * objc-lang.c (objc_language_data): Likewise.
6913 * opencl-lang.c (opencl_language_data): Likewise.
6914 * p-lang.c (pascal_language_data): Likewise.
6915 * rust-lang.c (rust_language_data): Likewise.
6916
54f4ca46
AB
69172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6918
6919 * ada-lang.c (ada_language_data): Delete
6920 la_lookup_transparent_type initializer.
6921 * c-lang.c (c_language_data): Likewise.
6922 (cplus_language_data): Likewise.
6923 (cplus_language::lookup_transparent_type): New member function.
6924 (asm_language_data): Delete la_lookup_transparent_type
6925 initializer.
6926 (minimal_language_data): Likewise.
6927 * d-lang.c (d_language_data): Likewise.
6928 * f-lang.c (f_language_data): Likewise.
6929 * go-lang.c (go_language_data): Likewise.
6930 * language.c (unknown_language_data): Likewise.
6931 (auto_language_data): Likewise.
6932 * language.h (struct language_data): Delete
6933 la_lookup_transparent_type field.
6934 (language_defn::lookup_transparent_type): New member function.
6935 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6936 initializer.
6937 * objc-lang.c (objc_language_data): Likewise.
6938 * opencl-lang.c (opencl_language_data): Likewise.
6939 * p-lang.c (pascal_language_data): Likewise.
6940 * rust-lang.c (rust_language_data): Likewise.
6941 * symtab.c (symbol_matches_domain): Update call.
6942
1fb314aa
AB
69432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * ada-lang.c (ada_language_arch_info): Delete function, move
6946 implementation to...
6947 (ada_language::language_arch_info): ...here, a new member
6948 function.
6949 (ada_language_data): Delete la_language_arch_info.
6950 * c-lang.c (c_language_data): Likewise.
6951 (c_language::language_arch_info): New member function.
6952 (cplus_language_arch_info): Delete function, move
6953 implementation to...
6954 (cplus_language::language_arch_info): ...here, a new member
6955 function.
6956 (cplus_language_data): Delete la_language_arch_info.
6957 (asm_language_data): Likewise.
6958 (asm_language::language_arch_info): New member function.
6959 (minimal_language_data): Delete la_language_arch_info.
6960 (minimal_language::language_arch_info): New member function.
6961 * d-lang.c (d_language_arch_info): Delete function, move
6962 implementation to...
6963 (d_language::language_arch_info): ...here, a new member
6964 function.
6965 (d_language_data): Delete la_language_arch_info.
6966 * f-lang.c (f_language_arch_info): Delete function, move
6967 implementation to...
6968 (f_language::language_arch_info): ...here, a new member
6969 function.
6970 (f_language_data): Delete la_language_arch_info.
6971 * go-lang.c (go_language_arch_info): Delete function, move
6972 implementation to...
6973 (go_language::language_arch_info): ...here, a new member
6974 function.
6975 (go_language_data): Delete la_language_arch_info.
6976 * language.c (unknown_language_data): Likewise.
6977 (unknown_language::language_arch_info): New member function.
6978 (auto_language_data): Delete la_language_arch_info.
6979 (auto_language::language_arch_info): New member function.
6980 (language_gdbarch_post_init): Update call to
6981 la_language_arch_info.
6982 * language.h (language_data): Delete la_language_arch_info
6983 function pointer.
6984 (language_defn::language_arch_info): New function.
6985 * m2-lang.c (m2_language_arch_info): Delete function, move
6986 implementation to...
6987 (m2_language::language_arch_info): ...here, a new member
6988 function.
6989 (m2_language_data): Delete la_language_arch_info.
6990 * objc-lang.c (objc_language_arch_info): Delete function, move
6991 implementation to...
6992 (objc_language::language_arch_info): ...here, a new member
6993 function.
6994 (objc_language_data): Delete la_language_arch_info.
6995 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6996 implementation to...
6997 (opencl_language::language_arch_info): ...here, a new member
6998 function.
6999 (opencl_language_data): Delete la_language_arch_info.
7000 * p-lang.c (pascal_language_arch_info): Delete function, move
7001 implementation to...
7002 (pascal_language::language_arch_info): ...here, a new member
7003 function.
7004 (pascal_language_data): Delete la_language_arch_info.
7005 * rust-lang.c (rust_language_arch_info): Delete function, move
7006 implementation to...
7007 (rust_language::language_arch_info): ...here, a new member
7008 function.
7009 (rust_language_data): Delete la_language_arch_info.
7010
48448202
AB
70112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7014 initializer.
7015 * c-lang.c (c_language_data): Likewise.
7016 (cplus_language_data): Likewise.
7017 (cplus_language::pass_by_reference_info): New method.
7018 (asm_language_data): Delete la_pass_by_reference initializer.
7019 (minimal_language_data): Likewise.
7020 * cp-abi.c (cp_pass_by_reference): Remove use of
7021 default_pass_by_reference.
7022 * d-lang.c (d_language_data): Likewise.
7023 * f-lang.c (f_language_data): Likewise.
7024 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7025 default_pass_by_reference.
7026 * go-lang.c (go_language_data): Likewise.
7027 * language.c (language_pass_by_reference): Update.
7028 (default_pass_by_reference): Delete.
7029 (unknown_language_data): Delete la_pass_by_reference
7030 initializer.
7031 (auto_language_data): Likewise.
7032 * language.h (struct language_data): Delete la_pass_by_reference
7033 field.
7034 (language_defn::pass_by_reference_info): New member function.
7035 (default_pass_by_reference): Delete declaration.
7036 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7037 initializer.
7038 * objc-lang.c (objc_language_data): Likewise.
7039 * opencl-lang.c (opencl_language_data): Likewise.
7040 * p-lang.c (pascal_language_data): Likewise.
7041 * rust-lang.c (rust_language_data): Likewise.
7042
15e5fd35
AB
70432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * ada-lang.c (ada_read_var_value): Delete function, move
7046 implementation to...
7047 (ada_language::read_var_value): ...here.
7048 (ada_language_data): Delete la_read_var_value initializer.
7049 * c-lang.c (c_language_data): Likewise.
7050 (cplus_language_data): Likewise.
7051 (minimal_language_data): Likewise.
7052 * d-lang.c (d_language_data): Likewise.
7053 * f-lang.c (f_language_data): Likewise.
7054 * findvar.c (default_read_var_value): Rename to...
7055 (language_defn::read_var_value): ...this.
7056 * findvar.c (read_var_value): Update header comment, and change to
7057 call member function instead of function pointer.
7058 * go-lang.c (go_language_data): Likewise.
7059 * language.c (unknown_language_data): Delete la_read_var_value
7060 initializer.
7061 (auto_language_data): Likewise.
7062 * language.h (struct language_data): Delete la_read_var_value
7063 field.
7064 (language_defn::read_var_value): New member function.
7065 (default_read_var_value): Delete declaration.
7066 * m2-lang.c (m2_language_data): Delete la_read_var_value
7067 initializer.
7068 * objc-lang.c (objc_language_data): Likewise.
7069 * opencl-lang.c (opencl_language_data): Likewise.
7070 * p-lang.c (pascal_language_data): Likewise.
7071 * rust-lang.c (rust_language_data): Likewise.
7072 * value.h (default_read_var_value): Delete declaration.
7073
5bd40f2a
AB
70742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * ada-lang.c (ada_print_array_index): Delete function, move
7077 implementation to...
7078 (ada_language::print_array_index): ...here.
7079 (ada_language_data): Delete la_print_array_index initializer.
7080 * c-lang.c (c_language_data): Likewise.
7081 (cplus_language_data): Likewise.
7082 (minimal_language_data): Likewise.
7083 * d-lang.c (d_language_data): Likewise.
7084 * f-lang.c (f_language_data): Likewise.
7085 * go-lang.c (go_language_data): Likewise.
7086 * language.c (default_print_array_index): Delete function, move
7087 implementation to...
7088 (language_defn::print_array_index): ...here.
7089 (unknown_language_data): Delete la_print_array_index initializer.
7090 (auto_language_data): Likewise.
7091 * language.h (struct language_data): Delete la_print_array_index
7092 field.
7093 (language_defn::print_array_index): New member function.
7094 (LA_PRINT_ARRAY_INDEX): Update.
7095 (default_print_array_index): Delete declaration.
7096 * m2-lang.c (m2_language_data): Delete la_print_array_index
7097 initializer.
7098 * objc-lang.c (objc_language_data): Likewise.
7099 * opencl-lang.c (opencl_language_data): Likewise.
7100 * p-lang.c (pascal_language_data): Likewise.
7101 * rust-lang.c (rust_language_data): Likewise.
7102
0874fd07
AB
71032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7104
7105 * gdb/ada-lang.c (ada_language_defn): Convert to...
7106 (ada_language_data): ...this.
7107 (class ada_language): New class.
7108 (ada_language_defn): New static global.
7109 * gdb/c-lang.c (c_language_defn): Convert to...
7110 (c_language_data): ...this.
7111 (class c_language): New class.
7112 (c_language_defn): New static global.
7113 (cplus_language_defn): Convert to...
7114 (cplus_language_data): ...this.
7115 (class cplus_language): New class.
7116 (cplus_language_defn): New static global.
7117 (asm_language_defn): Convert to...
7118 (asm_language_data): ...this.
7119 (class asm_language): New class.
7120 (asm_language_defn): New static global.
7121 (minimal_language_defn): Convert to...
7122 (minimal_language_data): ...this.
7123 (class minimal_language): New class.
7124 (minimal_language_defn): New static global.
7125 * gdb/d-lang.c (d_language_defn): Convert to...
7126 (d_language_data): ...this.
7127 (class d_language): New class.
7128 (d_language_defn): New static global.
7129 * gdb/f-lang.c (f_language_defn): Convert to...
7130 (f_language_data): ...this.
7131 (class f_language): New class.
7132 (f_language_defn): New static global.
7133 * gdb/go-lang.c (go_language_defn): Convert to...
7134 (go_language_data): ...this.
7135 (class go_language): New class.
7136 (go_language_defn): New static global.
7137 * gdb/language.c (unknown_language_defn): Remove declaration.
7138 (current_language): Initialize to nullptr, real initialization is
7139 moved to _initialize_language.
7140 (languages): Delete global.
7141 (language_defn::languages): Define.
7142 (set_language_command): Use language_defn::languages.
7143 (set_language): Likewise.
7144 (range_error): Likewise.
7145 (language_enum): Likewise.
7146 (language_def): Likewise.
7147 (add_set_language_command): Use language_def::languages for the
7148 language list, and language_def to lookup language pointers.
7149 (skip_language_trampoline): Use language_defn::languages.
7150 (unknown_language_defn): Convert to...
7151 (unknown_language_data): ...this.
7152 (class unknown_language): New class.
7153 (unknown_language_defn): New static global.
7154 (auto_language_defn): Convert to...
7155 (auto_language_data): ...this.
7156 (class auto_language): New class.
7157 (auto_language_defn): New static global.
7158 (language_gdbarch_post_init): Use language_defn::languages.
7159 (_initialize_language): Initialize current_language.
7160 * gdb/language.h (struct language_defn): Rename to...
7161 (struct language_data): ...this.
7162 (struct language_defn): New.
7163 (auto_language_defn): Delete.
7164 (unknown_language_defn): Delete.
7165 (minimal_language_defn): Delete.
7166 (ada_language_defn): Delete.
7167 (asm_language_defn): Delete.
7168 (c_language_defn): Delete.
7169 (cplus_language_defn): Delete.
7170 (d_language_defn): Delete.
7171 (f_language_defn): Delete.
7172 (go_language_defn): Delete.
7173 (m2_language_defn): Delete.
7174 (objc_language_defn): Delete.
7175 (opencl_language_defn): Delete.
7176 (pascal_language_defn): Delete.
7177 (rust_language_defn): Delete.
7178 * gdb/m2-lang.c (m2_language_defn): Convert to...
7179 (m2_language_data): ...this.
7180 (class m2_language): New class.
7181 (m2_language_defn): New static global.
7182 * gdb/objc-lang.c (objc_language_defn): Convert to...
7183 (objc_language_data): ...this.
7184 (class objc_language): New class.
7185 (objc_language_defn): New static global.
7186 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7187 (opencl_language_data): ...this.
7188 (class opencl_language): New class.
7189 (opencl_language_defn): New static global.
7190 * gdb/p-lang.c (pascal_language_defn): Convert to...
7191 (pascal_language_data): ...this.
7192 (class pascal_language): New class.
7193 (pascal_language_defn): New static global.
7194 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7195 language pointer, update comment format.
7196 * gdb/rust-lang.c (rust_language_defn): Convert to...
7197 (rust_language_data): ...this.
7198 (class rust_language): New class.
7199 (rust_language_defn): New static global.
7200
1313c56e
AB
72012020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7202
7203 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7204 member variable.
7205 <m_stmt_at_address>: New member variable.
7206 (lnp_state_machine::record_line): Don't record some lines, update
7207 tracking of is_stmt at the same address.
7208 (lnp_state_machine::lnp_state_machine): Initialise new member
7209 variables.
7210
b7ed9f3d
ST
72112020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7212
7213 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7214 "-include gnu-nat-mig.h".
7215 * gnu-nat-mig.h: New file.
7216 * gnu-nat.c: Include "gnu-nat-mig.h".
7217 (exc_server, msg_reply_server, notify_server,
7218 process_reply_server): Remove declarations.
7219
14a8ad62
ST
72202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7221
7222 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7223 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7224 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7225 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7226 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7227 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7228 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7229 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7230 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7231 to gnu_nat_target class.
7232 * gnu-nat.c: Likewise.
7233 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7234 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7235 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7236 object.
7237 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7238 instead of `gnu_target'.
7239
0af5e106
ST
72402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7241
7242 * i386-gnu-tdep.c: Include "gdbcore.h"
7243 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7244 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7245 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7246 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7247 i386_gnu_sigcontext_addr): New functions
7248 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7249 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7250 tdep.
7251
078f2fc9
ST
72522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7253
7254 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7255 before fork_inferior call. Avoid calling it if target_is_pushed returns
7256 true.
7257
53dff92c
ST
72582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7259
7260 * gnu-nat.h (gnu_target): New variable declaration.
7261 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7262 gnu_target.
7263 * gnu-nat.c (gnu_target): New variable.
7264 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7265 add_thread_silent, and add_thread calls.
7266 (gnu_nat_target::create_inferior): Pass gnu_target to
7267 add_thread_silent, thread_change_ptid call.
7268 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7269 call.
7270
5a8b8627
ST
72712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7272
7273 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7274 (gnu_nat_target::find_memory_regions): Remove unused
7275 `old_address' variable.
7276
366f550a
ST
72772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7278
7279 * gnu-nat.c: Include "gdbarch.h".
7280
f14871bf
ST
72812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7282
7283 * reply_mig_hack.awk (Error return): Cast function through
7284 void *, to bypass compiler function call check.
7285
c6887cfb
ST
72862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7287
7288 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7289 $(srcdir)/reply_mig_hack.awk.
7290
6930bffe
ST
72912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7292
7293 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7294
112c22ed
JG
72952020-05-30 Jonny Grant <jg@jguk.org>
7296
7297 * configure.ac (ACX_BUGURL): change bug URL to https.
7298
f68f85b5
PA
72992020-05-30 Pedro Alves <palves@redhat.com>
7300
7301 * cp-support.c (replace_typedefs_template): New.
7302 (replace_typedefs_qualified_name): Handle
7303 DEMANGLE_COMPONENT_TEMPLATE.
7304
976ca316
SM
73052020-05-29 Simon Marchi <simon.marchi@efficios.com>
7306
7307 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7308 dwarf2/index-cache.h, dwarf2/index-write.c,
7309 dwarf2/index-write.h, dwarf2/line-header.c,
7310 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7311 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7312 variables and fields from `dwarf2_per_objfile` to just
7313 `per_objfile` throughout.
7314
989ade05
SM
73152020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7318 <push_dwarf_reg_entry_value>: Add comment.
7319
c47bae85
KB
73202020-05-28 Kevin Buettner <kevinb@redhat.com>
7321 Keith Seitz <keiths@redhat.com>
7322
7323 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7324 instead of PyEval_ReleaseLock.
7325 (class gdbpy_gil): Move to earlier in file.
7326 (finalize_python): Set gdb_python_initialized.
7327 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7328 when not initialized.
7329
44486dcf
SM
73302020-05-28 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7333 <push_dwarf_reg_entry_value>: Remove assert. Override
7334 per_objfile with caller_per_objfile.
7335
f030440d
TV
73362020-05-28 Tom de Vries <tdevries@suse.de>
7337
7338 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7339 PR gold/15646 workaround to symbol kind "type".
7340
f0fbb768
TT
73412020-05-27 Tom Tromey <tromey@adacore.com>
7342
7343 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7344
af0b2a3e
TT
73452020-05-27 Tom Tromey <tromey@adacore.com>
7346
7347 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7348 Use htab_find_with_hash.
7349 <add_abbrev>: Remove "abbrev_number" parameter.
7350 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7351 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7352 (hash_abbrev): Add comment.
7353 (abbrev_table::lookup_abbrev): Move to header file.
7354 (abbrev_table::read): Update.
7355
7d00ffec
TT
73562020-05-27 Tom Tromey <tromey@adacore.com>
7357
7358 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7359 method.
7360 <canonical_name>: New member.
7361 <raw_name>: Rename from "name".
7362 (partial_die_info): Initialize canonical_name.
7363 (scan_partial_symbols): Check raw_name.
7364 (partial_die_parent_scope, partial_die_full_name)
7365 (add_partial_symbol, add_partial_subprogram)
7366 (add_partial_enumeration, load_partial_dies): Use "name" method.
7367 (partial_die_info::name): New method.
7368 (partial_die_info::read, guess_partial_die_structure_name)
7369 (partial_die_info::fixup): Update.
7370
697bba18
TT
73712020-05-27 Tom Tromey <tromey@adacore.com>
7372
7373 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7374 <get_ref_die_offset>: Inline.
7375 <get_ref_die_offset_complaint>: New method.
7376 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7377 (attribute::get_ref_die_offset_complaint): Rename from
7378 get_ref_die_offset. Just issue complaint.
7379
c17ace43
HD
73802020-05-27 Hannes Domani <ssbssa@yahoo.de>
7381
7382 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7383
96445f0b
HD
73842020-05-27 Hannes Domani <ssbssa@yahoo.de>
7385
7386 * exec.c (exec_file_attach): Use errno value of first openp failure.
7387
ac637ec3
HD
73882020-05-27 Hannes Domani <ssbssa@yahoo.de>
7389
7390 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7391 Don't close thread handle.
7392
17ee85fc
TT
73932020-05-27 Tom Tromey <tom@tromey.com>
7394 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7397 shared_ptr.
7398 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7399 member.
7400 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7401 dwarf2_per_bfd_objfile_data_key>: New globals.
7402 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7403 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7404 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7405 shared.
7406 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7407 short-circuit when sharing.
7408 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7409 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7410
39b16f87
SM
74112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7414 to...
7415 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7416 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7417
fcf23d5b
SM
74182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7421 build_name_components, find_name_components_bounds>:
7422 Add per_objfile parameter.
7423 (struct mapped_index) <symbol_name_at>: Likewise.
7424 (struct mapped_debug_names): Remove constructor.
7425 <dwarf2_per_objfile>: Remove field.
7426 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7427 (mapped_index_base::find_name_components_bounds,
7428 mapped_index_base::build_name_components,
7429 dw2_expand_symtabs_matching_symbol): Likewise.
7430 (class mock_mapped_index) <symbol_name_at>: Likewise.
7431 (check_match): Likewise.
7432 (check_find_bounds_finds): Likewise.
7433 (test_mapped_index_find_name_component_bounds): Update.
7434 (CHECK_MATCH): Update.
7435 (dw2_expand_symtabs_matching): Update.
7436 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7437 per_objfile parameter.
7438 <find_vec_in_debug_names>: Likewise.
7439 <m_per_objfile>: New field.
7440 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7441 parameter.
7442 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7443 (dw2_debug_names_iterator::next): Update.
7444 (dw2_debug_names_lookup_symbol): Update.
7445 (dw2_debug_names_expand_symtabs_for_function): Update.
7446 (dw2_debug_names_map_matching_symbols): Update.
7447 (dw2_debug_names_expand_symtabs_matching): Update.
7448 (dwarf2_read_debug_names): Update.
7449
7188ed02
SM
74502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7453 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7454 move to dwarf2_per_objfile.
7455 <read_in_chain>: Remove.
7456 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7457 remove_all_cus, age_comp_units>: New methods.
7458 <m_dwarf2_cus>: New member.
7459 (struct dwarf2_per_cu_data) <cu>: Remove.
7460 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7461 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7462 moved to methods of dwarf2_per_objfile.
7463 (dwarf2_clear_marks): Remove.
7464 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7465 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7466 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7467 (dwarf2_per_objfile::remove_all_cus): New.
7468 (class free_cached_comp_units) <~free_cached_comp_units>:
7469 Update.
7470 (load_cu): Update.
7471 (dw2_do_instantiate_symtab): Adjust.
7472 (fill_in_sig_entry_from_dwo_entry): Adjust.
7473 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7474 (cutu_reader::cutu_reader): Likewise.
7475 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7476 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7477 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7478 and dwarf2_per_objfile::age_comp_units.
7479 (load_partial_comp_unit): Update.
7480 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7481 (process_queue): Likewise.
7482 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7483 backlink.
7484 (dwarf2_read_addr_index): Likewise.
7485 (follow_die_offset): Likewise.
7486 (dwarf2_fetch_die_loc_sect_off): Likewise.
7487 (dwarf2_fetch_constant_bytes): Likewise.
7488 (dwarf2_fetch_die_type_sect_off): Likewise.
7489 (follow_die_sig_1): Likewise.
7490 (load_full_type_unit): Likewise.
7491 (read_signatured_type): Likewise.
7492 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7493 (dwarf2_cu::~dwarf2_cu): Remove.
7494 (dwarf2_per_objfile::get_cu): New.
7495 (dwarf2_per_objfile::set_cu): New.
7496 (age_cached_comp_units): Rename to...
7497 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7498 to std::unordered_map.
7499 (free_one_cached_comp_unit): Rename to...
7500 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7501 to std::unordered_map.
7502 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7503 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7504 a dwarf2_per_objfile in data.
7505 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7506 (dwarf2_clear_marks): Remove.
7507
2e671100
SM
75082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7511 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7512 (init_tu_and_read_dwo_dies): Likewise.
7513 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7514 (cutu_reader::cutu_reader): Likewise.
7515 (load_partial_comp_unit): Likewise.
7516 (process_psymtab_comp_unit): Update.
7517 (build_type_psymtabs_1): Update.
7518 (process_skeletonless_type_unit): Update.
7519 (load_full_comp_unit): Update.
7520 (find_partial_die): Update.
7521 (dwarf2_read_addr_index): Update.
7522 (read_signatured_type): Update.
7523
2e6a9f79
SM
75242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7525
7526 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7527 m_header_read_in>: New fields.
7528 <get_header>: New method.
7529 * dwarf2/read.c (per_cu_header_read_in): Remove.
7530 (dwarf2_per_cu_data::get_header): New.
7531 (dwarf2_per_cu_data::addr_size): Update.
7532 (dwarf2_per_cu_data::offset_size): Update.
7533 (dwarf2_per_cu_data::ref_addr_size): Update.
7534
1b555f17
SM
75352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7538 (dw2_do_instantiate_symtab): Update.
7539 (queue_and_load_all_dwo_tus): Change parameter from
7540 dwarf2_per_cu_data to dwarf2_cu.
7541 (dwarf2_fetch_die_loc_sect_off): Update.
7542 (dwarf2_fetch_constant_bytes): Update.
7543 (dwarf2_fetch_die_type_sect_off): Update.
7544
8fc0b21d
SM
75452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7546
7547 * dwarf2/read.c (process_full_comp_unit,
7548 process_full_type_unit): Remove per_cu, per_objfile paramters.
7549 Add dwarf2_cu parameter.
7550 (process_queue): Update.
7551
168c9250
SM
75522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * dwarf2/read.c (create_cu_from_index_list): Replace
7555 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7556 (create_cus_from_index_list): Likewise.
7557 (create_cus_from_index): Likewise.
7558 (create_signatured_type_table_from_index): Likewise.
7559 (create_cus_from_debug_names_list): Likewise.
7560 (create_cus_from_debug_names): Likewise.
7561 (dwarf2_read_gdb_index): Update.
7562 (dwarf2_read_debug_names): Update.
7563
e286671b
TT
75642020-05-27 Tom Tromey <tom@tromey.com>
7565 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * dwarf2/read.h (struct dwarf2_per_objfile)
7568 <get_type_for_signatured_type, set_type_for_signatured_type>:
7569 New methods.
7570 <m_type_map>: New member.
7571 (struct signatured_type) <type>: Remove.
7572 * dwarf2/read.c
7573 (dwarf2_per_objfile::get_type_for_signatured_type,
7574 dwarf2_per_objfile::set_type_for_signatured_type): New.
7575 (get_signatured_type): Use new methods.
7576
8adb8487
TT
75772020-05-27 Tom Tromey <tom@tromey.com>
7578 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7581 (struct dwarf2_per_objfile) <type_units>: New member.
7582 <get_type_unit_group_unshareable>: New method.
7583 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7584 num_symtabs, symtabs>: Remove; move to
7585 type_unit_group_unshareable.
7586 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7587 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7588 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7589
127bbf4b
SM
75902020-05-27 Simon Marchi <simon.marchi@efficios.com>
7591
7592 * dwarf2/read.h (struct dwarf2_per_cu_data):
7593 <dwarf2_per_objfile>: Remove.
7594 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7595 dwarf2_per_objfile.
7596 (create_signatured_type_table_from_index): Likewise.
7597 (create_signatured_type_table_from_debug_names): Likewise.
7598 (create_debug_type_hash_table): Likewise.
7599 (fill_in_sig_entry_from_dwo_entry): Likewise.
7600 (create_type_unit_group): Likewise.
7601 (read_comp_units_from_section): Likewise.
7602 (create_cus_hash_table): Likewise.
7603
f6e649dd
SM
76042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7607 dwarf2_per_cu_data::dwarf2_per_objfile.
7608 (compute_compunit_symtab_includes): Likewise.
7609 (dwarf2_cu::start_symtab): Likewise.
7610
aa66c379
SM
76112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7612
7613 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7614 parameter.
7615 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7616 (read_namespace_alias): Update.
7617 (lookup_die_type): Update.
7618 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7619 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7620 Update.
7621 (disassemble_dwarf_expression): Update.
7622
120ce1b5
SM
76232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * dwarf2/read.h (struct dwarf2_queue_item): Add
7626 dwarf2_per_objfile parameter, assign new parameter.
7627 <per_objfile>: New field.
7628 * dwarf2/read.c (free_one_cached_comp_unit): Add
7629 dwarf2_per_objfile parameter.
7630 (queue_comp_unit): Likewise.
7631 (dw2_do_instantiate_symtab): Update.
7632 (process_psymtab_comp_unit): Update.
7633 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7634 (process_imported_unit_die): Update.
7635 (queue_and_load_dwo_tu): Update.
7636 (follow_die_offset): Update.
7637 (follow_die_sig_1): Update.
7638
9f47c707
SM
76392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7640
7641 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7642 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7643 (read_call_site_scope): Assign per_objfile.
7644 (dwarf2_per_cu_data::objfile): Remove.
7645 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7646 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7647 dwarf2_per_objfile parameter.
7648 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7649 dwarf2_per_objfile parameter.
7650 (dwarf_expr_reg_to_entry_parameter): Add output
7651 dwarf2_per_objfile parameter.
7652 (locexpr_get_frame_base): Update.
7653 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7654 <push_dwarf_reg_entry_value>: Update.
7655 <call_site_to_target_addr>: Update.
7656 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7657 parameter.
7658 (value_of_dwarf_reg_entry): Update.
7659 (rw_pieced_value): Update.
7660 (indirect_synthetic_pointer): Update.
7661 (dwarf2_evaluate_property): Update.
7662 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7663 parameter.
7664 (locexpr_read_variable): Update.
7665 (locexpr_get_symbol_read_needs): Update.
7666 (loclist_read_variable): Update.
7667
14095eb3
SM
76682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7671 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7672 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7673 parameter.
7674 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7676 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7677 parameter.
7678 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7679 sect_variable_value): Add dwarf2_per_objfile parameter.
7680 (class dwarf_evaluate_loc_desc) <dwarf_call,
7681 dwarf_variable_value>: Update.
7682 (fetch_const_value_from_synthetic_pointer): Add
7683 dwarf2_per_objfile parameter.
7684 (fetch_const_value_from_synthetic_pointer): Update.
7685 (coerced_pieced_ref): Update.
7686 (class symbol_needs_eval_context) <dwarf_call,
7687 dwarf_variable_value>: Update.
7688 (dwarf2_compile_expr_to_ax): Update.
7689
3c3cd3d4
SM
76902020-05-27 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7693 parameter.
7694 (dwarf2_evaluate_loc_desc_full): Update.
7695
82ca3f51
SM
76962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7697
7698 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7699 parameter.
7700 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7701 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7702 dwarf2_per_objfile parameter.
7703 (decode_debug_loc_dwo_addresses): Likewise.
7704 (dwarf2_find_location_expression): Update.
7705 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7706 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7707 parameter.
7708 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7709 parameter.
7710 (locexpr_describe_location_1): Likewise.
7711 (locexpr_describe_location): Update.
7712
4b167ea1
SM
77132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7716 Remove.
7717 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7718 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7719 (dwarf2_compile_property_to_c): Update.
7720 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7721 use text offset from objfile.
7722 (locexpr_tracepoint_var_ref): Update.
7723 (locexpr_generate_c_location): Update.
7724 (loclist_describe_location): Update.
7725 (loclist_tracepoint_var_ref): Update.
7726 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7727 dwarf2_per_objfile parameter.
7728 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7729 use text offset from objfile.
7730 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7731
89b07335
SM
77322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7733
7734 * dwarf2/expr.h (struct dwarf_expr_context)
7735 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7736 <offset>: Remove.
7737 <per_objfile>: New member.
7738 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7739 dwarf2_per_objfile parameter. Don't set offset, set
7740 per_objfile.
7741 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7742 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7743 a dwarf2_per_objfile object instead of an offset.
7744 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7745 constructor.
7746 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7747 to dwarf2_expr_executor constructor. Don't set offset.
7748 (dwarf2_fetch_cfa_info): Update.
7749 (struct dwarf2_frame_cache) <text_offset>: Remove.
7750 <per_objfile>: New field.
7751 (dwarf2_frame_cache): Update.
7752 (dwarf2_frame_prev_register): Update.
7753 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7754 <dwarf_evaluate_loc_desc>: Add constructor.
7755 (dwarf2_evaluate_loc_desc_full): Update.
7756 (dwarf2_locexpr_baton_eval): Update.
7757 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7758 Add constructor.
7759 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7760
293e7e51
SM
77612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7762
7763 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7764 addr_sized_int_type>: Move to dwarf2_cu.
7765 <int_type>: Move to dwarf2_per_objfile.
7766 (struct dwarf2_per_objfile) <int_type>: Move here.
7767 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7768 addr_sized_int_type>: Move here.
7769 (read_func_scope): Update.
7770 (read_array_type): Update.
7771 (read_tag_string_type): Update.
7772 (attr_to_dynamic_prop): Update.
7773 (dwarf2_per_cu_data::int_type): Rename to...
7774 (dwarf2_per_objfile::int_type): ... this.
7775 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7776 (dwarf2_cu::addr_sized_int_type): ... this.
7777 (read_subrange_type): Update.
7778 (dwarf2_per_cu_data::addr_type): Rename to...
7779 (dwarf2_cu::addr_type): ... this.
7780 (set_die_type): Update.
7781
64874a40
SM
77822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7785 data through per_cu->cu.
7786
4ab09049
SM
77872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7790 dwarf2_per_cu_data parameter fo dwarf2_cu.
7791 (lookup_dwo_type_unit): Likewise.
7792 (read_cutu_die_from_dwo): Likewise.
7793 (lookup_dwo_unit): Likewise.
7794 (open_and_init_dwo_file): Likewise.
7795 (lookup_dwo_cutu): Likewise.
7796 (lookup_dwo_comp_unit): Likewise.
7797 (lookup_dwo_type_unit): Likewise.
7798 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7799 (cutu_reader::cutu_reader): Update.
7800
47b14e86
SM
78012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7804 parameter.
7805 (process_full_type_unit): Likewise.
7806 (process_queue): Update.
7807
43182c09
SM
78082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * dwarf2/read.c (recursively_compute_inclusions): Add
7811 dwarf2_per_objfile parameter.
7812 (compute_compunit_symtab_includes): Likewise.
7813 (process_cu_includes): Update.
7814
7aa104c4
SM
78152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7818 parameter.
7819 (create_type_unit_group): Update.
7820 (process_psymtab_comp_unit_reader): Update.
7821 (build_type_psymtabs_reader): Update.
7822
e3beb21d
SM
78232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7826 object through m_this_cu->cu.
7827
d460f660
SM
78282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7829
7830 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7831 the info parameter.
7832 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7833
ab432490
SM
78342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7837 per_objfile parameter.
7838 (load_full_type_unit): Add per_objfile parameter.
7839 (read_signatured_type): Likewise.
7840 (load_full_comp_unit): Likewise.
7841 (load_cu): Likewise.
7842 (dw2_do_instantiate_symtab): Likewise.
7843 (dw2_get_file_names): Likewise.
7844 (dw2_map_symtabs_matching_filename): Update.
7845 (dw_expand_symtabs_matching_file_matcher): Update.
7846 (dw2_map_symbol_filenames): Update.
7847 (process_psymtab_comp_unit): Add per_objfile parameter.
7848 (build_type_psymtabs_1): Update.
7849 (process_skeletonless_type_unit): Update.
7850 (dwarf2_build_psymtabs_hard): Update.
7851 (load_partial_comp_unit): Add per_objfile parameter.
7852 (scan_partial_symbols): Update.
7853 (load_full_comp_unit): Add per_objfile parameter.
7854 (process_imported_unit_die): Update.
7855 (create_cus_hash_table): Update.
7856 (find_partial_die): Update.
7857 (dwarf2_read_addr_index): Update.
7858 (follow_die_offset): Update.
7859 (dwarf2_fetch_die_loc_sect_off): Update.
7860 (dwarf2_fetch_constant_bytes): Update.
7861 (dwarf2_fetch_die_type_sect_off): Update.
7862 (follow_die_sig_1): Update.
7863 (load_full_type_unit): Add per_objfile parameter.
7864 (read_signatured_type): Likewise.
7865
313bad1b
SM
78662020-05-27 Simon Marchi <simon.marchi@efficios.com>
7867
7868 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7869 of objfile_name.
7870
c3699833
SM
78712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7872
7873 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7874 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7875 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7876 field.
7877 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7878 (create_cus_from_index): Update.
7879 (dwarf2_read_gdb_index): Update.
7880 (create_cus_from_debug_names): Update.
7881 (dwarf2_read_debug_names): Update.
7882 (get_abbrev_section_for_cu): Update.
7883 (create_all_comp_units): Update.
7884 (read_attribute_value): Update.
7885 (get_debug_line_section): Update.
7886 * dwarf2/index-cache.c (index_cache::store): Update.
7887 * dwarf2/index-write.c (save_gdb_index_command): Update.
7888 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7889
1859c670
SM
78902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7891
7892 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7893 member.
7894 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7895 dwarf2_per_cu_data::per_bfd.
7896 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7897 (create_type_unit_group): Likewise.
7898 (queue_comp_unit): Remove reference to
7899 per_cu->dwarf2_per_objfile.
7900 (maybe_queue_comp_unit): Likewise.
7901 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7902 (create_cus_hash_table): Assign new field.
7903
5e22e966
SM
79042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * dwarf2/read.c: Replace
7907 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7908 dwarf2_cu->per_objfile throughout.
7909
97a1449a
SM
79102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7913 parameter, don't use per_cu->dwarf2_per_objfile.
7914 (dw2_instantiate_symtab): Likewise.
7915 (dw2_find_last_source_symtab): Update.
7916 (dw2_map_expand_apply): Update.
7917 (dw2_lookup_symbol): Update.
7918 (dw2_expand_symtabs_for_function): Update.
7919 (dw2_expand_all_symtabs): Update.
7920 (dw2_expand_symtabs_with_fullname): Update.
7921 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7922 don't use per_cu->dwarf2_per_objfile.
7923 (dw2_expand_marked_cus): Update.
7924 (dw2_find_pc_sect_compunit_symtab): Update.
7925 (dw2_debug_names_lookup_symbol): Update.
7926 (dw2_debug_names_expand_symtabs_for_function): Update.
7927 (dw2_debug_names_map_matching_symbols): Update.
7928 (dwarf2_psymtab::expand_psymtab): Update.
7929
9e021579
SM
79302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7931
7932 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7933 <per_objfile>: New member.
7934 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7935 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7936 call to dwarf2_cu.
7937 (cutu_reader::cutu_reader): Update.
7938 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7939
ae090bdb
SM
79402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7943 struct dwarf2_per_objfile.
7944 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7945 dwarf2_per_bfd.
7946 * dwarf2/read.c (set_die_type): Update.
7947 (get_die_type_at_offset): Update.
7948
af758d11
SM
79492020-05-27 Tom Tromey <tom@tromey.com>
7950 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7953 method.
7954 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7955 get_symtab, set_symtab>: New methods.
7956 <m_symtabs>: New field.
7957 (struct dwarf2_psymtab): Derive from partial_symtab.
7958 <readin_p, get_compunit_symtab>: Declare methods.
7959 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7960 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7961 New methods.
7962 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7963 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7964 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7965 (dw2_symtab_iter_next, dw2_print_stats)
7966 (dw2_expand_symtabs_with_fullname)
7967 (dw2_expand_symtabs_matching_one)
7968 (dw_expand_symtabs_matching_file_matcher)
7969 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7970 (dw2_debug_names_iterator::next)
7971 (dw2_debug_names_map_matching_symbols)
7972 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7973 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7974 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7975 New methods.
7976 (get_compunit_symtab, process_full_comp_unit)
7977 (process_full_type_unit): Update.
7978 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7979
5989a64e
SM
79802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7981
7982 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7983 then introduce a new dwarf2_per_objfile type.
7984 <read_line_string>: Move to the new dwarf2_per_objfile type.
7985 <objfile>: Likewise.
7986 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7987 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7988 dwarf2_per_objfile->per_bfd.
7989 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7990 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7991 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7992 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7993 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7994 (dwarf2_per_objfile::locate_sections): Rename to...
7995 (dwarf2_per_bfd::locate_sections): ... this.
7996 (dwarf2_per_objfile::get_cutu): Rename to...
7997 (dwarf2_per_bfd::get_cutu): ... this.
7998 (dwarf2_per_objfile::get_cu): Rename to...
7999 (dwarf2_per_bfd::get_cu): ... this.
8000 (dwarf2_per_objfile::get_tu): Rename to...
8001 (dwarf2_per_bfd::get_tu): ... this.
8002 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8003 (dwarf2_per_bfd::allocate_per_cu): ... this.
8004 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8005 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8006 (get_gdb_index_contents_ftype): Change parameter from
8007 dwarf2_per_objfile to dwarf2_per_bfd.
8008 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8009 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8010
a50264ba
TT
80112020-05-27 Tom Tromey <tom@tromey.com>
8012 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8015 (allocate_piece_closure): Set "per_objfile" member.
8016 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8017 (locexpr_describe_location, loclist_describe_location): Use new
8018 member.
8019 * dwarf2/read.c (read_call_site_scope)
8020 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8021 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8022 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8023 handle_data_member_location): Set per_objfile member.
8024 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8025 member.
8026 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8027
d3473f0c
TT
80282020-05-27 Tom Tromey <tom@tromey.com>
8029
8030 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8031 allocate_signatured_type>: Declare new methods.
8032 <m_num_psymtabs>: New member.
8033 (struct dwarf2_per_cu_data) <index>: New member.
8034 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8035 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8036 (create_cu_from_index_list): Use allocate_per_cu.
8037 (create_signatured_type_table_from_index)
8038 (create_signatured_type_table_from_debug_names)
8039 (create_debug_type_hash_table, add_type_unit)
8040 (read_comp_units_from_section): Use allocate_signatured_type.
8041
5717c425
TT
80422020-05-27 Tom Tromey <tom@tromey.com>
8043
8044 * psymtab.c (partial_map_expand_apply)
8045 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8046 (psym_lookup_global_symbol_language)
8047 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8048 (psym_print_stats, psym_expand_symtabs_for_function)
8049 (psym_map_symbol_filenames, psym_map_matching_symbols)
8050 (psym_expand_symtabs_matching)
8051 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8052 (maintenance_check_psymtabs): Update.
8053 * psympriv.h (struct partial_symtab) <readin_p,
8054 get_compunit_symtab>: Add objfile parameter.
8055 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8056 Likewise.
8057 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8058 get_compunit_symtab>: Likewise.
8059 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8060
45940949
TT
80612020-05-27 Tom Tromey <tom@tromey.com>
8062
8063 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8064 member.
8065 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8066 (create_cu_from_index_list)
8067 (create_signatured_type_table_from_index)
8068 (create_signatured_type_table_from_debug_names)
8069 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8070 (dwarf2_create_include_psymtab)
8071 (create_debug_type_hash_table, add_type_unit)
8072 (create_type_unit_group, read_comp_units_from_section)
8073 (dwarf2_compute_name, create_cus_hash_table)
8074 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8075 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8076 obstack.
8077 (dw2_get_real_path): Likewise. Change argument to
8078 dwarf2_per_objfile.
8079
f8c6d152
LM
80802020-05-27 Luis Machado <luis.machado@linaro.org>
8081
8082 PR tdep/26000
8083 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8084 for ldrd (immediate).
8085
e98d2e6d
PW
80862020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8087
8088 * command.h: Add comment giving the name of class_tui.
8089 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8090 create the fake command for the help for class_tui.
8091
53a47a3e
TT
80922020-05-26 Tom Tromey <tromey@adacore.com>
8093
8094 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8095 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8096 (val_atr): New function.
8097 (value_val_atr): Use it.
8098 * ada-valprint.c (print_optional_low_bound): Change low bound
8099 handling for enums.
8100 (val_print_packed_array_elements): Don't call discrete_position.
8101 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8102 discrete_position for enum types.
8103 * language.c (default_print_array_index): Change type.
8104 * language.h (struct language_defn) <la_print_array_index>: Add
8105 index_type parameter, change type of index_value.
8106 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8107 (default_print_array_index): Update.
8108 * valprint.c (maybe_print_array_index): Don't call
8109 value_from_longest. Update.
8110 (value_print_array_elements): Don't call discrete_position.
8111
0bc2354b
TT
81122020-05-26 Tom Tromey <tromey@adacore.com>
8113
8114 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8115 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8116
1218a4bf
CDA
81172020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8118
8119 PR gdb/13519
8120 * avr-tdep.c (avr_integer_to_address): Return data or code
8121 address accordingly to the second 'type' argument of the
8122 function.
8123
92651b1d
MW
81242020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8125
8126 * infcmd.c, inferior.h: (construct_inferior_arguments):
8127 Moved function from here to gdbsupport/common-inferior.{h,cc}
8128
0a4f5f8c
TT
81292020-05-23 Tom Tromey <tom@tromey.com>
8130
8131 Revert commit eca1f90c:
8132 * NEWS: Remove entry for completion styling.
8133 * completer.c (_rl_completion_prefix_display_length): Move
8134 declaration later.
8135 (gdb_fnprint): Revert.
8136 (gdb_display_match_list_1): Likewise.
8137 * cli/cli-style.c (completion_prefix_style)
8138 (completion_difference_style, completion_suffix_style): Remove.
8139 (_initialize_cli_style): Revert.
8140 * cli/cli-style.h (completion_prefix_style)
8141 (completion_difference_style, completion_suffix_style): Don't
8142 declare.
8143
e08bd6c5
PA
81442020-05-24 Pedro Alves <palves@redhat.com>
8145
8146 * symtab.c (completion_list_add_name): Return boolean indication
8147 of whether the symbol matched.
8148 (completion_list_add_symbol): Don't try to remove C++ aliases if
8149 the symbol didn't match in the first place.
8150 * symtab.h (completion_list_add_name): Return bool.
8151
ceacbf6e
SM
81522020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8153
8154 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8155 type::field.
8156
26f16254
JB
81572020-05-23 Joel Brobecker <brobecker@adacore.com>
8158
8159 GDB 9.2 released.
8160
eca1f90c
TT
81612020-05-23 Tom Tromey <tom@tromey.com>
8162
8163 * NEWS: Add entry for completion styling.
8164 * completer.c (_rl_completion_prefix_display_length): Move
8165 declaration earlier.
8166 (gdb_fnprint): Use completion_style.
8167 (gdb_display_match_list_1): Likewise.
8168 * cli/cli-style.c (completion_prefix_style)
8169 (completion_difference_style, completion_suffix_style): New
8170 globals.
8171 (_initialize_cli_style): Register new globals.
8172 * cli/cli-style.h (completion_prefix_style)
8173 (completion_difference_style, completion_suffix_style): Declare.
8174
51e2cfa2
PA
81752020-05-23 Pedro Alves <palves@redhat.com>
8176
8177 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8178 (parse_escape): Use ISDIGIT instead of isdigit.
8179 (puts_debug): Use gdb_isprint instead of isprint.
8180 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8181 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8182 ISSPACE instead of isspace.
8183 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8184 instead of isspace.
8185 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8186 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8187 instead of isxdigit and ISDIGIT instead of isdigit.
8188
80fc5e77
SM
81892020-05-22 Simon Marchi <simon.marchi@efficios.com>
8190
8191 * gdbtypes.h (struct type) <field>: New method.
8192 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8193 or type::field.
8194
3cabb6b0
SM
81952020-05-22 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8198 (TYPE_FIELDS): Use type::fields. Change all call sites that
8199 modify the propery to use type::set_fields instead.
8200
1f704f76
SM
82012020-05-22 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8204 type::num_fields instead.
8205
5e33d5f4
SM
82062020-05-22 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8209 methods.
8210 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8211 that modify the number of fields to use type::set_num_fields
8212 instead.
8213
9392ebb3
TT
82142020-05-22 Tom Tromey <tromey@adacore.com>
8215
8216 * compile/compile-object-load.h (munmap_list_free): Don't
8217 declare.
8218
7c13f4e8
AB
82192020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * annotate.c (annotate_source_line): Update return type, add call
8222 to update current symtab and line.
8223 * annotate.h (annotate_source_line): Update return type, and
8224 extend header comment.
8225 * source.c (info_line_command): Check annotation_level before
8226 calling annotate_source_line.
8227 * stack.c (print_frame_info): If calling annotate_source_line
8228 returns true, then don't print any other source line information.
8229
aa370940
SM
82302020-05-21 Simon Marchi <simon.marchi@efficios.com>
8231
8232 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8233
84d53fa9
SM
82342020-05-21 Simon Marchi <simon.marchi@efficios.com>
8235
8236 * coffread.c (patch_type): Remove NULL check before xfree.
8237 * corefile.c (set_gnutarget): Likewise.
8238 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8239 * exec.c (build_section_table): Likewise.
8240 * remote.c (remote_target::pass_signals): Likewise.
8241 * utils.c (n_spaces): Likewise.
8242 * cli/cli-script.c (document_command): Likewise.
8243 * i386-windows-tdep.c (core_process_module_section): Likewise.
8244 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8245
9d428aae
SM
82462020-05-20 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * symfile.c (reread_symbols): Clear objfile's section_offsets
8249 vector and section indices, re-compute them by calling
8250 sym_offsets.
8251
250106a7
TT
82522020-05-20 Tom Tromey <tromey@adacore.com>
8253
8254 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8255 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8256
9a0bacfb
TV
82572020-05-20 Tom de Vries <tdevries@suse.de>
8258
8259 PR symtab/25833
8260 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8261
7b958a48
AM
82622020-05-20 Alan Modra <amodra@gmail.com>
8263
8264 PR 25993
8265 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8266 bfd_set_filename.
8267 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8268 passed to bfd_set_filename.
8269 * symfile-mem.c (add_vsyscall_page): Likewise for string
8270 passed to symbol_file_add_from_memory.
8271 (symbol_file_add_from_memory): Make name param a const char* and
8272 don't strdup.
8273
c7e97679
AM
82742020-05-20 Alan Modra <amodra@gmail.com>
8275
8276 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8277 rather than accessing bfd->filename directly.
8278 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8279 and use bfd_section_name.
8280 * dwarf2/frame.c (decode_frame_entry): Likewise.
8281 * exec.c (exec_set_section_address): Likewise.
8282 * solib-aix.c (solib_aix_bfd_open): Likewise.
8283 * stap-probe.c (get_stap_base_address): Likewise.
8284 * symfile.c (reread_symbols): Likewise.
8285
563c591b
TT
82862020-05-19 Tom Tromey <tromey@adacore.com>
8287
8288 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8289
f408d82c
SM
82902020-05-19 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8293
98c59b52
PA
82942020-05-19 Pedro Alves <palves@redhat.com>
8295
8296 * NEWS (set exec-file-mismatch): Adjust entry.
8297 * exec.c: Include "build-id.h".
8298 (validate_exec_file): Try to match build IDs instead of filenames.
8299 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8300 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8301 and pass down 'warn_if_slow'.
8302 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8303 gdb_bfd_open_closure to pass it down.
8304 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8305
4111f652
PA
83062020-05-19 Pedro Alves <palves@redhat.com>
8307
8308 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8309 * target.c (target_fileio_open_1): Rename to target_fileio_open
8310 and make extern. Use bool.
8311 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8312 (target_fileio_read_alloc_1): Adjust.
8313 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8314 (target_fileio_open_warn_if_slow): Delete declaration.
8315
ad80db5b
PA
83162020-05-19 Pedro Alves <palves@redhat.com>
8317
8318 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8319 Adjust all callers.
8320
1d6ce4d3
YS
83212020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8322
8323 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8324 whether disp is negative.
8325
9005fbbb
SM
83262020-05-19 Simon Marchi <simon.marchi@efficios.com>
8327
8328 * symfile.h (struct symfile_segment_data)
8329 <~symfile_segment_data>: Remove.
8330 <segment_info>: Change to std::vector.
8331 * symfile.c (default_symfile_segments): Update.
8332 * elfread.c (elf_symfile_segments): Update.
8333
68b888ff
SM
83342020-05-19 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8337 <segments>: New.
8338 <segment_bases, segment_sizes>: Remove.
8339 * symfile.c (default_symfile_segments): Update.
8340 * elfread.c (elf_symfile_segments): Update.
8341 * remote.c (remote_target::get_offsets): Update.
8342 * solib-target.c (solib_target_relocate_section_addresses):
8343 Update.
8344
62982abd
SM
83452020-05-19 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * symfile.h (struct symfile_segment_data): Initialize fields.
8348 <~symfile_segment_data>: Add.
8349 (symfile_segment_data_up): New.
8350 (struct sym_fns) <sym_segments>: Return a
8351 symfile_segment_data_up.
8352 (default_symfile_segments): Return a symfile_segment_data_up.
8353 (free_symfile_segment_data): Remove.
8354 (get_symfile_segment_data): Return a symfile_segment_data_up.
8355 * symfile.c (default_symfile_segments): Likewise.
8356 (get_symfile_segment_data): Likewise.
8357 (free_symfile_segment_data): Remove.
8358 (symfile_find_segment_sections): Update.
8359 * elfread.c (elf_symfile_segments): Return a
8360 symfile_segment_data_up.
8361 * remote.c (remote_target::get_offsets): Update.
8362 * solib-target.c (solib_target_relocate_section_addresses):
8363 Update.
8364 * symfile-debug.c (debug_sym_segments): Return a
8365 symfile_segment_data_up.
8366
7f204339
RO
83672020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8368
e52a0f1b
RO
8369 PR build/25981
8370 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8371 Hardcode register numbers.
8372
7f204339
RO
8373 PR build/25981
8374 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8375 procfs_find_LDT_entry): Remove.
8376 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8377 procfs_find_LDT_entry): Remove.
8378 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8379 Remove.
8380
7f32a4d5
PA
83812020-05-17 Pedro Alves <palves@redhat.com>
8382 Andrew Burgess <andrew.burgess@embecosm.com>
8383 Keno Fischer <keno@juliacomputing.com>
8384
8385 PR gdb/25741
8386 * breakpoint.c (build_target_condition_list): Update comments.
8387 (build_target_command_list): Update comments and skip matching
8388 locations.
8389 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8390 a separate function. Simplify "set breakpoint auto-hw off"
8391 handling.
8392 (insert_breakpoints): Update comment.
8393 (tracepoint_locations_match): New parameter. For breakpoints,
8394 compare location types too, if the caller wants to.
8395 (handle_automatic_hardware_breakpoints): New functions.
8396 (bp_location_is_less_than): Also sort by location type and
8397 hardware breakpoint length.
8398 (update_global_location_list): Handle "set breakpoint auto-hw on"
8399 here.
8400 (update_breakpoint_locations): Ask breakpoint_locations_match to
8401 ignore location types.
8402
7d93a1e0
SM
84032020-05-16 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8406 type::name instead.
8407
d0e39ea2
SM
84082020-05-16 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * gdbtypes.h (struct type) <name, set_name>: New methods.
8411 (TYPE_CODE): Use type::name. Change all call sites used to set
8412 the name to use type::set_name instead.
8413
2dab0c7b
TT
84142020-05-16 Tom Tromey <tom@tromey.com>
8415
8416 * top.c (quit_force): Update.
8417 * infrun.c (handle_no_resumed): Update.
8418 * top.h (all_uis): New function.
8419 (ALL_UIS): Remove.
8420
59f7bd8d
SM
84212020-05-16 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8424
9bf058f0
PA
84252020-05-16 Pedro Alves <palves@redhat.com>
8426
8427 * ia64-linux-nat.c
8428 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8429 Declare method.
8430 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8431
8f86ae1a
SM
84322020-05-15 Simon Marchi <simon.marchi@efficios.com>
8433
8434 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8435 (sparc64_adi_info): Likewise.
8436
d6bc0792
TT
84372020-05-15 Tom Tromey <tom@tromey.com>
8438
8439 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8440 block_objfile.
8441 (lookup_objfile_from_block): Remove.
8442 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8443 (lookup_global_symbol): Use block_objfile.
8444 * symtab.h (lookup_objfile_from_block): Don't declare.
8445 * printcmd.c (clear_dangling_display_expressions): Use
8446 block_objfile.
8447 * parse.c (operator_check_standard): Use block_objfile.
8448
8c14c3a3
TT
84492020-05-15 Tom Tromey <tom@tromey.com>
8450
8451 * language.c (language_alloc_type_symbol): Set
8452 SYMBOL_SECTION.
8453 * symtab.c (initialize_objfile_symbol): Remove.
8454 (allocate_symbol): Remove.
8455 (allocate_template_symbol): Remove.
8456 * dwarf2/read.c (fixup_go_packaging): Use "new".
8457 (new_symbol): Use "new".
8458 (read_variable): Don't call initialize_objfile_symbol. Use
8459 "new".
8460 (read_func_scope): Use "new".
8461 * xcoffread.c (process_xcoff_symbol): Don't call
8462 initialize_objfile_symbol.
8463 (SYMBOL_DUP): Remove.
8464 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8465 "new".
8466 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8467 (allocate_template_symbol): Don't declare.
8468 (struct symbol): Add copy constructor. Change defaults.
8469 * jit.c (finalize_symtab): Use "new".
8470 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8471 Use "new".
8472 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8473 (common_block_end): Use "new".
8474 * mdebugread.c (parse_symbol): Use "new".
8475 (new_symbol): Likewise.
8476
5b4a1a8d
PW
84772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8478
8479 * NEWS: Mention changes to help and apropos.
8480
57b4f16e
PW
84812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8482
8483 * command.h (enum command_class): Improve comments, document
8484 that class_alias is for user-defined aliases, give the class
8485 name for each class, remove unused class_xdb.
8486 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8487 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8488 by a precise class.
8489 * infcmd.c (_initialize_infcmd): Likewise.
8490 * reverse.c (_initialize_reverse): Likewise.
8491 * stack.c (_initialize_stack): Likewise.
8492 * symfile.c (_initialize_symfile): Likewise.
8493 * tracepoint.c (_initialize_tracepoint): Likewise.
8494
7c05caf7
PW
84952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8496
8497 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8498 when their aliased command is traversed.
8499 (help_cmd): Add fput_command_names_styled call to
8500 output command name and aliases when command has an alias.
8501
3b3aaacb
PW
85022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8503
8504 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8505 * cli/cli-decode.c (help_cmd_list): Declare as static,
8506 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8507 a command together with the command.
8508 (fput_command_name_styled, fput_command_names_styled): New functions.
8509 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8510 fput_command_name_styled.
8511 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8512 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8513
7aa1b46f
PW
85142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8515
8516 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8517 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8518 * command.h (cmd_show_list): Likewise.
8519 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8520 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8521
89bcba74
PW
85222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8523
8524 * unittests/command-def-selftests.c (traverse_command_structure):
8525 Verify all commands of a list have the same prefix command and
8526 that only the top cmdlist commands have a null prefix.
8527
3f4d92eb
PW
85282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8529
8530 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8531 as prefix, not one of its aliases.
8532 (set_cmd_prefix): Remove.
8533 (do_add_cmd): Centralize the setting of the prefix of a command, when
8534 command is defined after its full chain of prefix commands.
8535 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8536 (add_setshow_cmd_full): Likewise.
8537 (update_prefix_field_of_prefixed_commands): New function.
8538 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8539 update_prefix_field_of_prefixed_commands.
8540 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8541 addresses of remote_set_cmdlist and remote_show_cmdlist given
8542 as argument, not the address of an argument.
8543 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8544 * gdb/remote.c (_initialize_remote): Likewise.
8545
0605465f
PW
85462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8547
8548 * cli/cli-cmds.c (alias_command): Check for an existing alias
8549 using lookup_cmd_composition, as valid_command_p is too strict
8550 and forbids aliases that are the prefix of an existing alias
8551 or command.
8552 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8553 command is properly recognised as a valid command.
8554
58e6ac70
PW
85552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8556
8557 * unittests/help-doc-selftests.c: Rename to
8558 unittests/command-def-selftests.c
8559 * unittests/command-def-selftests.c (help_doc_tests): Update some
8560 comments.
8561 (command_structure_tests, traverse_command_structure): New namespace
8562 and function.
8563 (command_structure_invariants_tests): New function.
8564 (_initialize_command_def_selftests) Renamed from
8565 _initialize_help_doc_selftests, register command_structure_invariants
8566 selftest.
8567
a7b9ceb8
PW
85682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8569
8570 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8571 an alias of 'show'.
8572
b2188a06
JB
85732020-05-15 Joel Brobecker <brobecker@adacore.com>
8574
8575 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8576 ada_is_fixed_point_type. Update all callers.
8577 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8578 all callers.
8579 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8580 Update all callers.
8581 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8582 print_fixed_point_type. Update all callers.
8583 * ada-valprint.c (ada_value_print_num): Replace call to
8584 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8585
a51951c2
KB
85862020-05-14 Kevin Buettner <kevinb@redhat.com>
8587
8588 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8589 processors.
8590 (cpu_supports_bts): Add CV_AMD case.
8591
29d6859f
LM
85922020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8593 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * infrun.c (stop_all_threads): Collect multiple wait events at
8596 each pass.
8597
78134374
SM
85982020-05-14 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8601 type::code instead.
8602
67607e24
SM
86032020-05-14 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * gdbtypes.h (struct type) <code, set_code>: New methods.
8606 (TYPE_CODE): Use type::code. Change all call sites used to set
8607 the code to use type::set_code instead.
8608
a05575d3
TBA
86092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8610 Tom de Vries <tdevries@suse.de>
8611 Pedro Alves <palves@redhat.com>
8612
8613 PR threads/25478
8614 * infrun.c (stop_all_threads): Do NOT ignore
8615 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8616 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8617 received.
8618 (handle_no_resumed): Remove code handling a live inferior with no
8619 threads.
8620 * remote.c (has_single_non_exited_thread): New.
8621 (remote_target::update_thread_list): Do not delete a thread if is
8622 the last thread of the process.
8623 * thread.c (thread_select): Call delete_exited_threads instead of
8624 prune_threads.
8625
6ad82919
TBA
86262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8627
8628 * infrun.c (stop_all_threads): Enable/disable thread events of all
8629 targets. Move a debug message denoting the end of the function
8630 into the SCOPED_EXIT block.
8631
d890404b
TBA
86322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8633
8634 * process-stratum-target.h: Include <set>.
8635 (all_non_exited_process_targets, switch_to_target_no_thread): New
8636 function declarations.
8637 * process-stratum-target.c (all_non_exited_process_targets)
8638 (switch_to_target_no_thread): New function implementations.
8639
293b3ebc
TBA
86402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8641
8642 * infrun.c (handle_inferior_event): Extract out a piece of code
8643 into...
8644 (mark_non_executing_threads): ...this new function.
8645
7ca9b62a
TBA
86462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8647
8648 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8649 use.
8650
fc75c28b
TBA
86512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8652
8653 * regcache.c (regcache_read_pc_protected): New function
8654 implementation that returns 0 if the PC cannot read via
8655 'regcache_read_pc'.
8656 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8657 instead of 'regcache_read_pc'.
8658 (keep_going_pass_signal): Ditto.
8659
a89febbd
TT
86602020-05-13 Tom Tromey <tromey@adacore.com>
8661
8662 * ada-lang.c (align_value): Remove.
8663 (ada_template_to_fixed_record_type_1): Use align_up.
8664
f7e23710
TBA
86652020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8666
8667 * async-event.c: Update the copyright year.
8668 * async-event.h: Update the copyright year.
8669
02ff80c2
SM
86702020-05-12 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * objfiles.h (is_addr_in_objfile,
8673 shared_objfile_contains_address_p): Return bool.
8674 * objfile.c (is_addr_in_objfile,
8675 shared_objfile_contains_address_p): Return bool.
8676
4fd6c7e8
TT
86772020-05-11 Tom Tromey <tromey@adacore.com>
8678
8679 * cli/cli-cmds.c (info_command): Restore.
8680 (_initialize_cli_cmds): Use add_prefix_command for "info".
8681 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8682
5eb68a39
TT
86832020-05-11 Tom Tromey <tromey@adacore.com>
8684
8685 * ada-lang.c (ada_value_primitive_field): Now public.
8686 * ada-lang.h (ada_value_primitive_field): Declare.
8687 * ada-valprint.c (print_field_values): Use
8688 ada_value_primitive_field for wrapper fields.
8689
7666722f
TV
86902020-05-11 Tom de Vries <tdevries@suse.de>
8691
8692 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8693 MODULE_DOMAIN.
8694
3ee6bb11
TV
86952020-05-11 Tom de Vries <tdevries@suse.de>
8696
8697 PR symtab/25941
8698 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8699 with length 0, if not gdb-produced.
8700 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8701
43434996
TV
87022020-05-09 Tom de Vries <tdevries@suse.de>
8703
8704 PR gdb/25955
8705 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8706 calculation.
8707
2f78cffc
TT
87082020-05-09 Tom Tromey <tom@tromey.com>
8709
8710 * top.c (server_command): Now bool.
8711 * top.h (server_command): Now bool.
8712
4f7bc5ed
TT
87132020-05-08 Tom Tromey <tromey@adacore.com>
8714
8715 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8716 already being processed.
8717
8be4b118
TT
87182020-05-08 Tom Tromey <tom@tromey.com>
8719
8720 * printcmd.c (struct display) <next>: Remove.
8721 <display>: New constructor.
8722 <exp_string>: Now a std::string.
8723 <enabled_p>: Now a bool.
8724 (display_number): Move definition earlier.
8725 (displays): Rename from display_chain. Now a std::vector.
8726 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8727 (display_command): Update.
8728 (do_one_display, disable_display)
8729 (enable_disable_display_command, do_enable_disable_display):
8730 Update.
8731 (free_display): Remove.
8732 (clear_displays): Rewrite.
8733 (delete_display): Update.
8734 (map_display_numbers): Use function_view. Remove "data"
8735 parameter. Update.
8736 (do_delete_display): Remove.
8737 (undisplay_command): Update.
8738 (do_one_display, do_displays, disable_display)
8739 (info_display_command): Update.
8740 (do_enable_disable_display): Remove.
8741 (enable_disable_display_command)
8742 (clear_dangling_display_expressions): Update.
8743
94c93c35
TT
87442020-05-08 Tom Tromey <tom@tromey.com>
8745
8746 * symtab.c (set_symbol_cache_size)
8747 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8748 (maintenance_print_symbol_cache_statistics): Update.
8749 * symmisc.c (print_symbol_bcache_statistics)
8750 (print_objfile_statistics, maintenance_print_objfiles)
8751 (maintenance_info_symtabs, maintenance_check_symtabs)
8752 (maintenance_expand_symtabs, maintenance_info_line_tables):
8753 Update.
8754 * symfile-debug.c (set_debug_symfile): Update.
8755 * source.c (forget_cached_source_info): Update.
8756 * python/python.c (gdbpy_progspaces): Update.
8757 * psymtab.c (maintenance_info_psymtabs): Update.
8758 * probe.c (parse_probes): Update.
8759 * linespec.c (iterate_over_all_matching_symtabs)
8760 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8761 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8762 * exec.c (exec_target::close): Update.
8763 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8764 * breakpoint.c (print_one_breakpoint_location)
8765 (create_longjmp_master_breakpoint)
8766 (create_std_terminate_master_breakpoint): Update.
8767 * progspace.c (program_spaces): Now a std::vector.
8768 (maybe_new_address_space): Update.
8769 (add_program_space): Remove.
8770 (program_space::program_space): Update.
8771 (remove_program_space): Update.
8772 (number_of_program_spaces): Remove.
8773 (print_program_space, update_address_spaces): Update.
8774 * progspace.h (program_spaces): Change type.
8775 (ALL_PSPACES): Remove.
8776 (number_of_program_spaces): Don't declare.
8777 (struct program_space) <next>: Remove.
8778
a1fd1ac9
TT
87792020-05-08 Tom Tromey <tom@tromey.com>
8780
8781 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8782 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8783 (enable_break): Update.
8784 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8785 (frv_fdpic_find_canonical_descriptor): Update.
8786 (frv_fetch_objfile_link_map): Update.
8787 * progspace.c (program_space::free_all_objfiles): Update.
8788 (program_space::solibs): New method.
8789 * progspace.h (struct program_space) <solibs>: New method.
8790 * solist.h (master_so_list): Don't declare.
8791 (ALL_SO_LIBS): Remove.
8792 * solib.h (so_list_head): Remove.
8793 (update_solib_list): Update comment.
8794 * solib.c (master_so_list): Remove.
8795 (solib_used, update_solib_list, solib_add)
8796 (info_sharedlibrary_command, clear_solib)
8797 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8798
38eae084
TT
87992020-05-08 Tom Tromey <tom@tromey.com>
8800
8801 * extension.c (extension_languages): Now a std::array.
8802 (ALL_EXTENSION_LANGUAGES): Remove.
8803 (get_ext_lang_defn, get_ext_lang_of_file)
8804 (eval_ext_lang_from_control_command): Update.
8805 (finish_ext_lang_initialization)
8806 (auto_load_ext_lang_scripts_for_objfile)
8807 (ext_lang_type_printers::ext_lang_type_printers)
8808 (apply_ext_lang_type_printers)
8809 (ext_lang_type_printers::~ext_lang_type_printers)
8810 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8811 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8812 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8813 (get_matching_xmethod_workers, ext_lang_colorize)
8814 (ext_lang_before_prompt): Update.
8815 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8816
596dc4ad
TT
88172020-05-08 Tom Tromey <tom@tromey.com>
8818
8819 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8820 overload.
8821 <swap_string, m_string>: Remove.
8822 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8823 Update.
8824 * stabsread.c (define_symbol, read_type): Update.
8825 * linespec.c (find_linespec_symbols): Update.
8826 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8827 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8828 * dbxread.c (read_dbx_symtab): Update.
8829 * cp-support.h (cp_canonicalize_string_full)
8830 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8831 Return unique_xmalloc_ptr.
8832 * cp-support.c (inspect_type): Update.
8833 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8834 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8835 Likewise.
8836 * c-typeprint.c (print_name_maybe_canonical): Update.
8837 * break-catch-throw.c (check_status_exception_catchpoint):
8838 Update.
8839
bf4cb9be
TV
88402020-05-08 Tom de Vries <tdevries@suse.de>
8841
8842 * infrun.c (follow_fork): Copy current_line and current_symtab to
8843 child thread.
8844
a1b68f28
SM
88452020-05-07 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * async-event.c (struct async_signal_handler, struct
8848 async_event_handler): Reformat, remove typedef.
8849
98d48915
SM
88502020-05-07 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8853 access thistype->main_type->dyn_prop_list directly.
8854
7aa91313
SM
88552020-05-07 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8858 (remove_dyn_prop): Remove. Update all users to use
8859 type::remove_dyn_prop.
8860 * gdbtypes.c (remove_dyn_prop): Rename to...
8861 (type::remove_dyn_prop): ... this.
8862
5c54719c
SM
88632020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8864
8865 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8866 (add_dyn_prop): Remove. Update all users to use
8867 type::add_dyn_prop.
8868 * gdbtypes.c (add_dyn_prop): Rename to...
8869 (type::add_dyn_prop): ... this.
8870
24e99c6c
SM
88712020-05-07 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8874 (get_dyn_prop): Remove. Update all users to use
8875 type::dyn_prop.
8876 * gdbtypes.c (get_dyn_prop): Rename to...
8877 (type::dyn_prop): ... this.
8878
0d4bf016
SM
88792020-05-06 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8882
ac4a4f1c
SM
88832020-05-06 Simon Marchi <simon.marchi@efficios.com>
8884
8885 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8886 instruction, skip it if it's there.
8887
a3bbacc1
SM
88882020-05-05 Simon Marchi <simon.marchi@efficios.com>
8889
8890 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8891
c3236f84
SM
88922020-05-04 Simon Marchi <simon.marchi@efficios.com>
8893
8894 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8895 * gdbtypes.c (recursive_dump_type): Remove use of
8896 TYPE_INCOMPLETE.
8897
3b6acaee
TT
88982020-05-03 Tom Tromey <tom@tromey.com>
8899
8900 * breakpoint.c (catch_command, tcatch_command): Remove.
8901 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8902 add_show_prefix_cmd.
8903 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8904 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8905 Remove.
8906 (add_internal_problem_command): Use add_basic_prefix_cmd,
8907 add_show_prefix_cmd.
8908 * mips-tdep.c (set_mipsfpu_command): Remove.
8909 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8910 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8911 (_initialize_index_cache): Use add_basic_prefix_cmd.
8912 * memattr.c (dummy_cmd): Remove.
8913 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8914 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8915 (_initialize_tui_win): Use add_basic_prefix_cmd,
8916 add_show_prefix_cmd.
8917 * cli/cli-logging.c (set_logging_command): Remove.
8918 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8919 add_show_prefix_cmd.
8920 (show_logging_command): Remove.
8921 * target.c (target_command): Remove.
8922 (add_target): Use add_basic_prefix_cmd.
8923
a51119cd
HD
89242020-05-02 Hannes Domani <ssbssa@yahoo.de>
8925
8926 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8927
652fc23a 89282020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8929
652fc23a
PW
8930 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8931 info_command.
8932
117539e6
KR
89332020-04-30 Kamil Rytarowski <n54@gmx.com>
8934
8935 * nbsd-nat.c (nbsd_enable_proc_events)
8936 (nbsd_nat_target::post_startup_inferior): Add.
8937 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8938 (nbsd_nat_target::update_thread_list): Rewrite.
8939 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8940 "PTRACE_LWP_CREATE".
8941 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8942
102e38eb 89432020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8944
102e38eb
PW
8945 * stack.c (_initialize_stack): Remove duplicated creation
8946 of "frame" command and "f" alias.
8947
ee9d1e5f
HD
89482020-04-30 Hannes Domani <ssbssa@yahoo.de>
8949
8950 PR gdb/18706
8951 * gdbtypes.c (check_typedef): Calculate size of array of
8952 stubbed type.
8953
627c7fb8
HD
89542020-04-30 Hannes Domani <ssbssa@yahoo.de>
8955
8956 PR gdb/15559
8957 * i386-tdep.c (i386_push_dummy_call): Call
8958 i386_thiscall_push_dummy_call.
8959 (i386_thiscall_push_dummy_call): New function.
8960 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8961 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8962 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8963
ffc2844e
SM
89642020-04-29 Simon Marchi <simon.marchi@efficios.com>
8965
8966 * gdbarch.sh (do_read): Add shellcheck disable directive for
8967 warning SC2162.
8968
1207375d
SM
89692020-04-29 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8972 "referenced but not assigned" warning.
8973
9fdb2916
SM
89742020-04-29 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * gdbarch.sh: Remove code that sets fallbackdefault.
8977
759cea5e
SM
89782020-04-29 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * gdbarch.sh: Use shell operators && and || instead of
8981 -a and -o.
8982
cb02ab24
SM
89832020-04-29 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * gdbarch.sh: Use $(...) instead of `...`.
8986
a6fc5ffc
SM
89872020-04-29 Simon Marchi <simon.marchi@efficios.com>
8988
8989 * gdbarch.sh: Use double quotes around variables.
8990
8d113d13
SM
89912020-04-29 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * gdbarch.sh: Use %s with printf, instead of variables in the
8994 format string.
8995
ed6acedd
TT
89962020-04-29 Tom Tromey <tromey@adacore.com>
8997
8998 PR ada/25875:
8999 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9000 type fields here.
9001 (read_enumeration_type): Call
9002 update_enumeration_type_from_children later. Update comments.
9003 (process_enumeration_scope): Don't create type fields.
9004
b68b1b58
KR
90052020-04-29 Kamil Rytarowski <n54@gmx.com>
9006
9007 * nbsd-tdep.c: Include "xml-syscall.h".
9008 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9009
f94b2e03
KR
90102020-04-29 Kamil Rytarowski <n54@gmx.com>
9011
9012 * nbsd-nat.c: Include "sys/wait.h".
9013 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9014 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9015 (nbsd_nat_target::remove_exec_catchpoint)
9016 (nbsd_nat_target::set_syscall_catchpoint): Add.
9017 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9018 (nbsd_nat_target::insert_exec_catchpoint)
9019 (nbsd_nat_target::remove_exec_catchpoint)
9020 (nbsd_nat_target::set_syscall_catchpoint): Add.
9021 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9022 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9023 `nbsd_get_syscall_number'.
9024
fc49bc72
TT
90252020-04-29 Tom Tromey <tom@tromey.com>
9026
9027 * stack.c (print_block_frame_labels): Remove.
9028
d642b692
HD
90292020-04-29 Hannes Domani <ssbssa@yahoo.de>
9030
9031 PR gdb/17320
9032 * ada-valprint.c (val_print_packed_array_elements): Move array
9033 end bracket to new line.
9034 (ada_val_print_string): Remove extra spaces before first array
9035 element.
9036 * c-valprint.c (c_value_print_array): Likewise.
9037 * m2-valprint.c (m2_print_array_contents): Likewise.
9038 (m2_value_print_inner): Likewise.
9039 * p-valprint.c (pascal_value_print_inner): Likewise.
9040 * valprint.c (generic_val_print_array): Likewise.
9041 (value_print_array_elements): Move first array element and array
9042 end bracket to new line.
9043
ea90f227
TV
90442020-04-29 Tom de Vries <tdevries@suse.de>
9045
9046 PR symtab/25889
9047 * linespec.c (find_method): Fix ix calculation.
9048
4498ef4f
KR
90492020-04-28 Kamil Rytarowski <n54@gmx.com>
9050
9051 * syscalls/update-netbsd.sh: New file.
9052 * syscalls/netbsd.xml: Regenerate.
9053 * data-directory/Makefile.in: Register `netbsd.xml' in
9054 `SYSCALLS_FILES'.
9055
a55e30b5
SM
90562020-04-28 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * syscalls/update-freebsd.sh: Add double quotes.
9059
2b2fbab8
TT
90602020-04-28 Tom Tromey <tom@tromey.com>
9061
9062 * NEWS: Update.
9063 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9064 (cmdpy_init): Allow class_tui.
9065
a65189c9
TV
90662020-04-28 Mark Williams <mark@myosotissp.com>
9067
9068 PR gdb/24480
9069 * dwarf2read.c: Add missing assingments to list_in_scope when
9070 start_symtab was already called.
9071
1b95cdb7
SM
90722020-04-28 Simon Marchi <simon.marchi@efficios.com>
9073
9074 PR gdb/25881
9075 * dwarf2/read.c (offset_map_type): Use
9076 gdb:hash_enum<sect_offset> as hash function.
9077
15cd93d0
TV
90782020-04-28 Tom de Vries <tdevries@suse.de>
9079
9080 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9081 with DW_AT_signature.
9082
1eb39914
SM
90832020-04-27 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * configure.ac: Remove check for fs_base/gs_base in
9086 user_regs_struct.
9087 * configure: Re-generate.
9088 * config.in: Re-generate.
9089 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9090 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9091 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9092
991a3e2e
LM
90932020-04-27 Luis Machado <luis.machado@linaro.org>
9094
9095 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9096 problematic inline frame unwinding situation.
9097 * frame.c (frame_id_computed_p): New function.
9098 * frame.h (frame_id_computed_p): New prototype.
9099
361ba0e8
TT
91002020-04-26 Tom Tromey <tom@tromey.com>
9101
9102 * command.h (enum command_class) <class_pseudo>: Remove.
9103
bc3609fd
PW
91042020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9105
9106 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9107 and whitespace.
9108
b9771db7
KR
91092020-04-25 Kamil Rytarowski <n54@gmx.com>
9110
ec16513e
SM
9111 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9112 `PT_GET_PROCESS_STATE' block.
b9771db7 9113
7151c1af
TT
91142020-04-24 Tom Tromey <tom@tromey.com>
9115
9116 * symtab.h (symbol_get_demangled_name): Don't declare.
9117 * symtab.c (symbol_get_demangled_name): Remove.
9118 (general_symbol_info::natural_name)
9119 (general_symbol_info::demangled_name): Update.
9120
906bb4c5
TT
91212020-04-24 Tom Tromey <tom@tromey.com>
9122
9123 PR rust/25025:
9124 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9125
bcfe6157
TT
91262020-04-24 Tom Tromey <tom@tromey.com>
9127
9128 PR symtab/12707:
9129 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9130 exists.
9131 (new_symbol): Likewise.
9132 * compile/compile-object-load.c (get_out_value_type): Use
9133 symbol_matches_search_name.
9134
f049a313
TT
91352020-04-24 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2/read.c (add_partial_symbol): Do not call
9138 compute_and_set_names.
9139
76e288d1
TT
91402020-04-24 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9143 overload.
9144
2467f4f6
TT
91452020-04-24 Tom Tromey <tom@tromey.com>
9146
9147 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9148 (add_psymbol_to_list): New overload. Make old overload call new
9149 one.
9150 * psympriv.h (add_psymbol_to_list): New overload.
9151
e61108c9
TT
91522020-04-24 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (partial_die_info::read) <case
9155 DW_AT_linkage_name>: Use value_as_string.
9156 (dwarf2_string_attr): Use value_as_string.
9157 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9158 method.
9159 * dwarf2/attribute.c (attribute::value_as_string): New method.
9160
8c87a452
TT
91612020-04-24 Tom Tromey <tom@tromey.com>
9162
9163 * symtab.c (general_symbol_info::natural_name)
9164 (general_symbol_info::demangled_name): Check for language_rust.
9165
787de330
TT
91662020-04-24 Tom Tromey <tom@tromey.com>
9167
9168 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9169 (dwarf2_physname): ... from here.
9170 (partial_die_info::read): Add Rust "{" hack.
9171
ff985671
TT
91722020-04-24 Tom Tromey <tom@tromey.com>
9173
9174 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9175 method.
9176 (symbol_set_demangled_name): Don't declare.
9177 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9178 symbol_set_demangled_name.
9179 (general_symbol_info::set_language)
9180 (general_symbol_info::compute_and_set_names): Update.
9181 * minsyms.c (minimal_symbol_reader::install): Update.
9182 * dwarf2/read.c (new_symbol): Update.
9183
1acda803
TT
91842020-04-24 Tom Tromey <tromey@adacore.com>
9185
9186 PR python/23662:
9187 * python/py-type.c (convert_field): Handle
9188 FIELD_LOC_KIND_DWARF_BLOCK.
9189 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9190 (typy_get_dynamic): Nw function.
9191 (type_object_getset): Add "dynamic".
9192 * NEWS: Add entry.
9193
d656f129
TT
91942020-04-24 Tom Tromey <tromey@adacore.com>
9195
9196 * ada-typeprint.c (print_choices, print_variant_part)
9197 (print_record_field_types_dynamic): New functions.
9198 (print_record_field_types): Use print_record_field_types_dynamic.
9199
7d79de9a
TT
92002020-04-24 Tom Tromey <tromey@adacore.com>
9201
9202 * dwarf2/read.c (handle_data_member_location): New overload.
9203 (dwarf2_add_field): Use it.
9204 (decode_locdesc): Add "computed" parameter. Update comment.
9205 * gdbtypes.c (is_dynamic_type_internal): Also look for
9206 FIELD_LOC_KIND_DWARF_BLOCK.
9207 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9208 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9209 virtual base classes.
9210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9211 FIELD_LOC_KIND_DWARF_BLOCK.
9212
f8e89861
TT
92132020-04-24 Tom Tromey <tromey@adacore.com>
9214
9215 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9216 * gdbtypes.c (is_dynamic_type_internal): Check
9217 TYPE_HAS_DYNAMIC_LENGTH.
9218 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9219 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9220 New macros.
9221 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9222 constant.
9223
9c6a1327
TT
92242020-04-24 Tom Tromey <tromey@adacore.com>
9225
9226 * dwarf2/read.c (struct variant_field): Rewrite.
9227 (struct variant_part_builder): New.
9228 (struct nextfield): Remove "variant" field. Add "offset".
9229 (struct field_info): Add "current_variant_part" and
9230 "variant_parts".
9231 (alloc_discriminant_info): Remove.
9232 (alloc_rust_variant): New function.
9233 (quirk_rust_enum): Update.
9234 (dwarf2_add_field): Set "offset" member. Don't handle
9235 DW_TAG_variant_part.
9236 (offset_map_type): New typedef.
9237 (convert_variant_range, create_one_variant)
9238 (create_one_variant_part, create_variant_parts)
9239 (add_variant_property): New functions.
9240 (dwarf2_attach_fields_to_type): Call add_variant_property.
9241 (read_structure_type): Don't handle DW_TAG_variant_part.
9242 (handle_variant_part, handle_variant): New functions.
9243 (handle_struct_member_die): Use them.
9244 (process_structure_scope): Don't handle variant parts.
9245 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9246 (struct discriminant_info): Remove.
9247 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9248 (struct main_type) <flag_discriminated_union>: Remove.
9249 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9250 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9251 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9252 Update.
9253 * valops.c (value_union_variant): Remove.
9254 * value.h (value_union_variant): Don't declare.
9255
b249d2c2
TT
92562020-04-24 Tom Tromey <tromey@adacore.com>
9257
9258 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9259 (ada_value_primitive_packed_val): Update.
9260 * ada-valprint.c (ada_value_print_1): Update.
9261 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9262 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9263 just an address. Use evaluate_for_locexpr_baton.
9264 (dwarf2_evaluate_property): Update.
9265 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9266 array_view.
9267 * findvar.c (default_read_var_value): Update.
9268 * gdbtypes.c (compute_variant_fields_inner)
9269 (resolve_dynamic_type_internal): Update.
9270 (resolve_dynamic_type): Change type of valaddr parameter.
9271 * gdbtypes.h (resolve_dynamic_type): Update.
9272 * valarith.c (value_subscripted_rvalue): Update.
9273 * value.c (value_from_contents_and_address): Update.
9274
61122aa9
TT
92752020-04-24 Tom Tromey <tromey@adacore.com>
9276
9277 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9278 "push_initial_value" parameter.
9279 (dwarf2_evaluate_property): Likewise.
9280 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9281
ef83a141
TT
92822020-04-24 Tom Tromey <tromey@adacore.com>
9283
9284 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9285 (variant::matches, compute_variant_fields_recurse)
9286 (compute_variant_fields_inner, compute_variant_fields): New
9287 functions.
9288 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9289 Use resolved_type after type is made.
9290 (operator==): Add new cases.
9291 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9292 (struct discriminant_range, struct variant, struct variant_part):
9293 New.
9294 (union dynamic_prop_data) <variant_parts, original_type>: New
9295 members.
9296 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9297 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9298 constants.
9299 * value.c (unpack_bits_as_long): Now public.
9300 * value.h (unpack_bits_as_long): Declare.
9301
675127ec
TT
93022020-04-24 Tom Tromey <tromey@adacore.com>
9303
9304 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9305 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9306
9852ceef
HD
93072020-04-24 Hannes Domani <ssbssa@yahoo.de>
9308
9309 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9310
7632c6ce
KR
93112020-04-24 Kamil Rytarowski <n54@gmx.com>
9312
9313 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9314 (remove_fork_catchpoint, post_startup_inferior)
9315 (post_attach): Move...
9316 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9317 (remove_fork_catchpoint, post_startup_inferior)
9318 (post_attach): ...here.
9319 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9320 (remove_fork_catchpoint, post_startup_inferior)
9321 (post_attach): Move...
9322 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9323 (remove_fork_catchpoint, post_startup_inferior)
9324 (post_attach): ...here.
9325
7be2bb4f
TT
93262020-04-24 Tom Tromey <tromey@adacore.com>
9327
9328 * nat/windows-nat.h (struct windows_thread_info)
9329 <pc_adjusted>: New member.
9330 * windows-nat.c (windows_fetch_one_register): Check
9331 pc_adjusted.
9332 (windows_nat_target::get_windows_debug_event)
9333 (windows_nat_target::wait): Set pc_adjusted.
9334
f80cb3b4
TV
93352020-04-24 Tom de Vries <tdevries@suse.de>
9336
9337 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9338 Run gdb-add-index inside temp dir.
9339
29514b87
TT
93402020-04-23 Tom Tromey <tromey@adacore.com>
9341
9342 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9343 in loop.
9344
5939967b
LM
93452020-04-23 Luis Machado <luis.machado@linaro.org>
9346
9347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9348 get_frame_register instead of gdbarch_unwind_pc.
9349
70bc38f5
TV
93502020-04-23 Tom de Vries <tdevries@suse.de>
9351
9352 * symtab.c (lookup_global_symbol): Prefer def over decl.
9353
de82891c
TV
93542020-04-23 Tom de Vries <tdevries@suse.de>
9355
9356 PR symtab/25807
9357 * block.c (best_symbol, better_symbol): Promote to external.
9358 * block.h (best_symbol, better_symbol): Declare.
9359 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9360 decl.
9361
ecc6c606
TT
93622020-04-23 Tom Tromey <tromey@adacore.com>
9363
9364 PR ada/25837:
9365 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9366 "const char *", not a "const std::string &".
9367 <name_and_matcher::operator==>: Update.
9368 * unittests/lookup_name_info-selftests.c: Change type of
9369 "result".
9370
740480b8
TT
93712020-04-23 Tom Tromey <tom@tromey.com>
9372
9373 * inferior.h (iterate_over_inferiors): Don't declare.
9374 * inferior.c (iterate_over_inferiors): Remove.
9375 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9376 Remove.
9377 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9378 use iterate_over_inferiors.
9379 (darwin_resume_inferior_it)
9380 (struct resume_inferior_threads_param)
9381 (darwin_resume_inferior_threads_it): Remove.
9382 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9383
ae3ab1f0
TV
93842020-04-23 Tom de Vries <tdevries@suse.de>
9385
9386 * blockframe.c (find_pc_partial_function): Use
9387 find_pc_sect_compunit_symtab rather than
9388 objfile->sf->qf->find_pc_sect_compunit_symtab.
9389
317d2668
TV
93902020-04-22 Tom de Vries <tdevries@suse.de>
9391
9392 PR symtab/25764
9393 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9394 in psymtabs.
9395
eea9e357
TV
93962020-04-22 Tom de Vries <tdevries@suse.de>
9397
9398 PR symtab/25801
9399 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9400 symtabs.
9401
3d5afab3
TV
94022020-04-22 Tom de Vries <tdevries@suse.de>
9403
9404 PR symtab/25700
9405 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9406 CU if already created.
9407
d43b7a2d
TBA
94082020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9409
9410 * infrun.c (displaced_step_fixup): Switch to the event_thread
9411 before calling displaced_step_restore, not after.
9412
d89edf9b
MM
94132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9414
9415 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9416 its inferior is not recorded by us.
9417 (record_btrace_target_open): Replace call to
9418 all_non_exited_threads () with call to current_inferior
9419 ()->non_exited_threads ().
9420 (record_btrace_target::stop_recording): Likewise.
9421 (record_btrace_target::close): Likewise.
9422 (record_btrace_target::wait): Likewise.
9423 (record_btrace_target::record_stop_replaying): Likewise.
9424
5897fd49
MM
94252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9426
9427 * btrace.c (btrace_enable): Throw an error on double enables and
9428 when enabling recording fails.
9429 (btrace_disable): Throw an error if the thread is not recorded.
9430
1a476b6d
MM
94312020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9432
9433 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9434 request if we do not have a thread_info.
9435
4778a5f8
TV
94362020-04-21 Tom de Vries <tdevries@suse.de>
9437
9438 PR gdb/25471
9439 * thread.c
9440 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9441 exception in get_frame_id.
9442
0fa7617d
TT
94432020-04-20 Tom Tromey <tromey@adacore.com>
9444
9445 * python/python.c (struct gdbpy_event): Mark move constructor as
9446 noexcept.
9447 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9448 constructor as noexcept.
9449 * completer.h (struct completion_result): Mark move constructor as
9450 noexcept.
9451 * completer.c (completion_result::completion_result): Use
9452 initialization style. Don't call reset_match_list.
9453
ad23bda0
MS
94542020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9455
9456 * MAINTAINERS (Write After Approval): Add myself.
9457
45e1f031
TT
94582020-04-18 Tom Tromey <tom@tromey.com>
9459
9460 * windows-tdep.c (init_w32_command_list)
9461 (w32_prefix_command_valid): Restore.
9462 (_initialize_windows_tdep): Call init_w32_command_list.
9463
08feed99
TT
94642020-04-18 Tom Tromey <tom@tromey.com>
9465
9466 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9467 * value.c (value_fn_field): Update.
9468 * valops.c (find_function_in_inferior)
9469 (value_allocate_space_in_inferior): Update.
9470 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9471 Update.
9472 * tui/tui-source.c (tui_source_window::set_contents): Update.
9473 * symtab.c (lookup_global_or_static_symbol)
9474 (find_function_start_sal_1, skip_prologue_sal)
9475 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9476 * symmisc.c (dump_msymbols, dump_symtab_1)
9477 (maintenance_print_one_line_table): Update.
9478 * symfile.c (init_entry_point_info, section_is_mapped)
9479 (list_overlays_command, simple_read_overlay_table)
9480 (simple_overlay_update_1): Update.
9481 * stap-probe.c (handle_stap_probe): Update.
9482 * stabsread.c (dbx_init_float_type, define_symbol)
9483 (read_one_struct_field, read_enum_type, read_range_type): Update.
9484 * source.c (info_line_command): Update.
9485 * python/python.c (gdbpy_source_objfile_script)
9486 (gdbpy_execute_objfile_script): Update.
9487 * python/py-type.c (save_objfile_types): Update.
9488 * python/py-objfile.c (py_free_objfile): Update.
9489 * python/py-inferior.c (python_new_objfile): Update.
9490 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9491 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9492 (maintenance_check_psymtabs): Update.
9493 * printcmd.c (info_address_command): Update.
9494 * objfiles.h (struct objfile) <arch>: New method, from
9495 get_objfile_arch.
9496 (get_objfile_arch): Don't declare.
9497 * objfiles.c (get_objfile_arch): Remove.
9498 (filter_overlapping_sections): Update.
9499 * minsyms.c (msymbol_is_function): Update.
9500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9501 (output_nondebug_symbol): Update.
9502 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9503 (mdebug_expand_psymtab): Update.
9504 * machoread.c (macho_add_oso_symfile): Update.
9505 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9506 Update.
9507 * linux-fork.c (checkpoint_command): Update.
9508 * linespec.c (convert_linespec_to_sals): Update.
9509 * jit.c (finalize_symtab): Update.
9510 * infrun.c (insert_exception_resume_from_probe): Update.
9511 * ia64-tdep.c (ia64_find_unwind_table): Update.
9512 * hppa-tdep.c (internalize_unwinds): Update.
9513 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9514 Update.
9515 * gcore.c (call_target_sbrk): Update.
9516 * elfread.c (record_minimal_symbol, elf_symtab_read)
9517 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9518 (elf_gnu_ifunc_resolve_by_got): Update.
9519 * dwarf2/read.c (create_addrmap_from_index)
9520 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9521 (read_debug_names_from_section)
9522 (process_psymtab_comp_unit_reader, add_partial_symbol)
9523 (add_partial_subprogram, process_full_comp_unit)
9524 (read_file_scope, read_func_scope, read_lexical_block_scope)
9525 (read_call_site_scope, dwarf2_ranges_read)
9526 (dwarf2_record_block_ranges, dwarf2_add_field)
9527 (mark_common_block_symbol_computed, read_tag_pointer_type)
9528 (read_tag_string_type, dwarf2_init_float_type)
9529 (dwarf2_init_complex_target_type, read_base_type)
9530 (partial_die_info::read, partial_die_info::read)
9531 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9532 (dwarf2_fetch_die_loc_sect_off): Update.
9533 * dwarf2/loc.c (dwarf2_find_location_expression)
9534 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9535 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9536 (dwarf2_loc_desc_get_symbol_read_needs)
9537 (locexpr_describe_location_piece, locexpr_describe_location_1)
9538 (loclist_describe_location): Update.
9539 * dwarf2/index-write.c (write_debug_names): Update.
9540 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9541 * dtrace-probe.c (dtrace_process_dof): Update.
9542 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9543 (process_one_symbol): Update.
9544 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9545 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9546 (coff_read_enum_type): Update.
9547 * cli/cli-cmds.c (edit_command, list_command): Update.
9548 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9549 * breakpoint.c (create_overlay_event_breakpoint)
9550 (create_longjmp_master_breakpoint)
9551 (create_std_terminate_master_breakpoint)
9552 (create_exception_master_breakpoint, get_sal_arch): Update.
9553 * block.c (block_gdbarch): Update.
9554 * annotate.c (annotate_source_line): Update.
9555
0743fc83
TT
95562020-04-17 Tom Tromey <tromey@adacore.com>
9557
9558 * auto-load.c (show_auto_load_cmd): Remove.
9559 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9560 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9561 (maintenance_print_arc_command): Remove.
9562 * tui/tui-win.c (tui_command): Remove.
9563 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9564 * tui/tui-layout.c (tui_layout_command): Remove.
9565 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9566 * python/python.c (user_set_python, user_show_python): Remove.
9567 (_initialize_python): Use add_basic_prefix_cmd,
9568 add_show_prefix_cmd.
9569 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9570 (install_gdb_commands): Use add_basic_prefix_cmd,
9571 add_show_prefix_cmd.
9572 (info_guile_command): Remove.
9573 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9574 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9575 add_show_prefix_cmd.
9576 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9577 Remove do_set and do_show parameters.
9578 * cli/cli-style.c (set_style, show_style): Remove.
9579 (_initialize_cli_style): Use add_basic_prefix_cmd,
9580 add_show_prefix_cmd.
9581 (cli_style_option::add_setshow_commands): Remove do_set and
9582 do_show parameters.
9583 (cli_style_option::add_setshow_commands): Use
9584 add_basic_prefix_cmd, add_show_prefix_cmd.
9585 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9586 (set_style_name): Remove.
9587 * cli/cli-dump.c (dump_command, append_command): Remove.
9588 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9589 (tekhex_dump_command, binary_dump_command)
9590 (binary_append_command): Remove.
9591 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9592 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9593 (init_w32_command_list): Remove; move into ...
9594 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9595 * valprint.c (set_print, show_print, set_print_raw)
9596 (show_print_raw): Remove.
9597 (_initialize_valprint): Use add_basic_prefix_cmd,
9598 add_show_prefix_cmd.
9599 * typeprint.c (set_print_type, show_print_type): Remove.
9600 (_initialize_typeprint): Use add_basic_prefix_cmd,
9601 add_show_prefix_cmd.
9602 * record.c (set_record_command, show_record_command): Remove.
9603 (_initialize_record): Use add_basic_prefix_cmd,
9604 add_show_prefix_cmd.
9605 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9606 add_show_prefix_cmd.
9607 (info_command, show_command, set_debug, show_debug): Remove.
9608 * top.h (set_history, show_history): Don't declare.
9609 * top.c (set_history, show_history): Remove.
9610 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9611 (unset_tdesc_cmd): Remove.
9612 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9613 add_show_prefix_cmd.
9614 * symtab.c (info_module_command): Remove.
9615 (_initialize_symtab): Use add_basic_prefix_cmd.
9616 * symfile.c (overlay_command): Remove.
9617 (_initialize_symfile): Use add_basic_prefix_cmd.
9618 * sparc64-tdep.c (info_adi_command): Remove.
9619 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9620 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9621 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9622 add_show_prefix_cmd.
9623 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9624 (_initialize_serial): Use add_basic_prefix_cmd,
9625 add_show_prefix_cmd.
9626 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9627 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9628 add_show_prefix_cmd.
9629 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9630 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9631 add_show_prefix_cmd.
9632 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9633 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9634 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9635 add_show_prefix_cmd.
9636 * remote.c (remote_command, set_remote_cmd): Remove.
9637 (_initialize_remote): Use add_basic_prefix_cmd.
9638 * record-full.c (set_record_full_command)
9639 (show_record_full_command): Remove.
9640 (_initialize_record_full): Use add_basic_prefix_cmd,
9641 add_show_prefix_cmd.
9642 * record-btrace.c (cmd_set_record_btrace)
9643 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9644 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9645 (cmd_show_record_btrace_pt): Remove.
9646 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9647 add_show_prefix_cmd.
9648 * ravenscar-thread.c (set_ravenscar_command)
9649 (show_ravenscar_command): Remove.
9650 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9651 add_show_prefix_cmd.
9652 * mips-tdep.c (show_mips_command, set_mips_command)
9653 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9654 add_show_prefix_cmd.
9655 * maint.c (maintenance_command, maintenance_info_command)
9656 (maintenance_check_command, maintenance_print_command)
9657 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9658 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9659 add_show_prefix_cmd.
9660 (show_per_command_cmd): Remove.
9661 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9662 Remove.
9663 (maintenance_show_test_settings_cmd): Remove.
9664 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9665 add_show_prefix_cmd.
9666 * maint-test-options.c (maintenance_test_options_command):
9667 Remove.
9668 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9669 * macrocmd.c (macro_command): Remove
9670 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9671 * language.c (set_check, show_check): Remove.
9672 (_initialize_language): Use add_basic_prefix_cmd,
9673 add_show_prefix_cmd.
9674 * infcmd.c (unset_command): Remove.
9675 (_initialize_infcmd): Use add_basic_prefix_cmd.
9676 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9677 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9678 add_show_prefix_cmd.
9679 * go32-nat.c (go32_info_dos_command): Remove.
9680 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9681 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9682 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9683 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9684 (_initialize_frame): Use add_basic_prefix_cmd,
9685 add_show_prefix_cmd.
9686 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9687 (_initialize_dcache): Use add_basic_prefix_cmd,
9688 add_show_prefix_cmd.
9689 * cp-support.c (maint_cplus_command): Remove.
9690 (_initialize_cp_support): Use add_basic_prefix_cmd.
9691 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9692 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9693 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9694 add_basic_prefix_cmd, add_show_prefix_cmd.
9695 * breakpoint.c (save_command): Remove.
9696 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9697 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9698 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9699 add_show_prefix_cmd.
9700 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9701 (set_ada_command, show_ada_command): Remove.
9702 (_initialize_ada_language): Use add_basic_prefix_cmd,
9703 add_show_prefix_cmd.
9704 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9705
3557f442
KR
97062020-04-16 Kamil Rytarowski <n54@gmx.com>
9707
9708 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9709 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9710
16197208
SM
97112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9712
9713 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9714 warning messages.
9715
00ac85d3
SM
97162020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9717
9718 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9719 import table is not at beginning of .idata section.
9720
381ce63f
PA
97212020-04-16 Pedro Alves <palves@redhat.com>
9722
9723 * inferior.c (delete_inferior): Use delete operator directly
9724 instead of delete_program_space.
9725 * progspace.c (add_program_space): New, factored out from
9726 program_space::program_space.
9727 (remove_program_space): New, factored out from
9728 delete_program_space.
9729 (program_space::program_space): Remove intro comment. Rewrite.
9730 (program_space::~program_space): Remove intro comment. Call
9731 remove_program_space.
9732 (delete_program_space): Delete.
9733 * progspace.h (program_space::program_space): Make explicit. Move
9734 intro comment here, adjusted.
9735 (program_space::~program_space): Move intro comment here,
9736 adjusted.
9737 (delete_program_space): Remove.
9738
a010605f
TT
97392020-04-16 Tom Tromey <tromey@adacore.com>
9740
9741 * windows-nat.c (windows_nat::handle_access_violation): New
9742 function.
9743 * nat/windows-nat.h (handle_access_violation): Declare.
9744 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9745 windows-nat.c. Call handle_access_violation.
9746
efba5c23
TV
97472020-04-16 Tom de Vries <tdevries@suse.de>
9748
9749 PR symtab/25791
9750 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9751 CUs without psymtab.
9752
97ed802d
KB
97532020-04-16 Kevin Buettner <kevinb@redhat.com>
9754
9755 * python/python.c (do_start_initialization): Don't call
9756 PyEval_InitThreads for Python 3.9 and beyond.
9757
c7d64809
KR
97582020-04-15 Kamil Rytarowski <n54@gmx.com>
9759
9760 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9761 thread functions.
9762 (obsd_nat_target::wait): Likewise.
9763
ce127a96
TT
97642020-04-15 Tom Tromey <tromey@adacore.com>
9765
9766 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9767 (DEBUG_EXCEPT): Use debug_printf.
9768
99f1bc6a
AB
97692020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9770
9771 * completer.c (class completion_tracker::completion_hash_entry)
9772 <hash_name>: New member function.
9773 (completion_tracker::discard_completions): New callback to hash a
9774 completion_hash_entry, pass this to htab_create_alloc.
9775
a0e9b532
JT
97762016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9777
9778 * windows-nat.c (windows_make_so): Warn rather than stopping with
9779 an error if realpath() fails.
9780
06ca5dd4
KR
97812020-04-14 Kamil Rytarowski <n54@gmx.com>
9782
9783 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9784 (nbsd_nat_target::info_proc): Add do_status.
9785
194d088f
TV
97862020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9787 Tom de Vries <tdevries@suse.de>
9788
9789 PR symtab/25718
9790 * psympriv.h (struct partial_symtab::read_symtab)
9791 (struct partial_symtab::expand_psymtab)
9792 (struct partial_symtab::read_dependencies): Update comments.
9793 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9794 read_symtab for includer.
9795 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9796 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9797 (struct dwarf2_include_psymtab::m_readin): Remove.
9798 (struct dwarf2_include_psymtab::includer): New member function.
9799 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9800
c1a66c06
TV
98012020-04-14 Tom de Vries <tdevries@suse.de>
9802
9803 PR symtab/25720
9804 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9805 with NULL symbol_matcher and lookup_name.
9806 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9807 and lookup_name.
9808 * dwarf2/read.c (dw2_expand_symtabs_matching)
9809 (dw2_debug_names_expand_symtabs_matching): Same.
9810 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9811 Make lookup_name a pointer. Update comment.
9812 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9813 lookup_name being a pointer.
9814 * symfile.c (expand_symtabs_matching): Same.
9815 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9816 * linespec.c (iterate_over_all_matching_symtabs): Same.
9817
400b5eca
TT
98182020-04-13 Tom Tromey <tom@tromey.com>
9819
9820 * run-on-main-thread.c: Update include.
9821 * unittests/main-thread-selftests.c: Update include.
9822 * tui/tui-win.c: Update include.
9823 * tui/tui-io.c: Update include.
9824 * tui/tui-interp.c: Update include.
9825 * tui/tui-hooks.c: Update include.
9826 * top.h: Update include.
9827 * top.c: Update include.
9828 * ser-base.c: Update include.
9829 * remote.c: Update include.
9830 * remote-notif.c: Update include.
9831 * remote-fileio.c: Update include.
9832 * record-full.c: Update include.
9833 * record-btrace.c: Update include.
9834 * python/python.c: Update include.
9835 * posix-hdep.c: Update include.
9836 * mingw-hdep.c: Update include.
9837 * mi/mi-main.c: Update include.
9838 * mi/mi-interp.c: Update include.
9839 * main.c: Update include.
9840 * linux-nat.c: Update include.
9841 * interps.c: Update include.
9842 * infrun.c: Update include.
9843 * inf-loop.c: Update include.
9844 * event-top.c: Update include.
9845 * event-loop.c: Move to ../gdbsupport/.
9846 * event-loop.h: Move to ../gdbsupport/.
9847 * async-event.h: Update include.
9848 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9849
93b54c8e
TT
98502020-04-13 Tom Tromey <tom@tromey.com>
9851
9852 * tui/tui-win.c: Include async-event.h.
9853 * remote.c: Include async-event.h.
9854 * remote-notif.c: Include async-event.h.
9855 * record-full.c: Include async-event.h.
9856 * record-btrace.c: Include async-event.h.
9857 * infrun.c: Include async-event.h.
9858 * event-top.c: Include async-event.h.
9859 * event-loop.h: Move some declarations to async-event.h.
9860 * event-loop.c: Don't include ser-event.h or top.h. Move some
9861 code to async-event.c.
9862 * async-event.h: New file.
9863 * async-event.c: New file.
9864 * Makefile.in (COMMON_SFILES): Add async-event.c.
9865 (HFILES_NO_SRCDIR): Add async-event.h.
9866
c1cd3163
TT
98672020-04-13 Tom Tromey <tom@tromey.com>
9868
9869 * utils.c (flush_streams): New function.
9870 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9871
29f2bf4f
TT
98722020-04-13 Tom Tromey <tom@tromey.com>
9873
9874 * event-loop.c (handle_file_event): Use warning, not
9875 printf_unfiltered.
9876
98029d02
TT
98772020-04-13 Tom Tromey <tom@tromey.com>
9878
9879 * event-loop.c: Include <chrono>.
9880
06cc9596
TT
98812020-04-13 Tom Tromey <tom@tromey.com>
9882
9883 * gdb_select.h: Move to ../gdbsupport/.
9884 * event-loop.c: Update include path.
9885 * top.c: Update include path.
9886 * ser-base.c: Update include path.
9887 * ui-file.c: Update include path.
9888 * ser-tcp.c: Update include path.
9889 * guile/scm-ports.c: Update include path.
9890 * posix-hdep.c: Update include path.
9891 * ser-unix.c: Update include path.
9892 * gdb_usleep.c: Update include path.
9893 * mingw-hdep.c: Update include path.
9894 * inflow.c: Update include path.
9895 * infrun.c: Update include path.
9896 * event-top.c: Update include path.
9897
8ae8e197
TT
98982020-04-13 Tom Tromey <tom@tromey.com>
9899
9900 * configure: Rebuild.
9901 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9902
58cf28e8
TT
99032020-04-13 Tom Tromey <tom@tromey.com>
9904
9905 * event-loop.h (start_event_loop): Don't declare.
9906 * event-loop.c (start_event_loop): Move...
9907 * main.c (start_event_loop): ...here. Now static.
9908
b7f999ae
SDJ
99092020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9910
9911 * MAINTAINERS: Update my email address.
9912
1085dfd4
KR
99132020-04-12 Kamil Rytarowski <n54@gmx.com>
9914
9915 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9916 IP_ALL.
9917
49d1d1f5
KR
99182020-04-12 Kamil Rytarowski <n54@gmx.com>
9919
9920 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9921 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9922
b4848d2a
KR
99232020-04-12 Kamil Rytarowski <n54@gmx.com>
9924
9925 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9926 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9927
51c133d5
KR
99282020-04-12 Kamil Rytarowski <n54@gmx.com>
9929
9930 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9931
54b8cbd0
KR
99322020-04-11 Kamil Rytarowski <n54@gmx.com>
9933
9934 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9935 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9936 (nbsd_nat_target::info_proc): New functions.
9937 * nbsd-nat.c (kinfo_get_vmmap): New function.
9938 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9939 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9940 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9941 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9942 functions.
9943 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9944 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9945 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9946 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9947 (KINFO_VME_FLAG_GROWS_DOWN): New.
9948
cf83625d
AS
99492020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9950
9951 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9952 bit shift.
9953
0c4311ab
TT
99542020-04-10 Tom Tromey <tromey@adacore.com>
9955
9956 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9957
3e65b3e9
TT
99582020-04-10 Tom Tromey <tromey@adacore.com>
9959
9960 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9961 separate debug files.
9962
13302e95
HD
99632020-04-10 Hannes Domani <ssbssa@yahoo.de>
9964
9965 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9966 Move to...
9967 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9968 ... here.
9969 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9970 Check for STATUS_WX86_BREAKPOINT.
9971 (windows_nat_target::wait): Same.
9972
bdfc1e8a
TV
99732020-04-10 Tom de Vries <tdevries@suse.de>
9974
9975 PR cli/25808
9976 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9977
f4460aec
SM
99782020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9981 (Write After Approval): Remove Tom de Vries.
9982
a25198bb
BE
99832020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9984
9985 revert partially:
9986 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9987
aac66a4c
SM
9988 * buildsym.c (record_line): Fix undefined behavior and preserve
9989 lines at eof.
a25198bb 9990
206c98a6
KR
99912020-04-09 Kamil Rytarowski <n54@gmx.com>
9992
9993 * auxv.h (svr4_auxv_parse): New.
9994 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9995 and generic_auxv_parse.
9996 (svr4_auxv_parse): Add.
9997 * obsd-tdep.c: Include "auxv.h".
9998 (obsd_auxv_parse): Remove.
9999 (obsd_init_abi): Remove comment.
10000 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10001 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10002 * nbsd-tdep.c: Include "auxv.h".
10003 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10004
71fbdbaf
TT
100052020-04-08 Tom Tromey <tromey@adacore.com>
10006
10007 * nat/windows-nat.h (last_wait_event): Don't declare.
10008 (wait_for_debug_event): Update comment.
10009 * nat/windows-nat.c (last_wait_event): Now static.
10010
2c1d95e8
TT
100112020-04-08 Tom Tromey <tromey@adacore.com>
10012
10013 * windows-nat.c (wait_for_debug_event): Move to
10014 nat/windows-nat.c.
10015 * nat/windows-nat.h (wait_for_debug_event): Declare.
10016 * nat/windows-nat.c (wait_for_debug_event): Move from
10017 windows-nat.c. No longer static.
10018
d2977bc4
TT
100192020-04-08 Tom Tromey <tromey@adacore.com>
10020
10021 * windows-nat.c (get_windows_debug_event): Use
10022 fetch_pending_stop.
10023 * nat/windows-nat.h (fetch_pending_stop): Declare.
10024 * nat/windows-nat.c (fetch_pending_stop): New function.
10025
e758e19c
TT
100262020-04-08 Tom Tromey <tromey@adacore.com>
10027
10028 * windows-nat.c (windows_continue): Use matching_pending_stop and
10029 continue_last_debug_event.
10030 * nat/windows-nat.h (matching_pending_stop)
10031 (continue_last_debug_event): Declare.
10032 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10033 (matching_pending_stop, continue_last_debug_event): New
10034 functions.
10035
8d30e395
TT
100362020-04-08 Tom Tromey <tromey@adacore.com>
10037
10038 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10039 (handle_exception_result): Move to nat/windows-nat.h.
10040 (DEBUG_EXCEPTION_SIMPLE): Remove.
10041 (windows_nat::handle_ms_vc_exception): New function.
10042 (handle_exception): Move to nat/windows-nat.c.
10043 (get_windows_debug_event): Update.
10044 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10045 nat/windows-nat.c.
10046 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10047 (handle_exception_result): Move from windows-nat.c.
10048 (handle_exception): Declare.
10049 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10050 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10051 windows-nat.c.
10052
29de418d
TT
100532020-04-08 Tom Tromey <tromey@adacore.com>
10054
10055 * windows-nat.c (exception_count, event_count): Remove.
10056 (handle_exception, get_windows_debug_event)
10057 (do_initial_windows_stuff): Update.
10058
a816ba18
TT
100592020-04-08 Tom Tromey <tromey@adacore.com>
10060
10061 * windows-nat.c (windows_nat::handle_load_dll)
10062 (windows_nat::handle_unload_dll): Rename. No longer static.
10063 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10064 Declare.
10065
a00caa12
TT
100662020-04-08 Tom Tromey <tromey@adacore.com>
10067
10068 * complaints.h (stop_whining): Declare at top-level.
10069 (complaint): Don't declare stop_whining.
10070
d41b524f
TT
100712020-04-08 Tom Tromey <tromey@adacore.com>
10072
10073 * windows-nat.c (windows_nat::handle_output_debug_string):
10074 Rename. No longer static.
10075 * nat/windows-nat.h (handle_output_debug_string): Declare.
10076
3c76026d
TT
100772020-04-08 Tom Tromey <tromey@adacore.com>
10078
10079 * windows-nat.c (current_process_handle, current_process_id)
10080 (main_thread_id, last_sig, current_event, last_wait_event)
10081 (current_windows_thread, desired_stop_thread_id, pending_stops)
10082 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10083 (display_selectors, fake_create_process)
10084 (get_windows_debug_event): Update.
10085 * nat/windows-nat.h (current_process_handle, current_process_id)
10086 (main_thread_id, last_sig, current_event, last_wait_event)
10087 (current_windows_thread, desired_stop_thread_id, pending_stops)
10088 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10089 * nat/windows-nat.c (current_process_handle, current_process_id)
10090 (main_thread_id, last_sig, current_event, last_wait_event)
10091 (current_windows_thread, desired_stop_thread_id, pending_stops)
10092 (siginfo_er): New globals. Move from windows-nat.c.
10093
9d8679cc
TT
100942020-04-08 Tom Tromey <tromey@adacore.com>
10095
10096 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10097 (handle_load_dll): Update.
10098 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10099
28688adf
TT
101002020-04-08 Tom Tromey <tromey@adacore.com>
10101
10102 * windows-nat.c (enum thread_disposition_type): Move to
10103 nat/windows-nat.h.
10104 (windows_nat::thread_rec): Rename from thread_rec. No longer
10105 static.
10106 (windows_add_thread, windows_nat_target::fetch_registers)
10107 (windows_nat_target::store_registers, handle_exception)
10108 (windows_nat_target::resume, get_windows_debug_event)
10109 (windows_nat_target::get_tib_address)
10110 (windows_nat_target::thread_name)
10111 (windows_nat_target::thread_alive): Update.
10112 * nat/windows-nat.h (enum thread_disposition_type): Move from
10113 windows-nat.c.
10114 (thread_rec): Declare.
10115
4834dad0
TT
101162020-04-08 Tom Tromey <tromey@adacore.com>
10117
10118 * windows-nat.c: Add "using namespace".
10119 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10120 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10121
65bafd5b
TT
101222020-04-08 Tom Tromey <tromey@adacore.com>
10123
10124 * nat/windows-nat.h (struct windows_thread_info): Declare
10125 destructor.
10126 * nat/windows-nat.c (~windows_thread_info): New.
10127
0a4afda3
TT
101282020-04-08 Tom Tromey <tromey@adacore.com>
10129
10130 PR gdb/22992
10131 * windows-nat.c (current_event): Update comment.
10132 (last_wait_event, desired_stop_thread_id): New globals.
10133 (struct pending_stop): New.
10134 (pending_stops): New global.
10135 (windows_nat_target) <stopped_by_sw_breakpoint>
10136 <supports_stopped_by_sw_breakpoint>: New methods.
10137 (windows_fetch_one_register): Add assertions. Adjust PC.
10138 (windows_continue): Handle pending stops. Suspend other threads
10139 when stepping. Use last_wait_event
10140 (wait_for_debug_event): New function.
10141 (get_windows_debug_event): Use wait_for_debug_event. Handle
10142 pending stops. Queue spurious stops.
10143 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10144 (windows_nat_target::kill): Use wait_for_debug_event.
10145 * nat/windows-nat.h (struct windows_thread_info)
10146 <stopped_at_software_breakpoint>: New field.
10147 * nat/windows-nat.c (windows_thread_info::resume): Clear
10148 stopped_at_software_breakpoint.
10149
8e61ebec
TT
101502020-04-08 Tom Tromey <tromey@adacore.com>
10151
10152 * windows-nat.c (enum thread_disposition_type): New.
10153 (thread_rec): Replace "get_context" parameter with "disposition";
10154 change type.
10155 (windows_add_thread, windows_nat_target::fetch_registers)
10156 (windows_nat_target::store_registers, handle_exception)
10157 (windows_nat_target::resume, get_windows_debug_event)
10158 (windows_nat_target::get_tib_address)
10159 (windows_nat_target::thread_name)
10160 (windows_nat_target::thread_alive): Update.
10161
98a03287
TT
101622020-04-08 Tom Tromey <tromey@adacore.com>
10163
10164 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10165 (windows_continue): Use windows_continue::resume.
10166 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10167 resume>: Declare new methods.
10168 * nat/windows-nat.c: New file.
10169 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10170
7c7411bc
TT
101712020-04-08 Tom Tromey <tromey@adacore.com>
10172
10173 * windows-nat.c (windows_add_thread, windows_delete_thread)
10174 (windows_nat_target::fetch_registers)
10175 (windows_nat_target::store_registers, fake_create_process)
10176 (windows_nat_target::resume, windows_nat_target::resume)
10177 (get_windows_debug_event, windows_nat_target::wait)
10178 (windows_nat_target::pid_to_str)
10179 (windows_nat_target::get_tib_address)
10180 (windows_nat_target::get_ada_task_ptid)
10181 (windows_nat_target::thread_name)
10182 (windows_nat_target::thread_alive): Use lwp, not tid.
10183
2950fdf7
TT
101842020-04-08 Tom Tromey <tromey@adacore.com>
10185
10186 * windows-nat.c (handle_exception)
10187 (windows_nat_target::thread_name): Update.
10188 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10189 <name>: Now unique_xmalloc_ptr.
10190
62fe396b
TT
101912020-04-08 Tom Tromey <tromey@adacore.com>
10192
10193 * windows-nat.c (thread_rec)
10194 (windows_nat_target::fetch_registers): Update.
10195 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10196 Update comment.
10197 <debug_registers_changed, reload_context>: Now bool.
10198
e9534bd2
TT
101992020-04-08 Tom Tromey <tromey@adacore.com>
10200
10201 * windows-nat.c (windows_add_thread): Use new.
10202 (windows_init_thread_list, windows_delete_thread): Use delete.
10203 (get_windows_debug_event): Update.
10204 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10205 destructor, and initializers.
10206
ae1f8880
TT
102072020-04-08 Tom Tromey <tromey@adacore.com>
10208
10209 * windows-nat.c (struct windows_thread_info): Remove.
10210 * nat/windows-nat.h: New file.
10211
55a1e039
TT
102122020-04-08 Tom Tromey <tromey@adacore.com>
10213
10214 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10215 (thread_rec, windows_add_thread, windows_delete_thread)
10216 (windows_continue): Update.
10217
93366324
TT
102182020-04-08 Tom Tromey <tromey@adacore.com>
10219
10220 * windows-nat.c (struct windows_thread_info): Remove typedef.
10221 (thread_head): Remove.
10222 (thread_list): New global.
10223 (thread_rec, windows_add_thread, windows_init_thread_list)
10224 (windows_delete_thread, windows_continue): Update.
10225
0f2265e2
SM
102262020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10227
10228 * windows-tdep.h (windows_init_abi): Add comment.
10229 (cygwin_init_abi): New declaration.
10230 * windows-tdep.c: Split signal enumeration in two, one for
10231 Windows and one for Cygwin.
10232 (windows_gdb_signal_to_target): Only deal with signal of the
10233 Windows OS ABI.
10234 (cygwin_gdb_signal_to_target): New function.
10235 (windows_init_abi): Rename to windows_init_abi_common, don't set
10236 gdb_signal_to_target gdbarch method. Add new new function with
10237 this name.
10238 (cygwin_init_abi): New function.
10239 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10240 comment. Don't call windows_init_abi.
10241 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10242 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10243 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10244 i386_windows_init_abi_common, don't call windows_init_abi. Add
10245 a new function of this name.
10246 (i386_cygwin_init_abi): New function.
10247 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10248 OS ABI Cygwin.
10249
3810f182
SM
102502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10251
10252 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10253 parameter.c.
10254 (dwarf2_read_gdb_index): Update.
10255
063f8e80
KR
102562020-04-07 Kamil Rytarowski <n54@gmx.com>
10257
10258 * nbsd-tdep.c: Include "objfiles.h".
10259 (nbsd_skip_solib_resolver): New.
10260 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10261
85a9510c 102622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10263
10264 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10265 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10266 with DW_LLE_base_addressx are being emitted in DWARFv5.
10267 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10268 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10269 unsigned integer.
10270
9fc3eaae 102712020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10272
10273 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10274 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10275 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10276 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10277 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10278 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10279 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10280
10281
41144253 102822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10283
10284 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10285 (read_loclist_index): New function definition.
10286 (lookup_loclist_base): New function definition.
10287 (read_loclist_header): New function definition.
10288 (dwarf2_cu): Add loclist_base and loclist_header field.
10289 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10290 (read_full_die_1): Read the value of DW_AT_loclists_base.
10291 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10292 (read_attribute_value): Handle DW_FORM_loclistx.
10293 (skip_one_die): Handle DW_FORM_loclistx.
10294 (loclist_header): New structure declaration.
10295 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10296
9f4e76a4
SM
102972020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10298
10299 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10300 constructor. Remove `addr` parameter from other constructor and
10301 add `per_cu` parameter.
10302 * dwarf2/read.c (create_partial_symtab): Update.
10303
25c11aca
TV
103042020-04-07 Tom de Vries <tdevries@suse.de>
10305
10306 PR symtab/25796
10307 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10308 (partial_die_info::fixup): Inherit has_const_value.
10309
5707e24b
TV
103102020-04-07 Tom de Vries <tdevries@suse.de>
10311
10312 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10313 symbols without address.
10314
05f00e22
KR
103152020-04-06 Kamil Rytarowski <n54@gmx.com>
10316
10317 * nbsd-nat.h (struct thread_info): Add forward declaration.
10318 (nbsd_nat_target::thread_alive): Add.
10319 (nbsd_nat_target::thread_name): Likewise.
10320 (nbsd_nat_target::update_thread_list): Likewise.
10321 (update_thread_list::post_attach): Likewise.
10322 (post_attach::pid_to_str): Likewise.
10323 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10324 (nbsd_thread_lister): Add.
10325 (nbsd_nat_target::thread_alive): Likewise.
10326 (nbsd_nat_target::thread_name): Likewise.
10327 (nbsd_add_threads): Likewise.
10328 (update_thread_list::post_attach): Likewise.
10329 (nbsd_nat_target::update_thread_list): Likewise.
10330 (post_attach::pid_to_str): Likewise.
10331
6ee448cc
TT
103322020-04-06 Tom Tromey <tromey@adacore.com>
10333
10334 * ada-valprint.c (print_variant_part): Extract the variant field.
10335 (print_field_values): Use the field as the outer value when
10336 recursing.
10337
dea34e8c
TT
103382020-04-06 Tom Tromey <tromey@adacore.com>
10339
10340 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10341 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10342 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10343 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10344 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10345
93689ce9
TT
103462020-04-06 Tom Tromey <tromey@adacore.com>
10347
10348 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10349 TYPE_CODE_ERROR.
10350
79743962
KR
103512020-04-06 Kamil Rytarowski <n54@gmx.com>
10352
10353 * nbsd-tdep.c: Include "gdbarch.h".
10354 Define enum with NetBSD signal numbers.
10355 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10356 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10357 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10358 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10359 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10360 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10361 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10362 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10363 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10364 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10365 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10366 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10367
9e7c9a03
HD
103682020-04-03 Hannes Domani <ssbssa@yahoo.de>
10369
10370 PR gdb/25325
10371 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10372
d9e49b61
TT
103732020-04-03 Tom Tromey <tromey@adacore.com>
10374
10375 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10376 Read constant block.
10377
e0fc5c3f
SM
103782020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10379
10380 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10381 (gdb_bfd_get_full_section_contents): New declaration.
10382 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10383 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10384 gdb_bfd_get_full_section_contents.
10385
e2ff18a0
SM
103862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10387
10388 * exec.c (build_section_table): Replace internal_error with
10389 gdb_assert.
10390 (section_table_xfer_memory_partial): Likewise.
10391 * mdebugread.c (parse_partial_symbols): Likewise.
10392 * psymtab.c (lookup_partial_symbol): Likewise.
10393 * utils.c (wrap_here): Likewise.
10394
0830d301
TT
103952020-04-02 Tom Tromey <tromey@adacore.com>
10396
10397 * f-lang.c (build_fortran_types): Use arch_type to initialize
10398 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10399
e7da7f8f
TT
104002020-04-02 Tom Tromey <tromey@adacore.com>
10401
10402 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10403 of attributes.
10404
c90d28ac
AB
104052020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10406 Bernd Edlinger <bernd.edlinger@hotmail.de>
10407 Tom Tromey <tromey@adacore.com>
10408
10409 * buildsym.c (buildsym_compunit::record_line): Remove
10410 deduplication code.
10411
1aa98955
TV
104122020-04-02 Tom de Vries <tdevries@suse.de>
10413
10414 PR ada/24671
10415 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10416
d3214198
TV
104172020-04-02 Tom de Vries <tdevries@suse.de>
10418
10419 * dwarf2/read.c (dwarf2_gdb_index_functions,
10420 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10421 NULL.
10422 * psymtab.c (psym_lookup_global_symbol_language): New function.
10423 (psym_functions): Init psym_lookup_global_symbol_language with
10424 psym_lookup_global_symbol_language.
10425 * symfile-debug.c (debug_sym_quick_functions): Init
10426 lookup_global_symbol_language with NULL.
10427 * symfile.c (set_initial_language): Remove fixme comment.
10428 * symfile.h (struct quick_symbol_functions): Add
10429 lookup_global_symbol_language.
10430 * symtab.c (find_quick_global_symbol_language): New function.
10431 (find_main_name): Use find_quick_global_symbol_language.
10432
2836752f
SM
104332020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10434
10435 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10436
64dc2d4b
BE
104372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10438
10439 * buildsym.c (record_line): Fix undefined behavior and preserve
10440 lines at eof.
10441
bbe3dc41
BE
104422020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10443
10444 * buildsym.c (record_line): Fix the resizing condition.
10445
6b4a335b
TT
104462020-04-01 Tom Tromey <tom@tromey.com>
10447
10448 * value.h (value_literal_complex): Add comment.
10449 * valops.c (value_literal_complex): Refer to value.h.
10450
3638a098
TT
104512020-04-01 Tom Tromey <tom@tromey.com>
10452
10453 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10454 (scalar_type): New rule, from typebase.
10455 (typebase): Use scalar_type. Recognize complex types.
10456 (field_name): Handle FLOAT_KEYWORD.
10457 (ident_tokens): Add _Complex and __complex__.
10458
c34e8714
TT
104592020-04-01 Tom Tromey <tom@tromey.com>
10460
10461 PR exp/25299:
10462 * valarith.c (promotion_type, complex_binop): New functions.
10463 (scalar_binop): Handle complex numbers. Use promotion_type.
10464 (value_pos, value_neg, value_complement): Handle complex numbers.
10465
fa649bb7
TT
104662020-04-01 Tom Tromey <tom@tromey.com>
10467
10468 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10469 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10470 (parse_number): Handle complex numbers.
10471
981c08ce
TT
104722020-04-01 Tom Tromey <tom@tromey.com>
10473
10474 * c-valprint.c (c_decorations): Change complex suffix to "i".
10475
4c99290d
TT
104762020-04-01 Tom Tromey <tom@tromey.com>
10477
10478 * valprint.c (generic_value_print_complex): Use accessors.
10479 * value.h (value_real_part, value_imaginary_part): Declare.
10480 * valops.c (value_real_part, value_imaginary_part): New
10481 functions.
10482 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10483
5b930b45
TT
104842020-04-01 Tom Tromey <tom@tromey.com>
10485
10486 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10487 (read_range_type): Update.
10488 * mdebugread.c (basic_type): Update.
10489 * go-lang.c (build_go_types): Use init_complex_type.
10490 * gdbtypes.h (struct main_type) <complex_type>: New member.
10491 (init_complex_type): Update.
10492 (arch_complex_type): Don't declare.
10493 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10494 Make name if none given. Use alloc_type_copy. Look for cached
10495 complex type.
10496 (arch_complex_type): Remove.
10497 (gdbtypes_post_init): Use init_complex_type.
10498 * f-lang.c (build_fortran_types): Use init_complex_type.
10499 * dwarf2/read.c (read_base_type): Update.
10500 * d-lang.c (build_d_types): Use init_complex_type.
10501 * ctfread.c (read_base_type): Update.
10502
53cccef1
TBA
105032020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10504
10505 * infrun.c (stop_all_threads): Update assertion, plus when
10506 stopping threads, take into account that we might be trying
10507 to stop an all-stop target.
10508 (stop_waiting): Call 'stop_all_threads' if there exists a
10509 non-stop target.
10510
a0714d30
TBA
105112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10512
10513 * target.h (exists_non_stop_target): New function declaration.
10514 * target.c (exists_non_stop_target): New function.
10515
60e22c1e
HD
105162020-04-01 Hannes Domani <ssbssa@yahoo.de>
10517
10518 PR gdb/24789
10519 * eval.c (is_integral_or_integral_reference): New function.
10520 (evaluate_subexp_standard): Allow integer references in
10521 pointer arithmetic.
10522
e139a727
TBA
105232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10524
10525 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10526 check for no ptid in the stop reply when the target is non-stop.
10527
e0802d59
TT
105282020-04-01 Tom Tromey <tromey@adacore.com>
10529
10530 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10531 "name" parameter to rvalue reference. Initialize m_name_holder.
10532 <lookup_name_info>: New overloads.
10533 <name>: Return gdb::string_view.
10534 <c_str>: New method.
10535 <make_ignore_params>: Update.
10536 <search_name_hash>: Update.
10537 <language_lookup_name>: Return const char *.
10538 <m_name>: Change type.
10539 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10540 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10541 (lookup_name_info::match_any): Update.
10542 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10543 Update.
10544 * minsyms.c (linkage_name_str): Update.
10545 * language.c (default_symbol_name_matcher): Update.
10546 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10547 Update.
10548 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10549 (ada_lookup_name_info::ada_lookup_name_info): Update.
10550 (literal_symbol_name_matcher): Update.
10551
8c072cb6
TT
105522020-04-01 Tom Tromey <tromey@adacore.com>
10553
10554 * psymtab.c (psymtab_search_name): Remove function.
10555 (psym_lookup_symbol): Create search name and lookup name here.
10556 (lookup_partial_symbol): Remove "name" parameter; add
10557 lookup_name.
10558 (psym_expand_symtabs_for_function): Update.
10559
6f29a534
TT
105602020-03-31 Joel Jones <joelkevinjones@gmail.com>
10561
10562 PR tui/25597:
10563 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10564
af62665e
TT
105652020-03-31 Tom Tromey <tromey@adacore.com>
10566
10567 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10568 memcpy.
10569
d1a89da5
NC
105702020-03-30 Nelson Chu <nelson.chu@sifive.com>
10571
10572 * features/riscv/32bit-csr.xml: Regenerated.
10573 * features/riscv/64bit-csr.xml: Regenerated.
10574
d8af9068
TT
105752020-03-30 Tom Tromey <tromey@adacore.com>
10576
10577 * ada-valprint.c (print_variant_part): Update.
10578 * ada-lang.h (ada_which_variant_applies): Update.
10579 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10580 outer_valaddr parameters; replace with "outer" value parameter.
10581 (to_fixed_variant_branch_type): Update.
10582
227c0bf4
PFC
105832020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10584
10585 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10586 <list>. Remove inclusion of observable.h.
10587 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10588 (struct arch_lwp_info): New struct.
10589 (class ppc_linux_dreg_interface): New class.
10590 (struct ppc_linux_process_info): New struct.
10591 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10592 <low_new_clone, low_forget_process, low_prepare_to_resume>
10593 <copy_thread_dreg_state, mark_thread_stale>
10594 <mark_debug_registers_changed, register_hw_breakpoint>
10595 <clear_hw_breakpoint, register_wp, clear_wp>
10596 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10597 <num_memory_accesses, get_trigger_type>
10598 <create_watchpoint_request, hwdebug_point_cmp>
10599 <init_arch_lwp_info, get_arch_lwp_info>
10600 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10601 methods.
10602 <struct ptid_hash>: New inner struct.
10603 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10604 members.
10605 (saved_dabr_value, hwdebug_info, max_slots_number)
10606 (struct hw_break_tuple, struct thread_points, ppc_threads)
10607 (have_ptrace_hwdebug_interface)
10608 (hwdebug_find_thread_points_by_tid)
10609 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10610 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10611 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10612 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10613 use m_dreg_interface.
10614 (hwdebug_point_cmp): Change to...
10615 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10616 reference arguments instead of pointers.
10617 (ppc_linux_nat_target::ranged_break_num_registers): Use
10618 m_dreg_interface.
10619 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10620 m_dreg_interface. Call register_hw_breakpoint.
10621 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10622 m_dreg_interface. Call clear_hw_breakpoint.
10623 (get_trigger_type): Change to...
10624 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10625 comment.
10626 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10627 use m_dreg_interface. Call register_hw_breakpoint.
10628 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10629 use m_dreg_interface. Call clear_hw_breakpoint.
10630 (can_use_watchpoint_cond_accel): Change to...
10631 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10632 method. Update comment, use m_dreg_interface and
10633 m_process_info.
10634 (calculate_dvc): Change to...
10635 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10636 m_dreg_interface.
10637 (num_memory_accesses): Change to...
10638 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10639 (check_condition): Change to...
10640 (ppc_linux_nat_target::check_condition): ...this method.
10641 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10642 comment, use m_dreg_interface.
10643 (create_watchpoint_request): Change to...
10644 (ppc_linux_nat_target::create_watchpoint_request): ...this
10645 method. Use m_dreg_interface.
10646 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10647 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10648 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10649 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10650 (ppc_linux_nat_target::low_forget_process)
10651 (ppc_linux_nat_target::low_new_fork)
10652 (ppc_linux_nat_target::low_new_clone)
10653 (ppc_linux_nat_target::low_delete_thread)
10654 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10655 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10656 only call mark_thread_stale.
10657 (ppc_linux_thread_exit): Remove.
10658 (ppc_linux_nat_target::stopped_data_address): Change to...
10659 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10660 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10661 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10662 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10663 comment. Call low_stopped_data_address.
10664 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10665 m_dreg_interface.
10666 (ppc_linux_nat_target::masked_watch_num_registers): Use
10667 m_dreg_interface.
10668 (ppc_linux_nat_target::copy_thread_dreg_state)
10669 (ppc_linux_nat_target::mark_thread_stale)
10670 (ppc_linux_nat_target::mark_debug_registers_changed)
10671 (ppc_linux_nat_target::register_hw_breakpoint)
10672 (ppc_linux_nat_target::clear_hw_breakpoint)
10673 (ppc_linux_nat_target::register_wp)
10674 (ppc_linux_nat_target::clear_wp)
10675 (ppc_linux_nat_target::init_arch_lwp_info)
10676 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10677 (_initialize_ppc_linux_nat): Remove observer callback.
10678
4db10d8f
PFC
106792020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10680
10681 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10682 (ppc_linux_nat_target::auxv_parse)
10683 (ppc_linux_nat_target::read_description)
10684 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10685 Move up.
10686
1310c1b0
PFC
106872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10688
10689 * linux-nat.h (low_new_clone): New method.
10690 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10691
69b037c3
SM
106922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10693
10694 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10695 (dbx_expand_psymtab): ... this.
10696 (start_psymtab): Update.
10697 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10698 (mdebug_expand_psymtab): ... this.
10699 (parse_partial_symbols): Update.
10700 (new_psymtab): Update.
10701 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10702 (xcoff_expand_psymtab): ... this.
10703 (xcoff_start_psymtab): Update.
10704
48993951
SM
107052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10706
10707 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10708 <expand_dependencies>: ... this.
10709 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10710 (partial_symtab::expand_dependencies): ... this.
10711 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10712 Update.
10713 (dwarf2_psymtab::expand_psymtab): Update.
10714 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10715 * mdebugread.c (psymtab_to_symtab_1): Update.
10716 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10717
3ad83046
SM
107182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * psympriv.h (discard_psymtab): Remove.
10721 * dbxread.c (dbx_end_psymtab): Update.
10722 * xcoffread.c (xcoff_end_psymtab): Update.
10723
4d1b9ab6
TT
107242020-03-28 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10727 comment.
10728
f1749218
TT
107292020-03-28 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10732
ebea7626
HD
107332020-03-27 Hannes Domani <ssbssa@yahoo.de>
10734
10735 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10736
a879b4d5
JB
107372020-03-26 John Baldwin <jhb@FreeBSD.org>
10738
10739 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10740
0826b30a
TT
107412020-03-26 Tom Tromey <tom@tromey.com>
10742
10743 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10744 (mark_common_block_symbol_computed, read_tag_string_type)
10745 (attr_to_dynamic_prop, read_subrange_type): Update.
10746 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10747 to be methods on struct attribute.
10748 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10749 (read_call_site_scope, partial_die_info::read)
10750 (partial_die_info::read, lookup_die_type, follow_die_ref):
10751 Update.
10752 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10753 from dwarf2_get_ref_die_offset.
10754 (attribute::constant_value): New method, from
10755 dwarf2_get_attr_constant_value.
10756 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10757 Declare method.
10758 <constant_value>: New method.
10759
2b2558bf
TT
107602020-03-26 Tom Tromey <tom@tromey.com>
10761
10762 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10763 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10764 (dwarf_type_encoding_name): Move to stringify.c.
10765 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10766 * dwarf2/stringify.c: New file.
10767 * dwarf2/stringify.h: New file.
10768
eeb64781
TT
107692020-03-26 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10772 Rewrite.
10773
a39fdb41
TT
107742020-03-26 Tom Tromey <tom@tromey.com>
10775
10776 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10777 methods.
10778 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10779 (lookup_ranges_base): Likewise.
10780 (read_cutu_die_from_dwo, read_full_die_1): Update.
10781
436c571c
TT
107822020-03-26 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/read.c (read_import_statement, read_file_scope)
10785 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10786 (read_lexical_block_scope, read_call_site_scope)
10787 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10788 (handle_struct_member_die, process_structure_scope)
10789 (update_enumeration_type_from_children)
10790 (process_enumeration_scope, read_array_type, read_common_block)
10791 (read_namespace, read_module, read_subroutine_type): Update.
10792 (sibling_die): Remove.
10793
052c8bb8
TT
107942020-03-26 Tom Tromey <tom@tromey.com>
10795
10796 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10797 (build_type_psymtabs_reader, read_structure_type)
10798 (read_enumeration_type, read_full_die_1): Update.
10799 (dwarf2_attr_no_follow): Move to die.h.
10800 * dwarf2/die.h (struct die_info) <attr>: New method.
10801
2b24b6e4
TT
108022020-03-26 Tom Tromey <tom@tromey.com>
10803
10804 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10805 <base_address>: Now an optional.
10806 (dwarf2_find_base_address, dwarf2_rnglists_process)
10807 (dwarf2_ranges_process, fill_in_loclist_baton)
10808 (dwarf2_symbol_mark_computed): Update.
10809
c2d50fd0
TT
108102020-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2/read.c (struct die_info): Move to die.h.
10813 * dwarf2/die.h: New file.
10814
0df7ad3a
TT
108152020-03-26 Tom Tromey <tom@tromey.com>
10816
10817 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10818 * dwarf2/read.c
10819 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10820 Move to line-header.c.
10821 (read_checked_initial_length_and_offset, read_formatted_entries):
10822 Likewise.
10823 (dwarf_decode_line_header): Split into two.
10824 * dwarf2/line-header.c
10825 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10826 Move from read.c.
10827 (read_checked_initial_length_and_offset, read_formatted_entries):
10828 Likewise.
10829 (dwarf_decode_line_header): New function, split from read.c.
10830
86c0bb4c
TT
108312020-03-26 Tom Tromey <tom@tromey.com>
10832
10833 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10834 Declare method.
10835 * dwarf2/read.c (read_attribute_value): Update.
10836 (dwarf2_per_objfile::read_line_string): Rename from
10837 read_indirect_line_string.
10838 (read_formatted_entries): Update.
10839
2ef46c2f
TT
108402020-03-26 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10843 variable.
10844
4f9c1eda
TT
108452020-03-26 Tom Tromey <tom@tromey.com>
10846
10847 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10848 const.
10849 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10850 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10851 parameter const.
10852
5a0e026f
TT
108532020-03-26 Tom Tromey <tom@tromey.com>
10854
10855 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10856 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10857 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10858 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10859
8844c11b
TT
108602020-03-26 Tom Tromey <tom@tromey.com>
10861
10862 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10863 file_names_size, file_full_name, file_file_name>: Use const.
10864 <file_name_at, file_names>: Add const overload.
10865 * dwarf2/line-header.c (line_header::file_file_name)
10866 (line_header::file_full_name): Update.
10867
c90ec28a
TT
108682020-03-26 Tom Tromey <tom@tromey.com>
10869
10870 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10871 (macro_start_file, consume_improper_spaces)
10872 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10873 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10874 (dwarf_decode_macros): Move to macro.c.
10875 * dwarf2/macro.c: New file.
10876 * dwarf2/macro.h: New file.
10877 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10878
4f44ae6c
TT
108792020-03-26 Tom Tromey <tom@tromey.com>
10880
10881 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10882 method.
10883 * dwarf2/section.c: New method. From
10884 read_indirect_string_at_offset_from.
10885 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10886 (read_indirect_string_at_offset_from): Move to section.c.
10887 (read_indirect_string_at_offset): Rewrite.
10888 (read_indirect_line_string_at_offset): Remove.
10889 (read_indirect_string, read_indirect_line_string)
10890 (dwarf_decode_macro_bytes): Update.
10891
a0194fa8
TT
108922020-03-26 Tom Tromey <tom@tromey.com>
10893
10894 * dwarf2/section.h (struct dwarf2_section_info)
10895 <overload_complaint>: Declare.
10896 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10897 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10898 Rename from dwarf2_section_buffer_overflow_complaint.
10899 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10900 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10901
3d27bbdb
TT
109022020-03-26 Tom Tromey <tom@tromey.com>
10903
10904 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10905 Declare.
10906 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10907 Move from read.c.
10908 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10909 to section.c.
10910
9eac9650
TT
109112020-03-26 Tom Tromey <tom@tromey.com>
10912
10913 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10914
bf80d710
TT
109152020-03-26 Tom Tromey <tom@tromey.com>
10916
10917 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10918 "builder".
10919 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10920 parameter.
10921 (dwarf_decode_macros): Update.
10922
0314b390
TT
109232020-03-26 Tom Tromey <tom@tromey.com>
10924
10925 * dwarf2/read.c (read_attribute_value): Update.
10926 (read_indirect_string_from_dwz): Move to dwz.c; change into
10927 method.
10928 (dwarf_decode_macro_bytes): Update.
10929 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10930 * dwarf2/dwz.c: New file.
10931 * Makefile.in (COMMON_SFILES): Add dwz.c.
10932
9fda78b6
TT
109332020-03-26 Tom Tromey <tom@tromey.com>
10934
10935 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10936 * dwarf2/read.c: Add include.
10937 * dwarf2/index-write.c: Add include.
10938 * dwarf2/index-cache.c: Add include.
10939 * dwarf2/dwz.h: New file.
10940
33aa3c10
TT
109412020-03-25 Tom Tromey <tom@tromey.com>
10942
10943 * compile/compile-object-load.c (get_out_value_type): Mention
10944 correct symbol name in error message.
10945
d503b685
HD
109462020-03-25 Hannes Domani <ssbssa@yahoo.de>
10947
10948 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10949
7b1eff95
TV
109502020-03-25 Tom de Vries <tdevries@suse.de>
10951
10952 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10953 * symmisc.c (dump_symtab_1): Print user and includes fields.
10954 (maintenance_info_symtabs): Same.
10955
dd895392
AB
109562020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 PR gdb/25534
10959 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10960 (riscv_regcache_cooked_write): New function.
10961 (riscv_push_dummy_call): Use new function.
10962 (riscv_return_value): Likewise.
10963
5ab2fbf1
SM
109642020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10965
10966 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10967 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10968 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10969 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10970 * infrun.c (follow_fork): Likewise.
10971 (follow_fork_inferior): Likewise.
10972 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10973 * linux-nat.h (class linux_nat_target): Likewise.
10974 * remote.c (class remote_target) <follow_fork>: Likewise.
10975 (remote_target::follow_fork): Likewise.
10976 * target-delegates.c: Re-generate.
10977 * target.c (default_follow_fork): Likewise.
10978 (target_follow_fork): Likewise.
10979 * target.h (struct target_ops) <follow_fork>: Likewise.
10980 (target_follow_fork): Likewise.
10981
a64fafb5
TV
109822020-03-24 Tom de Vries <tdevries@suse.de>
10983
10984 * psymtab.c (maintenance_info_psymtabs): Print user field.
10985
fe26d3a3
TT
109862020-03-20 Tom Tromey <tromey@adacore.com>
10987
10988 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10989 const.
10990 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10991 const.
10992
c884cc46
SM
109932020-03-20 Simon Marchi <simon.marchi@efficios.com>
10994
10995 * ptrace.m4: Don't check for ptrace declaration.
10996 * config.in: Re-generate.
10997 * configure: Re-generate.
10998 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10999 not defined.
11000
1ff700c2
KR
110012020-03-20 Kamil Rytarowski <n54@gmx.com>
11002
11003 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11004 `PTRACE_TYPE_RET'.
11005 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11006 * sparc-nat.c (gdb_ptrace): Likewise.
11007 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11008
f7d4f0b1
TT
110092020-03-20 Tom Tromey <tromey@adacore.com>
11010
11011 * c-exp.y (lex_one_token): Fix assert.
11012
f67210ff
TT
110132020-03-20 Tom Tromey <tromey@adacore.com>
11014
11015 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11016 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11017 strncpy call.
11018
1773be9e
TT
110192020-03-20 Tom Tromey <tromey@adacore.com>
11020
11021 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11022
70304be9
TT
110232020-03-20 Tom Tromey <tromey@adacore.com>
11024
11025 * ada-valprint.c (print_variant_part): Remove parameters; switch
11026 to value-based API.
11027 (print_field_values): Likewise.
11028 (ada_val_print_struct_union): Likewise.
11029 (ada_value_print_1): Update.
11030
9faa006d
KR
110312020-03-20 Kamil Rytarowski <n54@gmx.com>
11032
11033 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11034 nbsd_nat_target instead of inf_ptrace_target.
11035 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11036 nbsd_nat_target.
11037
4a90f062
KR
110382020-03-20 Kamil Rytarowski <n54@gmx.com>
11039
11040 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11041 it to the ptrace call.
11042 * (store_registers): Likewise.
11043
110442020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11045
11046 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11047 it to the ptrace call.
11048 * (store_registers): Likewise.
11049
2d07da27
LM
110502020-03-19 Luis Machado <luis.machado@linaro.org>
11051
11052 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11053 valid, fetch vg value from ptrace.
11054
f09db380
KR
110552020-03-19 Kamil Rytarowski <n54@gmx.com>
11056 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11057 * inf-ptrace.c: Likewise.
11058 * (gdb_ptrace): Add.
11059 * (inf_ptrace_target::resume): Update.
11060 * (inf_ptrace_target::xfer_partial): Likewise.
11061 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11062 * (inf_ptrace_peek_poke): Update.
11063
fcc7376e
KR
110642020-03-19 Kamil Rytarowski <n54@gmx.com>
11065
11066 * x86-bsd-nat.c (gdb_ptrace): New.
11067 * (x86bsd_dr_set): Add new argument `ptid'.
11068 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11069 x86bsd_dr_set_addr): Update.
11070
cada5fc9
AB
110712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * remote.c (remote_target::process_stop_reply): Handle events for
11074 all threads differently.
11075
19a2740f
AB
110762020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * completer.c (completion_tracker::remove_completion): Define new
11079 function.
11080 * completer.h (completion_tracker::remove_completion): Declare new
11081 function.
11082 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11083 when adding a C++ function symbol.
11084
724fd9ba
AB
110852020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11086
11087 * completer.c (completion_tracker::completion_hash_entry): Define
11088 new class.
11089 (advance_to_filename_complete_word_point): Call
11090 recompute_lowest_common_denominator.
11091 (completion_tracker::completion_tracker): Call discard_completions
11092 to setup the hash table.
11093 (completion_tracker::discard_completions): Allow for being called
11094 from the constructor, pass new equal function, and element deleter
11095 when constructing the hash table. Initialise new class member
11096 variables.
11097 (completion_tracker::maybe_add_completion): Remove use of
11098 m_entries_vec, and store more information into m_entries_hash.
11099 (completion_tracker::recompute_lcd_visitor): New function, most
11100 content taken from...
11101 (completion_tracker::recompute_lowest_common_denominator):
11102 ...here, this now just visits each item in the hash calling the
11103 above visitor.
11104 (completion_tracker::build_completion_result): Remove use of
11105 m_entries_vec, call recompute_lowest_common_denominator.
11106 * completer.h (completion_tracker::have_completions): Remove use
11107 of m_entries_vec.
11108 (completion_tracker::completion_hash_entry): Declare new class.
11109 (completion_tracker::recompute_lowest_common_denominator): Change
11110 function signature.
11111 (completion_tracker::recompute_lcd_visitor): Declare new function.
11112 (completion_tracker::m_entries_vec): Delete.
11113 (completion_tracker::m_entries_hash): Initialize to NULL.
11114 (completion_tracker::m_lowest_common_denominator_valid): New
11115 member variable.
11116 (completion_tracker::m_lowest_common_denominator_max_length): New
11117 member variable.
11118
5a82b8a1
KR
111192020-03-17 Kamil Rytarowski <n54@gmx.com>
11120
11121 * regformats/regdef.h: Put reg in gdb namespace.
11122
fb516a69
KR
111232020-03-17 Kamil Rytarowski <n54@gmx.com>
11124
11125 * i386-bsd-nat.c (gdb_ptrace): New.
11126 * (i386bsd_fetch_inferior_registers,
11127 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11128 * (i386bsd_fetch_inferior_registers,
11129 i386bsd_store_inferior_registers) Use gdb_ptrace.
11130
1c0aa1fb
KR
111312020-03-17 Kamil Rytarowski <n54@gmx.com>
11132
11133 * amd64-bsd-nat.c (gdb_ptrace): New.
11134 * (amd64bsd_fetch_inferior_registers,
11135 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11136 * (amd64bsd_fetch_inferior_registers,
11137 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11138
5ccd2fb7
KR
111392020-03-17 Kamil Rytarowski <n54@gmx.com>
11140
11141 * user-regs.c (user_reg::read): Rename to...
11142 (user_reg::xread): ...this.
11143 * (append_user_reg): Rename argument `read' to `xread'.
11144 * (user_reg_add_builtin): Likewise.
11145 * (user_reg_add): Likewise.
11146 * (value_of_user_reg): Likewise.
11147
2108a63a
KR
111482020-03-17 Kamil Rytarowski <n54@gmx.com>
11149
11150 * sparc-nat.c (gdb_ptrace): New.
11151 * sparc-nat.c (sparc_fetch_inferior_registers)
11152 (sparc_store_inferior_registers) Remove obsolete comment.
11153 * sparc-nat.c (sparc_fetch_inferior_registers)
11154 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11155 * sparc-nat.c (sparc_fetch_inferior_registers)
11156 (sparc_store_inferior_registers) Use gdb_ptrace.
11157
a225c9a8
KR
111582020-03-17 Kamil Rytarowski <n54@gmx.com>
11159
11160 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11161 it to the ptrace call.
11162 * sh-nbsd-nat.c (store_registers): Likewise.
11163
98097623
KR
111642020-03-17 Kamil Rytarowski <n54@gmx.com>
11165
11166 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11167 nbsd_nat_target instead of inf_ptrace_target.
11168 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11169 nbsd_nat_target.
11170
9e38d619
KR
111712020-03-17 Kamil Rytarowski <n54@gmx.com>
11172
11173 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11174
a2ecbe9f
KR
111752020-03-17 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11178 <sys/sysctl.h>.
11179 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11180
58990295
TV
111812020-03-17 Tom de Vries <tdevries@suse.de>
11182
11183 PR gdb/23710
11184 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11185 fields.
11186 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11187 fields.
11188 (process_imported_unit_die): Skip import of c++ CUs.
11189
771dd3a8
TT
111902020-03-16 Tom Tromey <tom@tromey.com>
11191
11192 * p-valprint.c (pascal_object_print_value): Initialize
11193 base_value.
11194
817a7585
AK
111952020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11196 Shahab Vahedi <shahab@synopsys.com>
11197
11198 * Makefile.in: Add arch/arc.o
11199 * configure.tgt: Likewise.
11200 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11201 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11202 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11203 * arc-tdep.h (arc_read_description): Add proto type.
11204 * arch/arc.c: New file.
11205 * arch/arc.h: Likewise.
11206 * features/Makefile: Replace old target descriptions with new.
11207 * features/arc-arcompact.c: Remove.
11208 * features/arc-arcompact.xml: Likewise.
11209 * features/arc-v2.c: Likewise
11210 * features/arc-v2.xml: Likewise
11211 * features/arc/aux-arcompact.xml: New file.
11212 * features/arc/aux-v2.xml: Likewise.
11213 * features/arc/core-arcompact.xml: Likewise.
11214 * features/arc/core-v2.xml: Likewise.
11215 * features/arc/aux-arcompact.c: Generate.
11216 * features/arc/aux-v2.c: Likewise.
11217 * features/arc/core-arcompact.c: Likewise.
11218 * features/arc/core-v2.c: Likewise.
11219 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11220
67430cd0
TT
112212020-03-16 Tom Tromey <tromey@adacore.com>
11222
11223 PR gdb/25663:
11224 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11225 putting value into bcache.
11226
30efb6c7
SM
112272020-03-16 Simon Marchi <simon.marchi@efficios.com>
11228
11229 PR gdb/21500
11230 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11231 to...
11232 (amd64_windows_init_abi_common): ... this. Don't set size of
11233 long type.
11234 (amd64_windows_init_abi): New function.
11235 (amd64_cygwin_init_abi): New function.
11236 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11237 the Cygwin OS ABI.
11238 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11239 comment.
11240
8db52437
SM
112412020-03-16 Simon Marchi <simon.marchi@efficios.com>
11242
11243 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11244 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11245 (pe_import_directory_entry): New struct type.
11246 (is_linked_with_cygwin_dll): New function.
11247 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11248 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11249 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11250
5982a56a
SM
112512020-03-16 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11254 i386_cygwin_core_osabi_sniffer.
11255
7a1998df
SM
112562020-03-16 Simon Marchi <simon.marchi@efficios.com>
11257
11258 * i386-cygwin-tdep.c: Rename to...
11259 * i386-windows-tdep.c: ... this.
11260 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11261 i386-windows-tdep.c.
11262 * configure.tgt: Likewise.
11263
053205cc
SM
112642020-03-16 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11267 * osabi.c (gdb_osabi_names): Add "Windows".
11268 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11269 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11270 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11271 i386_cygwin_osabi_sniffer.
11272 (_initialize_i386_cygwin_tdep): Register OS ABI
11273 GDB_OSABI_WINDOWS for i386.
11274 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11275 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11276 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11277 for x86-64.
11278 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11279 when the target matches '*-*-mingw*'.
11280
fe4b2ee6
SM
112812020-03-16 Simon Marchi <simon.marchi@efficios.com>
11282
11283 * defs.h (enum gdb_osabi): Move to...
11284 * osabi.h (enum gdb_osabi): ... here.
11285 * gdbarch.sh: Include osabi.h in gdbarch.h.
11286 * gdbarch.h: Re-generate.
11287
cb9b645d
SM
112882020-03-16 Simon Marchi <simon.marchi@efficios.com>
11289
11290 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11291 function.
11292 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11293
3293bbaf
TT
112942020-03-14 Tom Tromey <tom@tromey.com>
11295
11296 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11297 for C++.
11298 (c_type_print_modifier): Likewise. Add "language" parameter.
11299 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11300 (c_type_print_base_1): Update.
11301 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11302 constants.
11303 * type-stack.c (type_stack::insert): Handle tp_atomic and
11304 tp_restrict.
11305 (type_stack::follow_type_instance_flags): Likewise.
11306 (type_stack::follow_types): Likewise. Merge type-following code.
11307 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11308 (space_identifier, cv_with_space_id)
11309 (const_or_volatile_or_space_identifier_noopt)
11310 (const_or_volatile_or_space_identifier): Remove.
11311 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11312 rules.
11313 (ptr_operator, typebase): Update.
11314 (enum token_flag) <FLAG_C>: New constant.
11315 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11316 "_Atomic".
11317 (lex_one_token): Handle FLAG_C.
11318
154151a6
KR
113192020-03-14 Kamil Rytarowski <n54@gmx.com>
11320
11321 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11322 it to the ptrace call.
11323 * m68k-bsd-nat.c (store_registers): Likewise.
11324
bc107784
KR
113252020-03-14 Kamil Rytarowski <n54@gmx.com>
11326
11327 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11328 gdb_byte *.
11329 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11330 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11331 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11332
01a80117
KR
113332020-03-14 Kamil Rytarowski <n54@gmx.com>
11334
11335 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11336 nbsd_nat_target instead of inf_ptrace_target.
11337 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11338 nbsd_nat_target.
11339
f90280ca
KR
113402020-03-14 Kamil Rytarowski <n54@gmx.com>
11341
11342 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11343 register_t.
11344
6def66f1
KR
113452020-03-14 Kamil Rytarowski <n54@gmx.com>
11346
11347 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11348 it to the ptrace call.
11349 * alpha-bsd-nat.c (store_registers): Likewise.
11350
66eaca97
KR
113512020-03-14 Kamil Rytarowski <n54@gmx.com>
11352
11353 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11354 includes.
11355 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11356 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11357 fill_fpregset): Likewise.
11358
4fed520b
KR
113592020-03-14 Kamil Rytarowski <n54@gmx.com>
11360
11361 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11362 nbsd_nat_target instead of inf_ptrace_target.
11363 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11364 nbsd_nat_target.
11365
2190cf06
KR
113662020-03-14 Kamil Rytarowski <n54@gmx.com>
11367
11368 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11369 register_t.
11370
75c56d3d
KR
113712020-03-14 Kamil Rytarowski <n54@gmx.com>
11372
11373 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11374 it to the ptrace call.
11375 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11376 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11377 * arm-nbsd-nat.c (store_register): Likewise.
11378 * arm-nbsd-nat.c (store_regs): Likewise.
11379 * arm-nbsd-nat.c (store_fp_register): Likewise.
11380 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11381
6018d381
KR
113822020-03-14 Kamil Rytarowski <n54@gmx.com>
11383
11384 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11385 nbsd_nat_target instead of inf_ptrace_target.
11386 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11387 nbsd_nat_target.
11388
013f99f0
KR
113892020-03-14 Kamil Rytarowski <n54@gmx.com>
11390
11391 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11392 it to the ptrace call.
11393 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11394
12753073
KR
113952020-03-14 Kamil Rytarowski <n54@gmx.com>
11396
6227b330
KR
11397 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11398 it to the ptrace call.
11399 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11400
114012020-03-14 Kamil Rytarowski <n54@gmx.com>
11402
11403 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11404 gdb_byte *.
12753073
KR
11405 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11406
d5be5fa4
KR
114072020-03-14 Kamil Rytarowski <n54@gmx.com>
11408
11409 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11410 instead of inf_ptrace_target.
11411 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11412 nbsd_nat_target.
11413
8110f842
KR
114142020-03-14 Kamil Rytarowski <n54@gmx.com>
11415
11416 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11417 register_t.
11418
52feded7
KR
114192020-03-14 Kamil Rytarowski <n54@gmx.com>
11420
11421 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11422 register_t.
11423
25567eee
KR
114242020-03-14 Kamil Rytarowski <n54@gmx.com>
11425
11426 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11427 register_t.
11428
426a9c18
TT
114292020-03-13 Tom Tromey <tom@tromey.com>
11430
11431 * value.h (val_print): Don't declare.
11432 * valprint.h (val_print_array_elements)
11433 (val_print_scalar_formatted, generic_val_print): Don't declare.
11434 * valprint.c (generic_val_print_array): Take a struct value.
11435 (generic_val_print_ptr, generic_val_print_memberptr)
11436 (generic_val_print_bool, generic_val_print_int)
11437 (generic_val_print_char, generic_val_print_complex)
11438 (generic_val_print): Remove.
11439 (generic_value_print): Update.
11440 (do_val_print): Remove unused parameters. Don't call
11441 la_val_print.
11442 (val_print): Remove.
11443 (common_val_print): Update. Don't call value_check_printable.
11444 (val_print_scalar_formatted, val_print_array_elements): Remove.
11445 * rust-lang.c (rust_val_print): Remove.
11446 (rust_language_defn): Update.
11447 * p-valprint.c (pascal_val_print): Remove.
11448 (pascal_value_print_inner): Update.
11449 (pascal_object_print_val_fields, pascal_object_print_val):
11450 Remove.
11451 (pascal_object_print_static_field): Update.
11452 * p-lang.h (pascal_val_print): Don't declare.
11453 * p-lang.c (pascal_language_defn): Update.
11454 * opencl-lang.c (opencl_language_defn): Update.
11455 * objc-lang.c (objc_language_defn): Update.
11456 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11457 * m2-lang.h (m2_val_print): Don't declare.
11458 * m2-lang.c (m2_language_defn): Update.
11459 * language.h (struct language_defn) <la_val_print>: Remove.
11460 * language.c (unk_lang_value_print_inner): Rename. Change
11461 argument types.
11462 (unknown_language_defn, auto_language_defn): Update.
11463 * go-valprint.c (go_val_print): Remove.
11464 * go-lang.h (go_val_print): Don't declare.
11465 * go-lang.c (go_language_defn): Update.
11466 * f-valprint.c (f_val_print): Remove.
11467 * f-lang.h (f_value_print): Don't declare.
11468 * f-lang.c (f_language_defn): Update.
11469 * d-valprint.c (d_val_print): Remove.
11470 * d-lang.h (d_value_print): Don't declare.
11471 * d-lang.c (d_language_defn): Update.
11472 * cp-valprint.c (cp_print_value_fields)
11473 (cp_print_value_fields_rtti, cp_print_value): Remove.
11474 (cp_print_static_field): Update.
11475 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11476 (c_val_print_struct, c_val_print_union, c_val_print_int)
11477 (c_val_print_memberptr, c_val_print): Remove.
11478 * c-lang.h (c_val_print_array, cp_print_value_fields)
11479 (cp_print_value_fields_rtti): Don't declare.
11480 * c-lang.c (c_language_defn, cplus_language_defn)
11481 (asm_language_defn, minimal_language_defn): Update.
11482 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11483 (ada_val_print_enum): Take a struct value.
11484 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11485 (ada_val_print): Remove.
11486 (ada_value_print_1): Update.
11487 (printable_val_type): Remove.
11488 * ada-lang.h (ada_val_print): Don't declare.
11489 * ada-lang.c (ada_language_defn): Update.
11490
42331a1e
TT
114912020-03-13 Tom Tromey <tom@tromey.com>
11492
11493 * valprint.c (do_val_print): Update.
11494 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11495 a struct value.
11496 (value_to_value_object_no_release): Declare.
11497 * python/py-value.c (value_to_value_object_no_release): New
11498 function.
11499 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11500 struct value.
11501 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11502 function.
11503 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11504 a struct value.
11505 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11506 Declare.
11507 (gdbscm_apply_val_pretty_printer): Take a struct value.
11508 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11509 value.
11510 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11511 value.
11512 * extension-priv.h (struct extension_language_ops)
11513 <apply_val_pretty_printer>: Take a struct value.
11514 * cp-valprint.c (cp_print_value): Create a struct value.
11515 (cp_print_value): Update.
11516
3a916a97
TT
115172020-03-13 Tom Tromey <tom@tromey.com>
11518
11519 * ada-valprint.c (print_field_values): Call common_val_print.
11520
b59eac37
TT
115212020-03-13 Tom Tromey <tom@tromey.com>
11522
11523 * ada-valprint.c (val_print_packed_array_elements): Remove
11524 bitoffset and val parameters. Call common_val_print.
11525 (ada_val_print_string): Remove offset, address, and original_value
11526 parameters.
11527 (ada_val_print_array): Update.
11528 (ada_value_print_array): New function.
11529 (ada_value_print_1): Call it.
11530
03371129
TT
115312020-03-13 Tom Tromey <tom@tromey.com>
11532
11533 * ada-valprint.c (ada_value_print): Use common_val_print.
11534
2e088f8b
TT
115352020-03-13 Tom Tromey <tom@tromey.com>
11536
11537 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11538
39ef85a8
TT
115392020-03-13 Tom Tromey <tom@tromey.com>
11540
11541 * ada-valprint.c (ada_value_print_num): New function.
11542 (ada_value_print_1): Use it.
11543
b9fa6e07
TT
115442020-03-13 Tom Tromey <tom@tromey.com>
11545
11546 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11547
416595d6
TT
115482020-03-13 Tom Tromey <tom@tromey.com>
11549
11550 * ada-valprint.c (ada_value_print_ptr): New function.
11551 (ada_value_print_1): Use it.
11552
5b5e15ec
TT
115532020-03-13 Tom Tromey <tom@tromey.com>
11554
11555 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11556 call common_val_print.
11557 (ada_val_print_1): Update.
11558 (ada_value_print_1): New function.
11559 (ada_value_print_inner): Rewrite.
11560
fbf54e75
TT
115612020-03-13 Tom Tromey <tom@tromey.com>
11562
11563 * cp-valprint.c (cp_print_value_fields): Update.
11564 (cp_print_value): New function.
11565
64b653ca
TT
115662020-03-13 Tom Tromey <tom@tromey.com>
11567
11568 * m2-valprint.c (m2_value_print_inner): Use
11569 cp_print_value_fields.
11570 * cp-valprint.c (cp_print_value_fields): New function.
11571 * c-valprint.c (c_value_print_struct): New function.
11572 (c_value_print_inner): Use c_value_print_struct.
11573 * c-lang.h (cp_print_value_fields): Declare.
11574
6999f067
TT
115752020-03-13 Tom Tromey <tom@tromey.com>
11576
11577 * c-valprint.c (c_value_print_array): New function.
11578 (c_value_print_inner): Use it.
11579
ce80b8bd
TT
115802020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * c-valprint.c (c_value_print_memberptr): New function.
11583 (c_value_print_inner): Use it.
11584
2faac269
TT
115852020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * c-valprint.c (c_value_print_int): New function.
11588 (c_value_print_inner): Use it.
11589
da3e2c29
TT
115902020-03-13 Tom Tromey <tom@tromey.com>
11591
11592 * c-valprint.c (c_value_print_ptr): New function.
11593 (c_value_print_inner): Use it.
11594
50836231
TT
115952020-03-13 Tom Tromey <tom@tromey.com>
11596
11597 * c-valprint.c (c_value_print_inner): Rewrite.
11598
4f412b6e
TT
115992020-03-13 Tom Tromey <tom@tromey.com>
11600
11601 * valprint.c (generic_value_print_complex): New function.
11602 (generic_value_print): Use it.
11603
f5354008
TT
116042020-03-13 Tom Tromey <tom@tromey.com>
11605
11606 * valprint.c (generic_val_print_float): Don't call
11607 val_print_scalar_formatted.
11608 (generic_val_print, generic_value_print): Update.
11609
3eec3b05
TT
116102020-03-13 Tom Tromey <tom@tromey.com>
11611
11612 * valprint.c (generic_value_print_char): New function
11613 (generic_value_print): Use it.
11614
fdddfccb
TT
116152020-03-13 Tom Tromey <tom@tromey.com>
11616
11617 * valprint.c (generic_value_print_int): New function.
11618 (generic_value_print): Use it.
11619
6dde7521
TT
116202020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * valprint.c (generic_value_print_bool): New function.
11623 (generic_value_print): Use it.
11624
4112d2e6
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * valprint.c (generic_val_print_func): Simplify.
11628 (generic_val_print, generic_value_print): Update.
11629
65786af6
TT
116302020-03-13 Tom Tromey <tom@tromey.com>
11631
11632 * valprint.c (generic_val_print_flags): Remove.
11633 (generic_val_print, generic_value_print): Update.
11634 (val_print_type_code_flags): Add original_value parameter.
11635
40f3ce18
TT
116362020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * valprint.c (generic_val_print): Update.
11639 (generic_value_print): Update.
11640 * valprint.c (generic_val_print_enum): Don't call
11641 val_print_scalar_formatted.
11642
2a5b130b
TT
116432020-03-13 Tom Tromey <tom@tromey.com>
11644
11645 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11646 * valprint.c (generic_value_print_ptr): New function.
11647
abc66ce9
TT
116482020-03-13 Tom Tromey <tom@tromey.com>
11649
11650 * valprint.c (generic_value_print): Rewrite.
11651
07a32858
TT
116522020-03-13 Tom Tromey <tom@tromey.com>
11653
11654 * p-valprint.c (pascal_object_print_value_fields)
11655 (pascal_object_print_value): New functions.
11656
64d64d3a
TT
116572020-03-13 Tom Tromey <tom@tromey.com>
11658
11659 * p-valprint.c (pascal_value_print_inner): Rewrite.
11660
6a95a1f5
TT
116612020-03-13 Tom Tromey <tom@tromey.com>
11662
11663 * f-valprint.c (f_value_print_innner): Rewrite.
11664
59fcdac6
TT
116652020-03-13 Tom Tromey <tom@tromey.com>
11666
11667 * m2-valprint.c (m2_print_unbounded_array): New overload.
11668 (m2_print_unbounded_array): Update.
11669 (m2_print_array_contents): Take a struct value.
11670 (m2_value_print_inner): Rewrite.
11671
d133c3e1
TT
116722020-03-13 Tom Tromey <tom@tromey.com>
11673
11674 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11675 (d_value_print_inner): New function.
11676 * d-lang.h (d_value_print_inner): Declare.
11677 * d-lang.c (d_language_defn): Use d_value_print_inner.
11678
23b0f06b
TT
116792020-03-13 Tom Tromey <tom@tromey.com>
11680
11681 * go-valprint.c (go_value_print_inner): New function.
11682 * go-lang.h (go_value_print_inner): Declare.
11683 * go-lang.c (go_language_defn): Use go_value_print_inner.
11684
5f56f7cb
TT
116852020-03-13 Tom Tromey <tom@tromey.com>
11686
11687 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11688 API.
11689 (rust_val_print): Rewrite.
11690 (rust_value_print_inner): New function, from rust_val_print.
11691 (rust_language_defn): Use rust_value_print_inner.
11692
26792ee0
TT
116932020-03-13 Tom Tromey <tom@tromey.com>
11694
11695 * ada-valprint.c (ada_value_print_inner): New function.
11696 * ada-lang.h (ada_value_print_inner): Declare.
11697 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11698
24051bbe
TT
116992020-03-13 Tom Tromey <tom@tromey.com>
11700
11701 * f-valprint.c (f_value_print_innner): New function.
11702 * f-lang.h (f_value_print_innner): Declare.
11703 * f-lang.c (f_language_defn): Use f_value_print_innner.
11704
c0941be6
TT
117052020-03-13 Tom Tromey <tom@tromey.com>
11706
11707 * p-valprint.c (pascal_value_print_inner): New function.
11708 * p-lang.h (pascal_value_print_inner): Declare.
11709 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11710
62c4663d
TT
117112020-03-13 Tom Tromey <tom@tromey.com>
11712
11713 * m2-valprint.c (m2_value_print_inner): New function.
11714 * m2-lang.h (m2_value_print_inner): Declare.
11715 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11716
62182190
TT
117172020-03-13 Tom Tromey <tom@tromey.com>
11718
11719 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11720 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11721 * c-valprint.c (c_value_print_inner): New function.
11722 * c-lang.h (c_value_print_inner): Declare.
11723 * c-lang.c (c_language_defn, cplus_language_defn)
11724 (asm_language_defn, minimal_language_defn): Use
11725 c_value_print_inner.
11726
1e592a8a
TT
117272020-03-13 Tom Tromey <tom@tromey.com>
11728
11729 * p-valprint.c (pascal_object_print_value_fields): Now static.
11730 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11731
7fe471e9
TT
117322020-03-13 Tom Tromey <tom@tromey.com>
11733
11734 * c-valprint.c (c_val_print_array): Simplify.
11735
d121c6ce
TT
117362020-03-13 Tom Tromey <tom@tromey.com>
11737
11738 * valprint.c (value_print_array_elements): New function.
11739 * valprint.h (value_print_array_elements): Declare.
11740
4dba70ee
TT
117412020-03-13 Tom Tromey <tom@tromey.com>
11742
11743 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11744 * mips-tdep.c (mips_print_register): Use
11745 value_print_scalar_formatted.
11746
4f9ae810
TT
117472020-03-13 Tom Tromey <tom@tromey.com>
11748
11749 * valprint.h (value_print_scalar_formatted): Declare.
11750 * valprint.c (value_print_scalar_formatted): New function.
11751
156bfec9
TT
117522020-03-13 Tom Tromey <tom@tromey.com>
11753
11754 * valprint.h (generic_value_print): Declare.
11755 * valprint.c (generic_value_print): New function.
11756
2b4e573d
TT
117572020-03-13 Tom Tromey <tom@tromey.com>
11758
11759 * valprint.c (do_val_print): Call la_value_print_inner, if
11760 available.
11761 * rust-lang.c (rust_language_defn): Update.
11762 * p-lang.c (pascal_language_defn): Update.
11763 * opencl-lang.c (opencl_language_defn): Update.
11764 * objc-lang.c (objc_language_defn): Update.
11765 * m2-lang.c (m2_language_defn): Update.
11766 * language.h (struct language_defn) <la_value_print_inner>: New
11767 member.
11768 * language.c (unknown_language_defn, auto_language_defn): Update.
11769 * go-lang.c (go_language_defn): Update.
11770 * f-lang.c (f_language_defn): Update.
11771 * d-lang.c (d_language_defn): Update.
11772 * c-lang.c (c_language_defn, cplus_language_defn)
11773 (asm_language_defn, minimal_language_defn): Update.
11774 * ada-lang.c (ada_language_defn): Update.
11775
a1f6a07c
TT
117762020-03-13 Tom Tromey <tom@tromey.com>
11777
11778 * c-valprint.c (c_value_print): Use common_val_print.
11779
410cf315
TT
117802020-03-13 Tom Tromey <tom@tromey.com>
11781
11782 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11783
72a45c93
TT
117842020-03-13 Tom Tromey <tom@tromey.com>
11785
11786 * f-valprint.c (f77_print_array_1, f_val_print): Use
11787 common_val_print.
11788
040f66bd
TT
117892020-03-13 Tom Tromey <tom@tromey.com>
11790
11791 * riscv-tdep.c (riscv_print_one_register_info): Use
11792 common_val_print.
11793
a6e05a6c
TT
117942020-03-13 Tom Tromey <tom@tromey.com>
11795
11796 * mi/mi-main.c (output_register): Use common_val_print.
11797
3444c526
TT
117982020-03-13 Tom Tromey <tom@tromey.com>
11799
11800 * infcmd.c (default_print_one_register_info): Use
11801 common_val_print.
11802
c2a44efe
TT
118032020-03-13 Tom Tromey <tom@tromey.com>
11804
11805 * valprint.h (common_val_print_checked): Declare.
11806 * valprint.c (common_val_print_checked): New function.
11807 * stack.c (print_frame_arg): Use common_val_print_checked.
11808
b0c26e99
TT
118092020-03-13 Tom Tromey <tom@tromey.com>
11810
11811 * valprint.c (do_val_print): New function, from val_print.
11812 (val_print): Use do_val_print.
11813 (common_val_print): Use do_val_print.
11814
ce3acbe9
TT
118152020-03-13 Tom Tromey <tom@tromey.com>
11816
11817 * valprint.c (value_print): Use scoped_value_mark.
11818
96c7f873
TV
118192020-03-13 Tom de Vries <tdevries@suse.de>
11820
11821 PR symtab/25646
11822 * psymtab.c (partial_symtab::partial_symtab): Don't set
11823 globals_offset and statics_offset. Push element onto
11824 current_global_psymbols and current_static_psymbols stacks.
11825 (concat): New function.
11826 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11827 element from current_global_psymbols and current_static_psymbols
11828 stacks. Concat popped elements to global_psymbols and
11829 static_symbols.
11830 (add_psymbol_to_list): Use current_global_psymbols and
11831 current_static_psymbols stacks.
11832 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11833 current_static_psymbols fields.
11834
6ba0a321
CB
118352020-03-12 Christian Biesinger <cbiesinger@google.com>
11836
11837 * corelow.c (sniff_core_bfd): Remove.
11838 (class core_target) <m_core_vec>: Remove.
11839 (core_target::core_target): Update.
11840 (core_file_fns): Remove.
11841 (deprecated_add_core_fns): Remove.
11842 (default_core_sniffer): Remove.
11843 (sniff_core_bfd): Remove.
11844 (default_check_format): Remove.
11845 (gdb_check_format): Remove.
11846 (core_target_open): Update.
11847 (core_target::get_core_register_section): Update.
11848 (get_core_registers_cb): Update.
11849 (core_target::fetch_registers): Update.
11850 * gdbcore.h (struct core_fns): Remove.
11851 (deprecated_add_core_fns): Remove.
11852 (default_core_sniffer): Remove.
11853 (default_check_format): Remove.
11854
227031b2
TT
118552020-03-12 Tom Tromey <tom@tromey.com>
11856
11857 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11858 CORE_ADDR.
11859 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11860
53807e9f
TT
118612020-03-12 Tom Tromey <tom@tromey.com>
11862
11863 * remote.c (remote_target::download_tracepoint)
11864 (remote_target::enable_tracepoint)
11865 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11866 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11867 sprintf_vma.
11868
64f25102
TT
118692020-03-12 Tom Tromey <tom@tromey.com>
11870
11871 * symfile-mem.c: Update CORE_ADDR size assert.
11872
272cd5a3
SM
118732020-03-12 Simon Marchi <simon.marchi@efficios.com>
11874
11875 * selftest.m4: Move to gdbsupport/.
11876 * acinclude.m4: Update path to selftest.m4.
11877
74cd3f9d
SM
118782020-03-12 Simon Marchi <simon.marchi@efficios.com>
11879
11880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11881 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11882 gdbarch-selfselftests.c and selftest-arch.c.
11883 (SUBDIR_UNITTESTS_OBS): Rename to...
11884 (SELFTESTS_OBS): ... this.
11885 (COMMON_SFILES): Remove disasm-selftests.c and
11886 gdbarch-selftests.c.
11887 * configure.ac: Don't add selftest-arch.{c,o} to
11888 CONFIG_{SRCS,OBS}.
11889 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11890 preprocessor conditions.
11891
db6878ac
SM
118922020-03-12 Simon Marchi <simon.marchi@efficios.com>
11893
11894 * configure.ac: Don't source bfd/development.sh.
11895 * selftest.m4: Modify comment.
11896 * configure: Re-generate.
11897
4d696a5c
SM
118982020-03-12 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11901 not "true" or "false".
11902 * configure: Re-generate.
11903
8dd8e1c7
CB
119042020-03-12 Christian Biesinger <cbiesinger@google.com>
11905
11906 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11907 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11908 renamed to arm_nbsd_supply_gregset.
11909 (fetch_register): Update to call arm_nbsd_supply_gregset.
11910 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11911 (arm_netbsd_nat_target::fetch_registers): Update.
11912 (fetch_elfcore_registers): Removed.
11913 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11914 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11915 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11916 not require NetBSD system headers.
11917 (arm_nbsd_regset): New struct.
11918 (arm_nbsd_iterate_over_regset_sections): New function.
11919 (arm_netbsd_init_abi_common): Updated to call
11920 set_gdbarch_iterate_over_regset_sections.
11921 * arm-nbsd-tdep.h: New file.
11922
dd69bf7a
KB
119232020-03-11 Kevin Buettner <kevinb@redhat.com>
11924
11925 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11926 recursion.
11927
a0761e34
SM
119282020-03-11 Simon Marchi <simon.marchi@efficios.com>
11929
11930 * configure: Re-generate.
11931
e7a82140
TT
119322020-03-11 Tom Tromey <tromey@adacore.com>
11933
11934 * ada-typeprint.c (print_choices): Fix comment.
11935
dcc050c8
AB
119362020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11937
11938 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11939 previous item in the list, when the list has no items.
11940
1c33af77
TV
119412020-03-11 Tom de Vries <tdevries@suse.de>
11942
11943 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11944 PROP_LOCLIST handling code.
11945
8c95582d
AB
119462020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11947
11948 * buildsym-legacy.c (record_line): Pass extra parameter to
11949 record_line.
11950 * buildsym.c (buildsym_compunit::record_line): Take an extra
11951 parameter, reduce duplication in the line table, and record the
11952 is_stmt flag in the line table.
11953 * buildsym.h (buildsym_compunit::record_line): Add extra
11954 parameter.
11955 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11956 non-statement lines.
11957 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11958 this to the symtab builder.
11959 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11960 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11961 through to dwarf_record_line_1.
11962 * infrun.c (process_event_stop_test): When stepping, don't stop at
11963 a non-statement instruction, and only refresh the step info when
11964 we land in the middle of a line's range. Also add an extra
11965 comment.
11966 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11967 field.
11968 * record-btrace.c (btrace_find_line_range): Only record lines
11969 marked as is-statement.
11970 * stack.c (frame_show_address): Show the frame address if we are
11971 in a non-statement sal.
11972 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11973 (maintenance_print_one_line_table): Print a header for the is_stmt
11974 column, and include is_stmt information in the output.
11975 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11976 preference to non-statements.
11977 (find_pcs_for_symtab_line): Prefer is-statement entries.
11978 (find_line_common): Likewise.
11979 * symtab.h (struct linetable_entry): Add is_stmt field.
11980 (struct symtab_and_line): Likewise.
11981 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11982 arranging the line table.
11983
e4003a34
TV
119842020-03-07 Tom de Vries <tdevries@suse.de>
11985
11986 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11987 DIE.
11988
e8932576
TT
119892020-03-07 Tom Tromey <tom@tromey.com>
11990
11991 * valops.c (value_literal_complex): Remove obsolete comment.
11992 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11993 comment.
11994
29734269
SM
119952020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11996
11997 * infrun.h: Forward-declare thread_info.
11998 (set_step_info): Add thread_info parameter, add doc.
11999 * infrun.c (set_step_info): Add thread_info parameter, move doc
12000 to header.
12001 * infrun.c (process_event_stop_test): Pass thread to
12002 set_step_info call.
12003 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12004 set_step_info.
12005 (prepare_one_step): Add thread_info parameter, pass it to
12006 set_step_frame and prepare_one_step (recursive) call.
12007 (step_1): Pass thread to prepare_one_step call.
12008 (step_command_fsm::should_stop): Pass thread to
12009 prepare_one_step.
12010 (until_next_fsm): Pass thread to set_step_frame call.
12011 (finish_command): Pass thread to set_step_info call.
12012
b7d64b29
HD
120132020-03-06 Hannes Domani <ssbssa@yahoo.de>
12014
12015 * windows-tdep.c (windows_solib_create_inferior_hook):
12016 Check if inferior is running.
12017
09f2921c
TV
120182020-03-06 Tom de Vries <tdevries@suse.de>
12019
12020 * NEWS: Fix "the the".
12021 * ctfread.c: Same.
12022
fd760e79
TV
120232020-03-06 Tom de Vries <tdevries@suse.de>
12024
12025 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12026
20ea4a60
AB
120272020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12028
12029 * .dir-locals.el: Add a comment referencing the other copies of
12030 this file.
12031
0afbabf0
JB
120322020-03-05 John Baldwin <jhb@FreeBSD.org>
12033
12034 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12035 psargs.
12036
842806cb
TBA
120372020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12038
12039 * .gitattributes: New file.
12040
be1e3d3e
TT
120412020-03-04 Tom Tromey <tom@tromey.com>
12042
12043 * symmisc.c (print_symbol_bcache_statistics)
12044 (print_objfile_statistics): Update.
12045 * symfile.c (allocate_symtab): Use intern.
12046 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12047 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12048 macro_cache>: Remove.
12049 <string_cache>: New member.
12050 (struct objfile) <intern>: New methods.
12051 * elfread.c (elf_symtab_read): Use intern.
12052 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12053 (dwarf2_compute_name, dwarf2_physname)
12054 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12055 names.
12056 (guess_partial_die_structure_name): Update.
12057 (partial_die_info::fixup): Intern name.
12058 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12059 name.
12060 (dwarf2_name): Intern name. Update.
12061 * buildsym.c (buildsym_compunit::get_macro_table): Use
12062 string_cache.
12063
4e7625fd
TT
120642020-03-04 Tom Tromey <tom@tromey.com>
12065
12066 * jit.c (bfd_open_from_target_memory): Make "target" const.
12067 * corefile.c (gnutarget): Now const.
12068 * gdbcore.h (gnutarget): Now const.
12069
46f9f931
HD
120702020-03-04 Hannes Domani <ssbssa@yahoo.de>
12071
12072 * NEWS: Mention support for WOW64 processes.
12073 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12074 (amd64_windows_segment_register_p): Remove static.
12075 (_initialize_amd64_windows_nat): Update.
12076 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12077 * i386-windows-nat.c (context_offset): Update.
12078 (i386_mappings): Rename and remove static.
12079 (i386_windows_segment_register_p): Remove static.
12080 (_initialize_i386_windows_nat): Update.
12081 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12082 (STATUS_WX86_SINGLE_STEP): New macro.
12083 (EnumProcessModulesEx): New macro.
12084 (Wow64SuspendThread): New macro.
12085 (Wow64GetThreadContext): New macro.
12086 (Wow64SetThreadContext): New macro.
12087 (Wow64GetThreadSelectorEntry): New macro.
12088 (windows_set_context_register_offsets): Add static.
12089 (windows_set_segment_register_p): Likewise.
12090 (windows_add_thread): Adapt for WOW64 processes.
12091 (windows_fetch_one_register): Likewise.
12092 (windows_nat_target::fetch_registers): Likewise.
12093 (windows_store_one_register): Likewise.
12094 (display_selector): Likewise.
12095 (display_selectors): Likewise.
12096 (handle_exception): Likewise.
12097 (windows_continue): Likewise.
12098 (windows_nat_target::resume): Likewise.
12099 (windows_add_all_dlls): Likewise.
12100 (do_initial_windows_stuff): Likewise.
12101 (windows_nat_target::attach): Likewise.
12102 (windows_get_exec_module_filename): Likewise.
12103 (windows_nat_target::create_inferior): Likewise.
12104 (windows_xfer_siginfo): Likewise.
12105 (_initialize_loadable): Initialize Wow64SuspendThread,
12106 Wow64GetThreadContext, Wow64SetThreadContext,
12107 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12108 * windows-nat.h (windows_set_context_register_offsets):
12109 Remove declaration.
12110 (windows_set_segment_register_p): Likewise.
12111 (i386_windows_segment_register_p): Add declaration.
12112 (amd64_windows_segment_register_p): Likewise.
12113
440cf44e
LM
121142020-03-04 Luis Machado <luis.machado@linaro.org>
12115
12116 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12117 in "info registers" for AArch64/ARM.
12118
12119 The change caused "info registers" to not print GPR's.
12120
12121 gdb/ChangeLog:
12122
12123 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12124
12125 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12126 when reg->group is empty and reggroup is not.
12127
1009d92f
TT
121282020-03-03 Tom Tromey <tromey@adacore.com>
12129
12130 * dwarf2/frame.c (struct dwarf2_frame_cache)
12131 <checked_tailcall_bottom, entry_cfa_sp_offset,
12132 entry_cfa_sp_offset_p>: Remove members.
12133 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12134 (dwarf2_frame_prev_register): Don't call
12135 dwarf2_tailcall_sniffer_first.
12136 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12137 * frame-unwind.c (add_unwinder): New fuction.
12138 (frame_unwind_init): Use it. Add tailcall unwinder.
12139
5e5d66b6
AB
121402020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12141 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12142
12143 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12144 value should be printed as true.
12145
584cf46d
HD
121462020-03-03 Hannes Domani <ssbssa@yahoo.de>
12147
12148 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12149 (windows_init_abi): Set and use windows_so_ops.
12150
7b973adc
SDJ
121512020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12152
12153 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12154 when verifying if dealing with a convenience variable.
12155
bb7b70ab
LM
121562020-03-03 Luis Machado <luis.machado@linaro.org>
12157
12158 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12159
9822cb57
SM
121602020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12161
12162 * infrun.c (gdbarch_supports_displaced_stepping): New.
12163 (use_displaced_stepping): Break up conditions in smaller pieces.
12164 Use gdbarch_supports_displaced_stepping.
12165 (displaced_step_prepare_throw): Use
12166 gdbarch_supports_displaced_stepping.
12167
63e163f2
AB
121682020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12169
12170 * NEWS: Mention new behaviour of the history filename.
12171 * top.c (write_history_p): Add comment.
12172 (show_write_history_p): Add header comment, give a different
12173 message when history writing is on, but the history filename is
12174 empty.
12175 (history_filename): Add comment.
12176 (history_filename_empty): New function.
12177 (show_history_filename): Add header comment, give a different
12178 message when the filename is empty.
12179 (init_history): Compare history_filename against nullptr, and only
12180 read history if the filename is not empty.
12181 (set_history_filename): Add header comment, and only make
12182 non-empty filenames absolute.
12183 (init_main): Make the filename argument to 'set history filename'
12184 optional.
12185
81b86b97
CB
121862020-03-02 Christian Biesinger <cbiesinger@google.com>
12187
12188 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12189 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12190 (fetch_fp_register): Update.
12191 (fetch_fp_regs): Update.
12192 (store_fp_register): Update.
12193 (store_fp_regs): Update.
12194 (arm_netbsd_nat_target::read_description): New function.
12195 (fetch_elfcore_registers): Update.
12196
24ed6739
AB
121972020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12200 general_thread if the stop reply is missing a thread-id.
12201 (remote_target::process_stop_reply): Use the first non-exited
12202 thread if the target didn't pass a thread-id.
12203 * infrun.c (do_target_wait): Move call to
12204 switch_to_inferior_no_thread to ....
12205 (do_target_wait_1): ... here.
12206
a84bb2a0
JT
122072020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12208
12209 * debuginfod-support.c: Include defs.h first.
12210
658dadf0
TV
122112020-02-28 Tom de Vries <tdevries@suse.de>
12212
12213 * symfile.c (set_initial_language): Use default language for lookup.
12214
4ebe4877
SM
122152020-02-28 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12218 reader variable, pass `this` to read_cutu_die_from_dwo.
12219
e5da1139
AM
122202020-02-27 Aaron Merey <amerey@redhat.com>
12221
12222 * source.c (open_source_file): Check for nullptr when computing
12223 srcpath.
12224
317f7127
TT
122252020-02-27 Tom Tromey <tromey@adacore.com>
12226
12227 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12228 member.
12229 (dwarf2_add_field): Don't update nfields.
12230 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12231
3104d9ee
AB
122322020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12233
12234 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12235 abs.
12236
b83470bf
TT
122372020-02-26 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12240 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12241 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12242 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12243 per_cu_data.
12244
edfe0a0c
TT
122452020-02-26 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/index-write.c (psym_index_map): Change type.
12248 (add_address_entry_worker, write_one_signatured_type)
12249 (recursively_count_psymbols, recursively_write_psymbols)
12250 (class debug_names, psyms_seen_size, write_gdbindex)
12251 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12252
0d79cdc4
AM
122532020-02-26 Aaron Merey <amerey@redhat.com>
12254
12255 * Makefile.in: Handle optional debuginfod support.
12256 * NEWS: Update.
12257 * README: Add --with-debuginfod summary.
12258 * config.in: Regenerate.
12259 * configure: Regenerate.
12260 * configure.ac: Handle optional debuginfod support.
12261 * debuginfod-support.c: debuginfod helper functions.
12262 * debuginfod-support.h: Ditto.
12263 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12264 summary.
12265 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12266 when a dwz file cannot be found.
12267 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12268 debuginfo file cannot be found.
12269 * source.c (open_source_file): Query debuginfod servers when a
12270 source file cannot be found.
12271 * top.c (print_gdb_configuration): Include
12272 --{with,without}-debuginfod in the output.
12273
b65ce565
JG
122742020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12275
12276 * thread.c (thr_try_catch_cmd): Print thread name.
12277
d4c9a4f8
SM
122782020-02-26 Simon Marchi <simon.marchi@efficios.com>
12279
12280 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12281 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12282 dwarf2_fetch_die_type_sect_off): Move to...
12283 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12284 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12285 dwarf2_fetch_die_type_sect_off): ... here.
12286 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12287 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12288 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12289
0dce4280
TV
122902020-02-26 Tom de Vries <tdevries@suse.de>
12291
12292 PR gdb/25603
12293 * symfile.c (set_initial_language): Exit-early if
12294 language_mode == language_mode_manual.
12295
450a1bfc
SM
122962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12297
12298 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12299 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12300 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12301
9e80cfa1
AB
123022020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12303
12304 * gdbtypes.c (create_array_type_with_stride): Handle negative
12305 array strides.
12306 * valarith.c (value_subscripted_rvalue): Likewise.
12307
09624f1f
LM
123082020-02-25 Luis Machado <luis.machado@linaro.org>
12309
12310 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12311
8cb5117c
SM
123122020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12313
12314 * loc.h (dwarf2_get_die_type): Move to...
12315 * read.h (dwarf2_get_die_type): ... here.
12316 * read.c (dwarf2_get_die_type): Move doc to header.
12317
c325c44e
JB
123182020-02-25 Joel Brobecker <brobecker@adacore.com>
12319
12320 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12321 'gnulib/Makefile.in' to the list.
12322
4ac93832
TT
123232020-02-24 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12326 Remove.
12327 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12328 XOBNEWVEC.
12329
197400e8
TT
123302020-02-24 Tom Tromey <tom@tromey.com>
12331
12332 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12333 New method.
12334 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12335 (dw2_do_instantiate_symtab, dw2_get_file_names)
12336 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12337
76935768
TT
123382020-02-24 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12341 make_scoped_restore.
12342 (dwarf2_psymtab::read_symtab): Don't clear
12343 reading_partial_symbols.
12344
a88ef40d
TV
123452020-02-24 Tom de Vries <tdevries@suse.de>
12346
12347 PR gdb/25592
12348 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12349
c9af6521
TV
123502020-02-24 Tom de Vries <tdevries@suse.de>
12351
12352 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12353 commands layout next/prev/regs.
12354
5707a07a
TT
123552020-02-22 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12358 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12359
3b0fb49e
TT
123602020-02-22 Tom Tromey <tom@tromey.com>
12361
12362 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12363
283be8bf
TT
123642020-02-22 Tom Tromey <tom@tromey.com>
12365
12366 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12367 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12368 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12369 * tui/tui.c (_initialize_tui): Add usage text.
12370
ca793b96
TT
123712020-02-22 Tom Tromey <tom@tromey.com>
12372
12373 * tui/tui-win.c (tui_set_focus_command)
12374 (tui_set_win_height_command): Use error_no_arg.
12375 (_initialize_tui_win): Update help text.
12376 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12377
432b5c40
TT
123782020-02-22 Tom Tromey <tom@tromey.com>
12379
12380 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12381 * tui/tui-disasm.h (struct tui_disasm_window)
12382 <display_start_addr>: Declare.
12383 * tui/tui-source.h (struct tui_source_window)
12384 <display_start_addr>: Declare.
12385 * tui/tui-winsource.h (struct tui_source_window_base)
12386 <show_source_line, display_start_addr>: New methods.
12387 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12388 Rename and move to protected section.
12389 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12390 (tui_source_window_base::do_erase_source_content): Update.
12391 (tui_source_window_base::show_source_line): Now a method.
12392 (tui_source_window_base::show_source_content)
12393 (tui_source_window_base::tui_source_window_base)
12394 (tui_source_window_base::rerender)
12395 (tui_source_window_base::refill)
12396 (tui_source_window_base::do_scroll_horizontal)
12397 (tui_source_window_base::set_is_exec_point_at)
12398 (tui_source_window_base::update_breakpoint_info)
12399 (tui_source_window_base::update_exec_info): Update.
12400 * tui/tui-source.c (tui_source_window::set_contents)
12401 (tui_source_window::showing_source_p)
12402 (tui_source_window::do_scroll_vertical)
12403 (tui_source_window::location_matches_p)
12404 (tui_source_window::line_is_displayed): Update.
12405 (tui_source_window::display_start_addr): New method.
12406 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12407 (tui_disasm_window::do_scroll_vertical)
12408 (tui_disasm_window::location_matches_p): Update.
12409 (tui_disasm_window::display_start_addr): New method.
12410
01b1af32
TT
124112020-02-22 Tom Tromey <tom@tromey.com>
12412
12413 * NEWS: Add entry for gdb.register_window_type.
12414 * tui/tui-layout.h (window_factory): New typedef.
12415 (tui_register_window): Declare.
12416 * tui/tui-layout.c (saved_tui_windows): New global.
12417 (tui_apply_current_layout): Use it.
12418 (tui_register_window): New function.
12419 * python/python.c (do_start_initialization): Call
12420 gdbpy_initialize_tui.
12421 (python_GdbMethods): Add "register_window_type" function.
12422 * python/python-internal.h (gdbpy_register_tui_window)
12423 (gdbpy_initialize_tui): Declare.
12424 * python/py-tui.c: New file.
12425 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12426
fc96d20b
TT
124272020-02-22 Tom Tromey <tom@tromey.com>
12428
12429 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12430
935c78c0
TT
124312020-02-22 Tom Tromey <tom@tromey.com>
12432
12433 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12434 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12435 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12436 (tui_set_win_focus_to): Move from tui-win.c.
12437
0240c8f1
TT
124382020-02-22 Tom Tromey <tom@tromey.com>
12439
12440 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12441 functions.
12442 (known_window_types): New global.
12443 (tui_get_window_by_name): Reimplement.
12444 (initialize_known_windows): New function.
12445 (validate_window_name): Rewrite.
12446 (_initialize_tui_layout): Call initialize_known_windows.
12447
fdb01f0c
TT
124482020-02-22 Tom Tromey <tom@tromey.com>
12449
12450 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12451 Remove constants.
12452 * tui/tui-winsource.h (struct tui_source_window_base)
12453 <tui_source_window_base>: Remove parameter.
12454 * tui/tui-winsource.c
12455 (tui_source_window_base::tui_source_window_base): Remove
12456 parameter.
12457 (tui_source_window_base::refill): Update.
12458 * tui/tui-stack.h (struct tui_locator_window)
12459 <tui_locator_window>: Update.
12460 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12461 Default the constructor.
12462 * tui/tui-regs.h (struct tui_data_item_window)
12463 <tui_data_item_window>: Default the constructor.
12464 (struct tui_data_window) <tui_data_window>: Likewise.
12465 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12466 Default the constructor.
12467 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12468 Default the constructor.
12469 <type>: Remove.
12470 (struct tui_win_info) <tui_win_info>: Default the constructor.
12471 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12472 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12473 Default the constructor.
12474
865a5aec
TT
124752020-02-22 Tom Tromey <tom@tromey.com>
12476
12477 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12478 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12479 * tui/tui-win.c (tui_resize_all): Don't call
12480 tui_delete_invisible_windows.
12481 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12482 done.
12483 (tui_set_layout): Update.
12484 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12485 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12486 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12487
e098d18c
TT
124882020-02-22 Tom Tromey <tom@tromey.com>
12489
12490 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12491 correctly.
12492
eb9c8874
TT
124932020-02-22 Tom Tromey <tom@tromey.com>
12494
12495 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12496
7eed1a8e
TT
124972020-02-22 Tom Tromey <tom@tromey.com>
12498
12499 * tui/tui-winsource.h (struct tui_source_window_iterator)
12500 <inner_iterator>: New etytypedef.
12501 <tui_source_window_iterator>: Take "end" parameter.
12502 <tui_source_window_iterator>: Take iterator.
12503 <operator*, advance>: Update.
12504 <m_iter>: Change type.
12505 <m_end>: New field.
12506 (struct tui_source_windows) <begin, end>: Update.
12507 * tui/tui-layout.c (tui_windows): New global.
12508 (tui_apply_current_layout): Clear tui_windows.
12509 (tui_layout_window::apply): Update tui_windows.
12510 * tui/tui-data.h (tui_windows): Declare.
12511 (all_tui_windows): Now inline function.
12512 (class tui_window_iterator, struct all_tui_windows): Remove.
12513
7c043ba6
TT
125142020-02-22 Tom Tromey <tom@tromey.com>
12515
12516 PR tui/17850:
12517 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12518 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12519 "height" argument.
12520 (class tui_layout_window) <get_sizes>: Likewise.
12521 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12522 argument.
12523 <get_sizes>: Add "height" argument.
12524 <m_vertical>: New field.
12525 * tui/tui-layout.c (tui_layout_split::clone): Update.
12526 (tui_layout_split::get_sizes): Add "height" argument.
12527 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12528 (tui_new_layout_command): Parse "-horizontal".
12529 (_initialize_tui_layout): Update help string.
12530 (tui_layout_split::specification): Add "-horizontal" when needed.
12531 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12532 argument.
12533 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12534 New methods.
12535
6bc56648
TT
125362020-02-22 Tom Tromey <tom@tromey.com>
12537
12538 * tui/tui-layout.h (enum tui_adjust_result): New.
12539 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12540 (class tui_layout_window) <adjust_size>: Return
12541 tui_adjust_result. Rewrite.
12542 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12543 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12544
c22fef7e
TT
125452020-02-22 Tom Tromey <tom@tromey.com>
12546
12547 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12548 parameter and return types.
12549 (class tui_layout_base) <specification>: Add "depth".
12550 (class tui_layout_window) <specification>: Add "depth".
12551 (class tui_layout_split) <specification>: Add "depth".
12552 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12553 and return types.
12554 (tui_new_layout_command): Parse sub-layouts.
12555 (_initialize_tui_layout): Update help string.
12556 (tui_layout_window::specification): Add "depth".
12557 (add_layout_command): Update.
12558
ee325b61
TT
125592020-02-22 Tom Tromey <tom@tromey.com>
12560
12561 * NEWS: Add "tui new-layout" item.
12562 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12563 Add new-layout command to help text.
12564 (validate_window_name): New function.
12565 (tui_new_layout_command): New function.
12566 (_initialize_tui_layout): Register "new-layout".
12567 (tui_layout_window::specification): New method.
12568 (tui_layout_window::specification): New method.
12569 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12570 method.
12571 (class tui_layout_window) <specification>: New method.
12572 (class tui_layout_split) <specification>: New method.
12573
416eb92d
TT
125742020-02-22 Tom Tromey <tom@tromey.com>
12575
12576 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12577 * tui/tui-win.c (window_name_completer): Update comment.
12578 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12579 Declare method.
12580 (class tui_layout_window) <replace_window>: Likewise.
12581 (class tui_layout_split) <replace_window>: Likewise.
12582 (tui_set_layout): Don't declare.
12583 (tui_set_initial_layout): Declare function.
12584 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12585 (asm_regs_layout): New globals.
12586 (tui_current_layout, show_layout): Remove.
12587 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12588 (find_layout, tui_apply_layout): New function.
12589 (layout_completer): Remove.
12590 (tui_next_layout): Reimplement.
12591 (tui_next_layout_command): New function.
12592 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12593 (tui_regs_layout): Reimplement.
12594 (tui_regs_layout_command): New function.
12595 (extract_display_start_addr): Rewrite.
12596 (next_layout, prev_layout): Remove.
12597 (tui_layout_window::replace_window): New method.
12598 (tui_layout_split::replace_window): New method.
12599 (destroy_layout): New function.
12600 (layout_list): New global.
12601 (add_layout_command): New function.
12602 (initialize_layouts): Update.
12603 (tui_layout_command): New function.
12604 (_initialize_tui_layout): Install "layout" commands.
12605 * tui/tui-data.h (enum tui_layout_type): Remove.
12606 (tui_current_layout): Don't declare.
12607
0dbc2fc7
TT
126082020-02-22 Tom Tromey <tom@tromey.com>
12609
12610 * tui/tui-regs.c (tui_reg_layout): Remove.
12611 (tui_reg_command): Use tui_regs_layout.
12612 * tui/tui-layout.h (tui_reg_command): Declare.
12613 * tui/tui-layout.c (tui_reg_command): New function.
12614
5afe342e
TT
126152020-02-22 Tom Tromey <tom@tromey.com>
12616
12617 * tui/tui.c (tui_rl_delete_other_windows): Call
12618 tui_remove_some_windows.
12619 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12620 Declare method.
12621 (class tui_layout_window) <remove_windows>: New method.
12622 (class tui_layout_split) <remove_windows>: Declare.
12623 (tui_remove_some_windows): Declare.
12624 * tui/tui-layout.c (tui_remove_some_windows): New function.
12625 (tui_layout_split::remove_windows): New method.
12626
427326a8
TT
126272020-02-22 Tom Tromey <tom@tromey.com>
12628
12629 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12630 * tui/tui-layout.h (tui_next_layout): Declare.
12631 * tui/tui-layout.c (tui_next_layout): New function.
12632
3fe12b6d
TT
126332020-02-22 Tom Tromey <tom@tromey.com>
12634
12635 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12636 correct coordinates.
12637
59b8b5d2
TT
126382020-02-22 Tom Tromey <tom@tromey.com>
12639
12640 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12641 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12642 DATA_WIN case.
12643
2a3d458b
TT
126442020-02-22 Tom Tromey <tom@tromey.com>
12645
12646 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12647 TUI_DISASM_WIN, not tui_win_list.
12648
3f0cbb04
TT
126492020-02-22 Tom Tromey <tom@tromey.com>
12650
12651 * valprint.c (generic_val_print_enum_1)
12652 (val_print_type_code_flags): Style member names.
12653 * rust-lang.c (val_print_struct, rust_print_enum)
12654 (rust_print_struct_def, rust_internal_print_type): Style member
12655 names.
12656 * p-valprint.c (pascal_object_print_value_fields): Style member
12657 names. Only call fprintf_symbol_filtered for static members.
12658 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12659 * f-valprint.c (f_val_print): Style member names.
12660 * f-typeprint.c (f_type_print_base): Style member names.
12661 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12662 call fprintf_symbol_filtered for static members.
12663 (cp_print_class_member): Style member names.
12664 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12665 member names.
12666 * ada-valprint.c (ada_print_scalar): Style enum names.
12667 (ada_val_print_enum): Likewise.
12668 * ada-typeprint.c (print_enum_type): Style enum names.
12669
d4d947ae
TT
126702020-02-21 Tom Tromey <tom@tromey.com>
12671
12672 * psympriv.h (struct partial_symtab): Update comment.
12673
e94e944b
TT
126742020-02-21 Tom Tromey <tromey@adacore.com>
12675
12676 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12677 type is CORE_ADDR.
12678
1eb73179
TV
126792020-02-21 Tom de Vries <tdevries@suse.de>
12680
12681 PR gdb/25534
12682 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12683 if dependencies[i]->user != NULL.
12684
4f180d53
AT
126852020-02-21 Ali Tamur <tamur@google.com>
12686
12687 * dwarf2/read.c (dwarf2_name): Add null check.
12688
22b6cd70
TT
126892020-02-20 Tom Tromey <tom@tromey.com>
12690
12691 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12692 ">=", in binary search.
12693 (dwarf2_find_containing_comp_unit): New overload.
12694 (run_test): New self-test.
12695 (_initialize_dwarf2_read): Register new test.
12696
bd0cf5a6
NC
126972020-02-20 Nelson Chu <nelson.chu@sifive.com>
12698
12699 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12700 * riscv-tdep.h: Likewise.
12701 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12702 rv32-only CSR.
12703 * features/riscv/64bit-csr.xml: Regenerated.
12704
3f702acd
SDJ
127052020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12706 Tom Tromey <tom@tromey.com>
12707
12708 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12709 of 'fputc_unfiltered'.
12710 (putchar_unfiltered): Call 'fputc_unfiltered'.
12711 (fputc_unfiltered): Call 'fputs_unfiltered'.
12712
d13c7322
AB
127132020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12714
12715 * config.in: Regenerate.
12716 * configure: Regenerate.
12717 * configure.ac: Add --with-python-libdir option.
12718 * main.c: Use WITH_PYTHON_LIBDIR.
12719
869d8950
TT
127202020-02-19 Tom Tromey <tom@tromey.com>
12721
12722 * symtab.c (general_symbol_info::compute_and_set_names): Use
12723 obstack_strndup. Simplify call to symbol_set_demangled_name.
12724
298e9637
SM
127252020-02-19 Simon Marchi <simon.marchi@efficios.com>
12726
12727 * dwarf2/read.c (allocate_signatured_type_table,
12728 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12729 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12730 Remove objfile parameter, update all callers.
12731
08410482
DE
127322020-02-19 Doug Evans <dje@google.com>
12733
12734 PR rust/25535
12735 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12736 rust_enum_variant calculation.
12737
dfdeeca1
TT
127382020-02-19 Tom Tromey <tromey@adacore.com>
12739
12740 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12741
2ef5453b
TT
127422020-02-19 Tom Tromey <tromey@adacore.com>
12743
12744 * ada-lang.c (cache_symbol): Use obstack_strdup.
12745
9f1528a1
AB
127462020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12747
12748 * configure: Regenerate.
12749
d3c22fa8
TT
127502020-02-19 Tom Tromey <tromey@adacore.com>
12751
12752 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12753 NULL check.
12754
bf84f706
MR
127552020-02-19 Maciej W. Rozycki <macro@wdc.com>
12756
12757 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12758
d1c9b20f
AB
127592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12760
12761 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12762 if GDBSERVER is not defined.
12763 (riscv_tdesc_cache): Likewise, also store const target_desc.
12764 (STATIC_IN_GDB): Define.
12765 (riscv_create_target_description): Update declaration with
12766 STATIC_IN_GDB.
12767 (riscv_lookup_target_description): New function, only define if
12768 GDBSERVER is not defined.
12769 * arch/riscv.h (riscv_create_target_description): Declare only
12770 when GDBSERVER is defined.
12771 (riscv_lookup_target_description): New declaration when GDBSERVER
12772 is not defined.
12773 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12774 (riscv_linux_read_features): ...this, and return
12775 riscv_gdbarch_features instead of target_desc.
12776 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12777 (riscv_linux_read_description): Rename to...
12778 (riscv_linux_read_features): ...this.
12779 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12780 Update to use riscv_gdbarch_features and
12781 riscv_lookup_target_description.
12782 * riscv-tdep.c (riscv_find_default_target_description): Use
12783 riscv_lookup_target_description instead of
12784 riscv_create_target_description.
12785
373d7ac0
SM
127862020-02-18 Simon Marchi <simon.marchi@efficios.com>
12787
12788 * valprint.c (generic_val_print_enum_1): When printing a flag
12789 enum with value 0 and there is no enumerator with value 0, print
12790 just "0" instead of "(unknown: 0x0)".
12791
b29a2df0
SM
127922020-02-18 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * valprint.c (generic_val_print_enum_1): Print unknown part of
12795 flag enum in hex.
12796
6740f0cc
SM
127972020-02-18 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12800 flag enums to contain duplicate enumerators.
12801 * valprint.c (generic_val_print_enum_1): Update comment.
12802
edd45eb0
SM
128032020-02-18 Simon Marchi <simon.marchi@efficios.com>
12804
12805 * dwarf2/read.c: Include "count-one-bits.h".
12806 (update_enumeration_type_from_children): If an enumerator has
12807 multiple bits set, don't treat the enumeration as a "flag enum".
12808 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12809 of flag enums have 0 or 1 bit set.
12810
6d0cf446
BE
128112020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12812
12813 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12814 conversion.
12815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12816 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12817 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12818 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12819 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12820
7001c1b7
SM
128212020-02-18 Simon Marchi <simon.marchi@efficios.com>
12822
12823 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12824
fdb61c6c
SM
128252020-02-14 Simon Marchi <simon.marchi@efficios.com>
12826
12827 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12828 displaced_step_closure_up.
12829 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12830 (struct displaced_step_closure_up):
12831 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12832 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12833 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12834 Likewise.
12835 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12836 * gdbarch.c, gdbarch.h: Re-generate.
12837 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12838 displaced_step_closure_up.
12839 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12840 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12841 * infrun.h (displaced_step_closure_up): New type alias.
12842 (struct displaced_step_inferior_state) <step_closure>: Change
12843 type to displaced_step_closure_up.
12844 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12845 displaced_step_closure_up.
12846 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12847
a4a38eb4
TT
128482020-02-14 Tom Tromey <tom@tromey.com>
12849
12850 * minidebug.c (gnu_debug_key): New global.
12851 (find_separate_debug_file_in_section): Use it.
12852
e8217e61
SM
128532020-02-14 Simon Marchi <simon.marchi@efficios.com>
12854
12855 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12856 std::unique_ptr.
12857 * gdbarch.c: Re-generate.
12858 * gdbarch.h: Re-generate.
12859 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12860 change.
12861 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12862 type to std::unique_ptr.
12863 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12864 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12865 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12866 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12867 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12868 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12869 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12870 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12871 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12872
d8d83535
SM
128732020-02-14 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12876 std::unique_ptr.
12877 (displaced_step_clear): Rename to...
12878 (displaced_step_reset): ... this. Just call displaced->reset ().
12879 (displaced_step_clear_cleanup): Rename to...
12880 (displaced_step_reset_cleanup): ... this.
12881 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12882 (displaced_step_fixup): Likewise.
12883 (resume_1): Likewise.
12884 (handle_inferior_event): Restore child's memory before calling
12885 displaced_step_fixup on the parent.
12886 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12887 to std::unique_ptr.
12888 <step_closure>: Change type to std::unique_ptr.
12889
5f661e03
SM
128902020-02-14 Simon Marchi <simon.marchi@efficios.com>
12891
12892 * arm-tdep.c: Include count-one-bits.h.
12893 (cleanup_block_store_pc): Use count_one_bits.
12894 (cleanup_block_load_pc): Use count_one_bits.
12895 (arm_copy_block_xfer): Use count_one_bits.
12896 (thumb2_copy_block_xfer): Use count_one_bits.
12897 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12898 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12899 (thumb_get_next_pcs_raw): Use count_one_bits.
12900 (arm_get_next_pcs_raw): Use count_one_bits_l.
12901 * arch/arm.c (bitcount): Remove.
12902 * arch/arm.h (bitcount): Remove.
12903
8084e579
TT
129042020-02-14 Tom Tromey <tromey@adacore.com>
12905
12906 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12907 Update.
12908 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12909 * dwarf2/loc.c (call_site_find_chain_1): Return
12910 unique_xmalloc_ptr.
12911 (call_site_find_chain): Likewise.
12912
258bf0ee
RB
129132020-02-14 Richard Biener <rguenther@suse.de>
12914
12915 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12916 on expression with division operators.
12917
f98a8458
AKS
129182020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12919
12920 * MAINTAINERS (Write After Approval): Adding myself.
12921
d1437c0e
TT
129222020-02-12 Tom Tromey <tom@tromey.com>
12923
12924 * event-loop.c (event_data, gdb_event, event_handler_func):
12925 Remove.
12926
3d4560f7
TT
129272020-02-12 Tom Tromey <tom@tromey.com>
12928
12929 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12930 (dwarf2_frame_objfile_data): Add comment.
12931 (find_comp_unit, set_comp_unit): New functions.
12932 (dwarf2_frame_find_fde): Use find_comp_unit.
12933 (dwarf2_build_frame_info): Use set_comp_unit.
12934
21982304
TT
129352020-02-12 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12938 (comp_unit): Don't initialize objfile.
12939 (execute_cfa_program): Add text_offset parameter.
12940 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12941 (dwarf2_frame_cache): Update.
12942 (dwarf2_build_frame_info): Don't set "objfile" member.
12943
4debb237
TT
129442020-02-12 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12947 (decode_frame_entry): Likewise.
12948 (dwarf2_build_frame_info): Update.
12949
0d404d44
TT
129502020-02-12 Tom Tromey <tom@tromey.com>
12951
12952 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12953 (decode_frame_entry_1): Use the comp_unit obstack.
12954
a7a3ae5c
TT
129552020-02-12 Tom Tromey <tom@tromey.com>
12956
12957 * dwarf2/frame.c (struct comp_unit): Add initializers and
12958 constructor.
12959 (dwarf2_frame_objfile_data): Store a comp_unit.
12960 (dwarf2_frame_find_fde): Update.
12961 (dwarf2_build_frame_info): Use "new".
12962
a9d65418
TT
129632020-02-12 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12966 (dwarf2_fde_table): Typedef for std::vector.
12967 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12968 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12969 (decode_frame_entry): Update.
12970 (dwarf2_build_frame_info): Use "new".
12971
7559c217
CB
129722020-02-12 Christian Biesinger <cbiesinger@google.com>
12973
12974 * arm-tdep.c (arm_gdbarch_init): Update.
12975 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12976 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12977 have_neon, is_m>: Change to bool.
12978
aeefc73c
CB
129792020-02-12 Christian Biesinger <cbiesinger@google.com>
12980
12981 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12982
d27b8e5f
TT
129832020-02-12 Tom Tromey <tom@tromey.com>
12984
12985 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12986
cd5900f3
HD
129872020-02-12 Hannes Domani <ssbssa@yahoo.de>
12988
12989 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12990 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12991
f056b22b
TT
129922020-02-11 Tom Tromey <tom@tromey.com>
12993
12994 * psymtab.h: Update comment.
12995
f92ff6b5
TT
129962020-02-11 Tom Tromey <tom@tromey.com>
12997
12998 * gdb_obstack.h (struct auto_obstack): Use
12999 DISABLE_COPY_AND_ASSIGN.
13000
3fd6912b
TT
130012020-02-11 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/frame.h (struct objfile): Don't forward declare.
13004
69ed9b74
CB
130052020-02-11 Christian Biesinger <cbiesinger@google.com>
13006
13007 * cris-tdep.c (cris_supply_gregset): Change signature to match
13008 what struct regset expects.
13009 (cris_regset): New struct.
13010 (fetch_core_registers): Remove.
13011 (cris_iterate_over_regset_sections): New function.
13012 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13013 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13014
bda874f6
CB
130152020-02-11 Christian Biesinger <cbiesinger@google.com>
13016
13017 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13018 registers.
13019
754e1564
CB
130202020-02-11 Christian Biesinger <cbiesinger@google.com>
13021
13022 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13023
8ddd8e0e
SM
130242020-02-11 Simon Marchi <simon.marchi@efficios.com>
13025
13026 * configure: Re-generate.
13027
898e7f60
SM
130282020-02-11 Simon Marchi <simon.marchi@efficios.com>
13029
13030 * configure: Re-generate.
13031
58df732b
SM
130322020-02-11 Simon Marchi <simon.marchi@efficios.com>
13033
13034 * acinclude: Update warning.m4 path.
13035 * warning.m4: Move to gdbsupport.
13036
da5bd37e
TT
130372020-02-11 Tom Tromey <tromey@adacore.com>
13038
13039 * remote.c (remote_console_output): Update.
13040 * printcmd.c (printf_command): Update.
13041 * event-loop.c (gdb_wait_for_event): Update.
13042 * linux-nat.c (sigchld_handler): Update.
13043 * remote-sim.c (gdb_os_write_stdout): Update.
13044 (gdb_os_flush_stdout): Update.
13045 (gdb_os_flush_stderr): Update.
13046 (gdb_os_write_stderr): Update.
13047 * exceptions.c (print_exception): Update.
13048 * remote-fileio.c (remote_fileio_func_read): Update.
13049 (remote_fileio_func_write): Update.
13050 * tui/tui.c (tui_enable): Update.
13051 * tui/tui-interp.c (tui_interp::init): Update.
13052 * utils.c (init_page_info): Update.
13053 (putchar_unfiltered, fputc_unfiltered): Update.
13054 (gdb_flush): Update.
13055 (emit_style_escape): Update.
13056 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13057 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13058 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13059 (stderr_file::write): Update.
13060 (stderr_file::puts): Update.
13061 * ui-file.h (ui_file_isatty, ui_file_write)
13062 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13063 (ui_file_puts): Don't declare.
13064
85f0dd3c
TV
130652020-02-10 Tom de Vries <tdevries@suse.de>
13066
13067 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13068 sentinel to char *.
13069
2e927613
TV
130702020-02-09 Tom de Vries <tdevries@suse.de>
13071
13072 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13073 filename if it matches "<artificial>".
13074
6bafc845
HD
130752020-02-09 Hannes Domani <ssbssa@yahoo.de>
13076
13077 * windows-tdep.c (struct enum_value_name): New struct.
13078 (create_enum): New function.
13079 (windows_get_siginfo_type): Create and use enum types.
13080
7928d571
HD
130812020-02-09 Hannes Domani <ssbssa@yahoo.de>
13082
13083 * NEWS: Mention $_siginfo support for Windows.
13084 * windows-nat.c (handle_exception): Set siginfo_er.
13085 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13086 (windows_xfer_siginfo): New function.
13087 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13088 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13089 (init_windows_gdbarch_data): New function.
13090 (get_windows_gdbarch_data): New function.
13091 (windows_get_siginfo_type): New function.
13092 (windows_init_abi): Register windows_get_siginfo_type.
13093 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13094
6751ebae
TT
130952020-02-08 Tom Tromey <tom@tromey.com>
13096
13097 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13098 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13099 <keep>: Declare method.
13100 <m_keep>: Remove member.
13101 <~cutu_reader>: Remove.
13102 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13103 (cutu_reader::cutu_reader): Update.
13104 (cutu_reader::keep): Rename from ~cutu_reader.
13105 (process_psymtab_comp_unit, build_type_psymtabs_1)
13106 (process_skeletonless_type_unit, load_partial_comp_unit)
13107 (load_full_comp_unit, dwarf2_read_addr_index)
13108 (read_signatured_type): Update.
13109
135f5437
TT
131102020-02-08 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13113 "want_partial_unit" parameter.
13114 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13115 Inline check for DW_TAG_partial_unit.
13116 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13117
9f66ff1c
TT
131182020-02-08 Tom Tromey <tom@tromey.com>
13119
13120 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13121 read.c.
13122 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13123 read.c.
13124
c8a7a66f
TT
131252020-02-08 Tom Tromey <tom@tromey.com>
13126
13127 * dwarf2/read.c (read_address): Move to comp-unit.c.
13128 (dwarf2_rnglists_process, dwarf2_ranges_process)
13129 (read_attribute_value, dwarf_decode_lines_1)
13130 (var_decode_location, decode_locdesc): Update.
13131 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13132 read.c. Remove "cu" parameter.
13133 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13134 method.
13135
8266302d
TT
131362020-02-08 Tom Tromey <tom@tromey.com>
13137
13138 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13139 (read_indirect_line_string): Update.
13140 * dwarf2/comp-unit.c (read_offset): Remove.
13141 (read_comp_unit_head): Update.
13142 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13143 method.
13144 (read_offset): Don't declare.
13145
4057dfde
TT
131462020-02-08 Tom Tromey <tom@tromey.com>
13147
13148 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13149 * dwarf2/read.c (struct comp_unit_head): Move to
13150 dwarf2/comp-unit.h.
13151 (enum class rcuh_kind): Move to comp-unit.h.
13152 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13153 (read_comp_unit_head, error_check_comp_unit_head)
13154 (read_and_check_comp_unit_head): Move to comp-unit.c.
13155 (read_offset, dwarf_unit_type_name): Likewise.
13156 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13157 (cutu_reader::cutu_reader, read_call_site_scope)
13158 (find_partial_die, follow_die_offset): Update.
13159 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13160
24aa364d
TT
131612020-02-08 Tom Tromey <tom@tromey.com>
13162
13163 * dwarf2/read.c (read_offset_1): Move to leb.c.
13164 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13165 (dwarf_decode_macro_bytes): Update.
13166 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13167 * dwarf2/leb.h (read_offset): Declare.
13168
2c7d5afc
TT
131692020-02-08 Tom Tromey <tom@tromey.com>
13170
13171 * dwarf2/read.c (dwarf2_section_size): Remove.
13172 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13173 Update.
13174 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13175
4075cb26
TT
131762020-02-08 Tom Tromey <tom@tromey.com>
13177
13178 * dwarf2/read.c (read_initial_length): Move to leb.c.
13179 * dwarf2/leb.h (read_initial_length): Declare.
13180 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13181 handle_nonstd parameter.
13182 * dwarf2/frame.c (read_initial_length): Remove.
13183 (decode_frame_entry_1): Update.
13184
09ba997f
TT
131852020-02-08 Tom Tromey <tom@tromey.com>
13186
13187 * dwarf2/loc.c (dwarf2_find_location_expression)
13188 (dwarf_evaluate_loc_desc::get_tls_address)
13189 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13190 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13191 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13192 (dwarf2_compile_property_to_c)
13193 (dwarf2_loc_desc_get_symbol_read_needs)
13194 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13195 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13196 (loclist_describe_location, loclist_tracepoint_var_ref)
13197 (loclist_generate_c_location): Update.
13198 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13199 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13200 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13201 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13202 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13203 (dwarf2_per_cu_data::addr_size)
13204 (dwarf2_per_cu_data::ref_addr_size)
13205 (dwarf2_per_cu_data::text_offset)
13206 (dwarf2_per_cu_data::addr_type): Now methods.
13207 (per_cu_header_read_in): Make per_cu "const".
13208 (dwarf2_version): Remove.
13209 (dwarf2_per_cu_data::int_type): Now a method.
13210 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13211 (set_die_type, read_array_type, read_subrange_index_type)
13212 (read_tag_string_type, read_subrange_type): Update.
13213 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13214 offset_size, ref_addr_size, text_offset, addr_type, version,
13215 objfile, int_type, addr_sized_int_type>: Declare methods.
13216
96c738c0
TT
132172020-02-08 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13220 Move earlier.
13221
8fdd972c
TT
132222020-02-08 Tom Tromey <tom@tromey.com>
13223
13224 * dwarf2/read.h (dwarf_line_debug): Declare.
13225 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13226 * dwarf2/read.c: Move line_header code to new files.
13227 (dwarf_line_debug): No longer static.
13228 * dwarf2/line-header.c: New file.
13229 * dwarf2/line-header.h: New file.
13230
03075812
TT
132312020-02-08 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2/read.c (struct line_header) <file_full_name,
13234 file_file_name>: Return unique_xmalloc_ptr.
13235 (line_header::file_file_name): Update.
13236 (line_header::file_full_name): Update.
13237 (dw2_get_file_names_reader): Update.
13238 (macro_start_file): Update.
13239
bb822404
TT
132402020-02-08 Tom Tromey <tom@tromey.com>
13241
13242 * dwarf2/read.c (struct line_header) <file_full_name,
13243 file_file_name>: Declare methods.
13244 (dw2_get_file_names_reader): Update.
13245 (file_file_name): Now a method.
13246 (file_full_name): Likewise.
13247 (macro_start_file): Update.
13248
009b64fc
TT
132492020-02-08 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.c (dwarf_always_disassemble)
13252 (show_dwarf_always_disassemble): Move to loc.c.
13253 (_initialize_dwarf2_read): Move "always-disassemble" registration
13254 to loc.c.
13255 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13256 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13257 static.
13258 (show_dwarf_always_disassemble): Move from read.c.
13259 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13260
5895093f
TT
132612020-02-08 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13264 (create_quick_file_names_table): Return htab_up.
13265 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13266 Update.
13267 * dwarf2/read.h (struct dwarf2_per_objfile)
13268 <quick_file_names_table>: Now htab_up.
13269
b3b32279
TT
132702020-02-08 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13273
1d33d811
TT
132742020-02-08 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13277 Rewrite.
13278 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13279 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13280 (abbrev_table::abbrev_table): No longer inline.
13281 (ABBREV_HASH_SIZE): Remove.
13282 (abbrev_table::m_abbrevs): Now an htab_up.
13283
86de1d91
TT
132842020-02-08 Tom Tromey <tom@tromey.com>
13285
13286 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13287 (cutu_reader): Update.
13288 (build_type_psymtabs_1): Update.
13289 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13290 (abbrev_table::alloc_abbrev): Update.
13291 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13292 (abbrev_table::read): New static method, renamed from
13293 abbrev_table_read_table.
13294 (abbrev_table::alloc_abbrev)
13295 (abbrev_table::add_abbrev): Now private.
13296 (abbrev_table::abbrev_table): Now private.
13297 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13298
0335378b
TT
132992020-02-08 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13302 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13303 htab_up.
13304
48b490f2
TT
133052020-02-08 Tom Tromey <tom@tromey.com>
13306
13307 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13308 htab_up.
13309 (lookup_dwo_unit_in_dwp): Update.
13310 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13311 on obstack.
13312
bc68fb19
TT
133132020-02-08 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13316 obstack.
13317
d15acc42
TT
133182020-02-08 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13321 line_header_hash.
13322 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13323 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13324 Change type to htab_up.
13325
eaa5fa8b
TT
133262020-02-08 Tom Tromey <tom@tromey.com>
13327
13328 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13329 htab_up. Don't allocate on obstack.
13330 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13331 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13332 Change type to htab_up.
13333
b0b6a987
TT
133342020-02-08 Tom Tromey <tom@tromey.com>
13335
13336 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13337 Change type to htab_up.
13338 * dwarf2/read.c (create_signatured_type_table_from_index)
13339 (create_signatured_type_table_from_debug_names)
13340 (create_all_type_units, add_type_unit)
13341 (lookup_dwo_signatured_type, lookup_signatured_type)
13342 (process_skeletonless_type_unit): Update.
13343 (create_debug_type_hash_table, create_debug_types_hash_table):
13344 Change type of types_htab.
13345 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13346 htab_up. Don't allocate on obstack.
13347 (create_cus_hash_table): Change type of cus_htab parameter.
13348 (struct dwo_file) <cus, tus>: Now htab_up.
13349 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13350 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13351 (queue_and_load_all_dwo_tus): Update.
13352 * dwarf2/index-write.c (write_gdbindex): Update.
13353 (write_debug_names): Update.
13354
39856def
TT
133552020-02-08 Tom Tromey <tom@tromey.com>
13356
13357 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13358 dwarf2/read.c. Remove "next" member. Add constructor ntad
13359 destructor.
13360 (struct dwarf2_per_objfile) <queue>: New member.
13361 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13362 dwarf2/read.h.
13363 (dwarf2_queue, dwarf2_queue_tail): Remove.
13364 (class dwarf2_queue_guard): Add parameter to constructor. Use
13365 DISABLE_COPY_AND_ASSIGN.
13366 <m_per_objfile>: New member.
13367 <~dwarf2_queue_guard>: Rewrite.
13368 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13369 Update.
13370 (~dwarf2_queue_item): New.
13371
3e225074
TT
133722020-02-08 Tom Tromey <tom@tromey.com>
13373
13374 * dwarf2/read.c (struct die_info) <has_children>: New member.
13375 (dw2_get_file_names_reader): Remove has_children.
13376 (dw2_get_file_names): Update.
13377 (read_cutu_die_from_dwo): Remove has_children.
13378 (cutu_reader::init_tu_and_read_dwo_dies)
13379 (cutu_reader::cutu_reader): Update.
13380 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13381 Remove has_children.
13382 (build_type_psymtabs_1, process_skeletonless_type_unit)
13383 (load_partial_comp_unit, load_full_comp_unit): Update.
13384 (create_dwo_cu_reader): Remove has_children.
13385 (create_cus_hash_table, read_die_and_children): Update.
13386 (read_full_die_1,read_full_die): Remove has_children.
13387 (read_signatured_type): Update.
13388 (class cutu_reader) <has_children>: Remove.
13389
82ca8957
TT
133902020-02-08 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2/expr.c: Rename from dwarf2expr.c.
13393 * dwarf2/expr.h: Rename from dwarf2expr.h.
13394 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13395 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13396 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13397 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13398 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13399 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13400 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13401 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13402 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13403 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13404 * dwarf2/loc.c: Rename from dwarf2loc.c.
13405 * dwarf2/loc.h: Rename from dwarf2loc.h.
13406 * dwarf2/read.c: Rename from dwarf2read.c.
13407 * dwarf2/read.h: Rename from dwarf2read.h.
13408 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13409 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13410 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13411 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13412 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13413 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13414 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13415 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13416 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13417 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13418 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13419 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13420 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13421 Update.
13422 * Makefile.in (COMMON_SFILES): Update.
13423 (HFILES_NO_SRCDIR): Update.
13424
9e35d499
TT
134252020-02-08 Tom Tromey <tom@tromey.com>
13426
13427 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13428 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13429
1eba2311
TT
134302020-02-08 Tom Tromey <tom@tromey.com>
13431
13432 * dwarf2read.h (struct die_info): Don't declare.
13433
e41c2da2
TT
134342020-02-08 Tom Tromey <tom@tromey.com>
13435
13436 * dwarf2read.h (die_info_ptr): Remove typedef.
13437
4fc6c0d5
TT
134382020-02-08 Tom Tromey <tom@tromey.com>
13439
13440 * dwarf2read.c (read_call_site_scope)
13441 (handle_data_member_location, dwarf2_add_member_fn)
13442 (mark_common_block_symbol_computed, read_common_block)
13443 (attr_to_dynamic_prop, partial_die_info::read)
13444 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13445 (dwarf2_symbol_mark_computed, set_die_type): Update.
13446 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13447 method.
13448 (attr_form_is_block): Don't declare.
13449 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13450
cd6c91b4
TT
134512020-02-08 Tom Tromey <tom@tromey.com>
13452
13453 * dwarf2read.c (dwarf2_find_base_address, )
13454 (read_call_site_scope, rust_containing_type)
13455 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13456 (handle_data_member_location, dwarf2_add_member_fn)
13457 (get_alignment, read_structure_type, process_structure_scope)
13458 (mark_common_block_symbol_computed, read_common_block)
13459 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13460 (partial_die_info::read, read_attribute_value, new_symbol)
13461 (lookup_die_type, dwarf2_get_ref_die_offset)
13462 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13463 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13464 (dwarf2_symbol_mark_computed): Update.
13465 * dwarf2/attribute.h (struct attribute) <value_as_address,
13466 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13467 methods.
13468 (value_as_address, attr_form_is_section_offset)
13469 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13470 * dwarf2/attribute.c (attribute::value_as_address)
13471 (attribute::form_is_section_offset, attribute::form_is_constant)
13472 (attribute::form_is_ref): Now methods.
13473
162dce55
TT
134742020-02-08 Tom Tromey <tom@tromey.com>
13475
13476 * dwarf2read.c (struct attribute, DW_STRING)
13477 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13478 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13479 (attr_form_is_block, attr_form_is_section_offset)
13480 (attr_form_is_constant, attr_form_is_ref): Move.
13481 * dwarf2/attribute.h: New file.
13482 * dwarf2/attribute.c: New file, from dwarf2read.c.
13483 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13484
3054dd54
TT
134852020-02-08 Tom Tromey <tom@tromey.com>
13486
13487 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13488 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13489 Move.
13490 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13491 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13492 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13493 abbrev.c.
13494 * dwarf2/abbrev.h: New file.
13495 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13496 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13497
96b79293
TT
134982020-02-08 Tom Tromey <tom@tromey.com>
13499
13500 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13501 (dwarf2_section_size, dwarf2_get_section_info)
13502 (create_signatured_type_table_from_debug_names)
13503 (create_addrmap_from_aranges, read_debug_names_from_section)
13504 (get_gdb_index_contents_from_section, read_comp_unit_head)
13505 (error_check_comp_unit_head, read_abbrev_offset)
13506 (create_debug_type_hash_table, init_cu_die_reader)
13507 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13508 (read_comp_units_from_section, create_cus_hash_table)
13509 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13510 (create_dwp_v2_section, dwarf2_rnglists_process)
13511 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13512 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13513 (read_indirect_string_from_dwz, read_addr_index_1)
13514 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13515 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13516 (fill_in_loclist_baton): Update.
13517 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13518 get_containing_section, get_bfd_owner, get_bfd_section,
13519 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13520 (dwarf2_read_section, get_section_name, get_section_file_name)
13521 (get_containing_section, get_section_bfd_owner)
13522 (get_section_bfd_section, get_section_name, get_section_file_name)
13523 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13524 declare.
13525 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13526 (dwarf2_section_info::get_bfd_owner)
13527 (dwarf2_section_info::get_bfd_section)
13528 (dwarf2_section_info::get_name)
13529 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13530 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13531 (dwarf2_section_info::read): Now methods.
13532 * dwarf-index-write.c (class debug_names): Update.
13533
2c86cff9
TT
135342020-02-08 Tom Tromey <tom@tromey.com>
13535
13536 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13537 Move to dwarf2/section.h.
13538 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13539 (get_section_bfd_section, get_section_name)
13540 (get_section_file_name, get_section_id, get_section_flags)
13541 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13542 dwarf2/section.c.
13543 * dwarf2/section.h: New file.
13544 * dwarf2/section.c: New file, from dwarf2read.c.
13545 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13546
f4382c45
TT
135472020-02-08 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13550 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13551 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13552 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13553 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13554 * dwarf2/leb.h: New file, from dwarf2read.c.
13555 * dwarf2/leb.c: New file, from dwarf2read.c.
13556 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13557 Remove.
13558 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13559 (COMMON_SFILES): Add dwarf2/leb.c.
13560
01840b7a
JB
135612020-02-08 Joel Brobecker <brobecker@adacore.com>
13562
13563 GDB 9.1 released.
13564
dfcb27e4
IB
135652020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13566
13567 PR gdb/25190:
aac66a4c
SM
13568 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13569 * gdb/remote.c (remote_console_output): Update.
13570 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13571 (ui_file_puts): ...this.
13572 * gdb/ui-file.h (ui_file_puts): Add declaration.
13573 * gdb/utils.c (emit_style_escape): Update.
13574 (flush_wrap_buffer): Update.
13575 (fputs_maybe_filtered): Update.
13576 (fputs_unfiltered): Add function.
dfcb27e4 13577
faa17681
IB
135782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13579
aac66a4c
SM
13580 * gdb/event-loop.c (gdb_wait_for_event): Update.
13581 * gdb/printcmd.c (printf_command): Update.
13582 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13583 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13584 (gdb_os_flush_stderr): Update.
13585 * gdb/remote.c (remote_console_output): Update.
13586 * gdb/ui-file.c (gdb_flush): Rename to...
13587 (ui_file_flush): ...this.
13588 (stderr_file::write): Update.
13589 (stderr_file::puts): Update.
13590 * gdb/ui-file.h (gdb_flush): Rename to...
13591 (ui_file_flush): ...this.
13592 * gdb/utils.c (gdb_flush): Add function.
13593 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13594
5abbbe1d
TT
135952020-02-07 Tom Tromey <tromey@adacore.com>
13596
13597 PR breakpoints/24915:
13598 * source.c (find_and_open_source): Do not check basenames_may_differ.
13599
919adfe8
TT
136002020-02-07 Tom Tromey <tom@tromey.com>
13601
13602 * README: Update gdbserver documentation.
13603 * gdbserver: Move to top level.
13604 * configure.tgt (build_gdbserver): Remove.
13605 * configure.ac: Remove --enable-gdbserver.
13606 * configure: Rebuild.
13607 * Makefile.in (distclean): Don't mention gdbserver.
13608
1d5d29e7
SV
136092020-02-06 Shahab Vahedi <shahab@synopsys.com>
13610
13611 * source-cache.c (source_cache::ensure): Surround
13612 get_plain_source_lines with a try/catch.
13613 (source_cache::get_line_charpos): Get rid of try/catch
13614 and only check for the return value of "ensure".
13615 * tui/tui-source.c (tui_source_window::set_contents):
13616 Simplify "nlines" calculation.
13617
6eb1129c
SV
136182020-02-06 Shahab Vahedi <shahab@synopsys.com>
13619
13620 * MAINTAINERS (Write After Approval): Add myself.
13621
c6a42d11
CB
136222020-02-05 Christian Biesinger <cbiesinger@google.com>
13623
13624 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13625 function call.
13626
c8ecdda6
CB
136272020-02-05 Christian Biesinger <cbiesinger@google.com>
13628
13629 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13630
f6480e70
MR
136312020-02-05 Maciej W. Rozycki <macro@wdc.com>
13632
13633 * nat/riscv-linux-tdesc.h: New file.
13634 * nat/riscv-linux-tdesc.c: New file, taking code from...
13635 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13636 ... here.
13637 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13638 NATDEPFILES.
13639
dcc9fbc6
AB
136402020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13641
13642 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13643 we don't set the fake simulator ptid to the null_ptid.
13644
719546c4
SM
136452020-02-03 Simon Marchi <simon.marchi@efficios.com>
13646
13647 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13648 * gdbthread.h (class thread_info) <resumed>: Likewise.
13649 * infrun.c (resume_1): Likewise.
13650 (proceed): Likewise.
13651 (infrun_thread_stop_requested): Likewise.
13652 (stop_all_threads): Likewise.
13653 (handle_inferior_event): Likewise.
13654 (restart_threads): Likewise.
13655 (finish_step_over): Likewise.
13656 (keep_going_stepped_thread): Likewise.
13657 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13658 (linux_handle_extended_wait): Likewise.
13659 * record-btrace.c (get_thread_current_frame_id): Likewise.
13660 * record-full.c (record_full_wait_1): Likewise.
13661 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13662 * target.c (target_resume): Likewise.
13663 * thread.c (set_running_thread): Likewise.
13664
e409c542
AKS
136652020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13666
13667 * f-valprint.c (f77_print_array_1): Changed datatype of index
13668 variable to LONGEST from int to enable it to contain bound
13669 values correctly.
13670
ee98c0da
MR
136712020-02-03 Maciej W. Rozycki <macro@wdc.com>
13672
13673 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13674 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13675 offsets according to FLEN determined.
13676 (riscv_linux_nat_target::read_description): Determine FLEN
13677 dynamically.
13678 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13679 according to FLEN determined.
13680 (riscv_linux_nat_target::store_registers): Likewise.
13681
aa66aac4
SV
136822020-02-01 Shahab Vahedi <shahab@synopsys.com>
13683
13684 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13685 when reg->group is empty and reggroup is not.
13686
fd9faca8
TT
136872020-01-31 Tom Tromey <tromey@adacore.com>
13688
13689 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13690 Call beneath target's mourn_inferior after unpushing.
13691
42330a68
AB
136922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 PR tui/9765
13695 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13696 have enough lines to fill the screen, still return the lowest
13697 address we found.
13698
7a27a45b
AB
136992020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13700
13701 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13702 '-', '<', and '>' commands.
13703
c47f70e2
PA
137042020-01-29 Pedro Alves <palves@redhat.com>
13705 Sergio Durigan Junior <sergiodj@redhat.com>
13706
13707 * infcmd.c (construct_inferior_arguments): Assert that
13708 'argc' is greater than 0.
13709
5133a315
LM
137102020-01-29 Luis Machado <luis.machado@linaro.org>
13711
13712 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13713 (BRK_INSN_MASK): Define to 0xd4200000.
13714 (aarch64_program_breakpoint_here_p): New function.
13715 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13716 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13717 breakpoint.c.
13718 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13719 breakpoint.h
13720 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13721 call gdbarch_program_breakpoint_here_p.
13722 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13723 default_program_breakpoint_here_p, changed return type to bool and
13724 simplified.
13725 * breakpoint.h (program_breakpoint_here): Moved prototype to
13726 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13727 return type to bool.
13728 * gdbarch.c: Regenerate.
13729 * gdbarch.h: Regenerate.
13730 * gdbarch.sh (program_breakpoint_here_p): New method.
13731 * infrun.c (handle_signal_stop): Call
13732 gdbarch_program_breakpoint_here_p.
13733
168f8c6b
TT
137342020-01-26 Tom Tromey <tom@tromey.com>
13735
13736 * ctfread.c (struct ctf_fp_info): Reindent.
13737 (_initialize_ctfread): Remove.
13738
128a391f
TT
137392020-01-26 Tom Tromey <tom@tromey.com>
13740
13741 * psymtab.c (partial_map_expand_apply)
13742 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13743 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13744 (psym_print_stats, psym_expand_symtabs_for_function)
13745 (psym_map_symbol_filenames, psym_map_matching_symbols)
13746 (psym_expand_symtabs_matching)
13747 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13748 (maintenance_check_psymtabs): Use new methods.
13749 * psympriv.h (struct partial_symtab) <readin_p,
13750 get_compunit_symtab>: New methods.
13751 <readin, compunit_symtab>: Remove members.
13752 (struct standard_psymtab): New.
13753 (struct legacy_psymtab): Derive from standard_psymtab.
13754 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13755 standard_psymtab.
13756 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13757
0494dbec
TT
137582020-01-26 Tom Tromey <tom@tromey.com>
13759
13760 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13761 read_dependencies. Add assert.
13762 * psymtab.c (partial_symtab::read_dependencies): New method.
13763 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13764 method.
13765 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13766 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13767 read_dependencies.
13768 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13769 Add assert.
13770
8566b89b
TT
137712020-01-26 Tom Tromey <tom@tromey.com>
13772
13773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13774 Call expand_psymtab.
13775 (xcoff_read_symtab): Call expand_psymtab.
13776 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13777 legacy_expand_psymtab.
13778 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13779 method.
13780 (struct legacy_psymtab) <expand_psymtab>: Implement.
13781 <legacy_expand_psymtab>: New member.
13782 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13783 (parse_partial_symbols): Set legacy_expand_psymtab.
13784 (psymtab_to_symtab_1): Change argument order. Call
13785 expand_psymtab.
13786 (new_psymtab): Set legacy_expand_psymtab.
13787 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13788 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13789 expand_psymtab.
13790 (dwarf2_psymtab::expand_psymtab): Rename from
13791 psymtab_to_symtab_1. Call expand_psymtab.
13792 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13793 (dbx_end_psymtab): Likewise.
13794 (dbx_psymtab_to_symtab_1): Change argument order. Call
13795 expand_psymtab.
13796 (dbx_read_symtab): Call expand_psymtab.
13797 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13798 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13799 (ctf_psymtab::read_symtab): Call expand_psymtab.
13800
077cbab2
TT
138012020-01-26 Tom Tromey <tom@tromey.com>
13802
13803 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13804 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13805 messages.
13806 * mdebugread.c (mdebug_read_symtab): Remove prints.
13807 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13808 assert.
13809 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13810
891813be
TT
138112020-01-26 Tom Tromey <tom@tromey.com>
13812
13813 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13814 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13815 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13816 legacy_symtab.
13817 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13818 * psymtab.c (psymtab_to_symtab): Call method.
13819 (dump_psymtab): Update.
13820 * psympriv.h (struct partial_symtab): Add virtual destructor.
13821 <read_symtab>: New method.
13822 (struct legacy_symtab): New.
13823 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13824 (struct pst_map) <pst>: Now a legacy_psymtab.
13825 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13826 (new_psymtab): Use legacy_psymtab.
13827 * dwarf2read.h (struct dwarf2_psymtab): New.
13828 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13829 * dwarf2read.c (dwarf2_create_include_psymtab)
13830 (dwarf2_build_include_psymtabs, create_type_unit_group)
13831 (create_partial_symtab, process_psymtab_comp_unit_reader)
13832 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13833 (set_partial_user): Use dwarf2_psymtab.
13834 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13835 (psymtab_to_symtab_1, process_full_comp_unit)
13836 (process_full_type_unit, dwarf2_ranges_read)
13837 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13838 (dwarf_decode_lines): Use dwarf2_psymtab.
13839 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13840 (add_address_entry_worker, write_one_signatured_type)
13841 (recursively_count_psymbols, recursively_write_psymbols)
13842 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13843 (write_debug_names): Likewise.
13844 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13845 <pst>: Now a legacy_psymtab.
13846 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13847 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13848 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13849 * ctfread.c (struct ctf_psymtab): New.
13850 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13851 ctf_psymtab.
13852 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13853 (create_partial_symtab): Return a ctf_psymtab.
13854 (scan_partial_symbols): Update.
13855
c3693a1d
TT
138562020-01-26 Tom Tromey <tom@tromey.com>
13857
13858 * xcoffread.c (xcoff_start_psymtab): Use new.
13859 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13860 renamed from start_psymtab_common.
13861 * psympriv.h (struct partial_symtab): Add new constructor.
13862 (start_psymtab_common): Don't declare.
13863 * mdebugread.c (parse_partial_symbols): Use new.
13864 * dwarf2read.c (create_partial_symtab): Use new.
13865 * dbxread.c (start_psymtab): Use new.
13866 * ctfread.c (create_partial_symtab): Use new.
13867
32caafd0
TT
138682020-01-26 Tom Tromey <tom@tromey.com>
13869
13870 * xcoffread.c (xcoff_end_psymtab): Use new.
13871 * psymtab.c (start_psymtab_common): Use new.
13872 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13873 Update.
13874 * psympriv.h (struct partial_symtab): Add parameters to
13875 constructor. Don't inline.
13876 (allocate_psymtab): Don't declare.
13877 * mdebugread.c (new_psymtab): Use new.
13878 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13879 * dbxread.c (dbx_end_psymtab): Use new.
13880
abaa2f23
TT
138812020-01-26 Tom Tromey <tom@tromey.com>
13882
13883 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13884 allocate_psymtab. Update documentation.
13885 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13886 allocate_psymtab. Do not use new.
13887 (allocate_psymtab): Use new. Update.
13888
6d94535f
TT
138892020-01-26 Tom Tromey <tom@tromey.com>
13890
13891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13892 * psymtab.c (psym_print_stats): Update.
13893 * psympriv.h (struct partial_symtab) <readin,
13894 psymtabs_addrmap_supported, anonymous>: Now bool.
13895 * mdebugread.c (psymtab_to_symtab_1): Update.
13896 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13897 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13898 (process_full_comp_unit, process_full_type_unit): Update.
13899 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13900 * ctfread.c (psymtab_to_symtab): Update.
13901
6f17252b
TT
139022020-01-26 Tom Tromey <tom@tromey.com>
13903
13904 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13905 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13906 * psymtab.c (psymtab_storage): Delete psymtabs.
13907 (psymtab_storage::allocate_psymtab): Use new.
13908 (psymtab_storage::discard_psymtab): Use delete.
13909 * psympriv.h (struct partial_symtab): Add constructor and
13910 initializers.
13911
f6f1cebc
TT
139122020-01-26 Tom Tromey <tom@tromey.com>
13913
13914 * machoread.c: Do not include psympriv.h.
13915
e47e48f6
PW
139162020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13917
13918 * NEWS: Mention the new option and the set/show commands.
13919
a2fedca9
PW
139202020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13921
13922 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13923 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13924 (validate_exec_file): New variables, enums, functions.
13925 (exec_file_locate_attach, print_section_info): Style the filenames.
13926 (_initialize_exec): Install show_exec_file_mismatch_command and
13927 set_exec_file_mismatch_command.
13928 * gdbcore.h (validate_exec_file): Declare.
13929 * infcmd.c (attach_command): Call validate_exec_file.
13930 * remote.c ( remote_target::remote_add_inferior): Likewise.
13931
7ffa82e1
AB
139322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13933
13934 * frame.c (find_frame_sal): Move call to get_next_frame into more
13935 inner scope.
13936 * inline-frame.c (inilne_state) <inline_state>: Update argument
13937 types.
13938 (inilne_state) <skipped_symbol>: Rename to...
13939 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13940 (skip_inline_frames): Build vector of skipped symbols and use this
13941 to reate the inline_state.
13942 (inline_skipped_symbol): Add a comment and some assertions, fetch
13943 skipped symbol from the list.
13944
3d92a3e3
AB
139452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13946
13947 * buildsym.c (lte_is_less_than): Delete.
13948 (buildsym_compunit::end_symtab_with_blockvector): Create local
13949 lambda function to sort line table entries, and use
13950 std::stable_sort instead of std::sort.
13951 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13952 markers when looking for a previous line.
13953
94a72be7
AB
139542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13955
13956 * dwarf2read.c (lnp_state_machine::record_line): Include
13957 end_sequence parameter in debug print out. Record the line if we
13958 are at an end_sequence marker even if it's not the start of a
13959 statement.
13960 * symmisc.c (maintenance_print_one_line_table): Print end of
13961 sequence markers with 'END' not '0'.
13962
53af73bf
PA
139632020-01-24 Pedro Alves <palves@redhat.com>
13964
13965 PR gdb/25410
13966 * thread.c (scoped_restore_current_thread::restore): Use
13967 switch_to_inferior_no_thread.
13968 * exec.c: Include "progspace-and-thread.h".
13969 (add_target_sections, remove_target_sections):
13970 scoped_restore_current_pspace_and_thread instead of
13971 scoped_restore_current_thread.
13972 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13973 and aspace to the inferior before calling clone_program_space.
13974 Remove stale comment.
13975
3050c6f4
CB
139762020-01-24 Christian Biesinger <cbiesinger@google.com>
13977
13978 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13979 (arm_netbsd_nat_target::fetch_registers): ...this.
13980 (arm_nbsd_nat_target::store_registers): Rename to...
13981 (arm_netbsd_nat_target::store_registers): ...this.
13982
73685c7e
CB
139832020-01-24 Christian Biesinger <cbiesinger@google.com>
13984
13985 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13986 register_t.
13987
89203d40
CB
139882020-01-24 Christian Biesinger <cbiesinger@google.com>
13989
13990 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13991 Update comment.
13992 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13993 Likewise.
13994 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13995 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13996 the correct replacement (iterate_over_regset_sections).
13997 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13998 Update comment.
13999
1ba1ac88
AB
140002020-01-24 Graham Markall <graham.markall@embecosm.com>
14001
14002 PR gdb/23718
14003 * gdb/python/python.c (execute_gdb_command): Call
14004 async_enable_stdin in catch block.
14005
f3364a6d
AB
140062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14007
14008 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14009 SWITCH_THRU_ALL_UIS.
14010
733d0a67
AB
140112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 PR tui/9765
14014 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14015 comment, add extra parameter, and update to store previous symbol
14016 when appropriate.
14017 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14018 add extra parameter.
14019 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14020 remove unneeded parameter, add try/catch around gdb_print_insn,
14021 rewrite to add items to asm_lines vector.
14022 (tui_find_backward_disassembly_start_address): New function.
14023 (tui_find_disassembly_address): Updated throughout.
14024 (tui_disasm_window::set_contents): Update for changes to
14025 tui_disassemble.
14026 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14027 number of lines to scroll.
14028
b3b3bada
SM
140292020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14030
14031 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14032 (SECT_OFF_DATA): Likewise.
14033 (SECT_OFF_RODATA): Likewise.
14034 (SECT_OFF_TEXT): Likewise.
14035 (SECT_OFF_BSS): Likewise.
14036 (struct objfile) <text_section_offset, data_section_offset>: New
14037 methods.
14038 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14039 objfile::text_section_offset.
14040 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14041 * coffread.c (coff_symtab_read): Likewise.
14042 (enter_linenos): Likewise.
14043 (process_coff_symbol): Likewise.
14044 * ctfread.c (get_objfile_text_range): Likewise.
14045 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14046 Use objfile::data_section_offset.
14047 * dwarf2-frame.c (execute_cfa_program): Use
14048 objfile::text_section_offset.
14049 (dwarf2_frame_find_fde): Likewise.
14050 * dwarf2read.c (create_addrmap_from_index): Likewise.
14051 (create_addrmap_from_aranges): Likewise.
14052 (dw2_find_pc_sect_compunit_symtab): Likewise.
14053 (process_psymtab_comp_unit_reader): Likewise.
14054 (add_partial_symbol): Likewise.
14055 (add_partial_subprogram): Likewise.
14056 (process_full_comp_unit): Likewise.
14057 (read_file_scope): Likewise.
14058 (read_func_scope): Likewise.
14059 (read_lexical_block_scope): Likewise.
14060 (read_call_site_scope): Likewise.
14061 (dwarf2_rnglists_process): Likewise.
14062 (dwarf2_ranges_process): Likewise.
14063 (dwarf2_ranges_read): Likewise.
14064 (dwarf_decode_lines_1): Likewise.
14065 (new_symbol): Likewise.
14066 (dwarf2_fetch_die_loc_sect_off): Likewise.
14067 (dwarf2_per_cu_text_offset): Likewise.
14068 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14069 * hppa-tdep.c (read_unwind_info): Likewise.
14070 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14071 * psympriv.h (struct partial_symtab): Likewise.
14072 * psymtab.c (find_pc_sect_psymtab): Likewise.
14073 * solib-svr4.c (enable_break): Likewise.
14074 * stap-probe.c (relocate_address): Use
14075 objfile::data_section_offset.
14076 * xcoffread.c (enter_line_range): Use
14077 objfile::text_section_offset.
14078 (read_xcoff_symtab): Likewise.
14079
ab53f382
SM
140802020-01-23 Simon Marchi <simon.marchi@efficios.com>
14081
14082 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14083 declaration to narrower scopes.
14084
e7eee665
SM
140852020-01-23 Simon Marchi <simon.marchi@efficios.com>
14086
14087 * darwin-nat.h (struct darwin_exception_msg, enum
14088 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14089 Move up.
14090 (class darwin_nat_target) <wait_1, check_new_threads,
14091 decode_exception_message, decode_message, stop_inferior,
14092 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14093 * darwin-nat.c (darwin_check_new_threads): Rename to...
14094 (darwin_nat_target::check_new_threads): ... this.
14095 (darwin_suspend_inferior_it): Remove.
14096 (darwin_decode_exception_message): Rename to...
14097 (darwin_nat_target::decode_exception_message): ... this.
14098 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14099 (darwin_decode_message): Rename to...
14100 (darwin_nat_target::decode_message): ... this.
14101 (cancel_breakpoint): Rename to...
14102 (darwin_nat_target::cancel_breakpoint): ... this.
14103 (darwin_wait): Rename to...
14104 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14105 instead of iterate_over_inferiors.
14106 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14107 (darwin_stop_inferior): Rename to...
14108 (darwin_nat_target::stop_inferior): ... this.
14109 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14110 (darwin_init_thread_list): Rename to...
14111 (darwin_nat_target::init_thread_list): ... this.
14112 (darwin_ptrace_him): Rename to...
14113 (darwin_nat_target::ptrace_him): ... this.
14114 (darwin_nat_target::create_inferior): Pass lambda function to
14115 fork_inferior.
14116 (darwin_nat_target::detach): Call stop_inferior instead of
14117 darwin_stop_inferior.
14118 * fork-inferior.h (fork_inferior): Change init_trace_fun
14119 parameter to gdb::function_view.
14120 * fork-inferior.c (fork_inferior): Likewise.
14121
c162ed3e
HD
141222020-01-23 Hannes Domani <ssbssa@yahoo.de>
14123
14124 * i386-cygwin-tdep.c (core_process_module_section): Update.
14125 * windows-nat.c (struct lm_info_windows): Add text_offset.
14126 (windows_xfer_shared_libraries): Update.
14127 * windows-tdep.c (windows_xfer_shared_library):
14128 Add text_offset_cached argument.
14129 * windows-tdep.h (windows_xfer_shared_library): Update.
14130
a1237872
SM
141312020-01-21 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14134
b3ee6dd9
SM
141352020-01-21 Simon Marchi <simon.marchi@efficios.com>
14136
14137 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14138 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14139 replace with range-based for.
14140 (gdbsim_interrupt_inferior): Remove.
14141 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14142 with a range-based for. Inline code from
14143 gdbsim_interrupt_inferior.
14144
f9fac3c8
SM
141452020-01-21 Simon Marchi <simon.marchi@efficios.com>
14146
14147 * infrun.c (proceed): Fix indentation.
14148
f6474de9
TT
141492020-01-21 Tom Tromey <tromey@adacore.com>
14150
14151 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14152 * python/python.c (python_extension_ops): Update.
14153 (gdbpy_colorize): New function.
14154 * python/lib/gdb/__init__.py (colorize): New function.
14155 * extension.h (ext_lang_colorize): Declare.
14156 * extension.c (ext_lang_colorize): New function.
14157 * extension-priv.h (struct extension_language_ops) <colorize>: New
14158 member.
14159 * cli/cli-style.c (_initialize_cli_style): Update help text.
14160
f0c702d4
LM
141612020-01-21 Luis Machado <luis.machado@linaro.org>
14162
14163 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14164 <cond>: Change type to bool.
14165 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14166 (aarch64_displaced_step_cb): Likewise.
14167 (aarch64_displaced_step_tb): Likewise.
14168
1ab139e5
LM
141692020-01-21 Luis Machado <luis.machado@linaro.org>
14170
14171 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14172 output.
14173
0c271889
LM
141742020-01-21 Luis Machado <luis.machado@linaro.org>
14175
14176 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14177 <pc_adjust>: Adjust the documentation.
14178 (aarch64_displaced_step_fixup): Check if PC really moved before
14179 adjusting it.
14180
4d89c1c7
TT
141812020-01-19 Tom Tromey <tom@tromey.com>
14182
14183 * disasm.c (~gdb_disassembler): New destructor.
14184 (gdb_buffered_insn_length): Call disassemble_free_target.
14185 * disasm.h (class gdb_disassembler): Declare destructor. Use
14186 DISABLE_COPY_AND_ASSIGN.
14187
c0ab21c2
TT
141882020-01-19 Tom Tromey <tom@tromey.com>
14189
14190 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14191 (die_reader_func_ftype): Remove.
14192 (cutu_reader): New class.
14193 (dw2_get_file_names_reader): Remove "data" parameter.
14194 (dw2_get_file_names): Use cutu_reader.
14195 (create_debug_type_hash_table): Update.
14196 (read_cutu_die_from_dwo): Update comment.
14197 (lookup_dwo_unit): Add dwo_name parameter.
14198 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14199 die_reader_func_ftype and data parameters.
14200 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14201 Remove die_reader_func_ftype and data parameters.
14202 (~cutu_reader): New; from init_cutu_and_read_dies.
14203 (cutu_reader::cutu_reader): Rename from
14204 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14205 and data parameters.
14206 (init_cutu_and_read_dies_simple): Remove.
14207 (struct process_psymtab_comp_unit_data): Remove.
14208 (process_psymtab_comp_unit_reader): Remove data parameter; add
14209 want_partial_unit and pretend_language parameters.
14210 (process_psymtab_comp_unit): Use cutu_reader.
14211 (build_type_psymtabs_reader): Remove data parameter.
14212 (build_type_psymtabs_1): Use cutu_reader.
14213 (process_skeletonless_type_unit): Likewise.
14214 (load_partial_comp_unit_reader): Remove.
14215 (load_partial_comp_unit): Use cutu_reader.
14216 (load_full_comp_unit_reader): Remove.
14217 (load_full_comp_unit): Use cutu_reader.
14218 (struct create_dwo_cu_data): Remove.
14219 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14220 dwo_unit parameters.
14221 (create_cus_hash_table): Use cutu_reader.
14222 (struct dwarf2_read_addr_index_data): Remove.
14223 (dwarf2_read_addr_index_reader): Remove.
14224 (dwarf2_read_addr_index): Use cutu_reader.
14225 (read_signatured_type_reader): Remove.
14226 (read_signatured_type): Use cutu_reader.
14227
45bbae5c
TT
142282020-01-19 Tom Tromey <tom@tromey.com>
14229
14230 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14231 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14232 (tui_wrefresh): Declare.
14233 * tui/tui-wingeneral.c (suppress_output): New global.
14234 (tui_suppress_output, ~tui_suppress_output): New constructor and
14235 destructor.
14236 (tui_wrefresh): New function.
14237 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14238 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14239 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14240 method.
14241 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14242 tui_wrefresh.
14243 (tui_data_window::no_refresh): New method.
14244 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14245 (tui_reg_command): Use tui_suppress_output
14246 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14247 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14248 method.
14249 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14250
4f13c1c0
TT
142512020-01-19 Tom Tromey <tom@tromey.com>
14252
14253 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14254 Handle case where symtab is null.
14255
fa47e446
SM
142562020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14257
14258 * linux-fork.c (one_fork_p): Simplify.
14259
26f42329
SM
142602020-01-17 Simon Marchi <simon.marchi@efficios.com>
14261
14262 * top.c (struct qt_args): Remove.
14263 (kill_or_detach): Change return type to void, replace `void *`
14264 parameter with a proper one.
14265 (print_inferior_quit_action): Likewise.
14266 (quit_confirm): Use range-based for loop to iterate over inferiors.
14267 (quit_force): Likewise.
14268
a9ac81b1
SM
142692020-01-17 Simon Marchi <simon.marchi@efficios.com>
14270
14271 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14272 `void *` parameter with proper parameters.
14273 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14274 (print_one_inferior): Change return type to void, replace `void *`
14275 parameter with proper parameters.
14276 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14277 inferiors.
14278 (get_other_inferior): Remove.
14279 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14280 inferiors.
14281
788eca49
SM
142822020-01-17 Simon Marchi <simon.marchi@efficios.com>
14283
14284 * mi/mi-interp.c (report_initial_inferior): Remove.
14285 (mi_interp::init): Use range-based for to iterate over inferiors.
14286
d9bc85b6
SM
142872020-01-17 Simon Marchi <simon.marchi@efficios.com>
14288
14289 * python/py-inferior.c (build_inferior_list): Remove.
14290 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14291
40c94099
CB
142922020-01-16 Christian Biesinger <cbiesinger@google.com>
14293
14294 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14295 (btrace_stitch_trace): Likewise.
14296 * charset.c (intermediate_encoding): Likewise (vaild).
14297 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14298 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14299 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14300
e0cdfe3c
HD
143012020-01-16 Hannes Domani <ssbssa@yahoo.de>
14302
14303 * windows-tdep.c (windows_get_tlb_type):
14304 Add rtl_user_process_parameters type.
14305
790f1718 143062020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14307 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14308
14309 PR build/24805
14310 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14311 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14312 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14313 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14314 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14315 (ps_plog): Redeclare exported functions with default visibility.
14316
3112ed97
NA
143172020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14318
14319 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14320 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14321
8dc3273e
SM
143222020-01-15 Simon Marchi <simon.marchi@efficios.com>
14323
14324 * infcmd.c (post_create_inferior): Use get_thread_regcache
14325 instead of get_current_regcache.
14326
ff47f4f0
TT
143272020-01-14 Tom Tromey <tom@tromey.com>
14328
14329 PR symtab/12535:
14330 * python/python.c (gdbpy_decode_line): Treat empty string the same
14331 as no argument.
14332
975f45b7
TT
143332020-01-14 Tom Tromey <tom@tromey.com>
14334
14335 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14336
25e57356
TT
143372020-01-14 Tom Tromey <tom@tromey.com>
14338
14339 * nat/linux-btrace.c: Don't include <config.h>.
14340 * nat/linux-ptrace.c: Don't include <config.h>.
14341 * nat/x86-linux-dregs.c: Don't include <config.h>.
14342
05ea2a05
TT
143432020-01-14 Tom Tromey <tom@tromey.com>
14344
14345 * configure: Rebuild.
14346 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14347
01027315
TT
143482020-01-14 Tom Tromey <tom@tromey.com>
14349
14350 * nat/x86-linux-dregs.c: Include configh.h.
14351 * nat/linux-ptrace.c: Include configh.h.
14352 * nat/linux-btrace.c: Include configh.h.
14353 * defs.h: Include config.h, bfd.h.
14354 * configure.ac: Don't source common.host.
14355 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14356 * configure: Rebuild.
14357 * acinclude.m4: Update path.
14358 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14359 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14360 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14361 (CLIBS): Add LIBSUPPORT.
14362 (CDEPS): Likewise.
14363 (COMMON_SFILES): Remove gdbsupport files.
14364 (HFILES_NO_SRCDIR): Likewise.
14365 (stamp-version): Update path to create-version.sh.
14366 (ALLDEPFILES): Remove gdbsupport files.
14367
b2ceabe8
TT
143682020-01-14 Tom Tromey <tom@tromey.com>
14369
14370 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14371 USE_WIN32API when needed.
14372 * configure.ac (USE_WIN32API): Don't define.
14373 (WIN32LIBS): Use WIN32APILIBS.
14374 * configure: Rebuild.
14375
25c51f71
TT
143762020-01-14 Tom Tromey <tom@tromey.com>
14377
14378 * configure: Rebuild.
14379 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14380
717c684d
BE
143812020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14382
14383 * skip.c (skip_function_command): Make skip w/o arguments use the
14384 name of the inlined function if pc is inside any inlined function.
14385
7da6a5b9
LM
143862020-01-14 Luis Machado <luis.machado@linaro.org>
14387
14388 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14389 * infrun.c (resume_1): Likewise.
14390 (handle_inferior_event): Remove stale comment.
14391 * linux-nat.c (linux_nat_target::resume): Update comments.
14392 (save_stop_reason): Likewise.
14393 (linux_nat_filter_event): Likewise.
14394 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14395
44e4c775
AB
143962020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14397
14398 * elfread.c (record_minimal_symbol): Set section index to 0 for
14399 non-allocatable sections.
14400
18a8505e
AT
14401
144022020-01-13 Ali Tamur <tamur@google.com>
14403
14404 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14405 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14406 to gdb::optional. Update comments.
14407 (dwo_file): Update comments.
14408 (read_attribute): Update API to take an additional out parameter,
14409 need_reprocess. This is used to mark attributes that need other
14410 attributes (e.g. str_offsets_base) for correct computation which may not
14411 have been read yet.
14412 (read_attribute_reprocess): New function declaration.
14413 (read_addr_index): Likewise.
14414 (read_dwo_str_index): Likewise.
14415 (read_stub_str_index): Likewise.
14416 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14417 (lookup_addr_base): New function definition.
14418 (lookup_ranges_base): Likewise.
14419 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14420 lookup_ranges_base.
14421 (init_cutu_and_read_dies): Update comments.
14422 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14423 unit. This is used to inherit parent's str_offsets_base and addr_base.
14424 Update comments.
14425 (init_cutu_and_read_dies_simple): Reflect API changes.
14426 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14427 (create_cus_hash_table): Change API to take parent compile unit.
14428 Reflect API changes.
14429 (open_and_init_dwo_file): Reflect API changes.
14430 (dwarf2_get_pc_bounds): Update comments.
14431 (dwarf2_record_block_ranges): Likewise.
14432 (read_full_die_1): Change implementation to reprocess attributes that
14433 need str_offsets_base and addr_base.
14434 (partial_die_info::read): Likewise.
14435 (read_attribute_reprocess): New function definition.
14436 (read_attribute_value): Change API to take an additional out parameter,
14437 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14438 when a non-dwo compile unit has index based attributes.
14439 (read_attribute): Reflect API changes.
14440 (read_addr_index_1): Reflect API changes. Update comments.
14441 (dwarf2_read_addr_index_data): Reflect API changes.
14442 (dwarf2_read_addr_index): Likewise.
14443 (read_str_index): Change API and implementation. This becomes a helper
14444 to be used by the new string index related methods. Update error
14445 message and comments.
14446 (read_dwo_str_index): New function definition.
14447 (read_stub_str_index): Likewise.
14448 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14449 * symfile.h (dwarf2_debug_sections): Likewise.
14450 * xcoffread.c (dwarf2_debug_sections): Likewise.
14451
0cac9354
SM
144522020-01-13 Simon Marchi <simon.marchi@efficios.com>
14453
14454 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14455 core_reg_sect type to gdb_byte *.
14456 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14457 * cris-tdep.c (fetch_core_registers): Likewise.
14458 * corelow.c (core_target::get_core_register_section): Change
14459 type of `contents` to gdb::byte_vector.
14460
9a6d629c
AB
144612020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14462
14463 * tui/tui-wingeneral.c (box_win): Position the title in the center
14464 of the border.
14465
d8b2f9e3
SM
144662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14467
14468 * corelow.c (core_target::get_core_register_section): Use
14469 std::vector instead of alloca.
14470
bb564c58
SM
144712020-01-13 Simon Marchi <simon.marchi@efficios.com>
14472
14473 * warning.m4: Add -Wmissing-declarations to build_warnings.
14474 * configure: Re-generate.
14475
6b366111
SM
144762020-01-13 Simon Marchi <simon.marchi@efficios.com>
14477
14478 * python/python.c (init__gdb_module): Add declaration.
14479
6c265988
SM
144802020-01-13 Simon Marchi <simon.marchi@efficios.com>
14481
14482 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14483 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14484 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14485 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14486 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14487 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14488 * ada-exp.y (_initialize_ada_exp): Add declaration.
14489 * ada-lang.c (_initialize_ada_language): Add declaration.
14490 * ada-tasks.c (_initialize_tasks): Add declaration.
14491 * agent.c (_initialize_agent): Add declaration.
14492 * aix-thread.c (_initialize_aix_thread): Add declaration.
14493 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14494 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14495 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14496 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14497 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14498 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14499 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14500 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14501 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14502 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14503 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14504 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14505 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14506 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14507 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14508 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14509 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14510 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14511 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14512 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14513 * annotate.c (_initialize_annotate): Add declaration.
14514 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14515 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14516 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14517 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14518 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14519 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14520 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14521 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14522 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14523 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14524 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14525 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14526 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14527 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14528 * auto-load.c (_initialize_auto_load): Add declaration.
14529 * auxv.c (_initialize_auxv): Add declaration.
14530 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14531 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14532 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14533 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14534 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14535 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14536 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14537 * breakpoint.c (_initialize_breakpoint): Add declaration.
14538 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14539 * btrace.c (_initialize_btrace): Add declaration.
14540 * charset.c (_initialize_charset): Add declaration.
14541 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14542 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14543 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14544 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14545 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14546 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14547 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14548 * coffread.c (_initialize_coffread): Add declaration.
14549 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14550 * compile/compile.c (_initialize_compile): Add declaration.
14551 * complaints.c (_initialize_complaints): Add declaration.
14552 * completer.c (_initialize_completer): Add declaration.
14553 * copying.c (_initialize_copying): Add declaration.
14554 * corefile.c (_initialize_core): Add declaration.
14555 * corelow.c (_initialize_corelow): Add declaration.
14556 * cp-abi.c (_initialize_cp_abi): Add declaration.
14557 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14558 * cp-support.c (_initialize_cp_support): Add declaration.
14559 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14560 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14561 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14562 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14563 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14564 * ctfread.c (_initialize_ctfread): Add declaration.
14565 * d-lang.c (_initialize_d_language): Add declaration.
14566 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14567 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14568 * dbxread.c (_initialize_dbxread): Add declaration.
14569 * dcache.c (_initialize_dcache): Add declaration.
14570 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14571 * disasm.c (_initialize_disasm): Add declaration.
14572 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14573 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14574 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14575 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14576 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14577 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14578 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14579 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14580 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14581 * elfread.c (_initialize_elfread): Add declaration.
14582 * exec.c (_initialize_exec): Add declaration.
14583 * extension.c (_initialize_extension): Add declaration.
14584 * f-lang.c (_initialize_f_language): Add declaration.
14585 * f-valprint.c (_initialize_f_valprint): Add declaration.
14586 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14587 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14588 * filesystem.c (_initialize_filesystem): Add declaration.
14589 * findcmd.c (_initialize_mem_search): Add declaration.
14590 * findvar.c (_initialize_findvar): Add declaration.
14591 * fork-child.c (_initialize_fork_child): Add declaration.
14592 * frame-base.c (_initialize_frame_base): Add declaration.
14593 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14594 * frame.c (_initialize_frame): Add declaration.
14595 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14596 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14597 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14598 * gcore.c (_initialize_gcore): Add declaration.
14599 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14600 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14601 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14602 * gdbarch.c (_initialize_gdbarch): Add declaration.
14603 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14604 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14605 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14606 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14607 * go-lang.c (_initialize_go_language): Add declaration.
14608 * go32-nat.c (_initialize_go32_nat): Add declaration.
14609 * guile/guile.c (_initialize_guile): Add declaration.
14610 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14611 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14612 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14613 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14614 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14615 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14616 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14617 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14618 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14619 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14620 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14621 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14622 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14623 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14624 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14625 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14626 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14627 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14628 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14629 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14630 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14631 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14632 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14633 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14634 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14635 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14636 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14637 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14638 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14639 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14640 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14641 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14642 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14643 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14644 * infcall.c (_initialize_infcall): Add declaration.
14645 * infcmd.c (_initialize_infcmd): Add declaration.
14646 * inflow.c (_initialize_inflow): Add declaration.
14647 * infrun.c (_initialize_infrun): Add declaration.
14648 * interps.c (_initialize_interpreter): Add declaration.
14649 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14650 * jit.c (_initialize_jit): Add declaration.
14651 * language.c (_initialize_language): Add declaration.
14652 * linux-fork.c (_initialize_linux_fork): Add declaration.
14653 * linux-nat.c (_initialize_linux_nat): Add declaration.
14654 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14655 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14656 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14657 * m2-lang.c (_initialize_m2_language): Add declaration.
14658 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14659 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14660 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14661 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14662 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14663 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14664 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14665 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14666 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14667 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14668 * machoread.c (_initialize_machoread): Add declaration.
14669 * macrocmd.c (_initialize_macrocmd): Add declaration.
14670 * macroscope.c (_initialize_macroscope): Add declaration.
14671 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14672 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14673 * maint.c (_initialize_maint_cmds): Add declaration.
14674 * mdebugread.c (_initialize_mdebugread): Add declaration.
14675 * memattr.c (_initialize_mem): Add declaration.
14676 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14677 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14678 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14679 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14680 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14681 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14682 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14683 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14684 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14685 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14686 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14687 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14688 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14689 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14690 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14691 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14692 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14693 * mipsread.c (_initialize_mipsread): Add declaration.
14694 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14695 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14696 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14697 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14698 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14699 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14700 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14701 * nto-procfs.c (_initialize_procfs): Add declaration.
14702 * objc-lang.c (_initialize_objc_language): Add declaration.
14703 * observable.c (_initialize_observer): Add declaration.
14704 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14705 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14706 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14707 * osabi.c (_initialize_gdb_osabi): Add declaration.
14708 * osdata.c (_initialize_osdata): Add declaration.
14709 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14710 * parse.c (_initialize_parse): Add declaration.
14711 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14712 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14713 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14714 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14715 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14716 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14717 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14718 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14719 * printcmd.c (_initialize_printcmd): Add declaration.
14720 * probe.c (_initialize_probe): Add declaration.
14721 * proc-api.c (_initialize_proc_api): Add declaration.
14722 * proc-events.c (_initialize_proc_events): Add declaration.
14723 * proc-service.c (_initialize_proc_service): Add declaration.
14724 * procfs.c (_initialize_procfs): Add declaration.
14725 * producer.c (_initialize_producer): Add declaration.
14726 * psymtab.c (_initialize_psymtab): Add declaration.
14727 * python/python.c (_initialize_python): Add declaration.
14728 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14729 * record-btrace.c (_initialize_record_btrace): Add declaration.
14730 * record-full.c (_initialize_record_full): Add declaration.
14731 * record.c (_initialize_record): Add declaration.
14732 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14733 * regcache.c (_initialize_regcache): Add declaration.
14734 * reggroups.c (_initialize_reggroup): Add declaration.
14735 * remote-notif.c (_initialize_notif): Add declaration.
14736 * remote-sim.c (_initialize_remote_sim): Add declaration.
14737 * remote.c (_initialize_remote): Add declaration.
14738 * reverse.c (_initialize_reverse): Add declaration.
14739 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14740 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14741 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14742 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14743 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14744 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14745 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14746 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14747 Add declaration.
14748 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14749 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14750 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14751 * rust-exp.y (_initialize_rust_exp): Add declaration.
14752 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14753 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14754 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14755 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14756 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14757 * score-tdep.c (_initialize_score_tdep): Add declaration.
14758 * ser-go32.c (_initialize_ser_dos): Add declaration.
14759 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14760 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14761 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14762 * ser-uds.c (_initialize_ser_socket): Add declaration.
14763 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14764 * serial.c (_initialize_serial): Add declaration.
14765 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14766 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14767 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14768 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14769 * skip.c (_initialize_step_skip): Add declaration.
14770 * sol-thread.c (_initialize_sol_thread): Add declaration.
14771 * solib-aix.c (_initialize_solib_aix): Add declaration.
14772 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14773 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14774 * solib-frv.c (_initialize_frv_solib): Add declaration.
14775 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14776 * solib-target.c (_initialize_solib_target): Add declaration.
14777 * solib.c (_initialize_solib): Add declaration.
14778 * source-cache.c (_initialize_source_cache): Add declaration.
14779 * source.c (_initialize_source): Add declaration.
14780 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14781 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14782 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14783 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14784 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14785 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14786 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14787 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14788 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14789 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14790 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14791 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14792 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14793 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14794 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14795 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14796 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14797 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14798 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14799 * stabsread.c (_initialize_stabsread): Add declaration.
14800 * stack.c (_initialize_stack): Add declaration.
14801 * stap-probe.c (_initialize_stap_probe): Add declaration.
14802 * std-regs.c (_initialize_frame_reg): Add declaration.
14803 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14804 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14805 * symfile.c (_initialize_symfile): Add declaration.
14806 * symmisc.c (_initialize_symmisc): Add declaration.
14807 * symtab.c (_initialize_symtab): Add declaration.
14808 * target.c (_initialize_target): Add declaration.
14809 * target-connection.c (_initialize_target_connection): Add
14810 declaration.
14811 * target-dcache.c (_initialize_target_dcache): Add declaration.
14812 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14813 * thread.c (_initialize_thread): Add declaration.
14814 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14815 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14816 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14817 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14818 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14819 * tracectf.c (_initialize_ctf): Add declaration.
14820 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14821 * tracefile.c (_initialize_tracefile): Add declaration.
14822 * tracepoint.c (_initialize_tracepoint): Add declaration.
14823 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14824 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14825 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14826 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14827 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14828 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14829 * tui/tui.c (_initialize_tui): Add declaration.
14830 * typeprint.c (_initialize_typeprint): Add declaration.
14831 * ui-style.c (_initialize_ui_style): Add declaration.
14832 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14833 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14834 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14835 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14836 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14837 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14838 * unittests/filtered_iterator-selftests.c
14839 (_initialize_filtered_iterator_selftests): Add declaration.
14840 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14841 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14842 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14843 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14844 * unittests/main-thread-selftests.c
14845 (_initialize_main_thread_selftests): Add declaration.
14846 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14847 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14848 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14849 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14850 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14851 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14852 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14853 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14854 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14855 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14856 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14857 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14858 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14859 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14860 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14861 declaration.
14862 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14863 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14864 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14865 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14866 * user-regs.c (_initialize_user_regs): Add declaration.
14867 * utils.c (_initialize_utils): Add declaration.
14868 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14869 * valops.c (_initialize_valops): Add declaration.
14870 * valprint.c (_initialize_valprint): Add declaration.
14871 * value.c (_initialize_values): Add declaration.
14872 * varobj.c (_initialize_varobj): Add declaration.
14873 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14874 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14875 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14876 * windows-nat.c (_initialize_windows_nat): Add declaration.
14877 (_initialize_check_for_gdb_ini): Add declaration.
14878 (_initialize_loadable): Add declaration.
14879 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14880 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14881 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14882 * xcoffread.c (_initialize_xcoffread): Add declaration.
14883 * xml-support.c (_initialize_xml_support): Add declaration.
14884 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14885 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14886 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14887 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14888
e2de1eec
SM
148892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14890
14891 * regformats/regdat.sh: Generate declaration for init function.
14892
e0037b4c
SM
148932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14894
14895 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14896 up.
14897 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14898 close_one_inferior>: New methods.
14899 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14900 pass down target to find_inferior_pid.
14901 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14902 Pass down target to find_inferior_ptid.
14903 (gdbsim_target::create_inferior): Pass down target to
14904 add_thread_silent.
14905 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14906 target down to find_inferior_ptid and switch_to_thread.
14907 (gdbsim_target::close): Update to call close_one_inferior.
14908 (struct resume_data): Remove.
14909 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14910 directly, rather than through a void pointer.
14911 (gdbsim_target::resume): Update to call resume_one_inferior.
14912
58920b5b
SM
149132020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14914
14915 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14916
4ec89149
PA
149172020-01-12 Pedro Alves <palves@redhat.com>
14918
14919 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14920 directly for the current inferior instead of
14921 discard_all_inferiors.
14922 (discard_all_inferiors): Delete.
14923
7c392d1d
TT
149242020-01-11 Tom Tromey <tom@tromey.com>
14925
14926 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14927 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14928 deprecated_safe_get_selected_frame.
14929
d9ebdab7
TBA
149302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14931
14932 * inferior.c (print_inferior): Switch inferior before printing it.
14933
f3c469b9
PA
149342020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14935 Pedro Alves <palves@redhat.com>
14936
14937 * progspace-and-thread.c (switch_to_program_space_and_thread):
14938 Assert there's an inferior for PSPACE. Use
14939 switch_to_inferior_no_thread to switch the inferior too.
14940 * progspace.c (program_space::~program_space): Call
14941 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14942 (program_space::free_all_objfiles): Don't call clear_symtab_users
14943 here.
14944 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14945
65c574f6
PA
149462020-01-10 Pedro Alves <palves@redhat.com>
14947
14948 * NEWS: Mention multi-target debugging, "info connections", and
14949 "add-inferior -no-connection".
14950
2f4fcf00
PA
149512020-01-10 Pedro Alves <palves@redhat.com>
14952
14953 * infrun.c: Include "target-connection.h".
14954 (check_multi_target_resumption): New.
14955 (proceed): Call it.
14956 * target-connection.c (make_target_connection_string): Make
14957 extern.
14958 * target-connection.h (make_target_connection_string): Declare.
14959
121b3efd
PA
149602020-01-10 Pedro Alves <palves@redhat.com>
14961
14962 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14963 * inferior.c (uiout_field_connection): New function.
14964 (print_inferior): Add new "connection-id" column.
14965 (add_inferior_command): Show connection number/string of added
14966 inferior.
14967 * process-stratum-target.h
14968 (process_stratum_target::connection_string): New virtual method.
14969 (process_stratum_target::connection_number): New field.
14970 * remote.c (remote_target::connection_string): New override.
14971 * target-connection.c: New file.
14972 * target-connection.h: New file.
14973 * target.c (decref_target): Remove process_stratum targets from
14974 the connection list.
14975 (target_stack::push): Add process_stratum targets to the
14976 connection list.
14977
4f837581
PA
149782020-01-10 Pedro Alves <palves@redhat.com>
14979
14980 Revert:
14981 2016-04-12 Pedro Alves <palves@redhat.com>
14982 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14983 Remove references to name.
14984 * serial.h (struct serial) <name>: Delete.
14985
f4ec508e
PA
149862020-01-10 Pedro Alves <palves@redhat.com>
14987
14988 * gdbarch-selftests.c (register_to_value_test): Remove "target
14989 already pushed" check.
14990
5b6d1e4f
PA
149912020-01-10 Pedro Alves <palves@redhat.com>
14992 John Baldwin <jhb@FreeBSD.org>
14993
14994 * aarch64-linux-nat.c
14995 (aarch64_linux_nat_target::thread_architecture): Adjust.
14996 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14997 (task_command_1): Likewise.
14998 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14999 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15000 (aix_thread_target::store_registers)
15001 (aix_thread_target::thread_alive): Adjust.
15002 * amd64-fbsd-tdep.c: Include "inferior.h".
15003 (amd64fbsd_get_thread_local_address): Pass down target.
15004 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15005 thread's gdbarch instead of target_gdbarch.
15006 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15007 get_last_target_status.
15008 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15009 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15010 inferiors.
15011 (update_inserted_breakpoint_locations): Skip if inferiors with no
15012 execution.
15013 (update_global_location_list): When handling moribund locations,
15014 find representative inferior for location's pspace, and use thread
15015 count of its process_stratum target.
15016 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15017 * bsd-uthread.c (bsd_uthread_target::wait): Use
15018 as_process_stratum_target and adjust thread_change_ptid and
15019 add_thread calls.
15020 (bsd_uthread_target::update_thread_list): Use
15021 as_process_stratum_target and adjust find_thread_ptid,
15022 thread_change_ptid and add_thread calls.
15023 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15024 find_thread_ptid call.
15025 * corelow.c (add_to_thread_list): Adjust add_thread call.
15026 (core_target_open): Adjust add_thread_silent and thread_count
15027 calls.
15028 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15029 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15030 * event-top.c (async_disconnect): Pop targets from all inferiors.
15031 * exec.c (add_target_sections): Push exec target on all inferiors
15032 sharing the program space.
15033 (remove_target_sections): Remove the exec target from all
15034 inferiors sharing the program space.
15035 (exec_on_vfork): New.
15036 * exec.h (exec_on_vfork): Declare.
15037 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15038 Pass it down.
15039 (fbsd_nat_target::update_thread_list): Adjust.
15040 (fbsd_nat_target::resume): Adjust.
15041 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15042 down.
15043 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15044 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15045 get_thread_arch_regcache call.
15046 * fork-child.c (gdb_startup_inferior): Pass target down to
15047 startup_inferior and set_executing.
15048 * gdbthread.h (struct process_stratum_target): Forward declare.
15049 (add_thread, add_thread_silent, add_thread_with_info)
15050 (in_thread_list): Add process_stratum_target parameter.
15051 (find_thread_ptid(inferior*, ptid_t)): New overload.
15052 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15053 parameter.
15054 (all_threads()): Delete overload.
15055 (all_threads, all_non_exited_threads): Add process_stratum_target
15056 parameter.
15057 (all_threads_safe): Use brace initialization.
15058 (thread_count): Add process_stratum_target parameter.
15059 (set_resumed, set_running, set_stop_requested, set_executing)
15060 (threads_are_executing, finish_thread_state): Add
15061 process_stratum_target parameter.
15062 (switch_to_thread): Use is_current_thread.
15063 * i386-fbsd-tdep.c: Include "inferior.h".
15064 (i386fbsd_get_thread_local_address): Pass down target.
15065 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15066 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15067 have_inferiors check.
15068 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15069 (inf_ptrace_target::attach): Adjust.
15070 * infcall.c (run_inferior_call): Adjust.
15071 * infcmd.c (run_command_1): Pass target to
15072 scoped_finish_thread_state.
15073 (proceed_thread_callback): Skip inferiors with no execution.
15074 (continue_command): Rename 'all_threads' local to avoid hiding
15075 'all_threads' function. Adjust get_last_target_status call.
15076 (prepare_one_step): Adjust set_running call.
15077 (signal_command): Use user_visible_resume_target. Compare thread
15078 pointers instead of inferior_ptid.
15079 (info_program_command): Adjust to pass down target.
15080 (attach_command): Mark target's 'thread_executing' flag.
15081 (stop_current_target_threads_ns): New, factored out from ...
15082 (interrupt_target_1): ... this. Switch inferior before making
15083 target calls.
15084 * inferior-iter.h
15085 (struct all_inferiors_iterator, struct all_inferiors_range)
15086 (struct all_inferiors_safe_range)
15087 (struct all_non_exited_inferiors_range): Filter on
15088 process_stratum_target too. Remove explicit.
15089 * inferior.c (inferior::inferior): Push dummy target on target
15090 stack.
15091 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15092 Add process_stratum_target parameter, and pass it down.
15093 (have_live_inferiors): Adjust.
15094 (switch_to_inferior_and_push_target): New.
15095 (add_inferior_command, clone_inferior_command): Handle
15096 "-no-connection" parameter. Use
15097 switch_to_inferior_and_push_target.
15098 (_initialize_inferior): Mention "-no-connection" option in
15099 the help of "add-inferior" and "clone-inferior" commands.
15100 * inferior.h: Include "process-stratum-target.h".
15101 (interrupt_target_1): Use bool.
15102 (struct inferior) <push_target, unpush_target, target_is_pushed,
15103 find_target_beneath, top_target, process_target, target_at,
15104 m_stack>: New.
15105 (discard_all_inferiors): Delete.
15106 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15107 (all_inferiors, all_non_exited_inferiors): Add
15108 process_stratum_target parameter.
15109 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15110 (target_last_proc_target): New global.
15111 (follow_fork_inferior): Push target on new inferior. Pass target
15112 to add_thread_silent. Call exec_on_vfork. Handle target's
15113 reference count.
15114 (follow_fork): Adjust get_last_target_status call. Also consider
15115 target.
15116 (follow_exec): Push target on new inferior.
15117 (struct execution_control_state) <target>: New field.
15118 (user_visible_resume_target): New.
15119 (do_target_resume): Call target_async.
15120 (resume_1): Set target's threads_executing flag. Consider resume
15121 target.
15122 (commit_resume_all_targets): New.
15123 (proceed): Also consider resume target. Skip threads of inferiors
15124 with no execution. Commit resumtion in all targets.
15125 (start_remote): Pass current inferior to wait_for_inferior.
15126 (infrun_thread_stop_requested): Consider target as well. Pass
15127 thread_info pointer to clear_inline_frame_state instead of ptid.
15128 (infrun_thread_thread_exit): Consider target as well.
15129 (random_pending_event_thread): New inferior parameter. Use it.
15130 (do_target_wait): Rename to ...
15131 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15132 down.
15133 (threads_are_resumed_pending_p, do_target_wait): New.
15134 (prepare_for_detach): Adjust calls.
15135 (wait_for_inferior): New inferior parameter. Handle it. Use
15136 do_target_wait_1 instead of do_target_wait.
15137 (fetch_inferior_event): Adjust. Switch to representative
15138 inferior. Pass target down.
15139 (set_last_target_status): Add process_stratum_target parameter.
15140 Save target in global.
15141 (get_last_target_status): Add process_stratum_target parameter and
15142 handle it.
15143 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15144 (context_switch): Check inferior_ptid == null_ptid before calling
15145 inferior_thread().
15146 (get_inferior_stop_soon): Pass down target.
15147 (wait_one): Rename to ...
15148 (poll_one_curr_target): ... this.
15149 (struct wait_one_event): New.
15150 (wait_one): New.
15151 (stop_all_threads): Adjust.
15152 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15153 event's target.
15154 (switch_back_to_stepped_thread): Also consider target.
15155 (print_stop_event): Update.
15156 (normal_stop): Update. Also consider the resume target.
15157 * infrun.h (wait_for_inferior): Remove declaration.
15158 (user_visible_resume_target): New declaration.
15159 (get_last_target_status, set_last_target_status): New
15160 process_stratum_target parameter.
15161 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15162 process_stratum_target parameter, and use it.
15163 (clear_inline_frame_state (thread_info*)): New.
15164 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15165 process_stratum_target parameter.
15166 (clear_inline_frame_state (thread_info*)): Declare.
15167 * linux-fork.c (delete_checkpoint_command): Pass target down to
15168 find_thread_ptid.
15169 (checkpoint_command): Adjust.
15170 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15171 instead of just tweaking inferior_ptid.
15172 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15173 (exit_lwp): Pass target down to find_thread_ptid.
15174 (attach_proc_task_lwp_callback): Pass target down to
15175 add_thread/set_running/set_executing.
15176 (linux_nat_target::attach): Pass target down to
15177 thread_change_ptid.
15178 (get_detach_signal): Pass target down to find_thread_ptid.
15179 Consider last target status's target.
15180 (linux_resume_one_lwp_throw, resume_lwp)
15181 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15182 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15183 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15184 (linux_nat_target::async_wait_fd): New.
15185 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15186 target down.
15187 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15188 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15189 * linux-thread-db.c (struct thread_db_info::process_target): New
15190 field.
15191 (add_thread_db_info): Save target.
15192 (get_thread_db_info): New process_stratum_target parameter. Also
15193 match target.
15194 (delete_thread_db_info): New process_stratum_target parameter.
15195 Also match target.
15196 (thread_from_lwp): Adjust to pass down target.
15197 (thread_db_notice_clone): Pass down target.
15198 (check_thread_db_callback): Pass down target.
15199 (try_thread_db_load_1): Always push the thread_db target.
15200 (try_thread_db_load, record_thread): Pass target down.
15201 (thread_db_target::detach): Pass target down. Always unpush the
15202 thread_db target.
15203 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15204 target down. Always unpush the thread_db target.
15205 (find_new_threads_callback, thread_db_find_new_threads_2)
15206 (thread_db_target::update_thread_list): Pass target down.
15207 (thread_db_target::pid_to_str): Pass current inferior down.
15208 (thread_db_target::get_thread_local_address): Pass target down.
15209 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15210 target down.
15211 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15212 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15213 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15214 (procfs_init_inferior): Rename to ...
15215 (procfs_target::procfs_init_inferior): ... this and adjust.
15216 (procfs_target::create_inferior, procfs_notice_thread)
15217 (procfs_do_thread_registers): Adjust.
15218 * ppc-fbsd-tdep.c: Include "inferior.h".
15219 (ppcfbsd_get_thread_local_address): Pass down target.
15220 * proc-service.c (ps_xfer_memory): Switch current inferior and
15221 program space as well.
15222 (get_ps_regcache): Pass target down.
15223 * process-stratum-target.c
15224 (process_stratum_target::thread_address_space)
15225 (process_stratum_target::thread_architecture): Pass target down.
15226 * process-stratum-target.h
15227 (process_stratum_target::threads_executing): New field.
15228 (as_process_stratum_target): New.
15229 * ravenscar-thread.c
15230 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15231 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15232 down.
15233 * record-btrace.c (record_btrace_target::info_record): Adjust.
15234 (record_btrace_target::record_method)
15235 (record_btrace_target::record_is_replaying)
15236 (record_btrace_target::fetch_registers)
15237 (get_thread_current_frame_id, record_btrace_target::resume)
15238 (record_btrace_target::wait, record_btrace_target::stop): Pass
15239 target down.
15240 * record-full.c (record_full_wait_1): Switch to event thread.
15241 Pass target down.
15242 * regcache.c (regcache::regcache)
15243 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15244 process_stratum_target parameter and handle it.
15245 (current_thread_target): New global.
15246 (get_thread_regcache): Add process_stratum_target parameter and
15247 handle it. Switch inferior before calling target method.
15248 (get_thread_regcache): Pass target down.
15249 (get_thread_regcache_for_ptid): Pass target down.
15250 (registers_changed_ptid): Add process_stratum_target parameter and
15251 handle it.
15252 (registers_changed_thread, registers_changed): Pass target down.
15253 (test_get_thread_arch_aspace_regcache): New.
15254 (current_regcache_test): Define a couple local test_target_ops
15255 instances and use them for testing.
15256 (readwrite_regcache): Pass process_stratum_target parameter.
15257 (cooked_read_test, cooked_write_test): Pass mock_target down.
15258 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15259 (get_thread_arch_aspace_regcache): Add process_stratum_target
15260 parameter.
15261 (regcache::target): New method.
15262 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15263 (regcache::registers_changed_ptid): Add process_stratum_target
15264 parameter.
15265 (regcache::m_target): New field.
15266 (registers_changed_ptid): Add process_stratum_target parameter.
15267 * remote.c (remote_state::supports_vCont_probed): New field.
15268 (remote_target::async_wait_fd): New method.
15269 (remote_unpush_and_throw): Add remote_target parameter.
15270 (get_current_remote_target): Adjust.
15271 (remote_target::remote_add_inferior): Push target.
15272 (remote_target::remote_add_thread)
15273 (remote_target::remote_notice_new_inferior)
15274 (get_remote_thread_info): Pass target down.
15275 (remote_target::update_thread_list): Skip threads of inferiors
15276 bound to other targets. (remote_target::close): Don't discard
15277 inferiors. (remote_target::add_current_inferior_and_thread)
15278 (remote_target::process_initial_stop_replies)
15279 (remote_target::start_remote)
15280 (remote_target::remote_serial_quit_handler): Pass down target.
15281 (remote_target::remote_unpush_target): New remote_target
15282 parameter. Unpush the target from all inferiors.
15283 (remote_target::remote_unpush_and_throw): New remote_target
15284 parameter. Pass it down.
15285 (remote_target::open_1): Check whether the current inferior has
15286 execution instead of checking whether any inferior is live. Pass
15287 target down.
15288 (remote_target::remote_detach_1): Pass down target. Use
15289 remote_unpush_target.
15290 (extended_remote_target::attach): Pass down target.
15291 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15292 (remote_target::append_resumption): Pass down target.
15293 (remote_target::append_pending_thread_resumptions)
15294 (remote_target::remote_resume_with_hc, remote_target::resume)
15295 (remote_target::commit_resume): Pass down target.
15296 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15297 (remote_target::interrupt_query)
15298 (remote_target::remove_new_fork_children)
15299 (remote_target::check_pending_events_prevent_wildcard_vcont)
15300 (remote_target::remote_parse_stop_reply)
15301 (remote_target::process_stop_reply): Pass down target.
15302 (first_remote_resumed_thread): New remote_target parameter. Pass
15303 it down.
15304 (remote_target::wait_as): Pass down target.
15305 (unpush_and_perror): New remote_target parameter. Pass it down.
15306 (remote_target::readchar, remote_target::remote_serial_write)
15307 (remote_target::getpkt_or_notif_sane_1)
15308 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15309 down target.
15310 (remote_target::mourn_inferior): Pass down target. Use
15311 remote_unpush_target.
15312 (remote_target::core_of_thread)
15313 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15314 (remote_target::pid_to_exec_file)
15315 (remote_target::thread_handle_to_thread_info): Pass down target.
15316 (remote_target::async_wait_fd): New.
15317 * riscv-fbsd-tdep.c: Include "inferior.h".
15318 (riscv_fbsd_get_thread_local_address): Pass down target.
15319 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15320 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15321 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15322 Adjust.
15323 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15324 * solib-svr4.c (enable_break): Pass down target.
15325 * spu-multiarch.c (parse_spufs_run): Pass down target.
15326 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15327 * target-delegates.c: Regenerate.
15328 * target.c (g_target_stack): Delete.
15329 (current_top_target): Return the current inferior's top target.
15330 (target_has_execution_1): Refer to the passed-in inferior's top
15331 target.
15332 (target_supports_terminal_ours): Check whether the initial
15333 inferior was already created.
15334 (decref_target): New.
15335 (target_stack::push): Incref/decref the target.
15336 (push_target, push_target, unpush_target): Adjust.
15337 (target_stack::unpush): Defref target.
15338 (target_is_pushed): Return bool. Adjust to refer to the current
15339 inferior's target stack.
15340 (dispose_inferior): Delete, and inline parts ...
15341 (target_preopen): ... here. Only dispose of the current inferior.
15342 (target_detach): Hold strong target reference while detaching.
15343 Pass target down.
15344 (target_thread_name): Add assertion.
15345 (target_resume): Pass down target.
15346 (target_ops::beneath, find_target_at): Adjust to refer to the
15347 current inferior's target stack.
15348 (get_dummy_target): New.
15349 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15350 has a thread running.
15351 (initialize_targets): Rename to ...
15352 (_initialize_target): ... this.
15353 * target.h: Include "gdbsupport/refcounted-object.h".
15354 (struct target_ops): Inherit refcounted_object.
15355 (target_ops::shortname, target_ops::longname): Make const.
15356 (target_ops::async_wait_fd): New method.
15357 (decref_target): Declare.
15358 (struct target_ops_ref_policy): New.
15359 (target_ops_ref): New typedef.
15360 (get_dummy_target): Declare function.
15361 (target_is_pushed): Return bool.
15362 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15363 (all_matching_threads_iterator::all_matching_threads_iterator):
15364 Handle filter target.
15365 * thread-iter.h (struct all_matching_threads_iterator, struct
15366 all_matching_threads_range, class all_non_exited_threads_range):
15367 Filter by target too. Remove explicit.
15368 * thread.c (threads_executing): Delete.
15369 (inferior_thread): Pass down current inferior.
15370 (clear_thread_inferior_resources): Pass down thread pointer
15371 instead of ptid_t.
15372 (add_thread_silent, add_thread_with_info, add_thread): Add
15373 process_stratum_target parameter. Use it for thread and inferior
15374 searches.
15375 (is_current_thread): New.
15376 (thread_info::deletable): Use it.
15377 (find_thread_ptid, thread_count, in_thread_list)
15378 (thread_change_ptid, set_resumed, set_running): New
15379 process_stratum_target parameter. Pass it down.
15380 (set_executing): New process_stratum_target parameter. Pass it
15381 down. Adjust reference to 'threads_executing'.
15382 (threads_are_executing): New process_stratum_target parameter.
15383 Adjust reference to 'threads_executing'.
15384 (set_stop_requested, finish_thread_state): New
15385 process_stratum_target parameter. Pass it down.
15386 (switch_to_thread): Also match inferior.
15387 (switch_to_thread): New process_stratum_target parameter. Pass it
15388 down.
15389 (update_threads_executing): Reimplement.
15390 * top.c (quit_force): Pop targets from all inferior.
15391 (gdb_init): Don't call initialize_targets.
15392 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15393 Declare.
15394 (windows_add_thread, windows_delete_thread): Adjust.
15395 (get_windows_debug_event): Rename to ...
15396 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15397 * tracefile-tfile.c (tfile_target_open): Pass down target.
15398 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15399 Forward declare.
15400 (switch_to_thread): Add process_stratum_target parameter.
15401 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15402 parameter. Use it.
15403 (mi_on_resume): Pass target down.
15404 * nat/fork-inferior.c (startup_inferior): Add
15405 process_stratum_target parameter. Pass it down.
15406 * nat/fork-inferior.h (startup_inferior): Add
15407 process_stratum_target parameter.
15408 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15409
75c6c844
PA
154102020-01-10 Pedro Alves <palves@redhat.com>
15411
15412 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15413 directly. Instead find the first thread in the thread list and
15414 use switch_to_thread.
15415
78f2c40a
PA
154162020-01-10 Pedro Alves <palves@redhat.com>
15417
15418 * remote.c (remote_target::remote_add_inferior): Don't bind a
15419 process to the current inferior if the current inferior is already
15420 bound to a process.
15421
e7af6c70
TBA
154222020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15423 Pedro Alves <palves@redhat.com>
15424
15425 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15426 If no process is specified, return null_ptid instead of
15427 inferior_ptid.
15428 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15429 TARGET_WAITKIND_SIGNALLED with no pid.
15430
31ba933e
PA
154312020-01-10 Pedro Alves <palves@redhat.com>
15432
15433 * remote.c (first_remote_resumed_thread): New.
15434 (remote_target::wait_as): Use it as default event_ptid instead of
15435 inferior_ptid.
15436
735fc2ca
PA
154372020-01-10 Pedro Alves <palves@redhat.com>
15438
15439 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15440
c17e02e1
PA
154412020-01-10 Pedro Alves <palves@redhat.com>
15442
15443 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15444 not -1.
15445
ab1ddbcf
PA
154462020-01-10 Pedro Alves <palves@redhat.com>
15447
15448 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15449 ptid to get_last_target_status.
15450 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15451 ptid to get_last_target_status.
15452 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15453 get_last_target_status.
15454 (info_program_command): Don't pass a target_waitstatus to
15455 get_last_target_status.
15456 * infrun.c (init_wait_for_inferior): Use
15457 nullify_last_target_wait_ptid.
15458 (get_last_target_status): Handle nullptr arguments.
15459 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15460 (print_stop_event): Don't pass a ptid to get_last_target_status.
15461 (normal_stop): Don't pass a ptid to get_last_target_status.
15462 * infrun.h (get_last_target_status, set_last_target_status): Move
15463 comments here and update.
15464 (nullify_last_target_wait_ptid): Declare.
15465 * linux-fork.c (fork_load_infrun_state): Remove local extern
15466 declaration of nullify_last_target_wait_ptid.
15467 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15468 to get_last_target_status.
15469
f3f8ece4
PA
154702020-01-10 Pedro Alves <palves@redhat.com>
15471
15472 * gdbthread.h (scoped_restore_current_thread)
15473 <dont_restore, restore, m_dont_restore>: Declare.
15474 * thread.c (thread_alive): Add assertion. Return bool.
15475 (switch_to_thread_if_alive): New.
15476 (prune_threads): Switch inferior/thread.
15477 (print_thread_info_1): Switch thread before calling target methods.
15478 (scoped_restore_current_thread::restore): New, factored out from
15479 ...
15480 (scoped_restore_current_thread::~scoped_restore_current_thread):
15481 ... this.
15482 (scoped_restore_current_thread::scoped_restore_current_thread):
15483 Add assertion.
15484 (thread_apply_all_command, thread_select): Use
15485 switch_to_thread_if_alive.
15486 * infrun.c (proceed, restart_threads, handle_signal_stop)
15487 (switch_back_to_stepped_thread): Switch current thread before
15488 calling target methods.
15489
db2d40f7
PA
154902020-01-10 Pedro Alves <palves@redhat.com>
15491
15492 * inferior.c (switch_to_inferior_no_thread): New function,
15493 factored out from ...
15494 (inferior_command): ... here.
15495 * inferior.h (switch_to_inferior_no_thread): Declare.
15496 * mi/mi-main.c (run_one_inferior): Use
15497 switch_to_inferior_no_thread.
15498
bd420a2d
PA
154992020-01-10 Pedro Alves <palves@redhat.com>
15500
15501 * infcmd.c (kill_command): Remove dead code.
15502
ddf5db90
PA
155032020-01-10 Pedro Alves <palves@redhat.com>
15504
15505 * remote.c (remote_target::mourn_inferior): No longer check
15506 whether the target is running.
15507
5018ce90
PA
155082020-01-10 Pedro Alves <palves@redhat.com>
15509
15510 * corelow.c (core_target::has_execution): Change parameter type to
15511 inferior pointer.
15512 * inferior.c (number_of_live_inferiors): Use
15513 inferior::has_execution instead of target_has_execution_1.
15514 * inferior.h (inferior::has_execution): New.
15515 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15516 inferior::has_execution instead of target_has_execution_1.
15517 * process-stratum-target.c
15518 (process_stratum_target::has_execution): Change parameter type to
15519 inferior pointer. Check the inferior's PID instead of
15520 inferior_ptid.
15521 * process-stratum-target.h
15522 (process_stratum_target::has_execution): Change parameter type to
15523 inferior pointer.
15524 * record-full.c (record_full_core_target::has_execution): Change
15525 parameter type to inferior pointer.
15526 * target.c (target_has_execution_1): Change parameter type to
15527 inferior pointer.
15528 (target_has_execution_current): Adjust.
15529 * target.h (target_ops::has_execution): Change parameter type to
15530 inferior pointer.
15531 (target_has_execution_1): Change parameter type to inferior
15532 pointer. Change return type to bool.
15533 * tracefile.h (tracefile_target::has_execution): Change parameter
15534 type to inferior pointer.
15535
74375d18
PA
155362020-01-10 Pedro Alves <palves@redhat.com>
15537
15538 * exceptions.c (print_flush): Remove current_top_target() check.
15539
acdf84a6
PA
155402020-01-10 Pedro Alves <palves@redhat.com>
15541
15542 * remote.c (show_remote_exec_file): Show the current inferior's
15543 exec-file instead of the command variable's value.
15544
ec506636
PA
155452020-01-10 Pedro Alves <palves@redhat.com>
15546
15547 * record-full.c (record_full_resume_ptid): New global.
15548 (record_full_target::resume): Set it.
15549 (record_full_wait_1): Use record_full_resume_ptid instead of
15550 inferior_ptid.
15551
873657b9
PA
155522020-01-10 Pedro Alves <palves@redhat.com>
15553
15554 * gdbthread.h (scoped_restore_current_thread)
15555 <dont_restore, restore, m_dont_restore>: Declare.
15556 * thread.c (thread_alive): Add assertion. Return bool.
15557 (switch_to_thread_if_alive): New.
15558 (prune_threads): Switch inferior/thread.
15559 (print_thread_info_1): Switch thread before calling target methods.
15560 (scoped_restore_current_thread::restore): New, factored out from
15561 ...
15562 (scoped_restore_current_thread::~scoped_restore_current_thread):
15563 ... this.
15564 (scoped_restore_current_thread::scoped_restore_current_thread):
15565 Add assertion.
15566 (thread_apply_all_command, thread_select): Use
15567 switch_to_thread_if_alive.
15568
7f0ae84c
GB
155692020-01-10 George Barrett <bob@bob131.so>
15570
15571 * stap-probe.c (stap_modify_semaphore): Don't check for null
15572 semaphores.
15573 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15574 for null semaphores.
15575
f5a7c406
AB
155762020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15577
15578 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15579 all source windows, and maintain horizontal scroll status while
15580 doing so.
15581
9ae6bf64
TT
155822020-01-09 Tom Tromey <tom@tromey.com>
15583
15584 PR tui/18932:
15585 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15586 update_source_window, not print_source_lines.
15587
b2efe70c
AB
155882020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15589
15590 * tui/tui.c (tui_enable): Register tui hooks after calling
15591 tui_display_main.
15592
5f23a082
CB
155932020-01-09 Christian Biesinger <cbiesinger@google.com>
15594
15595 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15596
3061113b
SM
155972020-01-08 Simon Marchi <simon.marchi@efficios.com>
15598
15599 * thread.c (print_thread_info_1): Fix indentation.
15600
57d75002
CB
156012020-01-09 Christian Biesinger <cbiesinger@google.com>
15602
15603 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15604 unique_xmalloc_ptr outside the if to always free the demangled name.
15605
6a053cb1
TT
156062020-01-08 Tom Tromey <tromey@adacore.com>
15607
15608 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15609 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15610 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15611 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15612 Remove.
15613 (section_offsets): New typedef.
15614 * symtab.c (fixup_section, get_msymbol_address): Update.
15615 * symmisc.c (dump_msymbols): Update.
15616 * symfile.h (relative_addr_info_to_section_offsets)
15617 (symfile_map_offsets_to_segments): Update.
15618 * symfile.c (build_section_addr_info_from_objfile)
15619 (init_objfile_sect_indices): Update.
15620 (struct place_section_arg): Change type of "offsets".
15621 (place_section): Update.
15622 (relative_addr_info_to_section_offsets): Change type of
15623 "section_offsets". Remove "num_sections" parameter.
15624 (default_symfile_offsets, syms_from_objfile_1)
15625 (set_objfile_default_section_offset): Update.
15626 (reread_symbols): No need to preserve section offsets by hand.
15627 (symfile_map_offsets_to_segments): Change type of "offsets".
15628 * stap-probe.c (relocate_address): Update.
15629 * stabsread.h (process_one_symbol): Update.
15630 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15631 (solib_target_relocate_section_addresses): Update.
15632 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15633 Update.
15634 * solib-frv.c (frv_relocate_main_executable): Update.
15635 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15636 * solib-aix.c (solib_aix_get_section_offsets): Change return
15637 type.
15638 (solib_aix_solib_create_inferior_hook): Update.
15639 * remote.c (remote_target::get_offsets): Update.
15640 * psymtab.c (find_pc_sect_psymtab): Update.
15641 * psympriv.h (struct partial_symbol) <address, text_low,
15642 text_high>: Update.
15643 * objfiles.h (obj_section_offset): Update.
15644 (struct objfile) <section_offsets>: Change type.
15645 <num_sections>: Remove.
15646 (objfile_relocate): Update.
15647 * objfiles.c (entry_point_address_query): Update
15648 (relocate_one_symbol): Change type of "section_offsets".
15649 (objfile_relocate1, objfile_relocate1): Change type of
15650 "new_offsets".
15651 (objfile_rebase1): Update.
15652 * mipsread.c (mipscoff_symfile_read): Update.
15653 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15654 parameter.
15655 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15656 (parse_external, psymtab_to_symtab_1): Update.
15657 * machoread.c (macho_symfile_offsets): Update.
15658 * ia64-tdep.c (ia64_find_unwind_table): Update.
15659 * hppa-tdep.c (read_unwind_info): Update.
15660 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15661 * dwarf2read.c (create_addrmap_from_index)
15662 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15663 (process_psymtab_comp_unit_reader, add_partial_symbol)
15664 (add_partial_subprogram, process_full_comp_unit)
15665 (read_file_scope, read_func_scope, read_lexical_block_scope)
15666 (read_call_site_scope, dwarf2_rnglists_process)
15667 (dwarf2_ranges_process, dwarf2_ranges_read)
15668 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15669 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15670 Update.
15671 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15672 Update.
15673 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15674 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15675 (process_one_symbol): Change type of "section_offsets".
15676 * ctfread.c (get_objfile_text_range): Update.
15677 * coffread.c (coff_symtab_read, enter_linenos)
15678 (process_coff_symbol): Update.
15679 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15680 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15681
456e800a
TT
156822020-01-08 Tom Tromey <tromey@adacore.com>
15683
15684 * dwarf2read.c (parse_macro_definition): Use std::string.
15685 (parse_macro_definition): Likewise.
15686
6dfa2fc2
TT
156872020-01-08 Tom Tromey <tromey@adacore.com>
15688
15689 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15690 (ATTR_ALLOC_CHUNK): Remove.
15691
421d1616
TT
156922020-01-08 Tom Tromey <tromey@adacore.com>
15693
15694 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15695
43816ebc
TT
156962020-01-08 Tom Tromey <tromey@adacore.com>
15697
15698 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15699 (dwarf2_compute_name, open_dwo_file): Likewise.
15700 (process_enumeration_scope): Use std::vector.
15701 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15702 (partial_die_info::fixup, dwarf2_start_subfile)
15703 (guess_full_die_structure_name, dwarf2_name): Likewise.
15704 (determine_prefix): Update.
15705 (guess_full_die_structure_name): Make return type const.
15706 (partial_die_full_name): Return unique_xmalloc_ptr.
15707 (DW_FIELD_ALLOC_CHUNK): Remove.
15708
4212d509
TT
157092020-01-07 Tom Tromey <tromey@adacore.com>
15710
15711 PR build/24937:
15712 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15713
06a6207a
JT
157142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15715
15716 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15717
153d79c4
AB
157182020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15719
15720 * stack.c (print_frame_info): Move disassemble_next_line code
15721 inside source_print block.
15722
66182876
EZ
157232020-01-06 Eli Zaretskii <eliz@gnu.org>
15724
15725 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15726 gdb/signals.h, as we are now using native signal symbols.
15727
cbfa8581
SV
157282020-01-06 Shahab Vahedi <shahab@synopsys.com>
15729
15730 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15731 overflow by an early check of content vs threshold.
aac66a4c 15732 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15733 Likewise.
15734
3f602821
EZ
157352020-01-06 Eli Zaretskii <eliz@gnu.org>
15736
15737 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15738
a08c904d
JT
157392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15740
15741 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15742 export table if no section contains it's RVA.
15743
89a65580
EZ
157442020-01-06 Eli Zaretskii <eliz@gnu.org>
15745
15746 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15747
8b7fcda2
HD
157482020-01-06 Hannes Domani <ssbssa@yahoo.de>
15749
15750 * source.c (print_source_lines_base): Set last_line_listed.
15751
a61b4f69
SV
157522020-01-06 Shahab Vahedi <shahab@synopsys.com>
15753
15754 * tui/tui-disasm.c: Remove trailing spaces.
15755
559e7e50
EZ
157562020-01-06 Eli Zaretskii <eliz@gnu.org>
15757 Pedro Alves <palves@redhat.com>
15758
15759 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15760 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15761 (windows_gdb_signal_to_target): New function, uses the above
15762 enumeration to convert GDB internal signal codes to equivalent
15763 Windows codes.
15764 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15765 * windows-nat.c: Include "gdb_wait.h".
15766 (get_windows_debug_event): Extract the fatal exception from the
15767 exit status and convert to the equivalent Posix signal number.
15768 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15769 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15770 * gdbsupport/gdb_wait.c: New file, implements
15771 windows_status_to_termsig.
15772 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15773 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15774
f2302a34
AB
157752020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15776
15777 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15778 show_layout.
15779
6a5206eb
LM
157802020-01-05 Luis Machado <luis.machado@linaro.org>
15781
15782 * aarch64-linux-nat.c
15783 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15784 and bfd_mach_aarch64.
15785
6ec1d75e
PW
157862020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15787
15788 * ui-file.c (stdio_file::can_emit_style_escape)
15789 (tee_file::can_emit_style_escape): Ensure style is used also on
15790 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15791 to gdb_stdout.
15792 * main.c (set_gdb_data_directory): Use file style to output the
15793 warning that the given pathname is not a directory.
15794 * top.c (show_history_filename, gdb_safe_append_history)
15795 (show_gdb_datadir): Use file style.
15796
44f81a76
HD
157972020-01-03 Hannes Domani <ssbssa@yahoo.de>
15798
15799 * solib-target.c (struct lm_info_target):
15800 Change offsets to be a unique_xmalloc_ptr.
15801 (solib_target_relocate_section_addresses): Update.
15802
25057eb0
HD
158032020-01-03 Hannes Domani <ssbssa@yahoo.de>
15804
15805 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15806
6e2118f5
BE
158072020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15808
15809 * MAINTAINERS (Write After Approval): Add myself.
15810
8133c7dc
LM
158112020-01-02 Luis Machado <luis.machado@linaro.org>
15812
15813 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15814 Cell BE architecture.
15815 * target.h (struct target_ops) <thread_architecture>: Likewise.
15816
48189bec
HD
158172020-01-01 Hannes Domani <ssbssa@yahoo.de>
15818
15819 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15820
ead1063b
HD
158212020-01-01 Hannes Domani <ssbssa@yahoo.de>
15822
15823 * MAINTAINERS (Write After Approval): Add myself.
15824
e5d78223
JB
158252020-01-01 Joel Brobecker <brobecker@adacore.com>
15826
15827 * gdbarch.sh: Update copyright year range of generated files.
15828
b811d2c2
JB
158292020-01-01 Joel Brobecker <brobecker@adacore.com>
15830
15831 Update copyright year range in all GDB files.
15832
5f4def5c
JB
158332020-01-01 Joel Brobecker <brobecker@adacore.com>
15834
15835 * copyright.py: Convert to Python 3.
15836
51fd4002
JB
158372020-01-01 Joel Brobecker <brobecker@adacore.com>
15838
15839 * copyright.py: Adapt after move of gnulib directory from gdb
15840 directory to toplevel directory.
15841
5fb651f2
JB
158422020-01-01 Joel Brobecker <brobecker@adacore.com>
15843
15844 * copyright.py (main): Exit if run from the wrong directory.
15845
5dd8bf88
JB
158462020-01-01 Joel Brobecker <brobecker@adacore.com>
15847
15848 * top.c (print_gdb_version): Change copyright year to 2020.
15849
9f71dacb 158502020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15851
9f71dacb 15852 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15853
9f71dacb 15854For older changes see ChangeLog-2019.
c906108c
SS
15855\f
15856Local Variables:
15857mode: change-log
15858left-margin: 8
15859fill-column: 74
15860version-control: never
57da7796 15861coding: utf-8
c906108c 15862End: