]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Change program_space::ebfd to a gdb_bfd_ref_ptr
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
19f6550e
TT
12020-10-29 Tom Tromey <tom@tromey.com>
2
3 * exec.c (exec_file_attach): Update.
4 * progspace.c (program_space::exec_close): Update.
5 * progspace.h (struct program_space) <ebfd>: Now a
6 gdb_bfd_ref_ptr.
7 <set_exec_bfd>: Change argument type.
8 <exec_bfd>: Update.
9
7e10abd1
TT
102020-10-29 Tom Tromey <tom@tromey.com>
11
12 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
13 * symfile.c (reread_symbols): Update.
14 * symfile-mem.c (add_symbol_file_from_memory_command)
15 (add_vsyscall_page): Update.
16 * source-cache.c (source_cache::get_plain_source_lines): Update.
17 * solib-svr4.c (find_program_interpreter, elf_locate_base)
18 (svr4_current_sos_direct, svr4_exec_displacement)
19 (svr4_relocate_main_executable): Update.
20 (svr4_iterate_over_objfiles_in_search_order): Update.
21 * solib-frv.c (enable_break2, enable_break): Update.
22 * solib-dsbt.c (lm_base, enable_break): Update.
23 * solib-darwin.c (find_program_interpreter)
24 (darwin_solib_create_inferior_hook): Update.
25 * sol-thread.c (rw_common, ps_pdmodel): Update.
26 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
27 * remote.c (compare_sections_command)
28 (remote_target::trace_set_readonly_regions): Update.
29 * remote-sim.c (get_sim_inferior_data)
30 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
31 (gdbsim_target_open, gdbsim_target::files_info): Update.
32 * exec.h (exec_bfd): Remove macro.
33 * progspace.c (initialize_progspace): Update.
34 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
35 Update.
36 * nto-procfs.c (nto_procfs_target::post_attach)
37 (nto_procfs_target::create_inferior): Update.
38 * maint.c (maintenance_info_sections): Update.
39 * linux-thread-db.c (thread_db_target::get_thread_local_address):
40 Update.
41 * infcmd.c (post_create_inferior): Update.
42 * gcore.c (default_gcore_arch, default_gcore_target): Update.
43 (objfile_find_memory_regions): Update.
44 * exec.c (validate_exec_file, exec_file_attach)
45 (exec_read_partial_read_only, print_section_info): Update.
46 * corelow.c (core_target_open): Update.
47 * corefile.c (reopen_exec_file, validate_files): Update.
48 * arm-tdep.c (gdb_print_insn_arm): Update.
49 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
50 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
51 methods.
52
b55221ab
TT
532020-10-29 Tom Tromey <tom@tromey.com>
54
55 * progspace.h (current_target_sections): Remove macro.
56 * solib-svr4.c (scan_dyntag): Update.
57 * solib-dsbt.c (scan_dyntag): Update.
58 * exec.c (exec_target::close): Update.
59 (add_target_sections, add_target_sections_of_objfile)
60 (remove_target_sections, exec_target::get_section_table)
61 (exec_target::files_info, set_section_command)
62 (exec_set_section_address, exec_target::has_memory)
63 (exec_target::has_memory): Update.
64
5a36e715
TT
652020-10-29 Tom Tromey <tom@tromey.com>
66
67 * source-cache.c (source_cache::get_plain_source_lines): Use
68 current_program_space.
69 * corefile.c (reopen_exec_file): Use current_program_space.
70 * exec.c (exec_file_attach): Use current_program_space.
71 * exec.h (exec_bfd_mtime): Remove.
72
784c8592
TT
732020-10-29 Tom Tromey <tom@tromey.com>
74
75 * gcore.c (default_gcore_mach): Remove.
76 (create_gcore_bfd): Update.
77
8a4f1402
TT
782020-10-29 Tom Tromey <tom@tromey.com>
79
80 * progspace.c (program_space::exec_close): New method, from
81 exec_close in exec.c.
82 * exec.c (exec_close): Move to progspace.c.
83 (exec_target::close, exec_file_attach): Update.
84 * progspace.h (struct program_space) <exec_close>: Declare
85 method.
86
c20cb686
TT
872020-10-29 Tom Tromey <tom@tromey.com>
88
89 * progspace.h (struct program_space) <exec_filename>: Rename from
90 pspace_exec_filename. Now a unique_xmalloc_ptr.
91 * inferior.c (print_selected_inferior): Update.
92 (print_inferior): Update.
93 * mi/mi-main.c (print_one_inferior): Update.
94 * exec.h (exec_filename): Remove macro.
95 * corefile.c (get_exec_file): Update.
96 * exec.c (exec_close): Update.
97 (exec_file_attach): Update.
98 * progspace.c (clone_program_space): Update.
99 (print_program_space): Update.
100
6be2a9ab
TT
1012020-10-29 Tom Tromey <tom@tromey.com>
102
103 * target-section.h (struct target_section): Add constructor.
104 * exec.c (build_section_table, add_target_sections_of_objfile):
105 Update.
106 * corelow.c (core_target::build_file_mappings): Update.
107
cfaa8f76
TBA
1082020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
109
110 PR gdb/19318
111 * inferior.c (detach_inferior_command): Restore the current thread.
112 (kill_inferior_command): Ditto.
113
1b00ef06
TV
1142020-10-28 Tom de Vries <tdevries@suse.de>
115
116 PR symtab/26772
117 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
118 map, check it in the "best match" loop.
119
7f40ce1a
SM
1202020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
121
122 * m32c-tdep.c: Remove unused includes.
123
5eb9e3f5
SM
1242020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * xtensa-tdep.c: Remove includes.
127
b1d4d8d1
TBA
1282020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
129
130 * breakpoint.c (struct condition_command_opts): New struct.
131 (condition_command_option_defs): New static global.
132 (make_condition_command_options_def_group): New function.
133 (condition_completer): Update to consider the '-force' flag.
134 (condition_command): Use gdb::option for the '-force' flag.
135
bd24c5d6
TV
1362020-10-27 Tom de Vries <tdevries@suse.de>
137
138 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
139 symbols in section check.
140
61eb46a4
TV
1412020-10-27 Tom de Vries <tdevries@suse.de>
142
143 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
144
733d554a
TBA
1452020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
146
147 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
148 * breakpoint.c: Update the help text of the 'condition' and 'break'
149 commands.
150 (set_breakpoint_condition): Take a new bool parameter
151 to control whether condition definition should be forced even when
152 the condition expression is invalid in all of the current locations.
153 (condition_command): Update the call to 'set_breakpoint_condition'.
154 (find_condition_and_thread): Take the "-force-condition" flag into
155 account.
156 * linespec.c (linespec_keywords): Add "-force-condition" as an
157 element.
158 (FORCE_KEYWORD_INDEX): New #define.
159 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
160 as a keyword.
161 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
162 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
163 * python/py-breakpoint.c (bppy_set_condition): Ditto.
164 * NEWS: Mention the changes to the 'break' and 'condition' commands.
165
b5fa468f
TBA
1662020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
167
168 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
169 * breakpoint.c (set_breakpoint_location_condition): New function.
170 (set_breakpoint_condition): Disable a breakpoint location if parsing
171 the condition string gives an error.
172 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
173 (build_target_condition_list): Ditto.
174 (build_target_command_list): Ditto.
175 (build_bpstat_chain): Ditto.
176 (print_one_breakpoint_location): Ditto.
177 (print_one_breakpoint): Ditto.
178 (breakpoint_1): Ditto.
179 (bp_location::bp_location): Ditto.
180 (locations_are_equal): Ditto.
181 (update_breakpoint_locations): Ditto.
182 (enable_disable_bp_num_loc): Ditto.
183 (init_breakpoint_sal): Use set_breakpoint_location_condition.
184 (find_condition_and_thread_for_sals): New static function.
185 (create_breakpoint): Call find_condition_and_thread_for_sals.
186 (location_to_sals): Call find_condition_and_thread_for_sals instead
187 of find_condition_and_thread.
188
1c47ec3e
TV
1892020-10-26 Tom de Vries <tdevries@suse.de>
190
191 * dwarf2/read.c (process_full_comp_unit): Call
192 dwarf2_find_base_address.
193
6390859c
TT
1942020-10-26 Tom Tromey <tromey@adacore.com>
195
196 * gdbtypes.c (create_range_type): Revert previous patch. Add
197 comment.
198
d744f0f9
PA
1992020-10-26 Pedro Alves <pedro@palves.net>
200
201 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
202 (my_waitpid): Use gdb::handle_eintr.
203
006811bc
SM
2042020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * acinclude.m4: Update ptrace.m4 path.
207 * ptrace.m4: Moved to gdbsupport.
208
c75e31a1
SM
2092020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
212 instead of target_gdbarch.
213
32495661
SM
2142020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * jit.c (jit_reader_load_command): Pass current inferior.
217 (jit_inferior_init): Change parameter type to inferior, use it.
218 (jit_inferior_created): Remove.
219 (jit_inferior_created_hook): Pass inferior parameter down.
220 (_initialize_jit): Use jit_inferior_created_hook instead of
221 jit_inferior_created.
222 * jit.h (jit_inferior_created_hook): Add inferior parameter.
223 * infrun.c (follow_exec): Pass inferior to
224 jit_inferior_created_hook.
225
3f66685e
SM
2262020-10-24 Simon Marchi <simon.marchi@efficios.com>
227
228 * linux-thread-db.c (check_pid_namespace_match): Add inferior
229 parameter and use it.
230 (thread_db_inferior_created): Pass inferior argument.
231
a0ff652f
SM
2322020-10-24 Simon Marchi <simon.marchi@efficios.com>
233
234 * aix-thread.c (aix_thread_inferior_created): Add inferior
235 parameter.
236 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
237 * dummy-frame.c (cleanup_dummy_frames): Likewise.
238 * jit.c (jit_inferior_created): Likewise.
239 * linux-thread-db.c (thread_db_inferior_created): Likewise.
240 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
241 * observable.h (inferior_created): Likewise.
242 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
243 * symfile-mem.c (add_vsyscall_page): Likewise.
244 * infcmd.c (post_create_inferior): Pass inferior argument.
245
3c67532c
JB
2462020-10-24 Joel Brobecker <brobecker@adacore.com>
247
248 GDB 10.1 released.
249
8747316e
JB
2502020-10-23 Joel Brobecker <brobecker@adacore.com>
251
252 * ada-typeprint.c (ada_print_type): Remove superfluous second call
253 to ada_check_typedef.
254
1a0ea399
AB
2552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * f-exp.y (f_parse): Rename to...
258 (f_language::parser): ...this.
259 * f-lang.c (f_get_encoding): Rename to...
260 (f_language::get_encoding): ...this.
261 (f_op_print_tab): Rename to...
262 (f_language::op_print_tab): ...this.
263 (exp_descriptor_f): Rename to...
264 (f_language::exp_descriptor_tab): ...this.
265 (class f_language): Moved to f-lang.h.
266 (f_language::language_arch_info): New function, moved out of class
267 declaration.
268 (f_language::search_name_hash): Likewise.
269 (f_language::lookup_symbol_nonlocal): Likewise.
270 (f_language::get_symbol_name_matcher_inner): Likewise.
271 * f-lang.h: Add 'valprint.h' include.
272 (class f_language): Moved here from f-lang.c.
273 * f-typeprint.c (f_type_print_args): Delete commented out
274 declaration.
275 (f_print_typedef): Rename to...
276 (f_language::print_typedef): ...this.
277 (f_print_type): Rename to...
278 (f_language::print_type): ...this.
279 (f_type_print_varspec_prefix): Delete declaration and rename to...
280 (f_language::f_type_print_varspec_prefix): ...this.
281 (f_type_print_varspec_suffix): Delete declaration and rename to...
282 (f_language::f_type_print_varspec_suffix): ...this.
283 (f_type_print_base): Delete declaration and rename to...
284 (f_language::f_type_print_base): ...this.
285 * f-valprint.c (f_value_print_inner): Rename to...
286 (f_language::value_print_inner): ...this.
287 * parse.c: Delete 'f-lang.h' include.
288
88cefd9b
AB
2892020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * language.h (language_defn::print_type): Add variable names in
292 declaration, and update header comment.
293
5399db93
AB
2942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * ada-lang.c (ada_language::demangle): Rename to...
297 (ada_language::demangle_symbol): ...this.
298 * c-lang.c (cplus_language::demangle): Rename to...
299 (cplus_language::demangle_symbol): ...this.
300 * d-lang.c (d_language::demangle): Rename to...
301 (d_language::demangle_symbol): ...this.
302 * f-lang.c (f_language::demangle): Rename to...
303 (f_language::demangle_symbol): ...this.
304 * go-lang.c (go_language::demangle): Rename to...
305 (go_language::demangle_symbol): ...this.
306 * language.c (language_demangle): Update call to demangle_symbol.
307 (auto_or_unknown_language::demangle): Rename to...
308 (auto_or_unknown_language::demangle_symbol): ...this.
309 * language.h (language_defn::demangle): Rename to...
310 (language_defn::demangle_symbol): ...this.
311 * objc-lang.c (objc_language::demangle): Rename to...
312 (objc_language::demangle_symbol): ...this.
313 * rust-lang.c (rust_language::demangle): Rename to...
314 (rust_language::demangle_symbol): ...this.
315
4b2f86ef
AB
3162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
319 (iterate_over_file_blocks): Replace use of macro with the macros
320 definition.
321
e74b39de
AB
3222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
325 * valprint.c (maybe_print_array_index): Replace use of macro with
326 the macros definition.
327
00c696a6
AB
3282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * ada-lang.c (ada_language::print_array_index): Call value_print
331 directly.
332 * language.c (language_defn::print_array_index): Likewise.
333 * language.h (LA_VALUE_PRINT): Delete.
334 * valprint.c (value_print): Call value_print on the
335 current_language directly.
336
d3b67c56
AB
3372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * language.h (LA_PRINT_TYPEDEF): Delete.
340 * typeprint.c (typedef_print): Call print_typedef directly on the
341 current_language object.
342
790e2a12
AB
3432020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * m2-exp.y (m2_parse): Rename to...
346 (m2_language::parser): ...this. Update function signature.
347 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
348 (m2_op_print): Rename to...
349 (m2_language::op_print_tab): ...this, and make const.
350 (exp_descriptor_modula2): Rename to...
351 (m2_language::exp_descriptor_modula2): ...this.
352 (class m2_language): Move to m2-lang.h.
353 (m2_language::language_arch_info): New function, moved out of
354 class declaration.
355 (m2_language::printchar): New function, body from m2_printchar.
356 (m2_language::printstr): New function, moved out of class
357 declaration.
358 (m2_language::emitchar): Likewise.
359 * m2-lang.h (m2_parse): Delete declaration.
360 (m2_print_typedef): Delete declaration.
361 (m2_value_print_inner): Delete declaration.
362 (class m2_language): Class declaration moved from m2-lang.c,
363 larger functions are left in m2-lang.c.
364 * m2-typeprint.c (m2_print_typedef): Rename to...
365 (m2_language::print_typedef): ...this, and update function
366 signature.
367 * m2-valprint.c (m2_value_print_inner): Rename to...
368 (m2_language::value_print_inner): ...this, replace use of
369 LA_PRINT_STRING with a direct call to printstr member function,
370 and update recursive call.
371
b01175fc
AB
3722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * language.c (default_is_string_type_p): Delete, implementation
375 moved into auto_or_unknown_language::is_string_type_p.
376 (unk_op_print_tab): Moved into
377 auto_or_unknown_language::opcode_print_table.
378 (unknown_language_arch_info): Delete, implementation moved into
379 auto_or_unknown_language::language_arch_info.
380 (class auto_or_unknown_language): New class, member functions
381 copied from unknown_language class, with some updates.
382 (class unknown_language): Most member functions moved into
383 auto_or_unknown_language class. Inherit from
384 auto_or_unknown_language class.
385 (class auto_language): Inherit from auto_or_unknown_language.
386 Delete most member functions.
387
1a97fe8c
HD
3882020-10-22 Hannes Domani <ssbssa@yahoo.de>
389
390 * stabsread.c (read_member_functions): Remove gdb_assert.
391
6b9d0dfd
HD
3922020-10-22 Hannes Domani <ssbssa@yahoo.de>
393
394 * gdbtypes.c (init_complex_type): Check target type name.
395
4b4bb603
SM
3962020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * target-debug.h (target_debug_print_struct_target_ops_p):
399 Remove.
400 (target_debug_print_async_callback_ftype_p): Remove.
401 (target_debug_print_struct_trace_state_variable_p): Remove.
402 (target_debug_print_struct_traceframe_info_p): Remove.
403 (target_debug_print_VEC__btrace_block_s__pp): Remove.
404 (target_debug_print_enum_btrace_format): Remove.
405 (target_debug_print_enum_info_proc_what): Remove.
406 (target_debug_print_thread_info_pp): Remove.
407
24f5300a
SM
4082020-10-22 Simon Marchi <simon.marchi@efficios.com>
409
410 * target.h (struct target_ops) <make_corefile_notes>:
411 Change return type to unique pointer.
412 * target.c (dummy_make_corefile_notes): Likewise.
413 * exec.c (struct exec_target) <make_corefile_notes>:
414 Likewise.
415 (exec_target::make_corefile_notes): Likewise.
416 * procfs.c (class procfs_target) <make_corefile_notes>:
417 Likewise.
418 (procfs_do_thread_registers): Adjust to unique pointer.
419 (struct procfs_corefile_thread_data): Add constructor.
420 <note_data>: Change type to unique pointer.
421 (procfs_corefile_thread_callback): Adjust to unique pointer.
422 (procfs_target::make_corefile_notes): Change return type to
423 unique pointer.
424 * target-delegates.c: Re-generate.
425 * gcore.c (write_gcore_file_1): Adjust.
426 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
427 New.
428
5fb4027f
TV
4292020-10-22 Tom de Vries <tdevries@suse.de>
430
431 * block.c (find_block_in_blockvector): Make sure the returned block
432 contains pc.
433
4a636814
SM
4342020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
435
436 PR gdb/26693
437 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
438 parameter.
439 (load_cu): Pass existing CU.
440 (process_imported_unit_die): Likewise.
441 (follow_die_offset): Likewise.
442
1bd57575
LM
4432020-10-22 Luis Machado <luis.machado@linaro.org>
444
445 * corelow.c (core_target::xfer_partial): Also check for an empty
446 m_core_unavailable_mappings vector.
447
6b4c676c
AB
4482020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
451 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
452 * f-exp.y (arglist): Allow for a series of subranges.
453 (subrange): Add cases for subranges with strides.
454 * f-lang.c (value_f90_subarray): Catch use of array strides and
455 throw an error.
456 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
457
f2d8e4c5
AB
4582020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * expprint.c (print_subexp_standard): Change enum range_type to
461 range_flag and rename variables to match.
462 (dump_subexp_body_standard): Likewise.
463 * expression.h (enum range_type): Rename to...
464 (enum range_flag): ...this.
465 (range_types): Rename to...
466 (range_flags): ...this.
467 * f-lang.c (value_f90_subarray): Change enum range_type to
468 range_flag and rename variables to match.
469 * parse.c (operator_length_standard): Likewise.
470 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
471 range_type to range_flag.
472 * rust-lang.c (rust_evaluate_funcall): Likewise.
473 (rust_range): Likewise.
474 (rust_compute_range): Likewise.
475 (rust_subscript): Likewise.
476
2f1b18db
AB
4772020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * expprint.c (print_subexp_standard): Update to reflect changes to
480 enum range_type.
481 (dump_subexp_body_standard): Likewise.
482 * expression.h (enum range_type): Convert to a bit field enum, and
483 make the enum unsigned.
484 * f-exp.y (subrange): Update to reflect changes to enum
485 range_type.
486 * f-lang.c (value_f90_subarray): Likewise.
487 * parse.c (operator_length_standard): Likewise.
488 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
489 * rust-lang.c (rust_range): Likewise.
490 (rust_compute_range): Likewise.
491 (rust_subscript): Likewise.
492
a46d1843
SM
4932020-10-21 Simon Marchi <simon.marchi@efficios.com>
494
495 * infrun.c (displaced_step_in_progress_thread): Fix comment.
496 (displaced_step_in_progress): Fix comment.
497
c21f37a8
SM
4982020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
499
500 * gdbarch.sh (make_corefile_notes): Return unique pointer.
501 * gdbarch.c: Re-generate.
502 * gdbarch.h: Re-generate.
503 * gcore.c (write_gcore_file_1): Adjust.
504 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
505 constructor.
506 <note_data>: Change type to unique pointer.
507 <abort_iteration>: Change type to bool.
508 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
509 (fbsd_collect_thread_registers): Return void, adjust.
510 (struct fbsd_corefile_thread_data): Add construtor.
511 <note_data>: Change type to unique pointer.
512 (fbsd_corefile_thread): Adjust.
513 (fbsd_make_corefile_notes): Return unique pointer, adjust.
514 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
515 to unique pointer, adjust.
516 (struct linux_collect_regset_section_cb_data): Add constructor.
517 <note_data>: Change type to unique pointer.
518 <abort_iteration>: Change type to bool.
519 (linux_collect_thread_registers): Return void, adjust.
520 (struct linux_corefile_thread_data): Add constructor.
521 <note_data>: Change type to unique pointer.
522 (linux_corefile_thread): Adjust.
523 (linux_make_corefile_notes): Return unique pointer, adjust.
524
07fbbd01
SM
5252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
528 * gdbarch.c: Re-generate.
529 * gdbarch.h: Re-generate.
530 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
531 bool.
532 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
533 Likewise.
534 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
535 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
536 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
537 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
538
39535193
SM
5392020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
540
541 * gdbarch.sh: Make generated predicates return bool.
542 * gdbarch.c: Re-generate.
543 * gdbarch.h: Re-generate.
544
ad523d01
TT
5452020-10-20 Tom Tromey <tom@tromey.com>
546
547 * varobj-iter.h (struct varobj_item): Remove typedef.
548
c4464ade
SM
5492020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * infrun.c (currently_stepping): Change int to bool
552 (maybe_software_singlestep): Likewise.
553 (show_stop_on_solib_events): Likewise.
554 (stepping_past_nonsteppable_watchpoint): Likewise.
555 (displaced_step_in_progress_any_inferior): Likewise.
556 (displaced_step_in_progress_thread): Likewise.
557 (keep_going_stepped_thread): Likewise.
558 (thread_still_needs_step_over): Likewise.
559 (start_step_over): Likewise.
560 (do_target_resume): Likewise.
561 (resume_1): Likewise.
562 (clear_proceed_status): Likewise.
563 (thread_still_needs_step_over_bp): Likewise.
564 (proceed): Likewise.
565 (switch_back_to_stepped_thread): Likewise.
566 (adjust_pc_after_break): Likewise.
567 (stepped_in_from): Likewise.
568 (handle_stop_requested): Likewise.
569 (handle_syscall_event): Likewise.
570 (handle_no_resumed): Likewise.
571 (handle_inferior_event): Likewise.
572 (finish_step_over): Likewise.
573 (handle_signal_stop): Likewise.
574 (process_event_stop_test): Likewise.
575
2eb20436
SM
5762020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * infrun.c (get_displaced_stepping_state): Fix comment.
579
e0c45ded
AS
5802020-10-20 Andreas Schwab <schwab@linux-m68k.org>
581
582 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
583
22cc388e
TT
5842020-10-19 Tom Tromey <tromey@adacore.com>
585
586 PR tui/26719
587 * tui/tui-winsource.h (struct tui_source_window_base)
588 <refresh_window>: Rename from refresh_pad.
589 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
590 Rename from refresh_pad.
591 (tui_source_window_base::show_source_content)
592 (tui_source_window_base::do_scroll_horizontal): Update.
593
3c6eb4d4
TBA
5942020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
595
596 * thread.c (_initialize_thread): Fine-tune the help text of
597 'info threads'.
598
26703721
TBA
5992020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
600
601 * frame.c: Remove the unused 'uinteger_option_def' type alias.
602
61c26be8
MS
6032020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
604
605 * breakpoint.c (handle_jit_event): Add an argument, change how
606 `jit_event_handler` is called.
607
932539d7
TT
6082020-10-17 Tom Tromey <tom@tromey.com>
609
610 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
611 (scan_xcoff_symtab): Update.
612 * psymtab.h (class psymtab_storage) <global_psymbols,
613 static_psymbols, current_global_psymbols,
614 current_static_psymbols>: Remove.
615 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
616 (match_partial_symbol, lookup_partial_symbol): Update.
617 (print_partial_symbols): Change parameters.
618 (dump_psymtab, recursively_search_psymtabs)
619 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
620 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
621 (concat): Remove.
622 (end_psymtab_common): Simplify.
623 (append_psymbol_to_list): Change parameters.
624 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
625 (init_psymbol_list): Simplify.
626 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
627 * psympriv.h (struct partial_symtab) <empty>: New method.
628 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
629 Remove.
630 <global_psymbols, static_psymbols>: New members.
631 <add_psymbol>: New methods.
632 (add_psymbol_to_list): Don't declare.
633 (psymbol_placement): Move earlier.
634 * mdebugread.c (parse_partial_symbols): Update.
635 (handle_psymbol_enumerators): Change parameters.
636 (mdebug_expand_psymtab): Update.
637 * dwarf2/read.c (process_psymtab_comp_unit_reader)
638 (add_partial_symbol): Update.
639 * dwarf2/index-write.c (write_psymbols): Change parameters.
640 (write_one_signatured_type): Update.
641 (recursively_count_psymbols): Update.
642 (recursively_write_psymbols): Update.
643 (class debug_names) <recursively_write_psymbols>: Update.
644 <write_psymbols>: Change parameters.
645 <write_one_signatured_type>: Update.
646 * dbxread.c (read_dbx_symtab): Update.
647 (dbx_end_psymtab): Use partial_symtab::empty.
648 * ctfread.c (struct ctf_context) <pst>: New member.
649 (create_partial_symtab): Set it.
650 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
651 (scan_partial_symbols): Use the psymtab's context. Update.
652
cfabbd35
TT
6532020-10-17 Tom Tromey <tom@tromey.com>
654
655 * valprint.c (generic_value_print): Remove comment.
656 * m2-valprint.c (m2_value_print_inner): Remove comment.
657 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
658 type.
659
520596f2
TV
6602020-10-17 Tom de Vries <tdevries@suse.de>
661
662 PR symtab/26317
663 * source.c (select_source_symtab): Handling sal.symtab == NULL for
664 symbol main.
665
76547ab3
TV
6662020-10-14 Tom de Vries <tdevries@suse.de>
667
668 PR gdb/26733
669 * solib.c (solib_contains_address_p): Handle
670 'solib->sections == nullptr'.
671
d3a07122
SM
6722020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
673
674 PR gdb/26642
675 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
676 target can't do async.
677 * target.c (target_wait): Assert that we don't pass
678 TARGET_WNOHANG to a target that can't async.
679
1b71cfcf
KR
6802020-10-13 Kamil Rytarowski <n54@gmx.com>
681
682 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
683 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
684 * alpha-bsd-nat.c: Adjust include.
685 * alpha-bsd-tdep.h: Adjust comment.
686 * alpha-nbsd-tdep.c: Rename to ...
687 * alpha-netbsd-tdep.c: ... this, adjust include.
688 * amd64-nbsd-nat.c: Rename to ...
689 * amd64-netbsd-nat.c: ... this, adjust include.
690 * amd64-nbsd-tdep.c: Rename to ...
691 * amd64-netbsd-tdep.c: ... this, adjust include.
692 * amd64-tdep.h: Adjust include.
693 * arm-nbsd-nat.c: Rename to ...
694 * arm-netbsd-nat.c: ... this, adjust include.
695 * arm-nbsd-tdep.c: Rename to ...
696 * arm-netbsd-tdep.c: ... this, adjust include.
697 * arm-nbsd-tdep.h: Rename to ...
698 * arm-netbsd-tdep.h: ... this, adjust include.
699 * configure.nat: Adjust file lists.
700 * configure.tgt: Likewise.
701 * hppa-nbsd-nat.c: Rename to ...
702 * hppa-netbsd-nat.c: ... this, adjust include.
703 * hppa-nbsd-tdep.c: Rename to ...
704 * hppa-netbsd-tdep.c: ... this, adjust include.
705 * i386-nbsd-nat.c: Rename to ...
706 * i386-netbsd-nat.c: ... this, adjust include.
707 * i386-nbsd-tdep.c: Rename to ...
708 * i386-netbsd-tdep.c: ... this, adjust include.
709 * m68k-bsd-nat.c: Adjust include.
710 * mips-nbsd-nat.c: Rename to ...
711 * mips-netbsd-nat.c: ... this, adjust include.
712 * mips-nbsd-tdep.c: Rename to ...
713 * mips-netbsd-tdep.c: ... this, adjust include.
714 * mips-nbsd-tdep.h: Rename to ...
715 * mips-netbsd-tdep.h: ... this.
716 * nbsd-nat.c: Rename to ...
717 * netbsd-nat.c: ... this, adjust include.
718 * nbsd-nat.h: Rename to ...
719 * netbsd-nat.h: ... this, adjust include.
720 * nbsd-tdep.c: Rename to ...
721 * netbsd-tdep.c: ... this, adjust include.
722 * nbsd-tdep.h: Rename to ...
723 * netbsd-tdep.h: ... this.
724 * ppc-nbsd-nat.c: Rename to ...
725 * ppc-netbsd-nat.c: ... this, adjust include.
726 * ppc-nbsd-tdep.c: Rename to ...
727 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
728 * ppc-nbsd-tdep.h: Rename to ...
729 * ppc-netbsd-tdep.h: ... this.
730 * sh-nbsd-nat.c: Rename to ...
731 * sh-netbsd-nat.c: ... this, adjust include.
732 * sh-nbsd-tdep.c: Rename to ...
733 * sh-netbsd-tdep.c: ... this, adjust include.
734 * sparc-nbsd-nat.c: Rename to ...
735 * sparc-netbsd-nat.c: ... this.
736 * sparc-nbsd-tdep.c: Rename to ...
737 * sparc-netbsd-tdep.c: ... this, adjust include.
738 * sparc64-nbsd-nat.c: Rename to ...
739 * sparc64-netbsd-nat.c: ... this.
740 * sparc64-nbsd-tdep.c: Rename to ...
741 * sparc64-netbsd-tdep.c: ... this, adjust include.
742 * sparc64-tdep.h: Adjust comment.
743 * vax-bsd-nat.c: Adjust include.
744 * vax-nbsd-tdep.c: Rename to ...
745 * vax-netbsd-tdep.c: ... this, adjust include.
746
d7a78e5c
TT
7472020-10-12 Tom Tromey <tom@tromey.com>
748
749 * target.h (struct target_ops) <get_section_table>: Update.
750 (target_get_section_table): Update.
751 * target.c (target_get_section_table, target_section_by_addr)
752 (memory_xfer_partial_1): Update.
753 * target-section.h (target_section_table): Now an alias.
754 * target-delegates.c: Rebuild.
755 * target-debug.h (target_debug_print_target_section_table_p):
756 Rename from target_debug_print_struct_target_section_table_p.
757 * symfile.c (build_section_addr_info_from_section_table): Update.
758 * solib.c (solib_map_sections, solib_contains_address_p): Update.
759 * solib-svr4.c (scan_dyntag): Update.
760 * solib-dsbt.c (scan_dyntag): Update.
761 * remote.c (remote_target::remote_xfer_live_readonly_partial):
762 Update.
763 * record-full.c (record_full_core_target::xfer_partial): Update.
764 * progspace.h (struct program_space) <target_sections>: Update.
765 * exec.h (print_section_info): Update.
766 * exec.c (exec_target::close, build_section_table)
767 (add_target_sections, add_target_sections_of_objfile)
768 (remove_target_sections, exec_on_vfork)
769 (section_table_available_memory)
770 (section_table_xfer_memory_partial)
771 (exec_target::get_section_table, exec_target::xfer_partial)
772 (print_section_info, set_section_command)
773 (exec_set_section_address, exec_target::has_memory): Update.
774 * corelow.c (core_target::build_file_mappings)
775 (core_target::xfer_partial, core_target::info_proc_mappings)
776 (core_target::info_proc_mappings): Update.
777 * bfd-target.c (class target_bfd): Update
778
eda214ce
TT
7792020-10-12 Tom Tromey <tom@tromey.com>
780
781 * progspace.c (program_space::~program_space): Don't call
782 clear_section_table.
783 * exec.h (clear_section_table): Don't declare.
784 * exec.c (exec_target::close): Update.
785 (clear_section_table): Remove.
786
91840ee3
TT
7872020-10-12 Tom Tromey <tom@tromey.com>
788
789 * exec.c (add_target_sections_of_objfile): Simplify.
790
2d128614
TT
7912020-10-12 Tom Tromey <tom@tromey.com>
792
793 * solib.c (solib_map_sections): Update.
794 * record-full.c (record_full_core_open_1): Update.
795 * exec.h (build_section_table): Return a target_section_table.
796 * exec.c (exec_file_attach): Update.
797 (build_section_table): Return a target_section_table.
798 * corelow.c (core_target::core_target): Update.
799 * bfd-target.c (target_bfd::target_bfd): Update.
800
bb2a6777
TT
8012020-10-12 Tom Tromey <tom@tromey.com>
802
803 * target.c (target_section_by_addr, memory_xfer_partial_1):
804 Update.
805 * target-section.h (struct target_section_table): Use
806 std::vector.
807 * symfile.h (build_section_addr_info_from_section_table): Take a
808 target_section_table.
809 * symfile.c (build_section_addr_info_from_section_table): Take a
810 target_section_table.
811 * solist.h (struct so_list) <sections>: Change type.
812 <sections_end>: Remove.
813 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
814 (solib_contains_address_p): Update.
815 * solib-svr4.c (scan_dyntag): Update.
816 * solib-dsbt.c (scan_dyntag): Update.
817 * remote.c (remote_target::remote_xfer_live_readonly_partial):
818 Update.
819 * record-full.c (record_full_core_start, record_full_core_end):
820 Remove.
821 (record_full_core_sections): New global.
822 (record_full_core_open_1, record_full_core_target::xfer_partial):
823 Update.
824 * exec.h (build_section_table, section_table_xfer_memory_partial)
825 (add_target_sections): Take a target_section_table.
826 * exec.c (exec_file_attach, clear_section_table): Update.
827 (resize_section_table): Remove.
828 (build_section_table, add_target_sections): Take a
829 target_section_table.
830 (add_target_sections_of_objfile, remove_target_sections)
831 (exec_on_vfork): Update.
832 (section_table_available_memory): Take a target_section_table.
833 (section_table_read_available_memory): Update.
834 (section_table_xfer_memory_partial): Take a target_section_table.
835 (print_section_info, set_section_command)
836 (exec_set_section_address, exec_target::has_memory): Update.
837 * corelow.c (class core_target) <m_core_section_table,
838 m_core_file_mappings>: Remove braces.
839 <~core_target>: Remove.
840 (core_target::core_target): Update.
841 (core_target::~core_target): Remove.
842 (core_target::build_file_mappings)
843 (core_target::xfer_memory_via_mappings)
844 (core_target::xfer_partial, core_target::info_proc_mappings):
845 Update.
846 * bfd-target.c (target_bfd::xfer_partial): Update.
847 (target_bfd::target_bfd): Update.
848 (target_bfd::~target_bfd): Remove.
849
7b466b10
TT
8502020-10-12 Tom Tromey <tom@tromey.com>
851
852 * target.h (struct target_section, struct target_section_table):
853 Move to target-section.h.
854 * target-section.h: New file.
855
87a37e5e
PA
8562020-10-12 Pedro Alves <pedro@palves.net>
857
858 PR exp/26602
859 * valops.c (struct struct_field_searcher): New.
860 (update_search_result): Rename to ...
861 (struct_field_searcher::update_result): ... this. Simplify
862 prototype. Record all found fields.
863 (do_search_struct_field): Rename to ...
864 (struct_field_searcher::search): ... this. Simplify prototype.
865 Maintain stack of visited baseclass path. Call update_result for
866 fields too. Keep searching fields in baseclasses instead of
867 stopping at the first found field.
868 (search_struct_field): Use struct_field_searcher. When looking
869 for fields, report ambiguous access attempts.
870
9370fd51
AB
8712020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * frame.c (inside_main_func): Check full symbols as well as
874 minimal symbols.
875
59c8a30b
JB
8762020-10-09 Joel Brobecker <brobecker@adacore.com>
877
878 * ada-lang.c (advance_wild_match): Rewrite the function's
879 description. Change the type of target0, t0 and t1 to char.
880
7c184d33
TT
8812020-10-09 Tom Tromey <tromey@adacore.com>
882
883 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
884
5c4258f4
TT
8852020-10-09 Tom Tromey <tromey@adacore.com>
886
887 * ada-lang.h (ada_encode): Return std::string.
888 * ada-lang.c (ada_encode_1): Return std::string.
889 (ada_encode): Likewise.
890 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
891 Update.
892 * ada-exp.y (block_lookup, write_var_or_type): Update.
893
3d87245c
HD
8942020-10-09 Hannes Domani <ssbssa@yahoo.de>
895
896 PR exp/26714
897 * printcmd.c (print_formatted): Handle void results as
898 unformatted prints.
899
bbb826f5
AB
9002020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * arch/aarch32.c (aarch32_create_target_description): Release the
903 target_desc_up as late as possible.
904 * arch/aarch64.c (aarch64_create_target_description): Likewise.
905 * arch/amd64.c (amd64_create_target_description): Likewise.
906 * arch/arc.c (arc_create_target_description): Return a
907 target_desc_up, don't release it.
908 * arch/arc.h (arc_create_target_description): Update declaration.
909 (arc_lookup_target_description): Move target_desc_up into the
910 cache, and return a borrowed pointer.
911 * arch/arm.c (arm_create_target_description): Release the
912 target_desc_up as late as possible.
913 * arch/i386.c (i386_create_target_description): Likewise.
914 * arch/riscv.h (riscv_create_target_description): Update
915 declaration to match definition.
916 * arch/tic6x.c (tic6x_create_target_description): Release the
917 target_desc_up as late as possible.
918
361cb219
AB
9192020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
922 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
923
f5c4b229
JV
9242020-10-09 Jan Vrany <jan.vrany@labware.com>
925
926 * source.c (directory_command): Notify observers that "directories"
927 parameter has changed.
928
b2701685
TT
9292020-10-08 Tom Tromey <tom@tromey.com>
930
931 * cli/cli-cmds.c (print_disassembly): Style function name and
932 addresses. Add _() wrappers.
933
ada508b6
SV
9342020-10-08 Shahab Vahedi <shahab@synopsys.com>
935
936 * NEWS: Mention ARC support in GDBserver.
937
51a948fd
AB
9382020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * arch/aarch32.c (aarch32_create_target_description): Release
941 unique_ptr returned from allocate_target_description.
942 * arch/aarch64.c (aarch64_create_target_description): Likewise.
943 * arch/amd64.c (amd64_create_target_description): Likewise.
944 * arch/arc.c (arc_create_target_description): Likewise.
945 * arch/arm.c (arm_create_target_description): Likewise.
946 * arch/i386.c (i386_create_target_description): Likewise.
947 * arch/riscv.c (riscv_create_target_description): Update return
948 type. Handle allocate_target_description returning a unique_ptr.
949 (riscv_lookup_target_description): Update to handle unique_ptr.
950 * arch/tic6x.c (tic6x_create_target_description): Release
951 unique_ptr returned from allocate_target_description.
952 * features/microblaze-with-stack-protect.c: Regenerate.
953 * features/microblaze.c: Regenerate.
954 * features/mips-dsp-linux.c: Regenerate.
955 * features/mips-linux.c: Regenerate.
956 * features/mips64-dsp-linux.c: Regenerate.
957 * features/mips64-linux.c: Regenerate.
958 * features/nds32.c: Regenerate.
959 * features/nios2.c: Regenerate.
960 * features/or1k.c: Regenerate.
961 * features/rs6000/powerpc-32.c: Regenerate.
962 * features/rs6000/powerpc-32l.c: Regenerate.
963 * features/rs6000/powerpc-403.c: Regenerate.
964 * features/rs6000/powerpc-403gc.c: Regenerate.
965 * features/rs6000/powerpc-405.c: Regenerate.
966 * features/rs6000/powerpc-505.c: Regenerate.
967 * features/rs6000/powerpc-601.c: Regenerate.
968 * features/rs6000/powerpc-602.c: Regenerate.
969 * features/rs6000/powerpc-603.c: Regenerate.
970 * features/rs6000/powerpc-604.c: Regenerate.
971 * features/rs6000/powerpc-64.c: Regenerate.
972 * features/rs6000/powerpc-64l.c: Regenerate.
973 * features/rs6000/powerpc-7400.c: Regenerate.
974 * features/rs6000/powerpc-750.c: Regenerate.
975 * features/rs6000/powerpc-860.c: Regenerate.
976 * features/rs6000/powerpc-altivec32.c: Regenerate.
977 * features/rs6000/powerpc-altivec32l.c: Regenerate.
978 * features/rs6000/powerpc-altivec64.c: Regenerate.
979 * features/rs6000/powerpc-altivec64l.c: Regenerate.
980 * features/rs6000/powerpc-e500.c: Regenerate.
981 * features/rs6000/powerpc-e500l.c: Regenerate.
982 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
983 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
984 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
985 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
986 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
987 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
988 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
989 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
990 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
991 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
992 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
993 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
994 * features/rs6000/powerpc-vsx32.c: Regenerate.
995 * features/rs6000/powerpc-vsx32l.c: Regenerate.
996 * features/rs6000/powerpc-vsx64.c: Regenerate.
997 * features/rs6000/powerpc-vsx64l.c: Regenerate.
998 * features/rs6000/rs6000.c: Regenerate.
999 * features/rx.c: Regenerate.
1000 * features/s390-gs-linux64.c: Regenerate.
1001 * features/s390-linux32.c: Regenerate.
1002 * features/s390-linux32v1.c: Regenerate.
1003 * features/s390-linux32v2.c: Regenerate.
1004 * features/s390-linux64.c: Regenerate.
1005 * features/s390-linux64v1.c: Regenerate.
1006 * features/s390-linux64v2.c: Regenerate.
1007 * features/s390-te-linux64.c: Regenerate.
1008 * features/s390-tevx-linux64.c: Regenerate.
1009 * features/s390-vx-linux64.c: Regenerate.
1010 * features/s390x-gs-linux64.c: Regenerate.
1011 * features/s390x-linux64.c: Regenerate.
1012 * features/s390x-linux64v1.c: Regenerate.
1013 * features/s390x-linux64v2.c: Regenerate.
1014 * features/s390x-te-linux64.c: Regenerate.
1015 * features/s390x-tevx-linux64.c: Regenerate.
1016 * features/s390x-vx-linux64.c: Regenerate.
1017 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1018 from allocate_target_description.
1019 * target-descriptions.c (allocate_target_description): Update
1020 return type.
1021 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1022 allocate_target_description.
1023
485c47e5
TT
10242020-10-07 Tom Tromey <tromey@adacore.com>
1025
1026 * unittests/search-memory-selftests.c: New file.
1027 * Makefile.in (SELFTESTS_SRCS): Add
1028 unittests/search-memory-selftests.c.
1029
3a135a91
TT
10302020-10-07 Tom Tromey <tromey@adacore.com>
1031
1032 PR gdb/16930:
1033 * findcmd.c (_initialize_mem_search): Mention that the range is
1034 inclusive.
1035
4a72de73
TT
10362020-10-07 Tom Tromey <tromey@adacore.com>
1037
1038 * target.h (simple_search_memory): Don't declare.
1039 * target.c (simple_search_memory): Move to gdbsupport.
1040 (default_search_memory): Update.
1041 * remote.c (remote_target::search_memory): Update.
1042
a038ffd8
SM
10432020-10-07 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * Makefile.in (COMPILE): Add CXXFLAGS.
1046 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1047 (check-headers): Add CXXFLAGS.
1048
cc463201
AK
10492020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1050
1051 * arc-linux-tdep.h: New file.
1052 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1053 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1054 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1055 arc_linux_gregset, arc_linux_v2_regset,
1056 arc_linux_iterate_over_regset_sections,
1057 arc_linux_core_read_description): Implement.
1058 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1059 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1060 (arc_gdbarch_features_create): Add.
1061 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1062
e4bd363f
SV
10632020-10-07 Shahab Vahedi <shahab@synopsys.com>
1064
1065 * arch/arc.h: Rename "arc_gdbarch_features" to
1066 "arc_arch_features".
1067 * arc-tdep.h: Likewise.
1068 * arc-tdep.c: Likewise.
1069
b68bef99
TBA
10702020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1071
1072 * infcmd.c (attach_command): Remove the redundant call to
1073 `clear_proceed_status`.
1074
4641551a
KR
10752020-10-07 Kamil Rytarowski <n54@gmx.com>
1076
1077 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1078
91e5e8db
KR
10792020-10-07 Kamil Rytarowski <n54@gmx.com>
1080
1081 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1082 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1083 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1084
64c03bdb
SM
10852020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1088 (_initialize_break_catch_sig): Don't allocate array.
1089
31a8f60f
AB
10902020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * symtab.c (find_pc_line): Return unmapped addresses when the
1093 requested address is also unmapped.
1094
9e6dbd8b
SM
10952020-10-05 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1098 tui/tui-out.h.
1099
a1d217e8
SM
11002020-10-05 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1103 type::is_vector instead of TYPE_VECTOR.
1104
7d144117
SM
11052020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * auto-load.c (auto_load_objfile_script_1): Don't use
1108 debugfile_holder as temporary variable when stripping drive
1109 letter.
1110
cd096ec8
HD
11112020-10-05 Hannes Domani <ssbssa@yahoo.de>
1112
1113 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1114 Add TYPE_CODE_COMPLEX.
1115 (amd64_windows_return_value): Fix types returned via XMM0.
1116
b58e7f72
AH
11172020-10-05 Alan Hayward <alan.hayward@arm.com>
1118
1119 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1120 AArch64/ARM maintainers.
1121
8d378f27
SM
11222020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 * NEWS: Mention set/show debug event-loop.
1125
d5519913
TT
11262020-10-02 Tom Tromey <tromey@adacore.com>
1127
1128 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1129 REG_EXTENDED.
1130
18b67edc
SM
11312020-10-02 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1134 * procfs.c (procfs_inferior_created): Remove.
1135 (_initialize_procfs): Don't register procfs_inferior_created.
1136
6b01403b
SM
11372020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * async-event.c (invoke_async_signal_handlers): Add debug
1140 print.
1141 (check_async_event_handlers): Likewise.
1142 * event-top.c (show_debug_event_loop): New function.
1143 (_initialize_event_top): Register "set debug event-loop"
1144 setting.
1145
ba988419
SM
11462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1147
1148 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1149 * debug.h: Remove.
1150 * infrun.c: Include gdbsupport/common-debug.h.
1151 * linux-nat.c: Likewise.
1152
db20ebdf
SM
11532020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1154
1155 * async-event.h (create_async_signal_handler): Add name
1156 parameter.
1157 (create_async_event_handler): Likewise.
1158 * async-event.c (struct async_signal_handler) <name>: New field.
1159 (struct async_event_handler) <name>: New field.
1160 (create_async_signal_handler): Assign name.
1161 (create_async_event_handler): Assign name.
1162 * event-top.c (async_init_signals): Pass name when creating
1163 handler.
1164 * infrun.c (_initialize_infrun): Likewise.
1165 * record-btrace.c (record_btrace_push_target): Likewise.
1166 * record-full.c (record_full_open): Likewise.
1167 * remote-notif.c (remote_notif_state_allocate): Likewise.
1168 * remote.c (remote_target::open_1): Likewise.
1169 * tui/tui-win.c (tui_initialize_win): Likewise.
1170
2554f6f5
SM
11712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * async-event.c (initialize_async_signal_handlers): Pass name to
1174 add_file_handler
1175 * event-top.c (ui_register_input_event_handler): Likewise.
1176 * linux-nat.c (linux_nat_target::async): Likewise.
1177 * run-on-main-thread.c (_initialize_run_on_main_thread):
1178 Likewise
1179 * ser-base.c (reschedule): Likewise.
1180 (ser_base_async): Likewise.
1181 * tui/tui-io.c: Likewise.
1182 * top.h (struct ui) <num>: New field.
1183 * top.c (highest_ui_num): New variable.
1184 (ui::ui): Initialize num.
1185
a7aba266
SM
11862020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * observable.h <inferior_created>: Remove parameters. Update all
1189 listeners.
1190 * inferior.h (post_create_inferior): Remove target parameter.
1191 Update all callers.
1192
048fde1e 11932020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1194
1195 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1196 and DW_MACRO_undef_strx.
1197 (dwarf_decode_macros): Likewise
1198 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1199 which is the value of DW_AT_str_offsets_base.
1200 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1201 str_offsets_base.
1202
064280be
KR
12032020-10-01 Kamil Rytarowski <n54@gmx.com>
1204
1205 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1206
6ff33035
KR
12072020-10-01 Kamil Rytarowski <n54@gmx.com>
1208
1209 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1210 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1211
1eb6eb79
KR
12122020-10-01 Kamil Rytarowski <n54@gmx.com>
1213
1214 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1215
95eb9e54
TV
12162020-09-30 Tom de Vries <tdevries@suse.de>
1217
1218 PR symtab/26683
1219 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1220
cae21f8e
TT
12212020-09-30 Tom Tromey <tromey@adacore.com>
1222
1223 * dwarf2/read.c (handle_variant): Use constant_value.
1224
529908cb
TT
12252020-09-29 Tom Tromey <tom@tromey.com>
1226
1227 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1228 (read_file_scope, dwarf2_get_pc_bounds)
1229 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1230 (read_structure_type, handle_struct_member_die)
1231 (read_enumeration_type, read_array_type, read_set_type)
1232 (read_tag_pointer_type, read_tag_reference_type)
1233 (read_subroutine_type, read_base_type, read_subrange_type)
1234 (read_full_die_1, partial_die_info::read)
1235 (partial_die_info::read, by, new_symbol)
1236 (dwarf2_const_value_data, dwarf2_const_value_attr)
1237 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1238 (prepare_one_comp_unit): Update.
1239 * dwarf2/attribute.h (DW_UNSND): Remove.
1240
c45bc3f8
TT
12412020-09-29 Tom Tromey <tom@tromey.com>
1242
1243 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1244 (read_subroutine_type, partial_die_info::read)
1245 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1246 (dwarf2_add_member_fn): Update.
1247 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1248 * dwarf2/attribute.c (attribute::as_boolean): New method.
1249
23dca5c3
TT
12502020-09-29 Tom Tromey <tom@tromey.com>
1251
1252 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1253 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1254 method.
1255 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1256
52c14d11
TT
12572020-09-29 Tom Tromey <tom@tromey.com>
1258
1259 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1260 the attribute's form.
1261
e8e5c158
TT
12622020-09-29 Tom Tromey <tom@tromey.com>
1263
1264 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1265 (dwarf2_add_member_fn): Update.
1266 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1267 * dwarf2/attribute.c (attribute::defaulted): New method, from
1268 is_valid_DW_AT_defaulted.
1269
d4df075e
TT
12702020-09-29 Tom Tromey <tom@tromey.com>
1271
1272 * dwarf2/read.c (dw2_get_file_names_reader)
1273 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1274 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1275 (dwarf2_symbol_mark_computed): Use as_unsigned.
1276 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1277 method.
1278 <form_is_section_offset>: Update comment.
1279
bf23a268
TT
12802020-09-29 Tom Tromey <tom@tromey.com>
1281
1282 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1283 dwarf2_default_access_attribute. Look up attribute.
1284 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1285 Update.
1286
7a5f294d
TT
12872020-09-29 Tom Tromey <tom@tromey.com>
1288
1289 * dwarf2/read.c (skip_one_die): Update.
1290 (read_full_die_1): Change how reprocessing is done.
1291 (partial_die_info::read): Update.
1292 (read_attribute_value): Remove need_reprocess parameter.
1293 (read_attribute): Likewise.
1294 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1295 New method.
1296
36d378cf
TT
12972020-09-29 Tom Tromey <tom@tromey.com>
1298
1299 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1300 (dwarf2_const_value_attr, dump_die_shallow)
1301 (dwarf2_fetch_constant_bytes): Update.
1302 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1303 comment.
1304 <set_address>: New method.
1305 (DW_ADDR): Remove.
1306 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1307 (attribute::as_string, attribute::as_address): Add assert.
1308
fe56917a
TT
13092020-09-29 Tom Tromey <tom@tromey.com>
1310
1311 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1312 (read_attribute_reprocess, read_attribute_value): Update.
1313 (read_attribute): Clear requires_reprocessing.
1314 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1315 form_requires_reprocessing>: New methods.
1316 <string_init>: Clear requires_reprocessing.
1317 <set_unsigned_reprocess>: New method.
1318 <name>: Shrink by one bit.
1319 <requires_reprocessing>: New member.
1320 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1321 method.
1322
414ad644
TT
13232020-09-29 Tom Tromey <tom@tromey.com>
1324
1325 * dwarf2/read.c (read_attribute_value): Update.
1326 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1327 set_unsigned>: New methods.
1328 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1329
1bc397c5
TT
13302020-09-29 Tom Tromey <tom@tromey.com>
1331
1332 * dwarf2/read.c (get_alignment, read_array_order)
1333 (read_attribute_value, dwarf2_const_value_attr)
1334 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1335 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1336 New methods.
1337 (DW_SND): Remove.
1338
630ed6b9
TT
13392020-09-29 Tom Tromey <tom@tromey.com>
1340
1341 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1342 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1343 Update.
1344 * dwarf2/attribute.h (struct attribute) <as_signature,
1345 set_signature>: New methods.
1346 (DW_SIGNATURE): Remove.
1347
9d2246fc
TT
13482020-09-29 Tom Tromey <tom@tromey.com>
1349
1350 * dwarf2/read.c (read_call_site_scope)
1351 (handle_data_member_location, dwarf2_add_member_fn)
1352 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1353 (partial_die_info::read, read_attribute_value)
1354 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1355 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1356 (dwarf2_symbol_mark_computed): Update.
1357 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1358 methods.
1359 (DW_BLOCK): Remove.
1360 * dwarf2/attribute.c (attribute::form_is_block): Add
1361 DW_FORM_data16.
1362
c6481205
TT
13632020-09-29 Tom Tromey <tom@tromey.com>
1364
1365 * dwarf2/read.c (read_cutu_die_from_dwo)
1366 (read_attribute_reprocess, read_attribute_value, read_attribute)
1367 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1368 (dwarf2_fetch_constant_bytes): Update.
1369 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1370 <set_string_noncanonical, set_string_canonical>: New methods.
1371 <string_is_canonical>: Update comment.
1372 <canonical_string_p>: Add assert.
1373 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1374 * dwarf2/attribute.c (attribute::form_is_string): New method.
1375 (attribute::string): Use it.
1376
3b64bf15
TT
13772020-09-29 Tom Tromey <tom@tromey.com>
1378
1379 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1380 (dump_die_shallow): Use canonical_string_p.
1381 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1382 method.
1383
2c830f54
TT
13842020-09-29 Tom Tromey <tom@tromey.com>
1385
1386 * dwarf2/read.c (partial_die_info::read)
1387 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1388 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1389 attribute::as_string.
1390
6c412691
TT
13912020-09-29 Tom Tromey <tom@tromey.com>
1392
1393 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1394 DW_ADDR.
1395 (attribute::string): Don't use DW_STRING.
1396 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1397 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1398
95f982e5
TT
13992020-09-29 Tom Tromey <tom@tromey.com>
1400
1401 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1402 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1403 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1404 * dwarf2/attribute.h (struct attribute): Rename methods.
1405 * dwarf2/attribute.c (attribute::as_address): Rename from
1406 value_as_address.
1407 (attribute::as_string): Rename from value_as_string.
1408
f800b00e
TT
14092020-09-29 Tom Tromey <tom@tromey.com>
1410
1411 * dwarf2/read.c (partial_die_info::read) <case
1412 DW_AT_linkage_name>: Use value_as_string.
1413 (dwarf2_string_attr): Use value_as_string.
1414 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1415 method.
1416 * dwarf2/attribute.c (attribute::value_as_string): New method.
1417
de38d64a
PA
14182020-09-29 Pedro Alves <pedro@palves.net>
1419
1420 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1421 defined before using '#pragma GCC diagnostic' instead of checking
1422 __clang__.
1423
9aed480c
TT
14242020-09-28 Tom Tromey <tom@tromey.com>
1425
1426 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1427 (handle_signal_stop): Update.
1428 * procfs.c (procfs_target::insert_watchpoint): Update.
1429 * target.h (target_have_steppable_watchpoint): Now a function.
1430
8a3ecb79
TT
14312020-09-28 Tom Tromey <tom@tromey.com>
1432
1433 * infrun.c (set_schedlock_func): Update.
1434 * target.h (target_can_lock_scheduler): Now a function.
1435
55f6301a
TT
14362020-09-28 Tom Tromey <tom@tromey.com>
1437
1438 * inferior.h (class inferior) <has_execution>: Update.
1439 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1440 * valops.c (find_function_in_inferior)
1441 (value_allocate_space_in_inferior): Update.
1442 * top.c (kill_or_detach): Update.
1443 * target.c (target_preopen, set_target_permissions): Update.
1444 (target_has_execution_current): Remove.
1445 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1446 Update.
1447 * solib.c (update_solib_list, reload_shared_libraries): Update.
1448 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1449 * solib-dsbt.c (enable_break): Update.
1450 * score-tdep.c (score7_fetch_inst): Update.
1451 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1452 Update.
1453 * remote.c (remote_target::start_remote)
1454 (remote_target::remote_check_symbols, remote_target::open_1)
1455 (remote_target::remote_detach_1, remote_target::verify_memory)
1456 (remote_target::xfer_partial, remote_target::read_description)
1457 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1458 * record-full.c (record_full_open_1): Update.
1459 * record-btrace.c (record_btrace_target_open): Update.
1460 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1461 (value_nsstring): Update.
1462 * linux-thread-db.c (add_thread_db_info)
1463 (thread_db_find_new_threads_silently, check_thread_db_callback)
1464 (try_thread_db_load_1, record_thread): Update.
1465 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1466 Update.
1467 * linux-fork.c (checkpoint_command): Update.
1468 * infrun.c (set_non_stop, set_observer_mode)
1469 (check_multi_target_resumption, for_each_just_stopped_thread)
1470 (maybe_remove_breakpoints, normal_stop)
1471 (class infcall_suspend_state): Update.
1472 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1473 (info_program_command, attach_command): Update.
1474 * infcall.c (call_function_by_hand_dummy): Update.
1475 * inf-loop.c (inferior_event_handler): Update.
1476 * gcore.c (gcore_command, derive_heap_segment): Update.
1477 * exec.c (exec_file_command): Update.
1478 * eval.c (evaluate_subexp): Update.
1479 * compile/compile.c (compile_to_object): Update.
1480 * cli/cli-dump.c (restore_command): Update.
1481 * breakpoint.c (update_watchpoint)
1482 (update_inserted_breakpoint_locations)
1483 (insert_breakpoint_locations, get_bpstat_thread): Update.
1484 * target.h (target_has_execution): Remove macro.
1485 (target_has_execution_current): Don't declare.
1486 (target_has_execution): Rename from target_has_execution_1. Add
1487 argument default.
1488
05374cfd
TT
14892020-09-28 Tom Tromey <tom@tromey.com>
1490
1491 * mi/mi-main.c (exec_reverse_continue)
1492 (mi_cmd_list_target_features): Update.
1493 * infrun.c (set_exec_direction_func): Update.
1494 * target.c (default_execution_direction): Update.
1495 * reverse.c (exec_reverse_once): Update.
1496 * target.h (target_can_execute_reverse): Now a function.
1497
9dccd06e
TT
14982020-09-28 Tom Tromey <tom@tromey.com>
1499
1500 * tui/tui-regs.c (tui_get_register)
1501 (tui_data_window::show_registers): Update.
1502 * thread.c (scoped_restore_current_thread::restore)
1503 (scoped_restore_current_thread::scoped_restore_current_thread):
1504 Update.
1505 * regcache-dump.c (regcache_print): Update.
1506 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1507 Update.
1508 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1509 * mep-tdep.c (current_me_module, current_options): Update.
1510 * linux-thread-db.c (thread_db_load): Update.
1511 * infcmd.c (registers_info, info_vector_command)
1512 (info_float_command): Update.
1513 * ia64-tdep.c (ia64_frame_prev_register)
1514 (ia64_sigtramp_frame_prev_register): Update.
1515 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1516 * gcore.c (derive_stack_segment): Update.
1517 * frame.c (get_current_frame, has_stack_frames): Update.
1518 * findvar.c (language_defn::read_var_value): Update.
1519 * arm-tdep.c (arm_pc_is_thumb): Update.
1520 * target.c (target_has_registers): Rename from
1521 target_has_registers_1.
1522 * target.h (target_has_registers): Remove macro.
1523 (target_has_registers): Rename from target_has_registers_1.
1524
841de120
TT
15252020-09-28 Tom Tromey <tom@tromey.com>
1526
1527 * windows-tdep.c (tlb_make_value): Update.
1528 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1529 * thread.c (scoped_restore_current_thread::restore)
1530 (scoped_restore_current_thread::scoped_restore_current_thread)
1531 (thread_command): Update.
1532 * stack.c (backtrace_command_1, frame_apply_level_command)
1533 (frame_apply_all_command, frame_apply_command): Update.
1534 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1535 Update.
1536 * gcore.c (derive_stack_segment): Update.
1537 * frame.c (get_current_frame, has_stack_frames): Update.
1538 * auxv.c (info_auxv_command): Update.
1539 * ada-tasks.c (ada_build_task_list): Update.
1540 * target.c (target_has_stack): Rename from target_has_stack_1.
1541 * target.h (target_has_stack): Remove macro.
1542 (target_has_stack): Rename from target_has_stack_1.
1543
a739972c
TT
15442020-09-28 Tom Tromey <tom@tromey.com>
1545
1546 * target.c (target_has_memory): Rename from target_has_memory_1.
1547 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1548 * thread.c (scoped_restore_current_thread::restore)
1549 (scoped_restore_current_thread::scoped_restore_current_thread):
1550 Update.
1551 * frame.c (get_current_frame, has_stack_frames): Update.
1552 * target.h (target_has_memory): Remove macro.
1553 (target_has_memory): Rename from target_has_memory_1.
1554
5b8a4776
TT
15552020-09-28 Tom Tromey <tom@tromey.com>
1556
1557 * target.c (target_has_all_memory_1): Remove.
1558 * target.h (target_has_all_memory): Remove define.
1559 (target_has_all_memory_1): Don't declare.
1560
bd356ec6
SM
15612020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * ser-base.c: Adjust comments formatting.
1564
2c72d5e5
TT
15652020-09-27 Tom Tromey <tom@tromey.com>
1566
1567 PR tui/25342:
1568 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1569
35a98237
TT
15702020-09-27 Tom Tromey <tom@tromey.com>
1571
1572 PR tui/25342:
1573 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1574
9e820dec
TT
15752020-09-27 Tom Tromey <tom@tromey.com>
1576
1577 * unittests/tui-selftests.c: Update.
1578 * tui/tui-winsource.h (struct tui_source_window_base)
1579 <extra_margin, show_line_number, refresh_pad>: New methods.
1580 <m_max_length, m_pad>: New members.
1581 (tui_copy_source_line): Update.
1582 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1583 first_col, line_width, ndigits parameters. Add length.
1584 (tui_source_window_base::show_source_line): Write to pad. Line
1585 number now 0-based.
1586 (tui_source_window_base::refresh_pad): New method.
1587 (tui_source_window_base::show_source_content): Write to pad. Call
1588 refresh_pad.
1589 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1590 not refill.
1591 (tui_source_window_base::update_exec_info): Call
1592 show_line_number.
1593 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1594 method.
1595 <m_digits>: New member.
1596 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1597 and m_max_length.
1598 (tui_source_window::show_line_number): New method.
1599 * tui/tui-io.h (tui_puts): Fix comment.
1600 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1601 m_max_length.
1602
c15c15c8
TT
16032020-09-27 Tom Tromey <tom@tromey.com>
1604
1605 * tui/tui-winsource.c
1606 (tui_source_window_base::set_is_exec_point_at): Don't call
1607 show_source_line.
1608
149830c1
TT
16092020-09-27 Tom Tromey <tom@tromey.com>
1610
1611 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1612 method.
1613 <erase>: Update.
1614 <cursor_x, cursor_y>: Remove.
1615 <m_inner_window>: New member.
1616 (tui_py_window::rerender): Create inner window.
1617 (tui_py_window::output): Write to inner window.
1618
8f9929bb
GR
16192020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1620
1621 PR python/26586
1622 * cli/cli-script.c (execute_control_commands): don't set
1623 instream to nullptr here as this breaks the from_tty argument
1624 to gdb.execute in Python.
1625 (execute_user_command): set instream to nullptr here instead.
1626
956bdb59
SM
16272020-09-25 Simon Marchi <simon.marchi@efficios.com>
1628
1629 * infrun.h (infrun_debug_printf): Fix formatting.
1630 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1631
3b93626b
SJ
16322020-09-25 Saagar Jha <saagar@saagarjha.com>
1633
1634 * compile/compile-object-load.h (struct munmap_list): Add
1635 explicitly-defined move constructor.
1636
b551a89f
TT
16372020-09-24 Tom Tromey <tromey@adacore.com>
1638
1639 PR tui/26638:
1640 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1641 method.
1642 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1643 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1644 (tui_prev_win): Rewrite.
1645
99bb393f
HD
16462020-09-23 Hannes Domani <ssbssa@yahoo.de>
1647
1648 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1649 in WOW64 processes as SIGINT.
1650 * nat/windows-nat.h: Make wow64_process a shared variable.
1651 * windows-nat.c: Remove static wow64_process variable.
1652
20a5fcbd
TT
16532020-09-23 Tom Tromey <tom@tromey.com>
1654
1655 PR symtab/25470:
1656 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1657 offset and bit size.
1658 * printcmd.c (print_scalar_formatted): Handle zero-length
1659 integer.
1660 (print_scalar_formatted): Use bit_size_differs_p.
1661 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1662 constant.
1663 (union type_specific): <int_stuff>: New member.
1664 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1665 methods.
1666 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1667 TYPE_SPECIFIC_FIELD.
1668 (recursive_dump_type, copy_type_recursive): Update.
1669 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1670 DW_AT_data_bit_offset.
1671
bac51ab7
TT
16722020-09-23 Tom Tromey <tom@tromey.com>
1673
1674 * utils.h (class gdb_argv): Add move operators.
1675 <append>: New methods.
1676 * compile/compile.c (build_argc_argv): Remove.
1677 (compile_args_argc): Remove.
1678 (compile_args_argv): Change type.
1679 (set_compile_args): Simplify.
1680 (append_args): Remove.
1681 (filter_args): Remove argcp parameter.
1682 (get_args): Return gdb_argv. Simplify.
1683 (compile_to_object): Update.
1684
92677124
TT
16852020-09-23 Tom Tromey <tom@tromey.com>
1686
1687 * compile/compile-object-run.c (do_module_cleanup)
1688 <~do_module_cleanup> :Remove.
1689 (do_module_cleanup): Update.
1690 * compile/compile-object-load.h (struct munmap_list): Add move
1691 assignment operator.
1692 <source_file>: Now a std::string.
1693 <munmap_list>: Rename. No longer a pointer.
1694 * compile/compile-object-load.c (struct setup_sections_data): Add
1695 constructor.
1696 <setup_one_section>: Declare.
1697 <munmap_list>: Move earlier.
1698 <m_bfd>: New member.
1699 <m_last_size, m_last_section_first, m_last_prot,
1700 m_last_max_alignment>: Rename, add initializers where needed.
1701 (setup_sections_data::setup_one_section): Rename from
1702 setup_sections. Update.
1703 (compile_object_load): Update. Don't use bfd_map_over_sections.
1704
e616f60a
TT
17052020-09-23 Tom Tromey <tom@tromey.com>
1706
1707 * compile/compile-object-run.c (struct do_module_cleanup): Add
1708 parameters to constructor. Update destructor.
1709 <source_file, scope, scope_data, out_value_type, out_value_addr,
1710 munmap_list_head, objfile_name_string>: Remove.
1711 <module>: New member.
1712 (do_module_cleanup): Update.
1713 (compile_object_run): Update.
1714
e947a848
TT
17152020-09-23 Tom Tromey <tom@tromey.com>
1716
1717 * compile/compile.c (eval_compile_command): Update.
1718 * compile/compile-object-run.h (compile_object_run): Take a
1719 compile_module_up.
1720 * compile/compile-object-run.c (compile_object_run): Take a
1721 compile_module_up.
1722 * compile/compile-object-load.h (struct compile_module): Add
1723 constructor, destructor.
1724 (compile_module_up): New typedef.
1725 (compile_object_load): Return compile_object_up.
1726 * compile/compile-object-load.c (compile_object_load): Return
1727 compile_module_up.
1728
0dbf6ee6
TT
17292020-09-23 Tom Tromey <tom@tromey.com>
1730
1731 * compile/compile-object-run.c (struct do_module_cleanup): Add
1732 constructor, destructor.
1733 <objfile_name_string>: Don't use struct hack.
1734 (do_module_cleanup): Use delete.
1735 (compile_object_run): Use new.
1736
ebe824f5
TT
17372020-09-23 Tom Tromey <tom@tromey.com>
1738
1739 * compile/compile-cplus-types.c
1740 (compile_cplus_convert_struct_or_union): Use std::vector.
1741 (compile_cplus_convert_func): Likewise.
1742 * compile/compile-c-types.c (convert_func): Use std::vector.
1743
5dd918d9
TT
17442020-09-21 Tom Tromey <tromey@adacore.com>
1745
1746 * sparc-tdep.c (sparc32_skip_prologue): Use
1747 skip_prologue_using_sal.
1748
5486c517
TT
17492020-09-19 Tom Tromey <tom@tromey.com>
1750
1751 * symfile.c (add_section_size_callback): Remove.
1752 (load_one_section): Rename from load_section_callback. Change
1753 parameters.
1754 (generic_load): Use foreach.
1755
8a6bb1d1
TT
17562020-09-19 Tom Tromey <tom@tromey.com>
1757
1758 * exec.c (add_to_section_table): Remove.
1759 (build_section_table): Use foreach.
1760
08f93a1a
TT
17612020-09-19 Tom Tromey <tom@tromey.com>
1762
1763 * elfread.c (elf_locate_sections): Change parameters.
1764 (elf_symfile_read): Use foreach.
1765
03cd72b8
TT
17662020-09-19 Tom Tromey <tom@tromey.com>
1767
1768 * cli/cli-dump.c (struct callback_data): Remove.
1769 (restore_one_section): Rename from restore_section_callback.
1770 Change parameters.
1771 (restore_binary_file): Change parameters.
1772 (restore_command): Use foreach.
1773
f4f2b85f
TT
17742020-09-19 Tom Tromey <tom@tromey.com>
1775
1776 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1777 (gcore_copy_callback): Likewise.
1778 (gcore_memory_sections): Use foreach.
1779
b35c1d1c
TT
17802020-09-19 Tom Tromey <tom@tromey.com>
1781
1782 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1783 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1784 parameters.
1785 (generic_elf_osabi_sniffer): Use foreach.
1786 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1787 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1788
5bb6e9dd
TT
17892020-09-19 Tom Tromey <tom@tromey.com>
1790
1791 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1792 (dwarf2_get_dwz_file): Use foreach.
1793 (dwarf2_locate_dwo_sections): Change parameters.
1794 (open_and_init_dwo_file): Use foreach.
1795 (dwarf2_locate_common_dwp_sections): Change parameters.
1796 (open_and_init_dwp_file): Use foreach.
1797
ad7277da
TT
17982020-09-19 Tom Tromey <tom@tromey.com>
1799
1800 * symfile.h: (find_lowest_section): Don't declare.
1801 * symfile.c (find_lowest_section): Now static. Change
1802 parameters.
1803 (struct place_section_arg): Remove.
1804 (place_section): Change parameters.
1805 (addr_info_make_relative): Use foreach.
1806 (symfile_dummy_outputs): Remove.
1807 (default_symfile_relocate): Use foreach.
1808
cb814f2e
TT
18092020-09-19 Tom Tromey <tom@tromey.com>
1810
1811 * objfiles.c (add_to_objfile_sections): Rename from
1812 add_to_objfile_sections_full.
1813 (add_to_objfile_sections): Remove.
1814 (build_objfile_section_table): Use foreach.
1815
3cabfd26
TT
18162020-09-19 Tom Tromey <tom@tromey.com>
1817
1818 * stap-probe.c (get_stap_base_address_1): Remove.
1819 (get_stap_base_address): Use foreach.
1820
1ce51eb5
TT
18212020-09-19 Tom Tromey <tom@tromey.com>
1822
1823 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1824 parameters.
1825 (gdb_bfd_close_or_warn): Use foreach.
1826
a190fabb
TT
18272020-09-19 Tom Tromey <tom@tromey.com>
1828
1829 * corelow.c (add_to_thread_list): Change parameters.
1830 (core_target_open): Use foreach.
1831
cafb0d81
TT
18322020-09-19 Tom Tromey <tom@tromey.com>
1833
1834 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1835 existing function.
1836
c8d5abea
AB
18372020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1840 for arrays.
1841
6d816919
AB
18422020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * eval.c: Remove 'f-lang.h' include.
1845 (value_f90_subarray): Moved to f-lang.c.
1846 (eval_call): Renamed to...
1847 (evaluate_subexp_do_call): ...this, is no longer static, header
1848 comment moved into header file.
1849 (evaluate_funcall): Update call to eval_call.
1850 (skip_undetermined_arglist): Moved to f-lang.c.
1851 (fortran_value_subarray): Likewise.
1852 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1853 moved to evaluate_subexp_f.
1854 (calc_f77_array_dims): Moved to f-lang.c
1855 * expprint.c (print_subexp_funcall): New function.
1856 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1857 moved to print_subexp_f, OP_FUNCALL uses new function.
1858 (dump_subexp_body_funcall): New function.
1859 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1860 moved to dump_subexp_f, OP_FUNCALL uses new function.
1861 * expression.h (evaluate_subexp_do_call): Declare.
1862 * f-lang.c (value_f90_subarray): Moved from eval.c.
1863 (skip_undetermined_arglist): Likewise.
1864 (calc_f77_array_dims): Likewise.
1865 (fortran_value_subarray): Likewise.
1866 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1867 (operator_length_f): Likewise.
1868 (print_subexp_f): Likewise.
1869 (dump_subexp_body_f): Likewise.
1870 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1871 declaration of this operation to here.
1872 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1873 support moved to operator_length_f.
1874 * parser-defs.h (dump_subexp_body_funcall): Declare.
1875 (print_subexp_funcall): Declare.
1876 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1877 fortran-operator.def.
1878
8c37706a
AB
18792020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * eval.c (fortran_value_subarray): New function, content is taken
1882 from...
1883 (evaluate_subexp_standard): ...here, in two places. Now arrays
1884 and strings both call the new function.
1885 (calc_f77_array_dims): Add header comment, handle strings.
1886
14f9473c
VC
18872020-09-18 Victor Collod <vcollod@nvidia.com>
1888
1889 PR gdb/26635
1890 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1891 (i386_analyze_prologue): Call i386_skip_endbr.
1892
b60cea74
TT
18932020-09-18 Tom Tromey <tromey@adacore.com>
1894
1895 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1896 (windows_nat_target::wait): Update.
1897 * target/wait.h (enum target_wait_flag): New. Use
1898 DEF_ENUM_FLAGS_TYPE.
1899 * target/target.h (target_wait): Change type of options.
1900 * target.h (target_options_to_string, default_target_wait):
1901 Update.
1902 (struct target_ops) <wait>: Change type of options.
1903 * target.c (target_wait, default_target_wait, do_option): Change
1904 type of "options".
1905 (target_options_to_string): Likewise.
1906 * target-delegates.c: Rebuild.
1907 * target-debug.h (target_debug_print_target_wait_flags): Rename
1908 from target_debug_print_options.
1909 * sol-thread.c (class sol_thread_target) <wait>: Update.
1910 (sol_thread_target::wait): Update.
1911 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1912 (rs6000_nat_target::wait): Update.
1913 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1914 Update.
1915 (remote_target::wait_ns, remote_target::wait_as): Change type of
1916 "options".
1917 (remote_target::wait): Update.
1918 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1919 (gdbsim_target::wait): Update.
1920 * record-full.c (class record_full_base_target) <wait>: Update.
1921 (record_full_wait_1): Change type of "options".
1922 (record_full_base_target::wait): Update.
1923 * record-btrace.c (class record_btrace_target) <wait>: Update.
1924 (record_btrace_target::wait): Update.
1925 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1926 Update.
1927 (ravenscar_thread_target::wait): Update.
1928 * procfs.c (class procfs_target) <wait>: Update.
1929 (procfs_target::wait): Update.
1930 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1931 * obsd-nat.c (obsd_nat_target::wait): Update.
1932 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1933 (nto_procfs_target::wait): Update.
1934 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1935 * nbsd-nat.c (nbsd_wait): Change type of "options".
1936 (nbsd_nat_target::wait): Update.
1937 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1938 (thread_db_target::wait): Update.
1939 * linux-nat.h (class linux_nat_target) <wait>: Update.
1940 * linux-nat.c (linux_nat_target::wait): Update.
1941 (linux_nat_wait_1): Update.
1942 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1943 "options".
1944 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1945 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1946 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1947 (go32_nat_target::wait): Update.
1948 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1949 * gnu-nat.c (gnu_nat_target::wait): Update.
1950 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1951 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1952 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1953 * darwin-nat.c (darwin_nat_target::wait): Update.
1954 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1955 (bsd_uthread_target::wait): Update.
1956 * aix-thread.c (class aix_thread_target) <wait>: Update.
1957 (aix_thread_target::wait): Update.
1958
0295dde6
AB
19592020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * compile/compile-object-run.c (create_copied_type_recursive): New
1962 function.
1963 (compile_object_run): Use new function.
1964
d3483b43
JT
19652020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1966
1967 * NEWS: Mention x86_64 Cygwin core file support.
1968
e7d612ad
JT
19692020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1970
1971 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1972 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1973
aff9d387
JT
19742020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1975
62a5151b
JT
1976 * windows-tdep.h: Add prototypes.
1977 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1978 (i386_windows_core_pid_to_str): Move and rename ...
1979 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1980 (windows_core_pid_to_str): ... and here.
1981 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1982
19832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1984 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1985 (amd64_windows_init_abi_common): ... and register.
1986
7d155da3
JT
19872020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1988
1989 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1990 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1991
e8ef12b9
PA
19922020-09-18 Pedro Alves <pedro@palves.net>
1993
1994 PR gdb/26631
1995 * thread.c (thread_find_command): Switch inferior before calling
1996 target methods.
1997
c1e1314d
TT
19982020-09-17 Tom Tromey <tromey@adacore.com>
1999
2000 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2001 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2002 (tdesc_arch_data_up): New typedef.
2003 (tdesc_use_registers, tdesc_data_alloc): Update.
2004 (tdesc_data_cleanup): Don't declare.
2005 * target-descriptions.c (tdesc_data_alloc): Return a
2006 tdesc_arch_data_up.
2007 (tdesc_arch_data_deleter::operator()): Rename from
2008 tdesc_data_cleanup. Change argument type.
2009 (tdesc_use_registers): Change early_data to an rvalue reference.
2010 (tdesc_use_registers): Don't use delete.
2011 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2012 * s390-tdep.c (s390_gdbarch_init): Update.
2013 * rx-tdep.c (rx_gdbarch_init): Update.
2014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2015 * riscv-tdep.c (riscv_gdbarch_init): Update.
2016 * or1k-tdep.c (or1k_gdbarch_init): Update.
2017 * nios2-tdep.c (nios2_gdbarch_init): Update.
2018 * nds32-tdep.c (nds32_gdbarch_init): Update.
2019 * mips-tdep.c (mips_gdbarch_init): Update.
2020 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2021 * m68k-tdep.c (m68k_gdbarch_init): Update.
2022 * i386-tdep.c (i386_gdbarch_init): Update.
2023 * arm-tdep.c (arm_gdbarch_init): Update.
2024 * arc-tdep.c (arc_tdesc_init): Update.
2025 (arc_gdbarch_init): Update.
2026 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2027
0363df3d
HD
20282020-09-17 Hannes Domani <ssbssa@yahoo.de>
2029
2030 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2031 for WOW64 processes.
2032
280a9412
TT
20332020-09-17 Tom Tromey <tom@tromey.com>
2034
2035 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2036
6108fd18
TT
20372020-09-17 Tom Tromey <tom@tromey.com>
2038
2039 * value.c (preserve_values): Update.
2040 * python/py-type.c (save_objfile_types): Update.
2041 * guile/scm-type.c (save_objfile_types): Update.
2042 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2043 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2044 * compile/compile-object-run.c (compile_object_run): Update.
2045
fa9b1164
TT
20462020-09-17 Tom Tromey <tom@tromey.com>
2047
2048 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2049 Remove.
2050 <m_table>: Now htab_up.
2051 * typeprint.c (typedef_hash_table::recursively_update)
2052 (typedef_hash_table::add_template_parameters)
2053 (typedef_hash_table::typedef_hash_table): Update.
2054 (typedef_hash_table::~typedef_hash_table): Remove.
2055 (typedef_hash_table::typedef_hash_table)
2056 (typedef_hash_table::find_global_typedef)
2057 (typedef_hash_table::find_typedef): Update.
2058
eb53f105
TT
20592020-09-17 Tom Tromey <tom@tromey.com>
2060
2061 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2062
7a8a5d47
TT
20632020-09-17 Tom Tromey <tom@tromey.com>
2064
2065 * linespec.c (class decode_compound_collector)
2066 <~decode_compound_collector>: Remove.
2067 <m_unique_syms>: Now htab_up.
2068 (decode_compound_collector::operator ()): Update.
2069 (class symtab_collector) <~symtab_collector>: Remove.
2070 <m_symtab_table>: Now htab_up.
2071 (symtab_collector::operator ()): Update.
2072
99032cfc
TT
20732020-09-17 Tom Tromey <tom@tromey.com>
2074
2075 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2076 (filename_seen_cache::clear): Update.
2077 (~filename_seen_cache): Remove.
2078 (filename_seen_cache::seen): Update.
2079 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2080 htab_up.
2081 <~filename_seen_cache>: Remove.
2082 <traverse>: Update.
2083
32580f6d
TT
20842020-09-17 Tom Tromey <tom@tromey.com>
2085
2086 * completer.c (completion_tracker::discard_completions)
2087 (completion_tracker::~completion_tracker)
2088 (completion_tracker::maybe_add_completion)
2089 (completion_tracker::remove_completion)
2090 (completion_tracker::recompute_lowest_common_denominator)
2091 (completion_tracker::build_completion_result): Update.
2092 * completer.h (class completion_tracker) <have_completions>:
2093 Update.
2094 <m_entries_hash>: Now htab_up.
2095
c1fb9836
TT
20962020-09-17 Tom Tromey <tom@tromey.com>
2097
2098 * breakpoint.c (ambiguous_names_p): Use htab_up.
2099
88f07206
TT
21002020-09-17 Tom Tromey <tom@tromey.com>
2101
2102 * auto-load.c (struct auto_load_pspace_info)
2103 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2104 <loaded_script_files, loaded_script_texts>: Change type to
2105 htab_up.
2106 (~auto_load_pspace_info) Remove.
2107 (init_loaded_scripts_info, maybe_add_script_file)
2108 (maybe_add_script_text, auto_load_info_scripts): Update.
2109
9519b2ee
TT
21102020-09-17 Tom Tromey <tromey@adacore.com>
2111
2112 * c-exp.y (name_obstack): Now static.
2113
d2cd4113
CC
21142020-09-17 Chungyi Chi <demonic@csie.io>
2115
2116 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2117
b650a282
SM
21182020-09-16 Simon Marchi <simon.marchi@efficios.com>
2119
2120 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2121 (add_solib_catchpoint): Likewise.
2122 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2123 to bool.
2124 (add_solib_catchpoint): Change int parameter/variable to bool.
2125 (catch_load_or_unload): Likewise.
2126 (init_catchpoint): Likewise.
2127 (create_fork_vfork_event_catchpoint): Likewise.
2128 (catch_fork_command_1): Likewise.
2129 (catch_exec_command_1): Likewise.
2130
4d0bcfcf
SM
21312020-09-16 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2134 Change instance_flags to m_instance_flags.
2135
fe830662
TT
21362020-09-16 Tom Tromey <tromey@adacore.com>
2137
2138 PR gdb/26598:
2139 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2140
fe5ddfc3
JB
21412020-09-16 John Baldwin <jhb@FreeBSD.org>
2142
2143 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2144 PL_FLAG_EXEC.
2145 (fbsd_nat_target::insert_exec_catchpoint)
2146 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2147 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2148 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2149
e911c666
JB
21502020-09-16 John Baldwin <jhb@FreeBSD.org>
2151
2152 * configure.ac: Remove check for kinfo_getvmmap().
2153 * configure, config.in: Regenerate.
2154 * fbsd-nat.c (fbsd_read_mapping): Remove
2155 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2156 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2157 kinfo_get_vmmap() are always present.
2158
1f17d372
JB
21592020-09-16 John Baldwin <jhb@FreeBSD.org>
2160
2161 * fbsd-nat.c: Always include support for
2162 TARGET_OBJECT_SIGNAL_INFO.
2163
bcb1da7f
JB
21642020-09-16 John Baldwin <jhb@FreeBSD.org>
2165
2166 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2167 sysctl and remove procfs fallback.
2168
5515f729
JB
21692020-09-16 John Baldwin <jhb@FreeBSD.org>
2170
2171 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2172 * fbsd-nat.h: Likewise.
2173
da1df1db
TBA
21742020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2175
2176 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2177 argument.
2178
0e25e767
AB
21792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * ada-lang.c (ada_language_data): Delete.
2182 (ada_language): Remove references to ada_language_data.
2183 * c-lang.c (c_language_data): Delete.
2184 (c_language): Remove references to c_language_data.
2185 (cplus_language_data): Delete.
2186 (cplus_language): Remove references to cplus_language_data.
2187 (asm_language_data): Delete.
2188 (asm_language): Remove references to asm_language_data.
2189 (minimal_language_data): Delete.
2190 (minimal_language): Remove references to minimal_language_data.
2191 * d-lang.c (d_language_data): Delete.
2192 (d_language): Remove references to d_language_data.
2193 * f-lang.c (f_language_data): Delete.
2194 (f_language): Remove references to f_language_data.
2195 * go-lang.c (go_language_data): Delete.
2196 (go_language): Remove references to go_language_data.
2197 * language.c (unknown_language_data): Delete.
2198 (unknown_language): Remove references to unknown_language_data.
2199 (auto_language_data): Delete.
2200 (auto_language): Remove references to auto_language_data.
2201 * language.h (language_data): Delete struct.
2202 (language_defn): No longer inherit from language_data.
2203 * m2-lang.c (m2_language_data): Delete.
2204 (m2_language): Remove references to m2_language_data.
2205 * objc-lang.c (objc_language_data): Delete.
2206 (objc_language): Remove references to objc_language_data.
2207 * opencl-lang.c (opencl_language_data): Delete.
2208 (opencl_language): Remove references to opencl_language_data.
2209 * p-lang.c (pascal_language_data): Delete.
2210 (pascal_language): Remove references to pascal_language_data.
2211 * rust-lang.c (rust_language_data): Delete.
2212 (rust_language): Remove references to rust_language_data.
2213
b7c6e27d
AB
22142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2215
2216 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2217 initializer.
2218 (ada_language::opcode_print_table): New member function.
2219 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2220 (c_language::opcode_print_table): New member function.
2221 (cplus_language_data): Remove la_op_print_tab initializer.
2222 (cplus_language::opcode_print_table): New member function.
2223 (asm_language_data): Remove la_op_print_tab initializer.
2224 (asm_language::opcode_print_table): New member function.
2225 (minimal_language_data): Remove la_op_print_tab initializer.
2226 (minimal_language::opcode_print_table): New member function.
2227 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2228 (d_language::opcode_print_table): New member function.
2229 * expprint.c (print_subexp_standard): Update call to
2230 opcode_print_table.
2231 (op_string): Likewise.
2232 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2233 (f_language::opcode_print_table): New member function.
2234 * go-lang.c (go_language_data): Remove la_op_print_tab
2235 initializer.
2236 (go_language::opcode_print_table): New member function.
2237 * language.c (unknown_language_data): Remove la_op_print_tab
2238 initializer.
2239 (unknown_language::opcode_print_table): New member function.
2240 (auto_language_data): Remove la_op_print_tab initializer.
2241 (auto_language::opcode_print_table): New member function.
2242 * language.h (language_data): Remove la_op_print_tab field.
2243 (language_defn::opcode_print_table): Declare new member function.
2244 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2245 initializer.
2246 (m2_language::opcode_print_table): New member function.
2247 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2248 initializer.
2249 (objc_language::opcode_print_table): New member function.
2250 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2251 initializer.
2252 (opencl_language::opcode_print_table): New member function.
2253 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2254 initializer.
2255 (pascal_language::opcode_print_table): New member function.
2256 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2257 initializer.
2258 (rust_language::opcode_print_table): New member function.
2259
5aba6ebe
AB
22602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2263 (ada_language::expression_ops): New member function.
2264 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2265 (c_language::expression_ops): New member function.
2266 (cplus_language_data): Remove la_exp_desc initializer.
2267 (cplus_language::expression_ops): New member function.
2268 (asm_language_data): Remove la_exp_desc initializer.
2269 (asm_language::expression_ops): New member function.
2270 (minimal_language_data): Remove la_exp_desc initializer.
2271 (minimal_language::expression_ops): New member function.
2272 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2273 (d_language::expression_ops): New member function.
2274 * eval.c (evaluate_subexp): Update call to expression_ops.
2275 * expprint.c (print_subexp): Likewise.
2276 (op_name): Likewise.
2277 (dump_subexp_body): Likewise.
2278 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2279 (f_language::expression_ops): New member function.
2280 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2281 (go_language::expression_ops): New member function.
2282 * language.c (language_defn::expression_ops): New function.
2283 (unknown_language_data): Remove la_exp_desc initializer.
2284 (auto_language_data): Likewise.
2285 * language.h (language_data): Remove la_exp_desc field.
2286 (language_defn::expression_ops): Declare new member function.
2287 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2288 (m2_language::expression_ops): New member function.
2289 * objc-lang.c (objc_language_data): Remove la_exp_desc
2290 initializer.
2291 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2292 initializer.
2293 (opencl_language::expression_ops): New member function.
2294 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2295 * parse.c (operator_length): Update call to expression_ops.
2296 (exp_iterate): Likewise.
2297 * rust-lang.c (rust_language_data): Remove la_exp_desc
2298 initializer.
2299 (ruse_language::expression_ops): New member function.
2300
b63a3f3f
AB
23012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2304 initializer.
2305 (ada_language::varobj_ops): New member function.
2306 * c-lang.c (c_language_data): Remove la_varobj_ops
2307 initializer.
2308 (cplus_language_data): Likewise.
2309 (cplus_language::varobj_ops): New member function.
2310 (asm_language_data): Remove la_varobj_ops initializer.
2311 (minimal_language_data): Likewise.
2312 * d-lang.c (d_language_data): Likewise.
2313 * f-lang.c (f_language_data): Likewise.
2314 * go-lang.c (go_language_data): Likewise.
2315 * language.c (language_defn::varobj_ops): New function.
2316 (unknown_language_data): Remove la_varobj_ops
2317 initializer.
2318 (auto_language_data): Likewise.
2319 * language.h (language_data): Remove la_varobj_ops field.
2320 (language_defn::varobj_ops): Declare new member function.
2321 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2322 * objc-lang.c (objc_language_data): Likewise.
2323 * opencl-lang.c (opencl_language_data): Likewise.
2324 * p-lang.c (pascal_language_data): Likewise.
2325 * rust-lang.c (rust_language_data): Likewise.
2326 * varobj.c (varobj_create): Update call to varobj_ops.
2327 * varobj.h (default_varobj_ops): Delete define.
2328
1ac14a04
AB
23292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2332 initializer.
2333 * c-lang.c (c_language_data): Likewise.
2334 (c_language::macro_expansion): New member function.
2335 (cplus_language_data): Likewise.
2336 (cplus_language::macro_expansion): New member function.
2337 (asm_language_data): Likewise.
2338 (asm_language::macro_expansion): New member function.
2339 (minimal_language_data): Likewise.
2340 (minimal_language::macro_expansion): New member function.
2341 * d-lang.c (d_language_data): Remove la_macro_expansion
2342 initializer.
2343 * f-lang.c (f_language_data): Likewise.
2344 * go-lang.c (go_language_data): Likewise.
2345 * language.c (unknown_language_data): Likewise.
2346 (auto_language_data): Likewise.
2347 * language.h (language_data): Remove la_macro_expansion field.
2348 (language_defn::macro_expansion): New member function.
2349 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2350 initializer.
2351 * objc-lang.c (objc_language_data): Likewise.
2352 (objc_language::macro_expansion): New member function.
2353 * opencl-lang.c (opencl_language_data): Likewise.
2354 (opencl_language::macro_expansion): New member function.
2355 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2356 initializer.
2357 * rust-lang.c (rust_language_data): Likewise.
2358 * symtab.c (default_collect_symbol_completion_matches_break_on):
2359 Update call to macro_expansion.
2360
3a3440fb
AB
23612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * ada-lang.c (ada_language_data): Remove la_array_ordering
2364 initializer.
2365 * c-lang.c (c_language_data): Likewise.
2366 (cplus_language_data): Likewise.
2367 (asm_language_data): Likewise.
2368 (minimal_language_data): Likewise.
2369 * d-lang.c (d_language_data): Likewise.
2370 * dwarf2/read.c (read_array_order): Update for call to
2371 array_ordering.
2372 * f-lang.c (f_language_data): Remove la_array_ordering
2373 initializer.
2374 (f_language::array_ordering): New member function.
2375 * go-lang.c (go_language_data): Remove la_array_ordering
2376 initializer.
2377 * language.c (unknown_language_data): Likewise.
2378 (auto_language_data): Likewise.
2379 * language.h (language_data): Delete la_array_ordering field.
2380 (language_defn::array_ordering): New member function.
2381 * m2-lang.c (m2_language_data): Remove la_array_ordering
2382 initializer.
2383 * objc-lang.c (objc_language_data): Likewise.
2384 * opencl-lang.c (opencl_language_data): Likewise.
2385 * p-lang.c (pascal_language_data): Likewise.
2386 * rust-lang.c (rust_language_data): Likewise.
2387
0d201fa4
AB
23882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2389
2390 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2391 initializer.
2392 * c-lang.c (c_language_data): Likewise.
2393 (cplus_language_data): Likewise.
2394 (asm_language_data): Likewise.
2395 (minimal_language_data): Likewise.
2396 * d-lang.c (d_language_data): Likewise.
2397 * f-lang.c (f_language_data): Likewise.
2398 (f_language::case_sensitivity): New member function.
2399 * go-lang.c (go_language_data): Remove la_case_sensitivity
2400 initializer.
2401 * language.c (enum case_mode): Moved here from language.h.
2402 (case_mode): Make static.
2403 (show_case_command): Update for case_sensitivity being a method.
2404 (set_case_command): Likewise.
2405 (set_range_case): Likewise.
2406 (unknown_language_data): Remove la_case_sensitivity initializer.
2407 (auto_language_data): Likewise.
2408 * language.h (case_mode): Delete, move enum declaration to
2409 language.c.
2410 (language_data): Delete la_case_sensitivity field.
2411 (language_defn::case_sensitivity): New member function.
2412 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2413 initializer.
2414 * objc-lang.c (objc_language_data): Likewise.
2415 * opencl-lang.c (opencl_language_data): Likewise.
2416 * p-lang.c (pascal_language_data): Likewise.
2417 * rust-lang.c (rust_language_data): Likewise.
2418
efdf6a73
AB
24192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * ada-lang.c (ada_language_data): Remove la_range_check
2422 initializer.
2423 * c-lang.c (c_language_data): Likewise.
2424 (cplus_language_data): Likewise.
2425 (asm_language_data): Likewise.
2426 (minimal_language_data): Likewise.
2427 * d-lang.c (d_language_data): Likewise.
2428 * f-lang.c (f_language_data): Likewise.
2429 (f_language::range_checking_on_by_default): New member function.
2430 * go-lang.c (go_language_data): Remove la_range_check initializer.
2431 * language.c (enum range_mode): Moved here from language.h.
2432 (range_mode): Made static.
2433 (show_range_command): Update to use
2434 range_checking_on_by_default.
2435 (set_range_command): Likewise.
2436 (set_range_case): Likewise.
2437 (unknown_language_data): Remove la_range_check initializer.
2438 (auto_language_data): Likewise.
2439 * language.h (range_mode): Delete. Enum definition moved to
2440 language.c.
2441 (language_data): Remove la_range_check field.
2442 (language_defn::range_checking_on_by_default): New member
2443 function.
2444 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2445 (m2_language::range_checking_on_by_default): New member function.
2446 * objc-lang.c (objc_language_data): Remove la_range_check
2447 initializer.
2448 * opencl-lang.c (opencl_language_data): Likewise.
2449 * p-lang.c (pascal_language_data): Likewise.
2450 (pascal_language::range_checking_on_by_default): New member
2451 function.
2452 * rust-lang.c (rust_language_data): Remove la_range_check
2453 initializer.
2454 (rust_language::range_checking_on_by_default): New member
2455 function.
2456
bf92aec5
AB
24572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * dwarf2/read.c (dwarf2_physname): Remove special case for
2460 language_go.
2461 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2462 member function.
2463
d3355e4d
AB
24642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (ada_language_data): Remove
2467 la_store_sym_names_in_linkage_form_p initializer.
2468 (ada_language::store_sym_names_in_linkage_form_p): New member
2469 function.
2470 * c-lang.c (c_language_data): Remove
2471 la_store_sym_names_in_linkage_form_p initializer.
2472 (c_language::store_sym_names_in_linkage_form_p): New member
2473 function.
2474 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2475 initializer.
2476 (asm_language_data): Likewise.
2477 (asm_language::store_sym_names_in_linkage_form_p): New member
2478 function.
2479 (minimal_language_data): Remove
2480 la_store_sym_names_in_linkage_form_p initializer.
2481 (minimal_language::store_sym_names_in_linkage_form_p): New member
2482 function.
2483 * d-lang.c (d_language_data): Remove
2484 la_store_sym_names_in_linkage_form_p initializer.
2485 * dwarf2/read.c (dwarf2_physname): Update call to
2486 store_sym_names_in_linkage_form_p.
2487 * f-lang.c (f_language_data): Remove
2488 la_store_sym_names_in_linkage_form_p initializer.
2489 * go-lang.c (go_language_data): Remove
2490 la_store_sym_names_in_linkage_form_p initializer.
2491 * language.c (unknown_language_data): Remove
2492 la_store_sym_names_in_linkage_form_p initializer.
2493 (unknown_language::store_sym_names_in_linkage_form_p): New member
2494 function.
2495 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2496 initializer.
2497 (auto_language::store_sym_names_in_linkage_form_p): New member
2498 function.
2499 * language.h (language_data): Remove
2500 la_store_sym_names_in_linkage_form_p member variable.
2501 (language_defn::store_sym_names_in_linkage_form_p): New member
2502 function.
2503 * m2-lang.c (m2_language_data): Remove
2504 la_store_sym_names_in_linkage_form_p initializer.
2505 * objc-lang.c (objc_language_data): Likewise.
2506 * opencl-lang.c (opencl_language_data): Likewise.
2507 * p-lang.c (pascal_language_data): Likewise.
2508 * rust-lang.c (rust_language_data): Likewise.
2509
22c12a6c
AB
25102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 * ada-lang.c (ada_language_data): Remove string_lower_bound
2513 initializer.
2514 * c-lang.c (c_language_data): Likewise.
2515 (cplus_language_data): Likewise.
2516 (asm_language_data): Likewise.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 * f-lang.c (f_language_data): Likewise.
2520 * go-lang.c (go_language_data): Likewise.
2521 * language.c (unknown_language_data): Likewise.
2522 (auto_language_data): Likewise.
2523 * language.h (language_data): Remove string_lower_bound field.
2524 (language_defn::string_lower_bound): New member function.
2525 * m2-lang.c (m2_language_data): Remove string_lower_bound
2526 initializer.
2527 (m2_language::string_lower_bound): New member function.
2528 * objc-lang.c (objc_language_data): Remove string_lower_bound
2529 initializer.
2530 * opencl-lang.c (opencl_language_data): Likewise.
2531 * p-lang.c (pascal_language_data): Likewise.
2532 * rust-lang.c (rust_language_data): Likewise.
2533 * valops.c (value_cstring): Update call to string_lower_bound.
2534 (value_string): Likewise.
2535 * value.c (allocate_repeated_value): Likewise.
2536
1c236ddd
AB
25372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * valops.c (value_repeat): Fix incorrect argument name in comment.
2540
67bd3fd5
AB
25412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * ada-lang.c (ada_language_data): Remove c_style_arrays
2544 initializer.
2545 (ada_language::c_style_arrays_p): New member fuction.
2546 * c-lang.c (c_language_data): Remove c_style_arrays
2547 initializer.
2548 (cplus_language_data): Likewise.
2549 (asm_language_data): Likewise.
2550 (minimal_language_data): Likewise.
2551 * d-lang.c (d_language_data): Likewise.
2552 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2553 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2554 (f_language::c_style_arrays_p): New member function.
2555 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2556 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2557 * language.c (unknown_language_data): Remove c_style_arrays
2558 initializer.
2559 (auto_language_data): Likewise.
2560 * language.h (language_data): Remove c_style_arrays field.
2561 (language_defn::c_style_arrays_p): New member function.
2562 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2563 (m2_language::c_style_arrays_p): New member function.
2564 * objc-lang.c (objc_language_data): Remove c_style_arrays
2565 initializer.
2566 * opencl-lang.c (opencl_language_data): Likewise.
2567 * p-lang.c (pascal_language_data): Likewise.
2568 * rust-lang.c (rust_language_data): Likewise.
2569 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2570 and update local variable to a bool.
2571 * valops.c (value_cast): Update call to c_style_arrays_p.
2572 (value_array): Likewise.
2573 * value.c (coerce_array): Likewise.
2574
85967615
AB
25752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * ada-lang.c (ada_language_data): Remove la_language initializer.
2578 * c-lang.c (c_language_data): Likewise.
2579 (cplus_language_data): Likewise.
2580 (asm_language_data): Likewise.
2581 (minimal_language_data): Likewise.
2582 * d-lang.c (d_language_data): Likewise.
2583 * f-lang.c (f_language_data): Likewise.
2584 * go-lang.c (go_language_data): Likewise.
2585 * language.c (unknown_language_data): Likewise.
2586 (auto_language_data): Likewise.
2587 * language.h (language_data): Remove la_language field.
2588 (language_defn::language_defn): Initialise la_language field.
2589 (language_defn::la_language): New member variable.
2590 * m2-lang.c (m2_language_data): Remove la_language field.
2591 * objc-lang.c (objc_language_data): Likewise.
2592 * opencl-lang.c (opencl_language_data): Likewise.
2593 * p-lang.c (pascal_language_data): Likewise.
2594 * rust-lang.c (rust_language_data): Likewise.
2595
e171d6f1
AB
25962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * ada-lang.c (ada_extensions): Delete, moved into
2599 ada_language::filename_extensions.
2600 (ada_language_data): Remove la_filename_extensions initializer.
2601 (ada_language::filename_extensions): New member function.
2602 * c-lang.c (c_extensions): Delete, moved into
2603 c_language::filename_extensions.
2604 (c_language_data): Remove la_filename_extensions initializer.
2605 (c_language::filename_extensions): New member function.
2606 (cplus_extensions): Delete, moved into
2607 cplus_language::filename_extensions.
2608 (cplus_language_data): Remove la_filename_extensions initializer.
2609 (cplus_language::filename_extensions): New member function.
2610 (asm_extensions): Delete, moved into
2611 asm_language::filename_extensions.
2612 (asm_language_data): Remove la_filename_extensions initializer.
2613 (asm_language::filename_extensions): New member function.
2614 (minimal_language_data): Remove la_filename_extensions
2615 initializer.
2616 * d-lang.c (d_extensions): Delete, moved into
2617 d_language::filename_extensions.
2618 (d_language_data): Remove la_filename_extensions initializer.
2619 (d_language::filename_extensions): New member function.
2620 * f-lang.c (f_extensions): Delete, moved into
2621 f_language::filename_extensions.
2622 (f_language_data): Remove la_filename_extensions initializer.
2623 (f_language::filename_extensions): New member function.
2624 * go-lang.c (go_language_data): Remove la_filename_extensions
2625 initializer.
2626 * language.c (add_set_language_command): Update now that
2627 filename_extensions returns a vector.
2628 (unknown_language_data): Remove la_filename_extensions
2629 initializer.
2630 (auto_language_data): Likewise.
2631 * language.h (language_data): Remove la_filename_extensions field.
2632 (language_defn::filename_extensions): New member function.
2633 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2634 initializer.
2635 * objc-lang.c (objc_extensions): Delete, moved into
2636 objc_language::filename_extensions.
2637 (objc_language_data): Remove la_filename_extensions initializer.
2638 (objc_language::filename_extensions): New member function.
2639 * opencl-lang.c (opencl_language_data): Remove
2640 la_filename_extensions initializer.
2641 * p-lang.c (pascal_extensions): Delete, moved into
2642 pascal_language::filename_extensions.
2643 (pascal_language_data): Remove la_filename_extensions initializer.
2644 (pascal_language::filename_extensions): New member function.
2645 * rust-lang.c (rust_extensions): Delete, moved into
2646 rust_language::filename_extensions.
2647 (rust_language_data): Remove la_filename_extensions initializer.
2648 (rust_language::filename_extensions): New member function.
2649 * symfile.c (add_filename_language): Add new assert.
2650
6f7664a9
AB
26512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * ada-lang.c (ada_language_data): Remove la_name and
2654 la_natural_name initializers.
2655 (ada_language::name): New member function.
2656 (ada_language::natural_name): New member function.
2657 * c-lang.c (c_language_data): Remove la_name and
2658 la_natural_name initializers.
2659 (c_language::name): New member function.
2660 (c_language::natural_name): New member function.
2661 (cplus_language_data): Remove la_name and
2662 la_natural_name initializers.
2663 (cplus_language::name): New member function.
2664 (cplus_language::natural_name): New member function.
2665 (asm_language_data): Remove la_name and
2666 la_natural_name initializers.
2667 (asm_language::name): New member function.
2668 (asm_language::natural_name): New member function.
2669 (minimal_language_data): Remove la_name and
2670 la_natural_name initializers.
2671 (minimal_language::name): New member function.
2672 (minimal_language::natural_name): New member function.
2673 * compile/compile.c (compile_to_object): Update call to
2674 lanugage_defn::name.
2675 * d-lang.c (d_language_data): Remove la_name and
2676 la_natural_name initializers.
2677 (d_language::name): New member function.
2678 (d_language::natural_name): New member function.
2679 * expprint.c (print_subexp_standard): Update call to
2680 language_defn::name.
2681 (dump_raw_expression): Likewise
2682 (dump_prefix_expression): Likewise.
2683 * f-lang.c (f_language_data): Remove la_name and
2684 la_natural_name initializers.
2685 (f_language::name): New member function.
2686 (f_language::natural_name): New member function.
2687 * go-lang.c (go_language_data): Remove la_name and
2688 la_natural_name initializers.
2689 (go_language::name): New member function.
2690 (go_language::natural_name): New member function.
2691 * language.c (show_language_command): Update call to
2692 language_defn::name.
2693 (set_language_command): Likewise.
2694 (language_enum): Likewise.
2695 (language_str): Likewise.
2696 (add_set_language_command): Likewise, use
2697 language_defn::natural_name in the doc string.
2698 (unknown_language_data): Remove la_name and
2699 la_natural_name initializers.
2700 (unknown_language::name): New member function.
2701 (unknown_language::natural_name): New member function.
2702 (auto_language_data): Remove la_name and
2703 la_natural_name initializers.
2704 (auto_language::name): New member function.
2705 (auto_language::natural_name): New member function.
2706 (language_lookup_primitive_type_as_symbol): Update call to
2707 language_defn::name.
2708 * language.h (language_data): Remove la_name and la_natural_name
2709 member variables.
2710 (language_defn::name): New member function.
2711 (language_defn::natural_name): New member function.
2712 * m2-lang.c (m2_language_data): Remove la_name and
2713 la_natural_name initializers.
2714 (m2_language::name): New member function.
2715 (m2_language::natural_name): New member function.
2716 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2717 language_defn::natural_name.
2718 * objc-lang.c (objc_language_data): Remove la_name and
2719 la_natural_name initializers.
2720 (objc_language::name): New member function.
2721 (objc_language::natural_name): New member function.
2722 * opencl-lang.c (opencl_language_data): Remove la_name and
2723 la_natural_name initializers.
2724 (opencl_language::name): New member function.
2725 (opencl_language::natural_name): New member function.
2726 * p-lang.c (pascal_language_data): Remove la_name and
2727 la_natural_name initializers.
2728 (pascal_language::name): New member function.
2729 (pascal_language::natural_name): New member function.
2730 * rust-lang.c (rust_language_data): Remove la_name and
2731 la_natural_name initializers.
2732 (rust_language::name): New member function.
2733 (rust_language::natural_name): New member function.
2734 * symtab.c (lookup_language_this): Update call to
2735 language_defn::name.
2736
5bae7c4e
AB
27372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * ada-lang.c (ada_language_data): Remove la_name_of_this
2740 initializer.
2741 * ax-gdb.c (gen_expr): Update call to name_of_this.
2742 * c-exp.y (classify_name): Likewise.
2743 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2744 (cplus_language_data): Likewise.
2745 (cplus_language::name_of_this): New member function.
2746 (asm_language_data): Remove la_name_of_this initializer.
2747 (minimal_language_data): Likewise.
2748 * d-lang.c (d_language_data): Likewise.
2749 (d_language::name_of_this): New member function.
2750 * expprint.c (print_subexp_standard): Update call to name_of_this.
2751 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2752 * go-lang.c (go_language_data): Likewise.
2753 * language.c (unknown_language_data): Likewise.
2754 (unknown_language::name_of_this): New member function.
2755 (auto_language_data): Remove la_name_of_this initializer.
2756 (auto_language::name_of_this): New member function.
2757 * language.h (language_data): Delete la_name_of_this member
2758 variable.
2759 (language_defn::name_of_this): New member function.
2760 * m2-lang.c (m2_language_data): Remove la_name_of_this
2761 initializer.
2762 * objc-lang.c (objc_language_data): Likewise.
2763 (objc_language::name_of_this): New member function.
2764 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2765 initializer.
2766 * p-lang.c (pascal_language_data): Likewise.
2767 (pascal_language::name_of_this): New member function.
2768 * rust-lang.c (rust_language_data): Remove la_name_of_this
2769 initializer.
2770 * symtab.c (lookup_language_this): Update call to name_of_this.
2771 (lookup_symbol_aux): Likewise.
2772 * valops.c (value_of_this): Likewise.
2773
22e3f3ed
AB
27742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * ada-lang.c (ada_language_data): Remove
2777 la_struct_too_deep_ellipsis initializer.
2778 (ada_language::struct_too_deep_ellipsis): New member function.
2779 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2780 initializer.
2781 (cplus_language_data): Likewise.
2782 (asm_language_data): Likewise.
2783 (minimal_language_data): Likewise.
2784 * cp-valprint.c (cp_print_value): Update call to
2785 struct_too_deep_ellipsis.
2786 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2787 initializer.
2788 * f-lang.c (f_language_data): Likewise.
2789 (f_language::struct_too_deep_ellipsis): New member function.
2790 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2791 initializer.
2792 * language.c (unknown_language_data): Likewise.
2793 (auto_language_data): Likewise.
2794 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2795 member variable.
2796 (language_defn::struct_too_deep_ellipsis): New member function.
2797 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2798 initializer.Q
2799 * objc-lang.c (objc_language_data): Likewise.
2800 * opencl-lang.c (opencl_language_data): Likewise.
2801 * p-lang.c (pascal_language_data): Likewise.
2802 * rust-lang.c (rust_language_data): Likewise.
2803 * valprint.c (val_print_check_max_depth): Update call to
2804 struct_too_deep_ellipsis.
2805
ed29e1c7
FW
28062020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2807
2808 * MAINTAINERS (Write After Approval): Add myself.
2809
12d8f940
TT
28102020-09-15 Tom Tromey <tom@tromey.com>
2811
2812 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2813 Remove.
2814
6b5a7bc7
TT
28152020-09-15 Tom Tromey <tom@tromey.com>
2816
2817 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2818 and TYPE_CODE_METHODPTR cases.
2819 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2820 (c_value_print_inner): Update.
2821 * valprint.c (generic_value_print_memberptr): New function, from
2822 c_value_print_memberptr.
2823 (generic_value_print): Use it. Call cplus_print_method_ptr.
2824
47f0e2ff
TT
28252020-09-15 Tom Tromey <tromey@adacore.com>
2826
2827 * python/python-internal.h (PyInt_FromLong): Remove define.
2828 * python/py-value.c (convert_value_from_python): Use
2829 gdb_py_object_from_longest.
2830 * python/py-type.c (typy_get_code): Use
2831 gdb_py_object_from_longest.
2832 * python/py-symtab.c (salpy_get_line): Use
2833 gdb_py_object_from_longest.
2834 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2835 gdb_py_object_from_longest.
2836 * python/py-record.c (recpy_gap_reason_code): Use
2837 gdb_py_object_from_longest.
2838 * python/py-record-btrace.c (recpy_bt_insn_size)
2839 (recpy_bt_func_level, btpy_list_count): Use
2840 gdb_py_object_from_longest.
2841 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2842 gdb_py_object_from_longest. Fix error handling.
2843 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2844 gdb_py_object_from_longest.
2845 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2846 gdb_py_object_from_longest.
2847 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2848 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2849 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2850
512116ce
TT
28512020-09-15 Tom Tromey <tromey@adacore.com>
2852
2853 * python/python.c (gdbpy_parameter_value): Use
2854 gdb_py_object_from_ulongest.
2855
4ab1029c
TT
28562020-09-15 Tom Tromey <tromey@adacore.com>
2857
2858 * python/py-infevents.c (create_register_changed_event_object):
2859 Use gdb_py_object_from_longest.
2860 * python/py-exitedevent.c (create_exited_event_object): Use
2861 gdb_py_object_from_longest.
2862
062534d4
TT
28632020-09-15 Tom Tromey <tromey@adacore.com>
2864
2865 * python/python.c (gdbpy_parameter_value): Use
2866 gdb_py_object_from_longest.
2867 * python/py-type.c (convert_field, typy_range): Use
2868 gdb_py_object_from_longest.
2869 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2870 gdb_py_object_from_longest.
2871 * python/py-lazy-string.c (stpy_get_length): Use
2872 gdb_py_object_from_longest.
2873 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2874 gdb_py_object_from_longest.
2875 * python/py-infevents.c (create_memory_changed_event_object): Use
2876 gdb_py_object_from_longest.
2877 * python/py-inferior.c (infpy_get_num): Use
2878 gdb_py_object_from_longest.
2879 (infpy_get_pid): Likewise.
2880
d1cab987
TT
28812020-09-15 Tom Tromey <tromey@adacore.com>
2882
2883 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2884 defines.
2885 * python/py-value.c (valpy_long): Use
2886 gdb_py_object_from_ulongest.
2887 * python/py-symtab.c (salpy_get_pc): Use
2888 gdb_py_object_from_ulongest.
2889 (salpy_get_last): Likewise.
2890 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2891 gdb_py_object_from_ulongest.
2892 * python/py-lazy-string.c (stpy_get_address): Use
2893 gdb_py_object_from_ulongest.
2894 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2895 * python/py-arch.c (archpy_disassemble): Use
2896 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2897 error handling.
2898
4bde49dc
TT
28992020-09-15 Tom Tromey <tromey@adacore.com>
2900
2901 * python/python-internal.h (gdb_py_long_from_longest): Remove
2902 defines.
2903 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2904 * python/py-type.c (convert_field, typy_get_sizeof): Use
2905 gdb_py_object_from_longest.
2906 * python/py-record-btrace.c (btpy_list_index): Use
2907 gdb_py_object_from_longest.
2908
37431074
TT
29092020-09-15 Tom Tromey <tromey@adacore.com>
2910
2911 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2912 * python/py-record.c (recpy_element_number): Use
2913 gdb_py_object_from_longest.
2914 (recpy_gap_number): Likewise.
2915
cbe25684
TT
29162020-09-15 Tom Tromey <tromey@adacore.com>
2917
2918 * top.c (ui::ui): Update.
2919 (highest_ui_num): Remove.
2920 * top.h (struct ui) <num>: Remove.
2921
db92ac45
TT
29222020-09-15 Tom Tromey <tromey@adacore.com>
2923
2924 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2925 * ui-style.c (ansi_regex_text): Now array.
2926 * rust-exp.y (number_regex_text): Now array.
2927 * linespec.c (linespec_quote_characters): Now array.
2928 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2929 Now arrays.
2930
d2b31b67
SM
29312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * debuginfod-support.c (debuginfod_client_deleter): New.
2934 (debuginfod_client_up): New.
2935 (debuginfod_init): Return debuginfod_client_up.
2936 (debuginfod_source_query): Adjust.
2937 (debuginfod_debuginfo_query): Adjust.
2938
3246bd8e
SM
29392020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2940
2941 * debuginfod-support.c (debuginfod_source_query): Use
2942 make_unique_xstrdup.
2943
10242f36
SM
29442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2947 with `type::instance_flags`.
2948
e1044e6a
MM
29492020-09-14 Michael Mullin <masmullin@gmail.com>
2950
2951 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2952 Remove baton parameter.
2953
04902b09
PA
29542020-09-14 Pedro Alves <pedro@palves.net>
2955
2956 * Makefile.in (SELFTESTS_SRCS): Add
2957 unittests/enum-flags-selftests.c.
2958 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2959 btrace_function_flags instead of enum btrace_function_flag.
2960 * compile/compile-c-types.c (convert_qualified): Use
2961 enum_flags::raw.
2962 * compile/compile-cplus-symbols.c (convert_one_symbol)
2963 (convert_symbol_bmsym):
2964 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2965 (compile_cplus_convert_struct_or_union_methods)
2966 (compile_cplus_instance::convert_qualified_base):
2967 * go-exp.y (parse_string_or_char): Add cast to int.
2968 * unittests/enum-flags-selftests.c: New file.
2969 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2970 type to btrace_thread_flags from btrace_thread_flag.
2971 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2972 local's type to btrace_thread_flags from btrace_thread_flag. Add
2973 cast in DEBUG call.
2974
69896a2c
PA
29752020-09-14 Pedro Alves <pedro@palves.net>
2976
2977 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2978 * gdbtypes.c (address_space_name_to_int): Rename to ...
2979 (address_space_name_to_type_instance_flags): ... this.
2980 (address_space_int_to_name): Rename to ...
2981 (address_space_type_instance_flags_to_name): ... this.
2982 * gdbtypes.h (address_space_name_to_int): Rename to ...
2983 (address_space_name_to_type_instance_flags): ... this.
2984 (address_space_int_to_name): Rename to ...
2985 (address_space_type_instance_flags_to_name): ... this.
2986 * type-stack.c (type_stack::insert): Adjust to rename.
2987 * type-stack.h (type_stack::insert): Likewise.
2988
314ad88d
PA
29892020-09-14 Pedro Alves <pedro@palves.net>
2990 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * avr-tdep.c (avr_address_class_type_flags): Return
2993 type_instance_flags.
2994 (avr_address_class_type_flags_to_name): Take a
2995 type_instance_flags.
2996 (avr_address_class_name_to_type_flags): Return bool and take a
2997 type_instance_flags.
2998 * d-lang.c (build_d_types): Use type::set_instance_flags.
2999 * ft32-tdep.c (ft32_address_class_type_flags): Return
3000 type_instance_flags.
3001 (ft32_address_class_type_flags_to_name): Take a
3002 type_instance_flags.
3003 (ft32_address_class_name_to_type_flags): Return bool and take a
3004 type_instance_flags.
3005 (ft32_gdbarch_init): Use type::set_instance_flags.
3006 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3007 * gdbarch.h, gdbarch.c: Regenerate.
3008 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3009 (address_class_name_to_type_flags): Use type_instance_flags and
3010 bool.
3011 * gdbtypes.c (address_space_name_to_int)
3012 (address_space_int_to_name, make_qualified_type): Use
3013 type_instance_flags.
3014 (make_qualified_type): Use type_instance_flags and
3015 type::set_instance_flags.
3016 (make_type_with_address_space, make_cv_type, make_vector_type)
3017 (check_typedef): Use type_instance_flags.
3018 (recursive_dump_type): Cast type_instance_flags to unsigned for
3019 printing.
3020 (copy_type_recursive): Use type::set_instance_flags.
3021 (gdbtypes_post_init): Use type::set_instance_flags.
3022 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3023 <m_instance_flags>: ... this.
3024 <instance_flags, set_instance_flags>: New methods.
3025 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3026 (SET_TYPE_INSTANCE_FLAGS): New.
3027 (address_space_name_to_int, address_space_int_to_name)
3028 (make_type_with_address_space): Pass flags using
3029 type_instance_flags instead of int.
3030 * stabsread.c (cleanup_undefined_types_noname): Use
3031 type::set_instance_flags.
3032 * s390-tdep.c (s390_address_class_type_flags): Return
3033 type_instance_flags.
3034 (s390_address_class_type_flags_to_name): Take a
3035 type_instance_flags.
3036 (s390_address_class_name_to_type_flags): Return bool and take a
3037 type_instance_flags.
3038 * type-stack.c (type_stack::follow_types): Use
3039 type_instance_flags.
3040 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3041
27087b7f
TT
30422020-09-14 Tom Tromey <tromey@adacore.com>
3043
3044 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3045 * x86-tdep.c (x86_is_thunk_register_name)
3046 (x86_in_indirect_branch_thunk): Update.
3047 * sparc64-tdep.c (sparc64_fpu_register_names)
3048 (sparc64_cp0_register_names, sparc64_register_names)
3049 (sparc64_pseudo_register_names): Now const.
3050 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3051 cp0_registers_num>: Now const.
3052 * sparc-tdep.c (sparc_core_register_names)
3053 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3054 (sparc32_pseudo_register_names): Now const.
3055 (validate_tdesc_registers): Update.
3056 * rust-lang.c (rust_extensions): Now const.
3057 * p-lang.c (p_extensions): Now const.
3058 * objc-lang.c (objc_extensions): Now const.
3059 * nto-tdep.c (nto_thread_state_str): Now const.
3060 * moxie-tdep.c (moxie_register_names): Now const.
3061 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3062 Now const.
3063 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3064 (mips_linux_reg_names): Now const.
3065 (mips_gdbarch_init): Update.
3066 * microblaze-tdep.c (microblaze_register_names): Now const.
3067 * m68k-tdep.c (m68k_register_names): Now const.
3068 * m32r-tdep.c (m32r_register_names): Now const.
3069 * ia64-tdep.c (ia64_register_names): Now const.
3070 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3071 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3072 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3073 ymm_avx512_register_names, pkeys_register_names>: Now const.
3074 * i386-tdep.c (i386_register_names, i386_zmm_names)
3075 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3076 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3077 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3078 * f-lang.c (f_extensions): Now const.
3079 * d-lang.c (d_extensions): Now const.
3080 * csky-tdep.c (csky_register_names): Now const.
3081 * charset.c (default_charset_names, charset_enum): Now const.
3082 (_initialize_charset): Update.
3083 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3084 const.
3085 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3086 (bsd_uthread_solib_loaded): Update.
3087 (bsd_uthread_state): Now const.
3088 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3089 (amd64_ymm_avx512_names, amd64_ymmh_names)
3090 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3091 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3092 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3093 (amd64_dword_names): Now const.
3094 * agent.c (can_use_agent_enum): Now const.
3095 * ada-tasks.c (task_states, long_task_states): Now const.
3096 * ada-lang.c (known_runtime_file_name_patterns)
3097 (known_auxiliary_function_name_patterns, attribute_names)
3098 (standard_exc, ada_extensions): Now const.
3099
89806626
SM
31002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3101
3102 * bcache.h (struct bcache) <bcache>: Remove constructor.
3103 <m_hash_function, m_compare_function>: Remove.
3104 <~bcache>: Make virtual.
3105 <compare>: Remove static method, introduce virtual method.
3106 <default_hash>: Remove.
3107 <hash>: New virtual method.
3108 * bcache.c (bcache::expand_hash_table): Update.
3109 (bcache::insert): Update.
3110 (bcache::hash): New.
3111 (bcache::compare): Update comment and parameter names.
3112 * gdbtypes.c (types_deeply_equal): Update.
3113 * psymtab.h (struct psymbol_bcache): New struct.
3114 (class psymtab_storage) <psymtab_storage>: Make default.
3115 <psymbol_cache>: Change type to psymbol_bcache.
3116 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3117 (psymbol_hash): Change to...
3118 (psymbol_bcache::hash): ... this.
3119 (psymbol_compare): Change to...
3120 (psymbol_bcache::compare): ... this.
3121
677c92fe
SM
31222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3125 checking for initial lwp.
3126
3eba3a01
TT
31272020-09-14 Tom Tromey <tromey@adacore.com>
3128
3129 * m68k-tdep.c (m68k_extract_return_value): Use
3130 pointer_result_regnum.
3131 (m68k_store_return_value): Likewise.
3132 (m68k_reg_struct_return_p): Handle vectors and arrays.
3133 (m68k_return_value): Handle arrays.
3134 (m68k_svr4_return_value): Fix single-element aggregate handling.
3135 Handle long double. Adjust for embedded ABI.
3136 (m68k_svr4_init_abi): Set pointer_result_regnum.
3137 (m68k_embedded_init_abi): New function.
3138 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3139 (m68k_osabi_sniffer): New function.
3140 (_initialize_m68k_tdep): Register osabi sniffer.
3141 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3142 member.
3143
33f4dd48
SM
31442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3147 with gdb::unique_xmalloc_ptr<char>.
3148
8400a90d
SM
31492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * xml-support.h (xml_fetch_another): Change type to be a
3152 function_view.
3153 (xml_process_xincludes): Remove baton parameter.
3154 (xml_fetch_content_from_file): Change baton parameter to
3155 dirname.
3156 * xml-support.c (struct xinclude_parsing_data)
3157 <xinclude_parsing_data>: Remove baton parameter.
3158 <fetcher_baton>: Remove.
3159 (xinclude_start_include): Adjust.
3160 (xml_process_xincludes): Adjust.
3161 (xml_fetch_content_from_file): Replace baton parameter with
3162 dirname.
3163 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3164 (xml_init_syscalls_info): Use a lambda.
3165 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3166 (file_read_description_xml): Use a lambda.
3167 (fetch_available_features_from_target): Change baton parameter
3168 to target_ops.
3169 (target_read_description_xml): Use a lambda.
3170 (target_fetch_description_xml): Use a lambda.
3171 (string_read_description_xml): Update.
3172
04f5bab2
SM
31732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3176 uses with type::endianity_is_not_default.
3177
db558e34
SM
31782020-09-14 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * gdbtypes.h (struct type) <endianity_is_not_default,
3181 set_endianity_is_not_default>: New methods.
3182 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3183 type::endianity_is_not_default, change all write call sites to
3184 use type::set_endianity_is_not_default.
3185
22c4c60c
SM
31862020-09-14 Simon Marchi <simon.marchi@efficios.com>
3187
3188 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3189 uses with type::is_fixed_instance.
3190
9cdd0d12
SM
31912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * gdbtypes.h (struct type) <is_fixed_instance,
3194 set_is_fixed_instance>: New methods.
3195 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3196 write call sites to use type::set_is_fixed_instance.
3197
0becda7a
SM
31982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3201 uses with type::is_gnu_ifunc.
3202
03cc7249
SM
32032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3206 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3207 use type::set_is_gnu_ifunc.
3208
3f46044c
SM
32092020-09-14 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3212 uses with type::stub_is_supported.
3213
9baccff6
SM
32142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3217 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3218 use type::set_stub_is_supported.
3219
bd63c870
SM
32202020-09-14 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3223 uses with type::is_vector.
3224
2062087b
SM
32252020-09-14 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3228 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3229 use type::set_is_vector.
3230
a409645d
SM
32312020-09-14 Simon Marchi <simon.marchi@efficios.com>
3232
3233 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3234 uses with type::has_varargs.
3235
1d6286ed
SM
32362020-09-14 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3239 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3240 use type::set_has_varargs.
3241
7f9f399b
SM
32422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3245 uses with type::is_prototyped.
3246
27e69b7a
SM
32472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3250 New methods.
3251 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3252 call sites to use type::set_is_prototyped.
3253
d2183968
SM
32542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3257 uses with type::target_is_stub.
3258
8f53807e
SM
32592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3262 New methods.
3263 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3264 sites to use type::set_target_is_stub.
3265
e46d3488
SM
32662020-09-14 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * gdbtypes.h (TYPE_STUB): Remove, replace all
3269 uses with type::is_stub.
3270
b4b73759
SM
32712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3274 (TYPE_STUB): Use type::is_stub, change all write call sites to
3275 use type::set_is_stub.
3276
20ce4123
SM
32772020-09-14 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3280 type::has_no_signedness.
3281
15152a54
SM
32822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * gdbtypes.h (struct type) <has_no_signedness,
3285 set_has_no_signedness>: New methods.
3286 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3287 call sites to use type::set_has_no_signedness.
3288
c6d940a9
SM
32892020-09-14 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3292 type::is_unsigned.
3293
653223d3
SM
32942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3297 methods.
3298 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3299 sites to use type::set_is_unsigned.
3300
55ea94da 33012020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3302 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3303
e851246a
SM
3304 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3305 pointer and stack frame offset when unwinding.
55ea94da 3306
6791b117
PA
33072020-09-13 Pedro Alves <pedro@palves.net>
3308
3309 * NEWS: Document "-break-insert --qualified".
3310 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3311
77f2120b
PA
33122020-09-13 Pedro Alves <pedro@palves.net>
3313
3314 * linespec.c (classify_mtype, compare_msyms): Delete.
3315 (search_minsyms_for_name): Remove classification logic. Instead
3316 filter out trampoline symbols if we also found an external
3317 function of the same name.
3318
ed6a896c
JB
33192020-09-13 Joel Brobecker <brobecker@adacore.com>
3320
3321 * NEWS: Create a new section for the next release branch.
3322 Rename the section of the current branch, now that it has
3323 been cut.
3324
32aea73e
JB
33252020-09-13 Joel Brobecker <brobecker@adacore.com>
3326
3327 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3328 * version.in: Bump version to 11.0.50.DATE-git.
3329
8087c3fa
JB
33302020-09-12 Joel Brobecker <brobecker@adacore.com>
3331
3332 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3333
2a67f09d
FW
33342020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3335 Felix Willgerodt <Felix.Willgerodt@intel.com>
3336
3337 * gdbarch.sh: Added bfloat16 type.
3338 * gdbarch.c: Regenerated.
3339 * gdbarch.h: Regenerated.
3340 * gdbtypes.c (floatformats_bfloat16): New struct.
3341 (gdbtypes_post_init): Add builtin_bfloat16.
3342 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3343 (floatformats_bfloat16): New struct.
3344 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3345 (i386_ymm_type): Add field "v16_bfloat16"
3346 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3347 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3348 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3349 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3350 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3351 * features/i386/64bit-avx512.c: Regenerated.
3352 * features/i386/64bit-sse.xml: Add bfloat16 type.
3353 * features/i386/64bit-sse.c: Regenerated.
3354
1347d111
FW
33552020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3356
3357 * i386-tdep.c (i386_zmm_type): Fix field names.
3358 (i386_ymm_type): Fix field names.
3359
7a4e8e7d
TBA
33602020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3361
3362 * breakpoint.c: Fix typo in the help message of the
3363 "set breakpoint condition-evaluation" command.
3364
cf4ac4be
KR
33652020-09-10 Kamil Rytarowski <n54@gmx.com>
3366
3367 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3368 * (nbsd_nat_target::pid_to_exec_file)
3369 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3370 (nbsd_nat_target::post_startup_inferior)
3371 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3372 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3373 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3374 * (nbsd_thread_lister): Remove.
3375
f404573e
KR
33762020-09-10 Kamil Rytarowski <n54@gmx.com>
3377
3378 * fork-inferior.c (startup_inferior): Avoid double free.
3379
1ccb2c17
KR
33802020-09-10 Kamil Rytarowski <n54@gmx.com>
3381
3382 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3383 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3384
feedfcc7
KR
33852020-09-10 Kamil Rytarowski <n54@gmx.com>
3386
3387 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3388 * netbsd-nat.c: Include <sys/ptrace.h>.
3389 * (netbsd_nat::enable_proc_events): Add.
3390
c489f8c6
KR
33912020-09-10 Kamil Rytarowski <n54@gmx.com>
3392
3393 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3394 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3395 (netbsd_nat::for_each_thread): Add.
3396 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3397 "gdbsupport/common-debug.h".
3398 * (netbsd_nat::netbsd_thread_lister)
3399 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3400 (netbsd_nat::for_each_thread): Add.
3401
330662f6
KR
34022020-09-10 Kamil Rytarowski <n54@gmx.com>
3403
3404 * netbsd-nat.h: Include <unistd.h>.
3405 * (netbsd_nat::pid_to_exec_file): Add.
3406 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3407 * (netbsd_nat::pid_to_exec_file) Add.
3408
70b67307
KR
34092020-09-10 Kamil Rytarowski <n54@gmx.com>
3410
3411 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3412
99cf6da6
KR
34132020-09-10 Kamil Rytarowski <n54@gmx.com>
3414
3415 * netbsd-nat.h: New file.
3416 * netbsd-nat.c: Likewise.
3417
1b788fb6
TT
34182020-09-09 Tom Tromey <tromey@adacore.com>
3419
3420 * ada-lang.c (remove_extra_symbols): Do not increment when
3421 removing an element
3422
03b0a45f
TT
34232020-09-08 Tom Tromey <tromey@adacore.com>
3424
3425 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3426
3cae4447
TT
34272020-09-08 Tom Tromey <tromey@adacore.com>
3428
3429 PR win32/25302:
3430 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3431 (gdb_bfd_init_data): New function.
3432 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3433
7f08fd51
TBA
34342020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435
3436 * infrun.c (fetch_inferior_event): Use
3437 `switch_to_target_no_thread` to switch the target.
3438
3e6ff933
TT
34392020-09-06 Tom Tromey <tom@tromey.com>
3440
3441 * symfile.h (dwarf2_free_objfile): Don't declare.
3442
e56798df
AKS
34432020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3444
3445 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3446 to match 16 byte real/complex type generated by Flang compiler.
3447
8f5c6526
TV
34482020-09-03 Tom de Vries <tdevries@suse.de>
3449
3450 PR breakpoint/26546
3451 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3452 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3453
c5065df0
SM
34542020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * maint.c (index_digits): New function.
3457 (struct maint_print_section_data): Remove.
3458 (print_bfd_section_info): Remove print_data parameter, add arg
3459 and index_digits.
3460 (print_objfile_section_info): Likewise.
3461 (print_bfd_section_info_maybe_relocated): Likewise (plus
3462 objfile).
3463 (maintenance_info_sections): Adjust calls.
3464
02c6f3f1
TT
34652020-09-02 Tom Tromey <tromey@adacore.com>
3466
3467 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3468 for null pointers.
3469 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3470
ef5e5b0b
SM
34712020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * bcache.h (struct bcache) <insert>: Change type of `added` to
3474 pointer to bool.
3475 * bcache.c (bcache::insert): Likewise.
3476 * gdbtypes.c (check_types_worklist): Adjust.
3477 * psymtab.c (add_psymbol_to_bcache): Adjust.
3478
973695d6
KB
34792020-08-31 Kevin Buettner <kevinb@redhat.com>
3480
3481 * corelow.c (unordered_set): Include.
3482 (class core_target): Add field 'm_core_unavailable_mappings'.
3483 (core_target::build_file_mappings): Print only one warning
3484 per inaccessible file. Add unavailable/broken mappings
3485 to m_core_unavailable_mappings.
3486 (core_target::xfer_partial): Call...
3487 (core_target::xfer_memory_via_mappings): New method.
3488
264fc0e2
SM
34892020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3490
3491 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3492 type to bool.
3493
2de01bdb
SM
34942020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3495
3496 * dwarf2/read.c (struct field_info): Fix indentation.
3497
f3bd50f1
SM
34982020-08-31 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3501 ordering in comment.
3502 * frame.c (frame_id_eq): Fix indentation.
3503
22b9b4b0
SL
35042020-08-31 Scott Linder <scott@scottlinder.com>
3505 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3508 inline frame ids in outer frame.
3509
84154d16
SM
35102020-08-31 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3513 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3514 (outer_frame_id): Use FID_STACK_OUTER instead of
3515 FID_STACK_INVALID.
3516 (frame_id_p): Don't check for outer_frame_id.
3517
8efaf6b3
SM
35182020-08-31 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3521 regnum/frame in value. Call allocate_value_lazy.
3522 * frame.c (frame_unwind_register_value): Use
3523 val_print_not_saved.
3524
fe1fe7ea
SM
35252020-08-31 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3528
f7c7700d
PA
35292020-08-29 Pedro Alves <pedro@palves.net>
3530
3531 * progspace.c (print_program_space): Use all_inferiors. Switch to
3532 the inferior before calling target_pid_to_str.
3533
e0814aae
TT
35342020-08-28 Tom Tromey <tom@tromey.com>
3535
3536 * xcoffread.c (xcoff_end_psymtab): Update comment.
3537 * dbxread.c (dbx_end_psymtab): Update comment.
3538
626d2320
TV
35392020-08-28 Tom de Vries <tdevries@suse.de>
3540
3541 PR breakpoint/26544
3542 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3543 event_location.
3544 (create_breakpoint): Same.
3545 (base_breakpoint_decode_location): Same.
3546 (bkpt_create_sals_from_location): Same.
3547 (bkpt_decode_location): Same.
3548 (bkpt_probe_create_sals_from_location): Same.
3549 (bkpt_probe_decode_location): Same.
3550 (tracepoint_create_sals_from_location): Same.
3551 (tracepoint_decode_location): Same.
3552 (tracepoint_probe_decode_location): Same.
3553 (strace_marker_create_sals_from_location): Same.
3554 (strace_marker_decode_location): Same.
3555 (create_sals_from_location_default): Same.
3556 (decode_location_default): Same.
3557 * breakpoint.h (struct breakpoint_ops): Same.
3558 (create_breakpoint): Same.
3559 * linespec.h (decode_line_full): Same.
3560 * linespec.c (decode_line_full): Same. Throw error if
3561 result.size () == 0.
3562
df631783
PA
35632020-08-27 Pedro Alves <pedro@palves.net>
3564
3565 PR gdb/26524
3566 * breakpoint.c (until_break_fsm) <location_breakpoint,
3567 caller_breakpoint>: Delete fields.
3568 <breakpoints>: New field.
3569 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3570 two individual breakpoints.
3571 (until_break_fsm::should_stop): Loop over breakpoints in the
3572 breakpoint vector.
3573 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3574 vector.
3575 (until_break_command): Handle location expanding into multiple
3576 sals.
3577
b2b38aa4
PA
35782020-08-27 Pedro Alves <pedro@palves.net>
3579
3580 PR gdb/26523
3581 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3582 bp_until breakpoints user-specified locations. Update intro
3583 comment.
3584
b886559f
SM
35852020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3588 gdb_bfd_sections): New.
3589 * maint.c (print_bfd_section_info): Change param type to
3590 maint_print_section_data.
3591 (print_objfile_section_info): Likewise.
3592 (print_bfd_section_info_maybe_relocated): Likewise.
3593 (maintenance_info_sections): Use gdb_bfd_sections.
3594
4c6e63bf
SV
35952020-08-25 Shahab Vahedi <shahab@synopsys.com>
3596
3597 * MAINTAINERS: Add ARC target and maintainer.
3598
8d7f0635
AK
35992020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3600
3601 * configure.tgt: ARC support for GNU/Linux.
3602 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3603 * arc-linux-tdep.c: New file.
3604 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3605 * arc-tdep.c (arc_write_pc): Use it.
3606
fdd8731b
SV
36072020-08-25 Shahab Vahedi <shahab@synopsys.com>
3608
3609 * arc-tdep.c (arc_check_for_hardware_loop): New.
3610 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3611
22459524
SV
36122020-08-25 Shahab Vahedi <shahab@synopsys.com>
3613
3614 * arc-tdep.h: Include "gdbarch.h".
3615
995d3a19
SV
36162020-08-25 Shahab Vahedi <shahab@synopsys.com>
3617
3618 * arch/arc.h
3619 (arc_gdbarch_features): New class to stir the selection of target XML.
3620 (arc_create_target_description): Use FEATURES to choose XML target.
3621 (arc_lookup_target_description): Use arc_create_target_description
3622 to create _new_ target descriptions or return the already created
3623 ones if the FEATURES is the same.
3624 * arch/arc.c: Implementation of prototypes described above.
3625 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3626 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3627 * arc-tdep.c (*_feature_name): Make feature names consistent.
3628 (arc_register_feature): A new struct to hold information about
3629 registers of a particular target/feature.
3630 (arc_check_tdesc_feature): Check if XML provides registers in
3631 compliance with ARC_REGISTER_FEATURE structs.
3632 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3633 (determine_*_reg_feature_set): Which feature name to look for.
3634 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3635 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3636 to expected ISA enums to be used in arc_gdbarch_features structs.
3637 * features/Makefile (FEATURE_XMLFILES): Add new files.
3638 * gdb/features/arc/v1-aux.c: New file.
3639 * gdb/features/arc/v1-aux.xml: Likewise.
3640 * gdb/features/arc/v1-core.c: Likewise.
3641 * gdb/features/arc/v1-core.xml: Likewise.
3642 * gdb/features/arc/v2-aux.c: Likewise.
3643 * gdb/features/arc/v2-aux.xml: Likewise.
3644 * gdb/features/arc/v2-core.c: Likewise.
3645 * gdb/features/arc/v2-core.xml: Likewise.
3646 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3647
3945d2d7
GM
36482020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3649 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 PR m2/26372
fc5d6901 3652 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3653 an assert. Remove single element array indexing pattern as the
3654 MULTI_SUBSCRIPT support will handle this case too.
3655
2677f2d3
SM
36562020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3657
3658 * value.h (valprint_check_validity): Move declaration from
3659 here...
3660 * valprint.h (valprint_check_validity): ... to here.
3661
c426fddb
SM
36622020-08-24 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * debug.h: New file.
3665 * debug.c (debug_prefixed_vprintf): New function.
3666 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3667 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3668
1eb8556f
SM
36692020-08-24 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * infrun.h (infrun_debug_printf_1): New function declaration.
3672 (infrun_debug_printf): New macro.
3673 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3674 throughout.
3675 (infrun_debug_printf): New function.
3676 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3677 (handle_jit_event): Likewise.
3678
b8fff44e
MW
36792020-08-21 Mark Wielaard <mark@klomp.org>
3680
3681 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3682
d19c3068
SM
36832020-08-22 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * frame.c (enum class frame_id_status): New.
3686 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3687 (fprintf_frame): Update.
3688 (compute_frame_id): Set frame id status to "computing" on entry.
3689 Set it back to "not_computed" on failure and to "computed" on
3690 success.
3691 (get_frame_id): Assert the frame id is not being computed.
3692 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3693 (create_new_frame): Likewise.
3694 (frame_cleanup_after_sniffer): Update assert.
3695
b70e516e
SM
36962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3697
3698 * regcache.c (pid_ptid_regcache_map): New type.
3699 (target_ptid_regcache_map): Remove.
3700 (target_pid_ptid_regcache_map): New type.
3701 (regcaches): Change type to target_pid_ptid_regcache_map.
3702 (get_thread_arch_aspace_regcache): Update.
3703 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3704 case.
3705 (regcaches_size): Update.
3706 (regcache_count): Update.
3707 (registers_changed_ptid_target_pid_test): New.
3708 (_initialize_regcache): Register new test.
3709
cdd9148a
SM
37102020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * regcache.c (regcache_count): New.
3713 (struct regcache_test_data): New.
3714 (regcache_test_data_up): New.
3715 (populate_regcaches_for_test): New.
3716 (regcaches_test): Remove.
3717 (get_thread_arch_aspace_regcache_test): New.
3718 (registers_changed_ptid_all_test): New.
3719 (registers_changed_ptid_target_test): New.
3720 (registers_changed_ptid_target_ptid_test): New.
3721 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3722 (_initialize_regcache): Register new tests.
3723
dd125343
SM
37242020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3727 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3728 gdbarch and aspace parameter. Use current inferior's aspace.
3729 Validate regcache's arch value.
3730 (regcaches_test): Update.
3731
3ee93972
SM
37322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3733
3734 * regcache.c (regcaches_test): Call registers_changed.
3735
33bf4c5c
TBA
37362020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737
3738 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3739
c2fd7fae
AKS
37402020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3741
3742 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3743 to find the end of prologue for flang compiled binaries.
3744 * arm-tdep.c (arm_skip_prologue): Likewise.
3745 * i386-tdep.c (i386_skip_prologue): Likewise.
3746 * producer.c (producer_is_llvm): New function.
3747 (producer_parsing_tests): Added new tests for clang/flang.
3748 * producer.h (producer_is_llvm): New declaration.
3749
9327494e
SM
37502020-08-18 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * linux-nat.c (linux_nat_debug_printf): New function.
3753 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3754
d138725a
AM
37552020-08-18 Aaron Merey <amerey@redhat.com>
3756
3757 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3758 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3759 (CLIBS): Add DEBUGINFOD_LIBS.
3760
f9b11e6b
ST
37612020-08-17 Sergei Trofimovich <siarheit@google.com>
3762
3763 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3764 'gdbarch_num_regs'.
3765
3ae7ab99
TT
37662020-08-17 Tom Tromey <tromey@adacore.com>
3767
3768 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3769 ada_get_decoded_value returns NULL.
3770
b017825f
TT
37712020-08-17 Tom Tromey <tromey@adacore.com>
3772
3773 * python/py-inferior.c (infpy_search_memory): Use
3774 gdb_py_object_from_ulongest.
3775 * python/py-infevents.c (create_inferior_call_event_object)
3776 (create_memory_changed_event_object): Use
3777 gdb_py_object_from_ulongest.
3778 * python/py-linetable.c (ltpy_entry_get_pc): Use
3779 gdb_py_object_from_ulongest.
3780
7635cf79
SM
37812020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3782
3783 * loc.c (class symbol_needs_eval_context): Fix indentation.
3784
f54be24b
SM
37852020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3786
3787 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3788 bool.
3789
53d5a2a5
TV
37902020-08-17 Tom de Vries <tdevries@suse.de>
3791
3792 PR gdb/26393
3793 * gdbtypes.c (dump_dynamic_prop): New function.
3794 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3795
547ce8f0
TV
37962020-08-15 Tom de Vries <tdevries@suse.de>
3797
3798 PR backtrace/26390
3799 * stack.c (print_frame_args): Temporarily set the selected
3800 frame to FRAME while printing the frame's arguments.
3801
6ea815e7
PFC
38022020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3803
3804 PR breakpoints/26385
3805 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3806 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3807
6e562fa3
PFC
38082020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3809
3810 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3811 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3812 and >= to check return value instead of == -1 and != -1.
3813
d369b608
SM
38142020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 * utils.h (class gdb_argv) <as_array_view>: New method.
3817 * utils.c (gdb_argv_as_array_view_test): New.
3818 (_initialize_utils): Register selftest.
3819 * maint.c (maintenance_selftest): Use the new method.
3820
b31488a3
KR
38212020-08-13 Kamil Rytarowski <n54@gmx.com>
3822
3823 * target.h (supports_dumpcore, dumpcore): New
3824 function declarations.
3825 * target.c (supports_dumpcore, dumpcore): New
3826 functions.
3827 * target-delegates.c: Rebuild.
3828 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3829 and target_dumpcore ().
3830
002a3166
AM
38312020-08-13 Aaron Merey <amerey@redhat.com>
3832
3833 * debuginfod-support.c: Replace global variables with user_data.
3834
ece5bc8a
SM
38352020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * maint.c (maintenance_selftest): Split args and pass array_view
3838 to run_tests.
3839
6d8a0a5e
LM
38402020-08-12 Luis Machado <luis.machado@linaro.org>
3841
3842 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3843 type's length.
3844 Use %s and pulongest to print the length.
3845
7cf663a9
PA
38462020-08-12 Pedro Alves <palves@redhat.com>
3847
3848 * NEWS: Move "Multi-target debugging support" item to the
3849 "Changes since GDB 9" section.
3850
27c7b875
PA
38512020-08-12 Pedro Alves <palves@redhat.com>
3852
3853 PR gdb/26336
3854 * progspace.c (program_space::remove_objfile): Invalidate the
3855 frame cache.
3856
1796a2a1
TV
38572020-08-11 Tom de Vries <tdevries@suse.de>
3858
3859 * MAINTAINERS: Mark ms1 as deleted.
3860
f8e3fe0d
LM
38612020-08-10 Luis Machado <luis.machado@linaro.org>
3862
3863 PR gdb/26310
3864
3865 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3866 act accordingly.
3867 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3868 movz/str/stur/stp skipping behavior.
3869
cc308722
LM
38702020-08-10 Luis Machado <luis.machado@linaro.org>
3871
3872 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3873 struct user_sve_header instead of struct sve_context.
3874
041d9819
SM
38752020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * read.h (dwarf2_fetch_die_loc_sect_off,
3878 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3879 `void *` parameter with function_view.
3880 * read.c (dwarf2_fetch_die_loc_sect_off,
3881 dwarf2_fetch_die_loc_cu_off): Likewise.
3882 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3883 (per_cu_dwarf_call): Adjust.
3884 (get_frame_address_in_block_wrapper): Remove.
3885 (indirect_synthetic_pointer): Adjust.
3886 (get_ax_pc): Remove.
3887 (dwarf2_compile_expr_to_ax): Adjust.
3888
38f8aa06
TV
38892020-08-08 Tom de Vries <tdevries@suse.de>
3890
3891 PR build/26344
3892 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3893 constructor.
3894 * regcache.c (get_thread_arch_aspace_regcache): Same.
3895
a52b3ae2
TT
38962020-08-07 Tom Tromey <tromey@adacore.com>
3897
3898 * ravenscar-thread.c
3899 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3900 New method.
3901 (ravenscar_thread_target::wait): Check
3902 runtime_initialized.
3903 (ravenscar_thread_target::prepare_to_store)
3904 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3905 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3906 (ravenscar_thread_target::stopped_by_watchpoint)
3907 (ravenscar_thread_target::stopped_data_address)
3908 (ravenscar_thread_target::core_of_thread): Use
3909 scoped_restore_current_thread and
3910 set_base_thread_from_ravenscar_task.
3911
0e29517d
TT
39122020-08-07 Tom Tromey <tromey@adacore.com>
3913
3914 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3915
592f9bd7
TT
39162020-08-07 Tom Tromey <tromey@adacore.com>
3917
3918 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3919 update_inferior_ptid before update_thread_list.
3920 (temporarily_change_regcache_ptid): New class.
3921 (ravenscar_thread_target::fetch_registers)
3922 (ravenscar_thread_target::store_registers)
3923 (ravenscar_thread_target::prepare_to_store): Use base thread when
3924 forwarding operation.
3925
39e2018a
TT
39262020-08-07 Tom Tromey <tromey@adacore.com>
3927
3928 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3929 "is_pid" case.
3930
2080266b
TT
39312020-08-07 Tom Tromey <tromey@adacore.com>
3932
3933 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3934 New methods.
3935 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3936 first.
3937 (ravenscar_thread_target::add_thread): Rename from
3938 ravenscar_add_thread.
3939 (ravenscar_thread_target::update_thread_list): Use a lambda.
3940 (ravenscar_thread_target::xfer_partial): New method.
3941
78c02f21
TT
39422020-08-07 Tom Tromey <tromey@adacore.com>
3943
3944 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3945 gdb::function_view.
3946 (iterate_over_live_ada_tasks): Change type of argument.
3947 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3948 of argument.
3949
d5d833af
TT
39502020-08-07 Tom Tromey <tromey@adacore.com>
3951
3952 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3953 Remove.
3954 (ravenscar_thread_target::extra_thread_info): Remove.
3955 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3956 defer to target beneath for non-Ravenscar threads.
3957
a8ac85bb
TT
39582020-08-07 Tom Tromey <tromey@adacore.com>
3959
3960 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3961 get_base_thread_from_ravenscar_task>: Now methods.
3962 <m_cpu_map>: New member.
3963 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3964 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3965 (ravenscar_thread_target::task_is_currently_active): Update.
3966 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3967 Now a method.
3968 (ravenscar_thread_target::add_active_thread): Put initial thread
3969 into the m_cpu_map.
3970
550ab58d
TT
39712020-08-07 Tom Tromey <tromey@adacore.com>
3972
3973 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3974 event_ptid.
3975
e9546579
TT
39762020-08-07 Tom Tromey <tromey@adacore.com>
3977
3978 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3979 runtime_initialized.
3980
3d4470e5
TT
39812020-08-07 Tom Tromey <tromey@adacore.com>
3982
3983 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3984 add_active_thread.
3985 (ravenscar_thread_target::add_active_thread): Now public.
3986 (ravenscar_inferior_created): Call add_active_thread after pushing
3987 the target.
3988
888bdb2b
SM
39892020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3990
3991 * regcache.c (ptid_regcache_map): New type.
3992 (target_ptid_regcache_map): New type.
3993 (regcaches): Change type to target_ptid_regcache_map.
3994 (get_thread_arch_aspace_regcache): Update to regcaches' new
3995 type.
3996 (regcache_thread_ptid_changed): Likewise.
3997 (registers_changed_ptid): Likewise.
3998 (regcaches_size): Likewise.
3999 (regcaches_test): Update.
4000 (regcache_thread_ptid_changed): Update.
4001 * regcache.h (regcache_up): New type.
4002 * gdbsupport/ptid.h (hash_ptid): New struct.
4003
b161a60d
SM
40042020-08-07 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * observable.h (thread_ptid_changed): Add parameter
4007 `process_stratum_target *`.
4008 * infrun.c (infrun_thread_ptid_changed): Add parameter
4009 `process_stratum_target *` and use it.
4010 (selftests): New namespace.
4011 (infrun_thread_ptid_changed): New function.
4012 (_initialize_infrun): Register selftest.
4013 * regcache.c (regcache_thread_ptid_changed): Add parameter
4014 `process_stratum_target *` and use it.
4015 (regcache_thread_ptid_changed): New function.
4016 (_initialize_regcache): Register selftest.
4017 * thread.c (thread_change_ptid): Pass target to
4018 thread_ptid_changed observable.
4019
d2854d8d
CT
40202020-08-06 Caroline Tice <cmtice@google.com>
4021
fe4c3d43
SM
4022 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4023 (struct dwp_sections): Update field comments. Add loclists and
4024 rnglists fields.
4025 (struct virtual_v2_dwo_sections): Rename struct to
4026 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4027 size & offset fields for loclists and rnglists.
4028 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4029 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4030 skipping dummy type units.
4031 (create_dwp_hash_table): Update the large comment above the function to
4032 discuss Version 5 DWP files as well, with references. Update all the
4033 version checks in the function to check for version 5 as well. Add new
4034 section at the end to create dwp hash table for version 5.
4035 (create_dwp_v2_section): Rename function to
4036 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4037 Add V5 to error message text.
4038 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4039 into calls to create_dwp_v2_or_v5_section.
4040 (create_dwo_unit_in_dwp_v5): New function.
4041 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4042 check for version2; add else clause to handle version 5.
4043 (open_and_init_dwo_file): Add code to check dwarf version & only call
4044 create_debug_types_hash_table (with sections.types) if version is not 5;
4045 else call create_debug_type_hash_table, with sections.info.
4046 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4047 version 5.
4048 (dwarf2_locate_v5_dwp_sections): New function.
4049 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4050 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4051
159ed7d9
SM
40522020-08-06 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * regcache.h (class regcache): Remove friend
4055 registers_changed_ptid.
4056 <regcache_thread_ptid_changed>: Remove.
4057 <regcaches>: Remove.
4058 * regcache.c (regcache::regcaches): Rename to...
4059 (regcaches): ... this. Make static.
4060 (get_thread_arch_aspace_regcache): Update.
4061 (regcache::regcache_thread_ptid_changed): Rename to...
4062 (regcache_thread_ptid_changed): ... this. Update.
4063 (class regcache_access): Remove.
4064 (regcaches_test): Update.
4065 (_initialize_regcache): Update.
4066 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4067 <forward_list>.
4068
174981ae
SM
40692020-08-06 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * regcache.h (class regcache) <current_regcache>: Rename to...
4072 <regcaches>: ... this. Move doc here.
4073 * regcache.c (regcache::current_regcache) Rename to...
4074 (regcache::regcaches): ... this. Move doc to header.
4075 (get_thread_arch_aspace_regcache): Update.
4076 (regcache::regcache_thread_ptid_changed): Update.
4077 (registers_changed_ptid): Update.
4078 (class regcache_access) <current_regcache_size>: Rename to...
4079 <regcaches_size>: ... this.
4080 (current_regcache_test): Rename to...
4081 (regcaches_test): ... this.
4082 (_initialize_regcache): Update.
4083
ed908db6
VC
40842020-08-06 Victor Collod <vcollod@nvidia.com>
4085
4086 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4087
b5582ab7
KB
40882020-08-05 Kevin Buettner <kevinb@redhat.com>
4089
4090 * corelow.c (core_target::build_file_mappings): Don't output
4091 null pathname in warning.
4092
ea946b86
SM
40932020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4096 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4097 gdb.dwarf2/dw2-single-line-discriminators.exp,
4098 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4099
57d02173
TT
41002020-08-05 Tom Tromey <tromey@adacore.com>
4101
4102 PR rust/26197:
4103 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4104 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4105 Fix off-by-one and type size errors in ordinary case.
4106
5555c86d
TV
41072020-08-05 Tom de Vries <tdevries@suse.de>
4108
4109 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4110 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4111
97916bfe
SM
41122020-08-04 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * frame.h (frame_id_p): Return bool.
4115 (frame_id_artificial_p): Return bool.
4116 (frame_id_eq): Return bool.
4117 (has_stack_frames): Return bool.
4118 (get_selected_frame): Fix typo in comment.
4119 (get_frame_pc_if_available): Return bool.
4120 (get_frame_address_in_block_if_available): Return bool.
4121 (get_frame_func_if_available): Return bool.
4122 (read_frame_register_unsigned): Return bool.
4123 (get_frame_register_bytes): Return bool.
4124 (safe_frame_unwind_memory): Return bool.
4125 (deprecated_frame_register_read): Return bool.
4126 (frame_unwinder_is): Return bool.
4127 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4128 bool.
4129 <this_id::p>: Likewise.
4130 <prev_p>: Likewise.
4131 (frame_stash_add): Return bool.
4132 (get_frame_id): Use bool.
4133 (frame_id_build_special) Use bool.
4134 (frame_id_build_unavailable_stack): Use bool.
4135 (frame_id_build): Use bool.
4136 (frame_id_p): Return bool, use true/false instead of 1/0.
4137 (frame_id_artificial_p): Likewise.
4138 (frame_id_eq): Likewise.
4139 (frame_id_inner): Likewise.
4140 (get_frame_func_if_available): Likewise.
4141 (read_frame_register_unsigned): Likewise.
4142 (deprecated_frame_register_read): Likewise.
4143 (get_frame_register_bytes): Likewise.
4144 (has_stack_frames): Likewise.
4145 (inside_main_func): Likewise.
4146 (inside_entry_func): Likewise.
4147 (get_frame_pc_if_available): Likewise.
4148 (get_frame_address_in_block_if_available): Likewise.
4149 (frame_unwinder_is): Likewise.
4150 (safe_frame_unwind_memory): Likewise.
4151 (frame_unwind_arch): Likewise.
4152
fedfee88
SM
41532020-08-04 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4156 type to cached_copy_status.
4157 (fprintf_frame): Adjust.
4158 (get_frame_func_if_available): Adjust.
4159 (frame_cleanup_after_sniffer): Adjust.
4160
6cfa9b59
MW
41612020-08-04 Mark Wielaard <mark@klomp.org>
4162
4163 * MAINTAINERS (Write After Approval): Update email address.
4164
66d6346b
SM
41652020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4166
4167 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4168 dynamic_prop::const_val.
4169
8a6d5e35
SM
41702020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4171
4172 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4173 dynamic_prop::kind.
4174
51d6067d
SM
41752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4178
b26e2ae7
JM
41792020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4180
4181 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4182
39791af2
JM
41832020-08-04 Weimin Pan <weimin.pan@oracle.com>
4184 Jose E. Marchesi <jose.marchesi@oracle.com>
4185
4186 * configure.tgt: Add entry for bpf-*-*.
4187 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4188 (ALLDEPFILES): Add bpf-tdep.c.
4189 * bpf-tdep.c: New file.
4190 * MAINTAINERS: Add bpf target and maintainer.
4191 * NEWS: Mention the support for the new target.
4192
521894aa
TV
41932020-08-04 Tom de Vries <tdevries@suse.de>
4194
4195 PR symtab/23270
4196 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4197 Error.
4198
5d6356e9
JB
41992020-08-03 John Baldwin <jhb@FreeBSD.org>
4200
4201 * syscalls/freebsd.xml: Regenerate.
4202
0cf82b81
JB
42032020-08-03 John Baldwin <jhb@FreeBSD.org>
4204
4205 * syscalls/update-freebsd.sh: Fix usage and year range.
4206
8f34b746
TV
42072020-08-03 Tom de Vries <tdevries@suse.de>
4208
4209 PR symtab/26333
4210 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4211 DW_LNE_lo_user/DW_LNE_hi_user range.
4212
5e500d33
SM
42132020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4214
4215 PR ada/26318
4216 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4217 kind.
4218
78319c15
TBA
42192020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4220
4221 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4222
4c55e970
TBA
42232020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4224
4225 * breakpoint.c (set_breakpoint_condition): Update the condition
4226 expressions after checking that the input condition string parses
4227 successfully and does not contain junk at the end.
4228
1e620590
TBA
42292020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4230
4231 * breakpoint.c (set_breakpoint_condition): Update the
4232 condition string after parsing the new condition successfully.
4233
c8693053
RO
42342020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4235
4236 * proc-api.c (_STRUCTURED_PROC): Don't define.
4237 * proc-events.c: Likewise.
4238 * proc-flags.c: Likewise.
4239 * proc-why.c: Likewise.
4240 * procfs.c: Likewise.
4241
4242 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4243 * configure, config.in: Regenerate.
4244
5a99adb8
TV
42452020-07-30 Tom de Vries <tdevries@suse.de>
4246
4247 PR build/26320
4248 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4249 m_red/m_green/m_blue in a union.
4250
8ba83e91
TV
42512020-07-29 Tom de Vries <tdevries@suse.de>
4252
4253 PR tdep/26280
4254 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4255
f75a0693
AB
42562020-07-28 Tom Tromey <tromey@adacore.com>
4257
4258 PR symtab/26270:
4259 * symtab.h (find_pc_partial_function_sym): Declare.
4260 * cli/cli-cmds.c (disassemble_command): Use
4261 find_pc_partial_function_sym. Check asm_demangle.
4262 * blockframe.c (cache_pc_function_sym): New global.
4263 (cache_pc_function_name): Remove.
4264 (clear_pc_function_cache): Update.
4265 (find_pc_partial_function_sym): New function, from
4266 find_pc_partial_function.
4267 (find_pc_partial_function): Rewrite using
4268 find_pc_partial_function_sym.
4269
16f3242c
TT
42702020-07-28 Tom Tromey <tromey@adacore.com>
4271
4272 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4273 help. Add usage.
4274
4888741a
TT
42752020-07-28 Tom Tromey <tromey@adacore.com>
4276
4277 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4278 <DW_OP_GNU_variable_value>: Cast to address type.
4279
4d46f402
KR
42802020-07-28 Kamil Rytarowski <n54@gmx.com>
4281
4282 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4283 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4284 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4285 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4286 (nbsd_get_siginfo_type): New.
4287 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4288 (_initialize_nbsd_tdep): New.
4289
d70f978b
L
42902020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4291
4292 PR binutils/26301
4293 * configure: Regenerated.
4294
377170fa
L
42952020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4296
4297 PR binutils/26301
4298 * configure: Regenerated.
4299
43d5901d
AB
43002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4301
4302 * python/py-frame.c: Remove 'user-regs.h' include.
4303 (frapy_read_register): Rewrite to make use of
4304 gdbpy_parse_register_id.
4305 * python/py-registers.c (gdbpy_parse_register_id): New function,
4306 moved here from python/py-unwind.c. Updated the return type, and
4307 also accepts register descriptor objects.
4308 * python/py-unwind.c: Remove 'user-regs.h' include.
4309 (pyuw_parse_register_id): Moved to python/py-registers.c.
4310 (unwind_infopy_add_saved_register): Update to use
4311 gdbpy_parse_register_id.
4312 (pending_framepy_read_register): Likewise.
4313 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4314
14fa8fb3
AB
43152020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4316
4317 * python/py-registers.c: Add 'user-regs.h' include.
4318 (register_descriptor_iter_find): New function.
4319 (register_descriptor_iterator_object_methods): New static global
4320 methods array.
4321 (register_descriptor_iterator_object_type): Add pointer to methods
4322 array.
4323
ddce1758
JB
43242020-07-27 John Baldwin <jhb@FreeBSD.org>
4325
4326 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4327 for all architectures on FreeBSD 11.3 and later.
4328
a4089f52
TT
43292020-07-27 Tom Tromey <tromey@adacore.com>
4330
4331 * gcore.h (load_corefile): Don't declare.
4332
95420d30
TV
43332020-07-27 Tom de Vries <tdevries@suse.de>
4334
4335 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4336 * config.in: Regenerate.
4337 * configure: Regenerate.
4338
05a6b8c2
EZ
43392020-07-26 Eli Zaretskii <eliz@gnu.org>
4340
4341 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4342 ws2tcpip.h. When checking whether socklen_t type is defined, use
4343 ws2tcpip.h if it is available and sys/socket.h isn't.
4344 * configure: Regenerate.
4345 * config.in: Regenerate.
4346
e79eb02f
AB
43472020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 PR fortran/23051
4350 PR fortran/26139
4351 * valops.c (value_ind): Pass address to
4352 readjust_indirect_value_type.
4353 * value.c (readjust_indirect_value_type): Make parameter
4354 non-const, and add extra address parameter. Resolve original type
4355 before using it.
4356 * value.h (readjust_indirect_value_type): Update function
4357 signature and comment.
4358
876518dd
TV
43592020-07-25 Tom de Vries <tdevries@suse.de>
4360
4361 PR symtab/26243
4362 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4363 entries.
4364
f6720b1c
AM
43652020-07-24 Aaron Merey <amerey@redhat.com>
4366
4367 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4368 * configure: Rebuild.
4369
513487e1
KB
43702020-07-23 Kevin Buettner <kevinb@redhat.com>
4371
4372 PR corefiles/26294
4373 * corelow.c (_initialize_corelow): Add period to help text
4374 for "maintenance print core-file-backed-mappings".
4375
e7bc9db8
PA
43762020-07-23 Pedro Alves <pedro@palves.net>
4377
4378 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4379 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4380 meanwhile.
4381 * frame.c (frame_cache_generation, get_frame_cache_generation):
4382 New.
4383 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4384 (get_prev_frame_if_no_cycle): On exception, don't touch
4385 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4386 * frame.h (get_frame_cache_generation): Declare.
4387
90fcc466
TV
43882020-07-23 Tom de Vries <tdevries@suse.de>
4389
4390 PR tui/26282
4391 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4392 New default constructor.
4393
78344df7
AB
43942020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4397 exclude non-statement entries.
4398
b089853a
KB
43992020-07-22 Kevin Buettner <kevinb@redhat.com>
4400
4401 * NEWS (New commands): Mention new command
4402 "maintenance print core-file-backed-mappings".
4403
09c2f5d4
KB
44042020-07-22 Kevin Buettner <kevinb@redhat.com>
4405
4406 * corelow.c (gdbcmd.h): Include.
4407 (core_target::info_proc_mappings): New method.
4408 (get_current_core_target): New function.
4409 (maintenance_print_core_file_backed_mappings): New function.
4410 (_initialize_corelow): Add core-file-backed-mappings to
4411 "maint print" commands.
4412
9c5ec5c2 44132020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4414
9c5ec5c2
KB
4415 * linux-tdep.c (dump_note_entry_p): New function.
4416 (linux_dump_mapping_p_ftype): New typedef.
4417 (linux_find_memory_regions_full): Add new parameter,
4418 should_dump_mapping_p.
4419 (linux_find_memory_regions): Adjust call to
4420 linux_find_memory_regions_full.
4421 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4422 call to linux_find_memory_regions_full.
4423
db082f59
KB
44242020-07-22 Kevin Buettner <kevinb@redhat.com>
4425
4426 * corelow.c (solist.h, unordered_map): Include.
4427 (class core_target): Add field m_core_file_mappings and
4428 method build_file_mappings.
4429 (core_target::core_target): Call build_file_mappings.
4430 (core_target::~core_target): Free memory associated with
4431 m_core_file_mappings.
4432 (core_target::build_file_mappings): New method.
4433 (core_target::xfer_partial): Use m_core_file_mappings
4434 for memory transfers.
4435 * linux-tdep.c (linux_read_core_file_mappings): New
4436 function.
4437 (linux_core_info_proc_mappings): Rewrite to use
4438 linux_read_core_file_mappings.
4439 (linux_init_abi): Register linux_read_core_file_mappings.
4440
7e183d27
KB
44412020-07-22 Kevin Buettner <kevinb@redhat.com>
4442
4443 * arch-utils.c (default_read_core_file_mappings): New function.
4444 * arch-utils.c (default_read_core_file_mappings): Declare.
4445 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4446 * gdbarch.h, gdbarch.c: Regenerate.
4447
2735d421
KB
44482020-07-22 Kevin Buettner <kevinb@redhat.com>
4449
4450 PR corefiles/25631
4451 * corelow.c (core_target:xfer_partial): Revise
4452 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4453 case after first checking the stratum beneath the core
4454 target.
4455 (has_all_memory): Return true.
4456 * target.c (raw_memory_xfer_partial): Revise comment
4457 regarding use of has_all_memory.
4458
e56cb451
KB
44592020-07-22 Kevin Buettner <kevinb@redhat.com>
4460
4461 * exec.h (section_table_xfer_memory): Revise declaration,
4462 replacing section name parameter with an optional callback
4463 predicate.
4464 * exec.c (section_table_xfer_memory): Likewise.
4465 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4466 of section_table_xfer_memory.
4467
32fa152e
TT
44682020-07-22 Tom Tromey <tromey@adacore.com>
4469
4470 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4471 lookup_symbol_search_name.
4472
a67a1c41
AB
44732020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4476 redundant local variable.
4477 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4478 reference, not pointer, update code accordingly.
4479
a7b4ff4f
SM
44802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4481 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4482
4483 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4484 * jit.c (jit_breakpoint_re_set_internal): Use the
4485 `skip_jit_symbol_lookup` field.
4486
2340e834
SM
44872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4488 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4489
4490 * jit.c (jit_read_descriptor): Define the descriptor address once,
4491 use twice.
4492 (jit_breakpoint_deleted): Move the declaration of the loop variable
4493 `iter` into the loop header.
4494 (jit_breakpoint_re_set_internal): Move the declaration of the local
4495 variable `objf_data` to the first point of definition.
4496 (jit_event_handler): Move the declaration of local variables
4497 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4498 Rename `objf` to `jited`.
4499
c1072906
SM
45002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4501
4502 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4503 Remove.
4504 * jit.c (get_jiter_objfile_data): Update.
4505
c8474dc3
TBA
45062020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4507 Simon Marchi <simon.marchi@polymtl.ca>
4508
4509 * jit.c (struct jit_program_space_data): Remove.
4510 (jit_program_space_key): Remove.
4511 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4512 stuff.
4513 (get_jit_program_space_data): Remove.
4514 (jit_breakpoint_deleted): Iterate on all of the program space's
4515 objfiles.
4516 (jit_inferior_init): Likewise.
4517 (jit_breakpoint_re_set_internal): Likewise. Also change return
4518 type to void.
4519 (jit_breakpoint_re_set): Pass current_program_space to
4520 jit_breakpoint_re_set_internal.
4521
77208eb7
SM
45222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 * jit.h (struct jiter_objfile_data) <cached_code_address,
4525 jit_breakpoint>: Move to here from ...
4526 * jit.c (jit_program_space_data): ... here.
4527 (jiter_objfile_data::~jiter_objfile_data): Update.
4528 (jit_breakpoint_deleted): Update.
4529 (jit_breakpoint_re_set_internal): Update.
4530
8c1c720f
SM
45312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4532
4533 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4534 checks.
4535 (jit_read_descriptor): Remove NULL check.
4536 (jit_event_handler): Add an assertion.
4537
0e74a041
SM
45382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4539
4540 * jit.h (struct jit_objfile_data): Split into...
4541 (struct jiter_objfile_data): ... this ...
4542 (struct jited_objfile_data): ... and this.
4543 * objfiles.h (struct objfile) <jit_data>: Remove.
4544 <jiter_data, jited_data>: New fields.
4545 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4546 (jiter_objfile_data::~jiter_objfile_data): ... this.
4547 (get_jit_objfile_data): Rename to ...
4548 (get_jiter_objfile_data): ... this.
4549 (add_objfile_entry): Update.
4550 (jit_read_descriptor): Use get_jiter_objfile_data.
4551 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4552 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4553 (jit_inferior_exit_hook): Use objfile's jited_data field.
4554
238b5c9f
SM
45552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * jit.h: Forward-declare `struct minimal_symbol`.
4558 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4559 constructor, destructor, and an objfile* field.
4560 * jit.c (jit_objfile_data): Remove.
4561 (struct jit_objfile_data): Migrate from here to jit.h.
4562 (jit_objfile_data::~jit_objfile_data): New destructor
4563 implementation with code moved from free_objfile_data.
4564 (free_objfile_data): Delete.
4565 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4566 (jit_find_objf_with_entry_addr): Ditto.
4567 (jit_inferior_exit_hook): Ditto.
4568 (_initialize_jit): Remove the call to
4569 register_objfile_data_with_cleanup.
4570 * objfiles.h (struct objfile) <jit_data>: New field.
4571
fe053b9e
TBA
45722020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4573
4574 * jit.h: Forward-declare `struct objfile`.
4575 (jit_event_handler): Add a second parameter, the JITer objfile.
4576 * jit.c (jit_read_descriptor): Change the signature to take the
4577 JITer objfile as an argument instead of the jit_program_space_data.
4578 (jit_inferior_init): Update the call to jit_read_descriptor.
4579 (jit_event_handler): Use the new JITer objfile argument when calling
4580 jit_read_descriptor.
4581 * breakpoint.c (handle_jit_event): Update the call to
4582 jit_event_handler to pass the JITer objfile.
4583
4cec0c66
JB
45842020-07-21 John Baldwin <jhb@FreeBSD.org>
4585
4586 * gdbarch.c: Regenerate.
4587 * gdbarch.h: Regenerate.
4588 * gdbarch.sh (handle_segmentation_fault): Remove method.
4589 * infrun.c (handle_segmentation_fault): Remove.
4590 (print_signal_received_reason): Remove call to
4591 handle_segmentation_fault.
4592
0e42f66a
JB
45932020-07-21 John Baldwin <jhb@FreeBSD.org>
4594
4595 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4596 Rename to sparc64_linux_report_signal_info and add siggnal
4597 argument.
4598 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4599 instead of sparc64_linux_handle_segmentation_fault.
4600
77bdfeb2
JB
46012020-07-21 John Baldwin <jhb@FreeBSD.org>
4602
4603 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4604 i386_linux_report_signal_info instead of
4605 i386_linux_handle_segmentation_fault.
4606 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4607 to i386_linux_report_signal_info and add siggnal argument.
4608 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4609 of i386_linux_handle_segmentation_fault.
4610 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4611 to i386_linux_report_signal_info and add siggnal argument.
4612
ad97bfc5
JB
46132020-07-21 John Baldwin <jhb@FreeBSD.org>
4614
4615 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4616 hook if present.
4617
272bb05c
JB
46182020-07-21 John Baldwin <jhb@FreeBSD.org>
4619
4620 * gdbarch.c: Regenerate.
4621 * gdbarch.h: Regenerate.
4622 * gdbarch.sh (report_signal_info): New method.
4623 * infrun.c (print_signal_received_reason): Invoke gdbarch
4624 report_signal_info hook if present.
4625
baf8791e
AB
46262020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4627
4628 * python/py-registers.c : Add 'unordered_map' include.
4629 (gdbpy_new_reggroup): Renamed to...
4630 (gdbpy_get_reggroup): ...this. Update to only create register
4631 group descriptors when needed.
4632 (gdbpy_reggroup_iter_next): Update.
4633
f7306dac
AB
46342020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * python/py-registers.c (gdbpy_register_object_data): New static
4637 global.
4638 (gdbpy_register_object_data_init): New function.
4639 (gdbpy_new_register_descriptor): Renamed to...
4640 (gdbpy_get_register_descriptor): ...this, and update to reuse
4641 existing register descriptors where possible.
4642 (gdbpy_register_descriptor_iter_next): Update.
4643 (gdbpy_initialize_registers): Register new gdbarch data.
4644
05c309a8
SM
46452020-07-21 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * linux-nat.c (stopped_pids): Make static.
4648
d1fd641e
SM
46492020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 PR ada/26235
4652 * gdbtypes.c (ada_discrete_type_low_bound,
4653 ada_discrete_type_high_bound): Handle undefined bounds.
4654
1de14d77
KR
46552020-07-21 Kamil Rytarowski <n54@gmx.com>
4656
4657 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4658 declaration.
4659 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4660 function.
4661
ed810cc7
JB
46622020-07-20 John Baldwin <jhb@FreeBSD.org>
4663
4664 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4665 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4666 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4667 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4668 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4669 method.
4670
ae5369e7
LC
46712020-07-20 Ludovic Courtès <ludo@gnu.org>
4672
4673 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4674 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4675 which are deprecated in Guile 3.0.
4676 * configure.ac (try_guile_versions): Add "guile-3.0".
4677 * configure (try_guile_versions): Regenerate.
4678 * NEWS: Update entry.
4679
68cf161c
LC
46802020-07-20 Ludovic Courtès <ludo@gnu.org>
4681 Doug Evans <dje@google.com>
4682
4683 PR gdb/21104
4684 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4685 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4686 USING_GUILE_BEFORE_2_2.
4687 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4688 Change type to 'scm_t_port_type *'.
4689 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4690 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4691 parameter and honor it. Update callers.
4692 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4693 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4694 functions.
4695 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4696 USING_GUILE_BEFORE_2_2.
4697 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4698 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4699 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4700 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4701 and 'SCM_PORT_TYPE'.
4702 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4703 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4704 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4705 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4706 [!USING_GUILE_BEFORE_2_2]: New functions.
4707 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4708 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4709 'gdbscm_memory_port_read'.
4710 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4711 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4712 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4713 function.
4714 (ioscm_init_memory_port): Remove.
4715 (ioscm_init_memory_port_stream): New function
4716 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4717 function.
4718 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4719 Return scm_from_uint (0).
4720 (gdbscm_set_memory_port_read_buffer_size_x)
4721 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4722 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4723 Return scm_from_uint (0).
4724 (gdbscm_set_memory_port_write_buffer_size_x)
4725 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4726 * configure.ac (try_guile_versions): Add "guile-2.2".
4727 * configure: Regenerate.
4728 * NEWS: Add entry.
4729
aee91db3
TT
47302020-07-18 Tom Tromey <tom@tromey.com>
4731
4732 * linux-nat.c (linux_multi_process): Remove.
4733 (linux_nat_target::supports_multi_process): Return true.
4734
0e267416
AB
47352020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4736
4737 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4738 (riscv_lookup_target_description): Return pointer out of
4739 unique_ptr.
4740 * target-descriptions.c (allocate_target_description): Add
4741 comment.
4742 (target_desc_deleter::operator()): Likewise.
4743 * target-descriptions.h (struct target_desc_deleter): Moved to
4744 gdbsupport/tdesc.h.
4745 (target_desc_up): Likewise.
4746
f80c8ec4
TT
47472020-07-17 Tom Tromey <tromey@adacore.com>
4748
4749 * linux-nat.c (linux_nat_target::supports_non_stop)
4750 (linux_nat_target::always_non_stop_p): Use "true".
4751 (linux_nat_target::supports_disable_randomization): Use "true" and
4752 "false".
4753
d0ce17d8
CT
47542020-07-16 Caroline Tice <cmtice@google.com>
4755
4756 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4757 (RNGLIST_HEADER_SIZE64): New constant definition.
4758 (struct dwop_section_names): Add rnglists_dwo.
4759 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4760 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4761 (struct dwo_sections): Add rnglists field.
4762 (read_attribut_reprocess): Add tag parameter.
4763 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4764 (cu_debug_rnglists_section): New function (decl & definition).
4765 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4766 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4767 die whose range is being checked; get rnglist section from
4768 cu_debug_rnglists_section, to get from either objfile or dwo file as
4769 appropriate. Add cases for DW_RLE_base_addressx,
4770 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4771 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4772 test inside if-condition and updating complaint message.
4773 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4774 dwarf2_rnglists_process.
4775 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4776 dwarf2_ranges_process.
4777 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4778 need_ranges_base and update comment appropriately. Also pass die tag
4779 to dwarf2_ranges_read.
4780 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4781 need_ranges_base and update comment appropriately. Also pass die tag
4782 to dwarf2_ranges_process.
4783 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4784 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4785 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4786 need_ranges_base and update comment appropriately. Also pass die tag
4787 to read_attribute_reprocess and dwarf2_ranges_read.
4788 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4789 and update function comment appropriately.
4790 (read_loclist_index): Call read_loclists_rnglists_header instead of
4791 read_loclist_header.
4792 (read_rnglist_index): New function.
4793 (read_attribute_reprocess): Add tag parameter. Add code for
4794 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4795 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4796
3dcc261c
AB
47972020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4798
4799 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4800 being resolved.
4801
ccb9eba6
AB
48022020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4803
4804 * arch-utils.c (show_architecture): Update formatting of messages.
4805
cf88be68
SM
48062020-07-12 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * gdbtypes.h (struct type) <bounds>: Handle array and string
4809 types.
4810 * ada-lang.c (assign_aggregate): Use type::bounds on
4811 array/string type.
4812 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4813 * c-varobj.c (c_number_of_children): Likewise.
4814 (c_describe_child): Likewise.
4815 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4816 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4817 (f_type_print_base): Likewise.
4818 * f-valprint.c (f77_array_offset_tbl): Likewise.
4819 (f77_get_upperbound): Likewise.
4820 (f77_print_array_1): Likewise.
4821 * guile/scm-type.c (gdbscm_type_range): Likewise.
4822 * m2-typeprint.c (m2_array): Likewise.
4823 (m2_is_long_set_of_type): Likewise.
4824 * m2-valprint.c (get_long_set_bounds): Likewise.
4825 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4826 * python/py-type.c (typy_range): Likewise.
4827 * rust-lang.c (rust_internal_print_type): Likewise.
4828 * type-stack.c (type_stack::follow_types): Likewise.
4829 * valarith.c (value_subscripted_rvalue): Likewise.
4830 * valops.c (value_cast): Likewise.
4831
509971ae
SM
48322020-07-12 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4835 callers to use the equivalent accessor methods.
4836
107406b7
SM
48372020-07-12 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4840 (struct type) <bit_stride>: New method.
4841 (TYPE_BIT_STRIDE): Remove.
4842 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4843
bb789949
SM
48442020-07-12 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4847 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4848 callers to use the equivalent accessor methods instead.
4849
39498edb
SM
48502020-07-12 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4853 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4854 callers to use the equivalent accessor methods instead.
4855
3b606f38
SM
48562020-07-12 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4859 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4860 to use dynamic_prop::kind.
4861
064d9cb9
SM
48622020-07-12 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4865 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4866 to get the bound property's kind and check against
4867 PROP_UNDEFINED.
4868
5537ddd0
SM
48692020-07-12 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4872 all callers to use type::range_bounds followed by
4873 dynamic_prop::{low,high}.
4874
8c2e4e06
SM
48752020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4878 const_val, set_const_val, baton, set_locexpr, set_loclist,
4879 set_addr_offset, variant_parts, set_variant_parts,
4880 original_type, set_original_type>: New methods.
4881 <kind>: Rename to...
4882 <m_kind>: ... this. Update all users to use the new methods
4883 instead.
4884 <data>: Rename to...
4885 <m_data>: ... this. Update all users to use the new methods
4886 instead.
4887
7c6f2712
SM
48882020-07-12 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * gdbtypes.c (get_discrete_bounds): Return failure if
4891 the range type's bounds are not both defined and constant
4892 values.
4893 (get_array_bounds): Update comment. Remove undefined bound check.
4894
599088e3
SM
48952020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4898 the type::bounds method directly.
4899
c4dfcb36
SM
49002020-07-12 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4903 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4904 are used to set the range type's bounds to use set_bounds.
4905
0a278aa7
PW
49062020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4907
4908 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4909
cce20f10
PA
49102020-07-10 Pedro Alves <pedro@palves.net>
4911
4912 * gdbthread.h (inferior_ref): Define.
4913 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4914 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4915 * thread.c
4916 (scoped_restore_current_thread::restore):
4917 Adjust to gdb::ref_ptr.
4918 (scoped_restore_current_thread::~scoped_restore_current_thread):
4919 Remove manual decref handling.
4920 (scoped_restore_current_thread::scoped_restore_current_thread):
4921 Adjust to use
4922 inferior_ref::new_reference/thread_info_ref::new_reference.
4923 Incref the thread before calling get_frame_id instead of after.
4924 Let TARGET_CLOSE_ERROR propagate.
4925
6d7aa592
PA
49262020-07-10 Pedro Alves <pedro@palves.net>
4927
4928 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4929 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4930 NOT_AVAILABLE_ERROR.
4931 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4932 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4933
b3e3a4c1
SM
49342020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4935 Pedro Alves <pedro@palves.net>
4936
4937 PR gdb/26199
4938 * infrun.c (threads_are_resumed_pending_p): Delete.
4939 (do_target_wait): Remove threads_are_executing and
4940 threads_are_resumed_pending_p checks from the inferior_matches
4941 lambda. Update comments.
4942
d6cc5d98
PA
49432020-07-10 Pedro Alves <pedro@palves.net>
4944
4945 PR gdb/26199
4946 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4947 executing threads.
4948
7d3badc6
PA
49492020-07-10 Pedro Alves <pedro@palves.net>
4950
4951 PR gdb/26199
4952 * infrun.c (handle_no_resumed): Handle multiple targets.
4953
42bd97a6
PA
49542020-07-10 Pedro Alves <pedro@palves.net>
4955
4956 PR gdb/26199
4957 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4958 target_is_async_p.
4959
43667cc6
PA
49602020-07-10 Pedro Alves <pedro@palves.net>
4961
4962 PR gdb/26199
4963 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4964 threads, not all threads.
4965
96118d11
PA
49662020-07-10 Pedro Alves <pedro@palves.net>
4967
4968 PR gdb/26199
4969 * remote.c (remote_target::open_1): Pass remote target pointer as
4970 data to create_async_event_handler.
4971 (remote_async_inferior_event_handler): Mark async event handler
4972 before returning if the remote target still has either pending
4973 events or unacknowledged notifications.
4974
54904d81
JB
49752020-07-10 John Baldwin <jhb@FreeBSD.org>
4976
4977 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4978 declaration.
4979 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4980 function.
4981
f37e5866
JB
49822020-07-09 John Baldwin <jhb@FreeBSD.org>
4983
4984 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4985 inferior_ptid.
4986
fc238d4a
JB
49872020-07-09 John Baldwin <jhb@FreeBSD.org>
4988
4989 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4990 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4991 AT_FREEBSD_PS_STRINGS.
4992
6e2469ff
HD
49932020-07-08 Hannes Domani <ssbssa@yahoo.de>
4994
4995 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4996 of debugfile path on Windows.
4997
d1076c41
JB
49982020-07-08 John Baldwin <jhb@FreeBSD.org>
4999
5000 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5001 argument to 'data'.
5002
15f3b077
TT
50032020-07-08 Tom Tromey <tromey@adacore.com>
5004
5005 * ada-lang.c (ada_exception_message_1): Use read_memory.
5006
9fc501fd
AB
50072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 PR python/22748
5010 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5011 special handling for inline frames.
5012 * findvar.c (value_of_register_lazy): Skip inline frames when
5013 creating lazy register values.
5014 * frame.c (frame_id_computed_p): Delete definition.
5015 * frame.h (frame_id_computed_p): Delete declaration.
5016
64cb3757
AB
50172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * NEWS: Mention additions to Python API.
5020 * python/py-arch.c (archpy_register_groups): New function.
5021 (arch_object_methods): Add 'register_groups' method.
5022 * python/py-registers.c (reggroup_iterator_object): New struct.
5023 (reggroup_object): New struct.
5024 (gdbpy_new_reggroup): New function.
5025 (gdbpy_reggroup_to_string): New function.
5026 (gdbpy_reggroup_name): New function.
5027 (gdbpy_reggroup_iter): New function.
5028 (gdbpy_reggroup_iter_next): New function.
5029 (gdbpy_new_reggroup_iterator): New function
5030 (gdbpy_initialize_registers): Register new types.
5031 (reggroup_iterator_object_type): Define new Python type.
5032 (gdbpy_reggroup_getset): New static global.
5033 (reggroup_object_type): Define new Python type.
5034 * python/python-internal.h
5035
0f767f94
AB
50362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5039 * python/py-arch.c (archpy_registers): New function.
5040 (arch_object_methods): Add 'registers' method.
5041 * python/py-registers.c: New file.
5042 * python/python-internal.h
5043 (gdbpy_new_register_descriptor_iterator): Declare.
5044 (gdbpy_initialize_registers): Declare.
5045 * python/python.c (do_start_initialization): Call
5046 gdbpy_initialize_registers.
5047 * NEWS: Mention additions to the Python API.
5048
87dbc774
AB
50492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * NEWS: Mention new Python API method.
5052 * python/py-unwind.c (pending_framepy_architecture): New function.
5053 (pending_frame_object_methods): Add architecture method.
5054
3bc98c0c
AB
50552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * gdbarch.c: Regenerate.
5058 * gdbarch.h: Regenerate.
5059 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5060 (gdbarch_data): Use internal_error for the case where
5061 deprecated_set_gdbarch_data was originally needed.
5062 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5063 and use passed in obstack.
5064 (libunwind_frame_set_descr): Should no longer get back NULL from
5065 gdbarch_data.
5066 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5067 type.
5068 * user-regs.c (user_regs_init): Update parameters, and use passed
5069 in obstack.
5070 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5071 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5072
d8cc8af6
TV
50732020-07-06 Tom de Vries <tdevries@suse.de>
5074
5075 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5076 End-Of-Sequence in lte_is_less_than.
5077 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5078 "gdb: Don't reorder line table entries too much when sorting".
5079
947f7597
TV
50802020-07-06 Tom de Vries <tdevries@suse.de>
5081
5082 PR tui/26205
5083 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5084
1e7c1b22
TV
50852020-07-05 Tom de Vries <tdevries@suse.de>
5086
5087 PR build/26187
5088 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5089 std::uncaught_exceptions instead of deprecated
5090 std::uncaught_exception.
5091
a36158ec
SM
50922020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * macroexp.h (macro_stringify): Return
5095 gdb::unique_xmalloc_ptr<char>.
5096 * macroexp.c (macro_stringify): Likewise.
5097 * macrotab.c (fixup_definition): Update.
5098
14d960c8
SM
50992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5100
5101 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5102 (lex_one_token): Update.
5103 * macroexp.c (struct macro_buffer) <release>: Return
5104 gdb::unique_xmalloc_ptr<char>.
5105 (macro_stringify): Update.
5106 (macro_expand): Update.
5107 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5108 * macroexp.h (macro_expand_next): Likewise.
5109
211d5b1c
SM
51102020-07-02 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * macroexp.h (macro_lookup_ftype): Remove.
5113 (macro_expand, macro_expand_once, macro_expand_next): Remove
5114 lookup function parameters, add scope parameter.
5115 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5116 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5117 * macroscope.h (standard_macro_lookup): Change parameter type
5118 to macro_scope.
5119 * macroscope.c (standard_macro_lookup): Likewise.
5120 * c-exp.y (lex_one_token): Update.
5121 * macrocmd.c (macro_expand_command): Likewise.
5122 (macro_expand_once_command): Likewise.
5123
b1a35af2
SM
51242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5125
5126 * inf-loop.c (inferior_event_handler): Remove client_data param.
5127 * inf-loop.h (inferior_event_handler): Likewise.
5128 * infcmd.c (step_1): Adjust.
5129 * infrun.c (proceed): Adjust.
5130 (fetch_inferior_event): Remove client_data param.
5131 (infrun_async_inferior_event_handler): Adjust.
5132 * infrun.h (fetch_inferior_event): Remove `void *` param.
5133 * linux-nat.c (handle_target_event): Adjust.
5134 * record-btrace.c (record_btrace_handle_async_inferior_event):
5135 Adjust.
5136 * record-full.c (record_full_async_inferior_event_handler):
5137 Adjust.
5138 * remote.c (remote_async_inferior_event_handler): Adjust.
5139
1cdf9e33
TT
51402020-07-01 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5143 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5144
32c1e210
TT
51452020-07-01 Tom Tromey <tom@tromey.com>
5146
5147 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5148 tui_gen_win_info.
5149 (tui_win_info::make_window): Merge with
5150 tui_gen_win_info::make_window.
5151 (tui_win_info::make_visible): Move from tui_gen_win_info.
5152 * tui/tui-win.c (tui_win_info::max_width): Move from
5153 tui_gen_win_info.
5154 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5155 type.
5156 <window_factory>: Likewise.
5157 * tui/tui-layout.c (tui_win_info::resize): Move from
5158 tui_gen_win_info.
5159 (make_standard_window): Change return type.
5160 (get_locator_window, tui_get_window_by_name): Likewise.
5161 (tui_layout_window::apply): Remove a cast.
5162 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5163 (struct tui_win_info): Merge with tui_gen_win_info.
5164 (struct tui_gen_win_info): Remove.
5165
a30cb6da
TT
51662020-07-01 Tom Tromey <tom@tromey.com>
5167
5168 * tui/tui-stack.h (struct tui_locator_window): Derive from
5169 tui_win_info.
5170 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5171 <can_box>: New method.
5172
1eb2161f
TT
51732020-07-01 Tom Tromey <tom@tromey.com>
5174
5175 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5176
7134f2eb
TT
51772020-07-01 Tom Tromey <tom@tromey.com>
5178
5179 * tui/tui-regs.c (tui_data_window::display_registers_from)
5180 (tui_data_window::display_registers_from)
5181 (tui_data_window::first_data_item_displayed)
5182 (tui_data_window::delete_data_content_windows): Update.
5183 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5184 Remove.
5185 (tui_data_window::check_register_values): Update.
5186 (tui_data_item_window::rerender): Add parameters. Update.
5187 (tui_data_item_window::refresh_window): Remove.
5188 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5189 virtual.
5190 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5191 tui_gen_win_info.
5192 <refresh_window, max_height, min_height>: Remove.
5193 <rerender>: Add parameters.
5194 <x, y, visible>: New members.
5195 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5196 <m_item_width>: New member.
5197
22b7b041
TT
51982020-07-01 Tom Tromey <tom@tromey.com>
5199
5200 * tui/tui-regs.c (tui_data_window::show_register_group)
5201 (tui_data_window::check_register_values): Update.
5202 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5203 from item_no.
5204
c9753adb
TT
52052020-07-01 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5208 useless "if".
5209
9ab26b4a
TT
52102020-07-01 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5213 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5214
e555083f
TT
52152020-07-01 Tom Tromey <tom@tromey.com>
5216
5217 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5218 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5219 (struct tui_line_or_address): Move from tui-data.h.
5220 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5221 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5222 (tui_cmd_window, tui_source_window_base, tui_source_window)
5223 (tui_disasm_window): Don't declare.
5224 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5225 to tui-winsource.h.
5226 (SINGLE_KEY): Move to tui-stack.c.
5227
7a02bab7
TT
52282020-07-01 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5231 std::string.
5232 * tui/tui-regs.c (class tab_expansion_file): New.
5233 (tab_expansion_file::write): New method.
5234 (tui_register_format): Change return type. Use
5235 tab_expansion_file.
5236 (tui_get_register, tui_data_window::display_registers_from)
5237 (tui_data_item_window::rerender): Update.
5238 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5239 * tui/tui-io.c (tui_expand_tabs): Remove.
5240
ea68593b
TT
52412020-07-01 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5244
a8caed5d
FS
52452020-07-01 Fangrui Song <maskray@google.com>
5246
5247 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5248
9cdf9820
AKS
52492020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5250
5251 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5252 forms for DW_AT_associated and DW_AT_allocated attributes,
5253 which is already checked in function attr_to_dynamic_prop.
5254
a1520ad8
TT
52552020-06-30 Tom Tromey <tromey@adacore.com>
5256
5257 * dwarf2/read.c (quirk_rust_enum): Correctly call
5258 alloc_rust_variant for default-less enum.
5259
5ac58899
TT
52602020-06-30 Tom Tromey <tromey@adacore.com>
5261
5262 PR build/26183:
5263 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5264 gdb::to_string.
5265
19b187a9
SM
52662020-06-29 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5269 * gdbarch.h: Re-generate.
5270
cd4c4c07
TT
52712020-06-28 Tom Tromey <tom@tromey.com>
5272
5273 * command.h (cmd_types): Remove.
5274 (cmd_type): Don't declare.
5275 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5276 typedef.
5277 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5278 * cli/cli-decode.c (cmd_type): Remove.
5279
05779d57
PA
52802020-06-27 Pedro Alves <palves@redhat.com>
5281
5282 * fork-child.c (prefork_hook): Adjust.
5283 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5284 Delete.
5285 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5286 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5287 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5288 Remove declarations.
5289 (struct inferior) <set_tty, tty>: New methods.
5290 (struct inferior) <terminal>: Rename to ...
5291 (struct inferior) <m_terminal>: ... this and make private.
5292 * main.c (captured_main_1): Adjust.
5293 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5294 (mi_cmd_inferior_tty_show): Adjust.
5295 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5296 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5297
1776e3e5
NA
52982020-06-26 Nick Alcock <nick.alcock@oracle.com>
5299
5300 * configure.ac: Add --enable-libctf: handle --disable-static
5301 properly.
5302 * acinclude.m4: sinclude ../config/enable.m4.
5303 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5304 (LIBCTF): Substitute in.
5305 (CTF_DEPS): New, likewise.
5306 (CLIBS): libctf needs symbols from libbfd: move earlier.
5307 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5308 flags.
5309 * ctfread.c: Surround in ENABLE_LIBCTF.
5310 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5311 * configure: Regenerate.
5312 * config.in: Likewise.
5313
58373b80
SM
53142020-06-25 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5317
277474ee
SM
53182020-06-25 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * inferior.h (struct inferior) <terminal>: Change type to
5321 gdb::unique_xmalloc_ptr<char>.
5322 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5323 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5324 field, adjust to unique pointer.
5325 (get_inferior_io_terminal): Adjust to unique pointer.
5326
6d74da72
AB
53272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5330 registers, not just the known core set of registers.
5331
2e52d038
AB
53322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5335 fflags, frm, and fcsr registers.
5336 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5337 restore groups.
5338 (riscv_tdesc_unknown_reg): New function.
5339 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5340 tdesc_use_registers.
5341 * riscv-tdep.h (struct gdbarch_tdep): Add
5342 unknown_csrs_first_regnum, unknown_csrs_count,
5343 duplicate_fflags_regnum, duplicate_frm_regnum, and
5344 duplicate_fcsr_regnum fields.
5345
be64fd07
AB
53462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5349 callback, use the callback (when not null) to help number unknown
5350 registers.
5351 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5352 (tdesc_use_registers): Add extra parameter to declaration.
5353
3b9fce96
AB
53542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5355
5356 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5357 in the file.
5358 (class riscv_pending_register_alias): Likewise.
5359 (riscv_register_feature::register_info): Change 'required_p' field
5360 to 'required', and change its type. Add 'check' member function.
5361 (riscv_register_feature::register_info::check): Define new member
5362 function.
5363 (riscv_xreg_feature): Change initialisation of 'required' field.
5364 (riscv_freg_feature): Likewise.
5365 (riscv_virtual_feature): Likewise.
5366 (riscv_csr_feature): Likewise.
5367 (riscv_check_tdesc_feature): Take extra parameter, the csr
5368 tdesc_feature, rewrite the function to use the new
5369 riscv_register_feature::register_info::check function.
5370 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5371
865bad26
AB
53722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * features/Makefile: Remove all references to the deleted files
5375 below.
5376 * features/riscv/32bit-csr.c: Deleted.
5377 * features/riscv/32bit-csr.xml: Deleted.
5378 * features/riscv/64bit-csr.c: Deleted.
5379 * features/riscv/64bit-csr.xml: Deleted.
5380 * features/riscv/rebuild-csr-xml.sh: Deleted.
5381
ed69cbc8
AB
53822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5385 whitespace error for declaration of names member variable.
5386 (struct riscv_register_feature): Add new prefer_first_name member
5387 variable, and fix whitespace error in declaration of registers.
5388 (riscv_xreg_feature): Initialize prefer_first_name field.
5389 (riscv_freg_feature): Likewise.
5390 (riscv_virtual_feature): Likewise.
5391 (riscv_csr_feature): Likewise.
5392 (riscv_register_name): Expand on comments. Remove register name
5393 modifications for CSR and virtual registers.
5394
4445e8f5
AB
53952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5398 errors.
5399
767a879e
AB
54002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5403 riscv-opc.h.
5404 (class riscv_pending_register_alias): New class.
5405 (riscv_check_tdesc_feature): Take vector of pending aliases and
5406 populate it as appropriate.
5407 (riscv_setup_register_aliases): Delete.
5408 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5409 to riscv_check_tdesc_feature in all cases. Use the vector to
5410 create the register aliases.
5411
bb6e55f3
RO
54122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5413
5414 * sol2-tdep.c (sol2_static_transform_name): Remove.
5415 (sol2_init_abi): Don't register it.
5416 * gdbarch.sh (static_transform_name): Remove.
5417 * gdbarch.c, gdbarch.h: Regenerate.
5418
5419 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5420 gdbarch_static_transform_name.
5421 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5422 * stabsread.c (define_symbol) <'X'>: Remove.
5423 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5424 handling.
5425 <'V'>: Likewise.
5426 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5427 <'S'>: Remove call to gdbarch_static_transform_name.
5428
c6d36836
RO
54292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5430
5431 * procfs.c (procfs_pre_trace): New function.
5432 (procfs_target::create_inferior): Pass it to fork_inferior.
5433
a7e6196b
RO
54342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5435
5436 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5437 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5438 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5439 sol2-tdep.o, sparc-sol2-tdep.o.
5440 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5441 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5442 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5443 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5444
d412e696
RO
54452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5446
5447 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5448 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5449 Call sol2_init_abi.
5450 Remove calls to set_gdbarch_skip_solib_resolver,
5451 set_gdbarch_core_pid_to_str.
5452 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5453 (i386_sol2_static_transform_name): Remove.
5454 (i386_sol2_init_abi): Call sol2_init_abi.
5455 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5456 set_gdbarch_static_transform_name,
5457 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5458 Use sol2_sigtramp_p.
5459 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5460 (sol2_sigtramp_p): New function.
5461 (sol2_static_transform_name): New function.
5462 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5463 (sol2_init_abi): New function.
5464 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5465 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5466 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5467 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5468 (sparc_sol2_static_transform_name): Remove.
5469 (sparc32_sol2_init_abi): Call sol2_init_abi.
5470 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5471 set_gdbarch_static_transform_name,
5472 set_gdbarch_skip_solib_resolver,
5473 set_gdbarch_core_pid_to_str.
5474 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5475 (sparc_sol2_static_transform_name): Remove
5476 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5477 call sol2_sigtramp_p.
5478 (sparc64_sol2_init_abi): Call sol2_init_abi.
5479 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5480 set_gdbarch_static_transform_name,
5481 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5482
a8654e7d
PW
54832020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5484
5485 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5486 * exec.c (validate_exec_file): If from_tty, set both
5487 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5488 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5489 and from_tty, unconditionally ask a confirmation.
5490
caa7fd04
AB
54912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * target-descriptions.c (tdesc_architecture_name): Protect against
5494 NULL pointer dereference.
5495 (maint_print_xml_tdesc_cmd): New function.
5496 (_initialize_target_descriptions): Register new 'maint print
5497 xml-tdesc' command and give it the filename completer.
5498 * NEWS: Mention new 'maint print xml-tdesc' command.
5499
fbf42f4e
AB
55002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5501
5502 * target-descriptions.c (class tdesc_compatible_info): New class.
5503 (struct target_desc): Change type of compatible vector.
5504 (tdesc_compatible_p): Update for change in type of
5505 target_desc::compatible.
5506 (tdesc_compatible_info_list): New function.
5507 (tdesc_compatible_info_arch_name): New function.
5508 (tdesc_add_compatible): Update for change in type of
5509 target_desc::compatible.
5510 (print_c_tdesc::visit_pre): Likewise.
5511
20821f4e
AB
55122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5515 whitespace to underscore.
5516 (maint_print_c_tdesc_cmd): Use fake filename for target
5517 descriptions that came from the target.
5518 (_initialize_target_descriptions): Add filename command completion
5519 for 'maint print c-tdesc'.
5520
1fb5ee62
SM
55212020-06-23 Simon Marchi <simon.marchi@efficios.com>
5522
5523 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5524 lines.
5525
fc3ecb3e
SM
55262020-06-23 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5529 lines.
5530 (dwarf2_find_location_expression): Likewise.
5531 (call_site_parameter_matches): Likewise.
5532 (dwarf2_compile_expr_to_ax): Likewise.
5533 (disassemble_dwarf_expression): Likewise.
5534 (loclist_describe_location): Likewise.
5535
236ef034
PA
55362020-06-23 Pedro Alves <palves@redhat.com>
5537
5538 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5539 progspace-and-thread.h. Include scoped-mock-context.h instead.
5540 (register_to_value_test): Use scoped_mock_context.
5541 * regcache.c: Include "scoped-mock-context.h".
5542 (cooked_read_test): Don't error out if a target is already pushed.
5543 Use scoped_mock_context. Adjust.
5544 * scoped-mock-context.h: New file.
5545
39e7ecca
AB
55462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5547
5548 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5549 initializer.
5550 (ada_language::is_string_type_p): New member function.
5551 * c-lang.c (c_language_data): Delete la_is_string_type_p
5552 initializer.
5553 (cplus_language_data): Likewise.
5554 (asm_language_data): Likewise.
5555 (minimal_language_data): Likewise.
5556 * d-lang.c (d_language_data): Likewise.
5557 * f-lang.c (f_is_string_type_p): Delete function, implementation
5558 moved to f_language::is_string_type_p.
5559 (f_language_data): Delete la_is_string_type_p initializer.
5560 (f_language::is_string_type_p): New member function,
5561 implementation from f_is_string_type_p.
5562 * go-lang.c (go_is_string_type_p): Delete function, implementation
5563 moved to go_language::is_string_type_p.
5564 (go_language_data): Delete la_is_string_type_p initializer.
5565 (go_language::is_string_type_p): New member function,
5566 implementation from go_is_string_type_p.
5567 * language.c (language_defn::is_string_type_p): Define new member
5568 function.
5569 (default_is_string_type_p): Make static, add comment copied from
5570 header file.
5571 (unknown_language_data): Delete la_is_string_type_p initializer.
5572 (unknown_language::is_string_type_p): New member function.
5573 (auto_language_data): Delete la_is_string_type_p initializer.
5574 (auto_language::is_string_type_p): New member function.
5575 * language.h (language_data): Delete la_is_string_type_p field.
5576 (language_defn::is_string_type_p): Declare new function.
5577 (default_is_string_type_p): Delete desclaration, move comment to
5578 definition.
5579 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5580 moved to m2_language::is_string_type_p.
5581 (m2_language_data): Delete la_is_string_type_p initializer.
5582 (m2_language::is_string_type_p): New member function,
5583 implementation from m2_is_string_type_p.
5584 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5585 initializer.
5586 * opencl-lang.c (opencl_language_data): Likewise.
5587 * p-lang.c (pascal_is_string_type_p): Delete function,
5588 implementation moved to pascal_language::is_string_type_p.
5589 (pascal_language_data): Delete la_is_string_type_p initializer.
5590 (pascal_language::is_string_type_p): New member function,
5591 implementation from pascal_is_string_type_p.
5592 * rust-lang.c (rust_is_string_type_p): Delete function,
5593 implementation moved to rust_language::is_string_type_p.
5594 (rust_language_data): Delete la_is_string_type_p initializer.
5595 (rust_language::is_string_type_p): New member function,
5596 implementation from rust_is_string_type_p.
5597 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5598 is_string_type_p.
5599
4ffc13fb
AB
56002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * ada-lang.c (ada_language_data): Delete la_print_typedef
5603 initializer.
5604 (ada_language::print_typedef): New member function.
5605 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5606 (cplus_language_data): Likewise.
5607 (asm_language_data): Likewise.
5608 (minimal_language_data): Likewise.
5609 * d-lang.c (d_language_data): Likewise.
5610 * f-lang.c (f_language_data): Likewise.
5611 (f_language::print_typedef): New member function.
5612 * go-lang.c (go_language_data): Delete la_print_typedef
5613 initializer.
5614 * language.c (language_defn::print_typedef): Define member
5615 function.
5616 (unknown_language_data): Delete la_print_typedef initializer.
5617 (unknown_language::print_typedef): New member function.
5618 (auto_language_data): Delete la_print_typedef initializer.
5619 (auto_language::print_typedef): New member function.
5620 * language.h (language_data): Delete la_print_typedef field.
5621 (language_defn::print_typedef): Declare new member function.
5622 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5623 (default_print_typedef): Delete declaration.
5624 * m2-lang.c (m2_language_data): Delete la_print_typedef
5625 initializer.
5626 (m2_language::print_typedef): New member function.
5627 * objc-lang.c (objc_language_data): Delete la_print_typedef
5628 initializer.
5629 * opencl-lang.c (opencl_language_data): Likewise.
5630 * p-lang.c (pascal_language_data): Likewise.
5631 (pascal_language::print_typedef): New member function.
5632 * rust-lang.c (rust_print_typedef): Delete function,
5633 implementation moved to rust_language::print_typedef.
5634 (rust_language): Delete la_print_typedef initializer.
5635 (rust_language::print_typedef): New member function,
5636 implementation from rust_print_typedef.
5637 * typeprint.c (default_print_typedef): Delete.
5638
d711ee67
AB
56392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5642 (ada_language::printstr): New member function.
5643 * c-lang.c (c_language_data): Delete la_printstr initializer.
5644 (cplus_language_data): Likewise.
5645 (asm_language_data): Likewise.
5646 (minimal_language_data): Likewise.
5647 * d-lang.c (d_language_data): Likewise.
5648 * f-lang.c (f_printstr): Rename to f_language::printstr.
5649 (f_language_data): Delete la_printstr initializer.
5650 (f_language::printstr): New member function, implementation from
5651 f_printstr.
5652 * go-lang.c (go_language_data): Delete la_printstr initializer.
5653 * language.c (language_defn::printstr): Define new member
5654 function.
5655 (unk_lang_printstr): Delete.
5656 (unknown_language_data): Delete la_printstr initializer.
5657 (unknown_language::printstr): New member function.
5658 (auto_language_data): Delete la_printstr initializer.
5659 (auto_language::printstr): New member function.
5660 * language.h (language_data): Delete la_printstr field.
5661 (language_defn::printstr): Declare new member function.
5662 (LA_PRINT_STRING): Update call to printstr.
5663 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5664 (m2_language_data): Delete la_printstr initializer.
5665 (m2_language::printstr): New member function, implementation from
5666 m2_printstr.
5667 * objc-lang.c (objc_language_data): Delete la_printstr
5668 initializer.
5669 * opencl-lang.c (opencl_language_data): Likewise.
5670 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5671 (pascal_language_data): Delete la_printstr initializer.
5672 (pascal_language::printstr): New member function, implementation
5673 from pascal_printstr.
5674 * p-lang.h (pascal_printstr): Delete declaration.
5675 * rust-lang.c (rust_printstr): Update header comment.
5676 (rust_language_data): Delete la_printstr initializer.
5677 (rust_language::printstr): New member function.
5678
52b50f2c
AB
56792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5680
5681 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5682 (ada_language::printchar): New member function.
5683 * c-lang.c (c_language_data): Delete la_printchar initializer.
5684 (cplus_language_data): Likewise.
5685 (asm_language_data): Likewise.
5686 (minimal_language_data): Likewise.
5687 * d-lang.c (d_language_data): Likewise.
5688 * f-lang.c (f_printchar): Rename to f_language::printchar.
5689 (f_language_data): Delete la_printchar initializer.
5690 (f_language::printchar): New member function, implementation from
5691 f_printchar.
5692 * go-lang.c (go_language_data): Delete la_printchar initializer.
5693 * language.c (unk_lang_printchar): Delete.
5694 (language_defn::printchar): Define new member function.
5695 (unknown_language_data): Delete la_printchar initializer.
5696 (unknown_language::printchar): New member function.
5697 (auto_language_data): Delete la_printchar initializer.
5698 (auto_language::printchar): New member function.
5699 * language.h (language_data): Delete la_printchar field.
5700 (language_defn::printchar): Declare new member function.
5701 (LA_PRINT_CHAR): Update call to printchar.
5702 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5703 (m2_language::printchar): New member function.
5704 * objc-lang.c (objc_language_data): Delete la_printchar
5705 initializer.
5706 * opencl-lang.c (opencl_language_data): Likewise.
5707 * p-lang.c (pascal_language_data): Delete la_printchar
5708 initializer.
5709 (pascal_language::printchar): New member function.
5710 * rust-lang.c (rust_printchar): Rename to
5711 rust_language::printchar.
5712 (rust_language_data): Delete la_printchar initializer.
5713 (rust_language::printchar): New member function, implementation
5714 from rust_printchar.
5715
ec8cec5b
AB
57162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5717
5718 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5719 (ada_language_data): Delete la_emitchar initializer.
5720 (ada_language::emitchar): New member function, implementation from
5721 emit_char.
5722 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5723 (cplus_language_data): Likewise.
5724 (asm_language_data): Likewise.
5725 (minimal_language_data): Likewise.
5726 * d-lang.c (d_language_data): Likewise.
5727 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5728 (f_language_data): Delete la_emitchar initializer.
5729 (f_language::emitchar): New member function, implementation from
5730 f_emit_char.
5731 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5732 * language.c (unk_lang_emit_char): Delete.
5733 (language_defn::emitchar): New member function definition.
5734 (unknown_language_data): Delete la_emitchar initializer.
5735 (unknown_language::emitchar): New member function.
5736 (auto_language_data): Delete la_emitchar initializer.
5737 (auto_language::emitchar): New member function.
5738 * language.h (language_data): Delete la_emitchar field.
5739 (language_defn::emitchar): New member field declaration.
5740 (LA_EMIT_CHAR): Update call to emitchar.
5741 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5742 (m2_language_data): Delete la_emitchar initializer.
5743 (m2_language::emitchar): New member function, implementation from
5744 m2_emit_char.
5745 * objc-lang.c (objc_language_data): Delete la_emitchar
5746 initializer.
5747 * opencl-lang.c (opencl_language_data): Likewise.
5748 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5749 (pascal_language_data): Delete la_emitchar initializer.
5750 (pascal_language::emitchar): New member function, implementation
5751 from pascal_emit_char.
5752 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5753 (rust_language_data): Delete la_emitchar initializer.
5754 (rust_language::emitchar): New member function, implementation
5755 from rust_emitchar.
5756
1bf9c363
AB
57572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5758
5759 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5760 (ada_language_data): Delete la_post_parser initializer.
5761 (ada_language::post_parser): New member function.
5762 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5763 (cplus_language_data): Likewise.
5764 (asm_language_data): Likewise.
5765 (minimal_language_data): Likewise.
5766 * d-lang.c (d_language_data): Likewise.
5767 * f-lang.c (f_language_data): Likewise.
5768 * go-lang.c (go_language_data): Likewise.
5769 * language.c (unknown_language_data): Likewise.
5770 (auto_language_data): Likewise.
5771 * language.h (language_data): Delete la_post_parser field.
5772 (language_defn::post_parser): New member function.
5773 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5774 * objc-lang.c (objc_language_data): Likewise.
5775 * opencl-lang.c (opencl_language_data): Likewise.
5776 * p-lang.c (pascal_language_data): Likewise.
5777 * parse.c (parse_exp_in_context): Update call to post_parser.
5778 (null_post_parser): Delete definition.
5779 * parser-defs.h (null_post_parser): Delete declaration.
5780 * rust-lang.c (rust_language_data): Delete la_post_parser
5781 initializer.
5782
87afa652
AB
57832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * ada-lang.c (parse): Rename to ada_language::parser.
5786 (ada_language_data): Delete la_parser initializer.
5787 (ada_language::parser): New member function, implementation from
5788 parse.
5789 * c-lang.c (c_language_data): Delete la_parser initializer.
5790 (cplus_language_data): Likewise.
5791 (asm_language_data): Likewise.
5792 (minimal_language_data): Likewise.
5793 * d-lang.c (d_language_data): Likewise.
5794 (d_language::parser): New member function.
5795 * f-lang.c (f_language_data): Delete la_parser initializer.
5796 (f_language::parser): New member function.
5797 * go-lang.c (go_language_data): Delete la_parser initializer.
5798 (go_language::parser): New member function.
5799 * language.c (unk_lang_parser): Delete.
5800 (language_defn::parser): Define new member function.
5801 (unknown_language_data): Delete la_parser initializer.
5802 (unknown_language::parser): New member function.
5803 (auto_language_data): Delete la_parser initializer.
5804 (auto_language::parser): New member function.
5805 * language.h (language_data): Delete la_parser field.
5806 (language_defn::parser): Declare new member function.
5807 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5808 (m2_language::parser): New member function.
5809 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5810 * opencl-lang.c (opencl_language_data): Likewise.
5811 * p-lang.c (pascal_language_data): Likewise.
5812 (pascal_language::parser): New member function.
5813 * parse.c (parse_exp_in_context): Update call to parser.
5814 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5815 (rust_language::parser): New member function.
5816
37825800
AB
58172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * top.c (print_gdb_configuration): Print --with-python-libdir
5820 configuration value.
5821
5b860c93
PW
58222020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5823
5824 * NEWS: Mention change to the alias command.
5825
cf00cd6f
PW
58262020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5827
5828 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5829 (alias_command_completer)
5830 (make_alias_options_def_group): New functions.
5831 (alias_opts, alias_option_defs): New struct and array.
5832 (alias_usage_error): Update usage.
5833 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5834 Use option framework.
5835 (_initialize_cli_cmds): Update alias command help.
5836 Update aliases command help.
5837 (show_user):
5838 Add NULL for new default_args lookup_cmd argument.
5839 (valid_command_p): Rename to validate_aliased_command.
5840 Add NULL for new default_args lookup_cmd argument. Verify that the
5841 aliased_command has no default args.
5842 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5843 (lookup_cmd_1, lookup_cmd): New argument default_args.
5844 (add_alias_cmd):
5845 Add NULL for new default_args lookup_cmd argument.
5846 (print_help_for_command): Show default args under the layout
5847 alias some_alias = some_aliased_cmd some_alias_default_arg.
5848 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5849 xfree default_args in destructor.
5850 * cli/cli-script.c (process_next_line, do_define_command):
5851 Add NULL for new default_args lookup_cmd argument.
5852 * command.h: Declare new default_args argument in lookup_cmd
5853 and lookup_cmd_1.
5854 * completer.c (complete_line_internal_1):
5855 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5856 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5857 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5858 Likewise.
5859 * infcmd.c (_initialize_infcmd): Likewise.
5860 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5861 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5862 * python/py-param.c (add_setshow_generic): Likewise.
5863 * remote.c (_initialize_remote): Likewise.
5864 * top.c (execute_command): Prepend default_args if command has some.
5865 (set_verbose):
5866 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5867 * tracepoint.c (validate_actionline, encode_actions_1):
5868 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5869
bd920864
TBA
58702020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5871
5872 * jit.c (jit_read_descriptor): Use bool as the return type.
5873 (jit_breakpoint_re_set_internal): Use bool as the return type.
5874 Invert the return value logic; return true if the jit breakpoint
5875 has been successfully initialized.
5876 (jit_inferior_init): Update the call to
5877 jit_breakpoint_re_set_internal.
5878
f8098322
PA
58792020-06-22 Pedro Alves <palves@redhat.com>
5880
5881 PR gdb/25939
5882 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5883 Use the current inferior instead. Don't return
5884 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5885 wait again.
5886 * sol-thread.c (sol_thread_target::wait): Don't reference
5887 inferior_ptid.
5888 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5889 (sol_update_thread_list_callback): Use the current inferior's pid
5890 instead of inferior_ptid.
5891
196535a6
RO
58922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5893
5894 * procfs.c: Cleanup many comments.
5895
5896 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5897 (AFTER_WATCHFLAG): Replace by value.
5898
5899 (MAIN_PROC_NAME_FORMAT): Inline ...
5900 (create_procinfo): ... here.
5901
5902 (procfs_debug_inferior): Remove SYS_exec handling.
5903 (syscall_is_exec): Likewise.
5904 (procfs_set_exec_trap): Likewise.
5905
5906 (syscall_is_lwp_exit): Inline in callers.
5907 (syscall_is_exit): Likewise.
5908 (syscall_is_exec): Likewise.
5909 (syscall_is_lwp_create): Likewise.
5910
5911 (invalidate_cache): Remove #if 0 code.
5912
5913 (make_signal_thread_runnable): Remove.
5914 (procfs_target::resume): Remove #if 0 code.
5915
cf6f3e86
RO
59162020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5917
5918 PR gdb/25939
5919 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5920 call ...
5921 (procfs_target::create_inferior): ... here.
5922
48e9cc84
PW
59232020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5924
5925 * exec.c (validate_exec_file): Ensure the build-id is up to
5926 date by calling reopen_exec_file (that checks file timestamp
5927 to decide to re-read the file).
5928
3922b302
PA
59292020-06-18 Pedro Alves <palves@redhat.com>
5930
5931 PR gdb/25412
5932 * gdbthread.h (delete_thread, delete_thread_silent)
5933 (find_thread_ptid): Update comments.
5934 * thread.c (current_thread_): New global.
5935 (is_current_thread): Move higher, and reimplement.
5936 (inferior_thread): Reimplement.
5937 (set_thread_exited): Use bool. Add assertions.
5938 (add_thread_silent): Simplify thread-reuse handling by always
5939 calling delete_thread.
5940 (delete_thread): Remove intro comment.
5941 (find_thread_ptid): Skip exited threads.
5942 (switch_to_thread_no_regs): Write to current_thread_.
5943 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5944 INFERIOR_PTID. Clear current_thread_.
5945
6dbdab44
PA
59462020-06-18 Pedro Alves <palves@redhat.com>
5947
5948 * aix-thread.c (pd_update): Use switch_to_thread.
5949
2da4b788
PA
59502020-06-18 Pedro Alves <palves@redhat.com>
5951
5952 * ravenscar-thread.c (ravenscar_thread_target): Update.
5953 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5954 (ravenscar_thread_target::add_active_thread): ... this. Don't
5955 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5956 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5957
50838d1b
PA
59582020-06-18 Pedro Alves <palves@redhat.com>
5959
5960 * nat/windows-nat.c (current_windows_thread): Remove.
5961 * nat/windows-nat.h (current_windows_thread): Remove.
5962 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5963 Adjust.
5964 (display_selectors): Adjust to fetch the current
5965 windows_thread_info based on inferior_ptid.
5966 (fake_create_process): No longer write to current_windows_thread.
5967 (windows_nat_target::get_windows_debug_event):
5968 Don't set inferior_ptid or current_windows_thread.
5969 (windows_nat_target::wait): Adjust to not rely on
5970 current_windows_thread.
5971 (do_initial_windows_stuff): Now a method of windows_nat_target.
5972 Switch to the last_ptid thread.
5973 (windows_nat_target::attach): Adjust.
5974 (windows_nat_target::detach): Use switch_to_no_thread instead of
5975 writing to inferior_ptid directly.
5976 (windows_nat_target::create_inferior): Adjust.
5977
31ce04e9
PA
59782020-06-18 Pedro Alves <palves@redhat.com>
5979
5980 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5981
1ee1a363
PA
59822020-06-18 Pedro Alves <palves@redhat.com>
5983
5984 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5985 after creating it, instead of writing to inferior_ptid. Don't
5986 write to inferior_ptid.
5987
6d350754
PA
59882020-06-18 Pedro Alves <palves@redhat.com>
5989
5990 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5991
5d971d48
PA
59922020-06-18 Pedro Alves <palves@redhat.com>
5993
5994 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5995 it, instead of writing to inferior_ptid.
5996
86e57d1b
PA
59972020-06-18 Pedro Alves <palves@redhat.com>
5998
5999 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6000 to inferior_ptid.
6001
f2e1c129
PA
60022020-06-18 Pedro Alves <palves@redhat.com>
6003
6004 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6005 instead of writing to inferior_ptid directly.
6006
60db1b85
PA
60072020-06-18 Pedro Alves <palves@redhat.com>
6008
6009 * corelow.c (core_target::close): Use switch_to_no_thread instead
6010 of writing to inferior_ptid directly.
6011 (add_to_thread_list, core_target_open): Use switch_to_thread
6012 instead of writing to inferior_ptid directly.
6013
fe7d6a8d
PA
60142020-06-18 Pedro Alves <palves@redhat.com>
6015
6016 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6017 inferior_ptid.
6018 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6019 inferior_ptid.
6020 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6021 inferior_ptid directly.
6022 (darwin_nat_target::init_thread_list): Switch to thread, instead
6023 of writing to inferior_ptid.
6024 (darwin_nat_target::attach): Don't write to inferior_ptid.
6025 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6026
975f8708
PA
60272020-06-18 Pedro Alves <palves@redhat.com>
6028
6029 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6030 thread.
6031 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6032 Instead use switch_to_thread.
6033 (gnu_nat_target::detach): Use switch_to_no_thread
6034 instead of writing to inferior_ptid directly. Used passed-in
6035 inferior instead of looking up the inferior by pid.
6036
1a204730
PA
60372020-06-18 Pedro Alves <palves@redhat.com>
6038
6039 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6040 inferior_ptid.
6041
ebe84f23
PA
60422020-06-18 Pedro Alves <palves@redhat.com>
6043
6044 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6045 inferior_ptid.
6046 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6047 thread.
6048 (nto_procfs_target::detach): Avoid referencing
6049 inferior_ptid. Use switch_to_no_thread instead of writing to
6050 inferior_ptid directly.
6051 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6052 instead of writing to inferior_ptid directly.
6053 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6054 to thread.
6055
191f02e5
PA
60562020-06-18 Pedro Alves <palves@redhat.com>
6057
6058 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6059 after creating it, instead of writing to inferior_ptid.
6060 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6061 to inferior_ptid directly.
6062 (gdbsim_target::wait): Don't write to inferior_ptid.
6063
0ac55310
PA
60642020-06-18 Pedro Alves <palves@redhat.com>
6065
6066 * remote.c (remote_target::remote_notice_new_inferior): Use
6067 switch_to_thread instead of writing to inferior_ptid directly.
6068 (remote_target::add_current_inferior_and_thread): Use
6069 switch_to_no_thread instead of writing to inferior_ptid directly.
6070 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6071 and switch_to_thread instead of using set_current_inferior or
6072 writing to inferior_ptid directly.
6073
5233f39b
PA
60742020-06-18 Pedro Alves <palves@redhat.com>
6075
6076 * tracectf.c (ctf_target_open): Switch to added thread instead of
6077 writing to inferior_ptid directly.
6078 (ctf_target::close): Use switch_to_no_thread instead of writing to
6079 inferior_ptid directly.
6080
087e161b
PA
60812020-06-18 Pedro Alves <palves@redhat.com>
6082
6083 * tracefile-tfile.c (tfile_target_open): Don't write to
6084 inferior_ptid directly, instead switch to added thread.
6085 (tfile_target::close): Use switch_to_no_thread instead of writing
6086 to inferior_ptid directly.
6087
7fb43e53
PA
60882020-06-18 Pedro Alves <palves@redhat.com>
6089
6090 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6091 (procfs_target::detach): Use switch_to_no_thread
6092 instead of writing to inferior_ptid directly.
6093 (do_attach): Change return type to void. Switch to the added
6094 thread.
6095 (procfs_target::create_inferior): Switch to the added thread.
6096 (procfs_do_thread_registers): Don't write to inferior_ptid.
6097
18493a00
PA
60982020-06-18 Pedro Alves <palves@redhat.com>
6099
6100 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6101 of writing to inferior_ptid.
6102 (scoped_restore_exited_inferior): Delete.
6103 (handle_vfork_child_exec_or_exit): Simplify using
6104 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6105 instead of writing to inferior_ptid.
6106 (THREAD_STOPPED_BY): Delete.
6107 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6108 (thread_stopped_by_hw_breakpoint): Delete.
6109 (save_waitstatus): Use
6110 scoped_restore_current_thread+switch_to_thread, and call
6111 target_stopped_by_watchpoint instead of
6112 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6113 instead of thread_stopped_by_sw_breakpoint, and
6114 target_stopped_by_hw_breakpoint instead of
6115 thread_stopped_by_hw_breakpoint.
6116 (handle_inferior_event)
6117 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6118 inferior_ptid directly, nor
6119 set_current_inferior/set_current_program_space. Use
6120 switch_to_thread / switch_to_inferior_no_thread instead.
6121
a0776b13
PA
61222020-06-18 Pedro Alves <palves@redhat.com>
6123
6124 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6125 instead of writing to inferior_ptid.
6126
6155c136
PA
61272020-06-18 Pedro Alves <palves@redhat.com>
6128
6129 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6130 added thread.
6131 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6132 to the added thread.
6133 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6134 instead of writing to inferior_ptid.
6135
c5316fc6
PA
61362020-06-18 Pedro Alves <palves@redhat.com>
6137
6138 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6139 (register_to_value_test): Mock a program_space too. Heap-allocate
6140 the address space. Don't write to inferior_ptid. Use
6141 switch_to_thread instead.
6142
8df01799
PA
61432020-06-18 Pedro Alves <palves@redhat.com>
6144
6145 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6146 Delete.
6147 (find_signalled_thread()): New, factored out from
6148 linux_make_corefile_notes and adjusted to handle exited threads.
6149 (linux_make_corefile_notes): Adjust to use the new
6150 find_signalled_thread.
6151
41792d68
PA
61522020-06-18 Pedro Alves <palves@redhat.com>
6153
6154 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6155 of saving/restoring inferior_ptid.
6156
612f258a
TT
61572020-06-17 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6160 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6161 declare.
6162 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6163
efb763a5
SM
61642020-06-15 Simon Marchi <simon.marchi@efficios.com>
6165
6166 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6167 of partial symtabs.
6168
2951f6c0
SM
61692020-06-17 Simon Marchi <simon.marchi@efficios.com>
6170
6171 * regformats/reg-arm.dat: Remove.
6172 * regformats/reg-bfin.dat: Remove.
6173 * regformats/reg-cris.dat: Remove.
6174 * regformats/reg-crisv32.dat: Remove.
6175 * regformats/reg-m32r.dat: Remove.
6176 * regformats/reg-tilegx.dat: Remove.
6177 * regformats/reg-tilegx32.dat: Remove.
6178
7d458ea5
SM
61792020-06-17 Simon Marchi <simon.marchi@efficios.com>
6180
6181 * features/Makefile (WHICH): Remove arm files.
6182 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6183 * regformats/arm/arm-with-neon.dat: Remove.
6184 * regformats/arm/arm-with-vfpv2.dat: Remove.
6185 * regformats/arm/arm-with-vfpv3.dat: Remove.
6186
3af96c0d
SM
61872020-06-17 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * features/Makefile (XMLTOC): Remove rx.xml.
6190
b25e22fd
PA
61912020-06-17 Pedro Alves <palves@redhat.com>
6192
6193 * gdbthread.h (thread_control_state) <trap_expected> Update
6194 comments.
6195
a78a19b1
AB
61962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6197
6198 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6199 ada_language::lookup_symbol_nonlocal.
6200 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6201 (ada_language::lookup_symbol_nonlocal): New member function,
6202 implementation from ada_lookup_symbol_nonlocal.
6203 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6204 initializer.
6205 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6206 initializer.
6207 (cplus_language::lookup_symbol_nonlocal): New member function.
6208 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6209 (minimal_language_data) Likewise.
6210 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6211 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6212 initializer.
6213 (d_language::lookup_symbol_nonlocal): New member function.
6214 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6215 initializer.
6216 (f_language::lookup_symbol_nonlocal): New member function.
6217 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6218 initializer.
6219 * language.c (unknown_language_data): Likewise.
6220 (auto_language_data): Likewise.
6221 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6222 field.
6223 (language_defn::lookup_symbol_nonlocal): New member function.
6224 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6225 initializer.
6226 * objc-lang.c (objc_language_data): Likewise.
6227 * opencl-lang.c (opencl_language_data): Likewise.
6228 * p-lang.c (pascal_language_data): Likewise.
6229 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6230 rust_language::lookup_symbol_nonlocal.
6231 (rust_language_data): Delete la_lookup_symbol_nonlocal
6232 initializer.
6233 (rust_language::lookup_symbol_nonlocal): New member function,
6234 implementation from rust_lookup_symbol_nonlocal.
6235 * symtab.c (lookup_symbol_aux): Update call to
6236 lookup_symbol_nonlocal.
6237 (basic_lookup_symbol_nonlocal): Rename to...
6238 (language_defn::lookup_symbol_nonlocal): ...this, and update
6239 header comment. Remove language_defn parameter, and replace with
6240 uses of `this'.
6241 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6242
ebe2334e
AB
62432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6246 initializer.
6247 (ada_language::value_print_inner): New member function.
6248 * c-lang.c (c_language_data): Delete la_value_print_inner
6249 initializer.
6250 (cplus_language_data): Likewise.
6251 (asm_language_data): Likewise.
6252 (minimal_language_data): Likewise.
6253 * d-lang.c (d_language_data): Likewise.
6254 (d_language::value_print_inner): New member function.
6255 * f-lang.c (f_language_data): Delete la_value_print_inner
6256 initializer.
6257 (f_language::value_print_inner): New member function.
6258 * f-lang.h (f_value_print_innner): Rename to...
6259 (f_value_print_inner): ...this (note spelling of 'inner').
6260 * f-valprint.c (f_value_print_innner): Rename to...
6261 (f_value_print_inner): ...this (note spelling of 'inner').
6262 * go-lang.c (go_language_data): Delete la_value_print_inner
6263 initializer.
6264 (go_language::value_print_inner): New member function.
6265 * language.c (language_defn::value_print_inner): Define new member
6266 function.
6267 (unk_lang_value_print_inner): Delete.
6268 (unknown_language_data): Delete la_value_print_inner initializer.
6269 (unknown_language::value_print_inner): New member function.
6270 (auto_language_data): Delete la_value_print_inner initializer.
6271 (auto_language::value_print_inner): New member function.
6272 * language.h (language_data): Delete la_value_print_inner field.
6273 (language_defn::value_print_inner): Delcare new member function.
6274 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6275 initializer.
6276 (m2_language::value_print_inner): New member function.
6277 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6278 initializer.
6279 * opencl-lang.c (opencl_language_data): Likewise.
6280 * p-lang.c (pascal_language_data): Likewise.
6281 (pascal_language::value_print_inner): New member function.
6282 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6283 initializer.
6284 (rust_language::value_print_inner): New member function.
6285 * valprint.c (do_val_print): Update call to value_print_inner.
6286
a1d1fa3e
AB
62872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6288
6289 * ada-lang.c (ada_language_data): Delete la_value_print
6290 initializer.
6291 (ada_language::value_print): New member function.
6292 * c-lang.c (c_language_data): Delete la_value_print initializer.
6293 (cplus_language_data): Likewise.
6294 (asm_language_data): Likewise.
6295 (minimal_language_data): Likewise.
6296 * d-lang.c (d_language_data): Likewise.
6297 * f-lang.c (f_language_data): Likewise.
6298 * go-lang.c (go_language_data): Likewise.
6299 * language.c (unk_lang_value_print): Delete.
6300 (language_defn::value_print): Define new member function.
6301 (unknown_language_data): Delete la_value_print initializer.
6302 (unknown_language::value_print): New member function.
6303 (auto_language_data): Delete la_value_print initializer.
6304 (auto_language::value_print): New member function.
6305 * language.h (language_data): Delete la_value_print field.
6306 (language_defn::value_print): Declare new member function.
6307 (LA_VALUE_PRINT): Update call to value_print.
6308 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6309 * objc-lang.c (objc_language_data): Likewise.
6310 * opencl-lang.c (opencl_language_data): Likewise.
6311 * p-lang.c (pascal_language_data): Likewise.
6312 (pascal_language::value_print): New member function.
6313 * rust-lang.c (rust_language_data): Delete la_value_print
6314 initializer.
6315
f16a9f57
AB
63162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * ada-lang.c (ada_watch_location_expression): Rename to
6319 ada_language::watch_location_expression.
6320 (ada_language_data): Delete la_watch_location_expression
6321 initializer.
6322 (ada_language::watch_location_expression): New member function,
6323 implementation from ada_watch_location_expression.
6324 * breakpoint.c (watch_command_1): Update call to
6325 watch_location_expression.
6326 * c-lang.c (c_watch_location_expression): Rename to
6327 language_defn::watch_location_expression.
6328 (c_language_data): Delete la_watch_location_expression
6329 initializer.
6330 (cplus_language_data): Likewise.
6331 (asm_language_data): Likewise.
6332 (minimal_language_data): Likewise.
6333 * c-lang.h (c_watch_location_expression): Delete declaration.
6334 * d-lang.c (d_language_data): Delete la_watch_location_expression
6335 initializer.
6336 * f-lang.c (f_language_data): Likewise.
6337 * go-lang.c (go_language_data): Likewise.
6338 * language.c (language_defn::watch_location_expression): Member
6339 function implementation from c_watch_location_expression.
6340 (unknown_language_data): Delete la_watch_location_expression
6341 initializer.
6342 (auto_language_data): Likewise.
6343 * language.h (language_data): Delete la_watch_location_expression
6344 field.
6345 (language_defn::watch_location_expression): Declare new member
6346 function.
6347 * m2-lang.c (m2_language_data): Delete
6348 la_watch_location_expression initializer.
6349 * objc-lang.c (objc_language_data): Likewise.
6350 * opencl-lang.c (opencl_language_data): Likewise.
6351 * p-lang.c (pascal_language_data): Likewise.
6352 * rust-lang.c (rust_watch_location_expression): Rename to
6353 rust_language::watch_location_expression.
6354 (rust_language_data): Delete la_watch_location_expression
6355 initializer.
6356 (rust_language::watch_location_expression): New member function,
6357 implementation from rust_watch_location_expression.
6358
7e56227d
AB
63592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6360
6361 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6362 ada_language::collect_symbol_completion_matches.
6363 (ada_language_data): Delete la_collect_symbol_completion_matches
6364 initializer.
6365 (ada_language::collect_symbol_completion_matches): New member
6366 function, implementation from
6367 ada_collect_symbol_completion_matches.
6368 * c-lang.c (c_language_data): Delete
6369 la_collect_symbol_completion_matches initializer.
6370 (cplus_language_data): Likewise.
6371 (asm_language_data): Likewise.
6372 (minimal_language_data): Likewise.
6373 * d-lang.c (d_language_data): Likewise.
6374 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6375 f_language::collect_symbol_completion_matches.
6376 (f_language_data): Delete la_collect_symbol_completion_matches
6377 initializer.
6378 (f_language::collect_symbol_completion_matches) New member
6379 function, implementation from f_collect_symbol_completion_matches.
6380 * go-lang.c (go_language_data): Delete
6381 la_collect_symbol_completion_matches initializer.
6382 * language.c (unknown_language_data): Likewise.
6383 (auto_language_data): Likewise.
6384 * language.h (language_data): Delete
6385 la_collect_symbol_completion_matches field.
6386 (language_defn::collect_symbol_completion_matches): New member
6387 function.
6388 * m2-lang.c (m2_language_data): Delete
6389 la_collect_symbol_completion_matches initializer.
6390 * objc-lang.c (objc_language_data): Likewise.
6391 * opencl-lang.c (opencl_language_data): Likewise.
6392 * p-lang.c (pascal_language_data): Likewise.
6393 * rust-lang.c (rust_language_data): Likewise.
6394 * symtab.c (default_collect_symbol_completion_matches): Delete.
6395 (collect_symbol_completion_matches): Update call to
6396 collect_symbol_completion_matches.
6397 (collect_symbol_completion_matches_type): Likewise.
6398 * symtab.h (default_collect_symbol_completion_matches): Delete
6399 declaration.
6400
53fc67f8
AB
64012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6402
6403 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6404 (ada_language_data): Delete la_word_break_characters initializer.
6405 (ada_language::word_break_characters): New member function.
6406 * c-lang.c (c_language_data): Delete la_word_break_characters
6407 initializer.
6408 (cplus_language_data): Likewise.
6409 (asm_language_data): Likewise.
6410 (minimal_language_data): Likewise.
6411 * completer.c: Update global comment.
6412 (advance_to_expression_complete_word_point): Update call to
6413 word_break_characters.
6414 (complete_files_symbols): Likewise.
6415 (complete_line_internal_1): Likewise.
6416 (default_completer_handle_brkchars): Likewise.
6417 (skip_quoted_chars): Likewise.
6418 * d-lang.c (d_language_data): Delete la_word_break_characters
6419 initializer.
6420 * f-lang.c (f_word_break_characters): Delete.
6421 (f_language_data): Delete la_word_break_characters initializer.
6422 (f_language::word_break_characters): New member function.
6423 * go-lang.c (go_language_data): Delete la_word_break_characters
6424 initializer.
6425 * language.c (unknown_language_data): Likewise.
6426 (auto_language_data): Likewise.
6427 * language.h (default_word_break_characters): Move declaration to
6428 earlier in the file.
6429 (language_data): Delete la_word_break_characters field.
6430 (language_defn::word_break_characters): New member function.
6431 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6432 initializer.
6433 * objc-lang.c (objc_language_data): Likewise.
6434 * opencl-lang.c (opencl_language_data): Likewise.
6435 * p-lang.c (pascal_language_data): Likewise.
6436 * rust-lang.c (rust_language_data): Likewise.
6437
c9debfb9
AB
64382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6441 (ada_language_data): Delete la_get_symbol_name_matcher
6442 initializer.
6443 (language_defn::get_symbol_name_matcher_inner): New member
6444 function.
6445 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6446 initializer.
6447 (cplus_language_data): Likewise.
6448 (cplus_language::get_symbol_name_matcher_inner): New member
6449 function.
6450 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6451 (minimal_language_data): Likewise.
6452 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6453 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6454 initializer.
6455 * dictionary.c (iter_match_first_hashed): Update call to
6456 get_symbol_name_matcher.
6457 (iter_match_next_hashed): Likewise.
6458 (iter_match_next_linear): Likewise.
6459 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6460 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6461 initializer.
6462 (f_language::get_symbol_name_matcher_inner): New member function.
6463 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6464 initializer.
6465 * language.c (default_symbol_name_matcher): Update header comment,
6466 make static.
6467 (language_defn::get_symbol_name_matcher): New definition.
6468 (language_defn::get_symbol_name_matcher_inner): Likewise.
6469 (get_symbol_name_matcher): Delete.
6470 (unknown_language_data): Delete la_get_symbol_name_matcher
6471 initializer.
6472 (auto_language_data): Likewise.
6473 * language.h (language_data): Delete la_get_symbol_name_matcher
6474 field.
6475 (language_defn::get_symbol_name_matcher): New member function.
6476 (language_defn::get_symbol_name_matcher_inner): Likewise.
6477 (default_symbol_name_matcher): Delete declaration.
6478 * linespec.c (find_methods): Update call to
6479 get_symbol_name_matcher.
6480 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6481 initializer.
6482 * minsyms.c (lookup_minimal_symbol): Update call to
6483 get_symbol_name_matcher.
6484 (iterate_over_minimal_symbols): Likewise.
6485 * objc-lang.c (objc_language_data): Delete
6486 la_get_symbol_name_matcher initializer.
6487 * opencl-lang.c (opencl_language_data): Likewise.
6488 * p-lang.c (pascal_language_data): Likewise.
6489 * psymtab.c (psymbol_name_matches): Update call to
6490 get_symbol_name_matcher.
6491 * rust-lang.c (rust_language_data): Delete
6492 la_get_symbol_name_matcher initializer.
6493 * symtab.c (symbol_matches_search_name): Update call to
6494 get_symbol_name_matcher.
6495 (compare_symbol_name): Likewise.
6496
9a49ad8c
AB
64972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * ada-lang.c (ada_language_data): Delete la_compute_program
6500 initializer.
6501 * c-lang.c (c_language_data): Likewise.
6502 (c_language::compute_program): New member function.
6503 (cplus_language_data): Delete la_compute_program initializer.
6504 (cplus_language::compute_program): New member function.
6505 (asm_language_data): Delete la_compute_program initializer.
6506 (minimal_language_data): Likewise.
6507 * c-lang.h (c_compute_program): Update comment.
6508 (cplus_compute_program): Likewise.
6509 * compile/compile-c-support.c (c_compute_program): Likewise.
6510 (cplus_compute_program): Likewise.
6511 * compile/compile.c (compile_to_object): Update call to
6512 la_compute_program.
6513 * d-lang.c (d_language_data): Delete la_compute_program
6514 initializer.
6515 * f-lang.c (f_language_data): Likewise.
6516 * go-lang.c (go_language_data): Likewise.
6517 * language.c (unknown_language_data): Likewise.
6518 (auto_language_data): Likewise.
6519 * language.h (language_data): Delete la_compute_program field.
6520 (language_defn::compute_program): New member function.
6521 * m2-lang.c (m2_language_data): Delete la_compute_program
6522 initializer.
6523 * objc-lang.c (objc_language_data): Likewise.
6524 * opencl-lang.c (opencl_language_data): Likewise.
6525 * p-lang.c (pascal_language_data): Likewise.
6526 * rust-lang.c (rust_language_data): Likewise.
6527
eff93b4d
AB
65282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * ada-lang.c (ada_language_data) Delete
6531 la_class_name_from_physname initializer.
6532 * c-lang.c (c_language_data): Likewise.
6533 (cplus_language_data): Likewise.
6534 (cplus_language::class_name_from_physname): New member function.
6535 (asm_language_data): Delete la_class_name_from_physname
6536 initializer.
6537 (minimal_language_data): Likewise.
6538 * d-lang.c (d_language_data): Likewise.
6539 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6540 method on language_defn class.
6541 (guess_full_die_structure_name): Likewise.
6542 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6543 initializer.
6544 * go-lang.c (go_language_data): Likewise.
6545 * language.c (language_class_name_from_physname): Delete.
6546 (unk_lang_class_name): Delete.
6547 (unknown_language_data): Delete la_class_name_from_physname
6548 initializer.
6549 (auto_language_data): Likewise.
6550 * language.h (language_data): Delete la_class_name_from_physname
6551 field.
6552 (language_defn::class_name_from_physname): New function.
6553 (language_class_name_from_physname): Delete declaration.
6554 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6555 initializer.
6556 * objc-lang.c (objc_language_data): Likewise.
6557 * opencl-lang.c (opencl_language_data): Likewise.
6558 * p-lang.c (pascal_language_data): Likewise.
6559 * rust-lang.c (rust_language_data): Likewise.
6560
de543742
TT
65612020-06-16 Tom Tromey <tom@tromey.com>
6562
6563 * tui/tui-data.h (STATUS_NAME): New macro.
6564 * tui/tui-layout.c (tui_remove_some_windows)
6565 (initialize_known_windows, tui_register_window)
6566 (tui_layout_split::remove_windows, initialize_layouts)
6567 (tui_new_layout_command): Don't use hard-coded window names.
6568
a350efd4
TT
65692020-06-16 Tom Tromey <tom@tromey.com>
6570
6571 PR tui/25348:
6572 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6573 tui_initialize_readline. Only run once. Call rl_initialize.
6574 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6575 tui_initialize_readline.
6576 * tui/tui-io.c (tui_setup_io): Call
6577 tui_ensure_readline_initialized.
6578 * tui/tui-interp.c (tui_interp::init): Update.
6579
39ec0490
TT
65802020-06-16 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6583 Also preserve the status window.
6584
d2d1ea20
TT
65852020-06-16 Tom Tromey <tom@tromey.com>
6586
6587 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6588 where m_window==nullptr.
6589
66920317
TT
65902020-06-15 Tom Tromey <tromey@adacore.com>
6591
6592 * windows-nat.c (windows_nat::handle_output_debug_string):
6593 Update.
6594 (windows_nat::handle_ms_vc_exception): Update.
6595 * target.h (target_read_string): Change API.
6596 * target.c (target_read_string): Change API.
6597 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6598 Update.
6599 * solib-frv.c (frv_current_sos): Update.
6600 * solib-dsbt.c (dsbt_current_sos): Update.
6601 * solib-darwin.c (darwin_current_sos): Update.
6602 * linux-thread-db.c (inferior_has_bug): Update.
6603 * expprint.c (print_subexp_standard): Update.
6604 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6605 (ada_exception_message_1): Update.
6606
a5d871dd
TT
66072020-06-15 Tom Tromey <tromey@adacore.com>
6608
6609 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6610
670e35fa
TT
66112020-06-15 Tom Tromey <tromey@adacore.com>
6612
6613 * valprint.c (read_string): Update comment.
6614 * target.c (MIN): Remove.
6615 (target_read_string): Rewrite.
6616
f5272a3b
TT
66172020-06-15 Tom Tromey <tromey@adacore.com>
6618
6619 * corefile.c (read_memory_string): Remove.
6620 * ada-valprint.c (ada_value_print_ptr): Update.
6621 * ada-lang.h (ada_tag_name): Change return type.
6622 * ada-lang.c (type_from_tag): Update.
6623 (ada_tag_name_from_tsd): Change return type. Use
6624 target_read_string.
6625 (ada_tag_name): Likewise.
6626 * gdbcore.h (read_memory_string): Don't declare.
6627
2c074f49
HD
66282020-06-14 Hannes Domani <ssbssa@yahoo.de>
6629
6630 * symtab.c (rbreak_command): Ignore Windows drive colon.
6631
6a17d503
SM
66322020-06-12 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * NEWS: Mention removed GDBserver host support.
6635
453c733f
NC
66362020-06-12 Nelson Chu <nelson.chu@sifive.com>
6637
6638 * features/riscv/rebuild-csr-xml.sh: Updated.
6639
2b4e6a3f
TT
66402020-06-11 Tom Tromey <tom@tromey.com>
6641
6642 PR gdb/18318:
6643 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6644
4412332f
JG
66452020-06-09 Jonny Grant <jg@jguk.org>
66462020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6647
6648 * main.c (captured_main_1): Don't print new line after help.
6649 (print_gdb_help): add mailing list and IRC channel information
6650 to --help. Add new lines between items in the footer. Remove
6651 quotes around bug url.
6652
2f33032a
KS
66532020-06-11 Keith Seitz <keiths@redhat.com>
6654
6655 PR gdb/21356
6656 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6657 Resolve typedefs for type length calculations.
6658
7ab96794
TV
66592020-06-10 Tom de Vries <tdevries@suse.de>
6660
6661 PR ada/24713
6662 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6663 (write_psymbols): Enable .gdb_index for ada.
6664 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6665 ada.
6666
e5f3ece2
TV
66672020-06-10 Tom de Vries <tdevries@suse.de>
6668
6669 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6670 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6671 namei" instead of "const char *name" argument.
6672 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6673 dw2_symtab_iter_init.
6674
940da03e
SM
66752020-06-08 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6678 to use type::field and field::type instead.
6679
b6cdac4b
SM
66802020-06-08 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6683 to use field::type instead.
6684
5d14b6e5
SM
66852020-06-08 Simon Marchi <simon.marchi@efficios.com>
6686
6687 * gdbtypes.h (struct field) <type, set_type>: New methods.
6688 Rename `type` field to...
6689 <m_type>: ... this. Change references throughout to use type or
6690 set_type methods.
6691 (FIELD_TYPE): Use field::type. Change call sites that modify
6692 the field's type to use field::set_type instead.
6693
3d967001
SM
66942020-06-08 Simon Marchi <simon.marchi@efficios.com>
6695
6696 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6697 to use type::index_type instead.
6698
262abc0d
SM
66992020-06-08 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6702 methods.
6703 (TYPE_INDEX_TYPE): Use type::index_type.
6704 * gdbtypes.c (create_array_type_with_stride): Likewise.
6705
82836c92
TT
67062020-06-07 Tom Tromey <tom@tromey.com>
6707
6708 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6709 parameter.
6710 (generic_value_print): Update.
6711
940dace9
AB
67122020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 Revert commit 982a38f60b0.
6715 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6716
982a38f6
AB
67172020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6720 avoid use after free.
6721
82f06518
TV
67222020-06-05 Tom de Vries <tdevries@suse.de>
6723
6724 * NEWS: Fix typos.
6725
f8c41851
SM
67262020-06-04 Simon Marchi <simon.marchi@efficios.com>
6727
6728 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6729 the per_bfd object.
6730 (dwarf2_read_debug_names): Likewise.
6731 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6732 object when re-using a per_bfd object with an index.
6733
f9b5d5ea
TV
67342020-06-03 Tom de Vries <tdevries@suse.de>
6735
6736 PR symtab/26046
6737 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6738 children for C++.
6739 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6740 DW_TAG_subprogram.
6741
f6eee2d0
AB
67422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * ada-lang.c (ada_language_data): Delete skip_trampoline
6745 initializer.
6746 * c-lang.c (c_language_data): Likewise.
6747 (cplus_language_data): Likewise.
6748 (cplus_language::skip_trampoline): New member function.
6749 (asm_language_data): Delete skip_trampoline initializer.
6750 (minimal_language_data): Likewise.
6751 * d-lang.c (d_language_data): Likewise.
6752 * f-lang.c (f_language_data): Likewise.
6753 * go-lang.c (go_language_data): Likewise.
6754 * language.c (unk_lang_trampoline): Delete function.
6755 (skip_language_trampoline): Update.
6756 (unknown_language_data): Delete skip_trampoline initializer.
6757 (auto_language_data): Likewise.
6758 * language.h (language_data): Delete skip_trampoline field.
6759 (language_defn::skip_trampoline): New function.
6760 * m2-lang.c (m2_language_data): Delete skip_trampoline
6761 initializer.
6762 * objc-lang.c (objc_skip_trampoline): Delete function, move
6763 implementation to objc_language::skip_trampoline.
6764 (objc_language_data): Delete skip_trampoline initializer.
6765 (objc_language::skip_trampoline): New member function with
6766 implementation from objc_skip_trampoline.
6767 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6768 initializer.
6769 * p-lang.c (pascal_language_data): Likewise.
6770 * rust-lang.c (rust_language_data): Likewise.
6771
0a50df5d
AB
67722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6775 (ada_language::demangle): New member function.
6776 * c-lang.c (c_language_data): Delete la_demangle initializer.
6777 (cplus_language_data): Delete la_demangle initializer.
6778 (cplus_language::demangle): New member function.
6779 (asm_language_data): Delete la_demangle initializer.
6780 (minimal_language_data): Delete la_demangle initializer.
6781 * d-lang.c (d_language_data): Delete la_demangle initializer.
6782 (d_language::demangle): New member function.
6783 * f-lang.c (f_language_data): Delete la_demangle initializer.
6784 (f_language::demangle): New member function.
6785 * go-lang.c (go_language_data): Delete la_demangle initializer.
6786 (go_language::demangle): New member function.
6787 * language.c (language_demangle): Update.
6788 (unk_lang_demangle): Delete.
6789 (unknown_language_data): Delete la_demangle initializer.
6790 (unknown_language::demangle): New member function.
6791 (auto_language_data): Delete la_demangle initializer.
6792 (auto_language::demangle): New member function.
6793 * language.h (language_data): Delete la_demangle field.
6794 (language_defn::demangle): New function.
6795 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6796 * objc-lang.c (objc_language_data): Delete la_demangle
6797 initializer.
6798 (objc_language::demangle): New member function.
6799 * opencl-lang.c (opencl_language_data): Delete la_demangle
6800 initializer.
6801 * p-lang.c (pascal_language_data): Likewise.
6802 * rust-lang.c (rust_language_data): Likewise.
6803 (rust_language::demangle): New member function.
6804
fbfb0a46
AB
68052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6806
6807 * ada-lang.c (ada_language_data): Delete la_print_type
6808 initializer.
6809 (ada_language::print_type): New member function.
6810 * c-lang.c (c_language_data): Delete la_print_type initializer.
6811 (c_language::print_type): New member function.
6812 (cplus_language_data): Delete la_print_type initializer.
6813 (cplus_language::print_type): New member function.
6814 (asm_language_data): Delete la_print_type initializer.
6815 (asm_language::print_type): New member function.
6816 (minimal_language_data): Delete la_print_type initializer.
6817 (minimal_language::print_type): New member function.
6818 * d-lang.c (d_language_data): Delete la_print_type initializer.
6819 (d_language::print_type): New member function.
6820 * f-lang.c (f_language_data): Delete la_print_type initializer.
6821 (f_language::print_type): New member function.
6822 * go-lang.c (go_language_data): Delete la_print_type initializer.
6823 (go_language::print_type): New member function.
6824 * language.c (unk_lang_print_type): Delete.
6825 (unknown_language_data): Delete la_print_type initializer.
6826 (unknown_language::print_type): New member function.
6827 (auto_language_data): Delete la_print_type initializer.
6828 (auto_language::print_type): New member function.
6829 * language.h (language_data): Delete la_print_type field.
6830 (language_defn::print_type): New function.
6831 (LA_PRINT_TYPE): Update.
6832 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6833 (m2_language::print_type): New member function.
6834 * objc-lang.c (objc_language_data): Delete la_print_type
6835 initializer.
6836 (objc_language::print_type): New member function.
6837 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6838 to opencl_language::print_type.
6839 (opencl_language_data): Delete la_print_type initializer.
6840 (opencl_language::print_type): New member function, implementation
6841 from opencl_print_type.
6842 * p-lang.c (pascal_language_data): Delete la_print_type
6843 initializer.
6844 (pascal_language::print_type): New member function.
6845 * rust-lang.c (rust_print_type): Delete, implementation moved to
6846 rust_language::print_type.
6847 (rust_language_data): Delete la_print_type initializer.
6848 (rust_language::print_type): New member function, implementation
6849 from rust_print_type.
6850
6f827019
AB
68512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6852
6853 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6854 implementation moves to...
6855 (ada_language::sniff_from_mangled_name): ...here. Update return
6856 type.
6857 (ada_language_data): Delete la_sniff_from_mangled_name
6858 initializer.
6859 * c-lang.c (c_language_data): Likewise.
6860 (cplus_language_data): Likewise.
6861 (cplus_language::sniff_from_mangled_name): New member function,
6862 implementation taken from gdb_sniff_from_mangled_name.
6863 (asm_language_data): Delete la_sniff_from_mangled_name
6864 initializer.
6865 (minimal_language_data): Likewise.
6866 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6867 implementation moves to cplus_language::sniff_from_mangled_name.
6868 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6869 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6870 moves to...
6871 (d_language::sniff_from_mangled_name): ...here.
6872 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6873 * f-lang.c (f_language_data): Likewise.
6874 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6875 moves to...
6876 (go_language::sniff_from_mangled_name): ...here.
6877 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6878 * language.c (language_sniff_from_mangled_name): Delete.
6879 (unknown_language_data): Delete la_sniff_from_mangled_name
6880 initializer.
6881 (auto_language_data): Likewise.
6882 * language.h (language_data): Delete la_sniff_from_mangled_name
6883 field.
6884 (language_defn::sniff_from_mangled_name): New function.
6885 (language_sniff_from_mangled_name): Delete declaration.
6886 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6887 field.
6888 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6889 implementation moves to...
6890 (objc_language::sniff_from_mangled_name): ...here.
6891 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6892 * opencl-lang.c (opencl_language_data): Likewise.
6893 * p-lang.c (pascal_language_data): Likewise.
6894 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6895 implementation moves to...
6896 (rust_language::sniff_from_mangled_name): ...here.
6897 (rust_language_data): Delete la_sniff_from_mangled_name
6898 initializer.
6899 * symtab.c (symbol_find_demangled_name): Call
6900 sniff_from_mangled_name member function.
6901
fb8006fd
AB
69022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6903
6904 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6905 initializer.
6906 * c-lang.c (c_language_data): Likewise.
6907 (cplus_language_data): Likewise.
6908 (cplus_language::search_name_hash): New member function.
6909 (asm_language_data): Delete la_search_name_hash initializer.
6910 (minimal_language_data): Likewise.
6911 * d-lang.c (d_language_data): Likewise.
6912 * dictionary.c (default_search_name_hash): Rename to...
6913 (language_defn::search_name_hash): ...this.
6914 * f-lang.c (f_language_data): Likewise.
6915 (f_language::search_name_hash): New member function.
6916 * go-lang.c (go_language_data): Delete la_search_name_hash
6917 initializer.
6918 * language.c (unknown_language_data): Likewise.
6919 (auto_language_data): Likewise.
6920 * language.h (struct language_data): Delete la_search_name_hash
6921 field.
6922 (language_defn::search_name_hash): Declare new member function.
6923 (default_search_name_hash): Delete declaration.
6924 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6925 initializer.
6926 * objc-lang.c (objc_language_data): Likewise.
6927 * opencl-lang.c (opencl_language_data): Likewise.
6928 * p-lang.c (pascal_language_data): Likewise.
6929 * rust-lang.c (rust_language_data): Likewise.
6930 * symtab.c (search_name_hash): Update call.
6931
8e25bafe
AB
69322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6935 initializer.
6936 * c-lang.c (class compile_instance): Declare.
6937 (c_language_data): Delete la_get_compile_instance initializer.
6938 (c_language::get_compile_instance): New member function.
6939 (cplus_language_data): Delete la_get_compile_instance initializer.
6940 (cplus_language::get_compile_instance): New member function.
6941 (asm_language_data): Delete la_get_compile_instance initializer.
6942 (minimal_language_data): Likewise.
6943 * c-lang.h (c_get_compile_context): Update comment.
6944 (cplus_get_compile_context): Update comment.
6945 * compile/compile.c (compile_to_object): Update calls, don't rely
6946 on function pointer being NULL.
6947 * d-lang.c (d_language_data): Delete la_get_compile_instance
6948 initializer.
6949 * f-lang.c (f_language_data): Likewise.
6950 * go-lang.c (go_language_data): Likewise.
6951 * language.c (unknown_language_data): Likewise.
6952 (auto_language_data): Likewise.
6953 * language.h (language_data): Delete la_get_compile_instance field.
6954 (language_defn::get_compile_instance): New member function.
6955 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6956 initializer.
6957 * objc-lang.c (objc_language_data): Likewise.
6958 * opencl-lang.c (opencl_language_data): Likewise.
6959 * p-lang.c (pascal_language_data): Likewise.
6960 * rust-lang.c (rust_language_data): Likewise.
6961
4009ee92
AB
69622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * ada-lang.c (ada_add_all_symbols): Update comment.
6965 (ada_iterate_over_symbols): Delete, move implementation to...
6966 (ada_language::iterate_over_symbols): ...here, a new member
6967 function, rewrite to use range based for loop.
6968 (ada_language_data): Delete la_iterate_over_symbols initializer.
6969 * c-lang.c (c_language_data): Likewise.
6970 (cplus_language_data): Likewise.
6971 (asm_language_data): Likewise.
6972 (minimal_language_data): Likewise.
6973 * d-lang.c (d_language_data): Likewise.
6974 * f-lang.c (f_language_data): Likewise.
6975 * go-lang.c (go_language_data): Likewise.
6976 * language.c (unknown_language_data): Likewise.
6977 (auto_language_data): Likewise.
6978 * language.h (language_data): Delete la_iterate_over_symbols field.
6979 (language_defn::iterate_over_symbols): New member function.
6980 (LA_ITERATE_OVER_SYMBOLS): Update.
6981 * linespec.c (iterate_over_all_matching_symtabs): Update.
6982 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6983 initializer.
6984 * objc-lang.c (objc_language_data): Likewise.
6985 * opencl-lang.c (opencl_language_data): Likewise.
6986 * p-lang.c (pascal_language_data): Likewise.
6987 * rust-lang.c (rust_language_data): Likewise.
6988
54f4ca46
AB
69892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6990
6991 * ada-lang.c (ada_language_data): Delete
6992 la_lookup_transparent_type initializer.
6993 * c-lang.c (c_language_data): Likewise.
6994 (cplus_language_data): Likewise.
6995 (cplus_language::lookup_transparent_type): New member function.
6996 (asm_language_data): Delete la_lookup_transparent_type
6997 initializer.
6998 (minimal_language_data): Likewise.
6999 * d-lang.c (d_language_data): Likewise.
7000 * f-lang.c (f_language_data): Likewise.
7001 * go-lang.c (go_language_data): Likewise.
7002 * language.c (unknown_language_data): Likewise.
7003 (auto_language_data): Likewise.
7004 * language.h (struct language_data): Delete
7005 la_lookup_transparent_type field.
7006 (language_defn::lookup_transparent_type): New member function.
7007 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7008 initializer.
7009 * objc-lang.c (objc_language_data): Likewise.
7010 * opencl-lang.c (opencl_language_data): Likewise.
7011 * p-lang.c (pascal_language_data): Likewise.
7012 * rust-lang.c (rust_language_data): Likewise.
7013 * symtab.c (symbol_matches_domain): Update call.
7014
1fb314aa
AB
70152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * ada-lang.c (ada_language_arch_info): Delete function, move
7018 implementation to...
7019 (ada_language::language_arch_info): ...here, a new member
7020 function.
7021 (ada_language_data): Delete la_language_arch_info.
7022 * c-lang.c (c_language_data): Likewise.
7023 (c_language::language_arch_info): New member function.
7024 (cplus_language_arch_info): Delete function, move
7025 implementation to...
7026 (cplus_language::language_arch_info): ...here, a new member
7027 function.
7028 (cplus_language_data): Delete la_language_arch_info.
7029 (asm_language_data): Likewise.
7030 (asm_language::language_arch_info): New member function.
7031 (minimal_language_data): Delete la_language_arch_info.
7032 (minimal_language::language_arch_info): New member function.
7033 * d-lang.c (d_language_arch_info): Delete function, move
7034 implementation to...
7035 (d_language::language_arch_info): ...here, a new member
7036 function.
7037 (d_language_data): Delete la_language_arch_info.
7038 * f-lang.c (f_language_arch_info): Delete function, move
7039 implementation to...
7040 (f_language::language_arch_info): ...here, a new member
7041 function.
7042 (f_language_data): Delete la_language_arch_info.
7043 * go-lang.c (go_language_arch_info): Delete function, move
7044 implementation to...
7045 (go_language::language_arch_info): ...here, a new member
7046 function.
7047 (go_language_data): Delete la_language_arch_info.
7048 * language.c (unknown_language_data): Likewise.
7049 (unknown_language::language_arch_info): New member function.
7050 (auto_language_data): Delete la_language_arch_info.
7051 (auto_language::language_arch_info): New member function.
7052 (language_gdbarch_post_init): Update call to
7053 la_language_arch_info.
7054 * language.h (language_data): Delete la_language_arch_info
7055 function pointer.
7056 (language_defn::language_arch_info): New function.
7057 * m2-lang.c (m2_language_arch_info): Delete function, move
7058 implementation to...
7059 (m2_language::language_arch_info): ...here, a new member
7060 function.
7061 (m2_language_data): Delete la_language_arch_info.
7062 * objc-lang.c (objc_language_arch_info): Delete function, move
7063 implementation to...
7064 (objc_language::language_arch_info): ...here, a new member
7065 function.
7066 (objc_language_data): Delete la_language_arch_info.
7067 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7068 implementation to...
7069 (opencl_language::language_arch_info): ...here, a new member
7070 function.
7071 (opencl_language_data): Delete la_language_arch_info.
7072 * p-lang.c (pascal_language_arch_info): Delete function, move
7073 implementation to...
7074 (pascal_language::language_arch_info): ...here, a new member
7075 function.
7076 (pascal_language_data): Delete la_language_arch_info.
7077 * rust-lang.c (rust_language_arch_info): Delete function, move
7078 implementation to...
7079 (rust_language::language_arch_info): ...here, a new member
7080 function.
7081 (rust_language_data): Delete la_language_arch_info.
7082
48448202
AB
70832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7086 initializer.
7087 * c-lang.c (c_language_data): Likewise.
7088 (cplus_language_data): Likewise.
7089 (cplus_language::pass_by_reference_info): New method.
7090 (asm_language_data): Delete la_pass_by_reference initializer.
7091 (minimal_language_data): Likewise.
7092 * cp-abi.c (cp_pass_by_reference): Remove use of
7093 default_pass_by_reference.
7094 * d-lang.c (d_language_data): Likewise.
7095 * f-lang.c (f_language_data): Likewise.
7096 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7097 default_pass_by_reference.
7098 * go-lang.c (go_language_data): Likewise.
7099 * language.c (language_pass_by_reference): Update.
7100 (default_pass_by_reference): Delete.
7101 (unknown_language_data): Delete la_pass_by_reference
7102 initializer.
7103 (auto_language_data): Likewise.
7104 * language.h (struct language_data): Delete la_pass_by_reference
7105 field.
7106 (language_defn::pass_by_reference_info): New member function.
7107 (default_pass_by_reference): Delete declaration.
7108 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7109 initializer.
7110 * objc-lang.c (objc_language_data): Likewise.
7111 * opencl-lang.c (opencl_language_data): Likewise.
7112 * p-lang.c (pascal_language_data): Likewise.
7113 * rust-lang.c (rust_language_data): Likewise.
7114
15e5fd35
AB
71152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7116
7117 * ada-lang.c (ada_read_var_value): Delete function, move
7118 implementation to...
7119 (ada_language::read_var_value): ...here.
7120 (ada_language_data): Delete la_read_var_value initializer.
7121 * c-lang.c (c_language_data): Likewise.
7122 (cplus_language_data): Likewise.
7123 (minimal_language_data): Likewise.
7124 * d-lang.c (d_language_data): Likewise.
7125 * f-lang.c (f_language_data): Likewise.
7126 * findvar.c (default_read_var_value): Rename to...
7127 (language_defn::read_var_value): ...this.
7128 * findvar.c (read_var_value): Update header comment, and change to
7129 call member function instead of function pointer.
7130 * go-lang.c (go_language_data): Likewise.
7131 * language.c (unknown_language_data): Delete la_read_var_value
7132 initializer.
7133 (auto_language_data): Likewise.
7134 * language.h (struct language_data): Delete la_read_var_value
7135 field.
7136 (language_defn::read_var_value): New member function.
7137 (default_read_var_value): Delete declaration.
7138 * m2-lang.c (m2_language_data): Delete la_read_var_value
7139 initializer.
7140 * objc-lang.c (objc_language_data): Likewise.
7141 * opencl-lang.c (opencl_language_data): Likewise.
7142 * p-lang.c (pascal_language_data): Likewise.
7143 * rust-lang.c (rust_language_data): Likewise.
7144 * value.h (default_read_var_value): Delete declaration.
7145
5bd40f2a
AB
71462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * ada-lang.c (ada_print_array_index): Delete function, move
7149 implementation to...
7150 (ada_language::print_array_index): ...here.
7151 (ada_language_data): Delete la_print_array_index initializer.
7152 * c-lang.c (c_language_data): Likewise.
7153 (cplus_language_data): Likewise.
7154 (minimal_language_data): Likewise.
7155 * d-lang.c (d_language_data): Likewise.
7156 * f-lang.c (f_language_data): Likewise.
7157 * go-lang.c (go_language_data): Likewise.
7158 * language.c (default_print_array_index): Delete function, move
7159 implementation to...
7160 (language_defn::print_array_index): ...here.
7161 (unknown_language_data): Delete la_print_array_index initializer.
7162 (auto_language_data): Likewise.
7163 * language.h (struct language_data): Delete la_print_array_index
7164 field.
7165 (language_defn::print_array_index): New member function.
7166 (LA_PRINT_ARRAY_INDEX): Update.
7167 (default_print_array_index): Delete declaration.
7168 * m2-lang.c (m2_language_data): Delete la_print_array_index
7169 initializer.
7170 * objc-lang.c (objc_language_data): Likewise.
7171 * opencl-lang.c (opencl_language_data): Likewise.
7172 * p-lang.c (pascal_language_data): Likewise.
7173 * rust-lang.c (rust_language_data): Likewise.
7174
0874fd07
AB
71752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * gdb/ada-lang.c (ada_language_defn): Convert to...
7178 (ada_language_data): ...this.
7179 (class ada_language): New class.
7180 (ada_language_defn): New static global.
7181 * gdb/c-lang.c (c_language_defn): Convert to...
7182 (c_language_data): ...this.
7183 (class c_language): New class.
7184 (c_language_defn): New static global.
7185 (cplus_language_defn): Convert to...
7186 (cplus_language_data): ...this.
7187 (class cplus_language): New class.
7188 (cplus_language_defn): New static global.
7189 (asm_language_defn): Convert to...
7190 (asm_language_data): ...this.
7191 (class asm_language): New class.
7192 (asm_language_defn): New static global.
7193 (minimal_language_defn): Convert to...
7194 (minimal_language_data): ...this.
7195 (class minimal_language): New class.
7196 (minimal_language_defn): New static global.
7197 * gdb/d-lang.c (d_language_defn): Convert to...
7198 (d_language_data): ...this.
7199 (class d_language): New class.
7200 (d_language_defn): New static global.
7201 * gdb/f-lang.c (f_language_defn): Convert to...
7202 (f_language_data): ...this.
7203 (class f_language): New class.
7204 (f_language_defn): New static global.
7205 * gdb/go-lang.c (go_language_defn): Convert to...
7206 (go_language_data): ...this.
7207 (class go_language): New class.
7208 (go_language_defn): New static global.
7209 * gdb/language.c (unknown_language_defn): Remove declaration.
7210 (current_language): Initialize to nullptr, real initialization is
7211 moved to _initialize_language.
7212 (languages): Delete global.
7213 (language_defn::languages): Define.
7214 (set_language_command): Use language_defn::languages.
7215 (set_language): Likewise.
7216 (range_error): Likewise.
7217 (language_enum): Likewise.
7218 (language_def): Likewise.
7219 (add_set_language_command): Use language_def::languages for the
7220 language list, and language_def to lookup language pointers.
7221 (skip_language_trampoline): Use language_defn::languages.
7222 (unknown_language_defn): Convert to...
7223 (unknown_language_data): ...this.
7224 (class unknown_language): New class.
7225 (unknown_language_defn): New static global.
7226 (auto_language_defn): Convert to...
7227 (auto_language_data): ...this.
7228 (class auto_language): New class.
7229 (auto_language_defn): New static global.
7230 (language_gdbarch_post_init): Use language_defn::languages.
7231 (_initialize_language): Initialize current_language.
7232 * gdb/language.h (struct language_defn): Rename to...
7233 (struct language_data): ...this.
7234 (struct language_defn): New.
7235 (auto_language_defn): Delete.
7236 (unknown_language_defn): Delete.
7237 (minimal_language_defn): Delete.
7238 (ada_language_defn): Delete.
7239 (asm_language_defn): Delete.
7240 (c_language_defn): Delete.
7241 (cplus_language_defn): Delete.
7242 (d_language_defn): Delete.
7243 (f_language_defn): Delete.
7244 (go_language_defn): Delete.
7245 (m2_language_defn): Delete.
7246 (objc_language_defn): Delete.
7247 (opencl_language_defn): Delete.
7248 (pascal_language_defn): Delete.
7249 (rust_language_defn): Delete.
7250 * gdb/m2-lang.c (m2_language_defn): Convert to...
7251 (m2_language_data): ...this.
7252 (class m2_language): New class.
7253 (m2_language_defn): New static global.
7254 * gdb/objc-lang.c (objc_language_defn): Convert to...
7255 (objc_language_data): ...this.
7256 (class objc_language): New class.
7257 (objc_language_defn): New static global.
7258 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7259 (opencl_language_data): ...this.
7260 (class opencl_language): New class.
7261 (opencl_language_defn): New static global.
7262 * gdb/p-lang.c (pascal_language_defn): Convert to...
7263 (pascal_language_data): ...this.
7264 (class pascal_language): New class.
7265 (pascal_language_defn): New static global.
7266 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7267 language pointer, update comment format.
7268 * gdb/rust-lang.c (rust_language_defn): Convert to...
7269 (rust_language_data): ...this.
7270 (class rust_language): New class.
7271 (rust_language_defn): New static global.
7272
1313c56e
AB
72732020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7276 member variable.
7277 <m_stmt_at_address>: New member variable.
7278 (lnp_state_machine::record_line): Don't record some lines, update
7279 tracking of is_stmt at the same address.
7280 (lnp_state_machine::lnp_state_machine): Initialise new member
7281 variables.
7282
b7ed9f3d
ST
72832020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7284
7285 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7286 "-include gnu-nat-mig.h".
7287 * gnu-nat-mig.h: New file.
7288 * gnu-nat.c: Include "gnu-nat-mig.h".
7289 (exc_server, msg_reply_server, notify_server,
7290 process_reply_server): Remove declarations.
7291
14a8ad62
ST
72922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7293
7294 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7295 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7296 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7297 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7298 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7299 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7300 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7301 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7302 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7303 to gnu_nat_target class.
7304 * gnu-nat.c: Likewise.
7305 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7306 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7307 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7308 object.
7309 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7310 instead of `gnu_target'.
7311
0af5e106
ST
73122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7313
7314 * i386-gnu-tdep.c: Include "gdbcore.h"
7315 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7316 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7317 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7318 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7319 i386_gnu_sigcontext_addr): New functions
7320 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7321 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7322 tdep.
7323
078f2fc9
ST
73242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7325
7326 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7327 before fork_inferior call. Avoid calling it if target_is_pushed returns
7328 true.
7329
53dff92c
ST
73302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7331
7332 * gnu-nat.h (gnu_target): New variable declaration.
7333 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7334 gnu_target.
7335 * gnu-nat.c (gnu_target): New variable.
7336 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7337 add_thread_silent, and add_thread calls.
7338 (gnu_nat_target::create_inferior): Pass gnu_target to
7339 add_thread_silent, thread_change_ptid call.
7340 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7341 call.
7342
5a8b8627
ST
73432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7344
7345 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7346 (gnu_nat_target::find_memory_regions): Remove unused
7347 `old_address' variable.
7348
366f550a
ST
73492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7350
7351 * gnu-nat.c: Include "gdbarch.h".
7352
f14871bf
ST
73532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7354
7355 * reply_mig_hack.awk (Error return): Cast function through
7356 void *, to bypass compiler function call check.
7357
c6887cfb
ST
73582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7359
7360 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7361 $(srcdir)/reply_mig_hack.awk.
7362
6930bffe
ST
73632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7364
7365 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7366
112c22ed
JG
73672020-05-30 Jonny Grant <jg@jguk.org>
7368
7369 * configure.ac (ACX_BUGURL): change bug URL to https.
7370
f68f85b5
PA
73712020-05-30 Pedro Alves <palves@redhat.com>
7372
7373 * cp-support.c (replace_typedefs_template): New.
7374 (replace_typedefs_qualified_name): Handle
7375 DEMANGLE_COMPONENT_TEMPLATE.
7376
976ca316
SM
73772020-05-29 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7380 dwarf2/index-cache.h, dwarf2/index-write.c,
7381 dwarf2/index-write.h, dwarf2/line-header.c,
7382 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7383 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7384 variables and fields from `dwarf2_per_objfile` to just
7385 `per_objfile` throughout.
7386
989ade05
SM
73872020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7390 <push_dwarf_reg_entry_value>: Add comment.
7391
c47bae85
KB
73922020-05-28 Kevin Buettner <kevinb@redhat.com>
7393 Keith Seitz <keiths@redhat.com>
7394
7395 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7396 instead of PyEval_ReleaseLock.
7397 (class gdbpy_gil): Move to earlier in file.
7398 (finalize_python): Set gdb_python_initialized.
7399 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7400 when not initialized.
7401
44486dcf
SM
74022020-05-28 Simon Marchi <simon.marchi@efficios.com>
7403
7404 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7405 <push_dwarf_reg_entry_value>: Remove assert. Override
7406 per_objfile with caller_per_objfile.
7407
f030440d
TV
74082020-05-28 Tom de Vries <tdevries@suse.de>
7409
7410 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7411 PR gold/15646 workaround to symbol kind "type".
7412
f0fbb768
TT
74132020-05-27 Tom Tromey <tromey@adacore.com>
7414
7415 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7416
af0b2a3e
TT
74172020-05-27 Tom Tromey <tromey@adacore.com>
7418
7419 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7420 Use htab_find_with_hash.
7421 <add_abbrev>: Remove "abbrev_number" parameter.
7422 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7423 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7424 (hash_abbrev): Add comment.
7425 (abbrev_table::lookup_abbrev): Move to header file.
7426 (abbrev_table::read): Update.
7427
7d00ffec
TT
74282020-05-27 Tom Tromey <tromey@adacore.com>
7429
7430 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7431 method.
7432 <canonical_name>: New member.
7433 <raw_name>: Rename from "name".
7434 (partial_die_info): Initialize canonical_name.
7435 (scan_partial_symbols): Check raw_name.
7436 (partial_die_parent_scope, partial_die_full_name)
7437 (add_partial_symbol, add_partial_subprogram)
7438 (add_partial_enumeration, load_partial_dies): Use "name" method.
7439 (partial_die_info::name): New method.
7440 (partial_die_info::read, guess_partial_die_structure_name)
7441 (partial_die_info::fixup): Update.
7442
697bba18
TT
74432020-05-27 Tom Tromey <tromey@adacore.com>
7444
7445 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7446 <get_ref_die_offset>: Inline.
7447 <get_ref_die_offset_complaint>: New method.
7448 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7449 (attribute::get_ref_die_offset_complaint): Rename from
7450 get_ref_die_offset. Just issue complaint.
7451
c17ace43
HD
74522020-05-27 Hannes Domani <ssbssa@yahoo.de>
7453
7454 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7455
96445f0b
HD
74562020-05-27 Hannes Domani <ssbssa@yahoo.de>
7457
7458 * exec.c (exec_file_attach): Use errno value of first openp failure.
7459
ac637ec3
HD
74602020-05-27 Hannes Domani <ssbssa@yahoo.de>
7461
7462 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7463 Don't close thread handle.
7464
17ee85fc
TT
74652020-05-27 Tom Tromey <tom@tromey.com>
7466 Simon Marchi <simon.marchi@efficios.com>
7467
7468 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7469 shared_ptr.
7470 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7471 member.
7472 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7473 dwarf2_per_bfd_objfile_data_key>: New globals.
7474 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7475 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7476 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7477 shared.
7478 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7479 short-circuit when sharing.
7480 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7481 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7482
39b16f87
SM
74832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7486 to...
7487 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7488 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7489
fcf23d5b
SM
74902020-05-27 Simon Marchi <simon.marchi@efficios.com>
7491
7492 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7493 build_name_components, find_name_components_bounds>:
7494 Add per_objfile parameter.
7495 (struct mapped_index) <symbol_name_at>: Likewise.
7496 (struct mapped_debug_names): Remove constructor.
7497 <dwarf2_per_objfile>: Remove field.
7498 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7499 (mapped_index_base::find_name_components_bounds,
7500 mapped_index_base::build_name_components,
7501 dw2_expand_symtabs_matching_symbol): Likewise.
7502 (class mock_mapped_index) <symbol_name_at>: Likewise.
7503 (check_match): Likewise.
7504 (check_find_bounds_finds): Likewise.
7505 (test_mapped_index_find_name_component_bounds): Update.
7506 (CHECK_MATCH): Update.
7507 (dw2_expand_symtabs_matching): Update.
7508 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7509 per_objfile parameter.
7510 <find_vec_in_debug_names>: Likewise.
7511 <m_per_objfile>: New field.
7512 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7513 parameter.
7514 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7515 (dw2_debug_names_iterator::next): Update.
7516 (dw2_debug_names_lookup_symbol): Update.
7517 (dw2_debug_names_expand_symtabs_for_function): Update.
7518 (dw2_debug_names_map_matching_symbols): Update.
7519 (dw2_debug_names_expand_symtabs_matching): Update.
7520 (dwarf2_read_debug_names): Update.
7521
7188ed02
SM
75222020-05-27 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7525 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7526 move to dwarf2_per_objfile.
7527 <read_in_chain>: Remove.
7528 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7529 remove_all_cus, age_comp_units>: New methods.
7530 <m_dwarf2_cus>: New member.
7531 (struct dwarf2_per_cu_data) <cu>: Remove.
7532 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7533 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7534 moved to methods of dwarf2_per_objfile.
7535 (dwarf2_clear_marks): Remove.
7536 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7537 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7538 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7539 (dwarf2_per_objfile::remove_all_cus): New.
7540 (class free_cached_comp_units) <~free_cached_comp_units>:
7541 Update.
7542 (load_cu): Update.
7543 (dw2_do_instantiate_symtab): Adjust.
7544 (fill_in_sig_entry_from_dwo_entry): Adjust.
7545 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7546 (cutu_reader::cutu_reader): Likewise.
7547 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7548 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7549 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7550 and dwarf2_per_objfile::age_comp_units.
7551 (load_partial_comp_unit): Update.
7552 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7553 (process_queue): Likewise.
7554 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7555 backlink.
7556 (dwarf2_read_addr_index): Likewise.
7557 (follow_die_offset): Likewise.
7558 (dwarf2_fetch_die_loc_sect_off): Likewise.
7559 (dwarf2_fetch_constant_bytes): Likewise.
7560 (dwarf2_fetch_die_type_sect_off): Likewise.
7561 (follow_die_sig_1): Likewise.
7562 (load_full_type_unit): Likewise.
7563 (read_signatured_type): Likewise.
7564 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7565 (dwarf2_cu::~dwarf2_cu): Remove.
7566 (dwarf2_per_objfile::get_cu): New.
7567 (dwarf2_per_objfile::set_cu): New.
7568 (age_cached_comp_units): Rename to...
7569 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7570 to std::unordered_map.
7571 (free_one_cached_comp_unit): Rename to...
7572 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7573 to std::unordered_map.
7574 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7575 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7576 a dwarf2_per_objfile in data.
7577 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7578 (dwarf2_clear_marks): Remove.
7579
2e671100
SM
75802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7583 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7584 (init_tu_and_read_dwo_dies): Likewise.
7585 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7586 (cutu_reader::cutu_reader): Likewise.
7587 (load_partial_comp_unit): Likewise.
7588 (process_psymtab_comp_unit): Update.
7589 (build_type_psymtabs_1): Update.
7590 (process_skeletonless_type_unit): Update.
7591 (load_full_comp_unit): Update.
7592 (find_partial_die): Update.
7593 (dwarf2_read_addr_index): Update.
7594 (read_signatured_type): Update.
7595
2e6a9f79
SM
75962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7597
7598 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7599 m_header_read_in>: New fields.
7600 <get_header>: New method.
7601 * dwarf2/read.c (per_cu_header_read_in): Remove.
7602 (dwarf2_per_cu_data::get_header): New.
7603 (dwarf2_per_cu_data::addr_size): Update.
7604 (dwarf2_per_cu_data::offset_size): Update.
7605 (dwarf2_per_cu_data::ref_addr_size): Update.
7606
1b555f17
SM
76072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7608
7609 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7610 (dw2_do_instantiate_symtab): Update.
7611 (queue_and_load_all_dwo_tus): Change parameter from
7612 dwarf2_per_cu_data to dwarf2_cu.
7613 (dwarf2_fetch_die_loc_sect_off): Update.
7614 (dwarf2_fetch_constant_bytes): Update.
7615 (dwarf2_fetch_die_type_sect_off): Update.
7616
8fc0b21d
SM
76172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7618
7619 * dwarf2/read.c (process_full_comp_unit,
7620 process_full_type_unit): Remove per_cu, per_objfile paramters.
7621 Add dwarf2_cu parameter.
7622 (process_queue): Update.
7623
168c9250
SM
76242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7625
7626 * dwarf2/read.c (create_cu_from_index_list): Replace
7627 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7628 (create_cus_from_index_list): Likewise.
7629 (create_cus_from_index): Likewise.
7630 (create_signatured_type_table_from_index): Likewise.
7631 (create_cus_from_debug_names_list): Likewise.
7632 (create_cus_from_debug_names): Likewise.
7633 (dwarf2_read_gdb_index): Update.
7634 (dwarf2_read_debug_names): Update.
7635
e286671b
TT
76362020-05-27 Tom Tromey <tom@tromey.com>
7637 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * dwarf2/read.h (struct dwarf2_per_objfile)
7640 <get_type_for_signatured_type, set_type_for_signatured_type>:
7641 New methods.
7642 <m_type_map>: New member.
7643 (struct signatured_type) <type>: Remove.
7644 * dwarf2/read.c
7645 (dwarf2_per_objfile::get_type_for_signatured_type,
7646 dwarf2_per_objfile::set_type_for_signatured_type): New.
7647 (get_signatured_type): Use new methods.
7648
8adb8487
TT
76492020-05-27 Tom Tromey <tom@tromey.com>
7650 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7653 (struct dwarf2_per_objfile) <type_units>: New member.
7654 <get_type_unit_group_unshareable>: New method.
7655 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7656 num_symtabs, symtabs>: Remove; move to
7657 type_unit_group_unshareable.
7658 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7659 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7660 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7661
127bbf4b
SM
76622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * dwarf2/read.h (struct dwarf2_per_cu_data):
7665 <dwarf2_per_objfile>: Remove.
7666 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7667 dwarf2_per_objfile.
7668 (create_signatured_type_table_from_index): Likewise.
7669 (create_signatured_type_table_from_debug_names): Likewise.
7670 (create_debug_type_hash_table): Likewise.
7671 (fill_in_sig_entry_from_dwo_entry): Likewise.
7672 (create_type_unit_group): Likewise.
7673 (read_comp_units_from_section): Likewise.
7674 (create_cus_hash_table): Likewise.
7675
f6e649dd
SM
76762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7679 dwarf2_per_cu_data::dwarf2_per_objfile.
7680 (compute_compunit_symtab_includes): Likewise.
7681 (dwarf2_cu::start_symtab): Likewise.
7682
aa66c379
SM
76832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7684
7685 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7686 parameter.
7687 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7688 (read_namespace_alias): Update.
7689 (lookup_die_type): Update.
7690 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7691 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7692 Update.
7693 (disassemble_dwarf_expression): Update.
7694
120ce1b5
SM
76952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * dwarf2/read.h (struct dwarf2_queue_item): Add
7698 dwarf2_per_objfile parameter, assign new parameter.
7699 <per_objfile>: New field.
7700 * dwarf2/read.c (free_one_cached_comp_unit): Add
7701 dwarf2_per_objfile parameter.
7702 (queue_comp_unit): Likewise.
7703 (dw2_do_instantiate_symtab): Update.
7704 (process_psymtab_comp_unit): Update.
7705 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7706 (process_imported_unit_die): Update.
7707 (queue_and_load_dwo_tu): Update.
7708 (follow_die_offset): Update.
7709 (follow_die_sig_1): Update.
7710
9f47c707
SM
77112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7714 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7715 (read_call_site_scope): Assign per_objfile.
7716 (dwarf2_per_cu_data::objfile): Remove.
7717 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7718 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7719 dwarf2_per_objfile parameter.
7720 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7721 dwarf2_per_objfile parameter.
7722 (dwarf_expr_reg_to_entry_parameter): Add output
7723 dwarf2_per_objfile parameter.
7724 (locexpr_get_frame_base): Update.
7725 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7726 <push_dwarf_reg_entry_value>: Update.
7727 <call_site_to_target_addr>: Update.
7728 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7729 parameter.
7730 (value_of_dwarf_reg_entry): Update.
7731 (rw_pieced_value): Update.
7732 (indirect_synthetic_pointer): Update.
7733 (dwarf2_evaluate_property): Update.
7734 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7735 parameter.
7736 (locexpr_read_variable): Update.
7737 (locexpr_get_symbol_read_needs): Update.
7738 (loclist_read_variable): Update.
7739
14095eb3
SM
77402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7743 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7744 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7745 parameter.
7746 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7748 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7749 parameter.
7750 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7751 sect_variable_value): Add dwarf2_per_objfile parameter.
7752 (class dwarf_evaluate_loc_desc) <dwarf_call,
7753 dwarf_variable_value>: Update.
7754 (fetch_const_value_from_synthetic_pointer): Add
7755 dwarf2_per_objfile parameter.
7756 (fetch_const_value_from_synthetic_pointer): Update.
7757 (coerced_pieced_ref): Update.
7758 (class symbol_needs_eval_context) <dwarf_call,
7759 dwarf_variable_value>: Update.
7760 (dwarf2_compile_expr_to_ax): Update.
7761
3c3cd3d4
SM
77622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7765 parameter.
7766 (dwarf2_evaluate_loc_desc_full): Update.
7767
82ca3f51
SM
77682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7769
7770 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7771 parameter.
7772 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7773 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7774 dwarf2_per_objfile parameter.
7775 (decode_debug_loc_dwo_addresses): Likewise.
7776 (dwarf2_find_location_expression): Update.
7777 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7778 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7779 parameter.
7780 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7781 parameter.
7782 (locexpr_describe_location_1): Likewise.
7783 (locexpr_describe_location): Update.
7784
4b167ea1
SM
77852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7788 Remove.
7789 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7790 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7791 (dwarf2_compile_property_to_c): Update.
7792 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7793 use text offset from objfile.
7794 (locexpr_tracepoint_var_ref): Update.
7795 (locexpr_generate_c_location): Update.
7796 (loclist_describe_location): Update.
7797 (loclist_tracepoint_var_ref): Update.
7798 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7799 dwarf2_per_objfile parameter.
7800 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7801 use text offset from objfile.
7802 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7803
89b07335
SM
78042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7805
7806 * dwarf2/expr.h (struct dwarf_expr_context)
7807 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7808 <offset>: Remove.
7809 <per_objfile>: New member.
7810 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7811 dwarf2_per_objfile parameter. Don't set offset, set
7812 per_objfile.
7813 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7814 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7815 a dwarf2_per_objfile object instead of an offset.
7816 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7817 constructor.
7818 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7819 to dwarf2_expr_executor constructor. Don't set offset.
7820 (dwarf2_fetch_cfa_info): Update.
7821 (struct dwarf2_frame_cache) <text_offset>: Remove.
7822 <per_objfile>: New field.
7823 (dwarf2_frame_cache): Update.
7824 (dwarf2_frame_prev_register): Update.
7825 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7826 <dwarf_evaluate_loc_desc>: Add constructor.
7827 (dwarf2_evaluate_loc_desc_full): Update.
7828 (dwarf2_locexpr_baton_eval): Update.
7829 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7830 Add constructor.
7831 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7832
293e7e51
SM
78332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7836 addr_sized_int_type>: Move to dwarf2_cu.
7837 <int_type>: Move to dwarf2_per_objfile.
7838 (struct dwarf2_per_objfile) <int_type>: Move here.
7839 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7840 addr_sized_int_type>: Move here.
7841 (read_func_scope): Update.
7842 (read_array_type): Update.
7843 (read_tag_string_type): Update.
7844 (attr_to_dynamic_prop): Update.
7845 (dwarf2_per_cu_data::int_type): Rename to...
7846 (dwarf2_per_objfile::int_type): ... this.
7847 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7848 (dwarf2_cu::addr_sized_int_type): ... this.
7849 (read_subrange_type): Update.
7850 (dwarf2_per_cu_data::addr_type): Rename to...
7851 (dwarf2_cu::addr_type): ... this.
7852 (set_die_type): Update.
7853
64874a40
SM
78542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7855
7856 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7857 data through per_cu->cu.
7858
4ab09049
SM
78592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7862 dwarf2_per_cu_data parameter fo dwarf2_cu.
7863 (lookup_dwo_type_unit): Likewise.
7864 (read_cutu_die_from_dwo): Likewise.
7865 (lookup_dwo_unit): Likewise.
7866 (open_and_init_dwo_file): Likewise.
7867 (lookup_dwo_cutu): Likewise.
7868 (lookup_dwo_comp_unit): Likewise.
7869 (lookup_dwo_type_unit): Likewise.
7870 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7871 (cutu_reader::cutu_reader): Update.
7872
47b14e86
SM
78732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7876 parameter.
7877 (process_full_type_unit): Likewise.
7878 (process_queue): Update.
7879
43182c09
SM
78802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7881
7882 * dwarf2/read.c (recursively_compute_inclusions): Add
7883 dwarf2_per_objfile parameter.
7884 (compute_compunit_symtab_includes): Likewise.
7885 (process_cu_includes): Update.
7886
7aa104c4
SM
78872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7890 parameter.
7891 (create_type_unit_group): Update.
7892 (process_psymtab_comp_unit_reader): Update.
7893 (build_type_psymtabs_reader): Update.
7894
e3beb21d
SM
78952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7898 object through m_this_cu->cu.
7899
d460f660
SM
79002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7903 the info parameter.
7904 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7905
ab432490
SM
79062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7907
7908 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7909 per_objfile parameter.
7910 (load_full_type_unit): Add per_objfile parameter.
7911 (read_signatured_type): Likewise.
7912 (load_full_comp_unit): Likewise.
7913 (load_cu): Likewise.
7914 (dw2_do_instantiate_symtab): Likewise.
7915 (dw2_get_file_names): Likewise.
7916 (dw2_map_symtabs_matching_filename): Update.
7917 (dw_expand_symtabs_matching_file_matcher): Update.
7918 (dw2_map_symbol_filenames): Update.
7919 (process_psymtab_comp_unit): Add per_objfile parameter.
7920 (build_type_psymtabs_1): Update.
7921 (process_skeletonless_type_unit): Update.
7922 (dwarf2_build_psymtabs_hard): Update.
7923 (load_partial_comp_unit): Add per_objfile parameter.
7924 (scan_partial_symbols): Update.
7925 (load_full_comp_unit): Add per_objfile parameter.
7926 (process_imported_unit_die): Update.
7927 (create_cus_hash_table): Update.
7928 (find_partial_die): Update.
7929 (dwarf2_read_addr_index): Update.
7930 (follow_die_offset): Update.
7931 (dwarf2_fetch_die_loc_sect_off): Update.
7932 (dwarf2_fetch_constant_bytes): Update.
7933 (dwarf2_fetch_die_type_sect_off): Update.
7934 (follow_die_sig_1): Update.
7935 (load_full_type_unit): Add per_objfile parameter.
7936 (read_signatured_type): Likewise.
7937
313bad1b
SM
79382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7941 of objfile_name.
7942
c3699833
SM
79432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7944
7945 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7946 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7947 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7948 field.
7949 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7950 (create_cus_from_index): Update.
7951 (dwarf2_read_gdb_index): Update.
7952 (create_cus_from_debug_names): Update.
7953 (dwarf2_read_debug_names): Update.
7954 (get_abbrev_section_for_cu): Update.
7955 (create_all_comp_units): Update.
7956 (read_attribute_value): Update.
7957 (get_debug_line_section): Update.
7958 * dwarf2/index-cache.c (index_cache::store): Update.
7959 * dwarf2/index-write.c (save_gdb_index_command): Update.
7960 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7961
1859c670
SM
79622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7963
7964 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7965 member.
7966 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7967 dwarf2_per_cu_data::per_bfd.
7968 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7969 (create_type_unit_group): Likewise.
7970 (queue_comp_unit): Remove reference to
7971 per_cu->dwarf2_per_objfile.
7972 (maybe_queue_comp_unit): Likewise.
7973 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7974 (create_cus_hash_table): Assign new field.
7975
5e22e966
SM
79762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * dwarf2/read.c: Replace
7979 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7980 dwarf2_cu->per_objfile throughout.
7981
97a1449a
SM
79822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7985 parameter, don't use per_cu->dwarf2_per_objfile.
7986 (dw2_instantiate_symtab): Likewise.
7987 (dw2_find_last_source_symtab): Update.
7988 (dw2_map_expand_apply): Update.
7989 (dw2_lookup_symbol): Update.
7990 (dw2_expand_symtabs_for_function): Update.
7991 (dw2_expand_all_symtabs): Update.
7992 (dw2_expand_symtabs_with_fullname): Update.
7993 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7994 don't use per_cu->dwarf2_per_objfile.
7995 (dw2_expand_marked_cus): Update.
7996 (dw2_find_pc_sect_compunit_symtab): Update.
7997 (dw2_debug_names_lookup_symbol): Update.
7998 (dw2_debug_names_expand_symtabs_for_function): Update.
7999 (dw2_debug_names_map_matching_symbols): Update.
8000 (dwarf2_psymtab::expand_psymtab): Update.
8001
9e021579
SM
80022020-05-27 Simon Marchi <simon.marchi@efficios.com>
8003
8004 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8005 <per_objfile>: New member.
8006 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8007 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8008 call to dwarf2_cu.
8009 (cutu_reader::cutu_reader): Update.
8010 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8011
ae090bdb
SM
80122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8015 struct dwarf2_per_objfile.
8016 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8017 dwarf2_per_bfd.
8018 * dwarf2/read.c (set_die_type): Update.
8019 (get_die_type_at_offset): Update.
8020
af758d11
SM
80212020-05-27 Tom Tromey <tom@tromey.com>
8022 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8025 method.
8026 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8027 get_symtab, set_symtab>: New methods.
8028 <m_symtabs>: New field.
8029 (struct dwarf2_psymtab): Derive from partial_symtab.
8030 <readin_p, get_compunit_symtab>: Declare methods.
8031 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8032 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8033 New methods.
8034 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8035 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8036 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8037 (dw2_symtab_iter_next, dw2_print_stats)
8038 (dw2_expand_symtabs_with_fullname)
8039 (dw2_expand_symtabs_matching_one)
8040 (dw_expand_symtabs_matching_file_matcher)
8041 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8042 (dw2_debug_names_iterator::next)
8043 (dw2_debug_names_map_matching_symbols)
8044 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8045 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8046 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8047 New methods.
8048 (get_compunit_symtab, process_full_comp_unit)
8049 (process_full_type_unit): Update.
8050 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8051
5989a64e
SM
80522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8053
8054 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8055 then introduce a new dwarf2_per_objfile type.
8056 <read_line_string>: Move to the new dwarf2_per_objfile type.
8057 <objfile>: Likewise.
8058 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8059 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8060 dwarf2_per_objfile->per_bfd.
8061 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8062 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8063 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8064 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8065 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8066 (dwarf2_per_objfile::locate_sections): Rename to...
8067 (dwarf2_per_bfd::locate_sections): ... this.
8068 (dwarf2_per_objfile::get_cutu): Rename to...
8069 (dwarf2_per_bfd::get_cutu): ... this.
8070 (dwarf2_per_objfile::get_cu): Rename to...
8071 (dwarf2_per_bfd::get_cu): ... this.
8072 (dwarf2_per_objfile::get_tu): Rename to...
8073 (dwarf2_per_bfd::get_tu): ... this.
8074 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8075 (dwarf2_per_bfd::allocate_per_cu): ... this.
8076 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8077 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8078 (get_gdb_index_contents_ftype): Change parameter from
8079 dwarf2_per_objfile to dwarf2_per_bfd.
8080 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8081 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8082
a50264ba
TT
80832020-05-27 Tom Tromey <tom@tromey.com>
8084 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8087 (allocate_piece_closure): Set "per_objfile" member.
8088 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8089 (locexpr_describe_location, loclist_describe_location): Use new
8090 member.
8091 * dwarf2/read.c (read_call_site_scope)
8092 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8093 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8094 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8095 handle_data_member_location): Set per_objfile member.
8096 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8097 member.
8098 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8099
d3473f0c
TT
81002020-05-27 Tom Tromey <tom@tromey.com>
8101
8102 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8103 allocate_signatured_type>: Declare new methods.
8104 <m_num_psymtabs>: New member.
8105 (struct dwarf2_per_cu_data) <index>: New member.
8106 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8107 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8108 (create_cu_from_index_list): Use allocate_per_cu.
8109 (create_signatured_type_table_from_index)
8110 (create_signatured_type_table_from_debug_names)
8111 (create_debug_type_hash_table, add_type_unit)
8112 (read_comp_units_from_section): Use allocate_signatured_type.
8113
5717c425
TT
81142020-05-27 Tom Tromey <tom@tromey.com>
8115
8116 * psymtab.c (partial_map_expand_apply)
8117 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8118 (psym_lookup_global_symbol_language)
8119 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8120 (psym_print_stats, psym_expand_symtabs_for_function)
8121 (psym_map_symbol_filenames, psym_map_matching_symbols)
8122 (psym_expand_symtabs_matching)
8123 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8124 (maintenance_check_psymtabs): Update.
8125 * psympriv.h (struct partial_symtab) <readin_p,
8126 get_compunit_symtab>: Add objfile parameter.
8127 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8128 Likewise.
8129 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8130 get_compunit_symtab>: Likewise.
8131 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8132
45940949
TT
81332020-05-27 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8136 member.
8137 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8138 (create_cu_from_index_list)
8139 (create_signatured_type_table_from_index)
8140 (create_signatured_type_table_from_debug_names)
8141 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8142 (dwarf2_create_include_psymtab)
8143 (create_debug_type_hash_table, add_type_unit)
8144 (create_type_unit_group, read_comp_units_from_section)
8145 (dwarf2_compute_name, create_cus_hash_table)
8146 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8147 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8148 obstack.
8149 (dw2_get_real_path): Likewise. Change argument to
8150 dwarf2_per_objfile.
8151
f8c6d152
LM
81522020-05-27 Luis Machado <luis.machado@linaro.org>
8153
8154 PR tdep/26000
8155 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8156 for ldrd (immediate).
8157
e98d2e6d
PW
81582020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * command.h: Add comment giving the name of class_tui.
8161 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8162 create the fake command for the help for class_tui.
8163
53a47a3e
TT
81642020-05-26 Tom Tromey <tromey@adacore.com>
8165
8166 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8167 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8168 (val_atr): New function.
8169 (value_val_atr): Use it.
8170 * ada-valprint.c (print_optional_low_bound): Change low bound
8171 handling for enums.
8172 (val_print_packed_array_elements): Don't call discrete_position.
8173 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8174 discrete_position for enum types.
8175 * language.c (default_print_array_index): Change type.
8176 * language.h (struct language_defn) <la_print_array_index>: Add
8177 index_type parameter, change type of index_value.
8178 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8179 (default_print_array_index): Update.
8180 * valprint.c (maybe_print_array_index): Don't call
8181 value_from_longest. Update.
8182 (value_print_array_elements): Don't call discrete_position.
8183
0bc2354b
TT
81842020-05-26 Tom Tromey <tromey@adacore.com>
8185
8186 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8187 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8188
1218a4bf
CDA
81892020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8190
8191 PR gdb/13519
8192 * avr-tdep.c (avr_integer_to_address): Return data or code
8193 address accordingly to the second 'type' argument of the
8194 function.
8195
92651b1d
MW
81962020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8197
8198 * infcmd.c, inferior.h: (construct_inferior_arguments):
8199 Moved function from here to gdbsupport/common-inferior.{h,cc}
8200
0a4f5f8c
TT
82012020-05-23 Tom Tromey <tom@tromey.com>
8202
8203 Revert commit eca1f90c:
8204 * NEWS: Remove entry for completion styling.
8205 * completer.c (_rl_completion_prefix_display_length): Move
8206 declaration later.
8207 (gdb_fnprint): Revert.
8208 (gdb_display_match_list_1): Likewise.
8209 * cli/cli-style.c (completion_prefix_style)
8210 (completion_difference_style, completion_suffix_style): Remove.
8211 (_initialize_cli_style): Revert.
8212 * cli/cli-style.h (completion_prefix_style)
8213 (completion_difference_style, completion_suffix_style): Don't
8214 declare.
8215
e08bd6c5
PA
82162020-05-24 Pedro Alves <palves@redhat.com>
8217
8218 * symtab.c (completion_list_add_name): Return boolean indication
8219 of whether the symbol matched.
8220 (completion_list_add_symbol): Don't try to remove C++ aliases if
8221 the symbol didn't match in the first place.
8222 * symtab.h (completion_list_add_name): Return bool.
8223
ceacbf6e
SM
82242020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8227 type::field.
8228
26f16254
JB
82292020-05-23 Joel Brobecker <brobecker@adacore.com>
8230
8231 GDB 9.2 released.
8232
eca1f90c
TT
82332020-05-23 Tom Tromey <tom@tromey.com>
8234
8235 * NEWS: Add entry for completion styling.
8236 * completer.c (_rl_completion_prefix_display_length): Move
8237 declaration earlier.
8238 (gdb_fnprint): Use completion_style.
8239 (gdb_display_match_list_1): Likewise.
8240 * cli/cli-style.c (completion_prefix_style)
8241 (completion_difference_style, completion_suffix_style): New
8242 globals.
8243 (_initialize_cli_style): Register new globals.
8244 * cli/cli-style.h (completion_prefix_style)
8245 (completion_difference_style, completion_suffix_style): Declare.
8246
51e2cfa2
PA
82472020-05-23 Pedro Alves <palves@redhat.com>
8248
8249 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8250 (parse_escape): Use ISDIGIT instead of isdigit.
8251 (puts_debug): Use gdb_isprint instead of isprint.
8252 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8253 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8254 ISSPACE instead of isspace.
8255 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8256 instead of isspace.
8257 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8258 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8259 instead of isxdigit and ISDIGIT instead of isdigit.
8260
80fc5e77
SM
82612020-05-22 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * gdbtypes.h (struct type) <field>: New method.
8264 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8265 or type::field.
8266
3cabb6b0
SM
82672020-05-22 Simon Marchi <simon.marchi@efficios.com>
8268
8269 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8270 (TYPE_FIELDS): Use type::fields. Change all call sites that
8271 modify the propery to use type::set_fields instead.
8272
1f704f76
SM
82732020-05-22 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8276 type::num_fields instead.
8277
5e33d5f4
SM
82782020-05-22 Simon Marchi <simon.marchi@efficios.com>
8279
8280 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8281 methods.
8282 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8283 that modify the number of fields to use type::set_num_fields
8284 instead.
8285
9392ebb3
TT
82862020-05-22 Tom Tromey <tromey@adacore.com>
8287
8288 * compile/compile-object-load.h (munmap_list_free): Don't
8289 declare.
8290
7c13f4e8
AB
82912020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8292
8293 * annotate.c (annotate_source_line): Update return type, add call
8294 to update current symtab and line.
8295 * annotate.h (annotate_source_line): Update return type, and
8296 extend header comment.
8297 * source.c (info_line_command): Check annotation_level before
8298 calling annotate_source_line.
8299 * stack.c (print_frame_info): If calling annotate_source_line
8300 returns true, then don't print any other source line information.
8301
aa370940
SM
83022020-05-21 Simon Marchi <simon.marchi@efficios.com>
8303
8304 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8305
84d53fa9
SM
83062020-05-21 Simon Marchi <simon.marchi@efficios.com>
8307
8308 * coffread.c (patch_type): Remove NULL check before xfree.
8309 * corefile.c (set_gnutarget): Likewise.
8310 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8311 * exec.c (build_section_table): Likewise.
8312 * remote.c (remote_target::pass_signals): Likewise.
8313 * utils.c (n_spaces): Likewise.
8314 * cli/cli-script.c (document_command): Likewise.
8315 * i386-windows-tdep.c (core_process_module_section): Likewise.
8316 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8317
9d428aae
SM
83182020-05-20 Simon Marchi <simon.marchi@efficios.com>
8319
8320 * symfile.c (reread_symbols): Clear objfile's section_offsets
8321 vector and section indices, re-compute them by calling
8322 sym_offsets.
8323
250106a7
TT
83242020-05-20 Tom Tromey <tromey@adacore.com>
8325
8326 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8327 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8328
9a0bacfb
TV
83292020-05-20 Tom de Vries <tdevries@suse.de>
8330
8331 PR symtab/25833
8332 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8333
7b958a48
AM
83342020-05-20 Alan Modra <amodra@gmail.com>
8335
8336 PR 25993
8337 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8338 bfd_set_filename.
8339 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8340 passed to bfd_set_filename.
8341 * symfile-mem.c (add_vsyscall_page): Likewise for string
8342 passed to symbol_file_add_from_memory.
8343 (symbol_file_add_from_memory): Make name param a const char* and
8344 don't strdup.
8345
c7e97679
AM
83462020-05-20 Alan Modra <amodra@gmail.com>
8347
8348 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8349 rather than accessing bfd->filename directly.
8350 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8351 and use bfd_section_name.
8352 * dwarf2/frame.c (decode_frame_entry): Likewise.
8353 * exec.c (exec_set_section_address): Likewise.
8354 * solib-aix.c (solib_aix_bfd_open): Likewise.
8355 * stap-probe.c (get_stap_base_address): Likewise.
8356 * symfile.c (reread_symbols): Likewise.
8357
563c591b
TT
83582020-05-19 Tom Tromey <tromey@adacore.com>
8359
8360 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8361
f408d82c
SM
83622020-05-19 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8365
98c59b52
PA
83662020-05-19 Pedro Alves <palves@redhat.com>
8367
8368 * NEWS (set exec-file-mismatch): Adjust entry.
8369 * exec.c: Include "build-id.h".
8370 (validate_exec_file): Try to match build IDs instead of filenames.
8371 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8372 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8373 and pass down 'warn_if_slow'.
8374 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8375 gdb_bfd_open_closure to pass it down.
8376 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8377
4111f652
PA
83782020-05-19 Pedro Alves <palves@redhat.com>
8379
8380 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8381 * target.c (target_fileio_open_1): Rename to target_fileio_open
8382 and make extern. Use bool.
8383 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8384 (target_fileio_read_alloc_1): Adjust.
8385 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8386 (target_fileio_open_warn_if_slow): Delete declaration.
8387
ad80db5b
PA
83882020-05-19 Pedro Alves <palves@redhat.com>
8389
8390 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8391 Adjust all callers.
8392
1d6ce4d3
YS
83932020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8394
8395 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8396 whether disp is negative.
8397
9005fbbb
SM
83982020-05-19 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * symfile.h (struct symfile_segment_data)
8401 <~symfile_segment_data>: Remove.
8402 <segment_info>: Change to std::vector.
8403 * symfile.c (default_symfile_segments): Update.
8404 * elfread.c (elf_symfile_segments): Update.
8405
68b888ff
SM
84062020-05-19 Simon Marchi <simon.marchi@efficios.com>
8407
8408 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8409 <segments>: New.
8410 <segment_bases, segment_sizes>: Remove.
8411 * symfile.c (default_symfile_segments): Update.
8412 * elfread.c (elf_symfile_segments): Update.
8413 * remote.c (remote_target::get_offsets): Update.
8414 * solib-target.c (solib_target_relocate_section_addresses):
8415 Update.
8416
62982abd
SM
84172020-05-19 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * symfile.h (struct symfile_segment_data): Initialize fields.
8420 <~symfile_segment_data>: Add.
8421 (symfile_segment_data_up): New.
8422 (struct sym_fns) <sym_segments>: Return a
8423 symfile_segment_data_up.
8424 (default_symfile_segments): Return a symfile_segment_data_up.
8425 (free_symfile_segment_data): Remove.
8426 (get_symfile_segment_data): Return a symfile_segment_data_up.
8427 * symfile.c (default_symfile_segments): Likewise.
8428 (get_symfile_segment_data): Likewise.
8429 (free_symfile_segment_data): Remove.
8430 (symfile_find_segment_sections): Update.
8431 * elfread.c (elf_symfile_segments): Return a
8432 symfile_segment_data_up.
8433 * remote.c (remote_target::get_offsets): Update.
8434 * solib-target.c (solib_target_relocate_section_addresses):
8435 Update.
8436 * symfile-debug.c (debug_sym_segments): Return a
8437 symfile_segment_data_up.
8438
7f204339
RO
84392020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8440
e52a0f1b
RO
8441 PR build/25981
8442 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8443 Hardcode register numbers.
8444
7f204339
RO
8445 PR build/25981
8446 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8447 procfs_find_LDT_entry): Remove.
8448 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8449 procfs_find_LDT_entry): Remove.
8450 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8451 Remove.
8452
7f32a4d5
PA
84532020-05-17 Pedro Alves <palves@redhat.com>
8454 Andrew Burgess <andrew.burgess@embecosm.com>
8455 Keno Fischer <keno@juliacomputing.com>
8456
8457 PR gdb/25741
8458 * breakpoint.c (build_target_condition_list): Update comments.
8459 (build_target_command_list): Update comments and skip matching
8460 locations.
8461 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8462 a separate function. Simplify "set breakpoint auto-hw off"
8463 handling.
8464 (insert_breakpoints): Update comment.
8465 (tracepoint_locations_match): New parameter. For breakpoints,
8466 compare location types too, if the caller wants to.
8467 (handle_automatic_hardware_breakpoints): New functions.
8468 (bp_location_is_less_than): Also sort by location type and
8469 hardware breakpoint length.
8470 (update_global_location_list): Handle "set breakpoint auto-hw on"
8471 here.
8472 (update_breakpoint_locations): Ask breakpoint_locations_match to
8473 ignore location types.
8474
7d93a1e0
SM
84752020-05-16 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8478 type::name instead.
8479
d0e39ea2
SM
84802020-05-16 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * gdbtypes.h (struct type) <name, set_name>: New methods.
8483 (TYPE_CODE): Use type::name. Change all call sites used to set
8484 the name to use type::set_name instead.
8485
2dab0c7b
TT
84862020-05-16 Tom Tromey <tom@tromey.com>
8487
8488 * top.c (quit_force): Update.
8489 * infrun.c (handle_no_resumed): Update.
8490 * top.h (all_uis): New function.
8491 (ALL_UIS): Remove.
8492
59f7bd8d
SM
84932020-05-16 Simon Marchi <simon.marchi@efficios.com>
8494
8495 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8496
9bf058f0
PA
84972020-05-16 Pedro Alves <palves@redhat.com>
8498
8499 * ia64-linux-nat.c
8500 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8501 Declare method.
8502 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8503
8f86ae1a
SM
85042020-05-15 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8507 (sparc64_adi_info): Likewise.
8508
d6bc0792
TT
85092020-05-15 Tom Tromey <tom@tromey.com>
8510
8511 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8512 block_objfile.
8513 (lookup_objfile_from_block): Remove.
8514 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8515 (lookup_global_symbol): Use block_objfile.
8516 * symtab.h (lookup_objfile_from_block): Don't declare.
8517 * printcmd.c (clear_dangling_display_expressions): Use
8518 block_objfile.
8519 * parse.c (operator_check_standard): Use block_objfile.
8520
8c14c3a3
TT
85212020-05-15 Tom Tromey <tom@tromey.com>
8522
8523 * language.c (language_alloc_type_symbol): Set
8524 SYMBOL_SECTION.
8525 * symtab.c (initialize_objfile_symbol): Remove.
8526 (allocate_symbol): Remove.
8527 (allocate_template_symbol): Remove.
8528 * dwarf2/read.c (fixup_go_packaging): Use "new".
8529 (new_symbol): Use "new".
8530 (read_variable): Don't call initialize_objfile_symbol. Use
8531 "new".
8532 (read_func_scope): Use "new".
8533 * xcoffread.c (process_xcoff_symbol): Don't call
8534 initialize_objfile_symbol.
8535 (SYMBOL_DUP): Remove.
8536 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8537 "new".
8538 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8539 (allocate_template_symbol): Don't declare.
8540 (struct symbol): Add copy constructor. Change defaults.
8541 * jit.c (finalize_symtab): Use "new".
8542 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8543 Use "new".
8544 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8545 (common_block_end): Use "new".
8546 * mdebugread.c (parse_symbol): Use "new".
8547 (new_symbol): Likewise.
8548
5b4a1a8d
PW
85492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8550
8551 * NEWS: Mention changes to help and apropos.
8552
57b4f16e
PW
85532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8554
8555 * command.h (enum command_class): Improve comments, document
8556 that class_alias is for user-defined aliases, give the class
8557 name for each class, remove unused class_xdb.
8558 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8559 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8560 by a precise class.
8561 * infcmd.c (_initialize_infcmd): Likewise.
8562 * reverse.c (_initialize_reverse): Likewise.
8563 * stack.c (_initialize_stack): Likewise.
8564 * symfile.c (_initialize_symfile): Likewise.
8565 * tracepoint.c (_initialize_tracepoint): Likewise.
8566
7c05caf7
PW
85672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8568
8569 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8570 when their aliased command is traversed.
8571 (help_cmd): Add fput_command_names_styled call to
8572 output command name and aliases when command has an alias.
8573
3b3aaacb
PW
85742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8575
8576 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8577 * cli/cli-decode.c (help_cmd_list): Declare as static,
8578 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8579 a command together with the command.
8580 (fput_command_name_styled, fput_command_names_styled): New functions.
8581 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8582 fput_command_name_styled.
8583 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8584 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8585
7aa1b46f
PW
85862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8587
8588 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8589 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8590 * command.h (cmd_show_list): Likewise.
8591 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8592 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8593
89bcba74
PW
85942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8595
8596 * unittests/command-def-selftests.c (traverse_command_structure):
8597 Verify all commands of a list have the same prefix command and
8598 that only the top cmdlist commands have a null prefix.
8599
3f4d92eb
PW
86002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8601
8602 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8603 as prefix, not one of its aliases.
8604 (set_cmd_prefix): Remove.
8605 (do_add_cmd): Centralize the setting of the prefix of a command, when
8606 command is defined after its full chain of prefix commands.
8607 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8608 (add_setshow_cmd_full): Likewise.
8609 (update_prefix_field_of_prefixed_commands): New function.
8610 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8611 update_prefix_field_of_prefixed_commands.
8612 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8613 addresses of remote_set_cmdlist and remote_show_cmdlist given
8614 as argument, not the address of an argument.
8615 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8616 * gdb/remote.c (_initialize_remote): Likewise.
8617
0605465f
PW
86182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8619
8620 * cli/cli-cmds.c (alias_command): Check for an existing alias
8621 using lookup_cmd_composition, as valid_command_p is too strict
8622 and forbids aliases that are the prefix of an existing alias
8623 or command.
8624 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8625 command is properly recognised as a valid command.
8626
58e6ac70
PW
86272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8628
8629 * unittests/help-doc-selftests.c: Rename to
8630 unittests/command-def-selftests.c
8631 * unittests/command-def-selftests.c (help_doc_tests): Update some
8632 comments.
8633 (command_structure_tests, traverse_command_structure): New namespace
8634 and function.
8635 (command_structure_invariants_tests): New function.
8636 (_initialize_command_def_selftests) Renamed from
8637 _initialize_help_doc_selftests, register command_structure_invariants
8638 selftest.
8639
a7b9ceb8
PW
86402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8641
8642 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8643 an alias of 'show'.
8644
b2188a06
JB
86452020-05-15 Joel Brobecker <brobecker@adacore.com>
8646
8647 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8648 ada_is_fixed_point_type. Update all callers.
8649 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8650 all callers.
8651 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8652 Update all callers.
8653 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8654 print_fixed_point_type. Update all callers.
8655 * ada-valprint.c (ada_value_print_num): Replace call to
8656 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8657
a51951c2
KB
86582020-05-14 Kevin Buettner <kevinb@redhat.com>
8659
8660 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8661 processors.
8662 (cpu_supports_bts): Add CV_AMD case.
8663
29d6859f
LM
86642020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8665 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * infrun.c (stop_all_threads): Collect multiple wait events at
8668 each pass.
8669
78134374
SM
86702020-05-14 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8673 type::code instead.
8674
67607e24
SM
86752020-05-14 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * gdbtypes.h (struct type) <code, set_code>: New methods.
8678 (TYPE_CODE): Use type::code. Change all call sites used to set
8679 the code to use type::set_code instead.
8680
a05575d3
TBA
86812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8682 Tom de Vries <tdevries@suse.de>
8683 Pedro Alves <palves@redhat.com>
8684
8685 PR threads/25478
8686 * infrun.c (stop_all_threads): Do NOT ignore
8687 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8688 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8689 received.
8690 (handle_no_resumed): Remove code handling a live inferior with no
8691 threads.
8692 * remote.c (has_single_non_exited_thread): New.
8693 (remote_target::update_thread_list): Do not delete a thread if is
8694 the last thread of the process.
8695 * thread.c (thread_select): Call delete_exited_threads instead of
8696 prune_threads.
8697
6ad82919
TBA
86982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8699
8700 * infrun.c (stop_all_threads): Enable/disable thread events of all
8701 targets. Move a debug message denoting the end of the function
8702 into the SCOPED_EXIT block.
8703
d890404b
TBA
87042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8705
8706 * process-stratum-target.h: Include <set>.
8707 (all_non_exited_process_targets, switch_to_target_no_thread): New
8708 function declarations.
8709 * process-stratum-target.c (all_non_exited_process_targets)
8710 (switch_to_target_no_thread): New function implementations.
8711
293b3ebc
TBA
87122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8713
8714 * infrun.c (handle_inferior_event): Extract out a piece of code
8715 into...
8716 (mark_non_executing_threads): ...this new function.
8717
7ca9b62a
TBA
87182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8719
8720 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8721 use.
8722
fc75c28b
TBA
87232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8724
8725 * regcache.c (regcache_read_pc_protected): New function
8726 implementation that returns 0 if the PC cannot read via
8727 'regcache_read_pc'.
8728 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8729 instead of 'regcache_read_pc'.
8730 (keep_going_pass_signal): Ditto.
8731
a89febbd
TT
87322020-05-13 Tom Tromey <tromey@adacore.com>
8733
8734 * ada-lang.c (align_value): Remove.
8735 (ada_template_to_fixed_record_type_1): Use align_up.
8736
f7e23710
TBA
87372020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8738
8739 * async-event.c: Update the copyright year.
8740 * async-event.h: Update the copyright year.
8741
02ff80c2
SM
87422020-05-12 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * objfiles.h (is_addr_in_objfile,
8745 shared_objfile_contains_address_p): Return bool.
8746 * objfile.c (is_addr_in_objfile,
8747 shared_objfile_contains_address_p): Return bool.
8748
4fd6c7e8
TT
87492020-05-11 Tom Tromey <tromey@adacore.com>
8750
8751 * cli/cli-cmds.c (info_command): Restore.
8752 (_initialize_cli_cmds): Use add_prefix_command for "info".
8753 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8754
5eb68a39
TT
87552020-05-11 Tom Tromey <tromey@adacore.com>
8756
8757 * ada-lang.c (ada_value_primitive_field): Now public.
8758 * ada-lang.h (ada_value_primitive_field): Declare.
8759 * ada-valprint.c (print_field_values): Use
8760 ada_value_primitive_field for wrapper fields.
8761
7666722f
TV
87622020-05-11 Tom de Vries <tdevries@suse.de>
8763
8764 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8765 MODULE_DOMAIN.
8766
3ee6bb11
TV
87672020-05-11 Tom de Vries <tdevries@suse.de>
8768
8769 PR symtab/25941
8770 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8771 with length 0, if not gdb-produced.
8772 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8773
43434996
TV
87742020-05-09 Tom de Vries <tdevries@suse.de>
8775
8776 PR gdb/25955
8777 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8778 calculation.
8779
2f78cffc
TT
87802020-05-09 Tom Tromey <tom@tromey.com>
8781
8782 * top.c (server_command): Now bool.
8783 * top.h (server_command): Now bool.
8784
4f7bc5ed
TT
87852020-05-08 Tom Tromey <tromey@adacore.com>
8786
8787 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8788 already being processed.
8789
8be4b118
TT
87902020-05-08 Tom Tromey <tom@tromey.com>
8791
8792 * printcmd.c (struct display) <next>: Remove.
8793 <display>: New constructor.
8794 <exp_string>: Now a std::string.
8795 <enabled_p>: Now a bool.
8796 (display_number): Move definition earlier.
8797 (displays): Rename from display_chain. Now a std::vector.
8798 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8799 (display_command): Update.
8800 (do_one_display, disable_display)
8801 (enable_disable_display_command, do_enable_disable_display):
8802 Update.
8803 (free_display): Remove.
8804 (clear_displays): Rewrite.
8805 (delete_display): Update.
8806 (map_display_numbers): Use function_view. Remove "data"
8807 parameter. Update.
8808 (do_delete_display): Remove.
8809 (undisplay_command): Update.
8810 (do_one_display, do_displays, disable_display)
8811 (info_display_command): Update.
8812 (do_enable_disable_display): Remove.
8813 (enable_disable_display_command)
8814 (clear_dangling_display_expressions): Update.
8815
94c93c35
TT
88162020-05-08 Tom Tromey <tom@tromey.com>
8817
8818 * symtab.c (set_symbol_cache_size)
8819 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8820 (maintenance_print_symbol_cache_statistics): Update.
8821 * symmisc.c (print_symbol_bcache_statistics)
8822 (print_objfile_statistics, maintenance_print_objfiles)
8823 (maintenance_info_symtabs, maintenance_check_symtabs)
8824 (maintenance_expand_symtabs, maintenance_info_line_tables):
8825 Update.
8826 * symfile-debug.c (set_debug_symfile): Update.
8827 * source.c (forget_cached_source_info): Update.
8828 * python/python.c (gdbpy_progspaces): Update.
8829 * psymtab.c (maintenance_info_psymtabs): Update.
8830 * probe.c (parse_probes): Update.
8831 * linespec.c (iterate_over_all_matching_symtabs)
8832 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8833 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8834 * exec.c (exec_target::close): Update.
8835 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8836 * breakpoint.c (print_one_breakpoint_location)
8837 (create_longjmp_master_breakpoint)
8838 (create_std_terminate_master_breakpoint): Update.
8839 * progspace.c (program_spaces): Now a std::vector.
8840 (maybe_new_address_space): Update.
8841 (add_program_space): Remove.
8842 (program_space::program_space): Update.
8843 (remove_program_space): Update.
8844 (number_of_program_spaces): Remove.
8845 (print_program_space, update_address_spaces): Update.
8846 * progspace.h (program_spaces): Change type.
8847 (ALL_PSPACES): Remove.
8848 (number_of_program_spaces): Don't declare.
8849 (struct program_space) <next>: Remove.
8850
a1fd1ac9
TT
88512020-05-08 Tom Tromey <tom@tromey.com>
8852
8853 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8854 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8855 (enable_break): Update.
8856 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8857 (frv_fdpic_find_canonical_descriptor): Update.
8858 (frv_fetch_objfile_link_map): Update.
8859 * progspace.c (program_space::free_all_objfiles): Update.
8860 (program_space::solibs): New method.
8861 * progspace.h (struct program_space) <solibs>: New method.
8862 * solist.h (master_so_list): Don't declare.
8863 (ALL_SO_LIBS): Remove.
8864 * solib.h (so_list_head): Remove.
8865 (update_solib_list): Update comment.
8866 * solib.c (master_so_list): Remove.
8867 (solib_used, update_solib_list, solib_add)
8868 (info_sharedlibrary_command, clear_solib)
8869 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8870
38eae084
TT
88712020-05-08 Tom Tromey <tom@tromey.com>
8872
8873 * extension.c (extension_languages): Now a std::array.
8874 (ALL_EXTENSION_LANGUAGES): Remove.
8875 (get_ext_lang_defn, get_ext_lang_of_file)
8876 (eval_ext_lang_from_control_command): Update.
8877 (finish_ext_lang_initialization)
8878 (auto_load_ext_lang_scripts_for_objfile)
8879 (ext_lang_type_printers::ext_lang_type_printers)
8880 (apply_ext_lang_type_printers)
8881 (ext_lang_type_printers::~ext_lang_type_printers)
8882 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8883 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8884 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8885 (get_matching_xmethod_workers, ext_lang_colorize)
8886 (ext_lang_before_prompt): Update.
8887 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8888
596dc4ad
TT
88892020-05-08 Tom Tromey <tom@tromey.com>
8890
8891 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8892 overload.
8893 <swap_string, m_string>: Remove.
8894 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8895 Update.
8896 * stabsread.c (define_symbol, read_type): Update.
8897 * linespec.c (find_linespec_symbols): Update.
8898 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8899 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8900 * dbxread.c (read_dbx_symtab): Update.
8901 * cp-support.h (cp_canonicalize_string_full)
8902 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8903 Return unique_xmalloc_ptr.
8904 * cp-support.c (inspect_type): Update.
8905 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8906 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8907 Likewise.
8908 * c-typeprint.c (print_name_maybe_canonical): Update.
8909 * break-catch-throw.c (check_status_exception_catchpoint):
8910 Update.
8911
bf4cb9be
TV
89122020-05-08 Tom de Vries <tdevries@suse.de>
8913
8914 * infrun.c (follow_fork): Copy current_line and current_symtab to
8915 child thread.
8916
a1b68f28
SM
89172020-05-07 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * async-event.c (struct async_signal_handler, struct
8920 async_event_handler): Reformat, remove typedef.
8921
98d48915
SM
89222020-05-07 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8925 access thistype->main_type->dyn_prop_list directly.
8926
7aa91313
SM
89272020-05-07 Simon Marchi <simon.marchi@efficios.com>
8928
8929 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8930 (remove_dyn_prop): Remove. Update all users to use
8931 type::remove_dyn_prop.
8932 * gdbtypes.c (remove_dyn_prop): Rename to...
8933 (type::remove_dyn_prop): ... this.
8934
5c54719c
SM
89352020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8936
8937 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8938 (add_dyn_prop): Remove. Update all users to use
8939 type::add_dyn_prop.
8940 * gdbtypes.c (add_dyn_prop): Rename to...
8941 (type::add_dyn_prop): ... this.
8942
24e99c6c
SM
89432020-05-07 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8946 (get_dyn_prop): Remove. Update all users to use
8947 type::dyn_prop.
8948 * gdbtypes.c (get_dyn_prop): Rename to...
8949 (type::dyn_prop): ... this.
8950
0d4bf016
SM
89512020-05-06 Simon Marchi <simon.marchi@efficios.com>
8952
8953 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8954
ac4a4f1c
SM
89552020-05-06 Simon Marchi <simon.marchi@efficios.com>
8956
8957 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8958 instruction, skip it if it's there.
8959
a3bbacc1
SM
89602020-05-05 Simon Marchi <simon.marchi@efficios.com>
8961
8962 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8963
c3236f84
SM
89642020-05-04 Simon Marchi <simon.marchi@efficios.com>
8965
8966 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8967 * gdbtypes.c (recursive_dump_type): Remove use of
8968 TYPE_INCOMPLETE.
8969
3b6acaee
TT
89702020-05-03 Tom Tromey <tom@tromey.com>
8971
8972 * breakpoint.c (catch_command, tcatch_command): Remove.
8973 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8974 add_show_prefix_cmd.
8975 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8976 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8977 Remove.
8978 (add_internal_problem_command): Use add_basic_prefix_cmd,
8979 add_show_prefix_cmd.
8980 * mips-tdep.c (set_mipsfpu_command): Remove.
8981 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8982 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8983 (_initialize_index_cache): Use add_basic_prefix_cmd.
8984 * memattr.c (dummy_cmd): Remove.
8985 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8986 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8987 (_initialize_tui_win): Use add_basic_prefix_cmd,
8988 add_show_prefix_cmd.
8989 * cli/cli-logging.c (set_logging_command): Remove.
8990 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8991 add_show_prefix_cmd.
8992 (show_logging_command): Remove.
8993 * target.c (target_command): Remove.
8994 (add_target): Use add_basic_prefix_cmd.
8995
a51119cd
HD
89962020-05-02 Hannes Domani <ssbssa@yahoo.de>
8997
8998 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8999
652fc23a 90002020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9001
652fc23a
PW
9002 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9003 info_command.
9004
117539e6
KR
90052020-04-30 Kamil Rytarowski <n54@gmx.com>
9006
9007 * nbsd-nat.c (nbsd_enable_proc_events)
9008 (nbsd_nat_target::post_startup_inferior): Add.
9009 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9010 (nbsd_nat_target::update_thread_list): Rewrite.
9011 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9012 "PTRACE_LWP_CREATE".
9013 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9014
102e38eb 90152020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9016
102e38eb
PW
9017 * stack.c (_initialize_stack): Remove duplicated creation
9018 of "frame" command and "f" alias.
9019
ee9d1e5f
HD
90202020-04-30 Hannes Domani <ssbssa@yahoo.de>
9021
9022 PR gdb/18706
9023 * gdbtypes.c (check_typedef): Calculate size of array of
9024 stubbed type.
9025
627c7fb8
HD
90262020-04-30 Hannes Domani <ssbssa@yahoo.de>
9027
9028 PR gdb/15559
9029 * i386-tdep.c (i386_push_dummy_call): Call
9030 i386_thiscall_push_dummy_call.
9031 (i386_thiscall_push_dummy_call): New function.
9032 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9033 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9034 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9035
ffc2844e
SM
90362020-04-29 Simon Marchi <simon.marchi@efficios.com>
9037
9038 * gdbarch.sh (do_read): Add shellcheck disable directive for
9039 warning SC2162.
9040
1207375d
SM
90412020-04-29 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9044 "referenced but not assigned" warning.
9045
9fdb2916
SM
90462020-04-29 Simon Marchi <simon.marchi@efficios.com>
9047
9048 * gdbarch.sh: Remove code that sets fallbackdefault.
9049
759cea5e
SM
90502020-04-29 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * gdbarch.sh: Use shell operators && and || instead of
9053 -a and -o.
9054
cb02ab24
SM
90552020-04-29 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * gdbarch.sh: Use $(...) instead of `...`.
9058
a6fc5ffc
SM
90592020-04-29 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * gdbarch.sh: Use double quotes around variables.
9062
8d113d13
SM
90632020-04-29 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * gdbarch.sh: Use %s with printf, instead of variables in the
9066 format string.
9067
ed6acedd
TT
90682020-04-29 Tom Tromey <tromey@adacore.com>
9069
9070 PR ada/25875:
9071 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9072 type fields here.
9073 (read_enumeration_type): Call
9074 update_enumeration_type_from_children later. Update comments.
9075 (process_enumeration_scope): Don't create type fields.
9076
b68b1b58
KR
90772020-04-29 Kamil Rytarowski <n54@gmx.com>
9078
9079 * nbsd-tdep.c: Include "xml-syscall.h".
9080 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9081
f94b2e03
KR
90822020-04-29 Kamil Rytarowski <n54@gmx.com>
9083
9084 * nbsd-nat.c: Include "sys/wait.h".
9085 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9086 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9087 (nbsd_nat_target::remove_exec_catchpoint)
9088 (nbsd_nat_target::set_syscall_catchpoint): Add.
9089 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9090 (nbsd_nat_target::insert_exec_catchpoint)
9091 (nbsd_nat_target::remove_exec_catchpoint)
9092 (nbsd_nat_target::set_syscall_catchpoint): Add.
9093 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9094 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9095 `nbsd_get_syscall_number'.
9096
fc49bc72
TT
90972020-04-29 Tom Tromey <tom@tromey.com>
9098
9099 * stack.c (print_block_frame_labels): Remove.
9100
d642b692
HD
91012020-04-29 Hannes Domani <ssbssa@yahoo.de>
9102
9103 PR gdb/17320
9104 * ada-valprint.c (val_print_packed_array_elements): Move array
9105 end bracket to new line.
9106 (ada_val_print_string): Remove extra spaces before first array
9107 element.
9108 * c-valprint.c (c_value_print_array): Likewise.
9109 * m2-valprint.c (m2_print_array_contents): Likewise.
9110 (m2_value_print_inner): Likewise.
9111 * p-valprint.c (pascal_value_print_inner): Likewise.
9112 * valprint.c (generic_val_print_array): Likewise.
9113 (value_print_array_elements): Move first array element and array
9114 end bracket to new line.
9115
ea90f227
TV
91162020-04-29 Tom de Vries <tdevries@suse.de>
9117
9118 PR symtab/25889
9119 * linespec.c (find_method): Fix ix calculation.
9120
4498ef4f
KR
91212020-04-28 Kamil Rytarowski <n54@gmx.com>
9122
9123 * syscalls/update-netbsd.sh: New file.
9124 * syscalls/netbsd.xml: Regenerate.
9125 * data-directory/Makefile.in: Register `netbsd.xml' in
9126 `SYSCALLS_FILES'.
9127
a55e30b5
SM
91282020-04-28 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * syscalls/update-freebsd.sh: Add double quotes.
9131
2b2fbab8
TT
91322020-04-28 Tom Tromey <tom@tromey.com>
9133
9134 * NEWS: Update.
9135 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9136 (cmdpy_init): Allow class_tui.
9137
a65189c9
TV
91382020-04-28 Mark Williams <mark@myosotissp.com>
9139
9140 PR gdb/24480
9141 * dwarf2read.c: Add missing assingments to list_in_scope when
9142 start_symtab was already called.
9143
1b95cdb7
SM
91442020-04-28 Simon Marchi <simon.marchi@efficios.com>
9145
9146 PR gdb/25881
9147 * dwarf2/read.c (offset_map_type): Use
9148 gdb:hash_enum<sect_offset> as hash function.
9149
15cd93d0
TV
91502020-04-28 Tom de Vries <tdevries@suse.de>
9151
9152 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9153 with DW_AT_signature.
9154
1eb39914
SM
91552020-04-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * configure.ac: Remove check for fs_base/gs_base in
9158 user_regs_struct.
9159 * configure: Re-generate.
9160 * config.in: Re-generate.
9161 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9162 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9163 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9164
991a3e2e
LM
91652020-04-27 Luis Machado <luis.machado@linaro.org>
9166
9167 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9168 problematic inline frame unwinding situation.
9169 * frame.c (frame_id_computed_p): New function.
9170 * frame.h (frame_id_computed_p): New prototype.
9171
361ba0e8
TT
91722020-04-26 Tom Tromey <tom@tromey.com>
9173
9174 * command.h (enum command_class) <class_pseudo>: Remove.
9175
bc3609fd
PW
91762020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9177
9178 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9179 and whitespace.
9180
b9771db7
KR
91812020-04-25 Kamil Rytarowski <n54@gmx.com>
9182
ec16513e
SM
9183 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9184 `PT_GET_PROCESS_STATE' block.
b9771db7 9185
7151c1af
TT
91862020-04-24 Tom Tromey <tom@tromey.com>
9187
9188 * symtab.h (symbol_get_demangled_name): Don't declare.
9189 * symtab.c (symbol_get_demangled_name): Remove.
9190 (general_symbol_info::natural_name)
9191 (general_symbol_info::demangled_name): Update.
9192
906bb4c5
TT
91932020-04-24 Tom Tromey <tom@tromey.com>
9194
9195 PR rust/25025:
9196 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9197
bcfe6157
TT
91982020-04-24 Tom Tromey <tom@tromey.com>
9199
9200 PR symtab/12707:
9201 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9202 exists.
9203 (new_symbol): Likewise.
9204 * compile/compile-object-load.c (get_out_value_type): Use
9205 symbol_matches_search_name.
9206
f049a313
TT
92072020-04-24 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2/read.c (add_partial_symbol): Do not call
9210 compute_and_set_names.
9211
76e288d1
TT
92122020-04-24 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9215 overload.
9216
2467f4f6
TT
92172020-04-24 Tom Tromey <tom@tromey.com>
9218
9219 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9220 (add_psymbol_to_list): New overload. Make old overload call new
9221 one.
9222 * psympriv.h (add_psymbol_to_list): New overload.
9223
e61108c9
TT
92242020-04-24 Tom Tromey <tom@tromey.com>
9225
9226 * dwarf2/read.c (partial_die_info::read) <case
9227 DW_AT_linkage_name>: Use value_as_string.
9228 (dwarf2_string_attr): Use value_as_string.
9229 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9230 method.
9231 * dwarf2/attribute.c (attribute::value_as_string): New method.
9232
8c87a452
TT
92332020-04-24 Tom Tromey <tom@tromey.com>
9234
9235 * symtab.c (general_symbol_info::natural_name)
9236 (general_symbol_info::demangled_name): Check for language_rust.
9237
787de330
TT
92382020-04-24 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9241 (dwarf2_physname): ... from here.
9242 (partial_die_info::read): Add Rust "{" hack.
9243
ff985671
TT
92442020-04-24 Tom Tromey <tom@tromey.com>
9245
9246 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9247 method.
9248 (symbol_set_demangled_name): Don't declare.
9249 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9250 symbol_set_demangled_name.
9251 (general_symbol_info::set_language)
9252 (general_symbol_info::compute_and_set_names): Update.
9253 * minsyms.c (minimal_symbol_reader::install): Update.
9254 * dwarf2/read.c (new_symbol): Update.
9255
1acda803
TT
92562020-04-24 Tom Tromey <tromey@adacore.com>
9257
9258 PR python/23662:
9259 * python/py-type.c (convert_field): Handle
9260 FIELD_LOC_KIND_DWARF_BLOCK.
9261 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9262 (typy_get_dynamic): Nw function.
9263 (type_object_getset): Add "dynamic".
9264 * NEWS: Add entry.
9265
d656f129
TT
92662020-04-24 Tom Tromey <tromey@adacore.com>
9267
9268 * ada-typeprint.c (print_choices, print_variant_part)
9269 (print_record_field_types_dynamic): New functions.
9270 (print_record_field_types): Use print_record_field_types_dynamic.
9271
7d79de9a
TT
92722020-04-24 Tom Tromey <tromey@adacore.com>
9273
9274 * dwarf2/read.c (handle_data_member_location): New overload.
9275 (dwarf2_add_field): Use it.
9276 (decode_locdesc): Add "computed" parameter. Update comment.
9277 * gdbtypes.c (is_dynamic_type_internal): Also look for
9278 FIELD_LOC_KIND_DWARF_BLOCK.
9279 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9280 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9281 virtual base classes.
9282 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9283 FIELD_LOC_KIND_DWARF_BLOCK.
9284
f8e89861
TT
92852020-04-24 Tom Tromey <tromey@adacore.com>
9286
9287 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9288 * gdbtypes.c (is_dynamic_type_internal): Check
9289 TYPE_HAS_DYNAMIC_LENGTH.
9290 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9291 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9292 New macros.
9293 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9294 constant.
9295
9c6a1327
TT
92962020-04-24 Tom Tromey <tromey@adacore.com>
9297
9298 * dwarf2/read.c (struct variant_field): Rewrite.
9299 (struct variant_part_builder): New.
9300 (struct nextfield): Remove "variant" field. Add "offset".
9301 (struct field_info): Add "current_variant_part" and
9302 "variant_parts".
9303 (alloc_discriminant_info): Remove.
9304 (alloc_rust_variant): New function.
9305 (quirk_rust_enum): Update.
9306 (dwarf2_add_field): Set "offset" member. Don't handle
9307 DW_TAG_variant_part.
9308 (offset_map_type): New typedef.
9309 (convert_variant_range, create_one_variant)
9310 (create_one_variant_part, create_variant_parts)
9311 (add_variant_property): New functions.
9312 (dwarf2_attach_fields_to_type): Call add_variant_property.
9313 (read_structure_type): Don't handle DW_TAG_variant_part.
9314 (handle_variant_part, handle_variant): New functions.
9315 (handle_struct_member_die): Use them.
9316 (process_structure_scope): Don't handle variant parts.
9317 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9318 (struct discriminant_info): Remove.
9319 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9320 (struct main_type) <flag_discriminated_union>: Remove.
9321 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9322 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9323 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9324 Update.
9325 * valops.c (value_union_variant): Remove.
9326 * value.h (value_union_variant): Don't declare.
9327
b249d2c2
TT
93282020-04-24 Tom Tromey <tromey@adacore.com>
9329
9330 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9331 (ada_value_primitive_packed_val): Update.
9332 * ada-valprint.c (ada_value_print_1): Update.
9333 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9334 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9335 just an address. Use evaluate_for_locexpr_baton.
9336 (dwarf2_evaluate_property): Update.
9337 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9338 array_view.
9339 * findvar.c (default_read_var_value): Update.
9340 * gdbtypes.c (compute_variant_fields_inner)
9341 (resolve_dynamic_type_internal): Update.
9342 (resolve_dynamic_type): Change type of valaddr parameter.
9343 * gdbtypes.h (resolve_dynamic_type): Update.
9344 * valarith.c (value_subscripted_rvalue): Update.
9345 * value.c (value_from_contents_and_address): Update.
9346
61122aa9
TT
93472020-04-24 Tom Tromey <tromey@adacore.com>
9348
9349 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9350 "push_initial_value" parameter.
9351 (dwarf2_evaluate_property): Likewise.
9352 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9353
ef83a141
TT
93542020-04-24 Tom Tromey <tromey@adacore.com>
9355
9356 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9357 (variant::matches, compute_variant_fields_recurse)
9358 (compute_variant_fields_inner, compute_variant_fields): New
9359 functions.
9360 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9361 Use resolved_type after type is made.
9362 (operator==): Add new cases.
9363 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9364 (struct discriminant_range, struct variant, struct variant_part):
9365 New.
9366 (union dynamic_prop_data) <variant_parts, original_type>: New
9367 members.
9368 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9369 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9370 constants.
9371 * value.c (unpack_bits_as_long): Now public.
9372 * value.h (unpack_bits_as_long): Declare.
9373
675127ec
TT
93742020-04-24 Tom Tromey <tromey@adacore.com>
9375
9376 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9377 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9378
9852ceef
HD
93792020-04-24 Hannes Domani <ssbssa@yahoo.de>
9380
9381 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9382
7632c6ce
KR
93832020-04-24 Kamil Rytarowski <n54@gmx.com>
9384
9385 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9386 (remove_fork_catchpoint, post_startup_inferior)
9387 (post_attach): Move...
9388 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9389 (remove_fork_catchpoint, post_startup_inferior)
9390 (post_attach): ...here.
9391 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9392 (remove_fork_catchpoint, post_startup_inferior)
9393 (post_attach): Move...
9394 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9395 (remove_fork_catchpoint, post_startup_inferior)
9396 (post_attach): ...here.
9397
7be2bb4f
TT
93982020-04-24 Tom Tromey <tromey@adacore.com>
9399
9400 * nat/windows-nat.h (struct windows_thread_info)
9401 <pc_adjusted>: New member.
9402 * windows-nat.c (windows_fetch_one_register): Check
9403 pc_adjusted.
9404 (windows_nat_target::get_windows_debug_event)
9405 (windows_nat_target::wait): Set pc_adjusted.
9406
f80cb3b4
TV
94072020-04-24 Tom de Vries <tdevries@suse.de>
9408
9409 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9410 Run gdb-add-index inside temp dir.
9411
29514b87
TT
94122020-04-23 Tom Tromey <tromey@adacore.com>
9413
9414 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9415 in loop.
9416
5939967b
LM
94172020-04-23 Luis Machado <luis.machado@linaro.org>
9418
9419 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9420 get_frame_register instead of gdbarch_unwind_pc.
9421
70bc38f5
TV
94222020-04-23 Tom de Vries <tdevries@suse.de>
9423
9424 * symtab.c (lookup_global_symbol): Prefer def over decl.
9425
de82891c
TV
94262020-04-23 Tom de Vries <tdevries@suse.de>
9427
9428 PR symtab/25807
9429 * block.c (best_symbol, better_symbol): Promote to external.
9430 * block.h (best_symbol, better_symbol): Declare.
9431 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9432 decl.
9433
ecc6c606
TT
94342020-04-23 Tom Tromey <tromey@adacore.com>
9435
9436 PR ada/25837:
9437 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9438 "const char *", not a "const std::string &".
9439 <name_and_matcher::operator==>: Update.
9440 * unittests/lookup_name_info-selftests.c: Change type of
9441 "result".
9442
740480b8
TT
94432020-04-23 Tom Tromey <tom@tromey.com>
9444
9445 * inferior.h (iterate_over_inferiors): Don't declare.
9446 * inferior.c (iterate_over_inferiors): Remove.
9447 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9448 Remove.
9449 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9450 use iterate_over_inferiors.
9451 (darwin_resume_inferior_it)
9452 (struct resume_inferior_threads_param)
9453 (darwin_resume_inferior_threads_it): Remove.
9454 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9455
ae3ab1f0
TV
94562020-04-23 Tom de Vries <tdevries@suse.de>
9457
9458 * blockframe.c (find_pc_partial_function): Use
9459 find_pc_sect_compunit_symtab rather than
9460 objfile->sf->qf->find_pc_sect_compunit_symtab.
9461
317d2668
TV
94622020-04-22 Tom de Vries <tdevries@suse.de>
9463
9464 PR symtab/25764
9465 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9466 in psymtabs.
9467
eea9e357
TV
94682020-04-22 Tom de Vries <tdevries@suse.de>
9469
9470 PR symtab/25801
9471 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9472 symtabs.
9473
3d5afab3
TV
94742020-04-22 Tom de Vries <tdevries@suse.de>
9475
9476 PR symtab/25700
9477 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9478 CU if already created.
9479
d43b7a2d
TBA
94802020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9481
9482 * infrun.c (displaced_step_fixup): Switch to the event_thread
9483 before calling displaced_step_restore, not after.
9484
d89edf9b
MM
94852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9486
9487 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9488 its inferior is not recorded by us.
9489 (record_btrace_target_open): Replace call to
9490 all_non_exited_threads () with call to current_inferior
9491 ()->non_exited_threads ().
9492 (record_btrace_target::stop_recording): Likewise.
9493 (record_btrace_target::close): Likewise.
9494 (record_btrace_target::wait): Likewise.
9495 (record_btrace_target::record_stop_replaying): Likewise.
9496
5897fd49
MM
94972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9498
9499 * btrace.c (btrace_enable): Throw an error on double enables and
9500 when enabling recording fails.
9501 (btrace_disable): Throw an error if the thread is not recorded.
9502
1a476b6d
MM
95032020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9504
9505 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9506 request if we do not have a thread_info.
9507
4778a5f8
TV
95082020-04-21 Tom de Vries <tdevries@suse.de>
9509
9510 PR gdb/25471
9511 * thread.c
9512 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9513 exception in get_frame_id.
9514
0fa7617d
TT
95152020-04-20 Tom Tromey <tromey@adacore.com>
9516
9517 * python/python.c (struct gdbpy_event): Mark move constructor as
9518 noexcept.
9519 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9520 constructor as noexcept.
9521 * completer.h (struct completion_result): Mark move constructor as
9522 noexcept.
9523 * completer.c (completion_result::completion_result): Use
9524 initialization style. Don't call reset_match_list.
9525
ad23bda0
MS
95262020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9527
9528 * MAINTAINERS (Write After Approval): Add myself.
9529
45e1f031
TT
95302020-04-18 Tom Tromey <tom@tromey.com>
9531
9532 * windows-tdep.c (init_w32_command_list)
9533 (w32_prefix_command_valid): Restore.
9534 (_initialize_windows_tdep): Call init_w32_command_list.
9535
08feed99
TT
95362020-04-18 Tom Tromey <tom@tromey.com>
9537
9538 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9539 * value.c (value_fn_field): Update.
9540 * valops.c (find_function_in_inferior)
9541 (value_allocate_space_in_inferior): Update.
9542 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9543 Update.
9544 * tui/tui-source.c (tui_source_window::set_contents): Update.
9545 * symtab.c (lookup_global_or_static_symbol)
9546 (find_function_start_sal_1, skip_prologue_sal)
9547 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9548 * symmisc.c (dump_msymbols, dump_symtab_1)
9549 (maintenance_print_one_line_table): Update.
9550 * symfile.c (init_entry_point_info, section_is_mapped)
9551 (list_overlays_command, simple_read_overlay_table)
9552 (simple_overlay_update_1): Update.
9553 * stap-probe.c (handle_stap_probe): Update.
9554 * stabsread.c (dbx_init_float_type, define_symbol)
9555 (read_one_struct_field, read_enum_type, read_range_type): Update.
9556 * source.c (info_line_command): Update.
9557 * python/python.c (gdbpy_source_objfile_script)
9558 (gdbpy_execute_objfile_script): Update.
9559 * python/py-type.c (save_objfile_types): Update.
9560 * python/py-objfile.c (py_free_objfile): Update.
9561 * python/py-inferior.c (python_new_objfile): Update.
9562 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9563 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9564 (maintenance_check_psymtabs): Update.
9565 * printcmd.c (info_address_command): Update.
9566 * objfiles.h (struct objfile) <arch>: New method, from
9567 get_objfile_arch.
9568 (get_objfile_arch): Don't declare.
9569 * objfiles.c (get_objfile_arch): Remove.
9570 (filter_overlapping_sections): Update.
9571 * minsyms.c (msymbol_is_function): Update.
9572 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9573 (output_nondebug_symbol): Update.
9574 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9575 (mdebug_expand_psymtab): Update.
9576 * machoread.c (macho_add_oso_symfile): Update.
9577 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9578 Update.
9579 * linux-fork.c (checkpoint_command): Update.
9580 * linespec.c (convert_linespec_to_sals): Update.
9581 * jit.c (finalize_symtab): Update.
9582 * infrun.c (insert_exception_resume_from_probe): Update.
9583 * ia64-tdep.c (ia64_find_unwind_table): Update.
9584 * hppa-tdep.c (internalize_unwinds): Update.
9585 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9586 Update.
9587 * gcore.c (call_target_sbrk): Update.
9588 * elfread.c (record_minimal_symbol, elf_symtab_read)
9589 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9590 (elf_gnu_ifunc_resolve_by_got): Update.
9591 * dwarf2/read.c (create_addrmap_from_index)
9592 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9593 (read_debug_names_from_section)
9594 (process_psymtab_comp_unit_reader, add_partial_symbol)
9595 (add_partial_subprogram, process_full_comp_unit)
9596 (read_file_scope, read_func_scope, read_lexical_block_scope)
9597 (read_call_site_scope, dwarf2_ranges_read)
9598 (dwarf2_record_block_ranges, dwarf2_add_field)
9599 (mark_common_block_symbol_computed, read_tag_pointer_type)
9600 (read_tag_string_type, dwarf2_init_float_type)
9601 (dwarf2_init_complex_target_type, read_base_type)
9602 (partial_die_info::read, partial_die_info::read)
9603 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9604 (dwarf2_fetch_die_loc_sect_off): Update.
9605 * dwarf2/loc.c (dwarf2_find_location_expression)
9606 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9607 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9608 (dwarf2_loc_desc_get_symbol_read_needs)
9609 (locexpr_describe_location_piece, locexpr_describe_location_1)
9610 (loclist_describe_location): Update.
9611 * dwarf2/index-write.c (write_debug_names): Update.
9612 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9613 * dtrace-probe.c (dtrace_process_dof): Update.
9614 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9615 (process_one_symbol): Update.
9616 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9617 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9618 (coff_read_enum_type): Update.
9619 * cli/cli-cmds.c (edit_command, list_command): Update.
9620 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9621 * breakpoint.c (create_overlay_event_breakpoint)
9622 (create_longjmp_master_breakpoint)
9623 (create_std_terminate_master_breakpoint)
9624 (create_exception_master_breakpoint, get_sal_arch): Update.
9625 * block.c (block_gdbarch): Update.
9626 * annotate.c (annotate_source_line): Update.
9627
0743fc83
TT
96282020-04-17 Tom Tromey <tromey@adacore.com>
9629
9630 * auto-load.c (show_auto_load_cmd): Remove.
9631 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9632 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9633 (maintenance_print_arc_command): Remove.
9634 * tui/tui-win.c (tui_command): Remove.
9635 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9636 * tui/tui-layout.c (tui_layout_command): Remove.
9637 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9638 * python/python.c (user_set_python, user_show_python): Remove.
9639 (_initialize_python): Use add_basic_prefix_cmd,
9640 add_show_prefix_cmd.
9641 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9642 (install_gdb_commands): Use add_basic_prefix_cmd,
9643 add_show_prefix_cmd.
9644 (info_guile_command): Remove.
9645 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9646 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9647 add_show_prefix_cmd.
9648 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9649 Remove do_set and do_show parameters.
9650 * cli/cli-style.c (set_style, show_style): Remove.
9651 (_initialize_cli_style): Use add_basic_prefix_cmd,
9652 add_show_prefix_cmd.
9653 (cli_style_option::add_setshow_commands): Remove do_set and
9654 do_show parameters.
9655 (cli_style_option::add_setshow_commands): Use
9656 add_basic_prefix_cmd, add_show_prefix_cmd.
9657 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9658 (set_style_name): Remove.
9659 * cli/cli-dump.c (dump_command, append_command): Remove.
9660 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9661 (tekhex_dump_command, binary_dump_command)
9662 (binary_append_command): Remove.
9663 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9664 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9665 (init_w32_command_list): Remove; move into ...
9666 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9667 * valprint.c (set_print, show_print, set_print_raw)
9668 (show_print_raw): Remove.
9669 (_initialize_valprint): Use add_basic_prefix_cmd,
9670 add_show_prefix_cmd.
9671 * typeprint.c (set_print_type, show_print_type): Remove.
9672 (_initialize_typeprint): Use add_basic_prefix_cmd,
9673 add_show_prefix_cmd.
9674 * record.c (set_record_command, show_record_command): Remove.
9675 (_initialize_record): Use add_basic_prefix_cmd,
9676 add_show_prefix_cmd.
9677 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9678 add_show_prefix_cmd.
9679 (info_command, show_command, set_debug, show_debug): Remove.
9680 * top.h (set_history, show_history): Don't declare.
9681 * top.c (set_history, show_history): Remove.
9682 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9683 (unset_tdesc_cmd): Remove.
9684 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9685 add_show_prefix_cmd.
9686 * symtab.c (info_module_command): Remove.
9687 (_initialize_symtab): Use add_basic_prefix_cmd.
9688 * symfile.c (overlay_command): Remove.
9689 (_initialize_symfile): Use add_basic_prefix_cmd.
9690 * sparc64-tdep.c (info_adi_command): Remove.
9691 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9692 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9693 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9694 add_show_prefix_cmd.
9695 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9696 (_initialize_serial): Use add_basic_prefix_cmd,
9697 add_show_prefix_cmd.
9698 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9699 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9700 add_show_prefix_cmd.
9701 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9702 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9703 add_show_prefix_cmd.
9704 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9705 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9706 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9707 add_show_prefix_cmd.
9708 * remote.c (remote_command, set_remote_cmd): Remove.
9709 (_initialize_remote): Use add_basic_prefix_cmd.
9710 * record-full.c (set_record_full_command)
9711 (show_record_full_command): Remove.
9712 (_initialize_record_full): Use add_basic_prefix_cmd,
9713 add_show_prefix_cmd.
9714 * record-btrace.c (cmd_set_record_btrace)
9715 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9716 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9717 (cmd_show_record_btrace_pt): Remove.
9718 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9719 add_show_prefix_cmd.
9720 * ravenscar-thread.c (set_ravenscar_command)
9721 (show_ravenscar_command): Remove.
9722 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9723 add_show_prefix_cmd.
9724 * mips-tdep.c (show_mips_command, set_mips_command)
9725 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9726 add_show_prefix_cmd.
9727 * maint.c (maintenance_command, maintenance_info_command)
9728 (maintenance_check_command, maintenance_print_command)
9729 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9730 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9731 add_show_prefix_cmd.
9732 (show_per_command_cmd): Remove.
9733 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9734 Remove.
9735 (maintenance_show_test_settings_cmd): Remove.
9736 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9737 add_show_prefix_cmd.
9738 * maint-test-options.c (maintenance_test_options_command):
9739 Remove.
9740 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9741 * macrocmd.c (macro_command): Remove
9742 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9743 * language.c (set_check, show_check): Remove.
9744 (_initialize_language): Use add_basic_prefix_cmd,
9745 add_show_prefix_cmd.
9746 * infcmd.c (unset_command): Remove.
9747 (_initialize_infcmd): Use add_basic_prefix_cmd.
9748 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9749 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9750 add_show_prefix_cmd.
9751 * go32-nat.c (go32_info_dos_command): Remove.
9752 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9753 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9754 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9755 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9756 (_initialize_frame): Use add_basic_prefix_cmd,
9757 add_show_prefix_cmd.
9758 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9759 (_initialize_dcache): Use add_basic_prefix_cmd,
9760 add_show_prefix_cmd.
9761 * cp-support.c (maint_cplus_command): Remove.
9762 (_initialize_cp_support): Use add_basic_prefix_cmd.
9763 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9764 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9765 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9766 add_basic_prefix_cmd, add_show_prefix_cmd.
9767 * breakpoint.c (save_command): Remove.
9768 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9769 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9770 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9771 add_show_prefix_cmd.
9772 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9773 (set_ada_command, show_ada_command): Remove.
9774 (_initialize_ada_language): Use add_basic_prefix_cmd,
9775 add_show_prefix_cmd.
9776 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9777
3557f442
KR
97782020-04-16 Kamil Rytarowski <n54@gmx.com>
9779
9780 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9781 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9782
16197208
SM
97832020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9784
9785 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9786 warning messages.
9787
00ac85d3
SM
97882020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9789
9790 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9791 import table is not at beginning of .idata section.
9792
381ce63f
PA
97932020-04-16 Pedro Alves <palves@redhat.com>
9794
9795 * inferior.c (delete_inferior): Use delete operator directly
9796 instead of delete_program_space.
9797 * progspace.c (add_program_space): New, factored out from
9798 program_space::program_space.
9799 (remove_program_space): New, factored out from
9800 delete_program_space.
9801 (program_space::program_space): Remove intro comment. Rewrite.
9802 (program_space::~program_space): Remove intro comment. Call
9803 remove_program_space.
9804 (delete_program_space): Delete.
9805 * progspace.h (program_space::program_space): Make explicit. Move
9806 intro comment here, adjusted.
9807 (program_space::~program_space): Move intro comment here,
9808 adjusted.
9809 (delete_program_space): Remove.
9810
a010605f
TT
98112020-04-16 Tom Tromey <tromey@adacore.com>
9812
9813 * windows-nat.c (windows_nat::handle_access_violation): New
9814 function.
9815 * nat/windows-nat.h (handle_access_violation): Declare.
9816 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9817 windows-nat.c. Call handle_access_violation.
9818
efba5c23
TV
98192020-04-16 Tom de Vries <tdevries@suse.de>
9820
9821 PR symtab/25791
9822 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9823 CUs without psymtab.
9824
97ed802d
KB
98252020-04-16 Kevin Buettner <kevinb@redhat.com>
9826
9827 * python/python.c (do_start_initialization): Don't call
9828 PyEval_InitThreads for Python 3.9 and beyond.
9829
c7d64809
KR
98302020-04-15 Kamil Rytarowski <n54@gmx.com>
9831
9832 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9833 thread functions.
9834 (obsd_nat_target::wait): Likewise.
9835
ce127a96
TT
98362020-04-15 Tom Tromey <tromey@adacore.com>
9837
9838 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9839 (DEBUG_EXCEPT): Use debug_printf.
9840
99f1bc6a
AB
98412020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * completer.c (class completion_tracker::completion_hash_entry)
9844 <hash_name>: New member function.
9845 (completion_tracker::discard_completions): New callback to hash a
9846 completion_hash_entry, pass this to htab_create_alloc.
9847
a0e9b532
JT
98482016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9849
9850 * windows-nat.c (windows_make_so): Warn rather than stopping with
9851 an error if realpath() fails.
9852
06ca5dd4
KR
98532020-04-14 Kamil Rytarowski <n54@gmx.com>
9854
9855 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9856 (nbsd_nat_target::info_proc): Add do_status.
9857
194d088f
TV
98582020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9859 Tom de Vries <tdevries@suse.de>
9860
9861 PR symtab/25718
9862 * psympriv.h (struct partial_symtab::read_symtab)
9863 (struct partial_symtab::expand_psymtab)
9864 (struct partial_symtab::read_dependencies): Update comments.
9865 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9866 read_symtab for includer.
9867 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9868 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9869 (struct dwarf2_include_psymtab::m_readin): Remove.
9870 (struct dwarf2_include_psymtab::includer): New member function.
9871 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9872
c1a66c06
TV
98732020-04-14 Tom de Vries <tdevries@suse.de>
9874
9875 PR symtab/25720
9876 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9877 with NULL symbol_matcher and lookup_name.
9878 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9879 and lookup_name.
9880 * dwarf2/read.c (dw2_expand_symtabs_matching)
9881 (dw2_debug_names_expand_symtabs_matching): Same.
9882 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9883 Make lookup_name a pointer. Update comment.
9884 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9885 lookup_name being a pointer.
9886 * symfile.c (expand_symtabs_matching): Same.
9887 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9888 * linespec.c (iterate_over_all_matching_symtabs): Same.
9889
400b5eca
TT
98902020-04-13 Tom Tromey <tom@tromey.com>
9891
9892 * run-on-main-thread.c: Update include.
9893 * unittests/main-thread-selftests.c: Update include.
9894 * tui/tui-win.c: Update include.
9895 * tui/tui-io.c: Update include.
9896 * tui/tui-interp.c: Update include.
9897 * tui/tui-hooks.c: Update include.
9898 * top.h: Update include.
9899 * top.c: Update include.
9900 * ser-base.c: Update include.
9901 * remote.c: Update include.
9902 * remote-notif.c: Update include.
9903 * remote-fileio.c: Update include.
9904 * record-full.c: Update include.
9905 * record-btrace.c: Update include.
9906 * python/python.c: Update include.
9907 * posix-hdep.c: Update include.
9908 * mingw-hdep.c: Update include.
9909 * mi/mi-main.c: Update include.
9910 * mi/mi-interp.c: Update include.
9911 * main.c: Update include.
9912 * linux-nat.c: Update include.
9913 * interps.c: Update include.
9914 * infrun.c: Update include.
9915 * inf-loop.c: Update include.
9916 * event-top.c: Update include.
9917 * event-loop.c: Move to ../gdbsupport/.
9918 * event-loop.h: Move to ../gdbsupport/.
9919 * async-event.h: Update include.
9920 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9921
93b54c8e
TT
99222020-04-13 Tom Tromey <tom@tromey.com>
9923
9924 * tui/tui-win.c: Include async-event.h.
9925 * remote.c: Include async-event.h.
9926 * remote-notif.c: Include async-event.h.
9927 * record-full.c: Include async-event.h.
9928 * record-btrace.c: Include async-event.h.
9929 * infrun.c: Include async-event.h.
9930 * event-top.c: Include async-event.h.
9931 * event-loop.h: Move some declarations to async-event.h.
9932 * event-loop.c: Don't include ser-event.h or top.h. Move some
9933 code to async-event.c.
9934 * async-event.h: New file.
9935 * async-event.c: New file.
9936 * Makefile.in (COMMON_SFILES): Add async-event.c.
9937 (HFILES_NO_SRCDIR): Add async-event.h.
9938
c1cd3163
TT
99392020-04-13 Tom Tromey <tom@tromey.com>
9940
9941 * utils.c (flush_streams): New function.
9942 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9943
29f2bf4f
TT
99442020-04-13 Tom Tromey <tom@tromey.com>
9945
9946 * event-loop.c (handle_file_event): Use warning, not
9947 printf_unfiltered.
9948
98029d02
TT
99492020-04-13 Tom Tromey <tom@tromey.com>
9950
9951 * event-loop.c: Include <chrono>.
9952
06cc9596
TT
99532020-04-13 Tom Tromey <tom@tromey.com>
9954
9955 * gdb_select.h: Move to ../gdbsupport/.
9956 * event-loop.c: Update include path.
9957 * top.c: Update include path.
9958 * ser-base.c: Update include path.
9959 * ui-file.c: Update include path.
9960 * ser-tcp.c: Update include path.
9961 * guile/scm-ports.c: Update include path.
9962 * posix-hdep.c: Update include path.
9963 * ser-unix.c: Update include path.
9964 * gdb_usleep.c: Update include path.
9965 * mingw-hdep.c: Update include path.
9966 * inflow.c: Update include path.
9967 * infrun.c: Update include path.
9968 * event-top.c: Update include path.
9969
8ae8e197
TT
99702020-04-13 Tom Tromey <tom@tromey.com>
9971
9972 * configure: Rebuild.
9973 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9974
58cf28e8
TT
99752020-04-13 Tom Tromey <tom@tromey.com>
9976
9977 * event-loop.h (start_event_loop): Don't declare.
9978 * event-loop.c (start_event_loop): Move...
9979 * main.c (start_event_loop): ...here. Now static.
9980
b7f999ae
SDJ
99812020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9982
9983 * MAINTAINERS: Update my email address.
9984
1085dfd4
KR
99852020-04-12 Kamil Rytarowski <n54@gmx.com>
9986
9987 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9988 IP_ALL.
9989
49d1d1f5
KR
99902020-04-12 Kamil Rytarowski <n54@gmx.com>
9991
9992 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9993 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9994
b4848d2a
KR
99952020-04-12 Kamil Rytarowski <n54@gmx.com>
9996
9997 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9998 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9999
51c133d5
KR
100002020-04-12 Kamil Rytarowski <n54@gmx.com>
10001
10002 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10003
54b8cbd0
KR
100042020-04-11 Kamil Rytarowski <n54@gmx.com>
10005
10006 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10007 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10008 (nbsd_nat_target::info_proc): New functions.
10009 * nbsd-nat.c (kinfo_get_vmmap): New function.
10010 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10011 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10012 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10013 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10014 functions.
10015 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10016 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10017 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10018 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10019 (KINFO_VME_FLAG_GROWS_DOWN): New.
10020
cf83625d
AS
100212020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10022
10023 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10024 bit shift.
10025
0c4311ab
TT
100262020-04-10 Tom Tromey <tromey@adacore.com>
10027
10028 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10029
3e65b3e9
TT
100302020-04-10 Tom Tromey <tromey@adacore.com>
10031
10032 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10033 separate debug files.
10034
13302e95
HD
100352020-04-10 Hannes Domani <ssbssa@yahoo.de>
10036
10037 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10038 Move to...
10039 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10040 ... here.
10041 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10042 Check for STATUS_WX86_BREAKPOINT.
10043 (windows_nat_target::wait): Same.
10044
bdfc1e8a
TV
100452020-04-10 Tom de Vries <tdevries@suse.de>
10046
10047 PR cli/25808
10048 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10049
f4460aec
SM
100502020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10051
10052 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10053 (Write After Approval): Remove Tom de Vries.
10054
a25198bb
BE
100552020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10056
10057 revert partially:
10058 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10059
aac66a4c
SM
10060 * buildsym.c (record_line): Fix undefined behavior and preserve
10061 lines at eof.
a25198bb 10062
206c98a6
KR
100632020-04-09 Kamil Rytarowski <n54@gmx.com>
10064
10065 * auxv.h (svr4_auxv_parse): New.
10066 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10067 and generic_auxv_parse.
10068 (svr4_auxv_parse): Add.
10069 * obsd-tdep.c: Include "auxv.h".
10070 (obsd_auxv_parse): Remove.
10071 (obsd_init_abi): Remove comment.
10072 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10073 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10074 * nbsd-tdep.c: Include "auxv.h".
10075 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10076
71fbdbaf
TT
100772020-04-08 Tom Tromey <tromey@adacore.com>
10078
10079 * nat/windows-nat.h (last_wait_event): Don't declare.
10080 (wait_for_debug_event): Update comment.
10081 * nat/windows-nat.c (last_wait_event): Now static.
10082
2c1d95e8
TT
100832020-04-08 Tom Tromey <tromey@adacore.com>
10084
10085 * windows-nat.c (wait_for_debug_event): Move to
10086 nat/windows-nat.c.
10087 * nat/windows-nat.h (wait_for_debug_event): Declare.
10088 * nat/windows-nat.c (wait_for_debug_event): Move from
10089 windows-nat.c. No longer static.
10090
d2977bc4
TT
100912020-04-08 Tom Tromey <tromey@adacore.com>
10092
10093 * windows-nat.c (get_windows_debug_event): Use
10094 fetch_pending_stop.
10095 * nat/windows-nat.h (fetch_pending_stop): Declare.
10096 * nat/windows-nat.c (fetch_pending_stop): New function.
10097
e758e19c
TT
100982020-04-08 Tom Tromey <tromey@adacore.com>
10099
10100 * windows-nat.c (windows_continue): Use matching_pending_stop and
10101 continue_last_debug_event.
10102 * nat/windows-nat.h (matching_pending_stop)
10103 (continue_last_debug_event): Declare.
10104 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10105 (matching_pending_stop, continue_last_debug_event): New
10106 functions.
10107
8d30e395
TT
101082020-04-08 Tom Tromey <tromey@adacore.com>
10109
10110 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10111 (handle_exception_result): Move to nat/windows-nat.h.
10112 (DEBUG_EXCEPTION_SIMPLE): Remove.
10113 (windows_nat::handle_ms_vc_exception): New function.
10114 (handle_exception): Move to nat/windows-nat.c.
10115 (get_windows_debug_event): Update.
10116 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10117 nat/windows-nat.c.
10118 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10119 (handle_exception_result): Move from windows-nat.c.
10120 (handle_exception): Declare.
10121 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10122 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10123 windows-nat.c.
10124
29de418d
TT
101252020-04-08 Tom Tromey <tromey@adacore.com>
10126
10127 * windows-nat.c (exception_count, event_count): Remove.
10128 (handle_exception, get_windows_debug_event)
10129 (do_initial_windows_stuff): Update.
10130
a816ba18
TT
101312020-04-08 Tom Tromey <tromey@adacore.com>
10132
10133 * windows-nat.c (windows_nat::handle_load_dll)
10134 (windows_nat::handle_unload_dll): Rename. No longer static.
10135 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10136 Declare.
10137
a00caa12
TT
101382020-04-08 Tom Tromey <tromey@adacore.com>
10139
10140 * complaints.h (stop_whining): Declare at top-level.
10141 (complaint): Don't declare stop_whining.
10142
d41b524f
TT
101432020-04-08 Tom Tromey <tromey@adacore.com>
10144
10145 * windows-nat.c (windows_nat::handle_output_debug_string):
10146 Rename. No longer static.
10147 * nat/windows-nat.h (handle_output_debug_string): Declare.
10148
3c76026d
TT
101492020-04-08 Tom Tromey <tromey@adacore.com>
10150
10151 * windows-nat.c (current_process_handle, current_process_id)
10152 (main_thread_id, last_sig, current_event, last_wait_event)
10153 (current_windows_thread, desired_stop_thread_id, pending_stops)
10154 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10155 (display_selectors, fake_create_process)
10156 (get_windows_debug_event): Update.
10157 * nat/windows-nat.h (current_process_handle, current_process_id)
10158 (main_thread_id, last_sig, current_event, last_wait_event)
10159 (current_windows_thread, desired_stop_thread_id, pending_stops)
10160 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10161 * nat/windows-nat.c (current_process_handle, current_process_id)
10162 (main_thread_id, last_sig, current_event, last_wait_event)
10163 (current_windows_thread, desired_stop_thread_id, pending_stops)
10164 (siginfo_er): New globals. Move from windows-nat.c.
10165
9d8679cc
TT
101662020-04-08 Tom Tromey <tromey@adacore.com>
10167
10168 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10169 (handle_load_dll): Update.
10170 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10171
28688adf
TT
101722020-04-08 Tom Tromey <tromey@adacore.com>
10173
10174 * windows-nat.c (enum thread_disposition_type): Move to
10175 nat/windows-nat.h.
10176 (windows_nat::thread_rec): Rename from thread_rec. No longer
10177 static.
10178 (windows_add_thread, windows_nat_target::fetch_registers)
10179 (windows_nat_target::store_registers, handle_exception)
10180 (windows_nat_target::resume, get_windows_debug_event)
10181 (windows_nat_target::get_tib_address)
10182 (windows_nat_target::thread_name)
10183 (windows_nat_target::thread_alive): Update.
10184 * nat/windows-nat.h (enum thread_disposition_type): Move from
10185 windows-nat.c.
10186 (thread_rec): Declare.
10187
4834dad0
TT
101882020-04-08 Tom Tromey <tromey@adacore.com>
10189
10190 * windows-nat.c: Add "using namespace".
10191 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10192 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10193
65bafd5b
TT
101942020-04-08 Tom Tromey <tromey@adacore.com>
10195
10196 * nat/windows-nat.h (struct windows_thread_info): Declare
10197 destructor.
10198 * nat/windows-nat.c (~windows_thread_info): New.
10199
0a4afda3
TT
102002020-04-08 Tom Tromey <tromey@adacore.com>
10201
10202 PR gdb/22992
10203 * windows-nat.c (current_event): Update comment.
10204 (last_wait_event, desired_stop_thread_id): New globals.
10205 (struct pending_stop): New.
10206 (pending_stops): New global.
10207 (windows_nat_target) <stopped_by_sw_breakpoint>
10208 <supports_stopped_by_sw_breakpoint>: New methods.
10209 (windows_fetch_one_register): Add assertions. Adjust PC.
10210 (windows_continue): Handle pending stops. Suspend other threads
10211 when stepping. Use last_wait_event
10212 (wait_for_debug_event): New function.
10213 (get_windows_debug_event): Use wait_for_debug_event. Handle
10214 pending stops. Queue spurious stops.
10215 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10216 (windows_nat_target::kill): Use wait_for_debug_event.
10217 * nat/windows-nat.h (struct windows_thread_info)
10218 <stopped_at_software_breakpoint>: New field.
10219 * nat/windows-nat.c (windows_thread_info::resume): Clear
10220 stopped_at_software_breakpoint.
10221
8e61ebec
TT
102222020-04-08 Tom Tromey <tromey@adacore.com>
10223
10224 * windows-nat.c (enum thread_disposition_type): New.
10225 (thread_rec): Replace "get_context" parameter with "disposition";
10226 change type.
10227 (windows_add_thread, windows_nat_target::fetch_registers)
10228 (windows_nat_target::store_registers, handle_exception)
10229 (windows_nat_target::resume, get_windows_debug_event)
10230 (windows_nat_target::get_tib_address)
10231 (windows_nat_target::thread_name)
10232 (windows_nat_target::thread_alive): Update.
10233
98a03287
TT
102342020-04-08 Tom Tromey <tromey@adacore.com>
10235
10236 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10237 (windows_continue): Use windows_continue::resume.
10238 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10239 resume>: Declare new methods.
10240 * nat/windows-nat.c: New file.
10241 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10242
7c7411bc
TT
102432020-04-08 Tom Tromey <tromey@adacore.com>
10244
10245 * windows-nat.c (windows_add_thread, windows_delete_thread)
10246 (windows_nat_target::fetch_registers)
10247 (windows_nat_target::store_registers, fake_create_process)
10248 (windows_nat_target::resume, windows_nat_target::resume)
10249 (get_windows_debug_event, windows_nat_target::wait)
10250 (windows_nat_target::pid_to_str)
10251 (windows_nat_target::get_tib_address)
10252 (windows_nat_target::get_ada_task_ptid)
10253 (windows_nat_target::thread_name)
10254 (windows_nat_target::thread_alive): Use lwp, not tid.
10255
2950fdf7
TT
102562020-04-08 Tom Tromey <tromey@adacore.com>
10257
10258 * windows-nat.c (handle_exception)
10259 (windows_nat_target::thread_name): Update.
10260 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10261 <name>: Now unique_xmalloc_ptr.
10262
62fe396b
TT
102632020-04-08 Tom Tromey <tromey@adacore.com>
10264
10265 * windows-nat.c (thread_rec)
10266 (windows_nat_target::fetch_registers): Update.
10267 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10268 Update comment.
10269 <debug_registers_changed, reload_context>: Now bool.
10270
e9534bd2
TT
102712020-04-08 Tom Tromey <tromey@adacore.com>
10272
10273 * windows-nat.c (windows_add_thread): Use new.
10274 (windows_init_thread_list, windows_delete_thread): Use delete.
10275 (get_windows_debug_event): Update.
10276 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10277 destructor, and initializers.
10278
ae1f8880
TT
102792020-04-08 Tom Tromey <tromey@adacore.com>
10280
10281 * windows-nat.c (struct windows_thread_info): Remove.
10282 * nat/windows-nat.h: New file.
10283
55a1e039
TT
102842020-04-08 Tom Tromey <tromey@adacore.com>
10285
10286 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10287 (thread_rec, windows_add_thread, windows_delete_thread)
10288 (windows_continue): Update.
10289
93366324
TT
102902020-04-08 Tom Tromey <tromey@adacore.com>
10291
10292 * windows-nat.c (struct windows_thread_info): Remove typedef.
10293 (thread_head): Remove.
10294 (thread_list): New global.
10295 (thread_rec, windows_add_thread, windows_init_thread_list)
10296 (windows_delete_thread, windows_continue): Update.
10297
0f2265e2
SM
102982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10299
10300 * windows-tdep.h (windows_init_abi): Add comment.
10301 (cygwin_init_abi): New declaration.
10302 * windows-tdep.c: Split signal enumeration in two, one for
10303 Windows and one for Cygwin.
10304 (windows_gdb_signal_to_target): Only deal with signal of the
10305 Windows OS ABI.
10306 (cygwin_gdb_signal_to_target): New function.
10307 (windows_init_abi): Rename to windows_init_abi_common, don't set
10308 gdb_signal_to_target gdbarch method. Add new new function with
10309 this name.
10310 (cygwin_init_abi): New function.
10311 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10312 comment. Don't call windows_init_abi.
10313 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10314 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10315 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10316 i386_windows_init_abi_common, don't call windows_init_abi. Add
10317 a new function of this name.
10318 (i386_cygwin_init_abi): New function.
10319 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10320 OS ABI Cygwin.
10321
3810f182
SM
103222020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10323
10324 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10325 parameter.c.
10326 (dwarf2_read_gdb_index): Update.
10327
063f8e80
KR
103282020-04-07 Kamil Rytarowski <n54@gmx.com>
10329
10330 * nbsd-tdep.c: Include "objfiles.h".
10331 (nbsd_skip_solib_resolver): New.
10332 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10333
85a9510c 103342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10335
10336 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10337 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10338 with DW_LLE_base_addressx are being emitted in DWARFv5.
10339 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10340 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10341 unsigned integer.
10342
9fc3eaae 103432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10344
10345 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10346 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10347 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10348 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10349 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10350 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10351 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10352
10353
41144253 103542020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10355
10356 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10357 (read_loclist_index): New function definition.
10358 (lookup_loclist_base): New function definition.
10359 (read_loclist_header): New function definition.
10360 (dwarf2_cu): Add loclist_base and loclist_header field.
10361 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10362 (read_full_die_1): Read the value of DW_AT_loclists_base.
10363 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10364 (read_attribute_value): Handle DW_FORM_loclistx.
10365 (skip_one_die): Handle DW_FORM_loclistx.
10366 (loclist_header): New structure declaration.
10367 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10368
9f4e76a4
SM
103692020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10372 constructor. Remove `addr` parameter from other constructor and
10373 add `per_cu` parameter.
10374 * dwarf2/read.c (create_partial_symtab): Update.
10375
25c11aca
TV
103762020-04-07 Tom de Vries <tdevries@suse.de>
10377
10378 PR symtab/25796
10379 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10380 (partial_die_info::fixup): Inherit has_const_value.
10381
5707e24b
TV
103822020-04-07 Tom de Vries <tdevries@suse.de>
10383
10384 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10385 symbols without address.
10386
05f00e22
KR
103872020-04-06 Kamil Rytarowski <n54@gmx.com>
10388
10389 * nbsd-nat.h (struct thread_info): Add forward declaration.
10390 (nbsd_nat_target::thread_alive): Add.
10391 (nbsd_nat_target::thread_name): Likewise.
10392 (nbsd_nat_target::update_thread_list): Likewise.
10393 (update_thread_list::post_attach): Likewise.
10394 (post_attach::pid_to_str): Likewise.
10395 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10396 (nbsd_thread_lister): Add.
10397 (nbsd_nat_target::thread_alive): Likewise.
10398 (nbsd_nat_target::thread_name): Likewise.
10399 (nbsd_add_threads): Likewise.
10400 (update_thread_list::post_attach): Likewise.
10401 (nbsd_nat_target::update_thread_list): Likewise.
10402 (post_attach::pid_to_str): Likewise.
10403
6ee448cc
TT
104042020-04-06 Tom Tromey <tromey@adacore.com>
10405
10406 * ada-valprint.c (print_variant_part): Extract the variant field.
10407 (print_field_values): Use the field as the outer value when
10408 recursing.
10409
dea34e8c
TT
104102020-04-06 Tom Tromey <tromey@adacore.com>
10411
10412 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10413 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10414 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10415 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10416 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10417
93689ce9
TT
104182020-04-06 Tom Tromey <tromey@adacore.com>
10419
10420 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10421 TYPE_CODE_ERROR.
10422
79743962
KR
104232020-04-06 Kamil Rytarowski <n54@gmx.com>
10424
10425 * nbsd-tdep.c: Include "gdbarch.h".
10426 Define enum with NetBSD signal numbers.
10427 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10428 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10429 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10430 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10431 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10432 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10433 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10434 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10435 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10436 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10437 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10438 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10439
9e7c9a03
HD
104402020-04-03 Hannes Domani <ssbssa@yahoo.de>
10441
10442 PR gdb/25325
10443 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10444
d9e49b61
TT
104452020-04-03 Tom Tromey <tromey@adacore.com>
10446
10447 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10448 Read constant block.
10449
e0fc5c3f
SM
104502020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10451
10452 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10453 (gdb_bfd_get_full_section_contents): New declaration.
10454 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10455 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10456 gdb_bfd_get_full_section_contents.
10457
e2ff18a0
SM
104582020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10459
10460 * exec.c (build_section_table): Replace internal_error with
10461 gdb_assert.
10462 (section_table_xfer_memory_partial): Likewise.
10463 * mdebugread.c (parse_partial_symbols): Likewise.
10464 * psymtab.c (lookup_partial_symbol): Likewise.
10465 * utils.c (wrap_here): Likewise.
10466
0830d301
TT
104672020-04-02 Tom Tromey <tromey@adacore.com>
10468
10469 * f-lang.c (build_fortran_types): Use arch_type to initialize
10470 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10471
e7da7f8f
TT
104722020-04-02 Tom Tromey <tromey@adacore.com>
10473
10474 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10475 of attributes.
10476
c90d28ac
AB
104772020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10478 Bernd Edlinger <bernd.edlinger@hotmail.de>
10479 Tom Tromey <tromey@adacore.com>
10480
10481 * buildsym.c (buildsym_compunit::record_line): Remove
10482 deduplication code.
10483
1aa98955
TV
104842020-04-02 Tom de Vries <tdevries@suse.de>
10485
10486 PR ada/24671
10487 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10488
d3214198
TV
104892020-04-02 Tom de Vries <tdevries@suse.de>
10490
10491 * dwarf2/read.c (dwarf2_gdb_index_functions,
10492 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10493 NULL.
10494 * psymtab.c (psym_lookup_global_symbol_language): New function.
10495 (psym_functions): Init psym_lookup_global_symbol_language with
10496 psym_lookup_global_symbol_language.
10497 * symfile-debug.c (debug_sym_quick_functions): Init
10498 lookup_global_symbol_language with NULL.
10499 * symfile.c (set_initial_language): Remove fixme comment.
10500 * symfile.h (struct quick_symbol_functions): Add
10501 lookup_global_symbol_language.
10502 * symtab.c (find_quick_global_symbol_language): New function.
10503 (find_main_name): Use find_quick_global_symbol_language.
10504
2836752f
SM
105052020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10506
10507 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10508
64dc2d4b
BE
105092020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10510
10511 * buildsym.c (record_line): Fix undefined behavior and preserve
10512 lines at eof.
10513
bbe3dc41
BE
105142020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10515
10516 * buildsym.c (record_line): Fix the resizing condition.
10517
6b4a335b
TT
105182020-04-01 Tom Tromey <tom@tromey.com>
10519
10520 * value.h (value_literal_complex): Add comment.
10521 * valops.c (value_literal_complex): Refer to value.h.
10522
3638a098
TT
105232020-04-01 Tom Tromey <tom@tromey.com>
10524
10525 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10526 (scalar_type): New rule, from typebase.
10527 (typebase): Use scalar_type. Recognize complex types.
10528 (field_name): Handle FLOAT_KEYWORD.
10529 (ident_tokens): Add _Complex and __complex__.
10530
c34e8714
TT
105312020-04-01 Tom Tromey <tom@tromey.com>
10532
10533 PR exp/25299:
10534 * valarith.c (promotion_type, complex_binop): New functions.
10535 (scalar_binop): Handle complex numbers. Use promotion_type.
10536 (value_pos, value_neg, value_complement): Handle complex numbers.
10537
fa649bb7
TT
105382020-04-01 Tom Tromey <tom@tromey.com>
10539
10540 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10541 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10542 (parse_number): Handle complex numbers.
10543
981c08ce
TT
105442020-04-01 Tom Tromey <tom@tromey.com>
10545
10546 * c-valprint.c (c_decorations): Change complex suffix to "i".
10547
4c99290d
TT
105482020-04-01 Tom Tromey <tom@tromey.com>
10549
10550 * valprint.c (generic_value_print_complex): Use accessors.
10551 * value.h (value_real_part, value_imaginary_part): Declare.
10552 * valops.c (value_real_part, value_imaginary_part): New
10553 functions.
10554 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10555
5b930b45
TT
105562020-04-01 Tom Tromey <tom@tromey.com>
10557
10558 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10559 (read_range_type): Update.
10560 * mdebugread.c (basic_type): Update.
10561 * go-lang.c (build_go_types): Use init_complex_type.
10562 * gdbtypes.h (struct main_type) <complex_type>: New member.
10563 (init_complex_type): Update.
10564 (arch_complex_type): Don't declare.
10565 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10566 Make name if none given. Use alloc_type_copy. Look for cached
10567 complex type.
10568 (arch_complex_type): Remove.
10569 (gdbtypes_post_init): Use init_complex_type.
10570 * f-lang.c (build_fortran_types): Use init_complex_type.
10571 * dwarf2/read.c (read_base_type): Update.
10572 * d-lang.c (build_d_types): Use init_complex_type.
10573 * ctfread.c (read_base_type): Update.
10574
53cccef1
TBA
105752020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10576
10577 * infrun.c (stop_all_threads): Update assertion, plus when
10578 stopping threads, take into account that we might be trying
10579 to stop an all-stop target.
10580 (stop_waiting): Call 'stop_all_threads' if there exists a
10581 non-stop target.
10582
a0714d30
TBA
105832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10584
10585 * target.h (exists_non_stop_target): New function declaration.
10586 * target.c (exists_non_stop_target): New function.
10587
60e22c1e
HD
105882020-04-01 Hannes Domani <ssbssa@yahoo.de>
10589
10590 PR gdb/24789
10591 * eval.c (is_integral_or_integral_reference): New function.
10592 (evaluate_subexp_standard): Allow integer references in
10593 pointer arithmetic.
10594
e139a727
TBA
105952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10596
10597 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10598 check for no ptid in the stop reply when the target is non-stop.
10599
e0802d59
TT
106002020-04-01 Tom Tromey <tromey@adacore.com>
10601
10602 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10603 "name" parameter to rvalue reference. Initialize m_name_holder.
10604 <lookup_name_info>: New overloads.
10605 <name>: Return gdb::string_view.
10606 <c_str>: New method.
10607 <make_ignore_params>: Update.
10608 <search_name_hash>: Update.
10609 <language_lookup_name>: Return const char *.
10610 <m_name>: Change type.
10611 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10612 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10613 (lookup_name_info::match_any): Update.
10614 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10615 Update.
10616 * minsyms.c (linkage_name_str): Update.
10617 * language.c (default_symbol_name_matcher): Update.
10618 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10619 Update.
10620 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10621 (ada_lookup_name_info::ada_lookup_name_info): Update.
10622 (literal_symbol_name_matcher): Update.
10623
8c072cb6
TT
106242020-04-01 Tom Tromey <tromey@adacore.com>
10625
10626 * psymtab.c (psymtab_search_name): Remove function.
10627 (psym_lookup_symbol): Create search name and lookup name here.
10628 (lookup_partial_symbol): Remove "name" parameter; add
10629 lookup_name.
10630 (psym_expand_symtabs_for_function): Update.
10631
6f29a534
TT
106322020-03-31 Joel Jones <joelkevinjones@gmail.com>
10633
10634 PR tui/25597:
10635 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10636
af62665e
TT
106372020-03-31 Tom Tromey <tromey@adacore.com>
10638
10639 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10640 memcpy.
10641
d1a89da5
NC
106422020-03-30 Nelson Chu <nelson.chu@sifive.com>
10643
10644 * features/riscv/32bit-csr.xml: Regenerated.
10645 * features/riscv/64bit-csr.xml: Regenerated.
10646
d8af9068
TT
106472020-03-30 Tom Tromey <tromey@adacore.com>
10648
10649 * ada-valprint.c (print_variant_part): Update.
10650 * ada-lang.h (ada_which_variant_applies): Update.
10651 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10652 outer_valaddr parameters; replace with "outer" value parameter.
10653 (to_fixed_variant_branch_type): Update.
10654
227c0bf4
PFC
106552020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10656
10657 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10658 <list>. Remove inclusion of observable.h.
10659 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10660 (struct arch_lwp_info): New struct.
10661 (class ppc_linux_dreg_interface): New class.
10662 (struct ppc_linux_process_info): New struct.
10663 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10664 <low_new_clone, low_forget_process, low_prepare_to_resume>
10665 <copy_thread_dreg_state, mark_thread_stale>
10666 <mark_debug_registers_changed, register_hw_breakpoint>
10667 <clear_hw_breakpoint, register_wp, clear_wp>
10668 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10669 <num_memory_accesses, get_trigger_type>
10670 <create_watchpoint_request, hwdebug_point_cmp>
10671 <init_arch_lwp_info, get_arch_lwp_info>
10672 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10673 methods.
10674 <struct ptid_hash>: New inner struct.
10675 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10676 members.
10677 (saved_dabr_value, hwdebug_info, max_slots_number)
10678 (struct hw_break_tuple, struct thread_points, ppc_threads)
10679 (have_ptrace_hwdebug_interface)
10680 (hwdebug_find_thread_points_by_tid)
10681 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10682 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10683 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10684 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10685 use m_dreg_interface.
10686 (hwdebug_point_cmp): Change to...
10687 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10688 reference arguments instead of pointers.
10689 (ppc_linux_nat_target::ranged_break_num_registers): Use
10690 m_dreg_interface.
10691 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10692 m_dreg_interface. Call register_hw_breakpoint.
10693 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10694 m_dreg_interface. Call clear_hw_breakpoint.
10695 (get_trigger_type): Change to...
10696 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10697 comment.
10698 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10699 use m_dreg_interface. Call register_hw_breakpoint.
10700 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10701 use m_dreg_interface. Call clear_hw_breakpoint.
10702 (can_use_watchpoint_cond_accel): Change to...
10703 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10704 method. Update comment, use m_dreg_interface and
10705 m_process_info.
10706 (calculate_dvc): Change to...
10707 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10708 m_dreg_interface.
10709 (num_memory_accesses): Change to...
10710 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10711 (check_condition): Change to...
10712 (ppc_linux_nat_target::check_condition): ...this method.
10713 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10714 comment, use m_dreg_interface.
10715 (create_watchpoint_request): Change to...
10716 (ppc_linux_nat_target::create_watchpoint_request): ...this
10717 method. Use m_dreg_interface.
10718 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10719 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10720 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10721 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10722 (ppc_linux_nat_target::low_forget_process)
10723 (ppc_linux_nat_target::low_new_fork)
10724 (ppc_linux_nat_target::low_new_clone)
10725 (ppc_linux_nat_target::low_delete_thread)
10726 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10727 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10728 only call mark_thread_stale.
10729 (ppc_linux_thread_exit): Remove.
10730 (ppc_linux_nat_target::stopped_data_address): Change to...
10731 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10732 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10733 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10734 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10735 comment. Call low_stopped_data_address.
10736 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10737 m_dreg_interface.
10738 (ppc_linux_nat_target::masked_watch_num_registers): Use
10739 m_dreg_interface.
10740 (ppc_linux_nat_target::copy_thread_dreg_state)
10741 (ppc_linux_nat_target::mark_thread_stale)
10742 (ppc_linux_nat_target::mark_debug_registers_changed)
10743 (ppc_linux_nat_target::register_hw_breakpoint)
10744 (ppc_linux_nat_target::clear_hw_breakpoint)
10745 (ppc_linux_nat_target::register_wp)
10746 (ppc_linux_nat_target::clear_wp)
10747 (ppc_linux_nat_target::init_arch_lwp_info)
10748 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10749 (_initialize_ppc_linux_nat): Remove observer callback.
10750
4db10d8f
PFC
107512020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10752
10753 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10754 (ppc_linux_nat_target::auxv_parse)
10755 (ppc_linux_nat_target::read_description)
10756 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10757 Move up.
10758
1310c1b0
PFC
107592020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10760
10761 * linux-nat.h (low_new_clone): New method.
10762 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10763
69b037c3
SM
107642020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10765
10766 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10767 (dbx_expand_psymtab): ... this.
10768 (start_psymtab): Update.
10769 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10770 (mdebug_expand_psymtab): ... this.
10771 (parse_partial_symbols): Update.
10772 (new_psymtab): Update.
10773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10774 (xcoff_expand_psymtab): ... this.
10775 (xcoff_start_psymtab): Update.
10776
48993951
SM
107772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10778
10779 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10780 <expand_dependencies>: ... this.
10781 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10782 (partial_symtab::expand_dependencies): ... this.
10783 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10784 Update.
10785 (dwarf2_psymtab::expand_psymtab): Update.
10786 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10787 * mdebugread.c (psymtab_to_symtab_1): Update.
10788 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10789
3ad83046
SM
107902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * psympriv.h (discard_psymtab): Remove.
10793 * dbxread.c (dbx_end_psymtab): Update.
10794 * xcoffread.c (xcoff_end_psymtab): Update.
10795
4d1b9ab6
TT
107962020-03-28 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10799 comment.
10800
f1749218
TT
108012020-03-28 Tom Tromey <tom@tromey.com>
10802
10803 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10804
ebea7626
HD
108052020-03-27 Hannes Domani <ssbssa@yahoo.de>
10806
10807 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10808
a879b4d5
JB
108092020-03-26 John Baldwin <jhb@FreeBSD.org>
10810
10811 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10812
0826b30a
TT
108132020-03-26 Tom Tromey <tom@tromey.com>
10814
10815 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10816 (mark_common_block_symbol_computed, read_tag_string_type)
10817 (attr_to_dynamic_prop, read_subrange_type): Update.
10818 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10819 to be methods on struct attribute.
10820 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10821 (read_call_site_scope, partial_die_info::read)
10822 (partial_die_info::read, lookup_die_type, follow_die_ref):
10823 Update.
10824 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10825 from dwarf2_get_ref_die_offset.
10826 (attribute::constant_value): New method, from
10827 dwarf2_get_attr_constant_value.
10828 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10829 Declare method.
10830 <constant_value>: New method.
10831
2b2558bf
TT
108322020-03-26 Tom Tromey <tom@tromey.com>
10833
10834 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10835 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10836 (dwarf_type_encoding_name): Move to stringify.c.
10837 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10838 * dwarf2/stringify.c: New file.
10839 * dwarf2/stringify.h: New file.
10840
eeb64781
TT
108412020-03-26 Tom Tromey <tom@tromey.com>
10842
10843 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10844 Rewrite.
10845
a39fdb41
TT
108462020-03-26 Tom Tromey <tom@tromey.com>
10847
10848 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10849 methods.
10850 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10851 (lookup_ranges_base): Likewise.
10852 (read_cutu_die_from_dwo, read_full_die_1): Update.
10853
436c571c
TT
108542020-03-26 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/read.c (read_import_statement, read_file_scope)
10857 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10858 (read_lexical_block_scope, read_call_site_scope)
10859 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10860 (handle_struct_member_die, process_structure_scope)
10861 (update_enumeration_type_from_children)
10862 (process_enumeration_scope, read_array_type, read_common_block)
10863 (read_namespace, read_module, read_subroutine_type): Update.
10864 (sibling_die): Remove.
10865
052c8bb8
TT
108662020-03-26 Tom Tromey <tom@tromey.com>
10867
10868 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10869 (build_type_psymtabs_reader, read_structure_type)
10870 (read_enumeration_type, read_full_die_1): Update.
10871 (dwarf2_attr_no_follow): Move to die.h.
10872 * dwarf2/die.h (struct die_info) <attr>: New method.
10873
2b24b6e4
TT
108742020-03-26 Tom Tromey <tom@tromey.com>
10875
10876 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10877 <base_address>: Now an optional.
10878 (dwarf2_find_base_address, dwarf2_rnglists_process)
10879 (dwarf2_ranges_process, fill_in_loclist_baton)
10880 (dwarf2_symbol_mark_computed): Update.
10881
c2d50fd0
TT
108822020-03-26 Tom Tromey <tom@tromey.com>
10883
10884 * dwarf2/read.c (struct die_info): Move to die.h.
10885 * dwarf2/die.h: New file.
10886
0df7ad3a
TT
108872020-03-26 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10890 * dwarf2/read.c
10891 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10892 Move to line-header.c.
10893 (read_checked_initial_length_and_offset, read_formatted_entries):
10894 Likewise.
10895 (dwarf_decode_line_header): Split into two.
10896 * dwarf2/line-header.c
10897 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10898 Move from read.c.
10899 (read_checked_initial_length_and_offset, read_formatted_entries):
10900 Likewise.
10901 (dwarf_decode_line_header): New function, split from read.c.
10902
86c0bb4c
TT
109032020-03-26 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10906 Declare method.
10907 * dwarf2/read.c (read_attribute_value): Update.
10908 (dwarf2_per_objfile::read_line_string): Rename from
10909 read_indirect_line_string.
10910 (read_formatted_entries): Update.
10911
2ef46c2f
TT
109122020-03-26 Tom Tromey <tom@tromey.com>
10913
10914 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10915 variable.
10916
4f9c1eda
TT
109172020-03-26 Tom Tromey <tom@tromey.com>
10918
10919 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10920 const.
10921 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10922 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10923 parameter const.
10924
5a0e026f
TT
109252020-03-26 Tom Tromey <tom@tromey.com>
10926
10927 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10928 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10929 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10930 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10931
8844c11b
TT
109322020-03-26 Tom Tromey <tom@tromey.com>
10933
10934 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10935 file_names_size, file_full_name, file_file_name>: Use const.
10936 <file_name_at, file_names>: Add const overload.
10937 * dwarf2/line-header.c (line_header::file_file_name)
10938 (line_header::file_full_name): Update.
10939
c90ec28a
TT
109402020-03-26 Tom Tromey <tom@tromey.com>
10941
10942 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10943 (macro_start_file, consume_improper_spaces)
10944 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10945 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10946 (dwarf_decode_macros): Move to macro.c.
10947 * dwarf2/macro.c: New file.
10948 * dwarf2/macro.h: New file.
10949 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10950
4f44ae6c
TT
109512020-03-26 Tom Tromey <tom@tromey.com>
10952
10953 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10954 method.
10955 * dwarf2/section.c: New method. From
10956 read_indirect_string_at_offset_from.
10957 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10958 (read_indirect_string_at_offset_from): Move to section.c.
10959 (read_indirect_string_at_offset): Rewrite.
10960 (read_indirect_line_string_at_offset): Remove.
10961 (read_indirect_string, read_indirect_line_string)
10962 (dwarf_decode_macro_bytes): Update.
10963
a0194fa8
TT
109642020-03-26 Tom Tromey <tom@tromey.com>
10965
10966 * dwarf2/section.h (struct dwarf2_section_info)
10967 <overload_complaint>: Declare.
10968 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10969 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10970 Rename from dwarf2_section_buffer_overflow_complaint.
10971 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10972 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10973
3d27bbdb
TT
109742020-03-26 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10977 Declare.
10978 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10979 Move from read.c.
10980 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10981 to section.c.
10982
9eac9650
TT
109832020-03-26 Tom Tromey <tom@tromey.com>
10984
10985 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10986
bf80d710
TT
109872020-03-26 Tom Tromey <tom@tromey.com>
10988
10989 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10990 "builder".
10991 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10992 parameter.
10993 (dwarf_decode_macros): Update.
10994
0314b390
TT
109952020-03-26 Tom Tromey <tom@tromey.com>
10996
10997 * dwarf2/read.c (read_attribute_value): Update.
10998 (read_indirect_string_from_dwz): Move to dwz.c; change into
10999 method.
11000 (dwarf_decode_macro_bytes): Update.
11001 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11002 * dwarf2/dwz.c: New file.
11003 * Makefile.in (COMMON_SFILES): Add dwz.c.
11004
9fda78b6
TT
110052020-03-26 Tom Tromey <tom@tromey.com>
11006
11007 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11008 * dwarf2/read.c: Add include.
11009 * dwarf2/index-write.c: Add include.
11010 * dwarf2/index-cache.c: Add include.
11011 * dwarf2/dwz.h: New file.
11012
33aa3c10
TT
110132020-03-25 Tom Tromey <tom@tromey.com>
11014
11015 * compile/compile-object-load.c (get_out_value_type): Mention
11016 correct symbol name in error message.
11017
d503b685
HD
110182020-03-25 Hannes Domani <ssbssa@yahoo.de>
11019
11020 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11021
7b1eff95
TV
110222020-03-25 Tom de Vries <tdevries@suse.de>
11023
11024 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11025 * symmisc.c (dump_symtab_1): Print user and includes fields.
11026 (maintenance_info_symtabs): Same.
11027
dd895392
AB
110282020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11029
11030 PR gdb/25534
11031 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11032 (riscv_regcache_cooked_write): New function.
11033 (riscv_push_dummy_call): Use new function.
11034 (riscv_return_value): Likewise.
11035
5ab2fbf1
SM
110362020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11037
11038 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11039 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11040 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11041 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11042 * infrun.c (follow_fork): Likewise.
11043 (follow_fork_inferior): Likewise.
11044 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11045 * linux-nat.h (class linux_nat_target): Likewise.
11046 * remote.c (class remote_target) <follow_fork>: Likewise.
11047 (remote_target::follow_fork): Likewise.
11048 * target-delegates.c: Re-generate.
11049 * target.c (default_follow_fork): Likewise.
11050 (target_follow_fork): Likewise.
11051 * target.h (struct target_ops) <follow_fork>: Likewise.
11052 (target_follow_fork): Likewise.
11053
a64fafb5
TV
110542020-03-24 Tom de Vries <tdevries@suse.de>
11055
11056 * psymtab.c (maintenance_info_psymtabs): Print user field.
11057
fe26d3a3
TT
110582020-03-20 Tom Tromey <tromey@adacore.com>
11059
11060 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11061 const.
11062 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11063 const.
11064
c884cc46
SM
110652020-03-20 Simon Marchi <simon.marchi@efficios.com>
11066
11067 * ptrace.m4: Don't check for ptrace declaration.
11068 * config.in: Re-generate.
11069 * configure: Re-generate.
11070 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11071 not defined.
11072
1ff700c2
KR
110732020-03-20 Kamil Rytarowski <n54@gmx.com>
11074
11075 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11076 `PTRACE_TYPE_RET'.
11077 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11078 * sparc-nat.c (gdb_ptrace): Likewise.
11079 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11080
f7d4f0b1
TT
110812020-03-20 Tom Tromey <tromey@adacore.com>
11082
11083 * c-exp.y (lex_one_token): Fix assert.
11084
f67210ff
TT
110852020-03-20 Tom Tromey <tromey@adacore.com>
11086
11087 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11088 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11089 strncpy call.
11090
1773be9e
TT
110912020-03-20 Tom Tromey <tromey@adacore.com>
11092
11093 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11094
70304be9
TT
110952020-03-20 Tom Tromey <tromey@adacore.com>
11096
11097 * ada-valprint.c (print_variant_part): Remove parameters; switch
11098 to value-based API.
11099 (print_field_values): Likewise.
11100 (ada_val_print_struct_union): Likewise.
11101 (ada_value_print_1): Update.
11102
9faa006d
KR
111032020-03-20 Kamil Rytarowski <n54@gmx.com>
11104
11105 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11106 nbsd_nat_target instead of inf_ptrace_target.
11107 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11108 nbsd_nat_target.
11109
4a90f062
KR
111102020-03-20 Kamil Rytarowski <n54@gmx.com>
11111
11112 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11113 it to the ptrace call.
11114 * (store_registers): Likewise.
11115
111162020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11117
11118 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11119 it to the ptrace call.
11120 * (store_registers): Likewise.
11121
2d07da27
LM
111222020-03-19 Luis Machado <luis.machado@linaro.org>
11123
11124 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11125 valid, fetch vg value from ptrace.
11126
f09db380
KR
111272020-03-19 Kamil Rytarowski <n54@gmx.com>
11128 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11129 * inf-ptrace.c: Likewise.
11130 * (gdb_ptrace): Add.
11131 * (inf_ptrace_target::resume): Update.
11132 * (inf_ptrace_target::xfer_partial): Likewise.
11133 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11134 * (inf_ptrace_peek_poke): Update.
11135
fcc7376e
KR
111362020-03-19 Kamil Rytarowski <n54@gmx.com>
11137
11138 * x86-bsd-nat.c (gdb_ptrace): New.
11139 * (x86bsd_dr_set): Add new argument `ptid'.
11140 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11141 x86bsd_dr_set_addr): Update.
11142
cada5fc9
AB
111432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11144
11145 * remote.c (remote_target::process_stop_reply): Handle events for
11146 all threads differently.
11147
19a2740f
AB
111482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * completer.c (completion_tracker::remove_completion): Define new
11151 function.
11152 * completer.h (completion_tracker::remove_completion): Declare new
11153 function.
11154 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11155 when adding a C++ function symbol.
11156
724fd9ba
AB
111572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11158
11159 * completer.c (completion_tracker::completion_hash_entry): Define
11160 new class.
11161 (advance_to_filename_complete_word_point): Call
11162 recompute_lowest_common_denominator.
11163 (completion_tracker::completion_tracker): Call discard_completions
11164 to setup the hash table.
11165 (completion_tracker::discard_completions): Allow for being called
11166 from the constructor, pass new equal function, and element deleter
11167 when constructing the hash table. Initialise new class member
11168 variables.
11169 (completion_tracker::maybe_add_completion): Remove use of
11170 m_entries_vec, and store more information into m_entries_hash.
11171 (completion_tracker::recompute_lcd_visitor): New function, most
11172 content taken from...
11173 (completion_tracker::recompute_lowest_common_denominator):
11174 ...here, this now just visits each item in the hash calling the
11175 above visitor.
11176 (completion_tracker::build_completion_result): Remove use of
11177 m_entries_vec, call recompute_lowest_common_denominator.
11178 * completer.h (completion_tracker::have_completions): Remove use
11179 of m_entries_vec.
11180 (completion_tracker::completion_hash_entry): Declare new class.
11181 (completion_tracker::recompute_lowest_common_denominator): Change
11182 function signature.
11183 (completion_tracker::recompute_lcd_visitor): Declare new function.
11184 (completion_tracker::m_entries_vec): Delete.
11185 (completion_tracker::m_entries_hash): Initialize to NULL.
11186 (completion_tracker::m_lowest_common_denominator_valid): New
11187 member variable.
11188 (completion_tracker::m_lowest_common_denominator_max_length): New
11189 member variable.
11190
5a82b8a1
KR
111912020-03-17 Kamil Rytarowski <n54@gmx.com>
11192
11193 * regformats/regdef.h: Put reg in gdb namespace.
11194
fb516a69
KR
111952020-03-17 Kamil Rytarowski <n54@gmx.com>
11196
11197 * i386-bsd-nat.c (gdb_ptrace): New.
11198 * (i386bsd_fetch_inferior_registers,
11199 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11200 * (i386bsd_fetch_inferior_registers,
11201 i386bsd_store_inferior_registers) Use gdb_ptrace.
11202
1c0aa1fb
KR
112032020-03-17 Kamil Rytarowski <n54@gmx.com>
11204
11205 * amd64-bsd-nat.c (gdb_ptrace): New.
11206 * (amd64bsd_fetch_inferior_registers,
11207 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11208 * (amd64bsd_fetch_inferior_registers,
11209 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11210
5ccd2fb7
KR
112112020-03-17 Kamil Rytarowski <n54@gmx.com>
11212
11213 * user-regs.c (user_reg::read): Rename to...
11214 (user_reg::xread): ...this.
11215 * (append_user_reg): Rename argument `read' to `xread'.
11216 * (user_reg_add_builtin): Likewise.
11217 * (user_reg_add): Likewise.
11218 * (value_of_user_reg): Likewise.
11219
2108a63a
KR
112202020-03-17 Kamil Rytarowski <n54@gmx.com>
11221
11222 * sparc-nat.c (gdb_ptrace): New.
11223 * sparc-nat.c (sparc_fetch_inferior_registers)
11224 (sparc_store_inferior_registers) Remove obsolete comment.
11225 * sparc-nat.c (sparc_fetch_inferior_registers)
11226 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11227 * sparc-nat.c (sparc_fetch_inferior_registers)
11228 (sparc_store_inferior_registers) Use gdb_ptrace.
11229
a225c9a8
KR
112302020-03-17 Kamil Rytarowski <n54@gmx.com>
11231
11232 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11233 it to the ptrace call.
11234 * sh-nbsd-nat.c (store_registers): Likewise.
11235
98097623
KR
112362020-03-17 Kamil Rytarowski <n54@gmx.com>
11237
11238 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11239 nbsd_nat_target instead of inf_ptrace_target.
11240 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11241 nbsd_nat_target.
11242
9e38d619
KR
112432020-03-17 Kamil Rytarowski <n54@gmx.com>
11244
11245 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11246
a2ecbe9f
KR
112472020-03-17 Kamil Rytarowski <n54@gmx.com>
11248
11249 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11250 <sys/sysctl.h>.
11251 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11252
58990295
TV
112532020-03-17 Tom de Vries <tdevries@suse.de>
11254
11255 PR gdb/23710
11256 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11257 fields.
11258 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11259 fields.
11260 (process_imported_unit_die): Skip import of c++ CUs.
11261
771dd3a8
TT
112622020-03-16 Tom Tromey <tom@tromey.com>
11263
11264 * p-valprint.c (pascal_object_print_value): Initialize
11265 base_value.
11266
817a7585
AK
112672020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11268 Shahab Vahedi <shahab@synopsys.com>
11269
11270 * Makefile.in: Add arch/arc.o
11271 * configure.tgt: Likewise.
11272 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11273 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11274 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11275 * arc-tdep.h (arc_read_description): Add proto type.
11276 * arch/arc.c: New file.
11277 * arch/arc.h: Likewise.
11278 * features/Makefile: Replace old target descriptions with new.
11279 * features/arc-arcompact.c: Remove.
11280 * features/arc-arcompact.xml: Likewise.
11281 * features/arc-v2.c: Likewise
11282 * features/arc-v2.xml: Likewise
11283 * features/arc/aux-arcompact.xml: New file.
11284 * features/arc/aux-v2.xml: Likewise.
11285 * features/arc/core-arcompact.xml: Likewise.
11286 * features/arc/core-v2.xml: Likewise.
11287 * features/arc/aux-arcompact.c: Generate.
11288 * features/arc/aux-v2.c: Likewise.
11289 * features/arc/core-arcompact.c: Likewise.
11290 * features/arc/core-v2.c: Likewise.
11291 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11292
67430cd0
TT
112932020-03-16 Tom Tromey <tromey@adacore.com>
11294
11295 PR gdb/25663:
11296 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11297 putting value into bcache.
11298
30efb6c7
SM
112992020-03-16 Simon Marchi <simon.marchi@efficios.com>
11300
11301 PR gdb/21500
11302 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11303 to...
11304 (amd64_windows_init_abi_common): ... this. Don't set size of
11305 long type.
11306 (amd64_windows_init_abi): New function.
11307 (amd64_cygwin_init_abi): New function.
11308 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11309 the Cygwin OS ABI.
11310 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11311 comment.
11312
8db52437
SM
113132020-03-16 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11316 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11317 (pe_import_directory_entry): New struct type.
11318 (is_linked_with_cygwin_dll): New function.
11319 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11320 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11321 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11322
5982a56a
SM
113232020-03-16 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11326 i386_cygwin_core_osabi_sniffer.
11327
7a1998df
SM
113282020-03-16 Simon Marchi <simon.marchi@efficios.com>
11329
11330 * i386-cygwin-tdep.c: Rename to...
11331 * i386-windows-tdep.c: ... this.
11332 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11333 i386-windows-tdep.c.
11334 * configure.tgt: Likewise.
11335
053205cc
SM
113362020-03-16 Simon Marchi <simon.marchi@efficios.com>
11337
11338 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11339 * osabi.c (gdb_osabi_names): Add "Windows".
11340 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11341 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11342 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11343 i386_cygwin_osabi_sniffer.
11344 (_initialize_i386_cygwin_tdep): Register OS ABI
11345 GDB_OSABI_WINDOWS for i386.
11346 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11347 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11348 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11349 for x86-64.
11350 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11351 when the target matches '*-*-mingw*'.
11352
fe4b2ee6
SM
113532020-03-16 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * defs.h (enum gdb_osabi): Move to...
11356 * osabi.h (enum gdb_osabi): ... here.
11357 * gdbarch.sh: Include osabi.h in gdbarch.h.
11358 * gdbarch.h: Re-generate.
11359
cb9b645d
SM
113602020-03-16 Simon Marchi <simon.marchi@efficios.com>
11361
11362 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11363 function.
11364 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11365
3293bbaf
TT
113662020-03-14 Tom Tromey <tom@tromey.com>
11367
11368 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11369 for C++.
11370 (c_type_print_modifier): Likewise. Add "language" parameter.
11371 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11372 (c_type_print_base_1): Update.
11373 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11374 constants.
11375 * type-stack.c (type_stack::insert): Handle tp_atomic and
11376 tp_restrict.
11377 (type_stack::follow_type_instance_flags): Likewise.
11378 (type_stack::follow_types): Likewise. Merge type-following code.
11379 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11380 (space_identifier, cv_with_space_id)
11381 (const_or_volatile_or_space_identifier_noopt)
11382 (const_or_volatile_or_space_identifier): Remove.
11383 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11384 rules.
11385 (ptr_operator, typebase): Update.
11386 (enum token_flag) <FLAG_C>: New constant.
11387 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11388 "_Atomic".
11389 (lex_one_token): Handle FLAG_C.
11390
154151a6
KR
113912020-03-14 Kamil Rytarowski <n54@gmx.com>
11392
11393 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11394 it to the ptrace call.
11395 * m68k-bsd-nat.c (store_registers): Likewise.
11396
bc107784
KR
113972020-03-14 Kamil Rytarowski <n54@gmx.com>
11398
11399 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11400 gdb_byte *.
11401 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11402 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11403 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11404
01a80117
KR
114052020-03-14 Kamil Rytarowski <n54@gmx.com>
11406
11407 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11408 nbsd_nat_target instead of inf_ptrace_target.
11409 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11410 nbsd_nat_target.
11411
f90280ca
KR
114122020-03-14 Kamil Rytarowski <n54@gmx.com>
11413
11414 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11415 register_t.
11416
6def66f1
KR
114172020-03-14 Kamil Rytarowski <n54@gmx.com>
11418
11419 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11420 it to the ptrace call.
11421 * alpha-bsd-nat.c (store_registers): Likewise.
11422
66eaca97
KR
114232020-03-14 Kamil Rytarowski <n54@gmx.com>
11424
11425 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11426 includes.
11427 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11428 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11429 fill_fpregset): Likewise.
11430
4fed520b
KR
114312020-03-14 Kamil Rytarowski <n54@gmx.com>
11432
11433 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11434 nbsd_nat_target instead of inf_ptrace_target.
11435 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11436 nbsd_nat_target.
11437
2190cf06
KR
114382020-03-14 Kamil Rytarowski <n54@gmx.com>
11439
11440 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11441 register_t.
11442
75c56d3d
KR
114432020-03-14 Kamil Rytarowski <n54@gmx.com>
11444
11445 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11446 it to the ptrace call.
11447 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11448 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11449 * arm-nbsd-nat.c (store_register): Likewise.
11450 * arm-nbsd-nat.c (store_regs): Likewise.
11451 * arm-nbsd-nat.c (store_fp_register): Likewise.
11452 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11453
6018d381
KR
114542020-03-14 Kamil Rytarowski <n54@gmx.com>
11455
11456 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11457 nbsd_nat_target instead of inf_ptrace_target.
11458 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11459 nbsd_nat_target.
11460
013f99f0
KR
114612020-03-14 Kamil Rytarowski <n54@gmx.com>
11462
11463 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11464 it to the ptrace call.
11465 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11466
12753073
KR
114672020-03-14 Kamil Rytarowski <n54@gmx.com>
11468
6227b330
KR
11469 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11470 it to the ptrace call.
11471 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11472
114732020-03-14 Kamil Rytarowski <n54@gmx.com>
11474
11475 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11476 gdb_byte *.
12753073
KR
11477 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11478
d5be5fa4
KR
114792020-03-14 Kamil Rytarowski <n54@gmx.com>
11480
11481 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11482 instead of inf_ptrace_target.
11483 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11484 nbsd_nat_target.
11485
8110f842
KR
114862020-03-14 Kamil Rytarowski <n54@gmx.com>
11487
11488 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11489 register_t.
11490
52feded7
KR
114912020-03-14 Kamil Rytarowski <n54@gmx.com>
11492
11493 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11494 register_t.
11495
25567eee
KR
114962020-03-14 Kamil Rytarowski <n54@gmx.com>
11497
11498 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11499 register_t.
11500
426a9c18
TT
115012020-03-13 Tom Tromey <tom@tromey.com>
11502
11503 * value.h (val_print): Don't declare.
11504 * valprint.h (val_print_array_elements)
11505 (val_print_scalar_formatted, generic_val_print): Don't declare.
11506 * valprint.c (generic_val_print_array): Take a struct value.
11507 (generic_val_print_ptr, generic_val_print_memberptr)
11508 (generic_val_print_bool, generic_val_print_int)
11509 (generic_val_print_char, generic_val_print_complex)
11510 (generic_val_print): Remove.
11511 (generic_value_print): Update.
11512 (do_val_print): Remove unused parameters. Don't call
11513 la_val_print.
11514 (val_print): Remove.
11515 (common_val_print): Update. Don't call value_check_printable.
11516 (val_print_scalar_formatted, val_print_array_elements): Remove.
11517 * rust-lang.c (rust_val_print): Remove.
11518 (rust_language_defn): Update.
11519 * p-valprint.c (pascal_val_print): Remove.
11520 (pascal_value_print_inner): Update.
11521 (pascal_object_print_val_fields, pascal_object_print_val):
11522 Remove.
11523 (pascal_object_print_static_field): Update.
11524 * p-lang.h (pascal_val_print): Don't declare.
11525 * p-lang.c (pascal_language_defn): Update.
11526 * opencl-lang.c (opencl_language_defn): Update.
11527 * objc-lang.c (objc_language_defn): Update.
11528 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11529 * m2-lang.h (m2_val_print): Don't declare.
11530 * m2-lang.c (m2_language_defn): Update.
11531 * language.h (struct language_defn) <la_val_print>: Remove.
11532 * language.c (unk_lang_value_print_inner): Rename. Change
11533 argument types.
11534 (unknown_language_defn, auto_language_defn): Update.
11535 * go-valprint.c (go_val_print): Remove.
11536 * go-lang.h (go_val_print): Don't declare.
11537 * go-lang.c (go_language_defn): Update.
11538 * f-valprint.c (f_val_print): Remove.
11539 * f-lang.h (f_value_print): Don't declare.
11540 * f-lang.c (f_language_defn): Update.
11541 * d-valprint.c (d_val_print): Remove.
11542 * d-lang.h (d_value_print): Don't declare.
11543 * d-lang.c (d_language_defn): Update.
11544 * cp-valprint.c (cp_print_value_fields)
11545 (cp_print_value_fields_rtti, cp_print_value): Remove.
11546 (cp_print_static_field): Update.
11547 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11548 (c_val_print_struct, c_val_print_union, c_val_print_int)
11549 (c_val_print_memberptr, c_val_print): Remove.
11550 * c-lang.h (c_val_print_array, cp_print_value_fields)
11551 (cp_print_value_fields_rtti): Don't declare.
11552 * c-lang.c (c_language_defn, cplus_language_defn)
11553 (asm_language_defn, minimal_language_defn): Update.
11554 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11555 (ada_val_print_enum): Take a struct value.
11556 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11557 (ada_val_print): Remove.
11558 (ada_value_print_1): Update.
11559 (printable_val_type): Remove.
11560 * ada-lang.h (ada_val_print): Don't declare.
11561 * ada-lang.c (ada_language_defn): Update.
11562
42331a1e
TT
115632020-03-13 Tom Tromey <tom@tromey.com>
11564
11565 * valprint.c (do_val_print): Update.
11566 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11567 a struct value.
11568 (value_to_value_object_no_release): Declare.
11569 * python/py-value.c (value_to_value_object_no_release): New
11570 function.
11571 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11572 struct value.
11573 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11574 function.
11575 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11576 a struct value.
11577 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11578 Declare.
11579 (gdbscm_apply_val_pretty_printer): Take a struct value.
11580 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11581 value.
11582 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11583 value.
11584 * extension-priv.h (struct extension_language_ops)
11585 <apply_val_pretty_printer>: Take a struct value.
11586 * cp-valprint.c (cp_print_value): Create a struct value.
11587 (cp_print_value): Update.
11588
3a916a97
TT
115892020-03-13 Tom Tromey <tom@tromey.com>
11590
11591 * ada-valprint.c (print_field_values): Call common_val_print.
11592
b59eac37
TT
115932020-03-13 Tom Tromey <tom@tromey.com>
11594
11595 * ada-valprint.c (val_print_packed_array_elements): Remove
11596 bitoffset and val parameters. Call common_val_print.
11597 (ada_val_print_string): Remove offset, address, and original_value
11598 parameters.
11599 (ada_val_print_array): Update.
11600 (ada_value_print_array): New function.
11601 (ada_value_print_1): Call it.
11602
03371129
TT
116032020-03-13 Tom Tromey <tom@tromey.com>
11604
11605 * ada-valprint.c (ada_value_print): Use common_val_print.
11606
2e088f8b
TT
116072020-03-13 Tom Tromey <tom@tromey.com>
11608
11609 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11610
39ef85a8
TT
116112020-03-13 Tom Tromey <tom@tromey.com>
11612
11613 * ada-valprint.c (ada_value_print_num): New function.
11614 (ada_value_print_1): Use it.
11615
b9fa6e07
TT
116162020-03-13 Tom Tromey <tom@tromey.com>
11617
11618 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11619
416595d6
TT
116202020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * ada-valprint.c (ada_value_print_ptr): New function.
11623 (ada_value_print_1): Use it.
11624
5b5e15ec
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11628 call common_val_print.
11629 (ada_val_print_1): Update.
11630 (ada_value_print_1): New function.
11631 (ada_value_print_inner): Rewrite.
11632
fbf54e75
TT
116332020-03-13 Tom Tromey <tom@tromey.com>
11634
11635 * cp-valprint.c (cp_print_value_fields): Update.
11636 (cp_print_value): New function.
11637
64b653ca
TT
116382020-03-13 Tom Tromey <tom@tromey.com>
11639
11640 * m2-valprint.c (m2_value_print_inner): Use
11641 cp_print_value_fields.
11642 * cp-valprint.c (cp_print_value_fields): New function.
11643 * c-valprint.c (c_value_print_struct): New function.
11644 (c_value_print_inner): Use c_value_print_struct.
11645 * c-lang.h (cp_print_value_fields): Declare.
11646
6999f067
TT
116472020-03-13 Tom Tromey <tom@tromey.com>
11648
11649 * c-valprint.c (c_value_print_array): New function.
11650 (c_value_print_inner): Use it.
11651
ce80b8bd
TT
116522020-03-13 Tom Tromey <tom@tromey.com>
11653
11654 * c-valprint.c (c_value_print_memberptr): New function.
11655 (c_value_print_inner): Use it.
11656
2faac269
TT
116572020-03-13 Tom Tromey <tom@tromey.com>
11658
11659 * c-valprint.c (c_value_print_int): New function.
11660 (c_value_print_inner): Use it.
11661
da3e2c29
TT
116622020-03-13 Tom Tromey <tom@tromey.com>
11663
11664 * c-valprint.c (c_value_print_ptr): New function.
11665 (c_value_print_inner): Use it.
11666
50836231
TT
116672020-03-13 Tom Tromey <tom@tromey.com>
11668
11669 * c-valprint.c (c_value_print_inner): Rewrite.
11670
4f412b6e
TT
116712020-03-13 Tom Tromey <tom@tromey.com>
11672
11673 * valprint.c (generic_value_print_complex): New function.
11674 (generic_value_print): Use it.
11675
f5354008
TT
116762020-03-13 Tom Tromey <tom@tromey.com>
11677
11678 * valprint.c (generic_val_print_float): Don't call
11679 val_print_scalar_formatted.
11680 (generic_val_print, generic_value_print): Update.
11681
3eec3b05
TT
116822020-03-13 Tom Tromey <tom@tromey.com>
11683
11684 * valprint.c (generic_value_print_char): New function
11685 (generic_value_print): Use it.
11686
fdddfccb
TT
116872020-03-13 Tom Tromey <tom@tromey.com>
11688
11689 * valprint.c (generic_value_print_int): New function.
11690 (generic_value_print): Use it.
11691
6dde7521
TT
116922020-03-13 Tom Tromey <tom@tromey.com>
11693
11694 * valprint.c (generic_value_print_bool): New function.
11695 (generic_value_print): Use it.
11696
4112d2e6
TT
116972020-03-13 Tom Tromey <tom@tromey.com>
11698
11699 * valprint.c (generic_val_print_func): Simplify.
11700 (generic_val_print, generic_value_print): Update.
11701
65786af6
TT
117022020-03-13 Tom Tromey <tom@tromey.com>
11703
11704 * valprint.c (generic_val_print_flags): Remove.
11705 (generic_val_print, generic_value_print): Update.
11706 (val_print_type_code_flags): Add original_value parameter.
11707
40f3ce18
TT
117082020-03-13 Tom Tromey <tom@tromey.com>
11709
11710 * valprint.c (generic_val_print): Update.
11711 (generic_value_print): Update.
11712 * valprint.c (generic_val_print_enum): Don't call
11713 val_print_scalar_formatted.
11714
2a5b130b
TT
117152020-03-13 Tom Tromey <tom@tromey.com>
11716
11717 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11718 * valprint.c (generic_value_print_ptr): New function.
11719
abc66ce9
TT
117202020-03-13 Tom Tromey <tom@tromey.com>
11721
11722 * valprint.c (generic_value_print): Rewrite.
11723
07a32858
TT
117242020-03-13 Tom Tromey <tom@tromey.com>
11725
11726 * p-valprint.c (pascal_object_print_value_fields)
11727 (pascal_object_print_value): New functions.
11728
64d64d3a
TT
117292020-03-13 Tom Tromey <tom@tromey.com>
11730
11731 * p-valprint.c (pascal_value_print_inner): Rewrite.
11732
6a95a1f5
TT
117332020-03-13 Tom Tromey <tom@tromey.com>
11734
11735 * f-valprint.c (f_value_print_innner): Rewrite.
11736
59fcdac6
TT
117372020-03-13 Tom Tromey <tom@tromey.com>
11738
11739 * m2-valprint.c (m2_print_unbounded_array): New overload.
11740 (m2_print_unbounded_array): Update.
11741 (m2_print_array_contents): Take a struct value.
11742 (m2_value_print_inner): Rewrite.
11743
d133c3e1
TT
117442020-03-13 Tom Tromey <tom@tromey.com>
11745
11746 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11747 (d_value_print_inner): New function.
11748 * d-lang.h (d_value_print_inner): Declare.
11749 * d-lang.c (d_language_defn): Use d_value_print_inner.
11750
23b0f06b
TT
117512020-03-13 Tom Tromey <tom@tromey.com>
11752
11753 * go-valprint.c (go_value_print_inner): New function.
11754 * go-lang.h (go_value_print_inner): Declare.
11755 * go-lang.c (go_language_defn): Use go_value_print_inner.
11756
5f56f7cb
TT
117572020-03-13 Tom Tromey <tom@tromey.com>
11758
11759 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11760 API.
11761 (rust_val_print): Rewrite.
11762 (rust_value_print_inner): New function, from rust_val_print.
11763 (rust_language_defn): Use rust_value_print_inner.
11764
26792ee0
TT
117652020-03-13 Tom Tromey <tom@tromey.com>
11766
11767 * ada-valprint.c (ada_value_print_inner): New function.
11768 * ada-lang.h (ada_value_print_inner): Declare.
11769 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11770
24051bbe
TT
117712020-03-13 Tom Tromey <tom@tromey.com>
11772
11773 * f-valprint.c (f_value_print_innner): New function.
11774 * f-lang.h (f_value_print_innner): Declare.
11775 * f-lang.c (f_language_defn): Use f_value_print_innner.
11776
c0941be6
TT
117772020-03-13 Tom Tromey <tom@tromey.com>
11778
11779 * p-valprint.c (pascal_value_print_inner): New function.
11780 * p-lang.h (pascal_value_print_inner): Declare.
11781 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11782
62c4663d
TT
117832020-03-13 Tom Tromey <tom@tromey.com>
11784
11785 * m2-valprint.c (m2_value_print_inner): New function.
11786 * m2-lang.h (m2_value_print_inner): Declare.
11787 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11788
62182190
TT
117892020-03-13 Tom Tromey <tom@tromey.com>
11790
11791 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11792 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11793 * c-valprint.c (c_value_print_inner): New function.
11794 * c-lang.h (c_value_print_inner): Declare.
11795 * c-lang.c (c_language_defn, cplus_language_defn)
11796 (asm_language_defn, minimal_language_defn): Use
11797 c_value_print_inner.
11798
1e592a8a
TT
117992020-03-13 Tom Tromey <tom@tromey.com>
11800
11801 * p-valprint.c (pascal_object_print_value_fields): Now static.
11802 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11803
7fe471e9
TT
118042020-03-13 Tom Tromey <tom@tromey.com>
11805
11806 * c-valprint.c (c_val_print_array): Simplify.
11807
d121c6ce
TT
118082020-03-13 Tom Tromey <tom@tromey.com>
11809
11810 * valprint.c (value_print_array_elements): New function.
11811 * valprint.h (value_print_array_elements): Declare.
11812
4dba70ee
TT
118132020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11816 * mips-tdep.c (mips_print_register): Use
11817 value_print_scalar_formatted.
11818
4f9ae810
TT
118192020-03-13 Tom Tromey <tom@tromey.com>
11820
11821 * valprint.h (value_print_scalar_formatted): Declare.
11822 * valprint.c (value_print_scalar_formatted): New function.
11823
156bfec9
TT
118242020-03-13 Tom Tromey <tom@tromey.com>
11825
11826 * valprint.h (generic_value_print): Declare.
11827 * valprint.c (generic_value_print): New function.
11828
2b4e573d
TT
118292020-03-13 Tom Tromey <tom@tromey.com>
11830
11831 * valprint.c (do_val_print): Call la_value_print_inner, if
11832 available.
11833 * rust-lang.c (rust_language_defn): Update.
11834 * p-lang.c (pascal_language_defn): Update.
11835 * opencl-lang.c (opencl_language_defn): Update.
11836 * objc-lang.c (objc_language_defn): Update.
11837 * m2-lang.c (m2_language_defn): Update.
11838 * language.h (struct language_defn) <la_value_print_inner>: New
11839 member.
11840 * language.c (unknown_language_defn, auto_language_defn): Update.
11841 * go-lang.c (go_language_defn): Update.
11842 * f-lang.c (f_language_defn): Update.
11843 * d-lang.c (d_language_defn): Update.
11844 * c-lang.c (c_language_defn, cplus_language_defn)
11845 (asm_language_defn, minimal_language_defn): Update.
11846 * ada-lang.c (ada_language_defn): Update.
11847
a1f6a07c
TT
118482020-03-13 Tom Tromey <tom@tromey.com>
11849
11850 * c-valprint.c (c_value_print): Use common_val_print.
11851
410cf315
TT
118522020-03-13 Tom Tromey <tom@tromey.com>
11853
11854 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11855
72a45c93
TT
118562020-03-13 Tom Tromey <tom@tromey.com>
11857
11858 * f-valprint.c (f77_print_array_1, f_val_print): Use
11859 common_val_print.
11860
040f66bd
TT
118612020-03-13 Tom Tromey <tom@tromey.com>
11862
11863 * riscv-tdep.c (riscv_print_one_register_info): Use
11864 common_val_print.
11865
a6e05a6c
TT
118662020-03-13 Tom Tromey <tom@tromey.com>
11867
11868 * mi/mi-main.c (output_register): Use common_val_print.
11869
3444c526
TT
118702020-03-13 Tom Tromey <tom@tromey.com>
11871
11872 * infcmd.c (default_print_one_register_info): Use
11873 common_val_print.
11874
c2a44efe
TT
118752020-03-13 Tom Tromey <tom@tromey.com>
11876
11877 * valprint.h (common_val_print_checked): Declare.
11878 * valprint.c (common_val_print_checked): New function.
11879 * stack.c (print_frame_arg): Use common_val_print_checked.
11880
b0c26e99
TT
118812020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * valprint.c (do_val_print): New function, from val_print.
11884 (val_print): Use do_val_print.
11885 (common_val_print): Use do_val_print.
11886
ce3acbe9
TT
118872020-03-13 Tom Tromey <tom@tromey.com>
11888
11889 * valprint.c (value_print): Use scoped_value_mark.
11890
96c7f873
TV
118912020-03-13 Tom de Vries <tdevries@suse.de>
11892
11893 PR symtab/25646
11894 * psymtab.c (partial_symtab::partial_symtab): Don't set
11895 globals_offset and statics_offset. Push element onto
11896 current_global_psymbols and current_static_psymbols stacks.
11897 (concat): New function.
11898 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11899 element from current_global_psymbols and current_static_psymbols
11900 stacks. Concat popped elements to global_psymbols and
11901 static_symbols.
11902 (add_psymbol_to_list): Use current_global_psymbols and
11903 current_static_psymbols stacks.
11904 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11905 current_static_psymbols fields.
11906
6ba0a321
CB
119072020-03-12 Christian Biesinger <cbiesinger@google.com>
11908
11909 * corelow.c (sniff_core_bfd): Remove.
11910 (class core_target) <m_core_vec>: Remove.
11911 (core_target::core_target): Update.
11912 (core_file_fns): Remove.
11913 (deprecated_add_core_fns): Remove.
11914 (default_core_sniffer): Remove.
11915 (sniff_core_bfd): Remove.
11916 (default_check_format): Remove.
11917 (gdb_check_format): Remove.
11918 (core_target_open): Update.
11919 (core_target::get_core_register_section): Update.
11920 (get_core_registers_cb): Update.
11921 (core_target::fetch_registers): Update.
11922 * gdbcore.h (struct core_fns): Remove.
11923 (deprecated_add_core_fns): Remove.
11924 (default_core_sniffer): Remove.
11925 (default_check_format): Remove.
11926
227031b2
TT
119272020-03-12 Tom Tromey <tom@tromey.com>
11928
11929 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11930 CORE_ADDR.
11931 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11932
53807e9f
TT
119332020-03-12 Tom Tromey <tom@tromey.com>
11934
11935 * remote.c (remote_target::download_tracepoint)
11936 (remote_target::enable_tracepoint)
11937 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11938 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11939 sprintf_vma.
11940
64f25102
TT
119412020-03-12 Tom Tromey <tom@tromey.com>
11942
11943 * symfile-mem.c: Update CORE_ADDR size assert.
11944
272cd5a3
SM
119452020-03-12 Simon Marchi <simon.marchi@efficios.com>
11946
11947 * selftest.m4: Move to gdbsupport/.
11948 * acinclude.m4: Update path to selftest.m4.
11949
74cd3f9d
SM
119502020-03-12 Simon Marchi <simon.marchi@efficios.com>
11951
11952 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11953 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11954 gdbarch-selfselftests.c and selftest-arch.c.
11955 (SUBDIR_UNITTESTS_OBS): Rename to...
11956 (SELFTESTS_OBS): ... this.
11957 (COMMON_SFILES): Remove disasm-selftests.c and
11958 gdbarch-selftests.c.
11959 * configure.ac: Don't add selftest-arch.{c,o} to
11960 CONFIG_{SRCS,OBS}.
11961 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11962 preprocessor conditions.
11963
db6878ac
SM
119642020-03-12 Simon Marchi <simon.marchi@efficios.com>
11965
11966 * configure.ac: Don't source bfd/development.sh.
11967 * selftest.m4: Modify comment.
11968 * configure: Re-generate.
11969
4d696a5c
SM
119702020-03-12 Simon Marchi <simon.marchi@efficios.com>
11971
11972 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11973 not "true" or "false".
11974 * configure: Re-generate.
11975
8dd8e1c7
CB
119762020-03-12 Christian Biesinger <cbiesinger@google.com>
11977
11978 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11979 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11980 renamed to arm_nbsd_supply_gregset.
11981 (fetch_register): Update to call arm_nbsd_supply_gregset.
11982 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11983 (arm_netbsd_nat_target::fetch_registers): Update.
11984 (fetch_elfcore_registers): Removed.
11985 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11986 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11987 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11988 not require NetBSD system headers.
11989 (arm_nbsd_regset): New struct.
11990 (arm_nbsd_iterate_over_regset_sections): New function.
11991 (arm_netbsd_init_abi_common): Updated to call
11992 set_gdbarch_iterate_over_regset_sections.
11993 * arm-nbsd-tdep.h: New file.
11994
dd69bf7a
KB
119952020-03-11 Kevin Buettner <kevinb@redhat.com>
11996
11997 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11998 recursion.
11999
a0761e34
SM
120002020-03-11 Simon Marchi <simon.marchi@efficios.com>
12001
12002 * configure: Re-generate.
12003
e7a82140
TT
120042020-03-11 Tom Tromey <tromey@adacore.com>
12005
12006 * ada-typeprint.c (print_choices): Fix comment.
12007
dcc050c8
AB
120082020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12009
12010 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12011 previous item in the list, when the list has no items.
12012
1c33af77
TV
120132020-03-11 Tom de Vries <tdevries@suse.de>
12014
12015 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12016 PROP_LOCLIST handling code.
12017
8c95582d
AB
120182020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12019
12020 * buildsym-legacy.c (record_line): Pass extra parameter to
12021 record_line.
12022 * buildsym.c (buildsym_compunit::record_line): Take an extra
12023 parameter, reduce duplication in the line table, and record the
12024 is_stmt flag in the line table.
12025 * buildsym.h (buildsym_compunit::record_line): Add extra
12026 parameter.
12027 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12028 non-statement lines.
12029 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12030 this to the symtab builder.
12031 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12032 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12033 through to dwarf_record_line_1.
12034 * infrun.c (process_event_stop_test): When stepping, don't stop at
12035 a non-statement instruction, and only refresh the step info when
12036 we land in the middle of a line's range. Also add an extra
12037 comment.
12038 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12039 field.
12040 * record-btrace.c (btrace_find_line_range): Only record lines
12041 marked as is-statement.
12042 * stack.c (frame_show_address): Show the frame address if we are
12043 in a non-statement sal.
12044 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12045 (maintenance_print_one_line_table): Print a header for the is_stmt
12046 column, and include is_stmt information in the output.
12047 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12048 preference to non-statements.
12049 (find_pcs_for_symtab_line): Prefer is-statement entries.
12050 (find_line_common): Likewise.
12051 * symtab.h (struct linetable_entry): Add is_stmt field.
12052 (struct symtab_and_line): Likewise.
12053 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12054 arranging the line table.
12055
e4003a34
TV
120562020-03-07 Tom de Vries <tdevries@suse.de>
12057
12058 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12059 DIE.
12060
e8932576
TT
120612020-03-07 Tom Tromey <tom@tromey.com>
12062
12063 * valops.c (value_literal_complex): Remove obsolete comment.
12064 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12065 comment.
12066
29734269
SM
120672020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * infrun.h: Forward-declare thread_info.
12070 (set_step_info): Add thread_info parameter, add doc.
12071 * infrun.c (set_step_info): Add thread_info parameter, move doc
12072 to header.
12073 * infrun.c (process_event_stop_test): Pass thread to
12074 set_step_info call.
12075 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12076 set_step_info.
12077 (prepare_one_step): Add thread_info parameter, pass it to
12078 set_step_frame and prepare_one_step (recursive) call.
12079 (step_1): Pass thread to prepare_one_step call.
12080 (step_command_fsm::should_stop): Pass thread to
12081 prepare_one_step.
12082 (until_next_fsm): Pass thread to set_step_frame call.
12083 (finish_command): Pass thread to set_step_info call.
12084
b7d64b29
HD
120852020-03-06 Hannes Domani <ssbssa@yahoo.de>
12086
12087 * windows-tdep.c (windows_solib_create_inferior_hook):
12088 Check if inferior is running.
12089
09f2921c
TV
120902020-03-06 Tom de Vries <tdevries@suse.de>
12091
12092 * NEWS: Fix "the the".
12093 * ctfread.c: Same.
12094
fd760e79
TV
120952020-03-06 Tom de Vries <tdevries@suse.de>
12096
12097 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12098
20ea4a60
AB
120992020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12100
12101 * .dir-locals.el: Add a comment referencing the other copies of
12102 this file.
12103
0afbabf0
JB
121042020-03-05 John Baldwin <jhb@FreeBSD.org>
12105
12106 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12107 psargs.
12108
842806cb
TBA
121092020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12110
12111 * .gitattributes: New file.
12112
be1e3d3e
TT
121132020-03-04 Tom Tromey <tom@tromey.com>
12114
12115 * symmisc.c (print_symbol_bcache_statistics)
12116 (print_objfile_statistics): Update.
12117 * symfile.c (allocate_symtab): Use intern.
12118 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12119 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12120 macro_cache>: Remove.
12121 <string_cache>: New member.
12122 (struct objfile) <intern>: New methods.
12123 * elfread.c (elf_symtab_read): Use intern.
12124 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12125 (dwarf2_compute_name, dwarf2_physname)
12126 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12127 names.
12128 (guess_partial_die_structure_name): Update.
12129 (partial_die_info::fixup): Intern name.
12130 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12131 name.
12132 (dwarf2_name): Intern name. Update.
12133 * buildsym.c (buildsym_compunit::get_macro_table): Use
12134 string_cache.
12135
4e7625fd
TT
121362020-03-04 Tom Tromey <tom@tromey.com>
12137
12138 * jit.c (bfd_open_from_target_memory): Make "target" const.
12139 * corefile.c (gnutarget): Now const.
12140 * gdbcore.h (gnutarget): Now const.
12141
46f9f931
HD
121422020-03-04 Hannes Domani <ssbssa@yahoo.de>
12143
12144 * NEWS: Mention support for WOW64 processes.
12145 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12146 (amd64_windows_segment_register_p): Remove static.
12147 (_initialize_amd64_windows_nat): Update.
12148 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12149 * i386-windows-nat.c (context_offset): Update.
12150 (i386_mappings): Rename and remove static.
12151 (i386_windows_segment_register_p): Remove static.
12152 (_initialize_i386_windows_nat): Update.
12153 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12154 (STATUS_WX86_SINGLE_STEP): New macro.
12155 (EnumProcessModulesEx): New macro.
12156 (Wow64SuspendThread): New macro.
12157 (Wow64GetThreadContext): New macro.
12158 (Wow64SetThreadContext): New macro.
12159 (Wow64GetThreadSelectorEntry): New macro.
12160 (windows_set_context_register_offsets): Add static.
12161 (windows_set_segment_register_p): Likewise.
12162 (windows_add_thread): Adapt for WOW64 processes.
12163 (windows_fetch_one_register): Likewise.
12164 (windows_nat_target::fetch_registers): Likewise.
12165 (windows_store_one_register): Likewise.
12166 (display_selector): Likewise.
12167 (display_selectors): Likewise.
12168 (handle_exception): Likewise.
12169 (windows_continue): Likewise.
12170 (windows_nat_target::resume): Likewise.
12171 (windows_add_all_dlls): Likewise.
12172 (do_initial_windows_stuff): Likewise.
12173 (windows_nat_target::attach): Likewise.
12174 (windows_get_exec_module_filename): Likewise.
12175 (windows_nat_target::create_inferior): Likewise.
12176 (windows_xfer_siginfo): Likewise.
12177 (_initialize_loadable): Initialize Wow64SuspendThread,
12178 Wow64GetThreadContext, Wow64SetThreadContext,
12179 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12180 * windows-nat.h (windows_set_context_register_offsets):
12181 Remove declaration.
12182 (windows_set_segment_register_p): Likewise.
12183 (i386_windows_segment_register_p): Add declaration.
12184 (amd64_windows_segment_register_p): Likewise.
12185
440cf44e
LM
121862020-03-04 Luis Machado <luis.machado@linaro.org>
12187
12188 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12189 in "info registers" for AArch64/ARM.
12190
12191 The change caused "info registers" to not print GPR's.
12192
12193 gdb/ChangeLog:
12194
12195 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12196
12197 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12198 when reg->group is empty and reggroup is not.
12199
1009d92f
TT
122002020-03-03 Tom Tromey <tromey@adacore.com>
12201
12202 * dwarf2/frame.c (struct dwarf2_frame_cache)
12203 <checked_tailcall_bottom, entry_cfa_sp_offset,
12204 entry_cfa_sp_offset_p>: Remove members.
12205 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12206 (dwarf2_frame_prev_register): Don't call
12207 dwarf2_tailcall_sniffer_first.
12208 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12209 * frame-unwind.c (add_unwinder): New fuction.
12210 (frame_unwind_init): Use it. Add tailcall unwinder.
12211
5e5d66b6
AB
122122020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12213 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12214
12215 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12216 value should be printed as true.
12217
584cf46d
HD
122182020-03-03 Hannes Domani <ssbssa@yahoo.de>
12219
12220 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12221 (windows_init_abi): Set and use windows_so_ops.
12222
7b973adc
SDJ
122232020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12224
12225 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12226 when verifying if dealing with a convenience variable.
12227
bb7b70ab
LM
122282020-03-03 Luis Machado <luis.machado@linaro.org>
12229
12230 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12231
9822cb57
SM
122322020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12233
12234 * infrun.c (gdbarch_supports_displaced_stepping): New.
12235 (use_displaced_stepping): Break up conditions in smaller pieces.
12236 Use gdbarch_supports_displaced_stepping.
12237 (displaced_step_prepare_throw): Use
12238 gdbarch_supports_displaced_stepping.
12239
63e163f2
AB
122402020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12241
12242 * NEWS: Mention new behaviour of the history filename.
12243 * top.c (write_history_p): Add comment.
12244 (show_write_history_p): Add header comment, give a different
12245 message when history writing is on, but the history filename is
12246 empty.
12247 (history_filename): Add comment.
12248 (history_filename_empty): New function.
12249 (show_history_filename): Add header comment, give a different
12250 message when the filename is empty.
12251 (init_history): Compare history_filename against nullptr, and only
12252 read history if the filename is not empty.
12253 (set_history_filename): Add header comment, and only make
12254 non-empty filenames absolute.
12255 (init_main): Make the filename argument to 'set history filename'
12256 optional.
12257
81b86b97
CB
122582020-03-02 Christian Biesinger <cbiesinger@google.com>
12259
12260 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12261 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12262 (fetch_fp_register): Update.
12263 (fetch_fp_regs): Update.
12264 (store_fp_register): Update.
12265 (store_fp_regs): Update.
12266 (arm_netbsd_nat_target::read_description): New function.
12267 (fetch_elfcore_registers): Update.
12268
24ed6739
AB
122692020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12272 general_thread if the stop reply is missing a thread-id.
12273 (remote_target::process_stop_reply): Use the first non-exited
12274 thread if the target didn't pass a thread-id.
12275 * infrun.c (do_target_wait): Move call to
12276 switch_to_inferior_no_thread to ....
12277 (do_target_wait_1): ... here.
12278
a84bb2a0
JT
122792020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12280
12281 * debuginfod-support.c: Include defs.h first.
12282
658dadf0
TV
122832020-02-28 Tom de Vries <tdevries@suse.de>
12284
12285 * symfile.c (set_initial_language): Use default language for lookup.
12286
4ebe4877
SM
122872020-02-28 Simon Marchi <simon.marchi@efficios.com>
12288
12289 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12290 reader variable, pass `this` to read_cutu_die_from_dwo.
12291
e5da1139
AM
122922020-02-27 Aaron Merey <amerey@redhat.com>
12293
12294 * source.c (open_source_file): Check for nullptr when computing
12295 srcpath.
12296
317f7127
TT
122972020-02-27 Tom Tromey <tromey@adacore.com>
12298
12299 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12300 member.
12301 (dwarf2_add_field): Don't update nfields.
12302 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12303
3104d9ee
AB
123042020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12305
12306 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12307 abs.
12308
b83470bf
TT
123092020-02-26 Tom Tromey <tom@tromey.com>
12310
12311 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12312 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12313 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12314 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12315 per_cu_data.
12316
edfe0a0c
TT
123172020-02-26 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/index-write.c (psym_index_map): Change type.
12320 (add_address_entry_worker, write_one_signatured_type)
12321 (recursively_count_psymbols, recursively_write_psymbols)
12322 (class debug_names, psyms_seen_size, write_gdbindex)
12323 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12324
0d79cdc4
AM
123252020-02-26 Aaron Merey <amerey@redhat.com>
12326
12327 * Makefile.in: Handle optional debuginfod support.
12328 * NEWS: Update.
12329 * README: Add --with-debuginfod summary.
12330 * config.in: Regenerate.
12331 * configure: Regenerate.
12332 * configure.ac: Handle optional debuginfod support.
12333 * debuginfod-support.c: debuginfod helper functions.
12334 * debuginfod-support.h: Ditto.
12335 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12336 summary.
12337 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12338 when a dwz file cannot be found.
12339 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12340 debuginfo file cannot be found.
12341 * source.c (open_source_file): Query debuginfod servers when a
12342 source file cannot be found.
12343 * top.c (print_gdb_configuration): Include
12344 --{with,without}-debuginfod in the output.
12345
b65ce565
JG
123462020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12347
12348 * thread.c (thr_try_catch_cmd): Print thread name.
12349
d4c9a4f8
SM
123502020-02-26 Simon Marchi <simon.marchi@efficios.com>
12351
12352 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12354 dwarf2_fetch_die_type_sect_off): Move to...
12355 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12357 dwarf2_fetch_die_type_sect_off): ... here.
12358 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12359 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12360 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12361
0dce4280
TV
123622020-02-26 Tom de Vries <tdevries@suse.de>
12363
12364 PR gdb/25603
12365 * symfile.c (set_initial_language): Exit-early if
12366 language_mode == language_mode_manual.
12367
450a1bfc
SM
123682020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12369
12370 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12371 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12372 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12373
9e80cfa1
AB
123742020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * gdbtypes.c (create_array_type_with_stride): Handle negative
12377 array strides.
12378 * valarith.c (value_subscripted_rvalue): Likewise.
12379
09624f1f
LM
123802020-02-25 Luis Machado <luis.machado@linaro.org>
12381
12382 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12383
8cb5117c
SM
123842020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12385
12386 * loc.h (dwarf2_get_die_type): Move to...
12387 * read.h (dwarf2_get_die_type): ... here.
12388 * read.c (dwarf2_get_die_type): Move doc to header.
12389
c325c44e
JB
123902020-02-25 Joel Brobecker <brobecker@adacore.com>
12391
12392 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12393 'gnulib/Makefile.in' to the list.
12394
4ac93832
TT
123952020-02-24 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12398 Remove.
12399 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12400 XOBNEWVEC.
12401
197400e8
TT
124022020-02-24 Tom Tromey <tom@tromey.com>
12403
12404 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12405 New method.
12406 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12407 (dw2_do_instantiate_symtab, dw2_get_file_names)
12408 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12409
76935768
TT
124102020-02-24 Tom Tromey <tom@tromey.com>
12411
12412 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12413 make_scoped_restore.
12414 (dwarf2_psymtab::read_symtab): Don't clear
12415 reading_partial_symbols.
12416
a88ef40d
TV
124172020-02-24 Tom de Vries <tdevries@suse.de>
12418
12419 PR gdb/25592
12420 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12421
c9af6521
TV
124222020-02-24 Tom de Vries <tdevries@suse.de>
12423
12424 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12425 commands layout next/prev/regs.
12426
5707a07a
TT
124272020-02-22 Tom Tromey <tom@tromey.com>
12428
12429 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12430 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12431
3b0fb49e
TT
124322020-02-22 Tom Tromey <tom@tromey.com>
12433
12434 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12435
283be8bf
TT
124362020-02-22 Tom Tromey <tom@tromey.com>
12437
12438 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12439 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12440 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12441 * tui/tui.c (_initialize_tui): Add usage text.
12442
ca793b96
TT
124432020-02-22 Tom Tromey <tom@tromey.com>
12444
12445 * tui/tui-win.c (tui_set_focus_command)
12446 (tui_set_win_height_command): Use error_no_arg.
12447 (_initialize_tui_win): Update help text.
12448 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12449
432b5c40
TT
124502020-02-22 Tom Tromey <tom@tromey.com>
12451
12452 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12453 * tui/tui-disasm.h (struct tui_disasm_window)
12454 <display_start_addr>: Declare.
12455 * tui/tui-source.h (struct tui_source_window)
12456 <display_start_addr>: Declare.
12457 * tui/tui-winsource.h (struct tui_source_window_base)
12458 <show_source_line, display_start_addr>: New methods.
12459 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12460 Rename and move to protected section.
12461 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12462 (tui_source_window_base::do_erase_source_content): Update.
12463 (tui_source_window_base::show_source_line): Now a method.
12464 (tui_source_window_base::show_source_content)
12465 (tui_source_window_base::tui_source_window_base)
12466 (tui_source_window_base::rerender)
12467 (tui_source_window_base::refill)
12468 (tui_source_window_base::do_scroll_horizontal)
12469 (tui_source_window_base::set_is_exec_point_at)
12470 (tui_source_window_base::update_breakpoint_info)
12471 (tui_source_window_base::update_exec_info): Update.
12472 * tui/tui-source.c (tui_source_window::set_contents)
12473 (tui_source_window::showing_source_p)
12474 (tui_source_window::do_scroll_vertical)
12475 (tui_source_window::location_matches_p)
12476 (tui_source_window::line_is_displayed): Update.
12477 (tui_source_window::display_start_addr): New method.
12478 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12479 (tui_disasm_window::do_scroll_vertical)
12480 (tui_disasm_window::location_matches_p): Update.
12481 (tui_disasm_window::display_start_addr): New method.
12482
01b1af32
TT
124832020-02-22 Tom Tromey <tom@tromey.com>
12484
12485 * NEWS: Add entry for gdb.register_window_type.
12486 * tui/tui-layout.h (window_factory): New typedef.
12487 (tui_register_window): Declare.
12488 * tui/tui-layout.c (saved_tui_windows): New global.
12489 (tui_apply_current_layout): Use it.
12490 (tui_register_window): New function.
12491 * python/python.c (do_start_initialization): Call
12492 gdbpy_initialize_tui.
12493 (python_GdbMethods): Add "register_window_type" function.
12494 * python/python-internal.h (gdbpy_register_tui_window)
12495 (gdbpy_initialize_tui): Declare.
12496 * python/py-tui.c: New file.
12497 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12498
fc96d20b
TT
124992020-02-22 Tom Tromey <tom@tromey.com>
12500
12501 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12502
935c78c0
TT
125032020-02-22 Tom Tromey <tom@tromey.com>
12504
12505 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12506 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12507 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12508 (tui_set_win_focus_to): Move from tui-win.c.
12509
0240c8f1
TT
125102020-02-22 Tom Tromey <tom@tromey.com>
12511
12512 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12513 functions.
12514 (known_window_types): New global.
12515 (tui_get_window_by_name): Reimplement.
12516 (initialize_known_windows): New function.
12517 (validate_window_name): Rewrite.
12518 (_initialize_tui_layout): Call initialize_known_windows.
12519
fdb01f0c
TT
125202020-02-22 Tom Tromey <tom@tromey.com>
12521
12522 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12523 Remove constants.
12524 * tui/tui-winsource.h (struct tui_source_window_base)
12525 <tui_source_window_base>: Remove parameter.
12526 * tui/tui-winsource.c
12527 (tui_source_window_base::tui_source_window_base): Remove
12528 parameter.
12529 (tui_source_window_base::refill): Update.
12530 * tui/tui-stack.h (struct tui_locator_window)
12531 <tui_locator_window>: Update.
12532 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12533 Default the constructor.
12534 * tui/tui-regs.h (struct tui_data_item_window)
12535 <tui_data_item_window>: Default the constructor.
12536 (struct tui_data_window) <tui_data_window>: Likewise.
12537 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12538 Default the constructor.
12539 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12540 Default the constructor.
12541 <type>: Remove.
12542 (struct tui_win_info) <tui_win_info>: Default the constructor.
12543 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12544 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12545 Default the constructor.
12546
865a5aec
TT
125472020-02-22 Tom Tromey <tom@tromey.com>
12548
12549 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12550 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12551 * tui/tui-win.c (tui_resize_all): Don't call
12552 tui_delete_invisible_windows.
12553 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12554 done.
12555 (tui_set_layout): Update.
12556 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12557 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12558 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12559
e098d18c
TT
125602020-02-22 Tom Tromey <tom@tromey.com>
12561
12562 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12563 correctly.
12564
eb9c8874
TT
125652020-02-22 Tom Tromey <tom@tromey.com>
12566
12567 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12568
7eed1a8e
TT
125692020-02-22 Tom Tromey <tom@tromey.com>
12570
12571 * tui/tui-winsource.h (struct tui_source_window_iterator)
12572 <inner_iterator>: New etytypedef.
12573 <tui_source_window_iterator>: Take "end" parameter.
12574 <tui_source_window_iterator>: Take iterator.
12575 <operator*, advance>: Update.
12576 <m_iter>: Change type.
12577 <m_end>: New field.
12578 (struct tui_source_windows) <begin, end>: Update.
12579 * tui/tui-layout.c (tui_windows): New global.
12580 (tui_apply_current_layout): Clear tui_windows.
12581 (tui_layout_window::apply): Update tui_windows.
12582 * tui/tui-data.h (tui_windows): Declare.
12583 (all_tui_windows): Now inline function.
12584 (class tui_window_iterator, struct all_tui_windows): Remove.
12585
7c043ba6
TT
125862020-02-22 Tom Tromey <tom@tromey.com>
12587
12588 PR tui/17850:
12589 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12590 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12591 "height" argument.
12592 (class tui_layout_window) <get_sizes>: Likewise.
12593 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12594 argument.
12595 <get_sizes>: Add "height" argument.
12596 <m_vertical>: New field.
12597 * tui/tui-layout.c (tui_layout_split::clone): Update.
12598 (tui_layout_split::get_sizes): Add "height" argument.
12599 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12600 (tui_new_layout_command): Parse "-horizontal".
12601 (_initialize_tui_layout): Update help string.
12602 (tui_layout_split::specification): Add "-horizontal" when needed.
12603 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12604 argument.
12605 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12606 New methods.
12607
6bc56648
TT
126082020-02-22 Tom Tromey <tom@tromey.com>
12609
12610 * tui/tui-layout.h (enum tui_adjust_result): New.
12611 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12612 (class tui_layout_window) <adjust_size>: Return
12613 tui_adjust_result. Rewrite.
12614 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12615 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12616
c22fef7e
TT
126172020-02-22 Tom Tromey <tom@tromey.com>
12618
12619 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12620 parameter and return types.
12621 (class tui_layout_base) <specification>: Add "depth".
12622 (class tui_layout_window) <specification>: Add "depth".
12623 (class tui_layout_split) <specification>: Add "depth".
12624 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12625 and return types.
12626 (tui_new_layout_command): Parse sub-layouts.
12627 (_initialize_tui_layout): Update help string.
12628 (tui_layout_window::specification): Add "depth".
12629 (add_layout_command): Update.
12630
ee325b61
TT
126312020-02-22 Tom Tromey <tom@tromey.com>
12632
12633 * NEWS: Add "tui new-layout" item.
12634 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12635 Add new-layout command to help text.
12636 (validate_window_name): New function.
12637 (tui_new_layout_command): New function.
12638 (_initialize_tui_layout): Register "new-layout".
12639 (tui_layout_window::specification): New method.
12640 (tui_layout_window::specification): New method.
12641 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12642 method.
12643 (class tui_layout_window) <specification>: New method.
12644 (class tui_layout_split) <specification>: New method.
12645
416eb92d
TT
126462020-02-22 Tom Tromey <tom@tromey.com>
12647
12648 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12649 * tui/tui-win.c (window_name_completer): Update comment.
12650 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12651 Declare method.
12652 (class tui_layout_window) <replace_window>: Likewise.
12653 (class tui_layout_split) <replace_window>: Likewise.
12654 (tui_set_layout): Don't declare.
12655 (tui_set_initial_layout): Declare function.
12656 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12657 (asm_regs_layout): New globals.
12658 (tui_current_layout, show_layout): Remove.
12659 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12660 (find_layout, tui_apply_layout): New function.
12661 (layout_completer): Remove.
12662 (tui_next_layout): Reimplement.
12663 (tui_next_layout_command): New function.
12664 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12665 (tui_regs_layout): Reimplement.
12666 (tui_regs_layout_command): New function.
12667 (extract_display_start_addr): Rewrite.
12668 (next_layout, prev_layout): Remove.
12669 (tui_layout_window::replace_window): New method.
12670 (tui_layout_split::replace_window): New method.
12671 (destroy_layout): New function.
12672 (layout_list): New global.
12673 (add_layout_command): New function.
12674 (initialize_layouts): Update.
12675 (tui_layout_command): New function.
12676 (_initialize_tui_layout): Install "layout" commands.
12677 * tui/tui-data.h (enum tui_layout_type): Remove.
12678 (tui_current_layout): Don't declare.
12679
0dbc2fc7
TT
126802020-02-22 Tom Tromey <tom@tromey.com>
12681
12682 * tui/tui-regs.c (tui_reg_layout): Remove.
12683 (tui_reg_command): Use tui_regs_layout.
12684 * tui/tui-layout.h (tui_reg_command): Declare.
12685 * tui/tui-layout.c (tui_reg_command): New function.
12686
5afe342e
TT
126872020-02-22 Tom Tromey <tom@tromey.com>
12688
12689 * tui/tui.c (tui_rl_delete_other_windows): Call
12690 tui_remove_some_windows.
12691 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12692 Declare method.
12693 (class tui_layout_window) <remove_windows>: New method.
12694 (class tui_layout_split) <remove_windows>: Declare.
12695 (tui_remove_some_windows): Declare.
12696 * tui/tui-layout.c (tui_remove_some_windows): New function.
12697 (tui_layout_split::remove_windows): New method.
12698
427326a8
TT
126992020-02-22 Tom Tromey <tom@tromey.com>
12700
12701 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12702 * tui/tui-layout.h (tui_next_layout): Declare.
12703 * tui/tui-layout.c (tui_next_layout): New function.
12704
3fe12b6d
TT
127052020-02-22 Tom Tromey <tom@tromey.com>
12706
12707 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12708 correct coordinates.
12709
59b8b5d2
TT
127102020-02-22 Tom Tromey <tom@tromey.com>
12711
12712 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12713 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12714 DATA_WIN case.
12715
2a3d458b
TT
127162020-02-22 Tom Tromey <tom@tromey.com>
12717
12718 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12719 TUI_DISASM_WIN, not tui_win_list.
12720
3f0cbb04
TT
127212020-02-22 Tom Tromey <tom@tromey.com>
12722
12723 * valprint.c (generic_val_print_enum_1)
12724 (val_print_type_code_flags): Style member names.
12725 * rust-lang.c (val_print_struct, rust_print_enum)
12726 (rust_print_struct_def, rust_internal_print_type): Style member
12727 names.
12728 * p-valprint.c (pascal_object_print_value_fields): Style member
12729 names. Only call fprintf_symbol_filtered for static members.
12730 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12731 * f-valprint.c (f_val_print): Style member names.
12732 * f-typeprint.c (f_type_print_base): Style member names.
12733 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12734 call fprintf_symbol_filtered for static members.
12735 (cp_print_class_member): Style member names.
12736 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12737 member names.
12738 * ada-valprint.c (ada_print_scalar): Style enum names.
12739 (ada_val_print_enum): Likewise.
12740 * ada-typeprint.c (print_enum_type): Style enum names.
12741
d4d947ae
TT
127422020-02-21 Tom Tromey <tom@tromey.com>
12743
12744 * psympriv.h (struct partial_symtab): Update comment.
12745
e94e944b
TT
127462020-02-21 Tom Tromey <tromey@adacore.com>
12747
12748 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12749 type is CORE_ADDR.
12750
1eb73179
TV
127512020-02-21 Tom de Vries <tdevries@suse.de>
12752
12753 PR gdb/25534
12754 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12755 if dependencies[i]->user != NULL.
12756
4f180d53
AT
127572020-02-21 Ali Tamur <tamur@google.com>
12758
12759 * dwarf2/read.c (dwarf2_name): Add null check.
12760
22b6cd70
TT
127612020-02-20 Tom Tromey <tom@tromey.com>
12762
12763 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12764 ">=", in binary search.
12765 (dwarf2_find_containing_comp_unit): New overload.
12766 (run_test): New self-test.
12767 (_initialize_dwarf2_read): Register new test.
12768
bd0cf5a6
NC
127692020-02-20 Nelson Chu <nelson.chu@sifive.com>
12770
12771 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12772 * riscv-tdep.h: Likewise.
12773 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12774 rv32-only CSR.
12775 * features/riscv/64bit-csr.xml: Regenerated.
12776
3f702acd
SDJ
127772020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12778 Tom Tromey <tom@tromey.com>
12779
12780 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12781 of 'fputc_unfiltered'.
12782 (putchar_unfiltered): Call 'fputc_unfiltered'.
12783 (fputc_unfiltered): Call 'fputs_unfiltered'.
12784
d13c7322
AB
127852020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12786
12787 * config.in: Regenerate.
12788 * configure: Regenerate.
12789 * configure.ac: Add --with-python-libdir option.
12790 * main.c: Use WITH_PYTHON_LIBDIR.
12791
869d8950
TT
127922020-02-19 Tom Tromey <tom@tromey.com>
12793
12794 * symtab.c (general_symbol_info::compute_and_set_names): Use
12795 obstack_strndup. Simplify call to symbol_set_demangled_name.
12796
298e9637
SM
127972020-02-19 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * dwarf2/read.c (allocate_signatured_type_table,
12800 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12801 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12802 Remove objfile parameter, update all callers.
12803
08410482
DE
128042020-02-19 Doug Evans <dje@google.com>
12805
12806 PR rust/25535
12807 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12808 rust_enum_variant calculation.
12809
dfdeeca1
TT
128102020-02-19 Tom Tromey <tromey@adacore.com>
12811
12812 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12813
2ef5453b
TT
128142020-02-19 Tom Tromey <tromey@adacore.com>
12815
12816 * ada-lang.c (cache_symbol): Use obstack_strdup.
12817
9f1528a1
AB
128182020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12819
12820 * configure: Regenerate.
12821
d3c22fa8
TT
128222020-02-19 Tom Tromey <tromey@adacore.com>
12823
12824 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12825 NULL check.
12826
bf84f706
MR
128272020-02-19 Maciej W. Rozycki <macro@wdc.com>
12828
12829 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12830
d1c9b20f
AB
128312020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12832
12833 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12834 if GDBSERVER is not defined.
12835 (riscv_tdesc_cache): Likewise, also store const target_desc.
12836 (STATIC_IN_GDB): Define.
12837 (riscv_create_target_description): Update declaration with
12838 STATIC_IN_GDB.
12839 (riscv_lookup_target_description): New function, only define if
12840 GDBSERVER is not defined.
12841 * arch/riscv.h (riscv_create_target_description): Declare only
12842 when GDBSERVER is defined.
12843 (riscv_lookup_target_description): New declaration when GDBSERVER
12844 is not defined.
12845 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12846 (riscv_linux_read_features): ...this, and return
12847 riscv_gdbarch_features instead of target_desc.
12848 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12849 (riscv_linux_read_description): Rename to...
12850 (riscv_linux_read_features): ...this.
12851 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12852 Update to use riscv_gdbarch_features and
12853 riscv_lookup_target_description.
12854 * riscv-tdep.c (riscv_find_default_target_description): Use
12855 riscv_lookup_target_description instead of
12856 riscv_create_target_description.
12857
373d7ac0
SM
128582020-02-18 Simon Marchi <simon.marchi@efficios.com>
12859
12860 * valprint.c (generic_val_print_enum_1): When printing a flag
12861 enum with value 0 and there is no enumerator with value 0, print
12862 just "0" instead of "(unknown: 0x0)".
12863
b29a2df0
SM
128642020-02-18 Simon Marchi <simon.marchi@efficios.com>
12865
12866 * valprint.c (generic_val_print_enum_1): Print unknown part of
12867 flag enum in hex.
12868
6740f0cc
SM
128692020-02-18 Simon Marchi <simon.marchi@efficios.com>
12870
12871 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12872 flag enums to contain duplicate enumerators.
12873 * valprint.c (generic_val_print_enum_1): Update comment.
12874
edd45eb0
SM
128752020-02-18 Simon Marchi <simon.marchi@efficios.com>
12876
12877 * dwarf2/read.c: Include "count-one-bits.h".
12878 (update_enumeration_type_from_children): If an enumerator has
12879 multiple bits set, don't treat the enumeration as a "flag enum".
12880 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12881 of flag enums have 0 or 1 bit set.
12882
6d0cf446
BE
128832020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12884
12885 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12886 conversion.
12887 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12888 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12889 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12890 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12891 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12892
7001c1b7
SM
128932020-02-18 Simon Marchi <simon.marchi@efficios.com>
12894
12895 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12896
fdb61c6c
SM
128972020-02-14 Simon Marchi <simon.marchi@efficios.com>
12898
12899 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12900 displaced_step_closure_up.
12901 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12902 (struct displaced_step_closure_up):
12903 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12904 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12905 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12906 Likewise.
12907 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12908 * gdbarch.c, gdbarch.h: Re-generate.
12909 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12910 displaced_step_closure_up.
12911 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12912 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12913 * infrun.h (displaced_step_closure_up): New type alias.
12914 (struct displaced_step_inferior_state) <step_closure>: Change
12915 type to displaced_step_closure_up.
12916 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12917 displaced_step_closure_up.
12918 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12919
a4a38eb4
TT
129202020-02-14 Tom Tromey <tom@tromey.com>
12921
12922 * minidebug.c (gnu_debug_key): New global.
12923 (find_separate_debug_file_in_section): Use it.
12924
e8217e61
SM
129252020-02-14 Simon Marchi <simon.marchi@efficios.com>
12926
12927 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12928 std::unique_ptr.
12929 * gdbarch.c: Re-generate.
12930 * gdbarch.h: Re-generate.
12931 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12932 change.
12933 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12934 type to std::unique_ptr.
12935 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12936 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12937 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12938 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12939 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12940 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12941 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12943 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12944
d8d83535
SM
129452020-02-14 Simon Marchi <simon.marchi@efficios.com>
12946
12947 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12948 std::unique_ptr.
12949 (displaced_step_clear): Rename to...
12950 (displaced_step_reset): ... this. Just call displaced->reset ().
12951 (displaced_step_clear_cleanup): Rename to...
12952 (displaced_step_reset_cleanup): ... this.
12953 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12954 (displaced_step_fixup): Likewise.
12955 (resume_1): Likewise.
12956 (handle_inferior_event): Restore child's memory before calling
12957 displaced_step_fixup on the parent.
12958 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12959 to std::unique_ptr.
12960 <step_closure>: Change type to std::unique_ptr.
12961
5f661e03
SM
129622020-02-14 Simon Marchi <simon.marchi@efficios.com>
12963
12964 * arm-tdep.c: Include count-one-bits.h.
12965 (cleanup_block_store_pc): Use count_one_bits.
12966 (cleanup_block_load_pc): Use count_one_bits.
12967 (arm_copy_block_xfer): Use count_one_bits.
12968 (thumb2_copy_block_xfer): Use count_one_bits.
12969 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12970 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12971 (thumb_get_next_pcs_raw): Use count_one_bits.
12972 (arm_get_next_pcs_raw): Use count_one_bits_l.
12973 * arch/arm.c (bitcount): Remove.
12974 * arch/arm.h (bitcount): Remove.
12975
8084e579
TT
129762020-02-14 Tom Tromey <tromey@adacore.com>
12977
12978 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12979 Update.
12980 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12981 * dwarf2/loc.c (call_site_find_chain_1): Return
12982 unique_xmalloc_ptr.
12983 (call_site_find_chain): Likewise.
12984
258bf0ee
RB
129852020-02-14 Richard Biener <rguenther@suse.de>
12986
12987 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12988 on expression with division operators.
12989
f98a8458
AKS
129902020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12991
12992 * MAINTAINERS (Write After Approval): Adding myself.
12993
d1437c0e
TT
129942020-02-12 Tom Tromey <tom@tromey.com>
12995
12996 * event-loop.c (event_data, gdb_event, event_handler_func):
12997 Remove.
12998
3d4560f7
TT
129992020-02-12 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13002 (dwarf2_frame_objfile_data): Add comment.
13003 (find_comp_unit, set_comp_unit): New functions.
13004 (dwarf2_frame_find_fde): Use find_comp_unit.
13005 (dwarf2_build_frame_info): Use set_comp_unit.
13006
21982304
TT
130072020-02-12 Tom Tromey <tom@tromey.com>
13008
13009 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13010 (comp_unit): Don't initialize objfile.
13011 (execute_cfa_program): Add text_offset parameter.
13012 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13013 (dwarf2_frame_cache): Update.
13014 (dwarf2_build_frame_info): Don't set "objfile" member.
13015
4debb237
TT
130162020-02-12 Tom Tromey <tom@tromey.com>
13017
13018 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13019 (decode_frame_entry): Likewise.
13020 (dwarf2_build_frame_info): Update.
13021
0d404d44
TT
130222020-02-12 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13025 (decode_frame_entry_1): Use the comp_unit obstack.
13026
a7a3ae5c
TT
130272020-02-12 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/frame.c (struct comp_unit): Add initializers and
13030 constructor.
13031 (dwarf2_frame_objfile_data): Store a comp_unit.
13032 (dwarf2_frame_find_fde): Update.
13033 (dwarf2_build_frame_info): Use "new".
13034
a9d65418
TT
130352020-02-12 Tom Tromey <tom@tromey.com>
13036
13037 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13038 (dwarf2_fde_table): Typedef for std::vector.
13039 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13040 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13041 (decode_frame_entry): Update.
13042 (dwarf2_build_frame_info): Use "new".
13043
7559c217
CB
130442020-02-12 Christian Biesinger <cbiesinger@google.com>
13045
13046 * arm-tdep.c (arm_gdbarch_init): Update.
13047 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13048 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13049 have_neon, is_m>: Change to bool.
13050
aeefc73c
CB
130512020-02-12 Christian Biesinger <cbiesinger@google.com>
13052
13053 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13054
d27b8e5f
TT
130552020-02-12 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13058
cd5900f3
HD
130592020-02-12 Hannes Domani <ssbssa@yahoo.de>
13060
13061 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13062 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13063
f056b22b
TT
130642020-02-11 Tom Tromey <tom@tromey.com>
13065
13066 * psymtab.h: Update comment.
13067
f92ff6b5
TT
130682020-02-11 Tom Tromey <tom@tromey.com>
13069
13070 * gdb_obstack.h (struct auto_obstack): Use
13071 DISABLE_COPY_AND_ASSIGN.
13072
3fd6912b
TT
130732020-02-11 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2/frame.h (struct objfile): Don't forward declare.
13076
69ed9b74
CB
130772020-02-11 Christian Biesinger <cbiesinger@google.com>
13078
13079 * cris-tdep.c (cris_supply_gregset): Change signature to match
13080 what struct regset expects.
13081 (cris_regset): New struct.
13082 (fetch_core_registers): Remove.
13083 (cris_iterate_over_regset_sections): New function.
13084 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13085 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13086
bda874f6
CB
130872020-02-11 Christian Biesinger <cbiesinger@google.com>
13088
13089 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13090 registers.
13091
754e1564
CB
130922020-02-11 Christian Biesinger <cbiesinger@google.com>
13093
13094 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13095
8ddd8e0e
SM
130962020-02-11 Simon Marchi <simon.marchi@efficios.com>
13097
13098 * configure: Re-generate.
13099
898e7f60
SM
131002020-02-11 Simon Marchi <simon.marchi@efficios.com>
13101
13102 * configure: Re-generate.
13103
58df732b
SM
131042020-02-11 Simon Marchi <simon.marchi@efficios.com>
13105
13106 * acinclude: Update warning.m4 path.
13107 * warning.m4: Move to gdbsupport.
13108
da5bd37e
TT
131092020-02-11 Tom Tromey <tromey@adacore.com>
13110
13111 * remote.c (remote_console_output): Update.
13112 * printcmd.c (printf_command): Update.
13113 * event-loop.c (gdb_wait_for_event): Update.
13114 * linux-nat.c (sigchld_handler): Update.
13115 * remote-sim.c (gdb_os_write_stdout): Update.
13116 (gdb_os_flush_stdout): Update.
13117 (gdb_os_flush_stderr): Update.
13118 (gdb_os_write_stderr): Update.
13119 * exceptions.c (print_exception): Update.
13120 * remote-fileio.c (remote_fileio_func_read): Update.
13121 (remote_fileio_func_write): Update.
13122 * tui/tui.c (tui_enable): Update.
13123 * tui/tui-interp.c (tui_interp::init): Update.
13124 * utils.c (init_page_info): Update.
13125 (putchar_unfiltered, fputc_unfiltered): Update.
13126 (gdb_flush): Update.
13127 (emit_style_escape): Update.
13128 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13129 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13130 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13131 (stderr_file::write): Update.
13132 (stderr_file::puts): Update.
13133 * ui-file.h (ui_file_isatty, ui_file_write)
13134 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13135 (ui_file_puts): Don't declare.
13136
85f0dd3c
TV
131372020-02-10 Tom de Vries <tdevries@suse.de>
13138
13139 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13140 sentinel to char *.
13141
2e927613
TV
131422020-02-09 Tom de Vries <tdevries@suse.de>
13143
13144 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13145 filename if it matches "<artificial>".
13146
6bafc845
HD
131472020-02-09 Hannes Domani <ssbssa@yahoo.de>
13148
13149 * windows-tdep.c (struct enum_value_name): New struct.
13150 (create_enum): New function.
13151 (windows_get_siginfo_type): Create and use enum types.
13152
7928d571
HD
131532020-02-09 Hannes Domani <ssbssa@yahoo.de>
13154
13155 * NEWS: Mention $_siginfo support for Windows.
13156 * windows-nat.c (handle_exception): Set siginfo_er.
13157 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13158 (windows_xfer_siginfo): New function.
13159 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13160 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13161 (init_windows_gdbarch_data): New function.
13162 (get_windows_gdbarch_data): New function.
13163 (windows_get_siginfo_type): New function.
13164 (windows_init_abi): Register windows_get_siginfo_type.
13165 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13166
6751ebae
TT
131672020-02-08 Tom Tromey <tom@tromey.com>
13168
13169 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13170 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13171 <keep>: Declare method.
13172 <m_keep>: Remove member.
13173 <~cutu_reader>: Remove.
13174 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13175 (cutu_reader::cutu_reader): Update.
13176 (cutu_reader::keep): Rename from ~cutu_reader.
13177 (process_psymtab_comp_unit, build_type_psymtabs_1)
13178 (process_skeletonless_type_unit, load_partial_comp_unit)
13179 (load_full_comp_unit, dwarf2_read_addr_index)
13180 (read_signatured_type): Update.
13181
135f5437
TT
131822020-02-08 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13185 "want_partial_unit" parameter.
13186 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13187 Inline check for DW_TAG_partial_unit.
13188 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13189
9f66ff1c
TT
131902020-02-08 Tom Tromey <tom@tromey.com>
13191
13192 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13193 read.c.
13194 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13195 read.c.
13196
c8a7a66f
TT
131972020-02-08 Tom Tromey <tom@tromey.com>
13198
13199 * dwarf2/read.c (read_address): Move to comp-unit.c.
13200 (dwarf2_rnglists_process, dwarf2_ranges_process)
13201 (read_attribute_value, dwarf_decode_lines_1)
13202 (var_decode_location, decode_locdesc): Update.
13203 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13204 read.c. Remove "cu" parameter.
13205 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13206 method.
13207
8266302d
TT
132082020-02-08 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13211 (read_indirect_line_string): Update.
13212 * dwarf2/comp-unit.c (read_offset): Remove.
13213 (read_comp_unit_head): Update.
13214 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13215 method.
13216 (read_offset): Don't declare.
13217
4057dfde
TT
132182020-02-08 Tom Tromey <tom@tromey.com>
13219
13220 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13221 * dwarf2/read.c (struct comp_unit_head): Move to
13222 dwarf2/comp-unit.h.
13223 (enum class rcuh_kind): Move to comp-unit.h.
13224 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13225 (read_comp_unit_head, error_check_comp_unit_head)
13226 (read_and_check_comp_unit_head): Move to comp-unit.c.
13227 (read_offset, dwarf_unit_type_name): Likewise.
13228 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13229 (cutu_reader::cutu_reader, read_call_site_scope)
13230 (find_partial_die, follow_die_offset): Update.
13231 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13232
24aa364d
TT
132332020-02-08 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/read.c (read_offset_1): Move to leb.c.
13236 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13237 (dwarf_decode_macro_bytes): Update.
13238 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13239 * dwarf2/leb.h (read_offset): Declare.
13240
2c7d5afc
TT
132412020-02-08 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/read.c (dwarf2_section_size): Remove.
13244 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13245 Update.
13246 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13247
4075cb26
TT
132482020-02-08 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2/read.c (read_initial_length): Move to leb.c.
13251 * dwarf2/leb.h (read_initial_length): Declare.
13252 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13253 handle_nonstd parameter.
13254 * dwarf2/frame.c (read_initial_length): Remove.
13255 (decode_frame_entry_1): Update.
13256
09ba997f
TT
132572020-02-08 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2/loc.c (dwarf2_find_location_expression)
13260 (dwarf_evaluate_loc_desc::get_tls_address)
13261 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13262 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13263 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13264 (dwarf2_compile_property_to_c)
13265 (dwarf2_loc_desc_get_symbol_read_needs)
13266 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13267 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13268 (loclist_describe_location, loclist_tracepoint_var_ref)
13269 (loclist_generate_c_location): Update.
13270 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13271 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13272 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13273 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13274 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13275 (dwarf2_per_cu_data::addr_size)
13276 (dwarf2_per_cu_data::ref_addr_size)
13277 (dwarf2_per_cu_data::text_offset)
13278 (dwarf2_per_cu_data::addr_type): Now methods.
13279 (per_cu_header_read_in): Make per_cu "const".
13280 (dwarf2_version): Remove.
13281 (dwarf2_per_cu_data::int_type): Now a method.
13282 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13283 (set_die_type, read_array_type, read_subrange_index_type)
13284 (read_tag_string_type, read_subrange_type): Update.
13285 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13286 offset_size, ref_addr_size, text_offset, addr_type, version,
13287 objfile, int_type, addr_sized_int_type>: Declare methods.
13288
96c738c0
TT
132892020-02-08 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13292 Move earlier.
13293
8fdd972c
TT
132942020-02-08 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2/read.h (dwarf_line_debug): Declare.
13297 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13298 * dwarf2/read.c: Move line_header code to new files.
13299 (dwarf_line_debug): No longer static.
13300 * dwarf2/line-header.c: New file.
13301 * dwarf2/line-header.h: New file.
13302
03075812
TT
133032020-02-08 Tom Tromey <tom@tromey.com>
13304
13305 * dwarf2/read.c (struct line_header) <file_full_name,
13306 file_file_name>: Return unique_xmalloc_ptr.
13307 (line_header::file_file_name): Update.
13308 (line_header::file_full_name): Update.
13309 (dw2_get_file_names_reader): Update.
13310 (macro_start_file): Update.
13311
bb822404
TT
133122020-02-08 Tom Tromey <tom@tromey.com>
13313
13314 * dwarf2/read.c (struct line_header) <file_full_name,
13315 file_file_name>: Declare methods.
13316 (dw2_get_file_names_reader): Update.
13317 (file_file_name): Now a method.
13318 (file_full_name): Likewise.
13319 (macro_start_file): Update.
13320
009b64fc
TT
133212020-02-08 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/read.c (dwarf_always_disassemble)
13324 (show_dwarf_always_disassemble): Move to loc.c.
13325 (_initialize_dwarf2_read): Move "always-disassemble" registration
13326 to loc.c.
13327 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13328 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13329 static.
13330 (show_dwarf_always_disassemble): Move from read.c.
13331 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13332
5895093f
TT
133332020-02-08 Tom Tromey <tom@tromey.com>
13334
13335 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13336 (create_quick_file_names_table): Return htab_up.
13337 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13338 Update.
13339 * dwarf2/read.h (struct dwarf2_per_objfile)
13340 <quick_file_names_table>: Now htab_up.
13341
b3b32279
TT
133422020-02-08 Tom Tromey <tom@tromey.com>
13343
13344 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13345
1d33d811
TT
133462020-02-08 Tom Tromey <tom@tromey.com>
13347
13348 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13349 Rewrite.
13350 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13351 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13352 (abbrev_table::abbrev_table): No longer inline.
13353 (ABBREV_HASH_SIZE): Remove.
13354 (abbrev_table::m_abbrevs): Now an htab_up.
13355
86de1d91
TT
133562020-02-08 Tom Tromey <tom@tromey.com>
13357
13358 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13359 (cutu_reader): Update.
13360 (build_type_psymtabs_1): Update.
13361 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13362 (abbrev_table::alloc_abbrev): Update.
13363 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13364 (abbrev_table::read): New static method, renamed from
13365 abbrev_table_read_table.
13366 (abbrev_table::alloc_abbrev)
13367 (abbrev_table::add_abbrev): Now private.
13368 (abbrev_table::abbrev_table): Now private.
13369 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13370
0335378b
TT
133712020-02-08 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13374 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13375 htab_up.
13376
48b490f2
TT
133772020-02-08 Tom Tromey <tom@tromey.com>
13378
13379 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13380 htab_up.
13381 (lookup_dwo_unit_in_dwp): Update.
13382 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13383 on obstack.
13384
bc68fb19
TT
133852020-02-08 Tom Tromey <tom@tromey.com>
13386
13387 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13388 obstack.
13389
d15acc42
TT
133902020-02-08 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13393 line_header_hash.
13394 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13395 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13396 Change type to htab_up.
13397
eaa5fa8b
TT
133982020-02-08 Tom Tromey <tom@tromey.com>
13399
13400 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13401 htab_up. Don't allocate on obstack.
13402 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13403 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13404 Change type to htab_up.
13405
b0b6a987
TT
134062020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13409 Change type to htab_up.
13410 * dwarf2/read.c (create_signatured_type_table_from_index)
13411 (create_signatured_type_table_from_debug_names)
13412 (create_all_type_units, add_type_unit)
13413 (lookup_dwo_signatured_type, lookup_signatured_type)
13414 (process_skeletonless_type_unit): Update.
13415 (create_debug_type_hash_table, create_debug_types_hash_table):
13416 Change type of types_htab.
13417 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13418 htab_up. Don't allocate on obstack.
13419 (create_cus_hash_table): Change type of cus_htab parameter.
13420 (struct dwo_file) <cus, tus>: Now htab_up.
13421 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13422 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13423 (queue_and_load_all_dwo_tus): Update.
13424 * dwarf2/index-write.c (write_gdbindex): Update.
13425 (write_debug_names): Update.
13426
39856def
TT
134272020-02-08 Tom Tromey <tom@tromey.com>
13428
13429 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13430 dwarf2/read.c. Remove "next" member. Add constructor ntad
13431 destructor.
13432 (struct dwarf2_per_objfile) <queue>: New member.
13433 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13434 dwarf2/read.h.
13435 (dwarf2_queue, dwarf2_queue_tail): Remove.
13436 (class dwarf2_queue_guard): Add parameter to constructor. Use
13437 DISABLE_COPY_AND_ASSIGN.
13438 <m_per_objfile>: New member.
13439 <~dwarf2_queue_guard>: Rewrite.
13440 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13441 Update.
13442 (~dwarf2_queue_item): New.
13443
3e225074
TT
134442020-02-08 Tom Tromey <tom@tromey.com>
13445
13446 * dwarf2/read.c (struct die_info) <has_children>: New member.
13447 (dw2_get_file_names_reader): Remove has_children.
13448 (dw2_get_file_names): Update.
13449 (read_cutu_die_from_dwo): Remove has_children.
13450 (cutu_reader::init_tu_and_read_dwo_dies)
13451 (cutu_reader::cutu_reader): Update.
13452 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13453 Remove has_children.
13454 (build_type_psymtabs_1, process_skeletonless_type_unit)
13455 (load_partial_comp_unit, load_full_comp_unit): Update.
13456 (create_dwo_cu_reader): Remove has_children.
13457 (create_cus_hash_table, read_die_and_children): Update.
13458 (read_full_die_1,read_full_die): Remove has_children.
13459 (read_signatured_type): Update.
13460 (class cutu_reader) <has_children>: Remove.
13461
82ca8957
TT
134622020-02-08 Tom Tromey <tom@tromey.com>
13463
13464 * dwarf2/expr.c: Rename from dwarf2expr.c.
13465 * dwarf2/expr.h: Rename from dwarf2expr.h.
13466 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13467 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13468 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13469 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13470 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13471 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13472 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13473 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13474 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13475 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13476 * dwarf2/loc.c: Rename from dwarf2loc.c.
13477 * dwarf2/loc.h: Rename from dwarf2loc.h.
13478 * dwarf2/read.c: Rename from dwarf2read.c.
13479 * dwarf2/read.h: Rename from dwarf2read.h.
13480 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13481 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13482 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13483 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13484 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13485 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13486 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13487 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13488 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13489 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13490 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13491 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13492 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13493 Update.
13494 * Makefile.in (COMMON_SFILES): Update.
13495 (HFILES_NO_SRCDIR): Update.
13496
9e35d499
TT
134972020-02-08 Tom Tromey <tom@tromey.com>
13498
13499 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13500 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13501
1eba2311
TT
135022020-02-08 Tom Tromey <tom@tromey.com>
13503
13504 * dwarf2read.h (struct die_info): Don't declare.
13505
e41c2da2
TT
135062020-02-08 Tom Tromey <tom@tromey.com>
13507
13508 * dwarf2read.h (die_info_ptr): Remove typedef.
13509
4fc6c0d5
TT
135102020-02-08 Tom Tromey <tom@tromey.com>
13511
13512 * dwarf2read.c (read_call_site_scope)
13513 (handle_data_member_location, dwarf2_add_member_fn)
13514 (mark_common_block_symbol_computed, read_common_block)
13515 (attr_to_dynamic_prop, partial_die_info::read)
13516 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13517 (dwarf2_symbol_mark_computed, set_die_type): Update.
13518 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13519 method.
13520 (attr_form_is_block): Don't declare.
13521 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13522
cd6c91b4
TT
135232020-02-08 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2read.c (dwarf2_find_base_address, )
13526 (read_call_site_scope, rust_containing_type)
13527 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13528 (handle_data_member_location, dwarf2_add_member_fn)
13529 (get_alignment, read_structure_type, process_structure_scope)
13530 (mark_common_block_symbol_computed, read_common_block)
13531 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13532 (partial_die_info::read, read_attribute_value, new_symbol)
13533 (lookup_die_type, dwarf2_get_ref_die_offset)
13534 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13535 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13536 (dwarf2_symbol_mark_computed): Update.
13537 * dwarf2/attribute.h (struct attribute) <value_as_address,
13538 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13539 methods.
13540 (value_as_address, attr_form_is_section_offset)
13541 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13542 * dwarf2/attribute.c (attribute::value_as_address)
13543 (attribute::form_is_section_offset, attribute::form_is_constant)
13544 (attribute::form_is_ref): Now methods.
13545
162dce55
TT
135462020-02-08 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2read.c (struct attribute, DW_STRING)
13549 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13550 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13551 (attr_form_is_block, attr_form_is_section_offset)
13552 (attr_form_is_constant, attr_form_is_ref): Move.
13553 * dwarf2/attribute.h: New file.
13554 * dwarf2/attribute.c: New file, from dwarf2read.c.
13555 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13556
3054dd54
TT
135572020-02-08 Tom Tromey <tom@tromey.com>
13558
13559 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13560 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13561 Move.
13562 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13563 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13564 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13565 abbrev.c.
13566 * dwarf2/abbrev.h: New file.
13567 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13568 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13569
96b79293
TT
135702020-02-08 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13573 (dwarf2_section_size, dwarf2_get_section_info)
13574 (create_signatured_type_table_from_debug_names)
13575 (create_addrmap_from_aranges, read_debug_names_from_section)
13576 (get_gdb_index_contents_from_section, read_comp_unit_head)
13577 (error_check_comp_unit_head, read_abbrev_offset)
13578 (create_debug_type_hash_table, init_cu_die_reader)
13579 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13580 (read_comp_units_from_section, create_cus_hash_table)
13581 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13582 (create_dwp_v2_section, dwarf2_rnglists_process)
13583 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13584 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13585 (read_indirect_string_from_dwz, read_addr_index_1)
13586 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13587 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13588 (fill_in_loclist_baton): Update.
13589 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13590 get_containing_section, get_bfd_owner, get_bfd_section,
13591 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13592 (dwarf2_read_section, get_section_name, get_section_file_name)
13593 (get_containing_section, get_section_bfd_owner)
13594 (get_section_bfd_section, get_section_name, get_section_file_name)
13595 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13596 declare.
13597 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13598 (dwarf2_section_info::get_bfd_owner)
13599 (dwarf2_section_info::get_bfd_section)
13600 (dwarf2_section_info::get_name)
13601 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13602 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13603 (dwarf2_section_info::read): Now methods.
13604 * dwarf-index-write.c (class debug_names): Update.
13605
2c86cff9
TT
136062020-02-08 Tom Tromey <tom@tromey.com>
13607
13608 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13609 Move to dwarf2/section.h.
13610 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13611 (get_section_bfd_section, get_section_name)
13612 (get_section_file_name, get_section_id, get_section_flags)
13613 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13614 dwarf2/section.c.
13615 * dwarf2/section.h: New file.
13616 * dwarf2/section.c: New file, from dwarf2read.c.
13617 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13618
f4382c45
TT
136192020-02-08 Tom Tromey <tom@tromey.com>
13620
13621 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13622 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13623 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13624 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13625 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13626 * dwarf2/leb.h: New file, from dwarf2read.c.
13627 * dwarf2/leb.c: New file, from dwarf2read.c.
13628 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13629 Remove.
13630 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13631 (COMMON_SFILES): Add dwarf2/leb.c.
13632
01840b7a
JB
136332020-02-08 Joel Brobecker <brobecker@adacore.com>
13634
13635 GDB 9.1 released.
13636
dfcb27e4
IB
136372020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13638
13639 PR gdb/25190:
aac66a4c
SM
13640 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13641 * gdb/remote.c (remote_console_output): Update.
13642 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13643 (ui_file_puts): ...this.
13644 * gdb/ui-file.h (ui_file_puts): Add declaration.
13645 * gdb/utils.c (emit_style_escape): Update.
13646 (flush_wrap_buffer): Update.
13647 (fputs_maybe_filtered): Update.
13648 (fputs_unfiltered): Add function.
dfcb27e4 13649
faa17681
IB
136502020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13651
aac66a4c
SM
13652 * gdb/event-loop.c (gdb_wait_for_event): Update.
13653 * gdb/printcmd.c (printf_command): Update.
13654 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13655 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13656 (gdb_os_flush_stderr): Update.
13657 * gdb/remote.c (remote_console_output): Update.
13658 * gdb/ui-file.c (gdb_flush): Rename to...
13659 (ui_file_flush): ...this.
13660 (stderr_file::write): Update.
13661 (stderr_file::puts): Update.
13662 * gdb/ui-file.h (gdb_flush): Rename to...
13663 (ui_file_flush): ...this.
13664 * gdb/utils.c (gdb_flush): Add function.
13665 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13666
5abbbe1d
TT
136672020-02-07 Tom Tromey <tromey@adacore.com>
13668
13669 PR breakpoints/24915:
13670 * source.c (find_and_open_source): Do not check basenames_may_differ.
13671
919adfe8
TT
136722020-02-07 Tom Tromey <tom@tromey.com>
13673
13674 * README: Update gdbserver documentation.
13675 * gdbserver: Move to top level.
13676 * configure.tgt (build_gdbserver): Remove.
13677 * configure.ac: Remove --enable-gdbserver.
13678 * configure: Rebuild.
13679 * Makefile.in (distclean): Don't mention gdbserver.
13680
1d5d29e7
SV
136812020-02-06 Shahab Vahedi <shahab@synopsys.com>
13682
13683 * source-cache.c (source_cache::ensure): Surround
13684 get_plain_source_lines with a try/catch.
13685 (source_cache::get_line_charpos): Get rid of try/catch
13686 and only check for the return value of "ensure".
13687 * tui/tui-source.c (tui_source_window::set_contents):
13688 Simplify "nlines" calculation.
13689
6eb1129c
SV
136902020-02-06 Shahab Vahedi <shahab@synopsys.com>
13691
13692 * MAINTAINERS (Write After Approval): Add myself.
13693
c6a42d11
CB
136942020-02-05 Christian Biesinger <cbiesinger@google.com>
13695
13696 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13697 function call.
13698
c8ecdda6
CB
136992020-02-05 Christian Biesinger <cbiesinger@google.com>
13700
13701 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13702
f6480e70
MR
137032020-02-05 Maciej W. Rozycki <macro@wdc.com>
13704
13705 * nat/riscv-linux-tdesc.h: New file.
13706 * nat/riscv-linux-tdesc.c: New file, taking code from...
13707 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13708 ... here.
13709 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13710 NATDEPFILES.
13711
dcc9fbc6
AB
137122020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13715 we don't set the fake simulator ptid to the null_ptid.
13716
719546c4
SM
137172020-02-03 Simon Marchi <simon.marchi@efficios.com>
13718
13719 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13720 * gdbthread.h (class thread_info) <resumed>: Likewise.
13721 * infrun.c (resume_1): Likewise.
13722 (proceed): Likewise.
13723 (infrun_thread_stop_requested): Likewise.
13724 (stop_all_threads): Likewise.
13725 (handle_inferior_event): Likewise.
13726 (restart_threads): Likewise.
13727 (finish_step_over): Likewise.
13728 (keep_going_stepped_thread): Likewise.
13729 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13730 (linux_handle_extended_wait): Likewise.
13731 * record-btrace.c (get_thread_current_frame_id): Likewise.
13732 * record-full.c (record_full_wait_1): Likewise.
13733 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13734 * target.c (target_resume): Likewise.
13735 * thread.c (set_running_thread): Likewise.
13736
e409c542
AKS
137372020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13738
13739 * f-valprint.c (f77_print_array_1): Changed datatype of index
13740 variable to LONGEST from int to enable it to contain bound
13741 values correctly.
13742
ee98c0da
MR
137432020-02-03 Maciej W. Rozycki <macro@wdc.com>
13744
13745 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13746 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13747 offsets according to FLEN determined.
13748 (riscv_linux_nat_target::read_description): Determine FLEN
13749 dynamically.
13750 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13751 according to FLEN determined.
13752 (riscv_linux_nat_target::store_registers): Likewise.
13753
aa66aac4
SV
137542020-02-01 Shahab Vahedi <shahab@synopsys.com>
13755
13756 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13757 when reg->group is empty and reggroup is not.
13758
fd9faca8
TT
137592020-01-31 Tom Tromey <tromey@adacore.com>
13760
13761 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13762 Call beneath target's mourn_inferior after unpushing.
13763
42330a68
AB
137642020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 PR tui/9765
13767 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13768 have enough lines to fill the screen, still return the lowest
13769 address we found.
13770
7a27a45b
AB
137712020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13772
13773 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13774 '-', '<', and '>' commands.
13775
c47f70e2
PA
137762020-01-29 Pedro Alves <palves@redhat.com>
13777 Sergio Durigan Junior <sergiodj@redhat.com>
13778
13779 * infcmd.c (construct_inferior_arguments): Assert that
13780 'argc' is greater than 0.
13781
5133a315
LM
137822020-01-29 Luis Machado <luis.machado@linaro.org>
13783
13784 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13785 (BRK_INSN_MASK): Define to 0xd4200000.
13786 (aarch64_program_breakpoint_here_p): New function.
13787 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13788 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13789 breakpoint.c.
13790 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13791 breakpoint.h
13792 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13793 call gdbarch_program_breakpoint_here_p.
13794 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13795 default_program_breakpoint_here_p, changed return type to bool and
13796 simplified.
13797 * breakpoint.h (program_breakpoint_here): Moved prototype to
13798 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13799 return type to bool.
13800 * gdbarch.c: Regenerate.
13801 * gdbarch.h: Regenerate.
13802 * gdbarch.sh (program_breakpoint_here_p): New method.
13803 * infrun.c (handle_signal_stop): Call
13804 gdbarch_program_breakpoint_here_p.
13805
168f8c6b
TT
138062020-01-26 Tom Tromey <tom@tromey.com>
13807
13808 * ctfread.c (struct ctf_fp_info): Reindent.
13809 (_initialize_ctfread): Remove.
13810
128a391f
TT
138112020-01-26 Tom Tromey <tom@tromey.com>
13812
13813 * psymtab.c (partial_map_expand_apply)
13814 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13815 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13816 (psym_print_stats, psym_expand_symtabs_for_function)
13817 (psym_map_symbol_filenames, psym_map_matching_symbols)
13818 (psym_expand_symtabs_matching)
13819 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13820 (maintenance_check_psymtabs): Use new methods.
13821 * psympriv.h (struct partial_symtab) <readin_p,
13822 get_compunit_symtab>: New methods.
13823 <readin, compunit_symtab>: Remove members.
13824 (struct standard_psymtab): New.
13825 (struct legacy_psymtab): Derive from standard_psymtab.
13826 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13827 standard_psymtab.
13828 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13829
0494dbec
TT
138302020-01-26 Tom Tromey <tom@tromey.com>
13831
13832 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13833 read_dependencies. Add assert.
13834 * psymtab.c (partial_symtab::read_dependencies): New method.
13835 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13836 method.
13837 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13838 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13839 read_dependencies.
13840 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13841 Add assert.
13842
8566b89b
TT
138432020-01-26 Tom Tromey <tom@tromey.com>
13844
13845 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13846 Call expand_psymtab.
13847 (xcoff_read_symtab): Call expand_psymtab.
13848 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13849 legacy_expand_psymtab.
13850 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13851 method.
13852 (struct legacy_psymtab) <expand_psymtab>: Implement.
13853 <legacy_expand_psymtab>: New member.
13854 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13855 (parse_partial_symbols): Set legacy_expand_psymtab.
13856 (psymtab_to_symtab_1): Change argument order. Call
13857 expand_psymtab.
13858 (new_psymtab): Set legacy_expand_psymtab.
13859 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13860 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13861 expand_psymtab.
13862 (dwarf2_psymtab::expand_psymtab): Rename from
13863 psymtab_to_symtab_1. Call expand_psymtab.
13864 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13865 (dbx_end_psymtab): Likewise.
13866 (dbx_psymtab_to_symtab_1): Change argument order. Call
13867 expand_psymtab.
13868 (dbx_read_symtab): Call expand_psymtab.
13869 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13870 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13871 (ctf_psymtab::read_symtab): Call expand_psymtab.
13872
077cbab2
TT
138732020-01-26 Tom Tromey <tom@tromey.com>
13874
13875 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13876 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13877 messages.
13878 * mdebugread.c (mdebug_read_symtab): Remove prints.
13879 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13880 assert.
13881 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13882
891813be
TT
138832020-01-26 Tom Tromey <tom@tromey.com>
13884
13885 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13886 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13887 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13888 legacy_symtab.
13889 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13890 * psymtab.c (psymtab_to_symtab): Call method.
13891 (dump_psymtab): Update.
13892 * psympriv.h (struct partial_symtab): Add virtual destructor.
13893 <read_symtab>: New method.
13894 (struct legacy_symtab): New.
13895 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13896 (struct pst_map) <pst>: Now a legacy_psymtab.
13897 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13898 (new_psymtab): Use legacy_psymtab.
13899 * dwarf2read.h (struct dwarf2_psymtab): New.
13900 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13901 * dwarf2read.c (dwarf2_create_include_psymtab)
13902 (dwarf2_build_include_psymtabs, create_type_unit_group)
13903 (create_partial_symtab, process_psymtab_comp_unit_reader)
13904 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13905 (set_partial_user): Use dwarf2_psymtab.
13906 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13907 (psymtab_to_symtab_1, process_full_comp_unit)
13908 (process_full_type_unit, dwarf2_ranges_read)
13909 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13910 (dwarf_decode_lines): Use dwarf2_psymtab.
13911 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13912 (add_address_entry_worker, write_one_signatured_type)
13913 (recursively_count_psymbols, recursively_write_psymbols)
13914 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13915 (write_debug_names): Likewise.
13916 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13917 <pst>: Now a legacy_psymtab.
13918 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13919 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13920 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13921 * ctfread.c (struct ctf_psymtab): New.
13922 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13923 ctf_psymtab.
13924 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13925 (create_partial_symtab): Return a ctf_psymtab.
13926 (scan_partial_symbols): Update.
13927
c3693a1d
TT
139282020-01-26 Tom Tromey <tom@tromey.com>
13929
13930 * xcoffread.c (xcoff_start_psymtab): Use new.
13931 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13932 renamed from start_psymtab_common.
13933 * psympriv.h (struct partial_symtab): Add new constructor.
13934 (start_psymtab_common): Don't declare.
13935 * mdebugread.c (parse_partial_symbols): Use new.
13936 * dwarf2read.c (create_partial_symtab): Use new.
13937 * dbxread.c (start_psymtab): Use new.
13938 * ctfread.c (create_partial_symtab): Use new.
13939
32caafd0
TT
139402020-01-26 Tom Tromey <tom@tromey.com>
13941
13942 * xcoffread.c (xcoff_end_psymtab): Use new.
13943 * psymtab.c (start_psymtab_common): Use new.
13944 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13945 Update.
13946 * psympriv.h (struct partial_symtab): Add parameters to
13947 constructor. Don't inline.
13948 (allocate_psymtab): Don't declare.
13949 * mdebugread.c (new_psymtab): Use new.
13950 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13951 * dbxread.c (dbx_end_psymtab): Use new.
13952
abaa2f23
TT
139532020-01-26 Tom Tromey <tom@tromey.com>
13954
13955 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13956 allocate_psymtab. Update documentation.
13957 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13958 allocate_psymtab. Do not use new.
13959 (allocate_psymtab): Use new. Update.
13960
6d94535f
TT
139612020-01-26 Tom Tromey <tom@tromey.com>
13962
13963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13964 * psymtab.c (psym_print_stats): Update.
13965 * psympriv.h (struct partial_symtab) <readin,
13966 psymtabs_addrmap_supported, anonymous>: Now bool.
13967 * mdebugread.c (psymtab_to_symtab_1): Update.
13968 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13969 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13970 (process_full_comp_unit, process_full_type_unit): Update.
13971 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13972 * ctfread.c (psymtab_to_symtab): Update.
13973
6f17252b
TT
139742020-01-26 Tom Tromey <tom@tromey.com>
13975
13976 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13977 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13978 * psymtab.c (psymtab_storage): Delete psymtabs.
13979 (psymtab_storage::allocate_psymtab): Use new.
13980 (psymtab_storage::discard_psymtab): Use delete.
13981 * psympriv.h (struct partial_symtab): Add constructor and
13982 initializers.
13983
f6f1cebc
TT
139842020-01-26 Tom Tromey <tom@tromey.com>
13985
13986 * machoread.c: Do not include psympriv.h.
13987
e47e48f6
PW
139882020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13989
13990 * NEWS: Mention the new option and the set/show commands.
13991
a2fedca9
PW
139922020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13993
13994 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13995 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13996 (validate_exec_file): New variables, enums, functions.
13997 (exec_file_locate_attach, print_section_info): Style the filenames.
13998 (_initialize_exec): Install show_exec_file_mismatch_command and
13999 set_exec_file_mismatch_command.
14000 * gdbcore.h (validate_exec_file): Declare.
14001 * infcmd.c (attach_command): Call validate_exec_file.
14002 * remote.c ( remote_target::remote_add_inferior): Likewise.
14003
7ffa82e1
AB
140042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * frame.c (find_frame_sal): Move call to get_next_frame into more
14007 inner scope.
14008 * inline-frame.c (inilne_state) <inline_state>: Update argument
14009 types.
14010 (inilne_state) <skipped_symbol>: Rename to...
14011 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14012 (skip_inline_frames): Build vector of skipped symbols and use this
14013 to reate the inline_state.
14014 (inline_skipped_symbol): Add a comment and some assertions, fetch
14015 skipped symbol from the list.
14016
3d92a3e3
AB
140172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14018
14019 * buildsym.c (lte_is_less_than): Delete.
14020 (buildsym_compunit::end_symtab_with_blockvector): Create local
14021 lambda function to sort line table entries, and use
14022 std::stable_sort instead of std::sort.
14023 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14024 markers when looking for a previous line.
14025
94a72be7
AB
140262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14027
14028 * dwarf2read.c (lnp_state_machine::record_line): Include
14029 end_sequence parameter in debug print out. Record the line if we
14030 are at an end_sequence marker even if it's not the start of a
14031 statement.
14032 * symmisc.c (maintenance_print_one_line_table): Print end of
14033 sequence markers with 'END' not '0'.
14034
53af73bf
PA
140352020-01-24 Pedro Alves <palves@redhat.com>
14036
14037 PR gdb/25410
14038 * thread.c (scoped_restore_current_thread::restore): Use
14039 switch_to_inferior_no_thread.
14040 * exec.c: Include "progspace-and-thread.h".
14041 (add_target_sections, remove_target_sections):
14042 scoped_restore_current_pspace_and_thread instead of
14043 scoped_restore_current_thread.
14044 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14045 and aspace to the inferior before calling clone_program_space.
14046 Remove stale comment.
14047
3050c6f4
CB
140482020-01-24 Christian Biesinger <cbiesinger@google.com>
14049
14050 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14051 (arm_netbsd_nat_target::fetch_registers): ...this.
14052 (arm_nbsd_nat_target::store_registers): Rename to...
14053 (arm_netbsd_nat_target::store_registers): ...this.
14054
73685c7e
CB
140552020-01-24 Christian Biesinger <cbiesinger@google.com>
14056
14057 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14058 register_t.
14059
89203d40
CB
140602020-01-24 Christian Biesinger <cbiesinger@google.com>
14061
14062 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14063 Update comment.
14064 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14065 Likewise.
14066 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14067 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14068 the correct replacement (iterate_over_regset_sections).
14069 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14070 Update comment.
14071
1ba1ac88
AB
140722020-01-24 Graham Markall <graham.markall@embecosm.com>
14073
14074 PR gdb/23718
14075 * gdb/python/python.c (execute_gdb_command): Call
14076 async_enable_stdin in catch block.
14077
f3364a6d
AB
140782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14079
14080 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14081 SWITCH_THRU_ALL_UIS.
14082
733d0a67
AB
140832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14084
14085 PR tui/9765
14086 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14087 comment, add extra parameter, and update to store previous symbol
14088 when appropriate.
14089 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14090 add extra parameter.
14091 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14092 remove unneeded parameter, add try/catch around gdb_print_insn,
14093 rewrite to add items to asm_lines vector.
14094 (tui_find_backward_disassembly_start_address): New function.
14095 (tui_find_disassembly_address): Updated throughout.
14096 (tui_disasm_window::set_contents): Update for changes to
14097 tui_disassemble.
14098 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14099 number of lines to scroll.
14100
b3b3bada
SM
141012020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14102
14103 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14104 (SECT_OFF_DATA): Likewise.
14105 (SECT_OFF_RODATA): Likewise.
14106 (SECT_OFF_TEXT): Likewise.
14107 (SECT_OFF_BSS): Likewise.
14108 (struct objfile) <text_section_offset, data_section_offset>: New
14109 methods.
14110 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14111 objfile::text_section_offset.
14112 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14113 * coffread.c (coff_symtab_read): Likewise.
14114 (enter_linenos): Likewise.
14115 (process_coff_symbol): Likewise.
14116 * ctfread.c (get_objfile_text_range): Likewise.
14117 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14118 Use objfile::data_section_offset.
14119 * dwarf2-frame.c (execute_cfa_program): Use
14120 objfile::text_section_offset.
14121 (dwarf2_frame_find_fde): Likewise.
14122 * dwarf2read.c (create_addrmap_from_index): Likewise.
14123 (create_addrmap_from_aranges): Likewise.
14124 (dw2_find_pc_sect_compunit_symtab): Likewise.
14125 (process_psymtab_comp_unit_reader): Likewise.
14126 (add_partial_symbol): Likewise.
14127 (add_partial_subprogram): Likewise.
14128 (process_full_comp_unit): Likewise.
14129 (read_file_scope): Likewise.
14130 (read_func_scope): Likewise.
14131 (read_lexical_block_scope): Likewise.
14132 (read_call_site_scope): Likewise.
14133 (dwarf2_rnglists_process): Likewise.
14134 (dwarf2_ranges_process): Likewise.
14135 (dwarf2_ranges_read): Likewise.
14136 (dwarf_decode_lines_1): Likewise.
14137 (new_symbol): Likewise.
14138 (dwarf2_fetch_die_loc_sect_off): Likewise.
14139 (dwarf2_per_cu_text_offset): Likewise.
14140 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14141 * hppa-tdep.c (read_unwind_info): Likewise.
14142 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14143 * psympriv.h (struct partial_symtab): Likewise.
14144 * psymtab.c (find_pc_sect_psymtab): Likewise.
14145 * solib-svr4.c (enable_break): Likewise.
14146 * stap-probe.c (relocate_address): Use
14147 objfile::data_section_offset.
14148 * xcoffread.c (enter_line_range): Use
14149 objfile::text_section_offset.
14150 (read_xcoff_symtab): Likewise.
14151
ab53f382
SM
141522020-01-23 Simon Marchi <simon.marchi@efficios.com>
14153
14154 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14155 declaration to narrower scopes.
14156
e7eee665
SM
141572020-01-23 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * darwin-nat.h (struct darwin_exception_msg, enum
14160 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14161 Move up.
14162 (class darwin_nat_target) <wait_1, check_new_threads,
14163 decode_exception_message, decode_message, stop_inferior,
14164 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14165 * darwin-nat.c (darwin_check_new_threads): Rename to...
14166 (darwin_nat_target::check_new_threads): ... this.
14167 (darwin_suspend_inferior_it): Remove.
14168 (darwin_decode_exception_message): Rename to...
14169 (darwin_nat_target::decode_exception_message): ... this.
14170 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14171 (darwin_decode_message): Rename to...
14172 (darwin_nat_target::decode_message): ... this.
14173 (cancel_breakpoint): Rename to...
14174 (darwin_nat_target::cancel_breakpoint): ... this.
14175 (darwin_wait): Rename to...
14176 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14177 instead of iterate_over_inferiors.
14178 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14179 (darwin_stop_inferior): Rename to...
14180 (darwin_nat_target::stop_inferior): ... this.
14181 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14182 (darwin_init_thread_list): Rename to...
14183 (darwin_nat_target::init_thread_list): ... this.
14184 (darwin_ptrace_him): Rename to...
14185 (darwin_nat_target::ptrace_him): ... this.
14186 (darwin_nat_target::create_inferior): Pass lambda function to
14187 fork_inferior.
14188 (darwin_nat_target::detach): Call stop_inferior instead of
14189 darwin_stop_inferior.
14190 * fork-inferior.h (fork_inferior): Change init_trace_fun
14191 parameter to gdb::function_view.
14192 * fork-inferior.c (fork_inferior): Likewise.
14193
c162ed3e
HD
141942020-01-23 Hannes Domani <ssbssa@yahoo.de>
14195
14196 * i386-cygwin-tdep.c (core_process_module_section): Update.
14197 * windows-nat.c (struct lm_info_windows): Add text_offset.
14198 (windows_xfer_shared_libraries): Update.
14199 * windows-tdep.c (windows_xfer_shared_library):
14200 Add text_offset_cached argument.
14201 * windows-tdep.h (windows_xfer_shared_library): Update.
14202
a1237872
SM
142032020-01-21 Simon Marchi <simon.marchi@efficios.com>
14204
14205 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14206
b3ee6dd9
SM
142072020-01-21 Simon Marchi <simon.marchi@efficios.com>
14208
14209 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14210 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14211 replace with range-based for.
14212 (gdbsim_interrupt_inferior): Remove.
14213 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14214 with a range-based for. Inline code from
14215 gdbsim_interrupt_inferior.
14216
f9fac3c8
SM
142172020-01-21 Simon Marchi <simon.marchi@efficios.com>
14218
14219 * infrun.c (proceed): Fix indentation.
14220
f6474de9
TT
142212020-01-21 Tom Tromey <tromey@adacore.com>
14222
14223 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14224 * python/python.c (python_extension_ops): Update.
14225 (gdbpy_colorize): New function.
14226 * python/lib/gdb/__init__.py (colorize): New function.
14227 * extension.h (ext_lang_colorize): Declare.
14228 * extension.c (ext_lang_colorize): New function.
14229 * extension-priv.h (struct extension_language_ops) <colorize>: New
14230 member.
14231 * cli/cli-style.c (_initialize_cli_style): Update help text.
14232
f0c702d4
LM
142332020-01-21 Luis Machado <luis.machado@linaro.org>
14234
14235 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14236 <cond>: Change type to bool.
14237 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14238 (aarch64_displaced_step_cb): Likewise.
14239 (aarch64_displaced_step_tb): Likewise.
14240
1ab139e5
LM
142412020-01-21 Luis Machado <luis.machado@linaro.org>
14242
14243 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14244 output.
14245
0c271889
LM
142462020-01-21 Luis Machado <luis.machado@linaro.org>
14247
14248 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14249 <pc_adjust>: Adjust the documentation.
14250 (aarch64_displaced_step_fixup): Check if PC really moved before
14251 adjusting it.
14252
4d89c1c7
TT
142532020-01-19 Tom Tromey <tom@tromey.com>
14254
14255 * disasm.c (~gdb_disassembler): New destructor.
14256 (gdb_buffered_insn_length): Call disassemble_free_target.
14257 * disasm.h (class gdb_disassembler): Declare destructor. Use
14258 DISABLE_COPY_AND_ASSIGN.
14259
c0ab21c2
TT
142602020-01-19 Tom Tromey <tom@tromey.com>
14261
14262 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14263 (die_reader_func_ftype): Remove.
14264 (cutu_reader): New class.
14265 (dw2_get_file_names_reader): Remove "data" parameter.
14266 (dw2_get_file_names): Use cutu_reader.
14267 (create_debug_type_hash_table): Update.
14268 (read_cutu_die_from_dwo): Update comment.
14269 (lookup_dwo_unit): Add dwo_name parameter.
14270 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14271 die_reader_func_ftype and data parameters.
14272 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14273 Remove die_reader_func_ftype and data parameters.
14274 (~cutu_reader): New; from init_cutu_and_read_dies.
14275 (cutu_reader::cutu_reader): Rename from
14276 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14277 and data parameters.
14278 (init_cutu_and_read_dies_simple): Remove.
14279 (struct process_psymtab_comp_unit_data): Remove.
14280 (process_psymtab_comp_unit_reader): Remove data parameter; add
14281 want_partial_unit and pretend_language parameters.
14282 (process_psymtab_comp_unit): Use cutu_reader.
14283 (build_type_psymtabs_reader): Remove data parameter.
14284 (build_type_psymtabs_1): Use cutu_reader.
14285 (process_skeletonless_type_unit): Likewise.
14286 (load_partial_comp_unit_reader): Remove.
14287 (load_partial_comp_unit): Use cutu_reader.
14288 (load_full_comp_unit_reader): Remove.
14289 (load_full_comp_unit): Use cutu_reader.
14290 (struct create_dwo_cu_data): Remove.
14291 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14292 dwo_unit parameters.
14293 (create_cus_hash_table): Use cutu_reader.
14294 (struct dwarf2_read_addr_index_data): Remove.
14295 (dwarf2_read_addr_index_reader): Remove.
14296 (dwarf2_read_addr_index): Use cutu_reader.
14297 (read_signatured_type_reader): Remove.
14298 (read_signatured_type): Use cutu_reader.
14299
45bbae5c
TT
143002020-01-19 Tom Tromey <tom@tromey.com>
14301
14302 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14303 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14304 (tui_wrefresh): Declare.
14305 * tui/tui-wingeneral.c (suppress_output): New global.
14306 (tui_suppress_output, ~tui_suppress_output): New constructor and
14307 destructor.
14308 (tui_wrefresh): New function.
14309 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14310 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14311 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14312 method.
14313 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14314 tui_wrefresh.
14315 (tui_data_window::no_refresh): New method.
14316 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14317 (tui_reg_command): Use tui_suppress_output
14318 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14319 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14320 method.
14321 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14322
4f13c1c0
TT
143232020-01-19 Tom Tromey <tom@tromey.com>
14324
14325 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14326 Handle case where symtab is null.
14327
fa47e446
SM
143282020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14329
14330 * linux-fork.c (one_fork_p): Simplify.
14331
26f42329
SM
143322020-01-17 Simon Marchi <simon.marchi@efficios.com>
14333
14334 * top.c (struct qt_args): Remove.
14335 (kill_or_detach): Change return type to void, replace `void *`
14336 parameter with a proper one.
14337 (print_inferior_quit_action): Likewise.
14338 (quit_confirm): Use range-based for loop to iterate over inferiors.
14339 (quit_force): Likewise.
14340
a9ac81b1
SM
143412020-01-17 Simon Marchi <simon.marchi@efficios.com>
14342
14343 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14344 `void *` parameter with proper parameters.
14345 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14346 (print_one_inferior): Change return type to void, replace `void *`
14347 parameter with proper parameters.
14348 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14349 inferiors.
14350 (get_other_inferior): Remove.
14351 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14352 inferiors.
14353
788eca49
SM
143542020-01-17 Simon Marchi <simon.marchi@efficios.com>
14355
14356 * mi/mi-interp.c (report_initial_inferior): Remove.
14357 (mi_interp::init): Use range-based for to iterate over inferiors.
14358
d9bc85b6
SM
143592020-01-17 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * python/py-inferior.c (build_inferior_list): Remove.
14362 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14363
40c94099
CB
143642020-01-16 Christian Biesinger <cbiesinger@google.com>
14365
14366 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14367 (btrace_stitch_trace): Likewise.
14368 * charset.c (intermediate_encoding): Likewise (vaild).
14369 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14370 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14371 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14372
e0cdfe3c
HD
143732020-01-16 Hannes Domani <ssbssa@yahoo.de>
14374
14375 * windows-tdep.c (windows_get_tlb_type):
14376 Add rtl_user_process_parameters type.
14377
790f1718 143782020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14379 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14380
14381 PR build/24805
14382 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14383 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14384 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14385 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14386 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14387 (ps_plog): Redeclare exported functions with default visibility.
14388
3112ed97
NA
143892020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14390
14391 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14392 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14393
8dc3273e
SM
143942020-01-15 Simon Marchi <simon.marchi@efficios.com>
14395
14396 * infcmd.c (post_create_inferior): Use get_thread_regcache
14397 instead of get_current_regcache.
14398
ff47f4f0
TT
143992020-01-14 Tom Tromey <tom@tromey.com>
14400
14401 PR symtab/12535:
14402 * python/python.c (gdbpy_decode_line): Treat empty string the same
14403 as no argument.
14404
975f45b7
TT
144052020-01-14 Tom Tromey <tom@tromey.com>
14406
14407 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14408
25e57356
TT
144092020-01-14 Tom Tromey <tom@tromey.com>
14410
14411 * nat/linux-btrace.c: Don't include <config.h>.
14412 * nat/linux-ptrace.c: Don't include <config.h>.
14413 * nat/x86-linux-dregs.c: Don't include <config.h>.
14414
05ea2a05
TT
144152020-01-14 Tom Tromey <tom@tromey.com>
14416
14417 * configure: Rebuild.
14418 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14419
01027315
TT
144202020-01-14 Tom Tromey <tom@tromey.com>
14421
14422 * nat/x86-linux-dregs.c: Include configh.h.
14423 * nat/linux-ptrace.c: Include configh.h.
14424 * nat/linux-btrace.c: Include configh.h.
14425 * defs.h: Include config.h, bfd.h.
14426 * configure.ac: Don't source common.host.
14427 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14428 * configure: Rebuild.
14429 * acinclude.m4: Update path.
14430 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14431 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14432 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14433 (CLIBS): Add LIBSUPPORT.
14434 (CDEPS): Likewise.
14435 (COMMON_SFILES): Remove gdbsupport files.
14436 (HFILES_NO_SRCDIR): Likewise.
14437 (stamp-version): Update path to create-version.sh.
14438 (ALLDEPFILES): Remove gdbsupport files.
14439
b2ceabe8
TT
144402020-01-14 Tom Tromey <tom@tromey.com>
14441
14442 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14443 USE_WIN32API when needed.
14444 * configure.ac (USE_WIN32API): Don't define.
14445 (WIN32LIBS): Use WIN32APILIBS.
14446 * configure: Rebuild.
14447
25c51f71
TT
144482020-01-14 Tom Tromey <tom@tromey.com>
14449
14450 * configure: Rebuild.
14451 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14452
717c684d
BE
144532020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14454
14455 * skip.c (skip_function_command): Make skip w/o arguments use the
14456 name of the inlined function if pc is inside any inlined function.
14457
7da6a5b9
LM
144582020-01-14 Luis Machado <luis.machado@linaro.org>
14459
14460 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14461 * infrun.c (resume_1): Likewise.
14462 (handle_inferior_event): Remove stale comment.
14463 * linux-nat.c (linux_nat_target::resume): Update comments.
14464 (save_stop_reason): Likewise.
14465 (linux_nat_filter_event): Likewise.
14466 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14467
44e4c775
AB
144682020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14469
14470 * elfread.c (record_minimal_symbol): Set section index to 0 for
14471 non-allocatable sections.
14472
18a8505e
AT
14473
144742020-01-13 Ali Tamur <tamur@google.com>
14475
14476 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14477 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14478 to gdb::optional. Update comments.
14479 (dwo_file): Update comments.
14480 (read_attribute): Update API to take an additional out parameter,
14481 need_reprocess. This is used to mark attributes that need other
14482 attributes (e.g. str_offsets_base) for correct computation which may not
14483 have been read yet.
14484 (read_attribute_reprocess): New function declaration.
14485 (read_addr_index): Likewise.
14486 (read_dwo_str_index): Likewise.
14487 (read_stub_str_index): Likewise.
14488 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14489 (lookup_addr_base): New function definition.
14490 (lookup_ranges_base): Likewise.
14491 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14492 lookup_ranges_base.
14493 (init_cutu_and_read_dies): Update comments.
14494 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14495 unit. This is used to inherit parent's str_offsets_base and addr_base.
14496 Update comments.
14497 (init_cutu_and_read_dies_simple): Reflect API changes.
14498 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14499 (create_cus_hash_table): Change API to take parent compile unit.
14500 Reflect API changes.
14501 (open_and_init_dwo_file): Reflect API changes.
14502 (dwarf2_get_pc_bounds): Update comments.
14503 (dwarf2_record_block_ranges): Likewise.
14504 (read_full_die_1): Change implementation to reprocess attributes that
14505 need str_offsets_base and addr_base.
14506 (partial_die_info::read): Likewise.
14507 (read_attribute_reprocess): New function definition.
14508 (read_attribute_value): Change API to take an additional out parameter,
14509 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14510 when a non-dwo compile unit has index based attributes.
14511 (read_attribute): Reflect API changes.
14512 (read_addr_index_1): Reflect API changes. Update comments.
14513 (dwarf2_read_addr_index_data): Reflect API changes.
14514 (dwarf2_read_addr_index): Likewise.
14515 (read_str_index): Change API and implementation. This becomes a helper
14516 to be used by the new string index related methods. Update error
14517 message and comments.
14518 (read_dwo_str_index): New function definition.
14519 (read_stub_str_index): Likewise.
14520 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14521 * symfile.h (dwarf2_debug_sections): Likewise.
14522 * xcoffread.c (dwarf2_debug_sections): Likewise.
14523
0cac9354
SM
145242020-01-13 Simon Marchi <simon.marchi@efficios.com>
14525
14526 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14527 core_reg_sect type to gdb_byte *.
14528 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14529 * cris-tdep.c (fetch_core_registers): Likewise.
14530 * corelow.c (core_target::get_core_register_section): Change
14531 type of `contents` to gdb::byte_vector.
14532
9a6d629c
AB
145332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14534
14535 * tui/tui-wingeneral.c (box_win): Position the title in the center
14536 of the border.
14537
d8b2f9e3
SM
145382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14539
14540 * corelow.c (core_target::get_core_register_section): Use
14541 std::vector instead of alloca.
14542
bb564c58
SM
145432020-01-13 Simon Marchi <simon.marchi@efficios.com>
14544
14545 * warning.m4: Add -Wmissing-declarations to build_warnings.
14546 * configure: Re-generate.
14547
6b366111
SM
145482020-01-13 Simon Marchi <simon.marchi@efficios.com>
14549
14550 * python/python.c (init__gdb_module): Add declaration.
14551
6c265988
SM
145522020-01-13 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14555 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14556 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14557 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14558 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14559 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14560 * ada-exp.y (_initialize_ada_exp): Add declaration.
14561 * ada-lang.c (_initialize_ada_language): Add declaration.
14562 * ada-tasks.c (_initialize_tasks): Add declaration.
14563 * agent.c (_initialize_agent): Add declaration.
14564 * aix-thread.c (_initialize_aix_thread): Add declaration.
14565 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14566 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14567 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14568 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14569 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14570 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14571 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14572 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14573 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14574 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14575 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14576 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14577 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14578 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14579 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14580 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14581 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14582 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14583 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14584 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14585 * annotate.c (_initialize_annotate): Add declaration.
14586 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14587 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14588 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14589 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14590 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14591 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14592 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14593 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14594 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14595 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14596 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14597 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14598 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14599 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14600 * auto-load.c (_initialize_auto_load): Add declaration.
14601 * auxv.c (_initialize_auxv): Add declaration.
14602 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14603 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14604 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14605 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14606 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14607 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14608 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14609 * breakpoint.c (_initialize_breakpoint): Add declaration.
14610 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14611 * btrace.c (_initialize_btrace): Add declaration.
14612 * charset.c (_initialize_charset): Add declaration.
14613 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14614 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14615 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14616 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14617 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14618 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14619 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14620 * coffread.c (_initialize_coffread): Add declaration.
14621 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14622 * compile/compile.c (_initialize_compile): Add declaration.
14623 * complaints.c (_initialize_complaints): Add declaration.
14624 * completer.c (_initialize_completer): Add declaration.
14625 * copying.c (_initialize_copying): Add declaration.
14626 * corefile.c (_initialize_core): Add declaration.
14627 * corelow.c (_initialize_corelow): Add declaration.
14628 * cp-abi.c (_initialize_cp_abi): Add declaration.
14629 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14630 * cp-support.c (_initialize_cp_support): Add declaration.
14631 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14632 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14633 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14634 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14635 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14636 * ctfread.c (_initialize_ctfread): Add declaration.
14637 * d-lang.c (_initialize_d_language): Add declaration.
14638 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14639 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14640 * dbxread.c (_initialize_dbxread): Add declaration.
14641 * dcache.c (_initialize_dcache): Add declaration.
14642 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14643 * disasm.c (_initialize_disasm): Add declaration.
14644 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14645 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14646 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14647 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14648 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14649 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14650 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14651 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14652 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14653 * elfread.c (_initialize_elfread): Add declaration.
14654 * exec.c (_initialize_exec): Add declaration.
14655 * extension.c (_initialize_extension): Add declaration.
14656 * f-lang.c (_initialize_f_language): Add declaration.
14657 * f-valprint.c (_initialize_f_valprint): Add declaration.
14658 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14659 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14660 * filesystem.c (_initialize_filesystem): Add declaration.
14661 * findcmd.c (_initialize_mem_search): Add declaration.
14662 * findvar.c (_initialize_findvar): Add declaration.
14663 * fork-child.c (_initialize_fork_child): Add declaration.
14664 * frame-base.c (_initialize_frame_base): Add declaration.
14665 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14666 * frame.c (_initialize_frame): Add declaration.
14667 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14668 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14669 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14670 * gcore.c (_initialize_gcore): Add declaration.
14671 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14672 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14673 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14674 * gdbarch.c (_initialize_gdbarch): Add declaration.
14675 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14676 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14677 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14678 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14679 * go-lang.c (_initialize_go_language): Add declaration.
14680 * go32-nat.c (_initialize_go32_nat): Add declaration.
14681 * guile/guile.c (_initialize_guile): Add declaration.
14682 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14683 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14684 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14685 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14686 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14687 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14688 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14689 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14690 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14691 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14692 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14693 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14694 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14695 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14696 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14697 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14698 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14699 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14700 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14701 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14702 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14703 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14704 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14705 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14706 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14707 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14708 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14709 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14710 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14711 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14712 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14713 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14714 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14715 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14716 * infcall.c (_initialize_infcall): Add declaration.
14717 * infcmd.c (_initialize_infcmd): Add declaration.
14718 * inflow.c (_initialize_inflow): Add declaration.
14719 * infrun.c (_initialize_infrun): Add declaration.
14720 * interps.c (_initialize_interpreter): Add declaration.
14721 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14722 * jit.c (_initialize_jit): Add declaration.
14723 * language.c (_initialize_language): Add declaration.
14724 * linux-fork.c (_initialize_linux_fork): Add declaration.
14725 * linux-nat.c (_initialize_linux_nat): Add declaration.
14726 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14727 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14728 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14729 * m2-lang.c (_initialize_m2_language): Add declaration.
14730 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14731 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14732 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14733 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14735 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14736 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14737 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14738 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14739 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14740 * machoread.c (_initialize_machoread): Add declaration.
14741 * macrocmd.c (_initialize_macrocmd): Add declaration.
14742 * macroscope.c (_initialize_macroscope): Add declaration.
14743 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14744 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14745 * maint.c (_initialize_maint_cmds): Add declaration.
14746 * mdebugread.c (_initialize_mdebugread): Add declaration.
14747 * memattr.c (_initialize_mem): Add declaration.
14748 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14749 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14750 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14751 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14752 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14753 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14754 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14755 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14756 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14757 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14758 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14759 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14760 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14761 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14762 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14763 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14764 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14765 * mipsread.c (_initialize_mipsread): Add declaration.
14766 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14767 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14768 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14769 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14770 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14771 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14772 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14773 * nto-procfs.c (_initialize_procfs): Add declaration.
14774 * objc-lang.c (_initialize_objc_language): Add declaration.
14775 * observable.c (_initialize_observer): Add declaration.
14776 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14777 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14778 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14779 * osabi.c (_initialize_gdb_osabi): Add declaration.
14780 * osdata.c (_initialize_osdata): Add declaration.
14781 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14782 * parse.c (_initialize_parse): Add declaration.
14783 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14784 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14785 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14786 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14787 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14788 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14789 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14790 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14791 * printcmd.c (_initialize_printcmd): Add declaration.
14792 * probe.c (_initialize_probe): Add declaration.
14793 * proc-api.c (_initialize_proc_api): Add declaration.
14794 * proc-events.c (_initialize_proc_events): Add declaration.
14795 * proc-service.c (_initialize_proc_service): Add declaration.
14796 * procfs.c (_initialize_procfs): Add declaration.
14797 * producer.c (_initialize_producer): Add declaration.
14798 * psymtab.c (_initialize_psymtab): Add declaration.
14799 * python/python.c (_initialize_python): Add declaration.
14800 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14801 * record-btrace.c (_initialize_record_btrace): Add declaration.
14802 * record-full.c (_initialize_record_full): Add declaration.
14803 * record.c (_initialize_record): Add declaration.
14804 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14805 * regcache.c (_initialize_regcache): Add declaration.
14806 * reggroups.c (_initialize_reggroup): Add declaration.
14807 * remote-notif.c (_initialize_notif): Add declaration.
14808 * remote-sim.c (_initialize_remote_sim): Add declaration.
14809 * remote.c (_initialize_remote): Add declaration.
14810 * reverse.c (_initialize_reverse): Add declaration.
14811 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14812 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14813 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14814 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14815 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14816 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14817 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14818 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14819 Add declaration.
14820 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14821 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14822 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14823 * rust-exp.y (_initialize_rust_exp): Add declaration.
14824 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14825 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14826 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14827 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14828 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14829 * score-tdep.c (_initialize_score_tdep): Add declaration.
14830 * ser-go32.c (_initialize_ser_dos): Add declaration.
14831 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14832 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14833 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14834 * ser-uds.c (_initialize_ser_socket): Add declaration.
14835 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14836 * serial.c (_initialize_serial): Add declaration.
14837 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14838 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14839 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14840 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14841 * skip.c (_initialize_step_skip): Add declaration.
14842 * sol-thread.c (_initialize_sol_thread): Add declaration.
14843 * solib-aix.c (_initialize_solib_aix): Add declaration.
14844 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14845 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14846 * solib-frv.c (_initialize_frv_solib): Add declaration.
14847 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14848 * solib-target.c (_initialize_solib_target): Add declaration.
14849 * solib.c (_initialize_solib): Add declaration.
14850 * source-cache.c (_initialize_source_cache): Add declaration.
14851 * source.c (_initialize_source): Add declaration.
14852 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14853 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14854 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14855 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14856 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14857 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14858 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14859 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14860 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14861 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14862 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14863 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14864 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14865 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14866 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14867 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14868 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14869 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14870 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14871 * stabsread.c (_initialize_stabsread): Add declaration.
14872 * stack.c (_initialize_stack): Add declaration.
14873 * stap-probe.c (_initialize_stap_probe): Add declaration.
14874 * std-regs.c (_initialize_frame_reg): Add declaration.
14875 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14876 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14877 * symfile.c (_initialize_symfile): Add declaration.
14878 * symmisc.c (_initialize_symmisc): Add declaration.
14879 * symtab.c (_initialize_symtab): Add declaration.
14880 * target.c (_initialize_target): Add declaration.
14881 * target-connection.c (_initialize_target_connection): Add
14882 declaration.
14883 * target-dcache.c (_initialize_target_dcache): Add declaration.
14884 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14885 * thread.c (_initialize_thread): Add declaration.
14886 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14887 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14888 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14889 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14890 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14891 * tracectf.c (_initialize_ctf): Add declaration.
14892 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14893 * tracefile.c (_initialize_tracefile): Add declaration.
14894 * tracepoint.c (_initialize_tracepoint): Add declaration.
14895 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14896 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14897 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14898 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14899 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14900 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14901 * tui/tui.c (_initialize_tui): Add declaration.
14902 * typeprint.c (_initialize_typeprint): Add declaration.
14903 * ui-style.c (_initialize_ui_style): Add declaration.
14904 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14905 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14906 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14907 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14908 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14909 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14910 * unittests/filtered_iterator-selftests.c
14911 (_initialize_filtered_iterator_selftests): Add declaration.
14912 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14913 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14914 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14915 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14916 * unittests/main-thread-selftests.c
14917 (_initialize_main_thread_selftests): Add declaration.
14918 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14919 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14920 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14921 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14922 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14923 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14924 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14925 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14926 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14927 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14928 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14929 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14930 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14931 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14932 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14933 declaration.
14934 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14935 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14936 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14937 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14938 * user-regs.c (_initialize_user_regs): Add declaration.
14939 * utils.c (_initialize_utils): Add declaration.
14940 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14941 * valops.c (_initialize_valops): Add declaration.
14942 * valprint.c (_initialize_valprint): Add declaration.
14943 * value.c (_initialize_values): Add declaration.
14944 * varobj.c (_initialize_varobj): Add declaration.
14945 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14946 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14947 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14948 * windows-nat.c (_initialize_windows_nat): Add declaration.
14949 (_initialize_check_for_gdb_ini): Add declaration.
14950 (_initialize_loadable): Add declaration.
14951 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14952 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14953 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14954 * xcoffread.c (_initialize_xcoffread): Add declaration.
14955 * xml-support.c (_initialize_xml_support): Add declaration.
14956 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14957 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14958 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14959 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14960
e2de1eec
SM
149612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14962
14963 * regformats/regdat.sh: Generate declaration for init function.
14964
e0037b4c
SM
149652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14966
14967 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14968 up.
14969 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14970 close_one_inferior>: New methods.
14971 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14972 pass down target to find_inferior_pid.
14973 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14974 Pass down target to find_inferior_ptid.
14975 (gdbsim_target::create_inferior): Pass down target to
14976 add_thread_silent.
14977 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14978 target down to find_inferior_ptid and switch_to_thread.
14979 (gdbsim_target::close): Update to call close_one_inferior.
14980 (struct resume_data): Remove.
14981 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14982 directly, rather than through a void pointer.
14983 (gdbsim_target::resume): Update to call resume_one_inferior.
14984
58920b5b
SM
149852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14986
14987 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14988
4ec89149
PA
149892020-01-12 Pedro Alves <palves@redhat.com>
14990
14991 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14992 directly for the current inferior instead of
14993 discard_all_inferiors.
14994 (discard_all_inferiors): Delete.
14995
7c392d1d
TT
149962020-01-11 Tom Tromey <tom@tromey.com>
14997
14998 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14999 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15000 deprecated_safe_get_selected_frame.
15001
d9ebdab7
TBA
150022020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15003
15004 * inferior.c (print_inferior): Switch inferior before printing it.
15005
f3c469b9
PA
150062020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15007 Pedro Alves <palves@redhat.com>
15008
15009 * progspace-and-thread.c (switch_to_program_space_and_thread):
15010 Assert there's an inferior for PSPACE. Use
15011 switch_to_inferior_no_thread to switch the inferior too.
15012 * progspace.c (program_space::~program_space): Call
15013 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15014 (program_space::free_all_objfiles): Don't call clear_symtab_users
15015 here.
15016 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15017
65c574f6
PA
150182020-01-10 Pedro Alves <palves@redhat.com>
15019
15020 * NEWS: Mention multi-target debugging, "info connections", and
15021 "add-inferior -no-connection".
15022
2f4fcf00
PA
150232020-01-10 Pedro Alves <palves@redhat.com>
15024
15025 * infrun.c: Include "target-connection.h".
15026 (check_multi_target_resumption): New.
15027 (proceed): Call it.
15028 * target-connection.c (make_target_connection_string): Make
15029 extern.
15030 * target-connection.h (make_target_connection_string): Declare.
15031
121b3efd
PA
150322020-01-10 Pedro Alves <palves@redhat.com>
15033
15034 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15035 * inferior.c (uiout_field_connection): New function.
15036 (print_inferior): Add new "connection-id" column.
15037 (add_inferior_command): Show connection number/string of added
15038 inferior.
15039 * process-stratum-target.h
15040 (process_stratum_target::connection_string): New virtual method.
15041 (process_stratum_target::connection_number): New field.
15042 * remote.c (remote_target::connection_string): New override.
15043 * target-connection.c: New file.
15044 * target-connection.h: New file.
15045 * target.c (decref_target): Remove process_stratum targets from
15046 the connection list.
15047 (target_stack::push): Add process_stratum targets to the
15048 connection list.
15049
4f837581
PA
150502020-01-10 Pedro Alves <palves@redhat.com>
15051
15052 Revert:
15053 2016-04-12 Pedro Alves <palves@redhat.com>
15054 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15055 Remove references to name.
15056 * serial.h (struct serial) <name>: Delete.
15057
f4ec508e
PA
150582020-01-10 Pedro Alves <palves@redhat.com>
15059
15060 * gdbarch-selftests.c (register_to_value_test): Remove "target
15061 already pushed" check.
15062
5b6d1e4f
PA
150632020-01-10 Pedro Alves <palves@redhat.com>
15064 John Baldwin <jhb@FreeBSD.org>
15065
15066 * aarch64-linux-nat.c
15067 (aarch64_linux_nat_target::thread_architecture): Adjust.
15068 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15069 (task_command_1): Likewise.
15070 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15071 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15072 (aix_thread_target::store_registers)
15073 (aix_thread_target::thread_alive): Adjust.
15074 * amd64-fbsd-tdep.c: Include "inferior.h".
15075 (amd64fbsd_get_thread_local_address): Pass down target.
15076 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15077 thread's gdbarch instead of target_gdbarch.
15078 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15079 get_last_target_status.
15080 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15081 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15082 inferiors.
15083 (update_inserted_breakpoint_locations): Skip if inferiors with no
15084 execution.
15085 (update_global_location_list): When handling moribund locations,
15086 find representative inferior for location's pspace, and use thread
15087 count of its process_stratum target.
15088 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15089 * bsd-uthread.c (bsd_uthread_target::wait): Use
15090 as_process_stratum_target and adjust thread_change_ptid and
15091 add_thread calls.
15092 (bsd_uthread_target::update_thread_list): Use
15093 as_process_stratum_target and adjust find_thread_ptid,
15094 thread_change_ptid and add_thread calls.
15095 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15096 find_thread_ptid call.
15097 * corelow.c (add_to_thread_list): Adjust add_thread call.
15098 (core_target_open): Adjust add_thread_silent and thread_count
15099 calls.
15100 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15101 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15102 * event-top.c (async_disconnect): Pop targets from all inferiors.
15103 * exec.c (add_target_sections): Push exec target on all inferiors
15104 sharing the program space.
15105 (remove_target_sections): Remove the exec target from all
15106 inferiors sharing the program space.
15107 (exec_on_vfork): New.
15108 * exec.h (exec_on_vfork): Declare.
15109 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15110 Pass it down.
15111 (fbsd_nat_target::update_thread_list): Adjust.
15112 (fbsd_nat_target::resume): Adjust.
15113 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15114 down.
15115 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15116 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15117 get_thread_arch_regcache call.
15118 * fork-child.c (gdb_startup_inferior): Pass target down to
15119 startup_inferior and set_executing.
15120 * gdbthread.h (struct process_stratum_target): Forward declare.
15121 (add_thread, add_thread_silent, add_thread_with_info)
15122 (in_thread_list): Add process_stratum_target parameter.
15123 (find_thread_ptid(inferior*, ptid_t)): New overload.
15124 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15125 parameter.
15126 (all_threads()): Delete overload.
15127 (all_threads, all_non_exited_threads): Add process_stratum_target
15128 parameter.
15129 (all_threads_safe): Use brace initialization.
15130 (thread_count): Add process_stratum_target parameter.
15131 (set_resumed, set_running, set_stop_requested, set_executing)
15132 (threads_are_executing, finish_thread_state): Add
15133 process_stratum_target parameter.
15134 (switch_to_thread): Use is_current_thread.
15135 * i386-fbsd-tdep.c: Include "inferior.h".
15136 (i386fbsd_get_thread_local_address): Pass down target.
15137 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15138 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15139 have_inferiors check.
15140 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15141 (inf_ptrace_target::attach): Adjust.
15142 * infcall.c (run_inferior_call): Adjust.
15143 * infcmd.c (run_command_1): Pass target to
15144 scoped_finish_thread_state.
15145 (proceed_thread_callback): Skip inferiors with no execution.
15146 (continue_command): Rename 'all_threads' local to avoid hiding
15147 'all_threads' function. Adjust get_last_target_status call.
15148 (prepare_one_step): Adjust set_running call.
15149 (signal_command): Use user_visible_resume_target. Compare thread
15150 pointers instead of inferior_ptid.
15151 (info_program_command): Adjust to pass down target.
15152 (attach_command): Mark target's 'thread_executing' flag.
15153 (stop_current_target_threads_ns): New, factored out from ...
15154 (interrupt_target_1): ... this. Switch inferior before making
15155 target calls.
15156 * inferior-iter.h
15157 (struct all_inferiors_iterator, struct all_inferiors_range)
15158 (struct all_inferiors_safe_range)
15159 (struct all_non_exited_inferiors_range): Filter on
15160 process_stratum_target too. Remove explicit.
15161 * inferior.c (inferior::inferior): Push dummy target on target
15162 stack.
15163 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15164 Add process_stratum_target parameter, and pass it down.
15165 (have_live_inferiors): Adjust.
15166 (switch_to_inferior_and_push_target): New.
15167 (add_inferior_command, clone_inferior_command): Handle
15168 "-no-connection" parameter. Use
15169 switch_to_inferior_and_push_target.
15170 (_initialize_inferior): Mention "-no-connection" option in
15171 the help of "add-inferior" and "clone-inferior" commands.
15172 * inferior.h: Include "process-stratum-target.h".
15173 (interrupt_target_1): Use bool.
15174 (struct inferior) <push_target, unpush_target, target_is_pushed,
15175 find_target_beneath, top_target, process_target, target_at,
15176 m_stack>: New.
15177 (discard_all_inferiors): Delete.
15178 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15179 (all_inferiors, all_non_exited_inferiors): Add
15180 process_stratum_target parameter.
15181 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15182 (target_last_proc_target): New global.
15183 (follow_fork_inferior): Push target on new inferior. Pass target
15184 to add_thread_silent. Call exec_on_vfork. Handle target's
15185 reference count.
15186 (follow_fork): Adjust get_last_target_status call. Also consider
15187 target.
15188 (follow_exec): Push target on new inferior.
15189 (struct execution_control_state) <target>: New field.
15190 (user_visible_resume_target): New.
15191 (do_target_resume): Call target_async.
15192 (resume_1): Set target's threads_executing flag. Consider resume
15193 target.
15194 (commit_resume_all_targets): New.
15195 (proceed): Also consider resume target. Skip threads of inferiors
15196 with no execution. Commit resumtion in all targets.
15197 (start_remote): Pass current inferior to wait_for_inferior.
15198 (infrun_thread_stop_requested): Consider target as well. Pass
15199 thread_info pointer to clear_inline_frame_state instead of ptid.
15200 (infrun_thread_thread_exit): Consider target as well.
15201 (random_pending_event_thread): New inferior parameter. Use it.
15202 (do_target_wait): Rename to ...
15203 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15204 down.
15205 (threads_are_resumed_pending_p, do_target_wait): New.
15206 (prepare_for_detach): Adjust calls.
15207 (wait_for_inferior): New inferior parameter. Handle it. Use
15208 do_target_wait_1 instead of do_target_wait.
15209 (fetch_inferior_event): Adjust. Switch to representative
15210 inferior. Pass target down.
15211 (set_last_target_status): Add process_stratum_target parameter.
15212 Save target in global.
15213 (get_last_target_status): Add process_stratum_target parameter and
15214 handle it.
15215 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15216 (context_switch): Check inferior_ptid == null_ptid before calling
15217 inferior_thread().
15218 (get_inferior_stop_soon): Pass down target.
15219 (wait_one): Rename to ...
15220 (poll_one_curr_target): ... this.
15221 (struct wait_one_event): New.
15222 (wait_one): New.
15223 (stop_all_threads): Adjust.
15224 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15225 event's target.
15226 (switch_back_to_stepped_thread): Also consider target.
15227 (print_stop_event): Update.
15228 (normal_stop): Update. Also consider the resume target.
15229 * infrun.h (wait_for_inferior): Remove declaration.
15230 (user_visible_resume_target): New declaration.
15231 (get_last_target_status, set_last_target_status): New
15232 process_stratum_target parameter.
15233 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15234 process_stratum_target parameter, and use it.
15235 (clear_inline_frame_state (thread_info*)): New.
15236 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15237 process_stratum_target parameter.
15238 (clear_inline_frame_state (thread_info*)): Declare.
15239 * linux-fork.c (delete_checkpoint_command): Pass target down to
15240 find_thread_ptid.
15241 (checkpoint_command): Adjust.
15242 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15243 instead of just tweaking inferior_ptid.
15244 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15245 (exit_lwp): Pass target down to find_thread_ptid.
15246 (attach_proc_task_lwp_callback): Pass target down to
15247 add_thread/set_running/set_executing.
15248 (linux_nat_target::attach): Pass target down to
15249 thread_change_ptid.
15250 (get_detach_signal): Pass target down to find_thread_ptid.
15251 Consider last target status's target.
15252 (linux_resume_one_lwp_throw, resume_lwp)
15253 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15254 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15255 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15256 (linux_nat_target::async_wait_fd): New.
15257 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15258 target down.
15259 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15260 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15261 * linux-thread-db.c (struct thread_db_info::process_target): New
15262 field.
15263 (add_thread_db_info): Save target.
15264 (get_thread_db_info): New process_stratum_target parameter. Also
15265 match target.
15266 (delete_thread_db_info): New process_stratum_target parameter.
15267 Also match target.
15268 (thread_from_lwp): Adjust to pass down target.
15269 (thread_db_notice_clone): Pass down target.
15270 (check_thread_db_callback): Pass down target.
15271 (try_thread_db_load_1): Always push the thread_db target.
15272 (try_thread_db_load, record_thread): Pass target down.
15273 (thread_db_target::detach): Pass target down. Always unpush the
15274 thread_db target.
15275 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15276 target down. Always unpush the thread_db target.
15277 (find_new_threads_callback, thread_db_find_new_threads_2)
15278 (thread_db_target::update_thread_list): Pass target down.
15279 (thread_db_target::pid_to_str): Pass current inferior down.
15280 (thread_db_target::get_thread_local_address): Pass target down.
15281 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15282 target down.
15283 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15284 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15285 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15286 (procfs_init_inferior): Rename to ...
15287 (procfs_target::procfs_init_inferior): ... this and adjust.
15288 (procfs_target::create_inferior, procfs_notice_thread)
15289 (procfs_do_thread_registers): Adjust.
15290 * ppc-fbsd-tdep.c: Include "inferior.h".
15291 (ppcfbsd_get_thread_local_address): Pass down target.
15292 * proc-service.c (ps_xfer_memory): Switch current inferior and
15293 program space as well.
15294 (get_ps_regcache): Pass target down.
15295 * process-stratum-target.c
15296 (process_stratum_target::thread_address_space)
15297 (process_stratum_target::thread_architecture): Pass target down.
15298 * process-stratum-target.h
15299 (process_stratum_target::threads_executing): New field.
15300 (as_process_stratum_target): New.
15301 * ravenscar-thread.c
15302 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15303 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15304 down.
15305 * record-btrace.c (record_btrace_target::info_record): Adjust.
15306 (record_btrace_target::record_method)
15307 (record_btrace_target::record_is_replaying)
15308 (record_btrace_target::fetch_registers)
15309 (get_thread_current_frame_id, record_btrace_target::resume)
15310 (record_btrace_target::wait, record_btrace_target::stop): Pass
15311 target down.
15312 * record-full.c (record_full_wait_1): Switch to event thread.
15313 Pass target down.
15314 * regcache.c (regcache::regcache)
15315 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15316 process_stratum_target parameter and handle it.
15317 (current_thread_target): New global.
15318 (get_thread_regcache): Add process_stratum_target parameter and
15319 handle it. Switch inferior before calling target method.
15320 (get_thread_regcache): Pass target down.
15321 (get_thread_regcache_for_ptid): Pass target down.
15322 (registers_changed_ptid): Add process_stratum_target parameter and
15323 handle it.
15324 (registers_changed_thread, registers_changed): Pass target down.
15325 (test_get_thread_arch_aspace_regcache): New.
15326 (current_regcache_test): Define a couple local test_target_ops
15327 instances and use them for testing.
15328 (readwrite_regcache): Pass process_stratum_target parameter.
15329 (cooked_read_test, cooked_write_test): Pass mock_target down.
15330 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15331 (get_thread_arch_aspace_regcache): Add process_stratum_target
15332 parameter.
15333 (regcache::target): New method.
15334 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15335 (regcache::registers_changed_ptid): Add process_stratum_target
15336 parameter.
15337 (regcache::m_target): New field.
15338 (registers_changed_ptid): Add process_stratum_target parameter.
15339 * remote.c (remote_state::supports_vCont_probed): New field.
15340 (remote_target::async_wait_fd): New method.
15341 (remote_unpush_and_throw): Add remote_target parameter.
15342 (get_current_remote_target): Adjust.
15343 (remote_target::remote_add_inferior): Push target.
15344 (remote_target::remote_add_thread)
15345 (remote_target::remote_notice_new_inferior)
15346 (get_remote_thread_info): Pass target down.
15347 (remote_target::update_thread_list): Skip threads of inferiors
15348 bound to other targets. (remote_target::close): Don't discard
15349 inferiors. (remote_target::add_current_inferior_and_thread)
15350 (remote_target::process_initial_stop_replies)
15351 (remote_target::start_remote)
15352 (remote_target::remote_serial_quit_handler): Pass down target.
15353 (remote_target::remote_unpush_target): New remote_target
15354 parameter. Unpush the target from all inferiors.
15355 (remote_target::remote_unpush_and_throw): New remote_target
15356 parameter. Pass it down.
15357 (remote_target::open_1): Check whether the current inferior has
15358 execution instead of checking whether any inferior is live. Pass
15359 target down.
15360 (remote_target::remote_detach_1): Pass down target. Use
15361 remote_unpush_target.
15362 (extended_remote_target::attach): Pass down target.
15363 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15364 (remote_target::append_resumption): Pass down target.
15365 (remote_target::append_pending_thread_resumptions)
15366 (remote_target::remote_resume_with_hc, remote_target::resume)
15367 (remote_target::commit_resume): Pass down target.
15368 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15369 (remote_target::interrupt_query)
15370 (remote_target::remove_new_fork_children)
15371 (remote_target::check_pending_events_prevent_wildcard_vcont)
15372 (remote_target::remote_parse_stop_reply)
15373 (remote_target::process_stop_reply): Pass down target.
15374 (first_remote_resumed_thread): New remote_target parameter. Pass
15375 it down.
15376 (remote_target::wait_as): Pass down target.
15377 (unpush_and_perror): New remote_target parameter. Pass it down.
15378 (remote_target::readchar, remote_target::remote_serial_write)
15379 (remote_target::getpkt_or_notif_sane_1)
15380 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15381 down target.
15382 (remote_target::mourn_inferior): Pass down target. Use
15383 remote_unpush_target.
15384 (remote_target::core_of_thread)
15385 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15386 (remote_target::pid_to_exec_file)
15387 (remote_target::thread_handle_to_thread_info): Pass down target.
15388 (remote_target::async_wait_fd): New.
15389 * riscv-fbsd-tdep.c: Include "inferior.h".
15390 (riscv_fbsd_get_thread_local_address): Pass down target.
15391 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15392 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15393 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15394 Adjust.
15395 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15396 * solib-svr4.c (enable_break): Pass down target.
15397 * spu-multiarch.c (parse_spufs_run): Pass down target.
15398 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15399 * target-delegates.c: Regenerate.
15400 * target.c (g_target_stack): Delete.
15401 (current_top_target): Return the current inferior's top target.
15402 (target_has_execution_1): Refer to the passed-in inferior's top
15403 target.
15404 (target_supports_terminal_ours): Check whether the initial
15405 inferior was already created.
15406 (decref_target): New.
15407 (target_stack::push): Incref/decref the target.
15408 (push_target, push_target, unpush_target): Adjust.
15409 (target_stack::unpush): Defref target.
15410 (target_is_pushed): Return bool. Adjust to refer to the current
15411 inferior's target stack.
15412 (dispose_inferior): Delete, and inline parts ...
15413 (target_preopen): ... here. Only dispose of the current inferior.
15414 (target_detach): Hold strong target reference while detaching.
15415 Pass target down.
15416 (target_thread_name): Add assertion.
15417 (target_resume): Pass down target.
15418 (target_ops::beneath, find_target_at): Adjust to refer to the
15419 current inferior's target stack.
15420 (get_dummy_target): New.
15421 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15422 has a thread running.
15423 (initialize_targets): Rename to ...
15424 (_initialize_target): ... this.
15425 * target.h: Include "gdbsupport/refcounted-object.h".
15426 (struct target_ops): Inherit refcounted_object.
15427 (target_ops::shortname, target_ops::longname): Make const.
15428 (target_ops::async_wait_fd): New method.
15429 (decref_target): Declare.
15430 (struct target_ops_ref_policy): New.
15431 (target_ops_ref): New typedef.
15432 (get_dummy_target): Declare function.
15433 (target_is_pushed): Return bool.
15434 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15435 (all_matching_threads_iterator::all_matching_threads_iterator):
15436 Handle filter target.
15437 * thread-iter.h (struct all_matching_threads_iterator, struct
15438 all_matching_threads_range, class all_non_exited_threads_range):
15439 Filter by target too. Remove explicit.
15440 * thread.c (threads_executing): Delete.
15441 (inferior_thread): Pass down current inferior.
15442 (clear_thread_inferior_resources): Pass down thread pointer
15443 instead of ptid_t.
15444 (add_thread_silent, add_thread_with_info, add_thread): Add
15445 process_stratum_target parameter. Use it for thread and inferior
15446 searches.
15447 (is_current_thread): New.
15448 (thread_info::deletable): Use it.
15449 (find_thread_ptid, thread_count, in_thread_list)
15450 (thread_change_ptid, set_resumed, set_running): New
15451 process_stratum_target parameter. Pass it down.
15452 (set_executing): New process_stratum_target parameter. Pass it
15453 down. Adjust reference to 'threads_executing'.
15454 (threads_are_executing): New process_stratum_target parameter.
15455 Adjust reference to 'threads_executing'.
15456 (set_stop_requested, finish_thread_state): New
15457 process_stratum_target parameter. Pass it down.
15458 (switch_to_thread): Also match inferior.
15459 (switch_to_thread): New process_stratum_target parameter. Pass it
15460 down.
15461 (update_threads_executing): Reimplement.
15462 * top.c (quit_force): Pop targets from all inferior.
15463 (gdb_init): Don't call initialize_targets.
15464 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15465 Declare.
15466 (windows_add_thread, windows_delete_thread): Adjust.
15467 (get_windows_debug_event): Rename to ...
15468 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15469 * tracefile-tfile.c (tfile_target_open): Pass down target.
15470 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15471 Forward declare.
15472 (switch_to_thread): Add process_stratum_target parameter.
15473 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15474 parameter. Use it.
15475 (mi_on_resume): Pass target down.
15476 * nat/fork-inferior.c (startup_inferior): Add
15477 process_stratum_target parameter. Pass it down.
15478 * nat/fork-inferior.h (startup_inferior): Add
15479 process_stratum_target parameter.
15480 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15481
75c6c844
PA
154822020-01-10 Pedro Alves <palves@redhat.com>
15483
15484 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15485 directly. Instead find the first thread in the thread list and
15486 use switch_to_thread.
15487
78f2c40a
PA
154882020-01-10 Pedro Alves <palves@redhat.com>
15489
15490 * remote.c (remote_target::remote_add_inferior): Don't bind a
15491 process to the current inferior if the current inferior is already
15492 bound to a process.
15493
e7af6c70
TBA
154942020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15495 Pedro Alves <palves@redhat.com>
15496
15497 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15498 If no process is specified, return null_ptid instead of
15499 inferior_ptid.
15500 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15501 TARGET_WAITKIND_SIGNALLED with no pid.
15502
31ba933e
PA
155032020-01-10 Pedro Alves <palves@redhat.com>
15504
15505 * remote.c (first_remote_resumed_thread): New.
15506 (remote_target::wait_as): Use it as default event_ptid instead of
15507 inferior_ptid.
15508
735fc2ca
PA
155092020-01-10 Pedro Alves <palves@redhat.com>
15510
15511 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15512
c17e02e1
PA
155132020-01-10 Pedro Alves <palves@redhat.com>
15514
15515 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15516 not -1.
15517
ab1ddbcf
PA
155182020-01-10 Pedro Alves <palves@redhat.com>
15519
15520 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15521 ptid to get_last_target_status.
15522 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15523 ptid to get_last_target_status.
15524 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15525 get_last_target_status.
15526 (info_program_command): Don't pass a target_waitstatus to
15527 get_last_target_status.
15528 * infrun.c (init_wait_for_inferior): Use
15529 nullify_last_target_wait_ptid.
15530 (get_last_target_status): Handle nullptr arguments.
15531 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15532 (print_stop_event): Don't pass a ptid to get_last_target_status.
15533 (normal_stop): Don't pass a ptid to get_last_target_status.
15534 * infrun.h (get_last_target_status, set_last_target_status): Move
15535 comments here and update.
15536 (nullify_last_target_wait_ptid): Declare.
15537 * linux-fork.c (fork_load_infrun_state): Remove local extern
15538 declaration of nullify_last_target_wait_ptid.
15539 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15540 to get_last_target_status.
15541
f3f8ece4
PA
155422020-01-10 Pedro Alves <palves@redhat.com>
15543
15544 * gdbthread.h (scoped_restore_current_thread)
15545 <dont_restore, restore, m_dont_restore>: Declare.
15546 * thread.c (thread_alive): Add assertion. Return bool.
15547 (switch_to_thread_if_alive): New.
15548 (prune_threads): Switch inferior/thread.
15549 (print_thread_info_1): Switch thread before calling target methods.
15550 (scoped_restore_current_thread::restore): New, factored out from
15551 ...
15552 (scoped_restore_current_thread::~scoped_restore_current_thread):
15553 ... this.
15554 (scoped_restore_current_thread::scoped_restore_current_thread):
15555 Add assertion.
15556 (thread_apply_all_command, thread_select): Use
15557 switch_to_thread_if_alive.
15558 * infrun.c (proceed, restart_threads, handle_signal_stop)
15559 (switch_back_to_stepped_thread): Switch current thread before
15560 calling target methods.
15561
db2d40f7
PA
155622020-01-10 Pedro Alves <palves@redhat.com>
15563
15564 * inferior.c (switch_to_inferior_no_thread): New function,
15565 factored out from ...
15566 (inferior_command): ... here.
15567 * inferior.h (switch_to_inferior_no_thread): Declare.
15568 * mi/mi-main.c (run_one_inferior): Use
15569 switch_to_inferior_no_thread.
15570
bd420a2d
PA
155712020-01-10 Pedro Alves <palves@redhat.com>
15572
15573 * infcmd.c (kill_command): Remove dead code.
15574
ddf5db90
PA
155752020-01-10 Pedro Alves <palves@redhat.com>
15576
15577 * remote.c (remote_target::mourn_inferior): No longer check
15578 whether the target is running.
15579
5018ce90
PA
155802020-01-10 Pedro Alves <palves@redhat.com>
15581
15582 * corelow.c (core_target::has_execution): Change parameter type to
15583 inferior pointer.
15584 * inferior.c (number_of_live_inferiors): Use
15585 inferior::has_execution instead of target_has_execution_1.
15586 * inferior.h (inferior::has_execution): New.
15587 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15588 inferior::has_execution instead of target_has_execution_1.
15589 * process-stratum-target.c
15590 (process_stratum_target::has_execution): Change parameter type to
15591 inferior pointer. Check the inferior's PID instead of
15592 inferior_ptid.
15593 * process-stratum-target.h
15594 (process_stratum_target::has_execution): Change parameter type to
15595 inferior pointer.
15596 * record-full.c (record_full_core_target::has_execution): Change
15597 parameter type to inferior pointer.
15598 * target.c (target_has_execution_1): Change parameter type to
15599 inferior pointer.
15600 (target_has_execution_current): Adjust.
15601 * target.h (target_ops::has_execution): Change parameter type to
15602 inferior pointer.
15603 (target_has_execution_1): Change parameter type to inferior
15604 pointer. Change return type to bool.
15605 * tracefile.h (tracefile_target::has_execution): Change parameter
15606 type to inferior pointer.
15607
74375d18
PA
156082020-01-10 Pedro Alves <palves@redhat.com>
15609
15610 * exceptions.c (print_flush): Remove current_top_target() check.
15611
acdf84a6
PA
156122020-01-10 Pedro Alves <palves@redhat.com>
15613
15614 * remote.c (show_remote_exec_file): Show the current inferior's
15615 exec-file instead of the command variable's value.
15616
ec506636
PA
156172020-01-10 Pedro Alves <palves@redhat.com>
15618
15619 * record-full.c (record_full_resume_ptid): New global.
15620 (record_full_target::resume): Set it.
15621 (record_full_wait_1): Use record_full_resume_ptid instead of
15622 inferior_ptid.
15623
873657b9
PA
156242020-01-10 Pedro Alves <palves@redhat.com>
15625
15626 * gdbthread.h (scoped_restore_current_thread)
15627 <dont_restore, restore, m_dont_restore>: Declare.
15628 * thread.c (thread_alive): Add assertion. Return bool.
15629 (switch_to_thread_if_alive): New.
15630 (prune_threads): Switch inferior/thread.
15631 (print_thread_info_1): Switch thread before calling target methods.
15632 (scoped_restore_current_thread::restore): New, factored out from
15633 ...
15634 (scoped_restore_current_thread::~scoped_restore_current_thread):
15635 ... this.
15636 (scoped_restore_current_thread::scoped_restore_current_thread):
15637 Add assertion.
15638 (thread_apply_all_command, thread_select): Use
15639 switch_to_thread_if_alive.
15640
7f0ae84c
GB
156412020-01-10 George Barrett <bob@bob131.so>
15642
15643 * stap-probe.c (stap_modify_semaphore): Don't check for null
15644 semaphores.
15645 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15646 for null semaphores.
15647
f5a7c406
AB
156482020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15649
15650 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15651 all source windows, and maintain horizontal scroll status while
15652 doing so.
15653
9ae6bf64
TT
156542020-01-09 Tom Tromey <tom@tromey.com>
15655
15656 PR tui/18932:
15657 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15658 update_source_window, not print_source_lines.
15659
b2efe70c
AB
156602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15661
15662 * tui/tui.c (tui_enable): Register tui hooks after calling
15663 tui_display_main.
15664
5f23a082
CB
156652020-01-09 Christian Biesinger <cbiesinger@google.com>
15666
15667 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15668
3061113b
SM
156692020-01-08 Simon Marchi <simon.marchi@efficios.com>
15670
15671 * thread.c (print_thread_info_1): Fix indentation.
15672
57d75002
CB
156732020-01-09 Christian Biesinger <cbiesinger@google.com>
15674
15675 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15676 unique_xmalloc_ptr outside the if to always free the demangled name.
15677
6a053cb1
TT
156782020-01-08 Tom Tromey <tromey@adacore.com>
15679
15680 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15681 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15682 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15683 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15684 Remove.
15685 (section_offsets): New typedef.
15686 * symtab.c (fixup_section, get_msymbol_address): Update.
15687 * symmisc.c (dump_msymbols): Update.
15688 * symfile.h (relative_addr_info_to_section_offsets)
15689 (symfile_map_offsets_to_segments): Update.
15690 * symfile.c (build_section_addr_info_from_objfile)
15691 (init_objfile_sect_indices): Update.
15692 (struct place_section_arg): Change type of "offsets".
15693 (place_section): Update.
15694 (relative_addr_info_to_section_offsets): Change type of
15695 "section_offsets". Remove "num_sections" parameter.
15696 (default_symfile_offsets, syms_from_objfile_1)
15697 (set_objfile_default_section_offset): Update.
15698 (reread_symbols): No need to preserve section offsets by hand.
15699 (symfile_map_offsets_to_segments): Change type of "offsets".
15700 * stap-probe.c (relocate_address): Update.
15701 * stabsread.h (process_one_symbol): Update.
15702 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15703 (solib_target_relocate_section_addresses): Update.
15704 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15705 Update.
15706 * solib-frv.c (frv_relocate_main_executable): Update.
15707 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15708 * solib-aix.c (solib_aix_get_section_offsets): Change return
15709 type.
15710 (solib_aix_solib_create_inferior_hook): Update.
15711 * remote.c (remote_target::get_offsets): Update.
15712 * psymtab.c (find_pc_sect_psymtab): Update.
15713 * psympriv.h (struct partial_symbol) <address, text_low,
15714 text_high>: Update.
15715 * objfiles.h (obj_section_offset): Update.
15716 (struct objfile) <section_offsets>: Change type.
15717 <num_sections>: Remove.
15718 (objfile_relocate): Update.
15719 * objfiles.c (entry_point_address_query): Update
15720 (relocate_one_symbol): Change type of "section_offsets".
15721 (objfile_relocate1, objfile_relocate1): Change type of
15722 "new_offsets".
15723 (objfile_rebase1): Update.
15724 * mipsread.c (mipscoff_symfile_read): Update.
15725 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15726 parameter.
15727 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15728 (parse_external, psymtab_to_symtab_1): Update.
15729 * machoread.c (macho_symfile_offsets): Update.
15730 * ia64-tdep.c (ia64_find_unwind_table): Update.
15731 * hppa-tdep.c (read_unwind_info): Update.
15732 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15733 * dwarf2read.c (create_addrmap_from_index)
15734 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15735 (process_psymtab_comp_unit_reader, add_partial_symbol)
15736 (add_partial_subprogram, process_full_comp_unit)
15737 (read_file_scope, read_func_scope, read_lexical_block_scope)
15738 (read_call_site_scope, dwarf2_rnglists_process)
15739 (dwarf2_ranges_process, dwarf2_ranges_read)
15740 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15741 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15742 Update.
15743 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15744 Update.
15745 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15746 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15747 (process_one_symbol): Change type of "section_offsets".
15748 * ctfread.c (get_objfile_text_range): Update.
15749 * coffread.c (coff_symtab_read, enter_linenos)
15750 (process_coff_symbol): Update.
15751 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15752 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15753
456e800a
TT
157542020-01-08 Tom Tromey <tromey@adacore.com>
15755
15756 * dwarf2read.c (parse_macro_definition): Use std::string.
15757 (parse_macro_definition): Likewise.
15758
6dfa2fc2
TT
157592020-01-08 Tom Tromey <tromey@adacore.com>
15760
15761 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15762 (ATTR_ALLOC_CHUNK): Remove.
15763
421d1616
TT
157642020-01-08 Tom Tromey <tromey@adacore.com>
15765
15766 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15767
43816ebc
TT
157682020-01-08 Tom Tromey <tromey@adacore.com>
15769
15770 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15771 (dwarf2_compute_name, open_dwo_file): Likewise.
15772 (process_enumeration_scope): Use std::vector.
15773 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15774 (partial_die_info::fixup, dwarf2_start_subfile)
15775 (guess_full_die_structure_name, dwarf2_name): Likewise.
15776 (determine_prefix): Update.
15777 (guess_full_die_structure_name): Make return type const.
15778 (partial_die_full_name): Return unique_xmalloc_ptr.
15779 (DW_FIELD_ALLOC_CHUNK): Remove.
15780
4212d509
TT
157812020-01-07 Tom Tromey <tromey@adacore.com>
15782
15783 PR build/24937:
15784 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15785
06a6207a
JT
157862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15787
15788 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15789
153d79c4
AB
157902020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15791
15792 * stack.c (print_frame_info): Move disassemble_next_line code
15793 inside source_print block.
15794
66182876
EZ
157952020-01-06 Eli Zaretskii <eliz@gnu.org>
15796
15797 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15798 gdb/signals.h, as we are now using native signal symbols.
15799
cbfa8581
SV
158002020-01-06 Shahab Vahedi <shahab@synopsys.com>
15801
15802 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15803 overflow by an early check of content vs threshold.
aac66a4c 15804 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15805 Likewise.
15806
3f602821
EZ
158072020-01-06 Eli Zaretskii <eliz@gnu.org>
15808
15809 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15810
a08c904d
JT
158112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15812
15813 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15814 export table if no section contains it's RVA.
15815
89a65580
EZ
158162020-01-06 Eli Zaretskii <eliz@gnu.org>
15817
15818 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15819
8b7fcda2
HD
158202020-01-06 Hannes Domani <ssbssa@yahoo.de>
15821
15822 * source.c (print_source_lines_base): Set last_line_listed.
15823
a61b4f69
SV
158242020-01-06 Shahab Vahedi <shahab@synopsys.com>
15825
15826 * tui/tui-disasm.c: Remove trailing spaces.
15827
559e7e50
EZ
158282020-01-06 Eli Zaretskii <eliz@gnu.org>
15829 Pedro Alves <palves@redhat.com>
15830
15831 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15832 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15833 (windows_gdb_signal_to_target): New function, uses the above
15834 enumeration to convert GDB internal signal codes to equivalent
15835 Windows codes.
15836 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15837 * windows-nat.c: Include "gdb_wait.h".
15838 (get_windows_debug_event): Extract the fatal exception from the
15839 exit status and convert to the equivalent Posix signal number.
15840 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15841 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15842 * gdbsupport/gdb_wait.c: New file, implements
15843 windows_status_to_termsig.
15844 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15845 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15846
f2302a34
AB
158472020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15848
15849 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15850 show_layout.
15851
6a5206eb
LM
158522020-01-05 Luis Machado <luis.machado@linaro.org>
15853
15854 * aarch64-linux-nat.c
15855 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15856 and bfd_mach_aarch64.
15857
6ec1d75e
PW
158582020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15859
15860 * ui-file.c (stdio_file::can_emit_style_escape)
15861 (tee_file::can_emit_style_escape): Ensure style is used also on
15862 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15863 to gdb_stdout.
15864 * main.c (set_gdb_data_directory): Use file style to output the
15865 warning that the given pathname is not a directory.
15866 * top.c (show_history_filename, gdb_safe_append_history)
15867 (show_gdb_datadir): Use file style.
15868
44f81a76
HD
158692020-01-03 Hannes Domani <ssbssa@yahoo.de>
15870
15871 * solib-target.c (struct lm_info_target):
15872 Change offsets to be a unique_xmalloc_ptr.
15873 (solib_target_relocate_section_addresses): Update.
15874
25057eb0
HD
158752020-01-03 Hannes Domani <ssbssa@yahoo.de>
15876
15877 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15878
6e2118f5
BE
158792020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15880
15881 * MAINTAINERS (Write After Approval): Add myself.
15882
8133c7dc
LM
158832020-01-02 Luis Machado <luis.machado@linaro.org>
15884
15885 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15886 Cell BE architecture.
15887 * target.h (struct target_ops) <thread_architecture>: Likewise.
15888
48189bec
HD
158892020-01-01 Hannes Domani <ssbssa@yahoo.de>
15890
15891 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15892
ead1063b
HD
158932020-01-01 Hannes Domani <ssbssa@yahoo.de>
15894
15895 * MAINTAINERS (Write After Approval): Add myself.
15896
e5d78223
JB
158972020-01-01 Joel Brobecker <brobecker@adacore.com>
15898
15899 * gdbarch.sh: Update copyright year range of generated files.
15900
b811d2c2
JB
159012020-01-01 Joel Brobecker <brobecker@adacore.com>
15902
15903 Update copyright year range in all GDB files.
15904
5f4def5c
JB
159052020-01-01 Joel Brobecker <brobecker@adacore.com>
15906
15907 * copyright.py: Convert to Python 3.
15908
51fd4002
JB
159092020-01-01 Joel Brobecker <brobecker@adacore.com>
15910
15911 * copyright.py: Adapt after move of gnulib directory from gdb
15912 directory to toplevel directory.
15913
5fb651f2
JB
159142020-01-01 Joel Brobecker <brobecker@adacore.com>
15915
15916 * copyright.py (main): Exit if run from the wrong directory.
15917
5dd8bf88
JB
159182020-01-01 Joel Brobecker <brobecker@adacore.com>
15919
15920 * top.c (print_gdb_version): Change copyright year to 2020.
15921
9f71dacb 159222020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15923
9f71dacb 15924 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15925
9f71dacb 15926For older changes see ChangeLog-2019.
c906108c
SS
15927\f
15928Local Variables:
15929mode: change-log
15930left-margin: 8
15931fill-column: 74
15932version-control: never
57da7796 15933coding: utf-8
c906108c 15934End: