gdb: remove `other` parameter in read_core_file_mappings parameter
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
4 in `loop_cb` parameter.
5 * gdbarch.c: Re-generate.
6 * gdbarch.h: Re-generate.
7 * arch-utils.c (default_read_core_file_mappings): Remove `other`
8 parameter.
9 * arch-utils.h (default_read_core_file_mappings): Likewise.
10 * corelow.c (core_target::build_file_mappings): Likewise.
11 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
12 (linux_core_info_proc_mappings): Likewise.
13
14 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
17 * NEWS: Mention new options.
18 * f-array-walker.h: New file.
19 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
20 (repack_array_slices): New static global.
21 (show_repack_array_slices): New function.
22 (fortran_array_slicing_debug): New static global.
23 (show_fortran_array_slicing_debug): New function.
24 (value_f90_subarray): Delete.
25 (skip_undetermined_arglist): Delete.
26 (class fortran_array_repacker_base_impl): New class.
27 (class fortran_lazy_array_repacker_impl): New class.
28 (class fortran_array_repacker_impl): New class.
29 (fortran_value_subarray): Complete rewrite.
30 (set_fortran_list): New static global.
31 (show_fortran_list): Likewise.
32 (_initialize_f_language): Register new commands.
33 (fortran_adjust_dynamic_array_base_address_hack): New function.
34 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
35 Declare.
36 * f-valprint.c: Include 'f-array-walker.h'.
37 (class fortran_array_printer_impl): New class.
38 (f77_print_array_1): Delete.
39 (f77_print_array): Delete.
40 (fortran_print_array): New.
41 (f_value_print_inner): Update to call fortran_print_array.
42 * gdbtypes.c: Include 'f-lang.h'.
43 (resolve_dynamic_type_internal): Call
44 fortran_adjust_dynamic_array_base_address_hack.
45
46 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * breakpoint.c (struct watch_options): New struct.
49 (watch_option_defs): New static global.
50 (make_watch_options_def_group): New function.
51 (watch_maybe_just_location): Convert option parsing.
52 (watch_command_completer): New function.
53 (_initialize_breakpoint): Build help text using options mechanism.
54
55 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
58 (watch_command_1): Update parameter types. Convert locals to
59 bool.
60 (watch_command_wrapper): Change parameter type.
61 (watch_maybe_just_location): Change locals to bool.
62 (rwatch_command_wrapper): Update parameter type.
63 (awatch_command_wrapper): Update parameter type.
64 * breakpoint.h (watch_command_wrapper): Change parameter type.
65 (rwatch_command_wrapper): Update parameter type.
66 (awatch_command_wrapper): Update parameter type.
67 * eval.c (fetch_subexp_value): Change parameter type.
68 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
69 'false' not '0'.
70 * value.h (fetch_subexp_value): Change parameter type in
71 declaration.
72
73 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
76 skip_spaces.
77
78 2020-11-18 Keith Seitz <keiths@redhat.com>
79
80 * linux-tdep.c (dump_note_entry_p): Return true instead of
81 checking `filename'.
82
83 2020-11-18 Tom de Vries <tdevries@suse.de>
84
85 * debuginfod-support.c (debuginfod_source_query)
86 (debuginfod_debuginfo_query): Also do early exit if
87 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
88
89 2020-11-18 Tom de Vries <tdevries@suse.de>
90
91 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
92 warning.
93
94 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * gdbtypes.h (get_array_bounds): Return bool, adjust some
97 callers. Move doc here.
98 * gdbtypes.c (get_array_bounds): Return bool
99
100 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
103 assert.
104 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
105 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
106 case to the default.
107
108 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 * printcmd.c: Include 'safe-ctype.c'.
111 (skip_over_slash_fmt): New function.
112 (print_command_completer): Call skip_over_slash_fmt.
113 (display_and_x_command_completer): New function.
114 (_initialize_printcmd): Add command completion for 'x' and
115 'display'.
116
117 2020-11-16 Pedro Alves <pedro@palves.net>
118
119 * frame.c (get_prev_frame): Move get_frame_id call from here ...
120 (get_prev_frame_always_1): ... to here.
121 * inline-frame.c (inline_frame_this_id): Mention
122 get_prev_frame_always_1 in comment.
123
124 2020-11-15 Joel Brobecker <brobecker@adacore.com>
125
126 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
127 handling.
128 (value_less): Add fixed-point handling.
129
130 2020-11-15 Joel Brobecker <brobecker@adacore.com>
131
132 * eval.c (binop_promote): Add fixed-point type handling.
133 * valarith.c (fixed_point_binop): New function.
134 (scalar_binop): Add fixed-point type handling.
135 (value_neg): Add fixed-point type handling.
136 * valops.c (value_cast_to_fixed_point): New function.
137 (value_cast): Add fixed-point type handling.
138
139 2020-11-15 Joel Brobecker <brobecker@adacore.com>
140
141 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
142 range types.
143 * c-typeprint.c (c_type_print_varspec_prefix)
144 (c_type_print_varspec_suffix, c_type_print_base_1): Add
145 TYPE_CODE_FIXED_POINT handling.
146 * p-typeprint.c (pascal_type_print_varspec_prefix)
147 (pascal_type_print_varspec_suffix): Likewise.
148 * typeprint.c (print_type_fixed_point): New function.
149 * typeprint.h (print_type_fixed_point): Add declaration.
150
151 2020-11-15 Joel Brobecker <brobecker@adacore.com>
152
153 * printcmd.c (print_scalar_formatted): Add fixed-point type
154 handling when options->format is set.
155
156 2020-11-15 Joel Brobecker <brobecker@adacore.com>
157
158 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
159 * dwarf2/read.c (get_dwarf2_rational_constant)
160 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
161 (has_zero_over_zero_small_attribute): New functions.
162 read_base_type, set_die_type): Add fixed-point type handling.
163 * gdb-gdb.py.in: Add fixed-point type handling.
164 * gdbtypes.c: #include "gmp-utils.h".
165 (create_range_type, set_type_code): Add fixed-point type handling.
166 (init_fixed_point_type): New function.
167 (is_integral_type, is_scalar_type): Add fixed-point type handling.
168 (print_fixed_point_type_info): New function.
169 (recursive_dump_type, copy_type_recursive): Add fixed-point type
170 handling.
171 (fixed_point_type_storage): New typedef.
172 (fixed_point_objfile_key): New static global.
173 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
174 (fixed_point_type_base_type, fixed_point_scaling_factor): New
175 functions.
176 * gdbtypes.h: #include "gmp-utils.h".
177 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
178 (union type_specific) <fixed_point_info>: New field.
179 (struct fixed_point_type_info): New struct.
180 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
181 (init_fixed_point_type, is_fixed_point_type)
182 (fixed_point_type_base_type, fixed_point_scaling_factor)
183 (allocate_fixed_point_type_info): Add declarations.
184 * valprint.c (generic_val_print_fixed_point): New function.
185 (generic_value_print): Add fixed-point type handling.
186 * value.c (value_as_address, unpack_long): Add fixed-point type
187 handling.
188
189 2020-11-15 Joel Brobecker <brobecker@adacore.com>
190
191 * utils.h (uinteger_pow): Add declaration.
192 * utils.c (uinteger_pow): Moved here (without changes)...
193 * valarith.c (uinteger_pow): ... from here.
194
195 2020-11-15 Joel Brobecker <brobecker@adacore.com>
196
197 * gmp-utils.h, gmp-utils.c: New file.
198 * unittests/gmp-utils-selftests.c: New file.
199 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
200 unittests/gmp-utils-selftests.c.
201 (COMMON_SFILES) Add gmp-utils.c.
202 (HFILES_NO_SRCDIR): Add gmp-utils.h.
203
204 2020-11-15 Joel Brobecker <brobecker@adacore.com>
205
206 * configure.ac: Generate an error if a usable GMP library
207 could not be found.
208 * configure: Regenerate.
209
210 2020-11-15 Joel Brobecker <brobecker@adacore.com>
211
212 * configure.ac: Add support for --with-libgmp-prefix.
213 * Makefile.in (LIBGMP): New variable.
214 (CLIBS): Include $(LIBGMP).
215 * configure, config.in: Regenerate
216
217 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 PR cli/26879
220 * f-exp.y (COMPLETE): New token.
221 (exp): Two new rules for tab-completion.
222 (saw_name_at_eof): New static global.
223 (last_was_structop): Likewise.
224 (yylex): Set new variables, and return COMPLETE token at the end
225 of the input stream in some cases.
226
227 2020-11-14 Tom Tromey <tom@tromey.com>
228
229 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
230
231 2020-11-14 Tom Tromey <tom@tromey.com>
232
233 * opencl-lang.c (opencl_component_ref): Make "comps" const.
234
235 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
238
239 2020-11-13 Tom Tromey <tom@tromey.com>
240
241 * c-lang.c (convert_ucn, convert_octal, convert_hex)
242 (convert_escape, parse_one_string): Constify.
243
244 2020-11-13 Keith Seitz <keiths@redhat.com>
245
246 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
247 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
248 outside of ELF segments" warning for debugin
249
250 2020-11-13 Keith Seitz <keiths@redhat.com>
251
252 PR gdb/23034
253 * elfread.c (elf_symfile_segments): Output a BFD file name
254 for the "Loadable section ... outside of ELF segments" warning.
255
256 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
257
258 PR gdb/26835
259 * arm-tdep.c (class arm_instruction_reader): New.
260 (target_arm_instruction_reader): New.
261 (arm_analyze_prologue): Add instruction reader parameter and use
262 it. Use arm_expand_immediate.
263 (class target_arm_instruction_reader): Adjust.
264 (arm_skip_prologue): Adjust.
265 (arm_expand_immediate): New.
266 (arm_scan_prologue): Adjust.
267 (arm_analyze_prologue_test): New.
268 (class test_arm_instruction_reader): New.
269
270 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * f-lang.c (fortran_argument_convert): Add declaration. Add
273 header comment, taken from f-lang.h. Make static.
274 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
275 (fortran_argument_convert): Delete declaration.
276
277 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * ada-exp.y (find_primitive_type): Make parameter const.
280 * ada-lang.c (enum ada_primitive_types): Delete.
281 (ada_language::language_arch_info): Update.
282 * c-lang.c (enum c_primitive_types): Delete.
283 (c_language_arch_info): Update.
284 (enum cplus_primitive_types): Delete.
285 (cplus_language::language_arch_info): Update.
286 * d-lang.c (enum d_primitive_types): Delete.
287 (d_language::language_arch_info): Update.
288 * f-lang.c (enum f_primitive_types): Delete.
289 (f_language::language_arch_info): Update.
290 * go-lang.c (enum go_primitive_types): Delete.
291 (go_language::language_arch_info): Update.
292 * language.c (auto_or_unknown_language::language_arch_info):
293 Update.
294 (language_gdbarch_post_init): Use obstack_new, use array indexing.
295 (language_string_char_type): Add header comment, call function in
296 language_arch_info.
297 (language_bool_type): Likewise
298 (language_arch_info::bool_type): Define.
299 (language_lookup_primitive_type_1): Delete.
300 (language_lookup_primitive_type): Rewrite as a templated function
301 to call function in language_arch_info, then instantiate twice.
302 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
303 (language_arch_info::lookup_primitive_type_and_symbol): Define.
304 (language_arch_info::lookup_primitive_type): Define twice with
305 different signatures.
306 (language_arch_info::lookup_primitive_type_as_symbol): Define.
307 (language_lookup_primitive_type_as_symbol): Rewrite to call a
308 member function in language_arch_info.
309 * language.h (language_arch_info): Complete rewrite.
310 (language_lookup_primitive_type): Make templated.
311 * m2-lang.c (enum m2_primitive_types): Delete.
312 (m2_language::language_arch_info): Update.
313 * opencl-lang.c (OCL_P_TYPE): Delete.
314 (enum opencl_primitive_types): Delete.
315 (opencl_type_data): Delete.
316 (builtin_opencl_type): Delete.
317 (lookup_opencl_vector_type): Update.
318 (opencl_language::language_arch_info): Update, lots of content
319 moved from...
320 (build_opencl_types): ...here. This function is now deleted.
321 (_initialize_opencl_language): Delete.
322 * p-lang.c (enum pascal_primitive_types): Delete.
323 (pascal_language::language_arch_info): Update.
324 * rust-lang.c (enum rust_primitive_types): Delete.
325 (rust_language::language_arch_info): Update.
326
327 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
330 dwarf2_queue_guard.
331
332 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
335 comment.
336
337 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * dwarf2/read.c (dwarf_read_debug_printf,
340 dwarf_read_debug_printf_v): New macros, use throughout the file.
341
342 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
343
344 * arc-linux-tdep.c (collect_register): Populate "eret" by
345 "pc" value from the regcache when asked for "pc" value.
346
347 2020-11-12 Tom Tromey <tom@tromey.com>
348
349 PR rust/26799:
350 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
351 exist.
352
353 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
354
355 * features/Makefile (XMLTOC): Add rx.xml.
356 (FEATURE_XMLFILES): Remove rx.xml.
357 (FEATURE_CFILES rule): Pass '-single-feature' flag.
358 * features/rx.c: Regenerate.
359 * features/rx.xml: Wrap in `target` tags, and reindent.
360 * target-descriptions.c (struct maint_print_c_tdesc_options): New
361 structure.
362 (maint_print_c_tdesc_opt_def): New typedef.
363 (maint_print_c_tdesc_opt_defs): New static global.
364 (make_maint_print_c_tdesc_options_def_group): New function.
365 (maint_print_c_tdesc_cmd): Make use of command line flags, only
366 print single feature C file for target descriptions containing a
367 single feature.
368 (maint_print_c_tdesc_cmd_completer): New function.
369 (_initialize_target_descriptions): Update call to register command
370 completer, and include command line flag in help text.
371
372 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
375 numbers.
376 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
377 enum values.
378
379 2020-11-10 Tom Tromey <tom@tromey.com>
380
381 * value.h (internalvar_name): Update.
382 * value.c (internalvar_name): Make return type const.
383
384 2020-11-10 Tom Tromey <tom@tromey.com>
385
386 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
387 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
388 const.
389
390 2020-11-10 Tom Tromey <tom@tromey.com>
391
392 * objc-lang.h (value_nsstring): Update.
393 * objc-lang.c (value_nsstring): Make "ptr" const.
394
395 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * expprint.c (print_subexp_funcall): Increment expression position
398 after reading argument count.
399 * f-lang.c (print_subexp_f): Skip over opcode before calling
400 common function.
401 (dump_subexp_body_f): Likewise.
402
403 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
404
405 PR python/26832
406 * configure: Regenerate.
407 * configure.ac: Check for python modules ctypes instead of
408 itertools.
409
410 2020-11-06 Pedro Alves <pedro@palves.net>
411
412 * macroexp.c (struct macro_buffer): Split in two classes. Add
413 uses adjusted.
414 (struct shared_macro_buffer): New, factored out from struct
415 macro_buffer.
416 (struct growable_macro_buffer): New, factored out from struct
417 macro_buffer.
418 (set_token, get_comment, get_identifier, get_pp_number)
419 (get_character_constant, get_string_literal, get_punctuator)
420 (get_next_token_for_substitution): Constify parameters.
421 (substitute_args): Constify locals.
422
423 2020-11-05 Tom Tromey <tom@tromey.com>
424
425 * dwarf2/read.c (read_cutu_die_from_dwo)
426 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
427 (build_type_psymtabs_1): Update.
428 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
429 parameter.
430 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
431 Don't read section. Add assert.
432
433 2020-11-04 Tom Tromey <tromey@adacore.com>
434
435 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
436
437 2020-11-04 Tom Tromey <tromey@adacore.com>
438
439 * ada-typeprint.c (ada_print_type): Handle __T types.
440
441 2020-11-04 Tom Tromey <tromey@adacore.com>
442
443 * dwarf2/read.c (add_partial_symbol, process_die):
444 Handle DW_TAG_array_type.
445 (is_type_tag_for_partial): Add "lang" parameter.
446 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
447
448 2020-11-04 Tom Tromey <tromey@adacore.com>
449
450 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
451
452 2020-11-04 Tom Tromey <tromey@adacore.com>
453
454 * dwarf2/read.c (read_array_type): Only apply stride to innermost
455 array.
456
457 2020-11-04 Tom Tromey <tromey@adacore.com>
458
459 * gdbtypes.c (update_static_array_size): Handle bit stride.
460
461 2020-11-04 Tom Tromey <tromey@adacore.com>
462
463 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
464
465 2020-11-04 Tom Tromey <tromey@adacore.com>
466
467 * ada-lang.c (ada_is_any_packed_array_type): New function.
468 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
469
470 2020-11-04 Tom Tromey <tromey@adacore.com>
471
472 * dwarf2/read.c (recognize_bound_expression)
473 (quirk_ada_thick_pointer): New functions.
474 (read_array_type): Call quirk_ada_thick_pointer.
475 (set_die_type): Add "skip_data_location" parameter.
476 (quirk_ada_thick_pointer): New function.
477 (process_structure_scope): Call quirk_ada_thick_pointer.
478 * ada-lang.c (ada_is_unconstrained_packed_array_type)
479 (decode_packed_array_bitsize): Handle thick pointers without
480 parallel types.
481 (ada_is_gnat_encoded_packed_array_type): Rename from
482 ada_is_packed_array_type.
483 (ada_is_constrained_packed_array_type): Update.
484 * ada-valprint.c (ada_val_print_gnat_array): Remove.
485 (ada_value_print_1): Use ada_get_decoded_value.
486
487 2020-11-04 Tom Tromey <tromey@adacore.com>
488
489 * ada-lang.c (recursively_update_array_bitsize): New function.
490 (decode_constrained_packed_array_type): Call it.
491
492 2020-11-04 Tom Tromey <tromey@adacore.com>
493
494 * ada-lang.c (to_fixed_array_type): Error if
495 decode_constrained_packed_array_type returns NULL.
496
497 2020-11-04 Tom Tromey <tromey@adacore.com>
498
499 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
500
501 2020-11-02 Tom Tromey <tromey@adacore.com>
502
503 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
504 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
505 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
506 * amd64-ravenscar-thread.c: New file.
507 * amd64-ravenscar-thread.h: New file.
508 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
509 * configure.tgt (amd64_tobjs): Add ravenscar objects.
510
511 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * main.c (execute_cmdargs): New function.
514 (captured_main_1): Make use of execute_cmdargs.
515
516 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * NEWS: Mention changes to config file search path.
519 * main.c
520
521 2020-11-02 Tom Tromey <tromey@adacore.com>
522
523 * python/python.c: Consolidate two HAVE_PYTHON blocks.
524 (python_GdbModuleDef): Move earlier. Now static.
525 (do_start_initialization): Consolidate some IS_PY3K blocks.
526
527 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
528
529 * aarch64-linux-tdep.c: Fix indentation.
530 * aarch64-ravenscar-thread.c: Fix indentation.
531 * aarch64-tdep.c: Fix indentation.
532 * aarch64-tdep.h: Fix indentation.
533 * ada-lang.c: Fix indentation.
534 * ada-lang.h: Fix indentation.
535 * ada-tasks.c: Fix indentation.
536 * ada-typeprint.c: Fix indentation.
537 * ada-valprint.c: Fix indentation.
538 * ada-varobj.c: Fix indentation.
539 * addrmap.c: Fix indentation.
540 * addrmap.h: Fix indentation.
541 * agent.c: Fix indentation.
542 * aix-thread.c: Fix indentation.
543 * alpha-bsd-nat.c: Fix indentation.
544 * alpha-linux-tdep.c: Fix indentation.
545 * alpha-mdebug-tdep.c: Fix indentation.
546 * alpha-nbsd-tdep.c: Fix indentation.
547 * alpha-obsd-tdep.c: Fix indentation.
548 * alpha-tdep.c: Fix indentation.
549 * amd64-bsd-nat.c: Fix indentation.
550 * amd64-darwin-tdep.c: Fix indentation.
551 * amd64-linux-nat.c: Fix indentation.
552 * amd64-linux-tdep.c: Fix indentation.
553 * amd64-nat.c: Fix indentation.
554 * amd64-obsd-tdep.c: Fix indentation.
555 * amd64-tdep.c: Fix indentation.
556 * amd64-windows-tdep.c: Fix indentation.
557 * annotate.c: Fix indentation.
558 * arc-tdep.c: Fix indentation.
559 * arch-utils.c: Fix indentation.
560 * arch/arm-get-next-pcs.c: Fix indentation.
561 * arch/arm.c: Fix indentation.
562 * arm-linux-nat.c: Fix indentation.
563 * arm-linux-tdep.c: Fix indentation.
564 * arm-nbsd-tdep.c: Fix indentation.
565 * arm-pikeos-tdep.c: Fix indentation.
566 * arm-tdep.c: Fix indentation.
567 * arm-tdep.h: Fix indentation.
568 * arm-wince-tdep.c: Fix indentation.
569 * auto-load.c: Fix indentation.
570 * auxv.c: Fix indentation.
571 * avr-tdep.c: Fix indentation.
572 * ax-gdb.c: Fix indentation.
573 * ax-general.c: Fix indentation.
574 * bfin-linux-tdep.c: Fix indentation.
575 * block.c: Fix indentation.
576 * block.h: Fix indentation.
577 * blockframe.c: Fix indentation.
578 * bpf-tdep.c: Fix indentation.
579 * break-catch-sig.c: Fix indentation.
580 * break-catch-syscall.c: Fix indentation.
581 * break-catch-throw.c: Fix indentation.
582 * breakpoint.c: Fix indentation.
583 * breakpoint.h: Fix indentation.
584 * bsd-uthread.c: Fix indentation.
585 * btrace.c: Fix indentation.
586 * build-id.c: Fix indentation.
587 * buildsym-legacy.h: Fix indentation.
588 * buildsym.c: Fix indentation.
589 * c-typeprint.c: Fix indentation.
590 * c-valprint.c: Fix indentation.
591 * c-varobj.c: Fix indentation.
592 * charset.c: Fix indentation.
593 * cli/cli-cmds.c: Fix indentation.
594 * cli/cli-decode.c: Fix indentation.
595 * cli/cli-decode.h: Fix indentation.
596 * cli/cli-script.c: Fix indentation.
597 * cli/cli-setshow.c: Fix indentation.
598 * coff-pe-read.c: Fix indentation.
599 * coffread.c: Fix indentation.
600 * compile/compile-cplus-types.c: Fix indentation.
601 * compile/compile-object-load.c: Fix indentation.
602 * compile/compile-object-run.c: Fix indentation.
603 * completer.c: Fix indentation.
604 * corefile.c: Fix indentation.
605 * corelow.c: Fix indentation.
606 * cp-abi.h: Fix indentation.
607 * cp-namespace.c: Fix indentation.
608 * cp-support.c: Fix indentation.
609 * cp-valprint.c: Fix indentation.
610 * cris-linux-tdep.c: Fix indentation.
611 * cris-tdep.c: Fix indentation.
612 * darwin-nat-info.c: Fix indentation.
613 * darwin-nat.c: Fix indentation.
614 * darwin-nat.h: Fix indentation.
615 * dbxread.c: Fix indentation.
616 * dcache.c: Fix indentation.
617 * disasm.c: Fix indentation.
618 * dtrace-probe.c: Fix indentation.
619 * dwarf2/abbrev.c: Fix indentation.
620 * dwarf2/attribute.c: Fix indentation.
621 * dwarf2/expr.c: Fix indentation.
622 * dwarf2/frame.c: Fix indentation.
623 * dwarf2/index-cache.c: Fix indentation.
624 * dwarf2/index-write.c: Fix indentation.
625 * dwarf2/line-header.c: Fix indentation.
626 * dwarf2/loc.c: Fix indentation.
627 * dwarf2/macro.c: Fix indentation.
628 * dwarf2/read.c: Fix indentation.
629 * dwarf2/read.h: Fix indentation.
630 * elfread.c: Fix indentation.
631 * eval.c: Fix indentation.
632 * event-top.c: Fix indentation.
633 * exec.c: Fix indentation.
634 * exec.h: Fix indentation.
635 * expprint.c: Fix indentation.
636 * f-lang.c: Fix indentation.
637 * f-typeprint.c: Fix indentation.
638 * f-valprint.c: Fix indentation.
639 * fbsd-nat.c: Fix indentation.
640 * fbsd-tdep.c: Fix indentation.
641 * findvar.c: Fix indentation.
642 * fork-child.c: Fix indentation.
643 * frame-unwind.c: Fix indentation.
644 * frame-unwind.h: Fix indentation.
645 * frame.c: Fix indentation.
646 * frv-linux-tdep.c: Fix indentation.
647 * frv-tdep.c: Fix indentation.
648 * frv-tdep.h: Fix indentation.
649 * ft32-tdep.c: Fix indentation.
650 * gcore.c: Fix indentation.
651 * gdb_bfd.c: Fix indentation.
652 * gdbarch.sh: Fix indentation.
653 * gdbarch.c: Re-generate
654 * gdbarch.h: Re-generate.
655 * gdbcore.h: Fix indentation.
656 * gdbthread.h: Fix indentation.
657 * gdbtypes.c: Fix indentation.
658 * gdbtypes.h: Fix indentation.
659 * glibc-tdep.c: Fix indentation.
660 * gnu-nat.c: Fix indentation.
661 * gnu-nat.h: Fix indentation.
662 * gnu-v2-abi.c: Fix indentation.
663 * gnu-v3-abi.c: Fix indentation.
664 * go32-nat.c: Fix indentation.
665 * guile/guile-internal.h: Fix indentation.
666 * guile/scm-cmd.c: Fix indentation.
667 * guile/scm-frame.c: Fix indentation.
668 * guile/scm-iterator.c: Fix indentation.
669 * guile/scm-math.c: Fix indentation.
670 * guile/scm-ports.c: Fix indentation.
671 * guile/scm-pretty-print.c: Fix indentation.
672 * guile/scm-value.c: Fix indentation.
673 * h8300-tdep.c: Fix indentation.
674 * hppa-linux-nat.c: Fix indentation.
675 * hppa-linux-tdep.c: Fix indentation.
676 * hppa-nbsd-nat.c: Fix indentation.
677 * hppa-nbsd-tdep.c: Fix indentation.
678 * hppa-obsd-nat.c: Fix indentation.
679 * hppa-tdep.c: Fix indentation.
680 * hppa-tdep.h: Fix indentation.
681 * i386-bsd-nat.c: Fix indentation.
682 * i386-darwin-nat.c: Fix indentation.
683 * i386-darwin-tdep.c: Fix indentation.
684 * i386-dicos-tdep.c: Fix indentation.
685 * i386-gnu-nat.c: Fix indentation.
686 * i386-linux-nat.c: Fix indentation.
687 * i386-linux-tdep.c: Fix indentation.
688 * i386-nto-tdep.c: Fix indentation.
689 * i386-obsd-tdep.c: Fix indentation.
690 * i386-sol2-nat.c: Fix indentation.
691 * i386-tdep.c: Fix indentation.
692 * i386-tdep.h: Fix indentation.
693 * i386-windows-tdep.c: Fix indentation.
694 * i387-tdep.c: Fix indentation.
695 * i387-tdep.h: Fix indentation.
696 * ia64-libunwind-tdep.c: Fix indentation.
697 * ia64-libunwind-tdep.h: Fix indentation.
698 * ia64-linux-nat.c: Fix indentation.
699 * ia64-linux-tdep.c: Fix indentation.
700 * ia64-tdep.c: Fix indentation.
701 * ia64-tdep.h: Fix indentation.
702 * ia64-vms-tdep.c: Fix indentation.
703 * infcall.c: Fix indentation.
704 * infcmd.c: Fix indentation.
705 * inferior.c: Fix indentation.
706 * infrun.c: Fix indentation.
707 * iq2000-tdep.c: Fix indentation.
708 * language.c: Fix indentation.
709 * linespec.c: Fix indentation.
710 * linux-fork.c: Fix indentation.
711 * linux-nat.c: Fix indentation.
712 * linux-tdep.c: Fix indentation.
713 * linux-thread-db.c: Fix indentation.
714 * lm32-tdep.c: Fix indentation.
715 * m2-lang.c: Fix indentation.
716 * m2-typeprint.c: Fix indentation.
717 * m2-valprint.c: Fix indentation.
718 * m32c-tdep.c: Fix indentation.
719 * m32r-linux-tdep.c: Fix indentation.
720 * m32r-tdep.c: Fix indentation.
721 * m68hc11-tdep.c: Fix indentation.
722 * m68k-bsd-nat.c: Fix indentation.
723 * m68k-linux-nat.c: Fix indentation.
724 * m68k-linux-tdep.c: Fix indentation.
725 * m68k-tdep.c: Fix indentation.
726 * machoread.c: Fix indentation.
727 * macrocmd.c: Fix indentation.
728 * macroexp.c: Fix indentation.
729 * macroscope.c: Fix indentation.
730 * macrotab.c: Fix indentation.
731 * macrotab.h: Fix indentation.
732 * main.c: Fix indentation.
733 * mdebugread.c: Fix indentation.
734 * mep-tdep.c: Fix indentation.
735 * mi/mi-cmd-catch.c: Fix indentation.
736 * mi/mi-cmd-disas.c: Fix indentation.
737 * mi/mi-cmd-env.c: Fix indentation.
738 * mi/mi-cmd-stack.c: Fix indentation.
739 * mi/mi-cmd-var.c: Fix indentation.
740 * mi/mi-cmds.c: Fix indentation.
741 * mi/mi-main.c: Fix indentation.
742 * mi/mi-parse.c: Fix indentation.
743 * microblaze-tdep.c: Fix indentation.
744 * minidebug.c: Fix indentation.
745 * minsyms.c: Fix indentation.
746 * mips-linux-nat.c: Fix indentation.
747 * mips-linux-tdep.c: Fix indentation.
748 * mips-nbsd-tdep.c: Fix indentation.
749 * mips-tdep.c: Fix indentation.
750 * mn10300-linux-tdep.c: Fix indentation.
751 * mn10300-tdep.c: Fix indentation.
752 * moxie-tdep.c: Fix indentation.
753 * msp430-tdep.c: Fix indentation.
754 * namespace.h: Fix indentation.
755 * nat/fork-inferior.c: Fix indentation.
756 * nat/gdb_ptrace.h: Fix indentation.
757 * nat/linux-namespaces.c: Fix indentation.
758 * nat/linux-osdata.c: Fix indentation.
759 * nat/netbsd-nat.c: Fix indentation.
760 * nat/x86-dregs.c: Fix indentation.
761 * nbsd-nat.c: Fix indentation.
762 * nbsd-tdep.c: Fix indentation.
763 * nios2-linux-tdep.c: Fix indentation.
764 * nios2-tdep.c: Fix indentation.
765 * nto-procfs.c: Fix indentation.
766 * nto-tdep.c: Fix indentation.
767 * objfiles.c: Fix indentation.
768 * objfiles.h: Fix indentation.
769 * opencl-lang.c: Fix indentation.
770 * or1k-tdep.c: Fix indentation.
771 * osabi.c: Fix indentation.
772 * osabi.h: Fix indentation.
773 * osdata.c: Fix indentation.
774 * p-lang.c: Fix indentation.
775 * p-typeprint.c: Fix indentation.
776 * p-valprint.c: Fix indentation.
777 * parse.c: Fix indentation.
778 * ppc-linux-nat.c: Fix indentation.
779 * ppc-linux-tdep.c: Fix indentation.
780 * ppc-nbsd-nat.c: Fix indentation.
781 * ppc-nbsd-tdep.c: Fix indentation.
782 * ppc-obsd-nat.c: Fix indentation.
783 * ppc-ravenscar-thread.c: Fix indentation.
784 * ppc-sysv-tdep.c: Fix indentation.
785 * ppc64-tdep.c: Fix indentation.
786 * printcmd.c: Fix indentation.
787 * proc-api.c: Fix indentation.
788 * producer.c: Fix indentation.
789 * producer.h: Fix indentation.
790 * prologue-value.c: Fix indentation.
791 * prologue-value.h: Fix indentation.
792 * psymtab.c: Fix indentation.
793 * python/py-arch.c: Fix indentation.
794 * python/py-bpevent.c: Fix indentation.
795 * python/py-event.c: Fix indentation.
796 * python/py-event.h: Fix indentation.
797 * python/py-finishbreakpoint.c: Fix indentation.
798 * python/py-frame.c: Fix indentation.
799 * python/py-framefilter.c: Fix indentation.
800 * python/py-inferior.c: Fix indentation.
801 * python/py-infthread.c: Fix indentation.
802 * python/py-objfile.c: Fix indentation.
803 * python/py-prettyprint.c: Fix indentation.
804 * python/py-registers.c: Fix indentation.
805 * python/py-signalevent.c: Fix indentation.
806 * python/py-stopevent.c: Fix indentation.
807 * python/py-stopevent.h: Fix indentation.
808 * python/py-threadevent.c: Fix indentation.
809 * python/py-tui.c: Fix indentation.
810 * python/py-unwind.c: Fix indentation.
811 * python/py-value.c: Fix indentation.
812 * python/py-xmethods.c: Fix indentation.
813 * python/python-internal.h: Fix indentation.
814 * python/python.c: Fix indentation.
815 * ravenscar-thread.c: Fix indentation.
816 * record-btrace.c: Fix indentation.
817 * record-full.c: Fix indentation.
818 * record.c: Fix indentation.
819 * reggroups.c: Fix indentation.
820 * regset.h: Fix indentation.
821 * remote-fileio.c: Fix indentation.
822 * remote.c: Fix indentation.
823 * reverse.c: Fix indentation.
824 * riscv-linux-tdep.c: Fix indentation.
825 * riscv-ravenscar-thread.c: Fix indentation.
826 * riscv-tdep.c: Fix indentation.
827 * rl78-tdep.c: Fix indentation.
828 * rs6000-aix-tdep.c: Fix indentation.
829 * rs6000-lynx178-tdep.c: Fix indentation.
830 * rs6000-nat.c: Fix indentation.
831 * rs6000-tdep.c: Fix indentation.
832 * rust-lang.c: Fix indentation.
833 * rx-tdep.c: Fix indentation.
834 * s12z-tdep.c: Fix indentation.
835 * s390-linux-tdep.c: Fix indentation.
836 * score-tdep.c: Fix indentation.
837 * ser-base.c: Fix indentation.
838 * ser-mingw.c: Fix indentation.
839 * ser-uds.c: Fix indentation.
840 * ser-unix.c: Fix indentation.
841 * serial.c: Fix indentation.
842 * sh-linux-tdep.c: Fix indentation.
843 * sh-nbsd-tdep.c: Fix indentation.
844 * sh-tdep.c: Fix indentation.
845 * skip.c: Fix indentation.
846 * sol-thread.c: Fix indentation.
847 * solib-aix.c: Fix indentation.
848 * solib-darwin.c: Fix indentation.
849 * solib-frv.c: Fix indentation.
850 * solib-svr4.c: Fix indentation.
851 * solib.c: Fix indentation.
852 * source.c: Fix indentation.
853 * sparc-linux-tdep.c: Fix indentation.
854 * sparc-nbsd-tdep.c: Fix indentation.
855 * sparc-obsd-tdep.c: Fix indentation.
856 * sparc-ravenscar-thread.c: Fix indentation.
857 * sparc-tdep.c: Fix indentation.
858 * sparc64-linux-tdep.c: Fix indentation.
859 * sparc64-nbsd-tdep.c: Fix indentation.
860 * sparc64-obsd-tdep.c: Fix indentation.
861 * sparc64-tdep.c: Fix indentation.
862 * stabsread.c: Fix indentation.
863 * stack.c: Fix indentation.
864 * stap-probe.c: Fix indentation.
865 * stubs/ia64vms-stub.c: Fix indentation.
866 * stubs/m32r-stub.c: Fix indentation.
867 * stubs/m68k-stub.c: Fix indentation.
868 * stubs/sh-stub.c: Fix indentation.
869 * stubs/sparc-stub.c: Fix indentation.
870 * symfile-mem.c: Fix indentation.
871 * symfile.c: Fix indentation.
872 * symfile.h: Fix indentation.
873 * symmisc.c: Fix indentation.
874 * symtab.c: Fix indentation.
875 * symtab.h: Fix indentation.
876 * target-float.c: Fix indentation.
877 * target.c: Fix indentation.
878 * target.h: Fix indentation.
879 * tic6x-tdep.c: Fix indentation.
880 * tilegx-linux-tdep.c: Fix indentation.
881 * tilegx-tdep.c: Fix indentation.
882 * top.c: Fix indentation.
883 * tracefile-tfile.c: Fix indentation.
884 * tracepoint.c: Fix indentation.
885 * tui/tui-disasm.c: Fix indentation.
886 * tui/tui-io.c: Fix indentation.
887 * tui/tui-regs.c: Fix indentation.
888 * tui/tui-stack.c: Fix indentation.
889 * tui/tui-win.c: Fix indentation.
890 * tui/tui-winsource.c: Fix indentation.
891 * tui/tui.c: Fix indentation.
892 * typeprint.c: Fix indentation.
893 * ui-out.h: Fix indentation.
894 * unittests/copy_bitwise-selftests.c: Fix indentation.
895 * unittests/memory-map-selftests.c: Fix indentation.
896 * utils.c: Fix indentation.
897 * v850-tdep.c: Fix indentation.
898 * valarith.c: Fix indentation.
899 * valops.c: Fix indentation.
900 * valprint.c: Fix indentation.
901 * valprint.h: Fix indentation.
902 * value.c: Fix indentation.
903 * value.h: Fix indentation.
904 * varobj.c: Fix indentation.
905 * vax-tdep.c: Fix indentation.
906 * windows-nat.c: Fix indentation.
907 * windows-tdep.c: Fix indentation.
908 * xcoffread.c: Fix indentation.
909 * xml-syscall.c: Fix indentation.
910 * xml-tdesc.c: Fix indentation.
911 * xstormy16-tdep.c: Fix indentation.
912 * xtensa-config.c: Fix indentation.
913 * xtensa-linux-nat.c: Fix indentation.
914 * xtensa-linux-tdep.c: Fix indentation.
915 * xtensa-tdep.c: Fix indentation.
916
917 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
918 Craig Blackmore <craig.blackmore@embecosm.com>
919
920 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
921 as an unsigned value.
922
923 2020-11-01 Tom Tromey <tom@tromey.com>
924
925 * dbxread.c (dbx_end_psymtab): Update.
926 * dwarf2/read.c (process_psymtab_comp_unit_reader)
927 (build_type_psymtabs_reader): Update.
928 * xcoffread.c (xcoff_end_psymtab): Update.
929 * ctfread.c (scan_partial_symbols): Update.
930 * psymtab.c (sort_pst_symbols): Remove.
931 (partial_symtab::end): Rename from end_psymtab_common. Inline
932 sort_pst_symbols.
933 * psympriv.h (struct partial_symtab) <end>: New method.
934 (end_psymtab_common): Don't declare.
935
936 2020-11-01 Tom Tromey <tom@tromey.com>
937
938 * symmisc.c (count_psyms): New function.
939 (print_objfile_statistics): Use it.
940 * psymtab.c (append_psymbol_to_list): Remove.
941 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
942 * objfiles.h (struct objstats) <n_psyms>: Remove.
943
944 2020-11-01 Tom Tromey <tom@tromey.com>
945
946 * dbxread.c (dbx_end_psymtab): Update.
947 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
948 (build_type_psymtabs_reader): Update.
949 * xcoffread.c (xcoff_end_psymtab): Update.
950 * ctfread.c (scan_partial_symbols): Update.
951 * psympriv.h (end_psymtab_common): Update.
952 * psymtab.c (end_psymtab_common): Remove objfile parameter.
953 (sort_pst_symbols): Likewise.
954
955 2020-11-01 Tom Tromey <tom@tromey.com>
956
957 * dbxread.c (dbx_symfile_read): Update.
958 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
959 * xcoffread.c (xcoff_initial_scan): Update.
960 * psympriv.h (init_psymbol_list): Don't declare.
961 * psymtab.c (init_psymbol_list): Remove.
962
963 2020-11-01 Joel Brobecker <brobecker@adacore.com>
964
965 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
966 gnat_encoded_fixed_type_info. Update all callers.
967
968 2020-11-01 Joel Brobecker <brobecker@adacore.com>
969
970 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
971 line too long.
972
973 2020-11-01 Joel Brobecker <brobecker@adacore.com>
974
975 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
976 cast_from_fixed. Update all callers.
977 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
978 Update all callers.
979 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
980 Update all callers.
981 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
982 ada_scaling_factor.
983 * ada-typeprint.c: Replace call to ada_scaling_factor by call
984 to print_gnat_encoded_fixed_point_type.
985 * ada-valprint.c: Likewise.
986
987 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
990 (debug_prefixed_printf): Add check of debug_displaced flag.
991 * linux-nat.c (linux_nat_debug_printf): Add check of
992 debug_linux_nat flag.
993
994 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * infrun.c (infrun_debug_printf_1): Remove.
997 (displaced_debug_printf_1): Remove.
998 (stop_all_threads): Use debug_prefixed_printf.
999 * infrun.h (infrun_debug_printf_1): Remove.
1000 (infrun_debug_printf): Use debug_prefixed_printf.
1001 (displaced_debug_printf_1): Remove.
1002 (displaced_debug_printf): Use debug_prefixed_printf.
1003 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1004 (linux_nat_debug_printf): Use debug_prefixed_printf.
1005
1006 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * configure: Re-generate.
1009 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1010 AC_LANG_PROGRAM.
1011
1012 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * configure: Re-generate.
1015
1016 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * configure: Re-generate.
1019
1020 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * configure: Re-generate.
1023
1024 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * configure: Re-generate.
1027
1028 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * acinclude.m4: Modernize.
1031 * configure: Re-generate.
1032
1033 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * configure.ac: Modernize.
1036 * configure: Re-generate.
1037
1038 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1041 * configure: Re-generate.
1042 * configure.ac: Remove AM_PROG_CC_STDC.
1043
1044 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1045
1046 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1047 AC_CANONICAL_SYSTEM.
1048 * configure: Re-generate.
1049
1050 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1051
1052 * infrun.h (displaced_debug_printf): New macro. Replace
1053 displaced debug prints throughout to use it.
1054 (displaced_debug_printf_1): New declaration.
1055 (displaced_step_dump_bytes): Return string, remove ui_file
1056 parameter, update all callers.
1057 * infrun.c (displaced_debug_printf_1): New function.
1058 (displaced_step_dump_bytes): Return string, remove ui_file
1059 parameter
1060
1061 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1064
1065 2020-10-30 Tom Tromey <tromey@adacore.com>
1066
1067 * Makefile.in (stamp-init): Depend on config.status.
1068
1069 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1070
1071 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1072
1073 2020-10-30 Pedro Alves <pedro@palves.net>
1074
1075 * thread.c (lookup_selected_frame): Move ...
1076 * frame.c (lookup_selected_frame): ... here.
1077
1078 2020-10-30 Pedro Alves <pedro@palves.net>
1079
1080 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1081 * frame.c
1082 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1083 Use save_selected_frame. Save language as well.
1084 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1085 Use restore_selected_frame, and restore language as well.
1086 (selected_frame_id, selected_frame_level): New.
1087 (selected_frame): Update comments.
1088 (save_selected_frame, restore_selected_frame): New.
1089 (get_selected_frame): Use lookup_selected_frame.
1090 (get_selected_frame_if_set): Delete.
1091 (select_frame): Record selected_frame_level and selected_frame_id.
1092 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1093 fields.
1094 (get_selected_frame): Make 'message' parameter optional.
1095 (get_selected_frame_if_set): Delete declaration.
1096 (select_frame): Update comments.
1097 (save_selected_frame, restore_selected_frame)
1098 (lookup_selected_frame): Declare.
1099 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1100 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1101 New field.
1102 (save_infcall_control_state): Use save_selected_frame.
1103 (restore_selected_frame): Delete.
1104 (restore_infcall_control_state): Use restore_selected_frame.
1105 * stack.c (select_frame_command_core, frame_command_core): Use
1106 get_selected_frame.
1107 * thread.c (restore_selected_frame): Rename to ...
1108 (lookup_selected_frame): ... this and make extern. Select the
1109 current frame if the frame level is -1.
1110 (scoped_restore_current_thread::restore): Also restore the
1111 language.
1112 (scoped_restore_current_thread::~scoped_restore_current_thread):
1113 Don't try/catch.
1114 (scoped_restore_current_thread::scoped_restore_current_thread):
1115 Save the language as well. Use save_selected_frame.
1116
1117 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1120 documentation.
1121 * gdbarch.h: Re-generate.
1122
1123 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1126 parameter.
1127 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1128 Likewise.
1129 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1130 Likewise.
1131 * arch-utils.c (default_displaced_step_hw_singlestep):
1132 Likewise.
1133 * arch-utils.h (default_displaced_step_hw_singlestep):
1134 Likewise.
1135 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1136 Likewise.
1137 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1138 Likewise.
1139 * gdbarch.c: Re-generate.
1140 * gdbarch.h: Re-generate.
1141 * infrun.c (resume_1): Adjust.
1142
1143 2020-10-29 Tom Tromey <tom@tromey.com>
1144
1145 * progspace.c (program_space::~program_space): Don't call
1146 exec_close.
1147
1148 2020-10-29 Tom Tromey <tom@tromey.com>
1149
1150 * exec.c (exec_target::close): Don't change current program
1151 space.
1152
1153 2020-10-29 Tom Tromey <tom@tromey.com>
1154
1155 * symfile.c (add_symbol_file_command): Update.
1156 * exec.c (program_space::add_target_sections): Rename.
1157 * symfile-mem.c (symbol_file_add_from_memory): Update.
1158 * progspace.h (struct program_space) <add_target_sections>:
1159 Declare new overload.
1160 * exec.h (add_target_sections_of_objfile): Don't declare.
1161
1162 2020-10-29 Tom Tromey <tom@tromey.com>
1163
1164 * solib.c (solib_map_sections): Update.
1165 * exec.c (program_space::add_target_sections): Now a method.
1166 (exec_file_attach): Update.
1167 * exec.h (add_target_sections): Don't declare.
1168 * progspace.h (struct program_space) <add_target_sections>:
1169 Declare.
1170
1171 2020-10-29 Tom Tromey <tom@tromey.com>
1172
1173 * progspace.h (struct program_space) <remove_target_sections>:
1174 Declare.
1175 * exec.c (program_space::remove_target_sections): Now a method.
1176 * exec.h (remove_target_sections): Don't declare.
1177
1178 2020-10-29 Tom Tromey <tom@tromey.com>
1179
1180 * inferior.c (delete_inferior): Update.
1181 * progspace.c (program_space::empty): Rename from
1182 program_space_empty_p. Return bool.
1183 * progspace.h (struct program_space) <empty>: New method.
1184 (program_space_empty_p): Don't declare.
1185
1186 2020-10-29 Tom Tromey <tom@tromey.com>
1187
1188 * progspace.c (program_space::~program_space): Don't call
1189 clear_program_space_solib_cache.
1190 (program_space::clear_solib_cache): Rename from
1191 clear_solib_cache.
1192 * solib.c (handle_solib_event): Update.
1193 * progspace.h (struct program_space) <clear_solib_cache>: New
1194 method.
1195 (clear_program_space_solib_cache): Don't declare.
1196
1197 2020-10-29 Tom Tromey <tom@tromey.com>
1198
1199 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1200 * target.c (info_target_command): Update.
1201 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1202 (symbol_file_clear, reread_symbols): Update.
1203 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1204 * stabsread.c (scan_file_globals): Update.
1205 * solib.c (update_solib_list): Update.
1206 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1207 (svr4_fetch_objfile_link_map, enable_break)
1208 (svr4_relocate_main_executable)
1209 (svr4_iterate_over_objfiles_in_search_order): Update.
1210 * solib-frv.c (lm_base, enable_break)
1211 (frv_relocate_main_executable): Update.
1212 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1213 (frv_fetch_objfile_link_map): Update.
1214 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1215 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1216 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1217 * remote.c (remote_target::get_offsets): Update.
1218 (remote_target::start_remote)
1219 (extended_remote_target::post_attach): Update.
1220 * objfiles.c (entry_point_address_query): Update.
1221 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1222 * minsyms.c (get_symbol_leading_char): Update.
1223 * frame.c (inside_main_func): Update.
1224 * progspace.h (symfile_objfile): Remove macro.
1225
1226 2020-10-29 Tom Tromey <tom@tromey.com>
1227
1228 * exec.c (exec_file_attach): Update.
1229 * progspace.c (program_space::exec_close): Update.
1230 * progspace.h (struct program_space) <ebfd>: Now a
1231 gdb_bfd_ref_ptr.
1232 <set_exec_bfd>: Change argument type.
1233 <exec_bfd>: Update.
1234
1235 2020-10-29 Tom Tromey <tom@tromey.com>
1236
1237 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1238 * symfile.c (reread_symbols): Update.
1239 * symfile-mem.c (add_symbol_file_from_memory_command)
1240 (add_vsyscall_page): Update.
1241 * source-cache.c (source_cache::get_plain_source_lines): Update.
1242 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1243 (svr4_current_sos_direct, svr4_exec_displacement)
1244 (svr4_relocate_main_executable): Update.
1245 (svr4_iterate_over_objfiles_in_search_order): Update.
1246 * solib-frv.c (enable_break2, enable_break): Update.
1247 * solib-dsbt.c (lm_base, enable_break): Update.
1248 * solib-darwin.c (find_program_interpreter)
1249 (darwin_solib_create_inferior_hook): Update.
1250 * sol-thread.c (rw_common, ps_pdmodel): Update.
1251 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1252 * remote.c (compare_sections_command)
1253 (remote_target::trace_set_readonly_regions): Update.
1254 * remote-sim.c (get_sim_inferior_data)
1255 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1256 (gdbsim_target_open, gdbsim_target::files_info): Update.
1257 * exec.h (exec_bfd): Remove macro.
1258 * progspace.c (initialize_progspace): Update.
1259 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1260 Update.
1261 * nto-procfs.c (nto_procfs_target::post_attach)
1262 (nto_procfs_target::create_inferior): Update.
1263 * maint.c (maintenance_info_sections): Update.
1264 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1265 Update.
1266 * infcmd.c (post_create_inferior): Update.
1267 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1268 (objfile_find_memory_regions): Update.
1269 * exec.c (validate_exec_file, exec_file_attach)
1270 (exec_read_partial_read_only, print_section_info): Update.
1271 * corelow.c (core_target_open): Update.
1272 * corefile.c (reopen_exec_file, validate_files): Update.
1273 * arm-tdep.c (gdb_print_insn_arm): Update.
1274 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1275 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1276 methods.
1277
1278 2020-10-29 Tom Tromey <tom@tromey.com>
1279
1280 * progspace.h (current_target_sections): Remove macro.
1281 * solib-svr4.c (scan_dyntag): Update.
1282 * solib-dsbt.c (scan_dyntag): Update.
1283 * exec.c (exec_target::close): Update.
1284 (add_target_sections, add_target_sections_of_objfile)
1285 (remove_target_sections, exec_target::get_section_table)
1286 (exec_target::files_info, set_section_command)
1287 (exec_set_section_address, exec_target::has_memory)
1288 (exec_target::has_memory): Update.
1289
1290 2020-10-29 Tom Tromey <tom@tromey.com>
1291
1292 * source-cache.c (source_cache::get_plain_source_lines): Use
1293 current_program_space.
1294 * corefile.c (reopen_exec_file): Use current_program_space.
1295 * exec.c (exec_file_attach): Use current_program_space.
1296 * exec.h (exec_bfd_mtime): Remove.
1297
1298 2020-10-29 Tom Tromey <tom@tromey.com>
1299
1300 * gcore.c (default_gcore_mach): Remove.
1301 (create_gcore_bfd): Update.
1302
1303 2020-10-29 Tom Tromey <tom@tromey.com>
1304
1305 * progspace.c (program_space::exec_close): New method, from
1306 exec_close in exec.c.
1307 * exec.c (exec_close): Move to progspace.c.
1308 (exec_target::close, exec_file_attach): Update.
1309 * progspace.h (struct program_space) <exec_close>: Declare
1310 method.
1311
1312 2020-10-29 Tom Tromey <tom@tromey.com>
1313
1314 * progspace.h (struct program_space) <exec_filename>: Rename from
1315 pspace_exec_filename. Now a unique_xmalloc_ptr.
1316 * inferior.c (print_selected_inferior): Update.
1317 (print_inferior): Update.
1318 * mi/mi-main.c (print_one_inferior): Update.
1319 * exec.h (exec_filename): Remove macro.
1320 * corefile.c (get_exec_file): Update.
1321 * exec.c (exec_close): Update.
1322 (exec_file_attach): Update.
1323 * progspace.c (clone_program_space): Update.
1324 (print_program_space): Update.
1325
1326 2020-10-29 Tom Tromey <tom@tromey.com>
1327
1328 * target-section.h (struct target_section): Add constructor.
1329 * exec.c (build_section_table, add_target_sections_of_objfile):
1330 Update.
1331 * corelow.c (core_target::build_file_mappings): Update.
1332
1333 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 PR gdb/19318
1336 * inferior.c (detach_inferior_command): Restore the current thread.
1337 (kill_inferior_command): Ditto.
1338
1339 2020-10-28 Tom de Vries <tdevries@suse.de>
1340
1341 PR symtab/26772
1342 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1343 map, check it in the "best match" loop.
1344
1345 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * m32c-tdep.c: Remove unused includes.
1348
1349 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * xtensa-tdep.c: Remove includes.
1352
1353 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1354
1355 * breakpoint.c (struct condition_command_opts): New struct.
1356 (condition_command_option_defs): New static global.
1357 (make_condition_command_options_def_group): New function.
1358 (condition_completer): Update to consider the '-force' flag.
1359 (condition_command): Use gdb::option for the '-force' flag.
1360
1361 2020-10-27 Tom de Vries <tdevries@suse.de>
1362
1363 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1364 symbols in section check.
1365
1366 2020-10-27 Tom de Vries <tdevries@suse.de>
1367
1368 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1369
1370 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1371
1372 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1373 * breakpoint.c: Update the help text of the 'condition' and 'break'
1374 commands.
1375 (set_breakpoint_condition): Take a new bool parameter
1376 to control whether condition definition should be forced even when
1377 the condition expression is invalid in all of the current locations.
1378 (condition_command): Update the call to 'set_breakpoint_condition'.
1379 (find_condition_and_thread): Take the "-force-condition" flag into
1380 account.
1381 * linespec.c (linespec_keywords): Add "-force-condition" as an
1382 element.
1383 (FORCE_KEYWORD_INDEX): New #define.
1384 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1385 as a keyword.
1386 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1387 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1388 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1389 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1390
1391 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1392
1393 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1394 * breakpoint.c (set_breakpoint_location_condition): New function.
1395 (set_breakpoint_condition): Disable a breakpoint location if parsing
1396 the condition string gives an error.
1397 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1398 (build_target_condition_list): Ditto.
1399 (build_target_command_list): Ditto.
1400 (build_bpstat_chain): Ditto.
1401 (print_one_breakpoint_location): Ditto.
1402 (print_one_breakpoint): Ditto.
1403 (breakpoint_1): Ditto.
1404 (bp_location::bp_location): Ditto.
1405 (locations_are_equal): Ditto.
1406 (update_breakpoint_locations): Ditto.
1407 (enable_disable_bp_num_loc): Ditto.
1408 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1409 (find_condition_and_thread_for_sals): New static function.
1410 (create_breakpoint): Call find_condition_and_thread_for_sals.
1411 (location_to_sals): Call find_condition_and_thread_for_sals instead
1412 of find_condition_and_thread.
1413
1414 2020-10-26 Tom de Vries <tdevries@suse.de>
1415
1416 * dwarf2/read.c (process_full_comp_unit): Call
1417 dwarf2_find_base_address.
1418
1419 2020-10-26 Tom Tromey <tromey@adacore.com>
1420
1421 * gdbtypes.c (create_range_type): Revert previous patch. Add
1422 comment.
1423
1424 2020-10-26 Pedro Alves <pedro@palves.net>
1425
1426 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1427 (my_waitpid): Use gdb::handle_eintr.
1428
1429 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * acinclude.m4: Update ptrace.m4 path.
1432 * ptrace.m4: Moved to gdbsupport.
1433
1434 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1437 instead of target_gdbarch.
1438
1439 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * jit.c (jit_reader_load_command): Pass current inferior.
1442 (jit_inferior_init): Change parameter type to inferior, use it.
1443 (jit_inferior_created): Remove.
1444 (jit_inferior_created_hook): Pass inferior parameter down.
1445 (_initialize_jit): Use jit_inferior_created_hook instead of
1446 jit_inferior_created.
1447 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1448 * infrun.c (follow_exec): Pass inferior to
1449 jit_inferior_created_hook.
1450
1451 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1452
1453 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1454 parameter and use it.
1455 (thread_db_inferior_created): Pass inferior argument.
1456
1457 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1458
1459 * aix-thread.c (aix_thread_inferior_created): Add inferior
1460 parameter.
1461 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1462 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1463 * jit.c (jit_inferior_created): Likewise.
1464 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1465 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1466 * observable.h (inferior_created): Likewise.
1467 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1468 * symfile-mem.c (add_vsyscall_page): Likewise.
1469 * infcmd.c (post_create_inferior): Pass inferior argument.
1470
1471 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1472
1473 GDB 10.1 released.
1474
1475 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1476
1477 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1478 to ada_check_typedef.
1479
1480 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * f-exp.y (f_parse): Rename to...
1483 (f_language::parser): ...this.
1484 * f-lang.c (f_get_encoding): Rename to...
1485 (f_language::get_encoding): ...this.
1486 (f_op_print_tab): Rename to...
1487 (f_language::op_print_tab): ...this.
1488 (exp_descriptor_f): Rename to...
1489 (f_language::exp_descriptor_tab): ...this.
1490 (class f_language): Moved to f-lang.h.
1491 (f_language::language_arch_info): New function, moved out of class
1492 declaration.
1493 (f_language::search_name_hash): Likewise.
1494 (f_language::lookup_symbol_nonlocal): Likewise.
1495 (f_language::get_symbol_name_matcher_inner): Likewise.
1496 * f-lang.h: Add 'valprint.h' include.
1497 (class f_language): Moved here from f-lang.c.
1498 * f-typeprint.c (f_type_print_args): Delete commented out
1499 declaration.
1500 (f_print_typedef): Rename to...
1501 (f_language::print_typedef): ...this.
1502 (f_print_type): Rename to...
1503 (f_language::print_type): ...this.
1504 (f_type_print_varspec_prefix): Delete declaration and rename to...
1505 (f_language::f_type_print_varspec_prefix): ...this.
1506 (f_type_print_varspec_suffix): Delete declaration and rename to...
1507 (f_language::f_type_print_varspec_suffix): ...this.
1508 (f_type_print_base): Delete declaration and rename to...
1509 (f_language::f_type_print_base): ...this.
1510 * f-valprint.c (f_value_print_inner): Rename to...
1511 (f_language::value_print_inner): ...this.
1512 * parse.c: Delete 'f-lang.h' include.
1513
1514 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * language.h (language_defn::print_type): Add variable names in
1517 declaration, and update header comment.
1518
1519 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * ada-lang.c (ada_language::demangle): Rename to...
1522 (ada_language::demangle_symbol): ...this.
1523 * c-lang.c (cplus_language::demangle): Rename to...
1524 (cplus_language::demangle_symbol): ...this.
1525 * d-lang.c (d_language::demangle): Rename to...
1526 (d_language::demangle_symbol): ...this.
1527 * f-lang.c (f_language::demangle): Rename to...
1528 (f_language::demangle_symbol): ...this.
1529 * go-lang.c (go_language::demangle): Rename to...
1530 (go_language::demangle_symbol): ...this.
1531 * language.c (language_demangle): Update call to demangle_symbol.
1532 (auto_or_unknown_language::demangle): Rename to...
1533 (auto_or_unknown_language::demangle_symbol): ...this.
1534 * language.h (language_defn::demangle): Rename to...
1535 (language_defn::demangle_symbol): ...this.
1536 * objc-lang.c (objc_language::demangle): Rename to...
1537 (objc_language::demangle_symbol): ...this.
1538 * rust-lang.c (rust_language::demangle): Rename to...
1539 (rust_language::demangle_symbol): ...this.
1540
1541 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1542
1543 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1544 (iterate_over_file_blocks): Replace use of macro with the macros
1545 definition.
1546
1547 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1550 * valprint.c (maybe_print_array_index): Replace use of macro with
1551 the macros definition.
1552
1553 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * ada-lang.c (ada_language::print_array_index): Call value_print
1556 directly.
1557 * language.c (language_defn::print_array_index): Likewise.
1558 * language.h (LA_VALUE_PRINT): Delete.
1559 * valprint.c (value_print): Call value_print on the
1560 current_language directly.
1561
1562 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * language.h (LA_PRINT_TYPEDEF): Delete.
1565 * typeprint.c (typedef_print): Call print_typedef directly on the
1566 current_language object.
1567
1568 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * m2-exp.y (m2_parse): Rename to...
1571 (m2_language::parser): ...this. Update function signature.
1572 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1573 (m2_op_print): Rename to...
1574 (m2_language::op_print_tab): ...this, and make const.
1575 (exp_descriptor_modula2): Rename to...
1576 (m2_language::exp_descriptor_modula2): ...this.
1577 (class m2_language): Move to m2-lang.h.
1578 (m2_language::language_arch_info): New function, moved out of
1579 class declaration.
1580 (m2_language::printchar): New function, body from m2_printchar.
1581 (m2_language::printstr): New function, moved out of class
1582 declaration.
1583 (m2_language::emitchar): Likewise.
1584 * m2-lang.h (m2_parse): Delete declaration.
1585 (m2_print_typedef): Delete declaration.
1586 (m2_value_print_inner): Delete declaration.
1587 (class m2_language): Class declaration moved from m2-lang.c,
1588 larger functions are left in m2-lang.c.
1589 * m2-typeprint.c (m2_print_typedef): Rename to...
1590 (m2_language::print_typedef): ...this, and update function
1591 signature.
1592 * m2-valprint.c (m2_value_print_inner): Rename to...
1593 (m2_language::value_print_inner): ...this, replace use of
1594 LA_PRINT_STRING with a direct call to printstr member function,
1595 and update recursive call.
1596
1597 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * language.c (default_is_string_type_p): Delete, implementation
1600 moved into auto_or_unknown_language::is_string_type_p.
1601 (unk_op_print_tab): Moved into
1602 auto_or_unknown_language::opcode_print_table.
1603 (unknown_language_arch_info): Delete, implementation moved into
1604 auto_or_unknown_language::language_arch_info.
1605 (class auto_or_unknown_language): New class, member functions
1606 copied from unknown_language class, with some updates.
1607 (class unknown_language): Most member functions moved into
1608 auto_or_unknown_language class. Inherit from
1609 auto_or_unknown_language class.
1610 (class auto_language): Inherit from auto_or_unknown_language.
1611 Delete most member functions.
1612
1613 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1614
1615 * stabsread.c (read_member_functions): Remove gdb_assert.
1616
1617 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1618
1619 * gdbtypes.c (init_complex_type): Check target type name.
1620
1621 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1622
1623 * target-debug.h (target_debug_print_struct_target_ops_p):
1624 Remove.
1625 (target_debug_print_async_callback_ftype_p): Remove.
1626 (target_debug_print_struct_trace_state_variable_p): Remove.
1627 (target_debug_print_struct_traceframe_info_p): Remove.
1628 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1629 (target_debug_print_enum_btrace_format): Remove.
1630 (target_debug_print_enum_info_proc_what): Remove.
1631 (target_debug_print_thread_info_pp): Remove.
1632
1633 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * target.h (struct target_ops) <make_corefile_notes>:
1636 Change return type to unique pointer.
1637 * target.c (dummy_make_corefile_notes): Likewise.
1638 * exec.c (struct exec_target) <make_corefile_notes>:
1639 Likewise.
1640 (exec_target::make_corefile_notes): Likewise.
1641 * procfs.c (class procfs_target) <make_corefile_notes>:
1642 Likewise.
1643 (procfs_do_thread_registers): Adjust to unique pointer.
1644 (struct procfs_corefile_thread_data): Add constructor.
1645 <note_data>: Change type to unique pointer.
1646 (procfs_corefile_thread_callback): Adjust to unique pointer.
1647 (procfs_target::make_corefile_notes): Change return type to
1648 unique pointer.
1649 * target-delegates.c: Re-generate.
1650 * gcore.c (write_gcore_file_1): Adjust.
1651 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1652 New.
1653
1654 2020-10-22 Tom de Vries <tdevries@suse.de>
1655
1656 * block.c (find_block_in_blockvector): Make sure the returned block
1657 contains pc.
1658
1659 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1660
1661 PR gdb/26693
1662 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1663 parameter.
1664 (load_cu): Pass existing CU.
1665 (process_imported_unit_die): Likewise.
1666 (follow_die_offset): Likewise.
1667
1668 2020-10-22 Luis Machado <luis.machado@linaro.org>
1669
1670 * corelow.c (core_target::xfer_partial): Also check for an empty
1671 m_core_unavailable_mappings vector.
1672
1673 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1674
1675 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1676 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1677 * f-exp.y (arglist): Allow for a series of subranges.
1678 (subrange): Add cases for subranges with strides.
1679 * f-lang.c (value_f90_subarray): Catch use of array strides and
1680 throw an error.
1681 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1682
1683 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * expprint.c (print_subexp_standard): Change enum range_type to
1686 range_flag and rename variables to match.
1687 (dump_subexp_body_standard): Likewise.
1688 * expression.h (enum range_type): Rename to...
1689 (enum range_flag): ...this.
1690 (range_types): Rename to...
1691 (range_flags): ...this.
1692 * f-lang.c (value_f90_subarray): Change enum range_type to
1693 range_flag and rename variables to match.
1694 * parse.c (operator_length_standard): Likewise.
1695 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1696 range_type to range_flag.
1697 * rust-lang.c (rust_evaluate_funcall): Likewise.
1698 (rust_range): Likewise.
1699 (rust_compute_range): Likewise.
1700 (rust_subscript): Likewise.
1701
1702 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * expprint.c (print_subexp_standard): Update to reflect changes to
1705 enum range_type.
1706 (dump_subexp_body_standard): Likewise.
1707 * expression.h (enum range_type): Convert to a bit field enum, and
1708 make the enum unsigned.
1709 * f-exp.y (subrange): Update to reflect changes to enum
1710 range_type.
1711 * f-lang.c (value_f90_subarray): Likewise.
1712 * parse.c (operator_length_standard): Likewise.
1713 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1714 * rust-lang.c (rust_range): Likewise.
1715 (rust_compute_range): Likewise.
1716 (rust_subscript): Likewise.
1717
1718 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1721 (displaced_step_in_progress): Fix comment.
1722
1723 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1724
1725 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1726 * gdbarch.c: Re-generate.
1727 * gdbarch.h: Re-generate.
1728 * gcore.c (write_gcore_file_1): Adjust.
1729 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1730 constructor.
1731 <note_data>: Change type to unique pointer.
1732 <abort_iteration>: Change type to bool.
1733 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1734 (fbsd_collect_thread_registers): Return void, adjust.
1735 (struct fbsd_corefile_thread_data): Add construtor.
1736 <note_data>: Change type to unique pointer.
1737 (fbsd_corefile_thread): Adjust.
1738 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1739 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1740 to unique pointer, adjust.
1741 (struct linux_collect_regset_section_cb_data): Add constructor.
1742 <note_data>: Change type to unique pointer.
1743 <abort_iteration>: Change type to bool.
1744 (linux_collect_thread_registers): Return void, adjust.
1745 (struct linux_corefile_thread_data): Add constructor.
1746 <note_data>: Change type to unique pointer.
1747 (linux_corefile_thread): Adjust.
1748 (linux_make_corefile_notes): Return unique pointer, adjust.
1749
1750 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1753 * gdbarch.c: Re-generate.
1754 * gdbarch.h: Re-generate.
1755 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1756 bool.
1757 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1758 Likewise.
1759 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1760 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1761 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1762 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1763
1764 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * gdbarch.sh: Make generated predicates return bool.
1767 * gdbarch.c: Re-generate.
1768 * gdbarch.h: Re-generate.
1769
1770 2020-10-20 Tom Tromey <tom@tromey.com>
1771
1772 * varobj-iter.h (struct varobj_item): Remove typedef.
1773
1774 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * infrun.c (currently_stepping): Change int to bool
1777 (maybe_software_singlestep): Likewise.
1778 (show_stop_on_solib_events): Likewise.
1779 (stepping_past_nonsteppable_watchpoint): Likewise.
1780 (displaced_step_in_progress_any_inferior): Likewise.
1781 (displaced_step_in_progress_thread): Likewise.
1782 (keep_going_stepped_thread): Likewise.
1783 (thread_still_needs_step_over): Likewise.
1784 (start_step_over): Likewise.
1785 (do_target_resume): Likewise.
1786 (resume_1): Likewise.
1787 (clear_proceed_status): Likewise.
1788 (thread_still_needs_step_over_bp): Likewise.
1789 (proceed): Likewise.
1790 (switch_back_to_stepped_thread): Likewise.
1791 (adjust_pc_after_break): Likewise.
1792 (stepped_in_from): Likewise.
1793 (handle_stop_requested): Likewise.
1794 (handle_syscall_event): Likewise.
1795 (handle_no_resumed): Likewise.
1796 (handle_inferior_event): Likewise.
1797 (finish_step_over): Likewise.
1798 (handle_signal_stop): Likewise.
1799 (process_event_stop_test): Likewise.
1800
1801 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * infrun.c (get_displaced_stepping_state): Fix comment.
1804
1805 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1806
1807 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1808
1809 2020-10-19 Tom Tromey <tromey@adacore.com>
1810
1811 PR tui/26719
1812 * tui/tui-winsource.h (struct tui_source_window_base)
1813 <refresh_window>: Rename from refresh_pad.
1814 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1815 Rename from refresh_pad.
1816 (tui_source_window_base::show_source_content)
1817 (tui_source_window_base::do_scroll_horizontal): Update.
1818
1819 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1820
1821 * thread.c (_initialize_thread): Fine-tune the help text of
1822 'info threads'.
1823
1824 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1825
1826 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1827
1828 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1829
1830 * breakpoint.c (handle_jit_event): Add an argument, change how
1831 `jit_event_handler` is called.
1832
1833 2020-10-17 Tom Tromey <tom@tromey.com>
1834
1835 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1836 (scan_xcoff_symtab): Update.
1837 * psymtab.h (class psymtab_storage) <global_psymbols,
1838 static_psymbols, current_global_psymbols,
1839 current_static_psymbols>: Remove.
1840 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1841 (match_partial_symbol, lookup_partial_symbol): Update.
1842 (print_partial_symbols): Change parameters.
1843 (dump_psymtab, recursively_search_psymtabs)
1844 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1845 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1846 (concat): Remove.
1847 (end_psymtab_common): Simplify.
1848 (append_psymbol_to_list): Change parameters.
1849 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1850 (init_psymbol_list): Simplify.
1851 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1852 * psympriv.h (struct partial_symtab) <empty>: New method.
1853 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1854 Remove.
1855 <global_psymbols, static_psymbols>: New members.
1856 <add_psymbol>: New methods.
1857 (add_psymbol_to_list): Don't declare.
1858 (psymbol_placement): Move earlier.
1859 * mdebugread.c (parse_partial_symbols): Update.
1860 (handle_psymbol_enumerators): Change parameters.
1861 (mdebug_expand_psymtab): Update.
1862 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1863 (add_partial_symbol): Update.
1864 * dwarf2/index-write.c (write_psymbols): Change parameters.
1865 (write_one_signatured_type): Update.
1866 (recursively_count_psymbols): Update.
1867 (recursively_write_psymbols): Update.
1868 (class debug_names) <recursively_write_psymbols>: Update.
1869 <write_psymbols>: Change parameters.
1870 <write_one_signatured_type>: Update.
1871 * dbxread.c (read_dbx_symtab): Update.
1872 (dbx_end_psymtab): Use partial_symtab::empty.
1873 * ctfread.c (struct ctf_context) <pst>: New member.
1874 (create_partial_symtab): Set it.
1875 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1876 (scan_partial_symbols): Use the psymtab's context. Update.
1877
1878 2020-10-17 Tom Tromey <tom@tromey.com>
1879
1880 * valprint.c (generic_value_print): Remove comment.
1881 * m2-valprint.c (m2_value_print_inner): Remove comment.
1882 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1883 type.
1884
1885 2020-10-17 Tom de Vries <tdevries@suse.de>
1886
1887 PR symtab/26317
1888 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1889 symbol main.
1890
1891 2020-10-14 Tom de Vries <tdevries@suse.de>
1892
1893 PR gdb/26733
1894 * solib.c (solib_contains_address_p): Handle
1895 'solib->sections == nullptr'.
1896
1897 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 PR gdb/26642
1900 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1901 target can't do async.
1902 * target.c (target_wait): Assert that we don't pass
1903 TARGET_WNOHANG to a target that can't async.
1904
1905 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1906
1907 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1908 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1909 * alpha-bsd-nat.c: Adjust include.
1910 * alpha-bsd-tdep.h: Adjust comment.
1911 * alpha-nbsd-tdep.c: Rename to ...
1912 * alpha-netbsd-tdep.c: ... this, adjust include.
1913 * amd64-nbsd-nat.c: Rename to ...
1914 * amd64-netbsd-nat.c: ... this, adjust include.
1915 * amd64-nbsd-tdep.c: Rename to ...
1916 * amd64-netbsd-tdep.c: ... this, adjust include.
1917 * amd64-tdep.h: Adjust include.
1918 * arm-nbsd-nat.c: Rename to ...
1919 * arm-netbsd-nat.c: ... this, adjust include.
1920 * arm-nbsd-tdep.c: Rename to ...
1921 * arm-netbsd-tdep.c: ... this, adjust include.
1922 * arm-nbsd-tdep.h: Rename to ...
1923 * arm-netbsd-tdep.h: ... this, adjust include.
1924 * configure.nat: Adjust file lists.
1925 * configure.tgt: Likewise.
1926 * hppa-nbsd-nat.c: Rename to ...
1927 * hppa-netbsd-nat.c: ... this, adjust include.
1928 * hppa-nbsd-tdep.c: Rename to ...
1929 * hppa-netbsd-tdep.c: ... this, adjust include.
1930 * i386-nbsd-nat.c: Rename to ...
1931 * i386-netbsd-nat.c: ... this, adjust include.
1932 * i386-nbsd-tdep.c: Rename to ...
1933 * i386-netbsd-tdep.c: ... this, adjust include.
1934 * m68k-bsd-nat.c: Adjust include.
1935 * mips-nbsd-nat.c: Rename to ...
1936 * mips-netbsd-nat.c: ... this, adjust include.
1937 * mips-nbsd-tdep.c: Rename to ...
1938 * mips-netbsd-tdep.c: ... this, adjust include.
1939 * mips-nbsd-tdep.h: Rename to ...
1940 * mips-netbsd-tdep.h: ... this.
1941 * nbsd-nat.c: Rename to ...
1942 * netbsd-nat.c: ... this, adjust include.
1943 * nbsd-nat.h: Rename to ...
1944 * netbsd-nat.h: ... this, adjust include.
1945 * nbsd-tdep.c: Rename to ...
1946 * netbsd-tdep.c: ... this, adjust include.
1947 * nbsd-tdep.h: Rename to ...
1948 * netbsd-tdep.h: ... this.
1949 * ppc-nbsd-nat.c: Rename to ...
1950 * ppc-netbsd-nat.c: ... this, adjust include.
1951 * ppc-nbsd-tdep.c: Rename to ...
1952 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1953 * ppc-nbsd-tdep.h: Rename to ...
1954 * ppc-netbsd-tdep.h: ... this.
1955 * sh-nbsd-nat.c: Rename to ...
1956 * sh-netbsd-nat.c: ... this, adjust include.
1957 * sh-nbsd-tdep.c: Rename to ...
1958 * sh-netbsd-tdep.c: ... this, adjust include.
1959 * sparc-nbsd-nat.c: Rename to ...
1960 * sparc-netbsd-nat.c: ... this.
1961 * sparc-nbsd-tdep.c: Rename to ...
1962 * sparc-netbsd-tdep.c: ... this, adjust include.
1963 * sparc64-nbsd-nat.c: Rename to ...
1964 * sparc64-netbsd-nat.c: ... this.
1965 * sparc64-nbsd-tdep.c: Rename to ...
1966 * sparc64-netbsd-tdep.c: ... this, adjust include.
1967 * sparc64-tdep.h: Adjust comment.
1968 * vax-bsd-nat.c: Adjust include.
1969 * vax-nbsd-tdep.c: Rename to ...
1970 * vax-netbsd-tdep.c: ... this, adjust include.
1971
1972 2020-10-12 Tom Tromey <tom@tromey.com>
1973
1974 * target.h (struct target_ops) <get_section_table>: Update.
1975 (target_get_section_table): Update.
1976 * target.c (target_get_section_table, target_section_by_addr)
1977 (memory_xfer_partial_1): Update.
1978 * target-section.h (target_section_table): Now an alias.
1979 * target-delegates.c: Rebuild.
1980 * target-debug.h (target_debug_print_target_section_table_p):
1981 Rename from target_debug_print_struct_target_section_table_p.
1982 * symfile.c (build_section_addr_info_from_section_table): Update.
1983 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1984 * solib-svr4.c (scan_dyntag): Update.
1985 * solib-dsbt.c (scan_dyntag): Update.
1986 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1987 Update.
1988 * record-full.c (record_full_core_target::xfer_partial): Update.
1989 * progspace.h (struct program_space) <target_sections>: Update.
1990 * exec.h (print_section_info): Update.
1991 * exec.c (exec_target::close, build_section_table)
1992 (add_target_sections, add_target_sections_of_objfile)
1993 (remove_target_sections, exec_on_vfork)
1994 (section_table_available_memory)
1995 (section_table_xfer_memory_partial)
1996 (exec_target::get_section_table, exec_target::xfer_partial)
1997 (print_section_info, set_section_command)
1998 (exec_set_section_address, exec_target::has_memory): Update.
1999 * corelow.c (core_target::build_file_mappings)
2000 (core_target::xfer_partial, core_target::info_proc_mappings)
2001 (core_target::info_proc_mappings): Update.
2002 * bfd-target.c (class target_bfd): Update
2003
2004 2020-10-12 Tom Tromey <tom@tromey.com>
2005
2006 * progspace.c (program_space::~program_space): Don't call
2007 clear_section_table.
2008 * exec.h (clear_section_table): Don't declare.
2009 * exec.c (exec_target::close): Update.
2010 (clear_section_table): Remove.
2011
2012 2020-10-12 Tom Tromey <tom@tromey.com>
2013
2014 * exec.c (add_target_sections_of_objfile): Simplify.
2015
2016 2020-10-12 Tom Tromey <tom@tromey.com>
2017
2018 * solib.c (solib_map_sections): Update.
2019 * record-full.c (record_full_core_open_1): Update.
2020 * exec.h (build_section_table): Return a target_section_table.
2021 * exec.c (exec_file_attach): Update.
2022 (build_section_table): Return a target_section_table.
2023 * corelow.c (core_target::core_target): Update.
2024 * bfd-target.c (target_bfd::target_bfd): Update.
2025
2026 2020-10-12 Tom Tromey <tom@tromey.com>
2027
2028 * target.c (target_section_by_addr, memory_xfer_partial_1):
2029 Update.
2030 * target-section.h (struct target_section_table): Use
2031 std::vector.
2032 * symfile.h (build_section_addr_info_from_section_table): Take a
2033 target_section_table.
2034 * symfile.c (build_section_addr_info_from_section_table): Take a
2035 target_section_table.
2036 * solist.h (struct so_list) <sections>: Change type.
2037 <sections_end>: Remove.
2038 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2039 (solib_contains_address_p): Update.
2040 * solib-svr4.c (scan_dyntag): Update.
2041 * solib-dsbt.c (scan_dyntag): Update.
2042 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2043 Update.
2044 * record-full.c (record_full_core_start, record_full_core_end):
2045 Remove.
2046 (record_full_core_sections): New global.
2047 (record_full_core_open_1, record_full_core_target::xfer_partial):
2048 Update.
2049 * exec.h (build_section_table, section_table_xfer_memory_partial)
2050 (add_target_sections): Take a target_section_table.
2051 * exec.c (exec_file_attach, clear_section_table): Update.
2052 (resize_section_table): Remove.
2053 (build_section_table, add_target_sections): Take a
2054 target_section_table.
2055 (add_target_sections_of_objfile, remove_target_sections)
2056 (exec_on_vfork): Update.
2057 (section_table_available_memory): Take a target_section_table.
2058 (section_table_read_available_memory): Update.
2059 (section_table_xfer_memory_partial): Take a target_section_table.
2060 (print_section_info, set_section_command)
2061 (exec_set_section_address, exec_target::has_memory): Update.
2062 * corelow.c (class core_target) <m_core_section_table,
2063 m_core_file_mappings>: Remove braces.
2064 <~core_target>: Remove.
2065 (core_target::core_target): Update.
2066 (core_target::~core_target): Remove.
2067 (core_target::build_file_mappings)
2068 (core_target::xfer_memory_via_mappings)
2069 (core_target::xfer_partial, core_target::info_proc_mappings):
2070 Update.
2071 * bfd-target.c (target_bfd::xfer_partial): Update.
2072 (target_bfd::target_bfd): Update.
2073 (target_bfd::~target_bfd): Remove.
2074
2075 2020-10-12 Tom Tromey <tom@tromey.com>
2076
2077 * target.h (struct target_section, struct target_section_table):
2078 Move to target-section.h.
2079 * target-section.h: New file.
2080
2081 2020-10-12 Pedro Alves <pedro@palves.net>
2082
2083 PR exp/26602
2084 * valops.c (struct struct_field_searcher): New.
2085 (update_search_result): Rename to ...
2086 (struct_field_searcher::update_result): ... this. Simplify
2087 prototype. Record all found fields.
2088 (do_search_struct_field): Rename to ...
2089 (struct_field_searcher::search): ... this. Simplify prototype.
2090 Maintain stack of visited baseclass path. Call update_result for
2091 fields too. Keep searching fields in baseclasses instead of
2092 stopping at the first found field.
2093 (search_struct_field): Use struct_field_searcher. When looking
2094 for fields, report ambiguous access attempts.
2095
2096 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * frame.c (inside_main_func): Check full symbols as well as
2099 minimal symbols.
2100
2101 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2102
2103 * ada-lang.c (advance_wild_match): Rewrite the function's
2104 description. Change the type of target0, t0 and t1 to char.
2105
2106 2020-10-09 Tom Tromey <tromey@adacore.com>
2107
2108 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2109
2110 2020-10-09 Tom Tromey <tromey@adacore.com>
2111
2112 * ada-lang.h (ada_encode): Return std::string.
2113 * ada-lang.c (ada_encode_1): Return std::string.
2114 (ada_encode): Likewise.
2115 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2116 Update.
2117 * ada-exp.y (block_lookup, write_var_or_type): Update.
2118
2119 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2120
2121 PR exp/26714
2122 * printcmd.c (print_formatted): Handle void results as
2123 unformatted prints.
2124
2125 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * arch/aarch32.c (aarch32_create_target_description): Release the
2128 target_desc_up as late as possible.
2129 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2130 * arch/amd64.c (amd64_create_target_description): Likewise.
2131 * arch/arc.c (arc_create_target_description): Return a
2132 target_desc_up, don't release it.
2133 * arch/arc.h (arc_create_target_description): Update declaration.
2134 (arc_lookup_target_description): Move target_desc_up into the
2135 cache, and return a borrowed pointer.
2136 * arch/arm.c (arm_create_target_description): Release the
2137 target_desc_up as late as possible.
2138 * arch/i386.c (i386_create_target_description): Likewise.
2139 * arch/riscv.h (riscv_create_target_description): Update
2140 declaration to match definition.
2141 * arch/tic6x.c (tic6x_create_target_description): Release the
2142 target_desc_up as late as possible.
2143
2144 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2147 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2148
2149 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2150
2151 * source.c (directory_command): Notify observers that "directories"
2152 parameter has changed.
2153
2154 2020-10-08 Tom Tromey <tom@tromey.com>
2155
2156 * cli/cli-cmds.c (print_disassembly): Style function name and
2157 addresses. Add _() wrappers.
2158
2159 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2160
2161 * NEWS: Mention ARC support in GDBserver.
2162
2163 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * arch/aarch32.c (aarch32_create_target_description): Release
2166 unique_ptr returned from allocate_target_description.
2167 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2168 * arch/amd64.c (amd64_create_target_description): Likewise.
2169 * arch/arc.c (arc_create_target_description): Likewise.
2170 * arch/arm.c (arm_create_target_description): Likewise.
2171 * arch/i386.c (i386_create_target_description): Likewise.
2172 * arch/riscv.c (riscv_create_target_description): Update return
2173 type. Handle allocate_target_description returning a unique_ptr.
2174 (riscv_lookup_target_description): Update to handle unique_ptr.
2175 * arch/tic6x.c (tic6x_create_target_description): Release
2176 unique_ptr returned from allocate_target_description.
2177 * features/microblaze-with-stack-protect.c: Regenerate.
2178 * features/microblaze.c: Regenerate.
2179 * features/mips-dsp-linux.c: Regenerate.
2180 * features/mips-linux.c: Regenerate.
2181 * features/mips64-dsp-linux.c: Regenerate.
2182 * features/mips64-linux.c: Regenerate.
2183 * features/nds32.c: Regenerate.
2184 * features/nios2.c: Regenerate.
2185 * features/or1k.c: Regenerate.
2186 * features/rs6000/powerpc-32.c: Regenerate.
2187 * features/rs6000/powerpc-32l.c: Regenerate.
2188 * features/rs6000/powerpc-403.c: Regenerate.
2189 * features/rs6000/powerpc-403gc.c: Regenerate.
2190 * features/rs6000/powerpc-405.c: Regenerate.
2191 * features/rs6000/powerpc-505.c: Regenerate.
2192 * features/rs6000/powerpc-601.c: Regenerate.
2193 * features/rs6000/powerpc-602.c: Regenerate.
2194 * features/rs6000/powerpc-603.c: Regenerate.
2195 * features/rs6000/powerpc-604.c: Regenerate.
2196 * features/rs6000/powerpc-64.c: Regenerate.
2197 * features/rs6000/powerpc-64l.c: Regenerate.
2198 * features/rs6000/powerpc-7400.c: Regenerate.
2199 * features/rs6000/powerpc-750.c: Regenerate.
2200 * features/rs6000/powerpc-860.c: Regenerate.
2201 * features/rs6000/powerpc-altivec32.c: Regenerate.
2202 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2203 * features/rs6000/powerpc-altivec64.c: Regenerate.
2204 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2205 * features/rs6000/powerpc-e500.c: Regenerate.
2206 * features/rs6000/powerpc-e500l.c: Regenerate.
2207 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2208 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2209 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2210 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2211 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2212 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2213 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2214 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2215 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2216 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2217 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2218 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2219 * features/rs6000/powerpc-vsx32.c: Regenerate.
2220 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2221 * features/rs6000/powerpc-vsx64.c: Regenerate.
2222 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2223 * features/rs6000/rs6000.c: Regenerate.
2224 * features/rx.c: Regenerate.
2225 * features/s390-gs-linux64.c: Regenerate.
2226 * features/s390-linux32.c: Regenerate.
2227 * features/s390-linux32v1.c: Regenerate.
2228 * features/s390-linux32v2.c: Regenerate.
2229 * features/s390-linux64.c: Regenerate.
2230 * features/s390-linux64v1.c: Regenerate.
2231 * features/s390-linux64v2.c: Regenerate.
2232 * features/s390-te-linux64.c: Regenerate.
2233 * features/s390-tevx-linux64.c: Regenerate.
2234 * features/s390-vx-linux64.c: Regenerate.
2235 * features/s390x-gs-linux64.c: Regenerate.
2236 * features/s390x-linux64.c: Regenerate.
2237 * features/s390x-linux64v1.c: Regenerate.
2238 * features/s390x-linux64v2.c: Regenerate.
2239 * features/s390x-te-linux64.c: Regenerate.
2240 * features/s390x-tevx-linux64.c: Regenerate.
2241 * features/s390x-vx-linux64.c: Regenerate.
2242 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2243 from allocate_target_description.
2244 * target-descriptions.c (allocate_target_description): Update
2245 return type.
2246 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2247 allocate_target_description.
2248
2249 2020-10-07 Tom Tromey <tromey@adacore.com>
2250
2251 * unittests/search-memory-selftests.c: New file.
2252 * Makefile.in (SELFTESTS_SRCS): Add
2253 unittests/search-memory-selftests.c.
2254
2255 2020-10-07 Tom Tromey <tromey@adacore.com>
2256
2257 PR gdb/16930:
2258 * findcmd.c (_initialize_mem_search): Mention that the range is
2259 inclusive.
2260
2261 2020-10-07 Tom Tromey <tromey@adacore.com>
2262
2263 * target.h (simple_search_memory): Don't declare.
2264 * target.c (simple_search_memory): Move to gdbsupport.
2265 (default_search_memory): Update.
2266 * remote.c (remote_target::search_memory): Update.
2267
2268 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * Makefile.in (COMPILE): Add CXXFLAGS.
2271 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2272 (check-headers): Add CXXFLAGS.
2273
2274 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2275
2276 * arc-linux-tdep.h: New file.
2277 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2278 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2279 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2280 arc_linux_gregset, arc_linux_v2_regset,
2281 arc_linux_iterate_over_regset_sections,
2282 arc_linux_core_read_description): Implement.
2283 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2284 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2285 (arc_gdbarch_features_create): Add.
2286 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2287
2288 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2289
2290 * arch/arc.h: Rename "arc_gdbarch_features" to
2291 "arc_arch_features".
2292 * arc-tdep.h: Likewise.
2293 * arc-tdep.c: Likewise.
2294
2295 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2296
2297 * infcmd.c (attach_command): Remove the redundant call to
2298 `clear_proceed_status`.
2299
2300 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2301
2302 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2303
2304 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2305
2306 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2307 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2308 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2309
2310 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2311
2312 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2313 (_initialize_break_catch_sig): Don't allocate array.
2314
2315 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * symtab.c (find_pc_line): Return unmapped addresses when the
2318 requested address is also unmapped.
2319
2320 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2323 tui/tui-out.h.
2324
2325 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2326
2327 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2328 type::is_vector instead of TYPE_VECTOR.
2329
2330 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2331
2332 * auto-load.c (auto_load_objfile_script_1): Don't use
2333 debugfile_holder as temporary variable when stripping drive
2334 letter.
2335
2336 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2337
2338 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2339 Add TYPE_CODE_COMPLEX.
2340 (amd64_windows_return_value): Fix types returned via XMM0.
2341
2342 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2343
2344 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2345 AArch64/ARM maintainers.
2346
2347 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * NEWS: Mention set/show debug event-loop.
2350
2351 2020-10-02 Tom Tromey <tromey@adacore.com>
2352
2353 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2354 REG_EXTENDED.
2355
2356 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2357
2358 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2359 * procfs.c (procfs_inferior_created): Remove.
2360 (_initialize_procfs): Don't register procfs_inferior_created.
2361
2362 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2363
2364 * async-event.c (invoke_async_signal_handlers): Add debug
2365 print.
2366 (check_async_event_handlers): Likewise.
2367 * event-top.c (show_debug_event_loop): New function.
2368 (_initialize_event_top): Register "set debug event-loop"
2369 setting.
2370
2371 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2374 * debug.h: Remove.
2375 * infrun.c: Include gdbsupport/common-debug.h.
2376 * linux-nat.c: Likewise.
2377
2378 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * async-event.h (create_async_signal_handler): Add name
2381 parameter.
2382 (create_async_event_handler): Likewise.
2383 * async-event.c (struct async_signal_handler) <name>: New field.
2384 (struct async_event_handler) <name>: New field.
2385 (create_async_signal_handler): Assign name.
2386 (create_async_event_handler): Assign name.
2387 * event-top.c (async_init_signals): Pass name when creating
2388 handler.
2389 * infrun.c (_initialize_infrun): Likewise.
2390 * record-btrace.c (record_btrace_push_target): Likewise.
2391 * record-full.c (record_full_open): Likewise.
2392 * remote-notif.c (remote_notif_state_allocate): Likewise.
2393 * remote.c (remote_target::open_1): Likewise.
2394 * tui/tui-win.c (tui_initialize_win): Likewise.
2395
2396 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2397
2398 * async-event.c (initialize_async_signal_handlers): Pass name to
2399 add_file_handler
2400 * event-top.c (ui_register_input_event_handler): Likewise.
2401 * linux-nat.c (linux_nat_target::async): Likewise.
2402 * run-on-main-thread.c (_initialize_run_on_main_thread):
2403 Likewise
2404 * ser-base.c (reschedule): Likewise.
2405 (ser_base_async): Likewise.
2406 * tui/tui-io.c: Likewise.
2407 * top.h (struct ui) <num>: New field.
2408 * top.c (highest_ui_num): New variable.
2409 (ui::ui): Initialize num.
2410
2411 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2412
2413 * observable.h <inferior_created>: Remove parameters. Update all
2414 listeners.
2415 * inferior.h (post_create_inferior): Remove target parameter.
2416 Update all callers.
2417
2418 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2419
2420 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2421 and DW_MACRO_undef_strx.
2422 (dwarf_decode_macros): Likewise
2423 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2424 which is the value of DW_AT_str_offsets_base.
2425 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2426 str_offsets_base.
2427
2428 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2429
2430 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2431
2432 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2433
2434 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2435 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2436
2437 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2438
2439 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2440
2441 2020-09-30 Tom de Vries <tdevries@suse.de>
2442
2443 PR symtab/26683
2444 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2445
2446 2020-09-30 Tom Tromey <tromey@adacore.com>
2447
2448 * dwarf2/read.c (handle_variant): Use constant_value.
2449
2450 2020-09-29 Tom Tromey <tom@tromey.com>
2451
2452 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2453 (read_file_scope, dwarf2_get_pc_bounds)
2454 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2455 (read_structure_type, handle_struct_member_die)
2456 (read_enumeration_type, read_array_type, read_set_type)
2457 (read_tag_pointer_type, read_tag_reference_type)
2458 (read_subroutine_type, read_base_type, read_subrange_type)
2459 (read_full_die_1, partial_die_info::read)
2460 (partial_die_info::read, by, new_symbol)
2461 (dwarf2_const_value_data, dwarf2_const_value_attr)
2462 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2463 (prepare_one_comp_unit): Update.
2464 * dwarf2/attribute.h (DW_UNSND): Remove.
2465
2466 2020-09-29 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2469 (read_subroutine_type, partial_die_info::read)
2470 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2471 (dwarf2_add_member_fn): Update.
2472 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2473 * dwarf2/attribute.c (attribute::as_boolean): New method.
2474
2475 2020-09-29 Tom Tromey <tom@tromey.com>
2476
2477 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2478 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2479 method.
2480 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2481
2482 2020-09-29 Tom Tromey <tom@tromey.com>
2483
2484 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2485 the attribute's form.
2486
2487 2020-09-29 Tom Tromey <tom@tromey.com>
2488
2489 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2490 (dwarf2_add_member_fn): Update.
2491 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2492 * dwarf2/attribute.c (attribute::defaulted): New method, from
2493 is_valid_DW_AT_defaulted.
2494
2495 2020-09-29 Tom Tromey <tom@tromey.com>
2496
2497 * dwarf2/read.c (dw2_get_file_names_reader)
2498 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2499 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2500 (dwarf2_symbol_mark_computed): Use as_unsigned.
2501 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2502 method.
2503 <form_is_section_offset>: Update comment.
2504
2505 2020-09-29 Tom Tromey <tom@tromey.com>
2506
2507 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2508 dwarf2_default_access_attribute. Look up attribute.
2509 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2510 Update.
2511
2512 2020-09-29 Tom Tromey <tom@tromey.com>
2513
2514 * dwarf2/read.c (skip_one_die): Update.
2515 (read_full_die_1): Change how reprocessing is done.
2516 (partial_die_info::read): Update.
2517 (read_attribute_value): Remove need_reprocess parameter.
2518 (read_attribute): Likewise.
2519 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2520 New method.
2521
2522 2020-09-29 Tom Tromey <tom@tromey.com>
2523
2524 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2525 (dwarf2_const_value_attr, dump_die_shallow)
2526 (dwarf2_fetch_constant_bytes): Update.
2527 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2528 comment.
2529 <set_address>: New method.
2530 (DW_ADDR): Remove.
2531 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2532 (attribute::as_string, attribute::as_address): Add assert.
2533
2534 2020-09-29 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2537 (read_attribute_reprocess, read_attribute_value): Update.
2538 (read_attribute): Clear requires_reprocessing.
2539 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2540 form_requires_reprocessing>: New methods.
2541 <string_init>: Clear requires_reprocessing.
2542 <set_unsigned_reprocess>: New method.
2543 <name>: Shrink by one bit.
2544 <requires_reprocessing>: New member.
2545 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2546 method.
2547
2548 2020-09-29 Tom Tromey <tom@tromey.com>
2549
2550 * dwarf2/read.c (read_attribute_value): Update.
2551 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2552 set_unsigned>: New methods.
2553 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2554
2555 2020-09-29 Tom Tromey <tom@tromey.com>
2556
2557 * dwarf2/read.c (get_alignment, read_array_order)
2558 (read_attribute_value, dwarf2_const_value_attr)
2559 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2560 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2561 New methods.
2562 (DW_SND): Remove.
2563
2564 2020-09-29 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2567 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2568 Update.
2569 * dwarf2/attribute.h (struct attribute) <as_signature,
2570 set_signature>: New methods.
2571 (DW_SIGNATURE): Remove.
2572
2573 2020-09-29 Tom Tromey <tom@tromey.com>
2574
2575 * dwarf2/read.c (read_call_site_scope)
2576 (handle_data_member_location, dwarf2_add_member_fn)
2577 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2578 (partial_die_info::read, read_attribute_value)
2579 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2580 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2581 (dwarf2_symbol_mark_computed): Update.
2582 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2583 methods.
2584 (DW_BLOCK): Remove.
2585 * dwarf2/attribute.c (attribute::form_is_block): Add
2586 DW_FORM_data16.
2587
2588 2020-09-29 Tom Tromey <tom@tromey.com>
2589
2590 * dwarf2/read.c (read_cutu_die_from_dwo)
2591 (read_attribute_reprocess, read_attribute_value, read_attribute)
2592 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2593 (dwarf2_fetch_constant_bytes): Update.
2594 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2595 <set_string_noncanonical, set_string_canonical>: New methods.
2596 <string_is_canonical>: Update comment.
2597 <canonical_string_p>: Add assert.
2598 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2599 * dwarf2/attribute.c (attribute::form_is_string): New method.
2600 (attribute::string): Use it.
2601
2602 2020-09-29 Tom Tromey <tom@tromey.com>
2603
2604 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2605 (dump_die_shallow): Use canonical_string_p.
2606 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2607 method.
2608
2609 2020-09-29 Tom Tromey <tom@tromey.com>
2610
2611 * dwarf2/read.c (partial_die_info::read)
2612 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2613 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2614 attribute::as_string.
2615
2616 2020-09-29 Tom Tromey <tom@tromey.com>
2617
2618 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2619 DW_ADDR.
2620 (attribute::string): Don't use DW_STRING.
2621 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2622 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2623
2624 2020-09-29 Tom Tromey <tom@tromey.com>
2625
2626 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2627 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2628 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2629 * dwarf2/attribute.h (struct attribute): Rename methods.
2630 * dwarf2/attribute.c (attribute::as_address): Rename from
2631 value_as_address.
2632 (attribute::as_string): Rename from value_as_string.
2633
2634 2020-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/read.c (partial_die_info::read) <case
2637 DW_AT_linkage_name>: Use value_as_string.
2638 (dwarf2_string_attr): Use value_as_string.
2639 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2640 method.
2641 * dwarf2/attribute.c (attribute::value_as_string): New method.
2642
2643 2020-09-29 Pedro Alves <pedro@palves.net>
2644
2645 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2646 defined before using '#pragma GCC diagnostic' instead of checking
2647 __clang__.
2648
2649 2020-09-28 Tom Tromey <tom@tromey.com>
2650
2651 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2652 (handle_signal_stop): Update.
2653 * procfs.c (procfs_target::insert_watchpoint): Update.
2654 * target.h (target_have_steppable_watchpoint): Now a function.
2655
2656 2020-09-28 Tom Tromey <tom@tromey.com>
2657
2658 * infrun.c (set_schedlock_func): Update.
2659 * target.h (target_can_lock_scheduler): Now a function.
2660
2661 2020-09-28 Tom Tromey <tom@tromey.com>
2662
2663 * inferior.h (class inferior) <has_execution>: Update.
2664 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2665 * valops.c (find_function_in_inferior)
2666 (value_allocate_space_in_inferior): Update.
2667 * top.c (kill_or_detach): Update.
2668 * target.c (target_preopen, set_target_permissions): Update.
2669 (target_has_execution_current): Remove.
2670 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2671 Update.
2672 * solib.c (update_solib_list, reload_shared_libraries): Update.
2673 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2674 * solib-dsbt.c (enable_break): Update.
2675 * score-tdep.c (score7_fetch_inst): Update.
2676 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2677 Update.
2678 * remote.c (remote_target::start_remote)
2679 (remote_target::remote_check_symbols, remote_target::open_1)
2680 (remote_target::remote_detach_1, remote_target::verify_memory)
2681 (remote_target::xfer_partial, remote_target::read_description)
2682 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2683 * record-full.c (record_full_open_1): Update.
2684 * record-btrace.c (record_btrace_target_open): Update.
2685 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2686 (value_nsstring): Update.
2687 * linux-thread-db.c (add_thread_db_info)
2688 (thread_db_find_new_threads_silently, check_thread_db_callback)
2689 (try_thread_db_load_1, record_thread): Update.
2690 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2691 Update.
2692 * linux-fork.c (checkpoint_command): Update.
2693 * infrun.c (set_non_stop, set_observer_mode)
2694 (check_multi_target_resumption, for_each_just_stopped_thread)
2695 (maybe_remove_breakpoints, normal_stop)
2696 (class infcall_suspend_state): Update.
2697 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2698 (info_program_command, attach_command): Update.
2699 * infcall.c (call_function_by_hand_dummy): Update.
2700 * inf-loop.c (inferior_event_handler): Update.
2701 * gcore.c (gcore_command, derive_heap_segment): Update.
2702 * exec.c (exec_file_command): Update.
2703 * eval.c (evaluate_subexp): Update.
2704 * compile/compile.c (compile_to_object): Update.
2705 * cli/cli-dump.c (restore_command): Update.
2706 * breakpoint.c (update_watchpoint)
2707 (update_inserted_breakpoint_locations)
2708 (insert_breakpoint_locations, get_bpstat_thread): Update.
2709 * target.h (target_has_execution): Remove macro.
2710 (target_has_execution_current): Don't declare.
2711 (target_has_execution): Rename from target_has_execution_1. Add
2712 argument default.
2713
2714 2020-09-28 Tom Tromey <tom@tromey.com>
2715
2716 * mi/mi-main.c (exec_reverse_continue)
2717 (mi_cmd_list_target_features): Update.
2718 * infrun.c (set_exec_direction_func): Update.
2719 * target.c (default_execution_direction): Update.
2720 * reverse.c (exec_reverse_once): Update.
2721 * target.h (target_can_execute_reverse): Now a function.
2722
2723 2020-09-28 Tom Tromey <tom@tromey.com>
2724
2725 * tui/tui-regs.c (tui_get_register)
2726 (tui_data_window::show_registers): Update.
2727 * thread.c (scoped_restore_current_thread::restore)
2728 (scoped_restore_current_thread::scoped_restore_current_thread):
2729 Update.
2730 * regcache-dump.c (regcache_print): Update.
2731 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2732 Update.
2733 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2734 * mep-tdep.c (current_me_module, current_options): Update.
2735 * linux-thread-db.c (thread_db_load): Update.
2736 * infcmd.c (registers_info, info_vector_command)
2737 (info_float_command): Update.
2738 * ia64-tdep.c (ia64_frame_prev_register)
2739 (ia64_sigtramp_frame_prev_register): Update.
2740 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2741 * gcore.c (derive_stack_segment): Update.
2742 * frame.c (get_current_frame, has_stack_frames): Update.
2743 * findvar.c (language_defn::read_var_value): Update.
2744 * arm-tdep.c (arm_pc_is_thumb): Update.
2745 * target.c (target_has_registers): Rename from
2746 target_has_registers_1.
2747 * target.h (target_has_registers): Remove macro.
2748 (target_has_registers): Rename from target_has_registers_1.
2749
2750 2020-09-28 Tom Tromey <tom@tromey.com>
2751
2752 * windows-tdep.c (tlb_make_value): Update.
2753 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2754 * thread.c (scoped_restore_current_thread::restore)
2755 (scoped_restore_current_thread::scoped_restore_current_thread)
2756 (thread_command): Update.
2757 * stack.c (backtrace_command_1, frame_apply_level_command)
2758 (frame_apply_all_command, frame_apply_command): Update.
2759 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2760 Update.
2761 * gcore.c (derive_stack_segment): Update.
2762 * frame.c (get_current_frame, has_stack_frames): Update.
2763 * auxv.c (info_auxv_command): Update.
2764 * ada-tasks.c (ada_build_task_list): Update.
2765 * target.c (target_has_stack): Rename from target_has_stack_1.
2766 * target.h (target_has_stack): Remove macro.
2767 (target_has_stack): Rename from target_has_stack_1.
2768
2769 2020-09-28 Tom Tromey <tom@tromey.com>
2770
2771 * target.c (target_has_memory): Rename from target_has_memory_1.
2772 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2773 * thread.c (scoped_restore_current_thread::restore)
2774 (scoped_restore_current_thread::scoped_restore_current_thread):
2775 Update.
2776 * frame.c (get_current_frame, has_stack_frames): Update.
2777 * target.h (target_has_memory): Remove macro.
2778 (target_has_memory): Rename from target_has_memory_1.
2779
2780 2020-09-28 Tom Tromey <tom@tromey.com>
2781
2782 * target.c (target_has_all_memory_1): Remove.
2783 * target.h (target_has_all_memory): Remove define.
2784 (target_has_all_memory_1): Don't declare.
2785
2786 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * ser-base.c: Adjust comments formatting.
2789
2790 2020-09-27 Tom Tromey <tom@tromey.com>
2791
2792 PR tui/25342:
2793 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2794
2795 2020-09-27 Tom Tromey <tom@tromey.com>
2796
2797 PR tui/25342:
2798 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2799
2800 2020-09-27 Tom Tromey <tom@tromey.com>
2801
2802 * unittests/tui-selftests.c: Update.
2803 * tui/tui-winsource.h (struct tui_source_window_base)
2804 <extra_margin, show_line_number, refresh_pad>: New methods.
2805 <m_max_length, m_pad>: New members.
2806 (tui_copy_source_line): Update.
2807 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2808 first_col, line_width, ndigits parameters. Add length.
2809 (tui_source_window_base::show_source_line): Write to pad. Line
2810 number now 0-based.
2811 (tui_source_window_base::refresh_pad): New method.
2812 (tui_source_window_base::show_source_content): Write to pad. Call
2813 refresh_pad.
2814 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2815 not refill.
2816 (tui_source_window_base::update_exec_info): Call
2817 show_line_number.
2818 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2819 method.
2820 <m_digits>: New member.
2821 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2822 and m_max_length.
2823 (tui_source_window::show_line_number): New method.
2824 * tui/tui-io.h (tui_puts): Fix comment.
2825 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2826 m_max_length.
2827
2828 2020-09-27 Tom Tromey <tom@tromey.com>
2829
2830 * tui/tui-winsource.c
2831 (tui_source_window_base::set_is_exec_point_at): Don't call
2832 show_source_line.
2833
2834 2020-09-27 Tom Tromey <tom@tromey.com>
2835
2836 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2837 method.
2838 <erase>: Update.
2839 <cursor_x, cursor_y>: Remove.
2840 <m_inner_window>: New member.
2841 (tui_py_window::rerender): Create inner window.
2842 (tui_py_window::output): Write to inner window.
2843
2844 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2845
2846 PR python/26586
2847 * cli/cli-script.c (execute_control_commands): don't set
2848 instream to nullptr here as this breaks the from_tty argument
2849 to gdb.execute in Python.
2850 (execute_user_command): set instream to nullptr here instead.
2851
2852 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * infrun.h (infrun_debug_printf): Fix formatting.
2855 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2856
2857 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2858
2859 * compile/compile-object-load.h (struct munmap_list): Add
2860 explicitly-defined move constructor.
2861
2862 2020-09-24 Tom Tromey <tromey@adacore.com>
2863
2864 PR tui/26638:
2865 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2866 method.
2867 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2868 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2869 (tui_prev_win): Rewrite.
2870
2871 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2872
2873 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2874 in WOW64 processes as SIGINT.
2875 * nat/windows-nat.h: Make wow64_process a shared variable.
2876 * windows-nat.c: Remove static wow64_process variable.
2877
2878 2020-09-23 Tom Tromey <tom@tromey.com>
2879
2880 PR symtab/25470:
2881 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2882 offset and bit size.
2883 * printcmd.c (print_scalar_formatted): Handle zero-length
2884 integer.
2885 (print_scalar_formatted): Use bit_size_differs_p.
2886 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2887 constant.
2888 (union type_specific): <int_stuff>: New member.
2889 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2890 methods.
2891 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2892 TYPE_SPECIFIC_FIELD.
2893 (recursive_dump_type, copy_type_recursive): Update.
2894 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2895 DW_AT_data_bit_offset.
2896
2897 2020-09-23 Tom Tromey <tom@tromey.com>
2898
2899 * utils.h (class gdb_argv): Add move operators.
2900 <append>: New methods.
2901 * compile/compile.c (build_argc_argv): Remove.
2902 (compile_args_argc): Remove.
2903 (compile_args_argv): Change type.
2904 (set_compile_args): Simplify.
2905 (append_args): Remove.
2906 (filter_args): Remove argcp parameter.
2907 (get_args): Return gdb_argv. Simplify.
2908 (compile_to_object): Update.
2909
2910 2020-09-23 Tom Tromey <tom@tromey.com>
2911
2912 * compile/compile-object-run.c (do_module_cleanup)
2913 <~do_module_cleanup> :Remove.
2914 (do_module_cleanup): Update.
2915 * compile/compile-object-load.h (struct munmap_list): Add move
2916 assignment operator.
2917 <source_file>: Now a std::string.
2918 <munmap_list>: Rename. No longer a pointer.
2919 * compile/compile-object-load.c (struct setup_sections_data): Add
2920 constructor.
2921 <setup_one_section>: Declare.
2922 <munmap_list>: Move earlier.
2923 <m_bfd>: New member.
2924 <m_last_size, m_last_section_first, m_last_prot,
2925 m_last_max_alignment>: Rename, add initializers where needed.
2926 (setup_sections_data::setup_one_section): Rename from
2927 setup_sections. Update.
2928 (compile_object_load): Update. Don't use bfd_map_over_sections.
2929
2930 2020-09-23 Tom Tromey <tom@tromey.com>
2931
2932 * compile/compile-object-run.c (struct do_module_cleanup): Add
2933 parameters to constructor. Update destructor.
2934 <source_file, scope, scope_data, out_value_type, out_value_addr,
2935 munmap_list_head, objfile_name_string>: Remove.
2936 <module>: New member.
2937 (do_module_cleanup): Update.
2938 (compile_object_run): Update.
2939
2940 2020-09-23 Tom Tromey <tom@tromey.com>
2941
2942 * compile/compile.c (eval_compile_command): Update.
2943 * compile/compile-object-run.h (compile_object_run): Take a
2944 compile_module_up.
2945 * compile/compile-object-run.c (compile_object_run): Take a
2946 compile_module_up.
2947 * compile/compile-object-load.h (struct compile_module): Add
2948 constructor, destructor.
2949 (compile_module_up): New typedef.
2950 (compile_object_load): Return compile_object_up.
2951 * compile/compile-object-load.c (compile_object_load): Return
2952 compile_module_up.
2953
2954 2020-09-23 Tom Tromey <tom@tromey.com>
2955
2956 * compile/compile-object-run.c (struct do_module_cleanup): Add
2957 constructor, destructor.
2958 <objfile_name_string>: Don't use struct hack.
2959 (do_module_cleanup): Use delete.
2960 (compile_object_run): Use new.
2961
2962 2020-09-23 Tom Tromey <tom@tromey.com>
2963
2964 * compile/compile-cplus-types.c
2965 (compile_cplus_convert_struct_or_union): Use std::vector.
2966 (compile_cplus_convert_func): Likewise.
2967 * compile/compile-c-types.c (convert_func): Use std::vector.
2968
2969 2020-09-21 Tom Tromey <tromey@adacore.com>
2970
2971 * sparc-tdep.c (sparc32_skip_prologue): Use
2972 skip_prologue_using_sal.
2973
2974 2020-09-19 Tom Tromey <tom@tromey.com>
2975
2976 * symfile.c (add_section_size_callback): Remove.
2977 (load_one_section): Rename from load_section_callback. Change
2978 parameters.
2979 (generic_load): Use foreach.
2980
2981 2020-09-19 Tom Tromey <tom@tromey.com>
2982
2983 * exec.c (add_to_section_table): Remove.
2984 (build_section_table): Use foreach.
2985
2986 2020-09-19 Tom Tromey <tom@tromey.com>
2987
2988 * elfread.c (elf_locate_sections): Change parameters.
2989 (elf_symfile_read): Use foreach.
2990
2991 2020-09-19 Tom Tromey <tom@tromey.com>
2992
2993 * cli/cli-dump.c (struct callback_data): Remove.
2994 (restore_one_section): Rename from restore_section_callback.
2995 Change parameters.
2996 (restore_binary_file): Change parameters.
2997 (restore_command): Use foreach.
2998
2999 2020-09-19 Tom Tromey <tom@tromey.com>
3000
3001 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3002 (gcore_copy_callback): Likewise.
3003 (gcore_memory_sections): Use foreach.
3004
3005 2020-09-19 Tom Tromey <tom@tromey.com>
3006
3007 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3008 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3009 parameters.
3010 (generic_elf_osabi_sniffer): Use foreach.
3011 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3012 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3013
3014 2020-09-19 Tom Tromey <tom@tromey.com>
3015
3016 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3017 (dwarf2_get_dwz_file): Use foreach.
3018 (dwarf2_locate_dwo_sections): Change parameters.
3019 (open_and_init_dwo_file): Use foreach.
3020 (dwarf2_locate_common_dwp_sections): Change parameters.
3021 (open_and_init_dwp_file): Use foreach.
3022
3023 2020-09-19 Tom Tromey <tom@tromey.com>
3024
3025 * symfile.h: (find_lowest_section): Don't declare.
3026 * symfile.c (find_lowest_section): Now static. Change
3027 parameters.
3028 (struct place_section_arg): Remove.
3029 (place_section): Change parameters.
3030 (addr_info_make_relative): Use foreach.
3031 (symfile_dummy_outputs): Remove.
3032 (default_symfile_relocate): Use foreach.
3033
3034 2020-09-19 Tom Tromey <tom@tromey.com>
3035
3036 * objfiles.c (add_to_objfile_sections): Rename from
3037 add_to_objfile_sections_full.
3038 (add_to_objfile_sections): Remove.
3039 (build_objfile_section_table): Use foreach.
3040
3041 2020-09-19 Tom Tromey <tom@tromey.com>
3042
3043 * stap-probe.c (get_stap_base_address_1): Remove.
3044 (get_stap_base_address): Use foreach.
3045
3046 2020-09-19 Tom Tromey <tom@tromey.com>
3047
3048 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3049 parameters.
3050 (gdb_bfd_close_or_warn): Use foreach.
3051
3052 2020-09-19 Tom Tromey <tom@tromey.com>
3053
3054 * corelow.c (add_to_thread_list): Change parameters.
3055 (core_target_open): Use foreach.
3056
3057 2020-09-19 Tom Tromey <tom@tromey.com>
3058
3059 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3060 existing function.
3061
3062 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3063
3064 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3065 for arrays.
3066
3067 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * eval.c: Remove 'f-lang.h' include.
3070 (value_f90_subarray): Moved to f-lang.c.
3071 (eval_call): Renamed to...
3072 (evaluate_subexp_do_call): ...this, is no longer static, header
3073 comment moved into header file.
3074 (evaluate_funcall): Update call to eval_call.
3075 (skip_undetermined_arglist): Moved to f-lang.c.
3076 (fortran_value_subarray): Likewise.
3077 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3078 moved to evaluate_subexp_f.
3079 (calc_f77_array_dims): Moved to f-lang.c
3080 * expprint.c (print_subexp_funcall): New function.
3081 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3082 moved to print_subexp_f, OP_FUNCALL uses new function.
3083 (dump_subexp_body_funcall): New function.
3084 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3085 moved to dump_subexp_f, OP_FUNCALL uses new function.
3086 * expression.h (evaluate_subexp_do_call): Declare.
3087 * f-lang.c (value_f90_subarray): Moved from eval.c.
3088 (skip_undetermined_arglist): Likewise.
3089 (calc_f77_array_dims): Likewise.
3090 (fortran_value_subarray): Likewise.
3091 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3092 (operator_length_f): Likewise.
3093 (print_subexp_f): Likewise.
3094 (dump_subexp_body_f): Likewise.
3095 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3096 declaration of this operation to here.
3097 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3098 support moved to operator_length_f.
3099 * parser-defs.h (dump_subexp_body_funcall): Declare.
3100 (print_subexp_funcall): Declare.
3101 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3102 fortran-operator.def.
3103
3104 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * eval.c (fortran_value_subarray): New function, content is taken
3107 from...
3108 (evaluate_subexp_standard): ...here, in two places. Now arrays
3109 and strings both call the new function.
3110 (calc_f77_array_dims): Add header comment, handle strings.
3111
3112 2020-09-18 Victor Collod <vcollod@nvidia.com>
3113
3114 PR gdb/26635
3115 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3116 (i386_analyze_prologue): Call i386_skip_endbr.
3117
3118 2020-09-18 Tom Tromey <tromey@adacore.com>
3119
3120 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3121 (windows_nat_target::wait): Update.
3122 * target/wait.h (enum target_wait_flag): New. Use
3123 DEF_ENUM_FLAGS_TYPE.
3124 * target/target.h (target_wait): Change type of options.
3125 * target.h (target_options_to_string, default_target_wait):
3126 Update.
3127 (struct target_ops) <wait>: Change type of options.
3128 * target.c (target_wait, default_target_wait, do_option): Change
3129 type of "options".
3130 (target_options_to_string): Likewise.
3131 * target-delegates.c: Rebuild.
3132 * target-debug.h (target_debug_print_target_wait_flags): Rename
3133 from target_debug_print_options.
3134 * sol-thread.c (class sol_thread_target) <wait>: Update.
3135 (sol_thread_target::wait): Update.
3136 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3137 (rs6000_nat_target::wait): Update.
3138 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3139 Update.
3140 (remote_target::wait_ns, remote_target::wait_as): Change type of
3141 "options".
3142 (remote_target::wait): Update.
3143 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3144 (gdbsim_target::wait): Update.
3145 * record-full.c (class record_full_base_target) <wait>: Update.
3146 (record_full_wait_1): Change type of "options".
3147 (record_full_base_target::wait): Update.
3148 * record-btrace.c (class record_btrace_target) <wait>: Update.
3149 (record_btrace_target::wait): Update.
3150 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3151 Update.
3152 (ravenscar_thread_target::wait): Update.
3153 * procfs.c (class procfs_target) <wait>: Update.
3154 (procfs_target::wait): Update.
3155 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3156 * obsd-nat.c (obsd_nat_target::wait): Update.
3157 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3158 (nto_procfs_target::wait): Update.
3159 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3160 * nbsd-nat.c (nbsd_wait): Change type of "options".
3161 (nbsd_nat_target::wait): Update.
3162 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3163 (thread_db_target::wait): Update.
3164 * linux-nat.h (class linux_nat_target) <wait>: Update.
3165 * linux-nat.c (linux_nat_target::wait): Update.
3166 (linux_nat_wait_1): Update.
3167 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3168 "options".
3169 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3170 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3171 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3172 (go32_nat_target::wait): Update.
3173 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3174 * gnu-nat.c (gnu_nat_target::wait): Update.
3175 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3176 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3177 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3178 * darwin-nat.c (darwin_nat_target::wait): Update.
3179 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3180 (bsd_uthread_target::wait): Update.
3181 * aix-thread.c (class aix_thread_target) <wait>: Update.
3182 (aix_thread_target::wait): Update.
3183
3184 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * compile/compile-object-run.c (create_copied_type_recursive): New
3187 function.
3188 (compile_object_run): Use new function.
3189
3190 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3191
3192 * NEWS: Mention x86_64 Cygwin core file support.
3193
3194 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3195
3196 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3197 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3198
3199 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3200
3201 * windows-tdep.h: Add prototypes.
3202 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3203 (i386_windows_core_pid_to_str): Move and rename ...
3204 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3205 (windows_core_pid_to_str): ... and here.
3206 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3207
3208 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3209 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3210 (amd64_windows_init_abi_common): ... and register.
3211
3212 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3213
3214 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3215 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3216
3217 2020-09-18 Pedro Alves <pedro@palves.net>
3218
3219 PR gdb/26631
3220 * thread.c (thread_find_command): Switch inferior before calling
3221 target methods.
3222
3223 2020-09-17 Tom Tromey <tromey@adacore.com>
3224
3225 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3226 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3227 (tdesc_arch_data_up): New typedef.
3228 (tdesc_use_registers, tdesc_data_alloc): Update.
3229 (tdesc_data_cleanup): Don't declare.
3230 * target-descriptions.c (tdesc_data_alloc): Return a
3231 tdesc_arch_data_up.
3232 (tdesc_arch_data_deleter::operator()): Rename from
3233 tdesc_data_cleanup. Change argument type.
3234 (tdesc_use_registers): Change early_data to an rvalue reference.
3235 (tdesc_use_registers): Don't use delete.
3236 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3237 * s390-tdep.c (s390_gdbarch_init): Update.
3238 * rx-tdep.c (rx_gdbarch_init): Update.
3239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3240 * riscv-tdep.c (riscv_gdbarch_init): Update.
3241 * or1k-tdep.c (or1k_gdbarch_init): Update.
3242 * nios2-tdep.c (nios2_gdbarch_init): Update.
3243 * nds32-tdep.c (nds32_gdbarch_init): Update.
3244 * mips-tdep.c (mips_gdbarch_init): Update.
3245 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3246 * m68k-tdep.c (m68k_gdbarch_init): Update.
3247 * i386-tdep.c (i386_gdbarch_init): Update.
3248 * arm-tdep.c (arm_gdbarch_init): Update.
3249 * arc-tdep.c (arc_tdesc_init): Update.
3250 (arc_gdbarch_init): Update.
3251 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3252
3253 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3254
3255 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3256 for WOW64 processes.
3257
3258 2020-09-17 Tom Tromey <tom@tromey.com>
3259
3260 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3261
3262 2020-09-17 Tom Tromey <tom@tromey.com>
3263
3264 * value.c (preserve_values): Update.
3265 * python/py-type.c (save_objfile_types): Update.
3266 * guile/scm-type.c (save_objfile_types): Update.
3267 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3268 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3269 * compile/compile-object-run.c (compile_object_run): Update.
3270
3271 2020-09-17 Tom Tromey <tom@tromey.com>
3272
3273 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3274 Remove.
3275 <m_table>: Now htab_up.
3276 * typeprint.c (typedef_hash_table::recursively_update)
3277 (typedef_hash_table::add_template_parameters)
3278 (typedef_hash_table::typedef_hash_table): Update.
3279 (typedef_hash_table::~typedef_hash_table): Remove.
3280 (typedef_hash_table::typedef_hash_table)
3281 (typedef_hash_table::find_global_typedef)
3282 (typedef_hash_table::find_typedef): Update.
3283
3284 2020-09-17 Tom Tromey <tom@tromey.com>
3285
3286 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3287
3288 2020-09-17 Tom Tromey <tom@tromey.com>
3289
3290 * linespec.c (class decode_compound_collector)
3291 <~decode_compound_collector>: Remove.
3292 <m_unique_syms>: Now htab_up.
3293 (decode_compound_collector::operator ()): Update.
3294 (class symtab_collector) <~symtab_collector>: Remove.
3295 <m_symtab_table>: Now htab_up.
3296 (symtab_collector::operator ()): Update.
3297
3298 2020-09-17 Tom Tromey <tom@tromey.com>
3299
3300 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3301 (filename_seen_cache::clear): Update.
3302 (~filename_seen_cache): Remove.
3303 (filename_seen_cache::seen): Update.
3304 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3305 htab_up.
3306 <~filename_seen_cache>: Remove.
3307 <traverse>: Update.
3308
3309 2020-09-17 Tom Tromey <tom@tromey.com>
3310
3311 * completer.c (completion_tracker::discard_completions)
3312 (completion_tracker::~completion_tracker)
3313 (completion_tracker::maybe_add_completion)
3314 (completion_tracker::remove_completion)
3315 (completion_tracker::recompute_lowest_common_denominator)
3316 (completion_tracker::build_completion_result): Update.
3317 * completer.h (class completion_tracker) <have_completions>:
3318 Update.
3319 <m_entries_hash>: Now htab_up.
3320
3321 2020-09-17 Tom Tromey <tom@tromey.com>
3322
3323 * breakpoint.c (ambiguous_names_p): Use htab_up.
3324
3325 2020-09-17 Tom Tromey <tom@tromey.com>
3326
3327 * auto-load.c (struct auto_load_pspace_info)
3328 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3329 <loaded_script_files, loaded_script_texts>: Change type to
3330 htab_up.
3331 (~auto_load_pspace_info) Remove.
3332 (init_loaded_scripts_info, maybe_add_script_file)
3333 (maybe_add_script_text, auto_load_info_scripts): Update.
3334
3335 2020-09-17 Tom Tromey <tromey@adacore.com>
3336
3337 * c-exp.y (name_obstack): Now static.
3338
3339 2020-09-17 Chungyi Chi <demonic@csie.io>
3340
3341 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3342
3343 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3346 (add_solib_catchpoint): Likewise.
3347 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3348 to bool.
3349 (add_solib_catchpoint): Change int parameter/variable to bool.
3350 (catch_load_or_unload): Likewise.
3351 (init_catchpoint): Likewise.
3352 (create_fork_vfork_event_catchpoint): Likewise.
3353 (catch_fork_command_1): Likewise.
3354 (catch_exec_command_1): Likewise.
3355
3356 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3359 Change instance_flags to m_instance_flags.
3360
3361 2020-09-16 Tom Tromey <tromey@adacore.com>
3362
3363 PR gdb/26598:
3364 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3365
3366 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3367
3368 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3369 PL_FLAG_EXEC.
3370 (fbsd_nat_target::insert_exec_catchpoint)
3371 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3372 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3373 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3374
3375 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3376
3377 * configure.ac: Remove check for kinfo_getvmmap().
3378 * configure, config.in: Regenerate.
3379 * fbsd-nat.c (fbsd_read_mapping): Remove
3380 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3381 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3382 kinfo_get_vmmap() are always present.
3383
3384 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3385
3386 * fbsd-nat.c: Always include support for
3387 TARGET_OBJECT_SIGNAL_INFO.
3388
3389 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3390
3391 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3392 sysctl and remove procfs fallback.
3393
3394 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3395
3396 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3397 * fbsd-nat.h: Likewise.
3398
3399 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400
3401 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3402 argument.
3403
3404 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_language_data): Delete.
3407 (ada_language): Remove references to ada_language_data.
3408 * c-lang.c (c_language_data): Delete.
3409 (c_language): Remove references to c_language_data.
3410 (cplus_language_data): Delete.
3411 (cplus_language): Remove references to cplus_language_data.
3412 (asm_language_data): Delete.
3413 (asm_language): Remove references to asm_language_data.
3414 (minimal_language_data): Delete.
3415 (minimal_language): Remove references to minimal_language_data.
3416 * d-lang.c (d_language_data): Delete.
3417 (d_language): Remove references to d_language_data.
3418 * f-lang.c (f_language_data): Delete.
3419 (f_language): Remove references to f_language_data.
3420 * go-lang.c (go_language_data): Delete.
3421 (go_language): Remove references to go_language_data.
3422 * language.c (unknown_language_data): Delete.
3423 (unknown_language): Remove references to unknown_language_data.
3424 (auto_language_data): Delete.
3425 (auto_language): Remove references to auto_language_data.
3426 * language.h (language_data): Delete struct.
3427 (language_defn): No longer inherit from language_data.
3428 * m2-lang.c (m2_language_data): Delete.
3429 (m2_language): Remove references to m2_language_data.
3430 * objc-lang.c (objc_language_data): Delete.
3431 (objc_language): Remove references to objc_language_data.
3432 * opencl-lang.c (opencl_language_data): Delete.
3433 (opencl_language): Remove references to opencl_language_data.
3434 * p-lang.c (pascal_language_data): Delete.
3435 (pascal_language): Remove references to pascal_language_data.
3436 * rust-lang.c (rust_language_data): Delete.
3437 (rust_language): Remove references to rust_language_data.
3438
3439 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3442 initializer.
3443 (ada_language::opcode_print_table): New member function.
3444 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3445 (c_language::opcode_print_table): New member function.
3446 (cplus_language_data): Remove la_op_print_tab initializer.
3447 (cplus_language::opcode_print_table): New member function.
3448 (asm_language_data): Remove la_op_print_tab initializer.
3449 (asm_language::opcode_print_table): New member function.
3450 (minimal_language_data): Remove la_op_print_tab initializer.
3451 (minimal_language::opcode_print_table): New member function.
3452 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3453 (d_language::opcode_print_table): New member function.
3454 * expprint.c (print_subexp_standard): Update call to
3455 opcode_print_table.
3456 (op_string): Likewise.
3457 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3458 (f_language::opcode_print_table): New member function.
3459 * go-lang.c (go_language_data): Remove la_op_print_tab
3460 initializer.
3461 (go_language::opcode_print_table): New member function.
3462 * language.c (unknown_language_data): Remove la_op_print_tab
3463 initializer.
3464 (unknown_language::opcode_print_table): New member function.
3465 (auto_language_data): Remove la_op_print_tab initializer.
3466 (auto_language::opcode_print_table): New member function.
3467 * language.h (language_data): Remove la_op_print_tab field.
3468 (language_defn::opcode_print_table): Declare new member function.
3469 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3470 initializer.
3471 (m2_language::opcode_print_table): New member function.
3472 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3473 initializer.
3474 (objc_language::opcode_print_table): New member function.
3475 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3476 initializer.
3477 (opencl_language::opcode_print_table): New member function.
3478 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3479 initializer.
3480 (pascal_language::opcode_print_table): New member function.
3481 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3482 initializer.
3483 (rust_language::opcode_print_table): New member function.
3484
3485 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3488 (ada_language::expression_ops): New member function.
3489 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3490 (c_language::expression_ops): New member function.
3491 (cplus_language_data): Remove la_exp_desc initializer.
3492 (cplus_language::expression_ops): New member function.
3493 (asm_language_data): Remove la_exp_desc initializer.
3494 (asm_language::expression_ops): New member function.
3495 (minimal_language_data): Remove la_exp_desc initializer.
3496 (minimal_language::expression_ops): New member function.
3497 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3498 (d_language::expression_ops): New member function.
3499 * eval.c (evaluate_subexp): Update call to expression_ops.
3500 * expprint.c (print_subexp): Likewise.
3501 (op_name): Likewise.
3502 (dump_subexp_body): Likewise.
3503 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3504 (f_language::expression_ops): New member function.
3505 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3506 (go_language::expression_ops): New member function.
3507 * language.c (language_defn::expression_ops): New function.
3508 (unknown_language_data): Remove la_exp_desc initializer.
3509 (auto_language_data): Likewise.
3510 * language.h (language_data): Remove la_exp_desc field.
3511 (language_defn::expression_ops): Declare new member function.
3512 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3513 (m2_language::expression_ops): New member function.
3514 * objc-lang.c (objc_language_data): Remove la_exp_desc
3515 initializer.
3516 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3517 initializer.
3518 (opencl_language::expression_ops): New member function.
3519 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3520 * parse.c (operator_length): Update call to expression_ops.
3521 (exp_iterate): Likewise.
3522 * rust-lang.c (rust_language_data): Remove la_exp_desc
3523 initializer.
3524 (ruse_language::expression_ops): New member function.
3525
3526 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3529 initializer.
3530 (ada_language::varobj_ops): New member function.
3531 * c-lang.c (c_language_data): Remove la_varobj_ops
3532 initializer.
3533 (cplus_language_data): Likewise.
3534 (cplus_language::varobj_ops): New member function.
3535 (asm_language_data): Remove la_varobj_ops initializer.
3536 (minimal_language_data): Likewise.
3537 * d-lang.c (d_language_data): Likewise.
3538 * f-lang.c (f_language_data): Likewise.
3539 * go-lang.c (go_language_data): Likewise.
3540 * language.c (language_defn::varobj_ops): New function.
3541 (unknown_language_data): Remove la_varobj_ops
3542 initializer.
3543 (auto_language_data): Likewise.
3544 * language.h (language_data): Remove la_varobj_ops field.
3545 (language_defn::varobj_ops): Declare new member function.
3546 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3547 * objc-lang.c (objc_language_data): Likewise.
3548 * opencl-lang.c (opencl_language_data): Likewise.
3549 * p-lang.c (pascal_language_data): Likewise.
3550 * rust-lang.c (rust_language_data): Likewise.
3551 * varobj.c (varobj_create): Update call to varobj_ops.
3552 * varobj.h (default_varobj_ops): Delete define.
3553
3554 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3557 initializer.
3558 * c-lang.c (c_language_data): Likewise.
3559 (c_language::macro_expansion): New member function.
3560 (cplus_language_data): Likewise.
3561 (cplus_language::macro_expansion): New member function.
3562 (asm_language_data): Likewise.
3563 (asm_language::macro_expansion): New member function.
3564 (minimal_language_data): Likewise.
3565 (minimal_language::macro_expansion): New member function.
3566 * d-lang.c (d_language_data): Remove la_macro_expansion
3567 initializer.
3568 * f-lang.c (f_language_data): Likewise.
3569 * go-lang.c (go_language_data): Likewise.
3570 * language.c (unknown_language_data): Likewise.
3571 (auto_language_data): Likewise.
3572 * language.h (language_data): Remove la_macro_expansion field.
3573 (language_defn::macro_expansion): New member function.
3574 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3575 initializer.
3576 * objc-lang.c (objc_language_data): Likewise.
3577 (objc_language::macro_expansion): New member function.
3578 * opencl-lang.c (opencl_language_data): Likewise.
3579 (opencl_language::macro_expansion): New member function.
3580 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3581 initializer.
3582 * rust-lang.c (rust_language_data): Likewise.
3583 * symtab.c (default_collect_symbol_completion_matches_break_on):
3584 Update call to macro_expansion.
3585
3586 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * ada-lang.c (ada_language_data): Remove la_array_ordering
3589 initializer.
3590 * c-lang.c (c_language_data): Likewise.
3591 (cplus_language_data): Likewise.
3592 (asm_language_data): Likewise.
3593 (minimal_language_data): Likewise.
3594 * d-lang.c (d_language_data): Likewise.
3595 * dwarf2/read.c (read_array_order): Update for call to
3596 array_ordering.
3597 * f-lang.c (f_language_data): Remove la_array_ordering
3598 initializer.
3599 (f_language::array_ordering): New member function.
3600 * go-lang.c (go_language_data): Remove la_array_ordering
3601 initializer.
3602 * language.c (unknown_language_data): Likewise.
3603 (auto_language_data): Likewise.
3604 * language.h (language_data): Delete la_array_ordering field.
3605 (language_defn::array_ordering): New member function.
3606 * m2-lang.c (m2_language_data): Remove la_array_ordering
3607 initializer.
3608 * objc-lang.c (objc_language_data): Likewise.
3609 * opencl-lang.c (opencl_language_data): Likewise.
3610 * p-lang.c (pascal_language_data): Likewise.
3611 * rust-lang.c (rust_language_data): Likewise.
3612
3613 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3616 initializer.
3617 * c-lang.c (c_language_data): Likewise.
3618 (cplus_language_data): Likewise.
3619 (asm_language_data): Likewise.
3620 (minimal_language_data): Likewise.
3621 * d-lang.c (d_language_data): Likewise.
3622 * f-lang.c (f_language_data): Likewise.
3623 (f_language::case_sensitivity): New member function.
3624 * go-lang.c (go_language_data): Remove la_case_sensitivity
3625 initializer.
3626 * language.c (enum case_mode): Moved here from language.h.
3627 (case_mode): Make static.
3628 (show_case_command): Update for case_sensitivity being a method.
3629 (set_case_command): Likewise.
3630 (set_range_case): Likewise.
3631 (unknown_language_data): Remove la_case_sensitivity initializer.
3632 (auto_language_data): Likewise.
3633 * language.h (case_mode): Delete, move enum declaration to
3634 language.c.
3635 (language_data): Delete la_case_sensitivity field.
3636 (language_defn::case_sensitivity): New member function.
3637 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3638 initializer.
3639 * objc-lang.c (objc_language_data): Likewise.
3640 * opencl-lang.c (opencl_language_data): Likewise.
3641 * p-lang.c (pascal_language_data): Likewise.
3642 * rust-lang.c (rust_language_data): Likewise.
3643
3644 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (ada_language_data): Remove la_range_check
3647 initializer.
3648 * c-lang.c (c_language_data): Likewise.
3649 (cplus_language_data): Likewise.
3650 (asm_language_data): Likewise.
3651 (minimal_language_data): Likewise.
3652 * d-lang.c (d_language_data): Likewise.
3653 * f-lang.c (f_language_data): Likewise.
3654 (f_language::range_checking_on_by_default): New member function.
3655 * go-lang.c (go_language_data): Remove la_range_check initializer.
3656 * language.c (enum range_mode): Moved here from language.h.
3657 (range_mode): Made static.
3658 (show_range_command): Update to use
3659 range_checking_on_by_default.
3660 (set_range_command): Likewise.
3661 (set_range_case): Likewise.
3662 (unknown_language_data): Remove la_range_check initializer.
3663 (auto_language_data): Likewise.
3664 * language.h (range_mode): Delete. Enum definition moved to
3665 language.c.
3666 (language_data): Remove la_range_check field.
3667 (language_defn::range_checking_on_by_default): New member
3668 function.
3669 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3670 (m2_language::range_checking_on_by_default): New member function.
3671 * objc-lang.c (objc_language_data): Remove la_range_check
3672 initializer.
3673 * opencl-lang.c (opencl_language_data): Likewise.
3674 * p-lang.c (pascal_language_data): Likewise.
3675 (pascal_language::range_checking_on_by_default): New member
3676 function.
3677 * rust-lang.c (rust_language_data): Remove la_range_check
3678 initializer.
3679 (rust_language::range_checking_on_by_default): New member
3680 function.
3681
3682 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * dwarf2/read.c (dwarf2_physname): Remove special case for
3685 language_go.
3686 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3687 member function.
3688
3689 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (ada_language_data): Remove
3692 la_store_sym_names_in_linkage_form_p initializer.
3693 (ada_language::store_sym_names_in_linkage_form_p): New member
3694 function.
3695 * c-lang.c (c_language_data): Remove
3696 la_store_sym_names_in_linkage_form_p initializer.
3697 (c_language::store_sym_names_in_linkage_form_p): New member
3698 function.
3699 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3700 initializer.
3701 (asm_language_data): Likewise.
3702 (asm_language::store_sym_names_in_linkage_form_p): New member
3703 function.
3704 (minimal_language_data): Remove
3705 la_store_sym_names_in_linkage_form_p initializer.
3706 (minimal_language::store_sym_names_in_linkage_form_p): New member
3707 function.
3708 * d-lang.c (d_language_data): Remove
3709 la_store_sym_names_in_linkage_form_p initializer.
3710 * dwarf2/read.c (dwarf2_physname): Update call to
3711 store_sym_names_in_linkage_form_p.
3712 * f-lang.c (f_language_data): Remove
3713 la_store_sym_names_in_linkage_form_p initializer.
3714 * go-lang.c (go_language_data): Remove
3715 la_store_sym_names_in_linkage_form_p initializer.
3716 * language.c (unknown_language_data): Remove
3717 la_store_sym_names_in_linkage_form_p initializer.
3718 (unknown_language::store_sym_names_in_linkage_form_p): New member
3719 function.
3720 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3721 initializer.
3722 (auto_language::store_sym_names_in_linkage_form_p): New member
3723 function.
3724 * language.h (language_data): Remove
3725 la_store_sym_names_in_linkage_form_p member variable.
3726 (language_defn::store_sym_names_in_linkage_form_p): New member
3727 function.
3728 * m2-lang.c (m2_language_data): Remove
3729 la_store_sym_names_in_linkage_form_p initializer.
3730 * objc-lang.c (objc_language_data): Likewise.
3731 * opencl-lang.c (opencl_language_data): Likewise.
3732 * p-lang.c (pascal_language_data): Likewise.
3733 * rust-lang.c (rust_language_data): Likewise.
3734
3735 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * ada-lang.c (ada_language_data): Remove string_lower_bound
3738 initializer.
3739 * c-lang.c (c_language_data): Likewise.
3740 (cplus_language_data): Likewise.
3741 (asm_language_data): Likewise.
3742 (minimal_language_data): Likewise.
3743 * d-lang.c (d_language_data): Likewise.
3744 * f-lang.c (f_language_data): Likewise.
3745 * go-lang.c (go_language_data): Likewise.
3746 * language.c (unknown_language_data): Likewise.
3747 (auto_language_data): Likewise.
3748 * language.h (language_data): Remove string_lower_bound field.
3749 (language_defn::string_lower_bound): New member function.
3750 * m2-lang.c (m2_language_data): Remove string_lower_bound
3751 initializer.
3752 (m2_language::string_lower_bound): New member function.
3753 * objc-lang.c (objc_language_data): Remove string_lower_bound
3754 initializer.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_language_data): Likewise.
3757 * rust-lang.c (rust_language_data): Likewise.
3758 * valops.c (value_cstring): Update call to string_lower_bound.
3759 (value_string): Likewise.
3760 * value.c (allocate_repeated_value): Likewise.
3761
3762 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * valops.c (value_repeat): Fix incorrect argument name in comment.
3765
3766 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3767
3768 * ada-lang.c (ada_language_data): Remove c_style_arrays
3769 initializer.
3770 (ada_language::c_style_arrays_p): New member fuction.
3771 * c-lang.c (c_language_data): Remove c_style_arrays
3772 initializer.
3773 (cplus_language_data): Likewise.
3774 (asm_language_data): Likewise.
3775 (minimal_language_data): Likewise.
3776 * d-lang.c (d_language_data): Likewise.
3777 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3778 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3779 (f_language::c_style_arrays_p): New member function.
3780 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3781 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3782 * language.c (unknown_language_data): Remove c_style_arrays
3783 initializer.
3784 (auto_language_data): Likewise.
3785 * language.h (language_data): Remove c_style_arrays field.
3786 (language_defn::c_style_arrays_p): New member function.
3787 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3788 (m2_language::c_style_arrays_p): New member function.
3789 * objc-lang.c (objc_language_data): Remove c_style_arrays
3790 initializer.
3791 * opencl-lang.c (opencl_language_data): Likewise.
3792 * p-lang.c (pascal_language_data): Likewise.
3793 * rust-lang.c (rust_language_data): Likewise.
3794 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3795 and update local variable to a bool.
3796 * valops.c (value_cast): Update call to c_style_arrays_p.
3797 (value_array): Likewise.
3798 * value.c (coerce_array): Likewise.
3799
3800 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * ada-lang.c (ada_language_data): Remove la_language initializer.
3803 * c-lang.c (c_language_data): Likewise.
3804 (cplus_language_data): Likewise.
3805 (asm_language_data): Likewise.
3806 (minimal_language_data): Likewise.
3807 * d-lang.c (d_language_data): Likewise.
3808 * f-lang.c (f_language_data): Likewise.
3809 * go-lang.c (go_language_data): Likewise.
3810 * language.c (unknown_language_data): Likewise.
3811 (auto_language_data): Likewise.
3812 * language.h (language_data): Remove la_language field.
3813 (language_defn::language_defn): Initialise la_language field.
3814 (language_defn::la_language): New member variable.
3815 * m2-lang.c (m2_language_data): Remove la_language field.
3816 * objc-lang.c (objc_language_data): Likewise.
3817 * opencl-lang.c (opencl_language_data): Likewise.
3818 * p-lang.c (pascal_language_data): Likewise.
3819 * rust-lang.c (rust_language_data): Likewise.
3820
3821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * ada-lang.c (ada_extensions): Delete, moved into
3824 ada_language::filename_extensions.
3825 (ada_language_data): Remove la_filename_extensions initializer.
3826 (ada_language::filename_extensions): New member function.
3827 * c-lang.c (c_extensions): Delete, moved into
3828 c_language::filename_extensions.
3829 (c_language_data): Remove la_filename_extensions initializer.
3830 (c_language::filename_extensions): New member function.
3831 (cplus_extensions): Delete, moved into
3832 cplus_language::filename_extensions.
3833 (cplus_language_data): Remove la_filename_extensions initializer.
3834 (cplus_language::filename_extensions): New member function.
3835 (asm_extensions): Delete, moved into
3836 asm_language::filename_extensions.
3837 (asm_language_data): Remove la_filename_extensions initializer.
3838 (asm_language::filename_extensions): New member function.
3839 (minimal_language_data): Remove la_filename_extensions
3840 initializer.
3841 * d-lang.c (d_extensions): Delete, moved into
3842 d_language::filename_extensions.
3843 (d_language_data): Remove la_filename_extensions initializer.
3844 (d_language::filename_extensions): New member function.
3845 * f-lang.c (f_extensions): Delete, moved into
3846 f_language::filename_extensions.
3847 (f_language_data): Remove la_filename_extensions initializer.
3848 (f_language::filename_extensions): New member function.
3849 * go-lang.c (go_language_data): Remove la_filename_extensions
3850 initializer.
3851 * language.c (add_set_language_command): Update now that
3852 filename_extensions returns a vector.
3853 (unknown_language_data): Remove la_filename_extensions
3854 initializer.
3855 (auto_language_data): Likewise.
3856 * language.h (language_data): Remove la_filename_extensions field.
3857 (language_defn::filename_extensions): New member function.
3858 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3859 initializer.
3860 * objc-lang.c (objc_extensions): Delete, moved into
3861 objc_language::filename_extensions.
3862 (objc_language_data): Remove la_filename_extensions initializer.
3863 (objc_language::filename_extensions): New member function.
3864 * opencl-lang.c (opencl_language_data): Remove
3865 la_filename_extensions initializer.
3866 * p-lang.c (pascal_extensions): Delete, moved into
3867 pascal_language::filename_extensions.
3868 (pascal_language_data): Remove la_filename_extensions initializer.
3869 (pascal_language::filename_extensions): New member function.
3870 * rust-lang.c (rust_extensions): Delete, moved into
3871 rust_language::filename_extensions.
3872 (rust_language_data): Remove la_filename_extensions initializer.
3873 (rust_language::filename_extensions): New member function.
3874 * symfile.c (add_filename_language): Add new assert.
3875
3876 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * ada-lang.c (ada_language_data): Remove la_name and
3879 la_natural_name initializers.
3880 (ada_language::name): New member function.
3881 (ada_language::natural_name): New member function.
3882 * c-lang.c (c_language_data): Remove la_name and
3883 la_natural_name initializers.
3884 (c_language::name): New member function.
3885 (c_language::natural_name): New member function.
3886 (cplus_language_data): Remove la_name and
3887 la_natural_name initializers.
3888 (cplus_language::name): New member function.
3889 (cplus_language::natural_name): New member function.
3890 (asm_language_data): Remove la_name and
3891 la_natural_name initializers.
3892 (asm_language::name): New member function.
3893 (asm_language::natural_name): New member function.
3894 (minimal_language_data): Remove la_name and
3895 la_natural_name initializers.
3896 (minimal_language::name): New member function.
3897 (minimal_language::natural_name): New member function.
3898 * compile/compile.c (compile_to_object): Update call to
3899 lanugage_defn::name.
3900 * d-lang.c (d_language_data): Remove la_name and
3901 la_natural_name initializers.
3902 (d_language::name): New member function.
3903 (d_language::natural_name): New member function.
3904 * expprint.c (print_subexp_standard): Update call to
3905 language_defn::name.
3906 (dump_raw_expression): Likewise
3907 (dump_prefix_expression): Likewise.
3908 * f-lang.c (f_language_data): Remove la_name and
3909 la_natural_name initializers.
3910 (f_language::name): New member function.
3911 (f_language::natural_name): New member function.
3912 * go-lang.c (go_language_data): Remove la_name and
3913 la_natural_name initializers.
3914 (go_language::name): New member function.
3915 (go_language::natural_name): New member function.
3916 * language.c (show_language_command): Update call to
3917 language_defn::name.
3918 (set_language_command): Likewise.
3919 (language_enum): Likewise.
3920 (language_str): Likewise.
3921 (add_set_language_command): Likewise, use
3922 language_defn::natural_name in the doc string.
3923 (unknown_language_data): Remove la_name and
3924 la_natural_name initializers.
3925 (unknown_language::name): New member function.
3926 (unknown_language::natural_name): New member function.
3927 (auto_language_data): Remove la_name and
3928 la_natural_name initializers.
3929 (auto_language::name): New member function.
3930 (auto_language::natural_name): New member function.
3931 (language_lookup_primitive_type_as_symbol): Update call to
3932 language_defn::name.
3933 * language.h (language_data): Remove la_name and la_natural_name
3934 member variables.
3935 (language_defn::name): New member function.
3936 (language_defn::natural_name): New member function.
3937 * m2-lang.c (m2_language_data): Remove la_name and
3938 la_natural_name initializers.
3939 (m2_language::name): New member function.
3940 (m2_language::natural_name): New member function.
3941 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3942 language_defn::natural_name.
3943 * objc-lang.c (objc_language_data): Remove la_name and
3944 la_natural_name initializers.
3945 (objc_language::name): New member function.
3946 (objc_language::natural_name): New member function.
3947 * opencl-lang.c (opencl_language_data): Remove la_name and
3948 la_natural_name initializers.
3949 (opencl_language::name): New member function.
3950 (opencl_language::natural_name): New member function.
3951 * p-lang.c (pascal_language_data): Remove la_name and
3952 la_natural_name initializers.
3953 (pascal_language::name): New member function.
3954 (pascal_language::natural_name): New member function.
3955 * rust-lang.c (rust_language_data): Remove la_name and
3956 la_natural_name initializers.
3957 (rust_language::name): New member function.
3958 (rust_language::natural_name): New member function.
3959 * symtab.c (lookup_language_this): Update call to
3960 language_defn::name.
3961
3962 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * ada-lang.c (ada_language_data): Remove la_name_of_this
3965 initializer.
3966 * ax-gdb.c (gen_expr): Update call to name_of_this.
3967 * c-exp.y (classify_name): Likewise.
3968 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3969 (cplus_language_data): Likewise.
3970 (cplus_language::name_of_this): New member function.
3971 (asm_language_data): Remove la_name_of_this initializer.
3972 (minimal_language_data): Likewise.
3973 * d-lang.c (d_language_data): Likewise.
3974 (d_language::name_of_this): New member function.
3975 * expprint.c (print_subexp_standard): Update call to name_of_this.
3976 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3977 * go-lang.c (go_language_data): Likewise.
3978 * language.c (unknown_language_data): Likewise.
3979 (unknown_language::name_of_this): New member function.
3980 (auto_language_data): Remove la_name_of_this initializer.
3981 (auto_language::name_of_this): New member function.
3982 * language.h (language_data): Delete la_name_of_this member
3983 variable.
3984 (language_defn::name_of_this): New member function.
3985 * m2-lang.c (m2_language_data): Remove la_name_of_this
3986 initializer.
3987 * objc-lang.c (objc_language_data): Likewise.
3988 (objc_language::name_of_this): New member function.
3989 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3990 initializer.
3991 * p-lang.c (pascal_language_data): Likewise.
3992 (pascal_language::name_of_this): New member function.
3993 * rust-lang.c (rust_language_data): Remove la_name_of_this
3994 initializer.
3995 * symtab.c (lookup_language_this): Update call to name_of_this.
3996 (lookup_symbol_aux): Likewise.
3997 * valops.c (value_of_this): Likewise.
3998
3999 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * ada-lang.c (ada_language_data): Remove
4002 la_struct_too_deep_ellipsis initializer.
4003 (ada_language::struct_too_deep_ellipsis): New member function.
4004 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4005 initializer.
4006 (cplus_language_data): Likewise.
4007 (asm_language_data): Likewise.
4008 (minimal_language_data): Likewise.
4009 * cp-valprint.c (cp_print_value): Update call to
4010 struct_too_deep_ellipsis.
4011 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4012 initializer.
4013 * f-lang.c (f_language_data): Likewise.
4014 (f_language::struct_too_deep_ellipsis): New member function.
4015 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4016 initializer.
4017 * language.c (unknown_language_data): Likewise.
4018 (auto_language_data): Likewise.
4019 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4020 member variable.
4021 (language_defn::struct_too_deep_ellipsis): New member function.
4022 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4023 initializer.Q
4024 * objc-lang.c (objc_language_data): Likewise.
4025 * opencl-lang.c (opencl_language_data): Likewise.
4026 * p-lang.c (pascal_language_data): Likewise.
4027 * rust-lang.c (rust_language_data): Likewise.
4028 * valprint.c (val_print_check_max_depth): Update call to
4029 struct_too_deep_ellipsis.
4030
4031 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4032
4033 * MAINTAINERS (Write After Approval): Add myself.
4034
4035 2020-09-15 Tom Tromey <tom@tromey.com>
4036
4037 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4038 Remove.
4039
4040 2020-09-15 Tom Tromey <tom@tromey.com>
4041
4042 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4043 and TYPE_CODE_METHODPTR cases.
4044 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4045 (c_value_print_inner): Update.
4046 * valprint.c (generic_value_print_memberptr): New function, from
4047 c_value_print_memberptr.
4048 (generic_value_print): Use it. Call cplus_print_method_ptr.
4049
4050 2020-09-15 Tom Tromey <tromey@adacore.com>
4051
4052 * python/python-internal.h (PyInt_FromLong): Remove define.
4053 * python/py-value.c (convert_value_from_python): Use
4054 gdb_py_object_from_longest.
4055 * python/py-type.c (typy_get_code): Use
4056 gdb_py_object_from_longest.
4057 * python/py-symtab.c (salpy_get_line): Use
4058 gdb_py_object_from_longest.
4059 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4060 gdb_py_object_from_longest.
4061 * python/py-record.c (recpy_gap_reason_code): Use
4062 gdb_py_object_from_longest.
4063 * python/py-record-btrace.c (recpy_bt_insn_size)
4064 (recpy_bt_func_level, btpy_list_count): Use
4065 gdb_py_object_from_longest.
4066 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4067 gdb_py_object_from_longest. Fix error handling.
4068 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4069 gdb_py_object_from_longest.
4070 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4071 gdb_py_object_from_longest.
4072 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4073 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4074 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4075
4076 2020-09-15 Tom Tromey <tromey@adacore.com>
4077
4078 * python/python.c (gdbpy_parameter_value): Use
4079 gdb_py_object_from_ulongest.
4080
4081 2020-09-15 Tom Tromey <tromey@adacore.com>
4082
4083 * python/py-infevents.c (create_register_changed_event_object):
4084 Use gdb_py_object_from_longest.
4085 * python/py-exitedevent.c (create_exited_event_object): Use
4086 gdb_py_object_from_longest.
4087
4088 2020-09-15 Tom Tromey <tromey@adacore.com>
4089
4090 * python/python.c (gdbpy_parameter_value): Use
4091 gdb_py_object_from_longest.
4092 * python/py-type.c (convert_field, typy_range): Use
4093 gdb_py_object_from_longest.
4094 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4095 gdb_py_object_from_longest.
4096 * python/py-lazy-string.c (stpy_get_length): Use
4097 gdb_py_object_from_longest.
4098 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4099 gdb_py_object_from_longest.
4100 * python/py-infevents.c (create_memory_changed_event_object): Use
4101 gdb_py_object_from_longest.
4102 * python/py-inferior.c (infpy_get_num): Use
4103 gdb_py_object_from_longest.
4104 (infpy_get_pid): Likewise.
4105
4106 2020-09-15 Tom Tromey <tromey@adacore.com>
4107
4108 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4109 defines.
4110 * python/py-value.c (valpy_long): Use
4111 gdb_py_object_from_ulongest.
4112 * python/py-symtab.c (salpy_get_pc): Use
4113 gdb_py_object_from_ulongest.
4114 (salpy_get_last): Likewise.
4115 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4116 gdb_py_object_from_ulongest.
4117 * python/py-lazy-string.c (stpy_get_address): Use
4118 gdb_py_object_from_ulongest.
4119 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4120 * python/py-arch.c (archpy_disassemble): Use
4121 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4122 error handling.
4123
4124 2020-09-15 Tom Tromey <tromey@adacore.com>
4125
4126 * python/python-internal.h (gdb_py_long_from_longest): Remove
4127 defines.
4128 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4129 * python/py-type.c (convert_field, typy_get_sizeof): Use
4130 gdb_py_object_from_longest.
4131 * python/py-record-btrace.c (btpy_list_index): Use
4132 gdb_py_object_from_longest.
4133
4134 2020-09-15 Tom Tromey <tromey@adacore.com>
4135
4136 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4137 * python/py-record.c (recpy_element_number): Use
4138 gdb_py_object_from_longest.
4139 (recpy_gap_number): Likewise.
4140
4141 2020-09-15 Tom Tromey <tromey@adacore.com>
4142
4143 * top.c (ui::ui): Update.
4144 (highest_ui_num): Remove.
4145 * top.h (struct ui) <num>: Remove.
4146
4147 2020-09-15 Tom Tromey <tromey@adacore.com>
4148
4149 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4150 * ui-style.c (ansi_regex_text): Now array.
4151 * rust-exp.y (number_regex_text): Now array.
4152 * linespec.c (linespec_quote_characters): Now array.
4153 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4154 Now arrays.
4155
4156 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4157
4158 * debuginfod-support.c (debuginfod_client_deleter): New.
4159 (debuginfod_client_up): New.
4160 (debuginfod_init): Return debuginfod_client_up.
4161 (debuginfod_source_query): Adjust.
4162 (debuginfod_debuginfo_query): Adjust.
4163
4164 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * debuginfod-support.c (debuginfod_source_query): Use
4167 make_unique_xstrdup.
4168
4169 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4172 with `type::instance_flags`.
4173
4174 2020-09-14 Michael Mullin <masmullin@gmail.com>
4175
4176 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4177 Remove baton parameter.
4178
4179 2020-09-14 Pedro Alves <pedro@palves.net>
4180
4181 * Makefile.in (SELFTESTS_SRCS): Add
4182 unittests/enum-flags-selftests.c.
4183 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4184 btrace_function_flags instead of enum btrace_function_flag.
4185 * compile/compile-c-types.c (convert_qualified): Use
4186 enum_flags::raw.
4187 * compile/compile-cplus-symbols.c (convert_one_symbol)
4188 (convert_symbol_bmsym):
4189 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4190 (compile_cplus_convert_struct_or_union_methods)
4191 (compile_cplus_instance::convert_qualified_base):
4192 * go-exp.y (parse_string_or_char): Add cast to int.
4193 * unittests/enum-flags-selftests.c: New file.
4194 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4195 type to btrace_thread_flags from btrace_thread_flag.
4196 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4197 local's type to btrace_thread_flags from btrace_thread_flag. Add
4198 cast in DEBUG call.
4199
4200 2020-09-14 Pedro Alves <pedro@palves.net>
4201
4202 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4203 * gdbtypes.c (address_space_name_to_int): Rename to ...
4204 (address_space_name_to_type_instance_flags): ... this.
4205 (address_space_int_to_name): Rename to ...
4206 (address_space_type_instance_flags_to_name): ... this.
4207 * gdbtypes.h (address_space_name_to_int): Rename to ...
4208 (address_space_name_to_type_instance_flags): ... this.
4209 (address_space_int_to_name): Rename to ...
4210 (address_space_type_instance_flags_to_name): ... this.
4211 * type-stack.c (type_stack::insert): Adjust to rename.
4212 * type-stack.h (type_stack::insert): Likewise.
4213
4214 2020-09-14 Pedro Alves <pedro@palves.net>
4215 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * avr-tdep.c (avr_address_class_type_flags): Return
4218 type_instance_flags.
4219 (avr_address_class_type_flags_to_name): Take a
4220 type_instance_flags.
4221 (avr_address_class_name_to_type_flags): Return bool and take a
4222 type_instance_flags.
4223 * d-lang.c (build_d_types): Use type::set_instance_flags.
4224 * ft32-tdep.c (ft32_address_class_type_flags): Return
4225 type_instance_flags.
4226 (ft32_address_class_type_flags_to_name): Take a
4227 type_instance_flags.
4228 (ft32_address_class_name_to_type_flags): Return bool and take a
4229 type_instance_flags.
4230 (ft32_gdbarch_init): Use type::set_instance_flags.
4231 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4232 * gdbarch.h, gdbarch.c: Regenerate.
4233 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4234 (address_class_name_to_type_flags): Use type_instance_flags and
4235 bool.
4236 * gdbtypes.c (address_space_name_to_int)
4237 (address_space_int_to_name, make_qualified_type): Use
4238 type_instance_flags.
4239 (make_qualified_type): Use type_instance_flags and
4240 type::set_instance_flags.
4241 (make_type_with_address_space, make_cv_type, make_vector_type)
4242 (check_typedef): Use type_instance_flags.
4243 (recursive_dump_type): Cast type_instance_flags to unsigned for
4244 printing.
4245 (copy_type_recursive): Use type::set_instance_flags.
4246 (gdbtypes_post_init): Use type::set_instance_flags.
4247 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4248 <m_instance_flags>: ... this.
4249 <instance_flags, set_instance_flags>: New methods.
4250 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4251 (SET_TYPE_INSTANCE_FLAGS): New.
4252 (address_space_name_to_int, address_space_int_to_name)
4253 (make_type_with_address_space): Pass flags using
4254 type_instance_flags instead of int.
4255 * stabsread.c (cleanup_undefined_types_noname): Use
4256 type::set_instance_flags.
4257 * s390-tdep.c (s390_address_class_type_flags): Return
4258 type_instance_flags.
4259 (s390_address_class_type_flags_to_name): Take a
4260 type_instance_flags.
4261 (s390_address_class_name_to_type_flags): Return bool and take a
4262 type_instance_flags.
4263 * type-stack.c (type_stack::follow_types): Use
4264 type_instance_flags.
4265 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4266
4267 2020-09-14 Tom Tromey <tromey@adacore.com>
4268
4269 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4270 * x86-tdep.c (x86_is_thunk_register_name)
4271 (x86_in_indirect_branch_thunk): Update.
4272 * sparc64-tdep.c (sparc64_fpu_register_names)
4273 (sparc64_cp0_register_names, sparc64_register_names)
4274 (sparc64_pseudo_register_names): Now const.
4275 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4276 cp0_registers_num>: Now const.
4277 * sparc-tdep.c (sparc_core_register_names)
4278 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4279 (sparc32_pseudo_register_names): Now const.
4280 (validate_tdesc_registers): Update.
4281 * rust-lang.c (rust_extensions): Now const.
4282 * p-lang.c (p_extensions): Now const.
4283 * objc-lang.c (objc_extensions): Now const.
4284 * nto-tdep.c (nto_thread_state_str): Now const.
4285 * moxie-tdep.c (moxie_register_names): Now const.
4286 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4287 Now const.
4288 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4289 (mips_linux_reg_names): Now const.
4290 (mips_gdbarch_init): Update.
4291 * microblaze-tdep.c (microblaze_register_names): Now const.
4292 * m68k-tdep.c (m68k_register_names): Now const.
4293 * m32r-tdep.c (m32r_register_names): Now const.
4294 * ia64-tdep.c (ia64_register_names): Now const.
4295 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4296 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4297 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4298 ymm_avx512_register_names, pkeys_register_names>: Now const.
4299 * i386-tdep.c (i386_register_names, i386_zmm_names)
4300 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4301 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4302 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4303 * f-lang.c (f_extensions): Now const.
4304 * d-lang.c (d_extensions): Now const.
4305 * csky-tdep.c (csky_register_names): Now const.
4306 * charset.c (default_charset_names, charset_enum): Now const.
4307 (_initialize_charset): Update.
4308 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4309 const.
4310 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4311 (bsd_uthread_solib_loaded): Update.
4312 (bsd_uthread_state): Now const.
4313 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4314 (amd64_ymm_avx512_names, amd64_ymmh_names)
4315 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4316 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4317 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4318 (amd64_dword_names): Now const.
4319 * agent.c (can_use_agent_enum): Now const.
4320 * ada-tasks.c (task_states, long_task_states): Now const.
4321 * ada-lang.c (known_runtime_file_name_patterns)
4322 (known_auxiliary_function_name_patterns, attribute_names)
4323 (standard_exc, ada_extensions): Now const.
4324
4325 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4326
4327 * bcache.h (struct bcache) <bcache>: Remove constructor.
4328 <m_hash_function, m_compare_function>: Remove.
4329 <~bcache>: Make virtual.
4330 <compare>: Remove static method, introduce virtual method.
4331 <default_hash>: Remove.
4332 <hash>: New virtual method.
4333 * bcache.c (bcache::expand_hash_table): Update.
4334 (bcache::insert): Update.
4335 (bcache::hash): New.
4336 (bcache::compare): Update comment and parameter names.
4337 * gdbtypes.c (types_deeply_equal): Update.
4338 * psymtab.h (struct psymbol_bcache): New struct.
4339 (class psymtab_storage) <psymtab_storage>: Make default.
4340 <psymbol_cache>: Change type to psymbol_bcache.
4341 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4342 (psymbol_hash): Change to...
4343 (psymbol_bcache::hash): ... this.
4344 (psymbol_compare): Change to...
4345 (psymbol_bcache::compare): ... this.
4346
4347 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4348
4349 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4350 checking for initial lwp.
4351
4352 2020-09-14 Tom Tromey <tromey@adacore.com>
4353
4354 * m68k-tdep.c (m68k_extract_return_value): Use
4355 pointer_result_regnum.
4356 (m68k_store_return_value): Likewise.
4357 (m68k_reg_struct_return_p): Handle vectors and arrays.
4358 (m68k_return_value): Handle arrays.
4359 (m68k_svr4_return_value): Fix single-element aggregate handling.
4360 Handle long double. Adjust for embedded ABI.
4361 (m68k_svr4_init_abi): Set pointer_result_regnum.
4362 (m68k_embedded_init_abi): New function.
4363 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4364 (m68k_osabi_sniffer): New function.
4365 (_initialize_m68k_tdep): Register osabi sniffer.
4366 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4367 member.
4368
4369 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4370
4371 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4372 with gdb::unique_xmalloc_ptr<char>.
4373
4374 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * xml-support.h (xml_fetch_another): Change type to be a
4377 function_view.
4378 (xml_process_xincludes): Remove baton parameter.
4379 (xml_fetch_content_from_file): Change baton parameter to
4380 dirname.
4381 * xml-support.c (struct xinclude_parsing_data)
4382 <xinclude_parsing_data>: Remove baton parameter.
4383 <fetcher_baton>: Remove.
4384 (xinclude_start_include): Adjust.
4385 (xml_process_xincludes): Adjust.
4386 (xml_fetch_content_from_file): Replace baton parameter with
4387 dirname.
4388 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4389 (xml_init_syscalls_info): Use a lambda.
4390 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4391 (file_read_description_xml): Use a lambda.
4392 (fetch_available_features_from_target): Change baton parameter
4393 to target_ops.
4394 (target_read_description_xml): Use a lambda.
4395 (target_fetch_description_xml): Use a lambda.
4396 (string_read_description_xml): Update.
4397
4398 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4399
4400 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4401 uses with type::endianity_is_not_default.
4402
4403 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * gdbtypes.h (struct type) <endianity_is_not_default,
4406 set_endianity_is_not_default>: New methods.
4407 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4408 type::endianity_is_not_default, change all write call sites to
4409 use type::set_endianity_is_not_default.
4410
4411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4414 uses with type::is_fixed_instance.
4415
4416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * gdbtypes.h (struct type) <is_fixed_instance,
4419 set_is_fixed_instance>: New methods.
4420 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4421 write call sites to use type::set_is_fixed_instance.
4422
4423 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4426 uses with type::is_gnu_ifunc.
4427
4428 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4431 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4432 use type::set_is_gnu_ifunc.
4433
4434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4437 uses with type::stub_is_supported.
4438
4439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4442 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4443 use type::set_stub_is_supported.
4444
4445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4448 uses with type::is_vector.
4449
4450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4453 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4454 use type::set_is_vector.
4455
4456 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4459 uses with type::has_varargs.
4460
4461 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4464 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4465 use type::set_has_varargs.
4466
4467 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4470 uses with type::is_prototyped.
4471
4472 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4475 New methods.
4476 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4477 call sites to use type::set_is_prototyped.
4478
4479 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4482 uses with type::target_is_stub.
4483
4484 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4487 New methods.
4488 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4489 sites to use type::set_target_is_stub.
4490
4491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (TYPE_STUB): Remove, replace all
4494 uses with type::is_stub.
4495
4496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4499 (TYPE_STUB): Use type::is_stub, change all write call sites to
4500 use type::set_is_stub.
4501
4502 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4505 type::has_no_signedness.
4506
4507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct type) <has_no_signedness,
4510 set_has_no_signedness>: New methods.
4511 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4512 call sites to use type::set_has_no_signedness.
4513
4514 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4517 type::is_unsigned.
4518
4519 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4522 methods.
4523 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4524 sites to use type::set_is_unsigned.
4525
4526 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4527 Adam Renquinha <arenquinha@cimeq.qc.ca>
4528
4529 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4530 pointer and stack frame offset when unwinding.
4531
4532 2020-09-13 Pedro Alves <pedro@palves.net>
4533
4534 * NEWS: Document "-break-insert --qualified".
4535 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4536
4537 2020-09-13 Pedro Alves <pedro@palves.net>
4538
4539 * linespec.c (classify_mtype, compare_msyms): Delete.
4540 (search_minsyms_for_name): Remove classification logic. Instead
4541 filter out trampoline symbols if we also found an external
4542 function of the same name.
4543
4544 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4545
4546 * NEWS: Create a new section for the next release branch.
4547 Rename the section of the current branch, now that it has
4548 been cut.
4549
4550 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4551
4552 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4553 * version.in: Bump version to 11.0.50.DATE-git.
4554
4555 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4556
4557 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4558
4559 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4560 Felix Willgerodt <Felix.Willgerodt@intel.com>
4561
4562 * gdbarch.sh: Added bfloat16 type.
4563 * gdbarch.c: Regenerated.
4564 * gdbarch.h: Regenerated.
4565 * gdbtypes.c (floatformats_bfloat16): New struct.
4566 (gdbtypes_post_init): Add builtin_bfloat16.
4567 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4568 (floatformats_bfloat16): New struct.
4569 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4570 (i386_ymm_type): Add field "v16_bfloat16"
4571 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4572 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4573 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4574 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4575 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4576 * features/i386/64bit-avx512.c: Regenerated.
4577 * features/i386/64bit-sse.xml: Add bfloat16 type.
4578 * features/i386/64bit-sse.c: Regenerated.
4579
4580 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4581
4582 * i386-tdep.c (i386_zmm_type): Fix field names.
4583 (i386_ymm_type): Fix field names.
4584
4585 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4586
4587 * breakpoint.c: Fix typo in the help message of the
4588 "set breakpoint condition-evaluation" command.
4589
4590 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4591
4592 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4593 * (nbsd_nat_target::pid_to_exec_file)
4594 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4595 (nbsd_nat_target::post_startup_inferior)
4596 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4597 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4598 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4599 * (nbsd_thread_lister): Remove.
4600
4601 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4602
4603 * fork-inferior.c (startup_inferior): Avoid double free.
4604
4605 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4606
4607 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4608 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4609
4610 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4611
4612 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4613 * netbsd-nat.c: Include <sys/ptrace.h>.
4614 * (netbsd_nat::enable_proc_events): Add.
4615
4616 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4617
4618 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4619 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4620 (netbsd_nat::for_each_thread): Add.
4621 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4622 "gdbsupport/common-debug.h".
4623 * (netbsd_nat::netbsd_thread_lister)
4624 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4625 (netbsd_nat::for_each_thread): Add.
4626
4627 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4628
4629 * netbsd-nat.h: Include <unistd.h>.
4630 * (netbsd_nat::pid_to_exec_file): Add.
4631 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4632 * (netbsd_nat::pid_to_exec_file) Add.
4633
4634 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4635
4636 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4637
4638 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4639
4640 * netbsd-nat.h: New file.
4641 * netbsd-nat.c: Likewise.
4642
4643 2020-09-09 Tom Tromey <tromey@adacore.com>
4644
4645 * ada-lang.c (remove_extra_symbols): Do not increment when
4646 removing an element
4647
4648 2020-09-08 Tom Tromey <tromey@adacore.com>
4649
4650 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4651
4652 2020-09-08 Tom Tromey <tromey@adacore.com>
4653
4654 PR win32/25302:
4655 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4656 (gdb_bfd_init_data): New function.
4657 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4658
4659 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4660
4661 * infrun.c (fetch_inferior_event): Use
4662 `switch_to_target_no_thread` to switch the target.
4663
4664 2020-09-06 Tom Tromey <tom@tromey.com>
4665
4666 * symfile.h (dwarf2_free_objfile): Don't declare.
4667
4668 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4669
4670 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4671 to match 16 byte real/complex type generated by Flang compiler.
4672
4673 2020-09-03 Tom de Vries <tdevries@suse.de>
4674
4675 PR breakpoint/26546
4676 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4677 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4678
4679 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4680
4681 * maint.c (index_digits): New function.
4682 (struct maint_print_section_data): Remove.
4683 (print_bfd_section_info): Remove print_data parameter, add arg
4684 and index_digits.
4685 (print_objfile_section_info): Likewise.
4686 (print_bfd_section_info_maybe_relocated): Likewise (plus
4687 objfile).
4688 (maintenance_info_sections): Adjust calls.
4689
4690 2020-09-02 Tom Tromey <tromey@adacore.com>
4691
4692 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4693 for null pointers.
4694 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4695
4696 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * bcache.h (struct bcache) <insert>: Change type of `added` to
4699 pointer to bool.
4700 * bcache.c (bcache::insert): Likewise.
4701 * gdbtypes.c (check_types_worklist): Adjust.
4702 * psymtab.c (add_psymbol_to_bcache): Adjust.
4703
4704 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4705
4706 * corelow.c (unordered_set): Include.
4707 (class core_target): Add field 'm_core_unavailable_mappings'.
4708 (core_target::build_file_mappings): Print only one warning
4709 per inaccessible file. Add unavailable/broken mappings
4710 to m_core_unavailable_mappings.
4711 (core_target::xfer_partial): Call...
4712 (core_target::xfer_memory_via_mappings): New method.
4713
4714 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4715
4716 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4717 type to bool.
4718
4719 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4720
4721 * dwarf2/read.c (struct field_info): Fix indentation.
4722
4723 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4726 ordering in comment.
4727 * frame.c (frame_id_eq): Fix indentation.
4728
4729 2020-08-31 Scott Linder <scott@scottlinder.com>
4730 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4733 inline frame ids in outer frame.
4734
4735 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4738 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4739 (outer_frame_id): Use FID_STACK_OUTER instead of
4740 FID_STACK_INVALID.
4741 (frame_id_p): Don't check for outer_frame_id.
4742
4743 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4746 regnum/frame in value. Call allocate_value_lazy.
4747 * frame.c (frame_unwind_register_value): Use
4748 val_print_not_saved.
4749
4750 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4753
4754 2020-08-29 Pedro Alves <pedro@palves.net>
4755
4756 * progspace.c (print_program_space): Use all_inferiors. Switch to
4757 the inferior before calling target_pid_to_str.
4758
4759 2020-08-28 Tom Tromey <tom@tromey.com>
4760
4761 * xcoffread.c (xcoff_end_psymtab): Update comment.
4762 * dbxread.c (dbx_end_psymtab): Update comment.
4763
4764 2020-08-28 Tom de Vries <tdevries@suse.de>
4765
4766 PR breakpoint/26544
4767 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4768 event_location.
4769 (create_breakpoint): Same.
4770 (base_breakpoint_decode_location): Same.
4771 (bkpt_create_sals_from_location): Same.
4772 (bkpt_decode_location): Same.
4773 (bkpt_probe_create_sals_from_location): Same.
4774 (bkpt_probe_decode_location): Same.
4775 (tracepoint_create_sals_from_location): Same.
4776 (tracepoint_decode_location): Same.
4777 (tracepoint_probe_decode_location): Same.
4778 (strace_marker_create_sals_from_location): Same.
4779 (strace_marker_decode_location): Same.
4780 (create_sals_from_location_default): Same.
4781 (decode_location_default): Same.
4782 * breakpoint.h (struct breakpoint_ops): Same.
4783 (create_breakpoint): Same.
4784 * linespec.h (decode_line_full): Same.
4785 * linespec.c (decode_line_full): Same. Throw error if
4786 result.size () == 0.
4787
4788 2020-08-27 Pedro Alves <pedro@palves.net>
4789
4790 PR gdb/26524
4791 * breakpoint.c (until_break_fsm) <location_breakpoint,
4792 caller_breakpoint>: Delete fields.
4793 <breakpoints>: New field.
4794 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4795 two individual breakpoints.
4796 (until_break_fsm::should_stop): Loop over breakpoints in the
4797 breakpoint vector.
4798 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4799 vector.
4800 (until_break_command): Handle location expanding into multiple
4801 sals.
4802
4803 2020-08-27 Pedro Alves <pedro@palves.net>
4804
4805 PR gdb/26523
4806 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4807 bp_until breakpoints user-specified locations. Update intro
4808 comment.
4809
4810 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4813 gdb_bfd_sections): New.
4814 * maint.c (print_bfd_section_info): Change param type to
4815 maint_print_section_data.
4816 (print_objfile_section_info): Likewise.
4817 (print_bfd_section_info_maybe_relocated): Likewise.
4818 (maintenance_info_sections): Use gdb_bfd_sections.
4819
4820 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4821
4822 * MAINTAINERS: Add ARC target and maintainer.
4823
4824 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4825
4826 * configure.tgt: ARC support for GNU/Linux.
4827 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4828 * arc-linux-tdep.c: New file.
4829 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4830 * arc-tdep.c (arc_write_pc): Use it.
4831
4832 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4833
4834 * arc-tdep.c (arc_check_for_hardware_loop): New.
4835 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4836
4837 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4838
4839 * arc-tdep.h: Include "gdbarch.h".
4840
4841 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4842
4843 * arch/arc.h
4844 (arc_gdbarch_features): New class to stir the selection of target XML.
4845 (arc_create_target_description): Use FEATURES to choose XML target.
4846 (arc_lookup_target_description): Use arc_create_target_description
4847 to create _new_ target descriptions or return the already created
4848 ones if the FEATURES is the same.
4849 * arch/arc.c: Implementation of prototypes described above.
4850 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4851 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4852 * arc-tdep.c (*_feature_name): Make feature names consistent.
4853 (arc_register_feature): A new struct to hold information about
4854 registers of a particular target/feature.
4855 (arc_check_tdesc_feature): Check if XML provides registers in
4856 compliance with ARC_REGISTER_FEATURE structs.
4857 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4858 (determine_*_reg_feature_set): Which feature name to look for.
4859 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4860 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4861 to expected ISA enums to be used in arc_gdbarch_features structs.
4862 * features/Makefile (FEATURE_XMLFILES): Add new files.
4863 * gdb/features/arc/v1-aux.c: New file.
4864 * gdb/features/arc/v1-aux.xml: Likewise.
4865 * gdb/features/arc/v1-core.c: Likewise.
4866 * gdb/features/arc/v1-core.xml: Likewise.
4867 * gdb/features/arc/v2-aux.c: Likewise.
4868 * gdb/features/arc/v2-aux.xml: Likewise.
4869 * gdb/features/arc/v2-core.c: Likewise.
4870 * gdb/features/arc/v2-core.xml: Likewise.
4871 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4872
4873 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4874 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 PR m2/26372
4877 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4878 an assert. Remove single element array indexing pattern as the
4879 MULTI_SUBSCRIPT support will handle this case too.
4880
4881 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4882
4883 * value.h (valprint_check_validity): Move declaration from
4884 here...
4885 * valprint.h (valprint_check_validity): ... to here.
4886
4887 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * debug.h: New file.
4890 * debug.c (debug_prefixed_vprintf): New function.
4891 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4892 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4893
4894 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * infrun.h (infrun_debug_printf_1): New function declaration.
4897 (infrun_debug_printf): New macro.
4898 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4899 throughout.
4900 (infrun_debug_printf): New function.
4901 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4902 (handle_jit_event): Likewise.
4903
4904 2020-08-21 Mark Wielaard <mark@klomp.org>
4905
4906 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4907
4908 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * frame.c (enum class frame_id_status): New.
4911 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4912 (fprintf_frame): Update.
4913 (compute_frame_id): Set frame id status to "computing" on entry.
4914 Set it back to "not_computed" on failure and to "computed" on
4915 success.
4916 (get_frame_id): Assert the frame id is not being computed.
4917 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4918 (create_new_frame): Likewise.
4919 (frame_cleanup_after_sniffer): Update assert.
4920
4921 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * regcache.c (pid_ptid_regcache_map): New type.
4924 (target_ptid_regcache_map): Remove.
4925 (target_pid_ptid_regcache_map): New type.
4926 (regcaches): Change type to target_pid_ptid_regcache_map.
4927 (get_thread_arch_aspace_regcache): Update.
4928 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4929 case.
4930 (regcaches_size): Update.
4931 (regcache_count): Update.
4932 (registers_changed_ptid_target_pid_test): New.
4933 (_initialize_regcache): Register new test.
4934
4935 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * regcache.c (regcache_count): New.
4938 (struct regcache_test_data): New.
4939 (regcache_test_data_up): New.
4940 (populate_regcaches_for_test): New.
4941 (regcaches_test): Remove.
4942 (get_thread_arch_aspace_regcache_test): New.
4943 (registers_changed_ptid_all_test): New.
4944 (registers_changed_ptid_target_test): New.
4945 (registers_changed_ptid_target_ptid_test): New.
4946 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4947 (_initialize_regcache): Register new tests.
4948
4949 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4950
4951 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4952 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4953 gdbarch and aspace parameter. Use current inferior's aspace.
4954 Validate regcache's arch value.
4955 (regcaches_test): Update.
4956
4957 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * regcache.c (regcaches_test): Call registers_changed.
4960
4961 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4962
4963 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4964
4965 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4966
4967 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4968 to find the end of prologue for flang compiled binaries.
4969 * arm-tdep.c (arm_skip_prologue): Likewise.
4970 * i386-tdep.c (i386_skip_prologue): Likewise.
4971 * producer.c (producer_is_llvm): New function.
4972 (producer_parsing_tests): Added new tests for clang/flang.
4973 * producer.h (producer_is_llvm): New declaration.
4974
4975 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * linux-nat.c (linux_nat_debug_printf): New function.
4978 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4979
4980 2020-08-18 Aaron Merey <amerey@redhat.com>
4981
4982 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4983 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4984 (CLIBS): Add DEBUGINFOD_LIBS.
4985
4986 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4987
4988 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4989 'gdbarch_num_regs'.
4990
4991 2020-08-17 Tom Tromey <tromey@adacore.com>
4992
4993 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4994 ada_get_decoded_value returns NULL.
4995
4996 2020-08-17 Tom Tromey <tromey@adacore.com>
4997
4998 * python/py-inferior.c (infpy_search_memory): Use
4999 gdb_py_object_from_ulongest.
5000 * python/py-infevents.c (create_inferior_call_event_object)
5001 (create_memory_changed_event_object): Use
5002 gdb_py_object_from_ulongest.
5003 * python/py-linetable.c (ltpy_entry_get_pc): Use
5004 gdb_py_object_from_ulongest.
5005
5006 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * loc.c (class symbol_needs_eval_context): Fix indentation.
5009
5010 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5011
5012 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5013 bool.
5014
5015 2020-08-17 Tom de Vries <tdevries@suse.de>
5016
5017 PR gdb/26393
5018 * gdbtypes.c (dump_dynamic_prop): New function.
5019 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5020
5021 2020-08-15 Tom de Vries <tdevries@suse.de>
5022
5023 PR backtrace/26390
5024 * stack.c (print_frame_args): Temporarily set the selected
5025 frame to FRAME while printing the frame's arguments.
5026
5027 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5028
5029 PR breakpoints/26385
5030 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5031 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5032
5033 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5034
5035 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5036 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5037 and >= to check return value instead of == -1 and != -1.
5038
5039 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * utils.h (class gdb_argv) <as_array_view>: New method.
5042 * utils.c (gdb_argv_as_array_view_test): New.
5043 (_initialize_utils): Register selftest.
5044 * maint.c (maintenance_selftest): Use the new method.
5045
5046 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5047
5048 * target.h (supports_dumpcore, dumpcore): New
5049 function declarations.
5050 * target.c (supports_dumpcore, dumpcore): New
5051 functions.
5052 * target-delegates.c: Rebuild.
5053 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5054 and target_dumpcore ().
5055
5056 2020-08-13 Aaron Merey <amerey@redhat.com>
5057
5058 * debuginfod-support.c: Replace global variables with user_data.
5059
5060 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * maint.c (maintenance_selftest): Split args and pass array_view
5063 to run_tests.
5064
5065 2020-08-12 Luis Machado <luis.machado@linaro.org>
5066
5067 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5068 type's length.
5069 Use %s and pulongest to print the length.
5070
5071 2020-08-12 Pedro Alves <palves@redhat.com>
5072
5073 * NEWS: Move "Multi-target debugging support" item to the
5074 "Changes since GDB 9" section.
5075
5076 2020-08-12 Pedro Alves <palves@redhat.com>
5077
5078 PR gdb/26336
5079 * progspace.c (program_space::remove_objfile): Invalidate the
5080 frame cache.
5081
5082 2020-08-11 Tom de Vries <tdevries@suse.de>
5083
5084 * MAINTAINERS: Mark ms1 as deleted.
5085
5086 2020-08-10 Luis Machado <luis.machado@linaro.org>
5087
5088 PR gdb/26310
5089
5090 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5091 act accordingly.
5092 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5093 movz/str/stur/stp skipping behavior.
5094
5095 2020-08-10 Luis Machado <luis.machado@linaro.org>
5096
5097 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5098 struct user_sve_header instead of struct sve_context.
5099
5100 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * read.h (dwarf2_fetch_die_loc_sect_off,
5103 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5104 `void *` parameter with function_view.
5105 * read.c (dwarf2_fetch_die_loc_sect_off,
5106 dwarf2_fetch_die_loc_cu_off): Likewise.
5107 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5108 (per_cu_dwarf_call): Adjust.
5109 (get_frame_address_in_block_wrapper): Remove.
5110 (indirect_synthetic_pointer): Adjust.
5111 (get_ax_pc): Remove.
5112 (dwarf2_compile_expr_to_ax): Adjust.
5113
5114 2020-08-08 Tom de Vries <tdevries@suse.de>
5115
5116 PR build/26344
5117 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5118 constructor.
5119 * regcache.c (get_thread_arch_aspace_regcache): Same.
5120
5121 2020-08-07 Tom Tromey <tromey@adacore.com>
5122
5123 * ravenscar-thread.c
5124 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5125 New method.
5126 (ravenscar_thread_target::wait): Check
5127 runtime_initialized.
5128 (ravenscar_thread_target::prepare_to_store)
5129 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5130 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5131 (ravenscar_thread_target::stopped_by_watchpoint)
5132 (ravenscar_thread_target::stopped_data_address)
5133 (ravenscar_thread_target::core_of_thread): Use
5134 scoped_restore_current_thread and
5135 set_base_thread_from_ravenscar_task.
5136
5137 2020-08-07 Tom Tromey <tromey@adacore.com>
5138
5139 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5140
5141 2020-08-07 Tom Tromey <tromey@adacore.com>
5142
5143 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5144 update_inferior_ptid before update_thread_list.
5145 (temporarily_change_regcache_ptid): New class.
5146 (ravenscar_thread_target::fetch_registers)
5147 (ravenscar_thread_target::store_registers)
5148 (ravenscar_thread_target::prepare_to_store): Use base thread when
5149 forwarding operation.
5150
5151 2020-08-07 Tom Tromey <tromey@adacore.com>
5152
5153 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5154 "is_pid" case.
5155
5156 2020-08-07 Tom Tromey <tromey@adacore.com>
5157
5158 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5159 New methods.
5160 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5161 first.
5162 (ravenscar_thread_target::add_thread): Rename from
5163 ravenscar_add_thread.
5164 (ravenscar_thread_target::update_thread_list): Use a lambda.
5165 (ravenscar_thread_target::xfer_partial): New method.
5166
5167 2020-08-07 Tom Tromey <tromey@adacore.com>
5168
5169 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5170 gdb::function_view.
5171 (iterate_over_live_ada_tasks): Change type of argument.
5172 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5173 of argument.
5174
5175 2020-08-07 Tom Tromey <tromey@adacore.com>
5176
5177 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5178 Remove.
5179 (ravenscar_thread_target::extra_thread_info): Remove.
5180 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5181 defer to target beneath for non-Ravenscar threads.
5182
5183 2020-08-07 Tom Tromey <tromey@adacore.com>
5184
5185 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5186 get_base_thread_from_ravenscar_task>: Now methods.
5187 <m_cpu_map>: New member.
5188 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5189 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5190 (ravenscar_thread_target::task_is_currently_active): Update.
5191 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5192 Now a method.
5193 (ravenscar_thread_target::add_active_thread): Put initial thread
5194 into the m_cpu_map.
5195
5196 2020-08-07 Tom Tromey <tromey@adacore.com>
5197
5198 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5199 event_ptid.
5200
5201 2020-08-07 Tom Tromey <tromey@adacore.com>
5202
5203 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5204 runtime_initialized.
5205
5206 2020-08-07 Tom Tromey <tromey@adacore.com>
5207
5208 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5209 add_active_thread.
5210 (ravenscar_thread_target::add_active_thread): Now public.
5211 (ravenscar_inferior_created): Call add_active_thread after pushing
5212 the target.
5213
5214 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * regcache.c (ptid_regcache_map): New type.
5217 (target_ptid_regcache_map): New type.
5218 (regcaches): Change type to target_ptid_regcache_map.
5219 (get_thread_arch_aspace_regcache): Update to regcaches' new
5220 type.
5221 (regcache_thread_ptid_changed): Likewise.
5222 (registers_changed_ptid): Likewise.
5223 (regcaches_size): Likewise.
5224 (regcaches_test): Update.
5225 (regcache_thread_ptid_changed): Update.
5226 * regcache.h (regcache_up): New type.
5227 * gdbsupport/ptid.h (hash_ptid): New struct.
5228
5229 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * observable.h (thread_ptid_changed): Add parameter
5232 `process_stratum_target *`.
5233 * infrun.c (infrun_thread_ptid_changed): Add parameter
5234 `process_stratum_target *` and use it.
5235 (selftests): New namespace.
5236 (infrun_thread_ptid_changed): New function.
5237 (_initialize_infrun): Register selftest.
5238 * regcache.c (regcache_thread_ptid_changed): Add parameter
5239 `process_stratum_target *` and use it.
5240 (regcache_thread_ptid_changed): New function.
5241 (_initialize_regcache): Register selftest.
5242 * thread.c (thread_change_ptid): Pass target to
5243 thread_ptid_changed observable.
5244
5245 2020-08-06 Caroline Tice <cmtice@google.com>
5246
5247 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5248 (struct dwp_sections): Update field comments. Add loclists and
5249 rnglists fields.
5250 (struct virtual_v2_dwo_sections): Rename struct to
5251 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5252 size & offset fields for loclists and rnglists.
5253 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5254 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5255 skipping dummy type units.
5256 (create_dwp_hash_table): Update the large comment above the function to
5257 discuss Version 5 DWP files as well, with references. Update all the
5258 version checks in the function to check for version 5 as well. Add new
5259 section at the end to create dwp hash table for version 5.
5260 (create_dwp_v2_section): Rename function to
5261 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5262 Add V5 to error message text.
5263 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5264 into calls to create_dwp_v2_or_v5_section.
5265 (create_dwo_unit_in_dwp_v5): New function.
5266 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5267 check for version2; add else clause to handle version 5.
5268 (open_and_init_dwo_file): Add code to check dwarf version & only call
5269 create_debug_types_hash_table (with sections.types) if version is not 5;
5270 else call create_debug_type_hash_table, with sections.info.
5271 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5272 version 5.
5273 (dwarf2_locate_v5_dwp_sections): New function.
5274 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5275 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5276
5277 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * regcache.h (class regcache): Remove friend
5280 registers_changed_ptid.
5281 <regcache_thread_ptid_changed>: Remove.
5282 <regcaches>: Remove.
5283 * regcache.c (regcache::regcaches): Rename to...
5284 (regcaches): ... this. Make static.
5285 (get_thread_arch_aspace_regcache): Update.
5286 (regcache::regcache_thread_ptid_changed): Rename to...
5287 (regcache_thread_ptid_changed): ... this. Update.
5288 (class regcache_access): Remove.
5289 (regcaches_test): Update.
5290 (_initialize_regcache): Update.
5291 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5292 <forward_list>.
5293
5294 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * regcache.h (class regcache) <current_regcache>: Rename to...
5297 <regcaches>: ... this. Move doc here.
5298 * regcache.c (regcache::current_regcache) Rename to...
5299 (regcache::regcaches): ... this. Move doc to header.
5300 (get_thread_arch_aspace_regcache): Update.
5301 (regcache::regcache_thread_ptid_changed): Update.
5302 (registers_changed_ptid): Update.
5303 (class regcache_access) <current_regcache_size>: Rename to...
5304 <regcaches_size>: ... this.
5305 (current_regcache_test): Rename to...
5306 (regcaches_test): ... this.
5307 (_initialize_regcache): Update.
5308
5309 2020-08-06 Victor Collod <vcollod@nvidia.com>
5310
5311 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5312
5313 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5314
5315 * corelow.c (core_target::build_file_mappings): Don't output
5316 null pathname in warning.
5317
5318 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5319
5320 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5321 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5322 gdb.dwarf2/dw2-single-line-discriminators.exp,
5323 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5324
5325 2020-08-05 Tom Tromey <tromey@adacore.com>
5326
5327 PR rust/26197:
5328 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5329 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5330 Fix off-by-one and type size errors in ordinary case.
5331
5332 2020-08-05 Tom de Vries <tdevries@suse.de>
5333
5334 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5335 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5336
5337 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * frame.h (frame_id_p): Return bool.
5340 (frame_id_artificial_p): Return bool.
5341 (frame_id_eq): Return bool.
5342 (has_stack_frames): Return bool.
5343 (get_selected_frame): Fix typo in comment.
5344 (get_frame_pc_if_available): Return bool.
5345 (get_frame_address_in_block_if_available): Return bool.
5346 (get_frame_func_if_available): Return bool.
5347 (read_frame_register_unsigned): Return bool.
5348 (get_frame_register_bytes): Return bool.
5349 (safe_frame_unwind_memory): Return bool.
5350 (deprecated_frame_register_read): Return bool.
5351 (frame_unwinder_is): Return bool.
5352 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5353 bool.
5354 <this_id::p>: Likewise.
5355 <prev_p>: Likewise.
5356 (frame_stash_add): Return bool.
5357 (get_frame_id): Use bool.
5358 (frame_id_build_special) Use bool.
5359 (frame_id_build_unavailable_stack): Use bool.
5360 (frame_id_build): Use bool.
5361 (frame_id_p): Return bool, use true/false instead of 1/0.
5362 (frame_id_artificial_p): Likewise.
5363 (frame_id_eq): Likewise.
5364 (frame_id_inner): Likewise.
5365 (get_frame_func_if_available): Likewise.
5366 (read_frame_register_unsigned): Likewise.
5367 (deprecated_frame_register_read): Likewise.
5368 (get_frame_register_bytes): Likewise.
5369 (has_stack_frames): Likewise.
5370 (inside_main_func): Likewise.
5371 (inside_entry_func): Likewise.
5372 (get_frame_pc_if_available): Likewise.
5373 (get_frame_address_in_block_if_available): Likewise.
5374 (frame_unwinder_is): Likewise.
5375 (safe_frame_unwind_memory): Likewise.
5376 (frame_unwind_arch): Likewise.
5377
5378 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5381 type to cached_copy_status.
5382 (fprintf_frame): Adjust.
5383 (get_frame_func_if_available): Adjust.
5384 (frame_cleanup_after_sniffer): Adjust.
5385
5386 2020-08-04 Mark Wielaard <mark@klomp.org>
5387
5388 * MAINTAINERS (Write After Approval): Update email address.
5389
5390 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5393 dynamic_prop::const_val.
5394
5395 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5398 dynamic_prop::kind.
5399
5400 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5403
5404 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5405
5406 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5407
5408 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5409 Jose E. Marchesi <jose.marchesi@oracle.com>
5410
5411 * configure.tgt: Add entry for bpf-*-*.
5412 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5413 (ALLDEPFILES): Add bpf-tdep.c.
5414 * bpf-tdep.c: New file.
5415 * MAINTAINERS: Add bpf target and maintainer.
5416 * NEWS: Mention the support for the new target.
5417
5418 2020-08-04 Tom de Vries <tdevries@suse.de>
5419
5420 PR symtab/23270
5421 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5422 Error.
5423
5424 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5425
5426 * syscalls/freebsd.xml: Regenerate.
5427
5428 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5429
5430 * syscalls/update-freebsd.sh: Fix usage and year range.
5431
5432 2020-08-03 Tom de Vries <tdevries@suse.de>
5433
5434 PR symtab/26333
5435 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5436 DW_LNE_lo_user/DW_LNE_hi_user range.
5437
5438 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5439
5440 PR ada/26318
5441 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5442 kind.
5443
5444 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5445
5446 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5447
5448 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5449
5450 * breakpoint.c (set_breakpoint_condition): Update the condition
5451 expressions after checking that the input condition string parses
5452 successfully and does not contain junk at the end.
5453
5454 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5455
5456 * breakpoint.c (set_breakpoint_condition): Update the
5457 condition string after parsing the new condition successfully.
5458
5459 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5460
5461 * proc-api.c (_STRUCTURED_PROC): Don't define.
5462 * proc-events.c: Likewise.
5463 * proc-flags.c: Likewise.
5464 * proc-why.c: Likewise.
5465 * procfs.c: Likewise.
5466
5467 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5468 * configure, config.in: Regenerate.
5469
5470 2020-07-30 Tom de Vries <tdevries@suse.de>
5471
5472 PR build/26320
5473 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5474 m_red/m_green/m_blue in a union.
5475
5476 2020-07-29 Tom de Vries <tdevries@suse.de>
5477
5478 PR tdep/26280
5479 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5480
5481 2020-07-28 Tom Tromey <tromey@adacore.com>
5482
5483 PR symtab/26270:
5484 * symtab.h (find_pc_partial_function_sym): Declare.
5485 * cli/cli-cmds.c (disassemble_command): Use
5486 find_pc_partial_function_sym. Check asm_demangle.
5487 * blockframe.c (cache_pc_function_sym): New global.
5488 (cache_pc_function_name): Remove.
5489 (clear_pc_function_cache): Update.
5490 (find_pc_partial_function_sym): New function, from
5491 find_pc_partial_function.
5492 (find_pc_partial_function): Rewrite using
5493 find_pc_partial_function_sym.
5494
5495 2020-07-28 Tom Tromey <tromey@adacore.com>
5496
5497 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5498 help. Add usage.
5499
5500 2020-07-28 Tom Tromey <tromey@adacore.com>
5501
5502 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5503 <DW_OP_GNU_variable_value>: Cast to address type.
5504
5505 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5506
5507 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5508 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5509 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5510 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5511 (nbsd_get_siginfo_type): New.
5512 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5513 (_initialize_nbsd_tdep): New.
5514
5515 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5516
5517 PR binutils/26301
5518 * configure: Regenerated.
5519
5520 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5521
5522 PR binutils/26301
5523 * configure: Regenerated.
5524
5525 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * python/py-frame.c: Remove 'user-regs.h' include.
5528 (frapy_read_register): Rewrite to make use of
5529 gdbpy_parse_register_id.
5530 * python/py-registers.c (gdbpy_parse_register_id): New function,
5531 moved here from python/py-unwind.c. Updated the return type, and
5532 also accepts register descriptor objects.
5533 * python/py-unwind.c: Remove 'user-regs.h' include.
5534 (pyuw_parse_register_id): Moved to python/py-registers.c.
5535 (unwind_infopy_add_saved_register): Update to use
5536 gdbpy_parse_register_id.
5537 (pending_framepy_read_register): Likewise.
5538 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5539
5540 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5541
5542 * python/py-registers.c: Add 'user-regs.h' include.
5543 (register_descriptor_iter_find): New function.
5544 (register_descriptor_iterator_object_methods): New static global
5545 methods array.
5546 (register_descriptor_iterator_object_type): Add pointer to methods
5547 array.
5548
5549 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5550
5551 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5552 for all architectures on FreeBSD 11.3 and later.
5553
5554 2020-07-27 Tom Tromey <tromey@adacore.com>
5555
5556 * gcore.h (load_corefile): Don't declare.
5557
5558 2020-07-27 Tom de Vries <tdevries@suse.de>
5559
5560 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5561 * config.in: Regenerate.
5562 * configure: Regenerate.
5563
5564 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5565
5566 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5567 ws2tcpip.h. When checking whether socklen_t type is defined, use
5568 ws2tcpip.h if it is available and sys/socket.h isn't.
5569 * configure: Regenerate.
5570 * config.in: Regenerate.
5571
5572 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 PR fortran/23051
5575 PR fortran/26139
5576 * valops.c (value_ind): Pass address to
5577 readjust_indirect_value_type.
5578 * value.c (readjust_indirect_value_type): Make parameter
5579 non-const, and add extra address parameter. Resolve original type
5580 before using it.
5581 * value.h (readjust_indirect_value_type): Update function
5582 signature and comment.
5583
5584 2020-07-25 Tom de Vries <tdevries@suse.de>
5585
5586 PR symtab/26243
5587 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5588 entries.
5589
5590 2020-07-24 Aaron Merey <amerey@redhat.com>
5591
5592 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5593 * configure: Rebuild.
5594
5595 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5596
5597 PR corefiles/26294
5598 * corelow.c (_initialize_corelow): Add period to help text
5599 for "maintenance print core-file-backed-mappings".
5600
5601 2020-07-23 Pedro Alves <pedro@palves.net>
5602
5603 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5604 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5605 meanwhile.
5606 * frame.c (frame_cache_generation, get_frame_cache_generation):
5607 New.
5608 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5609 (get_prev_frame_if_no_cycle): On exception, don't touch
5610 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5611 * frame.h (get_frame_cache_generation): Declare.
5612
5613 2020-07-23 Tom de Vries <tdevries@suse.de>
5614
5615 PR tui/26282
5616 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5617 New default constructor.
5618
5619 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5620
5621 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5622 exclude non-statement entries.
5623
5624 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5625
5626 * NEWS (New commands): Mention new command
5627 "maintenance print core-file-backed-mappings".
5628
5629 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5630
5631 * corelow.c (gdbcmd.h): Include.
5632 (core_target::info_proc_mappings): New method.
5633 (get_current_core_target): New function.
5634 (maintenance_print_core_file_backed_mappings): New function.
5635 (_initialize_corelow): Add core-file-backed-mappings to
5636 "maint print" commands.
5637
5638 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5639
5640 * linux-tdep.c (dump_note_entry_p): New function.
5641 (linux_dump_mapping_p_ftype): New typedef.
5642 (linux_find_memory_regions_full): Add new parameter,
5643 should_dump_mapping_p.
5644 (linux_find_memory_regions): Adjust call to
5645 linux_find_memory_regions_full.
5646 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5647 call to linux_find_memory_regions_full.
5648
5649 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5650
5651 * corelow.c (solist.h, unordered_map): Include.
5652 (class core_target): Add field m_core_file_mappings and
5653 method build_file_mappings.
5654 (core_target::core_target): Call build_file_mappings.
5655 (core_target::~core_target): Free memory associated with
5656 m_core_file_mappings.
5657 (core_target::build_file_mappings): New method.
5658 (core_target::xfer_partial): Use m_core_file_mappings
5659 for memory transfers.
5660 * linux-tdep.c (linux_read_core_file_mappings): New
5661 function.
5662 (linux_core_info_proc_mappings): Rewrite to use
5663 linux_read_core_file_mappings.
5664 (linux_init_abi): Register linux_read_core_file_mappings.
5665
5666 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5667
5668 * arch-utils.c (default_read_core_file_mappings): New function.
5669 * arch-utils.c (default_read_core_file_mappings): Declare.
5670 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5671 * gdbarch.h, gdbarch.c: Regenerate.
5672
5673 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5674
5675 PR corefiles/25631
5676 * corelow.c (core_target:xfer_partial): Revise
5677 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5678 case after first checking the stratum beneath the core
5679 target.
5680 (has_all_memory): Return true.
5681 * target.c (raw_memory_xfer_partial): Revise comment
5682 regarding use of has_all_memory.
5683
5684 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5685
5686 * exec.h (section_table_xfer_memory): Revise declaration,
5687 replacing section name parameter with an optional callback
5688 predicate.
5689 * exec.c (section_table_xfer_memory): Likewise.
5690 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5691 of section_table_xfer_memory.
5692
5693 2020-07-22 Tom Tromey <tromey@adacore.com>
5694
5695 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5696 lookup_symbol_search_name.
5697
5698 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5701 redundant local variable.
5702 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5703 reference, not pointer, update code accordingly.
5704
5705 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5706 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5707
5708 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5709 * jit.c (jit_breakpoint_re_set_internal): Use the
5710 `skip_jit_symbol_lookup` field.
5711
5712 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5713 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5714
5715 * jit.c (jit_read_descriptor): Define the descriptor address once,
5716 use twice.
5717 (jit_breakpoint_deleted): Move the declaration of the loop variable
5718 `iter` into the loop header.
5719 (jit_breakpoint_re_set_internal): Move the declaration of the local
5720 variable `objf_data` to the first point of definition.
5721 (jit_event_handler): Move the declaration of local variables
5722 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5723 Rename `objf` to `jited`.
5724
5725 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5728 Remove.
5729 * jit.c (get_jiter_objfile_data): Update.
5730
5731 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5732 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * jit.c (struct jit_program_space_data): Remove.
5735 (jit_program_space_key): Remove.
5736 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5737 stuff.
5738 (get_jit_program_space_data): Remove.
5739 (jit_breakpoint_deleted): Iterate on all of the program space's
5740 objfiles.
5741 (jit_inferior_init): Likewise.
5742 (jit_breakpoint_re_set_internal): Likewise. Also change return
5743 type to void.
5744 (jit_breakpoint_re_set): Pass current_program_space to
5745 jit_breakpoint_re_set_internal.
5746
5747 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5748
5749 * jit.h (struct jiter_objfile_data) <cached_code_address,
5750 jit_breakpoint>: Move to here from ...
5751 * jit.c (jit_program_space_data): ... here.
5752 (jiter_objfile_data::~jiter_objfile_data): Update.
5753 (jit_breakpoint_deleted): Update.
5754 (jit_breakpoint_re_set_internal): Update.
5755
5756 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5759 checks.
5760 (jit_read_descriptor): Remove NULL check.
5761 (jit_event_handler): Add an assertion.
5762
5763 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5764
5765 * jit.h (struct jit_objfile_data): Split into...
5766 (struct jiter_objfile_data): ... this ...
5767 (struct jited_objfile_data): ... and this.
5768 * objfiles.h (struct objfile) <jit_data>: Remove.
5769 <jiter_data, jited_data>: New fields.
5770 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5771 (jiter_objfile_data::~jiter_objfile_data): ... this.
5772 (get_jit_objfile_data): Rename to ...
5773 (get_jiter_objfile_data): ... this.
5774 (add_objfile_entry): Update.
5775 (jit_read_descriptor): Use get_jiter_objfile_data.
5776 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5777 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5778 (jit_inferior_exit_hook): Use objfile's jited_data field.
5779
5780 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * jit.h: Forward-declare `struct minimal_symbol`.
5783 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5784 constructor, destructor, and an objfile* field.
5785 * jit.c (jit_objfile_data): Remove.
5786 (struct jit_objfile_data): Migrate from here to jit.h.
5787 (jit_objfile_data::~jit_objfile_data): New destructor
5788 implementation with code moved from free_objfile_data.
5789 (free_objfile_data): Delete.
5790 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5791 (jit_find_objf_with_entry_addr): Ditto.
5792 (jit_inferior_exit_hook): Ditto.
5793 (_initialize_jit): Remove the call to
5794 register_objfile_data_with_cleanup.
5795 * objfiles.h (struct objfile) <jit_data>: New field.
5796
5797 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5798
5799 * jit.h: Forward-declare `struct objfile`.
5800 (jit_event_handler): Add a second parameter, the JITer objfile.
5801 * jit.c (jit_read_descriptor): Change the signature to take the
5802 JITer objfile as an argument instead of the jit_program_space_data.
5803 (jit_inferior_init): Update the call to jit_read_descriptor.
5804 (jit_event_handler): Use the new JITer objfile argument when calling
5805 jit_read_descriptor.
5806 * breakpoint.c (handle_jit_event): Update the call to
5807 jit_event_handler to pass the JITer objfile.
5808
5809 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5810
5811 * gdbarch.c: Regenerate.
5812 * gdbarch.h: Regenerate.
5813 * gdbarch.sh (handle_segmentation_fault): Remove method.
5814 * infrun.c (handle_segmentation_fault): Remove.
5815 (print_signal_received_reason): Remove call to
5816 handle_segmentation_fault.
5817
5818 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5819
5820 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5821 Rename to sparc64_linux_report_signal_info and add siggnal
5822 argument.
5823 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5824 instead of sparc64_linux_handle_segmentation_fault.
5825
5826 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5827
5828 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5829 i386_linux_report_signal_info instead of
5830 i386_linux_handle_segmentation_fault.
5831 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5832 to i386_linux_report_signal_info and add siggnal argument.
5833 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5834 of i386_linux_handle_segmentation_fault.
5835 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5836 to i386_linux_report_signal_info and add siggnal argument.
5837
5838 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5839
5840 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5841 hook if present.
5842
5843 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5844
5845 * gdbarch.c: Regenerate.
5846 * gdbarch.h: Regenerate.
5847 * gdbarch.sh (report_signal_info): New method.
5848 * infrun.c (print_signal_received_reason): Invoke gdbarch
5849 report_signal_info hook if present.
5850
5851 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5852
5853 * python/py-registers.c : Add 'unordered_map' include.
5854 (gdbpy_new_reggroup): Renamed to...
5855 (gdbpy_get_reggroup): ...this. Update to only create register
5856 group descriptors when needed.
5857 (gdbpy_reggroup_iter_next): Update.
5858
5859 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * python/py-registers.c (gdbpy_register_object_data): New static
5862 global.
5863 (gdbpy_register_object_data_init): New function.
5864 (gdbpy_new_register_descriptor): Renamed to...
5865 (gdbpy_get_register_descriptor): ...this, and update to reuse
5866 existing register descriptors where possible.
5867 (gdbpy_register_descriptor_iter_next): Update.
5868 (gdbpy_initialize_registers): Register new gdbarch data.
5869
5870 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * linux-nat.c (stopped_pids): Make static.
5873
5874 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 PR ada/26235
5877 * gdbtypes.c (ada_discrete_type_low_bound,
5878 ada_discrete_type_high_bound): Handle undefined bounds.
5879
5880 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5881
5882 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5883 declaration.
5884 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5885 function.
5886
5887 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5888
5889 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5890 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5891 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5892 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5893 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5894 method.
5895
5896 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5897
5898 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5899 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5900 which are deprecated in Guile 3.0.
5901 * configure.ac (try_guile_versions): Add "guile-3.0".
5902 * configure (try_guile_versions): Regenerate.
5903 * NEWS: Update entry.
5904
5905 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5906 Doug Evans <dje@google.com>
5907
5908 PR gdb/21104
5909 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5910 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5911 USING_GUILE_BEFORE_2_2.
5912 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5913 Change type to 'scm_t_port_type *'.
5914 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5915 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5916 parameter and honor it. Update callers.
5917 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5918 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5919 functions.
5920 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5921 USING_GUILE_BEFORE_2_2.
5922 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5923 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5924 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5925 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5926 and 'SCM_PORT_TYPE'.
5927 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5928 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5929 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5930 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5931 [!USING_GUILE_BEFORE_2_2]: New functions.
5932 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5933 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5934 'gdbscm_memory_port_read'.
5935 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5936 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5937 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5938 function.
5939 (ioscm_init_memory_port): Remove.
5940 (ioscm_init_memory_port_stream): New function
5941 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5942 function.
5943 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5944 Return scm_from_uint (0).
5945 (gdbscm_set_memory_port_read_buffer_size_x)
5946 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5947 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5948 Return scm_from_uint (0).
5949 (gdbscm_set_memory_port_write_buffer_size_x)
5950 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5951 * configure.ac (try_guile_versions): Add "guile-2.2".
5952 * configure: Regenerate.
5953 * NEWS: Add entry.
5954
5955 2020-07-18 Tom Tromey <tom@tromey.com>
5956
5957 * linux-nat.c (linux_multi_process): Remove.
5958 (linux_nat_target::supports_multi_process): Return true.
5959
5960 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5963 (riscv_lookup_target_description): Return pointer out of
5964 unique_ptr.
5965 * target-descriptions.c (allocate_target_description): Add
5966 comment.
5967 (target_desc_deleter::operator()): Likewise.
5968 * target-descriptions.h (struct target_desc_deleter): Moved to
5969 gdbsupport/tdesc.h.
5970 (target_desc_up): Likewise.
5971
5972 2020-07-17 Tom Tromey <tromey@adacore.com>
5973
5974 * linux-nat.c (linux_nat_target::supports_non_stop)
5975 (linux_nat_target::always_non_stop_p): Use "true".
5976 (linux_nat_target::supports_disable_randomization): Use "true" and
5977 "false".
5978
5979 2020-07-16 Caroline Tice <cmtice@google.com>
5980
5981 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5982 (RNGLIST_HEADER_SIZE64): New constant definition.
5983 (struct dwop_section_names): Add rnglists_dwo.
5984 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5985 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5986 (struct dwo_sections): Add rnglists field.
5987 (read_attribut_reprocess): Add tag parameter.
5988 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5989 (cu_debug_rnglists_section): New function (decl & definition).
5990 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5991 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5992 die whose range is being checked; get rnglist section from
5993 cu_debug_rnglists_section, to get from either objfile or dwo file as
5994 appropriate. Add cases for DW_RLE_base_addressx,
5995 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5996 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5997 test inside if-condition and updating complaint message.
5998 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5999 dwarf2_rnglists_process.
6000 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6001 dwarf2_ranges_process.
6002 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6003 need_ranges_base and update comment appropriately. Also pass die tag
6004 to dwarf2_ranges_read.
6005 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6006 need_ranges_base and update comment appropriately. Also pass die tag
6007 to dwarf2_ranges_process.
6008 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6009 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6010 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6011 need_ranges_base and update comment appropriately. Also pass die tag
6012 to read_attribute_reprocess and dwarf2_ranges_read.
6013 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6014 and update function comment appropriately.
6015 (read_loclist_index): Call read_loclists_rnglists_header instead of
6016 read_loclist_header.
6017 (read_rnglist_index): New function.
6018 (read_attribute_reprocess): Add tag parameter. Add code for
6019 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6020 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6021
6022 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6025 being resolved.
6026
6027 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6028
6029 * arch-utils.c (show_architecture): Update formatting of messages.
6030
6031 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * gdbtypes.h (struct type) <bounds>: Handle array and string
6034 types.
6035 * ada-lang.c (assign_aggregate): Use type::bounds on
6036 array/string type.
6037 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6038 * c-varobj.c (c_number_of_children): Likewise.
6039 (c_describe_child): Likewise.
6040 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6041 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6042 (f_type_print_base): Likewise.
6043 * f-valprint.c (f77_array_offset_tbl): Likewise.
6044 (f77_get_upperbound): Likewise.
6045 (f77_print_array_1): Likewise.
6046 * guile/scm-type.c (gdbscm_type_range): Likewise.
6047 * m2-typeprint.c (m2_array): Likewise.
6048 (m2_is_long_set_of_type): Likewise.
6049 * m2-valprint.c (get_long_set_bounds): Likewise.
6050 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6051 * python/py-type.c (typy_range): Likewise.
6052 * rust-lang.c (rust_internal_print_type): Likewise.
6053 * type-stack.c (type_stack::follow_types): Likewise.
6054 * valarith.c (value_subscripted_rvalue): Likewise.
6055 * valops.c (value_cast): Likewise.
6056
6057 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6060 callers to use the equivalent accessor methods.
6061
6062 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6065 (struct type) <bit_stride>: New method.
6066 (TYPE_BIT_STRIDE): Remove.
6067 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6068
6069 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6072 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6073 callers to use the equivalent accessor methods instead.
6074
6075 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6078 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6079 callers to use the equivalent accessor methods instead.
6080
6081 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6084 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6085 to use dynamic_prop::kind.
6086
6087 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6090 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6091 to get the bound property's kind and check against
6092 PROP_UNDEFINED.
6093
6094 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6097 all callers to use type::range_bounds followed by
6098 dynamic_prop::{low,high}.
6099
6100 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6103 const_val, set_const_val, baton, set_locexpr, set_loclist,
6104 set_addr_offset, variant_parts, set_variant_parts,
6105 original_type, set_original_type>: New methods.
6106 <kind>: Rename to...
6107 <m_kind>: ... this. Update all users to use the new methods
6108 instead.
6109 <data>: Rename to...
6110 <m_data>: ... this. Update all users to use the new methods
6111 instead.
6112
6113 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * gdbtypes.c (get_discrete_bounds): Return failure if
6116 the range type's bounds are not both defined and constant
6117 values.
6118 (get_array_bounds): Update comment. Remove undefined bound check.
6119
6120 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6123 the type::bounds method directly.
6124
6125 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6126
6127 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6128 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6129 are used to set the range type's bounds to use set_bounds.
6130
6131 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6134
6135 2020-07-10 Pedro Alves <pedro@palves.net>
6136
6137 * gdbthread.h (inferior_ref): Define.
6138 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6139 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6140 * thread.c
6141 (scoped_restore_current_thread::restore):
6142 Adjust to gdb::ref_ptr.
6143 (scoped_restore_current_thread::~scoped_restore_current_thread):
6144 Remove manual decref handling.
6145 (scoped_restore_current_thread::scoped_restore_current_thread):
6146 Adjust to use
6147 inferior_ref::new_reference/thread_info_ref::new_reference.
6148 Incref the thread before calling get_frame_id instead of after.
6149 Let TARGET_CLOSE_ERROR propagate.
6150
6151 2020-07-10 Pedro Alves <pedro@palves.net>
6152
6153 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6154 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6155 NOT_AVAILABLE_ERROR.
6156 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6157 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6158
6159 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6160 Pedro Alves <pedro@palves.net>
6161
6162 PR gdb/26199
6163 * infrun.c (threads_are_resumed_pending_p): Delete.
6164 (do_target_wait): Remove threads_are_executing and
6165 threads_are_resumed_pending_p checks from the inferior_matches
6166 lambda. Update comments.
6167
6168 2020-07-10 Pedro Alves <pedro@palves.net>
6169
6170 PR gdb/26199
6171 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6172 executing threads.
6173
6174 2020-07-10 Pedro Alves <pedro@palves.net>
6175
6176 PR gdb/26199
6177 * infrun.c (handle_no_resumed): Handle multiple targets.
6178
6179 2020-07-10 Pedro Alves <pedro@palves.net>
6180
6181 PR gdb/26199
6182 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6183 target_is_async_p.
6184
6185 2020-07-10 Pedro Alves <pedro@palves.net>
6186
6187 PR gdb/26199
6188 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6189 threads, not all threads.
6190
6191 2020-07-10 Pedro Alves <pedro@palves.net>
6192
6193 PR gdb/26199
6194 * remote.c (remote_target::open_1): Pass remote target pointer as
6195 data to create_async_event_handler.
6196 (remote_async_inferior_event_handler): Mark async event handler
6197 before returning if the remote target still has either pending
6198 events or unacknowledged notifications.
6199
6200 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6201
6202 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6203 declaration.
6204 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6205 function.
6206
6207 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6208
6209 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6210 inferior_ptid.
6211
6212 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6213
6214 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6215 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6216 AT_FREEBSD_PS_STRINGS.
6217
6218 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6219
6220 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6221 of debugfile path on Windows.
6222
6223 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6224
6225 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6226 argument to 'data'.
6227
6228 2020-07-08 Tom Tromey <tromey@adacore.com>
6229
6230 * ada-lang.c (ada_exception_message_1): Use read_memory.
6231
6232 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6233
6234 PR python/22748
6235 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6236 special handling for inline frames.
6237 * findvar.c (value_of_register_lazy): Skip inline frames when
6238 creating lazy register values.
6239 * frame.c (frame_id_computed_p): Delete definition.
6240 * frame.h (frame_id_computed_p): Delete declaration.
6241
6242 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6243
6244 * NEWS: Mention additions to Python API.
6245 * python/py-arch.c (archpy_register_groups): New function.
6246 (arch_object_methods): Add 'register_groups' method.
6247 * python/py-registers.c (reggroup_iterator_object): New struct.
6248 (reggroup_object): New struct.
6249 (gdbpy_new_reggroup): New function.
6250 (gdbpy_reggroup_to_string): New function.
6251 (gdbpy_reggroup_name): New function.
6252 (gdbpy_reggroup_iter): New function.
6253 (gdbpy_reggroup_iter_next): New function.
6254 (gdbpy_new_reggroup_iterator): New function
6255 (gdbpy_initialize_registers): Register new types.
6256 (reggroup_iterator_object_type): Define new Python type.
6257 (gdbpy_reggroup_getset): New static global.
6258 (reggroup_object_type): Define new Python type.
6259 * python/python-internal.h
6260
6261 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6264 * python/py-arch.c (archpy_registers): New function.
6265 (arch_object_methods): Add 'registers' method.
6266 * python/py-registers.c: New file.
6267 * python/python-internal.h
6268 (gdbpy_new_register_descriptor_iterator): Declare.
6269 (gdbpy_initialize_registers): Declare.
6270 * python/python.c (do_start_initialization): Call
6271 gdbpy_initialize_registers.
6272 * NEWS: Mention additions to the Python API.
6273
6274 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * NEWS: Mention new Python API method.
6277 * python/py-unwind.c (pending_framepy_architecture): New function.
6278 (pending_frame_object_methods): Add architecture method.
6279
6280 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6281
6282 * gdbarch.c: Regenerate.
6283 * gdbarch.h: Regenerate.
6284 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6285 (gdbarch_data): Use internal_error for the case where
6286 deprecated_set_gdbarch_data was originally needed.
6287 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6288 and use passed in obstack.
6289 (libunwind_frame_set_descr): Should no longer get back NULL from
6290 gdbarch_data.
6291 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6292 type.
6293 * user-regs.c (user_regs_init): Update parameters, and use passed
6294 in obstack.
6295 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6296 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6297
6298 2020-07-06 Tom de Vries <tdevries@suse.de>
6299
6300 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6301 End-Of-Sequence in lte_is_less_than.
6302 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6303 "gdb: Don't reorder line table entries too much when sorting".
6304
6305 2020-07-06 Tom de Vries <tdevries@suse.de>
6306
6307 PR tui/26205
6308 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6309
6310 2020-07-05 Tom de Vries <tdevries@suse.de>
6311
6312 PR build/26187
6313 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6314 std::uncaught_exceptions instead of deprecated
6315 std::uncaught_exception.
6316
6317 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * macroexp.h (macro_stringify): Return
6320 gdb::unique_xmalloc_ptr<char>.
6321 * macroexp.c (macro_stringify): Likewise.
6322 * macrotab.c (fixup_definition): Update.
6323
6324 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6325
6326 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6327 (lex_one_token): Update.
6328 * macroexp.c (struct macro_buffer) <release>: Return
6329 gdb::unique_xmalloc_ptr<char>.
6330 (macro_stringify): Update.
6331 (macro_expand): Update.
6332 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6333 * macroexp.h (macro_expand_next): Likewise.
6334
6335 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * macroexp.h (macro_lookup_ftype): Remove.
6338 (macro_expand, macro_expand_once, macro_expand_next): Remove
6339 lookup function parameters, add scope parameter.
6340 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6341 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6342 * macroscope.h (standard_macro_lookup): Change parameter type
6343 to macro_scope.
6344 * macroscope.c (standard_macro_lookup): Likewise.
6345 * c-exp.y (lex_one_token): Update.
6346 * macrocmd.c (macro_expand_command): Likewise.
6347 (macro_expand_once_command): Likewise.
6348
6349 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6350
6351 * inf-loop.c (inferior_event_handler): Remove client_data param.
6352 * inf-loop.h (inferior_event_handler): Likewise.
6353 * infcmd.c (step_1): Adjust.
6354 * infrun.c (proceed): Adjust.
6355 (fetch_inferior_event): Remove client_data param.
6356 (infrun_async_inferior_event_handler): Adjust.
6357 * infrun.h (fetch_inferior_event): Remove `void *` param.
6358 * linux-nat.c (handle_target_event): Adjust.
6359 * record-btrace.c (record_btrace_handle_async_inferior_event):
6360 Adjust.
6361 * record-full.c (record_full_async_inferior_event_handler):
6362 Adjust.
6363 * remote.c (remote_async_inferior_event_handler): Adjust.
6364
6365 2020-07-01 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6368 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6369
6370 2020-07-01 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6373 tui_gen_win_info.
6374 (tui_win_info::make_window): Merge with
6375 tui_gen_win_info::make_window.
6376 (tui_win_info::make_visible): Move from tui_gen_win_info.
6377 * tui/tui-win.c (tui_win_info::max_width): Move from
6378 tui_gen_win_info.
6379 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6380 type.
6381 <window_factory>: Likewise.
6382 * tui/tui-layout.c (tui_win_info::resize): Move from
6383 tui_gen_win_info.
6384 (make_standard_window): Change return type.
6385 (get_locator_window, tui_get_window_by_name): Likewise.
6386 (tui_layout_window::apply): Remove a cast.
6387 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6388 (struct tui_win_info): Merge with tui_gen_win_info.
6389 (struct tui_gen_win_info): Remove.
6390
6391 2020-07-01 Tom Tromey <tom@tromey.com>
6392
6393 * tui/tui-stack.h (struct tui_locator_window): Derive from
6394 tui_win_info.
6395 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6396 <can_box>: New method.
6397
6398 2020-07-01 Tom Tromey <tom@tromey.com>
6399
6400 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6401
6402 2020-07-01 Tom Tromey <tom@tromey.com>
6403
6404 * tui/tui-regs.c (tui_data_window::display_registers_from)
6405 (tui_data_window::display_registers_from)
6406 (tui_data_window::first_data_item_displayed)
6407 (tui_data_window::delete_data_content_windows): Update.
6408 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6409 Remove.
6410 (tui_data_window::check_register_values): Update.
6411 (tui_data_item_window::rerender): Add parameters. Update.
6412 (tui_data_item_window::refresh_window): Remove.
6413 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6414 virtual.
6415 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6416 tui_gen_win_info.
6417 <refresh_window, max_height, min_height>: Remove.
6418 <rerender>: Add parameters.
6419 <x, y, visible>: New members.
6420 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6421 <m_item_width>: New member.
6422
6423 2020-07-01 Tom Tromey <tom@tromey.com>
6424
6425 * tui/tui-regs.c (tui_data_window::show_register_group)
6426 (tui_data_window::check_register_values): Update.
6427 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6428 from item_no.
6429
6430 2020-07-01 Tom Tromey <tom@tromey.com>
6431
6432 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6433 useless "if".
6434
6435 2020-07-01 Tom Tromey <tom@tromey.com>
6436
6437 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6438 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6439
6440 2020-07-01 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6443 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6444 (struct tui_line_or_address): Move from tui-data.h.
6445 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6446 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6447 (tui_cmd_window, tui_source_window_base, tui_source_window)
6448 (tui_disasm_window): Don't declare.
6449 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6450 to tui-winsource.h.
6451 (SINGLE_KEY): Move to tui-stack.c.
6452
6453 2020-07-01 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6456 std::string.
6457 * tui/tui-regs.c (class tab_expansion_file): New.
6458 (tab_expansion_file::write): New method.
6459 (tui_register_format): Change return type. Use
6460 tab_expansion_file.
6461 (tui_get_register, tui_data_window::display_registers_from)
6462 (tui_data_item_window::rerender): Update.
6463 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6464 * tui/tui-io.c (tui_expand_tabs): Remove.
6465
6466 2020-07-01 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6469
6470 2020-07-01 Fangrui Song <maskray@google.com>
6471
6472 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6473
6474 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6475
6476 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6477 forms for DW_AT_associated and DW_AT_allocated attributes,
6478 which is already checked in function attr_to_dynamic_prop.
6479
6480 2020-06-30 Tom Tromey <tromey@adacore.com>
6481
6482 * dwarf2/read.c (quirk_rust_enum): Correctly call
6483 alloc_rust_variant for default-less enum.
6484
6485 2020-06-30 Tom Tromey <tromey@adacore.com>
6486
6487 PR build/26183:
6488 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6489 gdb::to_string.
6490
6491 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6494 * gdbarch.h: Re-generate.
6495
6496 2020-06-28 Tom Tromey <tom@tromey.com>
6497
6498 * command.h (cmd_types): Remove.
6499 (cmd_type): Don't declare.
6500 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6501 typedef.
6502 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6503 * cli/cli-decode.c (cmd_type): Remove.
6504
6505 2020-06-27 Pedro Alves <palves@redhat.com>
6506
6507 * fork-child.c (prefork_hook): Adjust.
6508 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6509 Delete.
6510 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6511 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6512 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6513 Remove declarations.
6514 (struct inferior) <set_tty, tty>: New methods.
6515 (struct inferior) <terminal>: Rename to ...
6516 (struct inferior) <m_terminal>: ... this and make private.
6517 * main.c (captured_main_1): Adjust.
6518 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6519 (mi_cmd_inferior_tty_show): Adjust.
6520 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6521 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6522
6523 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6524
6525 * configure.ac: Add --enable-libctf: handle --disable-static
6526 properly.
6527 * acinclude.m4: sinclude ../config/enable.m4.
6528 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6529 (LIBCTF): Substitute in.
6530 (CTF_DEPS): New, likewise.
6531 (CLIBS): libctf needs symbols from libbfd: move earlier.
6532 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6533 flags.
6534 * ctfread.c: Surround in ENABLE_LIBCTF.
6535 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6536 * configure: Regenerate.
6537 * config.in: Likewise.
6538
6539 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6540
6541 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6542
6543 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6544
6545 * inferior.h (struct inferior) <terminal>: Change type to
6546 gdb::unique_xmalloc_ptr<char>.
6547 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6548 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6549 field, adjust to unique pointer.
6550 (get_inferior_io_terminal): Adjust to unique pointer.
6551
6552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6555 registers, not just the known core set of registers.
6556
6557 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6560 fflags, frm, and fcsr registers.
6561 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6562 restore groups.
6563 (riscv_tdesc_unknown_reg): New function.
6564 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6565 tdesc_use_registers.
6566 * riscv-tdep.h (struct gdbarch_tdep): Add
6567 unknown_csrs_first_regnum, unknown_csrs_count,
6568 duplicate_fflags_regnum, duplicate_frm_regnum, and
6569 duplicate_fcsr_regnum fields.
6570
6571 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6574 callback, use the callback (when not null) to help number unknown
6575 registers.
6576 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6577 (tdesc_use_registers): Add extra parameter to declaration.
6578
6579 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6582 in the file.
6583 (class riscv_pending_register_alias): Likewise.
6584 (riscv_register_feature::register_info): Change 'required_p' field
6585 to 'required', and change its type. Add 'check' member function.
6586 (riscv_register_feature::register_info::check): Define new member
6587 function.
6588 (riscv_xreg_feature): Change initialisation of 'required' field.
6589 (riscv_freg_feature): Likewise.
6590 (riscv_virtual_feature): Likewise.
6591 (riscv_csr_feature): Likewise.
6592 (riscv_check_tdesc_feature): Take extra parameter, the csr
6593 tdesc_feature, rewrite the function to use the new
6594 riscv_register_feature::register_info::check function.
6595 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6596
6597 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * features/Makefile: Remove all references to the deleted files
6600 below.
6601 * features/riscv/32bit-csr.c: Deleted.
6602 * features/riscv/32bit-csr.xml: Deleted.
6603 * features/riscv/64bit-csr.c: Deleted.
6604 * features/riscv/64bit-csr.xml: Deleted.
6605 * features/riscv/rebuild-csr-xml.sh: Deleted.
6606
6607 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6610 whitespace error for declaration of names member variable.
6611 (struct riscv_register_feature): Add new prefer_first_name member
6612 variable, and fix whitespace error in declaration of registers.
6613 (riscv_xreg_feature): Initialize prefer_first_name field.
6614 (riscv_freg_feature): Likewise.
6615 (riscv_virtual_feature): Likewise.
6616 (riscv_csr_feature): Likewise.
6617 (riscv_register_name): Expand on comments. Remove register name
6618 modifications for CSR and virtual registers.
6619
6620 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6623 errors.
6624
6625 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6626
6627 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6628 riscv-opc.h.
6629 (class riscv_pending_register_alias): New class.
6630 (riscv_check_tdesc_feature): Take vector of pending aliases and
6631 populate it as appropriate.
6632 (riscv_setup_register_aliases): Delete.
6633 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6634 to riscv_check_tdesc_feature in all cases. Use the vector to
6635 create the register aliases.
6636
6637 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6638
6639 * sol2-tdep.c (sol2_static_transform_name): Remove.
6640 (sol2_init_abi): Don't register it.
6641 * gdbarch.sh (static_transform_name): Remove.
6642 * gdbarch.c, gdbarch.h: Regenerate.
6643
6644 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6645 gdbarch_static_transform_name.
6646 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6647 * stabsread.c (define_symbol) <'X'>: Remove.
6648 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6649 handling.
6650 <'V'>: Likewise.
6651 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6652 <'S'>: Remove call to gdbarch_static_transform_name.
6653
6654 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6655
6656 * procfs.c (procfs_pre_trace): New function.
6657 (procfs_target::create_inferior): Pass it to fork_inferior.
6658
6659 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6660
6661 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6662 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6663 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6664 sol2-tdep.o, sparc-sol2-tdep.o.
6665 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6666 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6667 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6668 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6669
6670 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6671
6672 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6673 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6674 Call sol2_init_abi.
6675 Remove calls to set_gdbarch_skip_solib_resolver,
6676 set_gdbarch_core_pid_to_str.
6677 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6678 (i386_sol2_static_transform_name): Remove.
6679 (i386_sol2_init_abi): Call sol2_init_abi.
6680 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6681 set_gdbarch_static_transform_name,
6682 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6683 Use sol2_sigtramp_p.
6684 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6685 (sol2_sigtramp_p): New function.
6686 (sol2_static_transform_name): New function.
6687 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6688 (sol2_init_abi): New function.
6689 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6690 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6691 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6692 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6693 (sparc_sol2_static_transform_name): Remove.
6694 (sparc32_sol2_init_abi): Call sol2_init_abi.
6695 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6696 set_gdbarch_static_transform_name,
6697 set_gdbarch_skip_solib_resolver,
6698 set_gdbarch_core_pid_to_str.
6699 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6700 (sparc_sol2_static_transform_name): Remove
6701 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6702 call sol2_sigtramp_p.
6703 (sparc64_sol2_init_abi): Call sol2_init_abi.
6704 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6705 set_gdbarch_static_transform_name,
6706 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6707
6708 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6711 * exec.c (validate_exec_file): If from_tty, set both
6712 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6713 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6714 and from_tty, unconditionally ask a confirmation.
6715
6716 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * target-descriptions.c (tdesc_architecture_name): Protect against
6719 NULL pointer dereference.
6720 (maint_print_xml_tdesc_cmd): New function.
6721 (_initialize_target_descriptions): Register new 'maint print
6722 xml-tdesc' command and give it the filename completer.
6723 * NEWS: Mention new 'maint print xml-tdesc' command.
6724
6725 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * target-descriptions.c (class tdesc_compatible_info): New class.
6728 (struct target_desc): Change type of compatible vector.
6729 (tdesc_compatible_p): Update for change in type of
6730 target_desc::compatible.
6731 (tdesc_compatible_info_list): New function.
6732 (tdesc_compatible_info_arch_name): New function.
6733 (tdesc_add_compatible): Update for change in type of
6734 target_desc::compatible.
6735 (print_c_tdesc::visit_pre): Likewise.
6736
6737 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6740 whitespace to underscore.
6741 (maint_print_c_tdesc_cmd): Use fake filename for target
6742 descriptions that came from the target.
6743 (_initialize_target_descriptions): Add filename command completion
6744 for 'maint print c-tdesc'.
6745
6746 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6749 lines.
6750
6751 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6752
6753 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6754 lines.
6755 (dwarf2_find_location_expression): Likewise.
6756 (call_site_parameter_matches): Likewise.
6757 (dwarf2_compile_expr_to_ax): Likewise.
6758 (disassemble_dwarf_expression): Likewise.
6759 (loclist_describe_location): Likewise.
6760
6761 2020-06-23 Pedro Alves <palves@redhat.com>
6762
6763 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6764 progspace-and-thread.h. Include scoped-mock-context.h instead.
6765 (register_to_value_test): Use scoped_mock_context.
6766 * regcache.c: Include "scoped-mock-context.h".
6767 (cooked_read_test): Don't error out if a target is already pushed.
6768 Use scoped_mock_context. Adjust.
6769 * scoped-mock-context.h: New file.
6770
6771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6774 initializer.
6775 (ada_language::is_string_type_p): New member function.
6776 * c-lang.c (c_language_data): Delete la_is_string_type_p
6777 initializer.
6778 (cplus_language_data): Likewise.
6779 (asm_language_data): Likewise.
6780 (minimal_language_data): Likewise.
6781 * d-lang.c (d_language_data): Likewise.
6782 * f-lang.c (f_is_string_type_p): Delete function, implementation
6783 moved to f_language::is_string_type_p.
6784 (f_language_data): Delete la_is_string_type_p initializer.
6785 (f_language::is_string_type_p): New member function,
6786 implementation from f_is_string_type_p.
6787 * go-lang.c (go_is_string_type_p): Delete function, implementation
6788 moved to go_language::is_string_type_p.
6789 (go_language_data): Delete la_is_string_type_p initializer.
6790 (go_language::is_string_type_p): New member function,
6791 implementation from go_is_string_type_p.
6792 * language.c (language_defn::is_string_type_p): Define new member
6793 function.
6794 (default_is_string_type_p): Make static, add comment copied from
6795 header file.
6796 (unknown_language_data): Delete la_is_string_type_p initializer.
6797 (unknown_language::is_string_type_p): New member function.
6798 (auto_language_data): Delete la_is_string_type_p initializer.
6799 (auto_language::is_string_type_p): New member function.
6800 * language.h (language_data): Delete la_is_string_type_p field.
6801 (language_defn::is_string_type_p): Declare new function.
6802 (default_is_string_type_p): Delete desclaration, move comment to
6803 definition.
6804 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6805 moved to m2_language::is_string_type_p.
6806 (m2_language_data): Delete la_is_string_type_p initializer.
6807 (m2_language::is_string_type_p): New member function,
6808 implementation from m2_is_string_type_p.
6809 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6810 initializer.
6811 * opencl-lang.c (opencl_language_data): Likewise.
6812 * p-lang.c (pascal_is_string_type_p): Delete function,
6813 implementation moved to pascal_language::is_string_type_p.
6814 (pascal_language_data): Delete la_is_string_type_p initializer.
6815 (pascal_language::is_string_type_p): New member function,
6816 implementation from pascal_is_string_type_p.
6817 * rust-lang.c (rust_is_string_type_p): Delete function,
6818 implementation moved to rust_language::is_string_type_p.
6819 (rust_language_data): Delete la_is_string_type_p initializer.
6820 (rust_language::is_string_type_p): New member function,
6821 implementation from rust_is_string_type_p.
6822 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6823 is_string_type_p.
6824
6825 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * ada-lang.c (ada_language_data): Delete la_print_typedef
6828 initializer.
6829 (ada_language::print_typedef): New member function.
6830 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6831 (cplus_language_data): Likewise.
6832 (asm_language_data): Likewise.
6833 (minimal_language_data): Likewise.
6834 * d-lang.c (d_language_data): Likewise.
6835 * f-lang.c (f_language_data): Likewise.
6836 (f_language::print_typedef): New member function.
6837 * go-lang.c (go_language_data): Delete la_print_typedef
6838 initializer.
6839 * language.c (language_defn::print_typedef): Define member
6840 function.
6841 (unknown_language_data): Delete la_print_typedef initializer.
6842 (unknown_language::print_typedef): New member function.
6843 (auto_language_data): Delete la_print_typedef initializer.
6844 (auto_language::print_typedef): New member function.
6845 * language.h (language_data): Delete la_print_typedef field.
6846 (language_defn::print_typedef): Declare new member function.
6847 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6848 (default_print_typedef): Delete declaration.
6849 * m2-lang.c (m2_language_data): Delete la_print_typedef
6850 initializer.
6851 (m2_language::print_typedef): New member function.
6852 * objc-lang.c (objc_language_data): Delete la_print_typedef
6853 initializer.
6854 * opencl-lang.c (opencl_language_data): Likewise.
6855 * p-lang.c (pascal_language_data): Likewise.
6856 (pascal_language::print_typedef): New member function.
6857 * rust-lang.c (rust_print_typedef): Delete function,
6858 implementation moved to rust_language::print_typedef.
6859 (rust_language): Delete la_print_typedef initializer.
6860 (rust_language::print_typedef): New member function,
6861 implementation from rust_print_typedef.
6862 * typeprint.c (default_print_typedef): Delete.
6863
6864 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6867 (ada_language::printstr): New member function.
6868 * c-lang.c (c_language_data): Delete la_printstr initializer.
6869 (cplus_language_data): Likewise.
6870 (asm_language_data): Likewise.
6871 (minimal_language_data): Likewise.
6872 * d-lang.c (d_language_data): Likewise.
6873 * f-lang.c (f_printstr): Rename to f_language::printstr.
6874 (f_language_data): Delete la_printstr initializer.
6875 (f_language::printstr): New member function, implementation from
6876 f_printstr.
6877 * go-lang.c (go_language_data): Delete la_printstr initializer.
6878 * language.c (language_defn::printstr): Define new member
6879 function.
6880 (unk_lang_printstr): Delete.
6881 (unknown_language_data): Delete la_printstr initializer.
6882 (unknown_language::printstr): New member function.
6883 (auto_language_data): Delete la_printstr initializer.
6884 (auto_language::printstr): New member function.
6885 * language.h (language_data): Delete la_printstr field.
6886 (language_defn::printstr): Declare new member function.
6887 (LA_PRINT_STRING): Update call to printstr.
6888 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6889 (m2_language_data): Delete la_printstr initializer.
6890 (m2_language::printstr): New member function, implementation from
6891 m2_printstr.
6892 * objc-lang.c (objc_language_data): Delete la_printstr
6893 initializer.
6894 * opencl-lang.c (opencl_language_data): Likewise.
6895 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6896 (pascal_language_data): Delete la_printstr initializer.
6897 (pascal_language::printstr): New member function, implementation
6898 from pascal_printstr.
6899 * p-lang.h (pascal_printstr): Delete declaration.
6900 * rust-lang.c (rust_printstr): Update header comment.
6901 (rust_language_data): Delete la_printstr initializer.
6902 (rust_language::printstr): New member function.
6903
6904 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6907 (ada_language::printchar): New member function.
6908 * c-lang.c (c_language_data): Delete la_printchar initializer.
6909 (cplus_language_data): Likewise.
6910 (asm_language_data): Likewise.
6911 (minimal_language_data): Likewise.
6912 * d-lang.c (d_language_data): Likewise.
6913 * f-lang.c (f_printchar): Rename to f_language::printchar.
6914 (f_language_data): Delete la_printchar initializer.
6915 (f_language::printchar): New member function, implementation from
6916 f_printchar.
6917 * go-lang.c (go_language_data): Delete la_printchar initializer.
6918 * language.c (unk_lang_printchar): Delete.
6919 (language_defn::printchar): Define new member function.
6920 (unknown_language_data): Delete la_printchar initializer.
6921 (unknown_language::printchar): New member function.
6922 (auto_language_data): Delete la_printchar initializer.
6923 (auto_language::printchar): New member function.
6924 * language.h (language_data): Delete la_printchar field.
6925 (language_defn::printchar): Declare new member function.
6926 (LA_PRINT_CHAR): Update call to printchar.
6927 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6928 (m2_language::printchar): New member function.
6929 * objc-lang.c (objc_language_data): Delete la_printchar
6930 initializer.
6931 * opencl-lang.c (opencl_language_data): Likewise.
6932 * p-lang.c (pascal_language_data): Delete la_printchar
6933 initializer.
6934 (pascal_language::printchar): New member function.
6935 * rust-lang.c (rust_printchar): Rename to
6936 rust_language::printchar.
6937 (rust_language_data): Delete la_printchar initializer.
6938 (rust_language::printchar): New member function, implementation
6939 from rust_printchar.
6940
6941 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6944 (ada_language_data): Delete la_emitchar initializer.
6945 (ada_language::emitchar): New member function, implementation from
6946 emit_char.
6947 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6948 (cplus_language_data): Likewise.
6949 (asm_language_data): Likewise.
6950 (minimal_language_data): Likewise.
6951 * d-lang.c (d_language_data): Likewise.
6952 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6953 (f_language_data): Delete la_emitchar initializer.
6954 (f_language::emitchar): New member function, implementation from
6955 f_emit_char.
6956 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6957 * language.c (unk_lang_emit_char): Delete.
6958 (language_defn::emitchar): New member function definition.
6959 (unknown_language_data): Delete la_emitchar initializer.
6960 (unknown_language::emitchar): New member function.
6961 (auto_language_data): Delete la_emitchar initializer.
6962 (auto_language::emitchar): New member function.
6963 * language.h (language_data): Delete la_emitchar field.
6964 (language_defn::emitchar): New member field declaration.
6965 (LA_EMIT_CHAR): Update call to emitchar.
6966 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6967 (m2_language_data): Delete la_emitchar initializer.
6968 (m2_language::emitchar): New member function, implementation from
6969 m2_emit_char.
6970 * objc-lang.c (objc_language_data): Delete la_emitchar
6971 initializer.
6972 * opencl-lang.c (opencl_language_data): Likewise.
6973 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6974 (pascal_language_data): Delete la_emitchar initializer.
6975 (pascal_language::emitchar): New member function, implementation
6976 from pascal_emit_char.
6977 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6978 (rust_language_data): Delete la_emitchar initializer.
6979 (rust_language::emitchar): New member function, implementation
6980 from rust_emitchar.
6981
6982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6985 (ada_language_data): Delete la_post_parser initializer.
6986 (ada_language::post_parser): New member function.
6987 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6988 (cplus_language_data): Likewise.
6989 (asm_language_data): Likewise.
6990 (minimal_language_data): Likewise.
6991 * d-lang.c (d_language_data): Likewise.
6992 * f-lang.c (f_language_data): Likewise.
6993 * go-lang.c (go_language_data): Likewise.
6994 * language.c (unknown_language_data): Likewise.
6995 (auto_language_data): Likewise.
6996 * language.h (language_data): Delete la_post_parser field.
6997 (language_defn::post_parser): New member function.
6998 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6999 * objc-lang.c (objc_language_data): Likewise.
7000 * opencl-lang.c (opencl_language_data): Likewise.
7001 * p-lang.c (pascal_language_data): Likewise.
7002 * parse.c (parse_exp_in_context): Update call to post_parser.
7003 (null_post_parser): Delete definition.
7004 * parser-defs.h (null_post_parser): Delete declaration.
7005 * rust-lang.c (rust_language_data): Delete la_post_parser
7006 initializer.
7007
7008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * ada-lang.c (parse): Rename to ada_language::parser.
7011 (ada_language_data): Delete la_parser initializer.
7012 (ada_language::parser): New member function, implementation from
7013 parse.
7014 * c-lang.c (c_language_data): Delete la_parser initializer.
7015 (cplus_language_data): Likewise.
7016 (asm_language_data): Likewise.
7017 (minimal_language_data): Likewise.
7018 * d-lang.c (d_language_data): Likewise.
7019 (d_language::parser): New member function.
7020 * f-lang.c (f_language_data): Delete la_parser initializer.
7021 (f_language::parser): New member function.
7022 * go-lang.c (go_language_data): Delete la_parser initializer.
7023 (go_language::parser): New member function.
7024 * language.c (unk_lang_parser): Delete.
7025 (language_defn::parser): Define new member function.
7026 (unknown_language_data): Delete la_parser initializer.
7027 (unknown_language::parser): New member function.
7028 (auto_language_data): Delete la_parser initializer.
7029 (auto_language::parser): New member function.
7030 * language.h (language_data): Delete la_parser field.
7031 (language_defn::parser): Declare new member function.
7032 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7033 (m2_language::parser): New member function.
7034 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7035 * opencl-lang.c (opencl_language_data): Likewise.
7036 * p-lang.c (pascal_language_data): Likewise.
7037 (pascal_language::parser): New member function.
7038 * parse.c (parse_exp_in_context): Update call to parser.
7039 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7040 (rust_language::parser): New member function.
7041
7042 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * top.c (print_gdb_configuration): Print --with-python-libdir
7045 configuration value.
7046
7047 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7048
7049 * NEWS: Mention change to the alias command.
7050
7051 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7052
7053 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7054 (alias_command_completer)
7055 (make_alias_options_def_group): New functions.
7056 (alias_opts, alias_option_defs): New struct and array.
7057 (alias_usage_error): Update usage.
7058 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7059 Use option framework.
7060 (_initialize_cli_cmds): Update alias command help.
7061 Update aliases command help.
7062 (show_user):
7063 Add NULL for new default_args lookup_cmd argument.
7064 (valid_command_p): Rename to validate_aliased_command.
7065 Add NULL for new default_args lookup_cmd argument. Verify that the
7066 aliased_command has no default args.
7067 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7068 (lookup_cmd_1, lookup_cmd): New argument default_args.
7069 (add_alias_cmd):
7070 Add NULL for new default_args lookup_cmd argument.
7071 (print_help_for_command): Show default args under the layout
7072 alias some_alias = some_aliased_cmd some_alias_default_arg.
7073 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7074 xfree default_args in destructor.
7075 * cli/cli-script.c (process_next_line, do_define_command):
7076 Add NULL for new default_args lookup_cmd argument.
7077 * command.h: Declare new default_args argument in lookup_cmd
7078 and lookup_cmd_1.
7079 * completer.c (complete_line_internal_1):
7080 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7081 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7082 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7083 Likewise.
7084 * infcmd.c (_initialize_infcmd): Likewise.
7085 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7086 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7087 * python/py-param.c (add_setshow_generic): Likewise.
7088 * remote.c (_initialize_remote): Likewise.
7089 * top.c (execute_command): Prepend default_args if command has some.
7090 (set_verbose):
7091 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7092 * tracepoint.c (validate_actionline, encode_actions_1):
7093 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7094
7095 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7096
7097 * jit.c (jit_read_descriptor): Use bool as the return type.
7098 (jit_breakpoint_re_set_internal): Use bool as the return type.
7099 Invert the return value logic; return true if the jit breakpoint
7100 has been successfully initialized.
7101 (jit_inferior_init): Update the call to
7102 jit_breakpoint_re_set_internal.
7103
7104 2020-06-22 Pedro Alves <palves@redhat.com>
7105
7106 PR gdb/25939
7107 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7108 Use the current inferior instead. Don't return
7109 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7110 wait again.
7111 * sol-thread.c (sol_thread_target::wait): Don't reference
7112 inferior_ptid.
7113 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7114 (sol_update_thread_list_callback): Use the current inferior's pid
7115 instead of inferior_ptid.
7116
7117 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7118
7119 * procfs.c: Cleanup many comments.
7120
7121 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7122 (AFTER_WATCHFLAG): Replace by value.
7123
7124 (MAIN_PROC_NAME_FORMAT): Inline ...
7125 (create_procinfo): ... here.
7126
7127 (procfs_debug_inferior): Remove SYS_exec handling.
7128 (syscall_is_exec): Likewise.
7129 (procfs_set_exec_trap): Likewise.
7130
7131 (syscall_is_lwp_exit): Inline in callers.
7132 (syscall_is_exit): Likewise.
7133 (syscall_is_exec): Likewise.
7134 (syscall_is_lwp_create): Likewise.
7135
7136 (invalidate_cache): Remove #if 0 code.
7137
7138 (make_signal_thread_runnable): Remove.
7139 (procfs_target::resume): Remove #if 0 code.
7140
7141 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7142
7143 PR gdb/25939
7144 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7145 call ...
7146 (procfs_target::create_inferior): ... here.
7147
7148 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7149
7150 * exec.c (validate_exec_file): Ensure the build-id is up to
7151 date by calling reopen_exec_file (that checks file timestamp
7152 to decide to re-read the file).
7153
7154 2020-06-18 Pedro Alves <palves@redhat.com>
7155
7156 PR gdb/25412
7157 * gdbthread.h (delete_thread, delete_thread_silent)
7158 (find_thread_ptid): Update comments.
7159 * thread.c (current_thread_): New global.
7160 (is_current_thread): Move higher, and reimplement.
7161 (inferior_thread): Reimplement.
7162 (set_thread_exited): Use bool. Add assertions.
7163 (add_thread_silent): Simplify thread-reuse handling by always
7164 calling delete_thread.
7165 (delete_thread): Remove intro comment.
7166 (find_thread_ptid): Skip exited threads.
7167 (switch_to_thread_no_regs): Write to current_thread_.
7168 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7169 INFERIOR_PTID. Clear current_thread_.
7170
7171 2020-06-18 Pedro Alves <palves@redhat.com>
7172
7173 * aix-thread.c (pd_update): Use switch_to_thread.
7174
7175 2020-06-18 Pedro Alves <palves@redhat.com>
7176
7177 * ravenscar-thread.c (ravenscar_thread_target): Update.
7178 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7179 (ravenscar_thread_target::add_active_thread): ... this. Don't
7180 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7181 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7182
7183 2020-06-18 Pedro Alves <palves@redhat.com>
7184
7185 * nat/windows-nat.c (current_windows_thread): Remove.
7186 * nat/windows-nat.h (current_windows_thread): Remove.
7187 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7188 Adjust.
7189 (display_selectors): Adjust to fetch the current
7190 windows_thread_info based on inferior_ptid.
7191 (fake_create_process): No longer write to current_windows_thread.
7192 (windows_nat_target::get_windows_debug_event):
7193 Don't set inferior_ptid or current_windows_thread.
7194 (windows_nat_target::wait): Adjust to not rely on
7195 current_windows_thread.
7196 (do_initial_windows_stuff): Now a method of windows_nat_target.
7197 Switch to the last_ptid thread.
7198 (windows_nat_target::attach): Adjust.
7199 (windows_nat_target::detach): Use switch_to_no_thread instead of
7200 writing to inferior_ptid directly.
7201 (windows_nat_target::create_inferior): Adjust.
7202
7203 2020-06-18 Pedro Alves <palves@redhat.com>
7204
7205 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7206
7207 2020-06-18 Pedro Alves <palves@redhat.com>
7208
7209 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7210 after creating it, instead of writing to inferior_ptid. Don't
7211 write to inferior_ptid.
7212
7213 2020-06-18 Pedro Alves <palves@redhat.com>
7214
7215 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7216
7217 2020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7220 it, instead of writing to inferior_ptid.
7221
7222 2020-06-18 Pedro Alves <palves@redhat.com>
7223
7224 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7225 to inferior_ptid.
7226
7227 2020-06-18 Pedro Alves <palves@redhat.com>
7228
7229 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7230 instead of writing to inferior_ptid directly.
7231
7232 2020-06-18 Pedro Alves <palves@redhat.com>
7233
7234 * corelow.c (core_target::close): Use switch_to_no_thread instead
7235 of writing to inferior_ptid directly.
7236 (add_to_thread_list, core_target_open): Use switch_to_thread
7237 instead of writing to inferior_ptid directly.
7238
7239 2020-06-18 Pedro Alves <palves@redhat.com>
7240
7241 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7242 inferior_ptid.
7243 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7244 inferior_ptid.
7245 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7246 inferior_ptid directly.
7247 (darwin_nat_target::init_thread_list): Switch to thread, instead
7248 of writing to inferior_ptid.
7249 (darwin_nat_target::attach): Don't write to inferior_ptid.
7250 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7251
7252 2020-06-18 Pedro Alves <palves@redhat.com>
7253
7254 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7255 thread.
7256 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7257 Instead use switch_to_thread.
7258 (gnu_nat_target::detach): Use switch_to_no_thread
7259 instead of writing to inferior_ptid directly. Used passed-in
7260 inferior instead of looking up the inferior by pid.
7261
7262 2020-06-18 Pedro Alves <palves@redhat.com>
7263
7264 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7265 inferior_ptid.
7266
7267 2020-06-18 Pedro Alves <palves@redhat.com>
7268
7269 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7270 inferior_ptid.
7271 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7272 thread.
7273 (nto_procfs_target::detach): Avoid referencing
7274 inferior_ptid. Use switch_to_no_thread instead of writing to
7275 inferior_ptid directly.
7276 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7277 instead of writing to inferior_ptid directly.
7278 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7279 to thread.
7280
7281 2020-06-18 Pedro Alves <palves@redhat.com>
7282
7283 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7284 after creating it, instead of writing to inferior_ptid.
7285 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7286 to inferior_ptid directly.
7287 (gdbsim_target::wait): Don't write to inferior_ptid.
7288
7289 2020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * remote.c (remote_target::remote_notice_new_inferior): Use
7292 switch_to_thread instead of writing to inferior_ptid directly.
7293 (remote_target::add_current_inferior_and_thread): Use
7294 switch_to_no_thread instead of writing to inferior_ptid directly.
7295 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7296 and switch_to_thread instead of using set_current_inferior or
7297 writing to inferior_ptid directly.
7298
7299 2020-06-18 Pedro Alves <palves@redhat.com>
7300
7301 * tracectf.c (ctf_target_open): Switch to added thread instead of
7302 writing to inferior_ptid directly.
7303 (ctf_target::close): Use switch_to_no_thread instead of writing to
7304 inferior_ptid directly.
7305
7306 2020-06-18 Pedro Alves <palves@redhat.com>
7307
7308 * tracefile-tfile.c (tfile_target_open): Don't write to
7309 inferior_ptid directly, instead switch to added thread.
7310 (tfile_target::close): Use switch_to_no_thread instead of writing
7311 to inferior_ptid directly.
7312
7313 2020-06-18 Pedro Alves <palves@redhat.com>
7314
7315 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7316 (procfs_target::detach): Use switch_to_no_thread
7317 instead of writing to inferior_ptid directly.
7318 (do_attach): Change return type to void. Switch to the added
7319 thread.
7320 (procfs_target::create_inferior): Switch to the added thread.
7321 (procfs_do_thread_registers): Don't write to inferior_ptid.
7322
7323 2020-06-18 Pedro Alves <palves@redhat.com>
7324
7325 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7326 of writing to inferior_ptid.
7327 (scoped_restore_exited_inferior): Delete.
7328 (handle_vfork_child_exec_or_exit): Simplify using
7329 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7330 instead of writing to inferior_ptid.
7331 (THREAD_STOPPED_BY): Delete.
7332 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7333 (thread_stopped_by_hw_breakpoint): Delete.
7334 (save_waitstatus): Use
7335 scoped_restore_current_thread+switch_to_thread, and call
7336 target_stopped_by_watchpoint instead of
7337 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7338 instead of thread_stopped_by_sw_breakpoint, and
7339 target_stopped_by_hw_breakpoint instead of
7340 thread_stopped_by_hw_breakpoint.
7341 (handle_inferior_event)
7342 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7343 inferior_ptid directly, nor
7344 set_current_inferior/set_current_program_space. Use
7345 switch_to_thread / switch_to_inferior_no_thread instead.
7346
7347 2020-06-18 Pedro Alves <palves@redhat.com>
7348
7349 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7350 instead of writing to inferior_ptid.
7351
7352 2020-06-18 Pedro Alves <palves@redhat.com>
7353
7354 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7355 added thread.
7356 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7357 to the added thread.
7358 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7359 instead of writing to inferior_ptid.
7360
7361 2020-06-18 Pedro Alves <palves@redhat.com>
7362
7363 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7364 (register_to_value_test): Mock a program_space too. Heap-allocate
7365 the address space. Don't write to inferior_ptid. Use
7366 switch_to_thread instead.
7367
7368 2020-06-18 Pedro Alves <palves@redhat.com>
7369
7370 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7371 Delete.
7372 (find_signalled_thread()): New, factored out from
7373 linux_make_corefile_notes and adjusted to handle exited threads.
7374 (linux_make_corefile_notes): Adjust to use the new
7375 find_signalled_thread.
7376
7377 2020-06-18 Pedro Alves <palves@redhat.com>
7378
7379 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7380 of saving/restoring inferior_ptid.
7381
7382 2020-06-17 Tom Tromey <tom@tromey.com>
7383
7384 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7385 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7386 declare.
7387 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7388
7389 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7390
7391 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7392 of partial symtabs.
7393
7394 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * regformats/reg-arm.dat: Remove.
7397 * regformats/reg-bfin.dat: Remove.
7398 * regformats/reg-cris.dat: Remove.
7399 * regformats/reg-crisv32.dat: Remove.
7400 * regformats/reg-m32r.dat: Remove.
7401 * regformats/reg-tilegx.dat: Remove.
7402 * regformats/reg-tilegx32.dat: Remove.
7403
7404 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * features/Makefile (WHICH): Remove arm files.
7407 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7408 * regformats/arm/arm-with-neon.dat: Remove.
7409 * regformats/arm/arm-with-vfpv2.dat: Remove.
7410 * regformats/arm/arm-with-vfpv3.dat: Remove.
7411
7412 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * features/Makefile (XMLTOC): Remove rx.xml.
7415
7416 2020-06-17 Pedro Alves <palves@redhat.com>
7417
7418 * gdbthread.h (thread_control_state) <trap_expected> Update
7419 comments.
7420
7421 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7424 ada_language::lookup_symbol_nonlocal.
7425 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7426 (ada_language::lookup_symbol_nonlocal): New member function,
7427 implementation from ada_lookup_symbol_nonlocal.
7428 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7429 initializer.
7430 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7431 initializer.
7432 (cplus_language::lookup_symbol_nonlocal): New member function.
7433 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7434 (minimal_language_data) Likewise.
7435 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7436 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7437 initializer.
7438 (d_language::lookup_symbol_nonlocal): New member function.
7439 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7440 initializer.
7441 (f_language::lookup_symbol_nonlocal): New member function.
7442 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7443 initializer.
7444 * language.c (unknown_language_data): Likewise.
7445 (auto_language_data): Likewise.
7446 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7447 field.
7448 (language_defn::lookup_symbol_nonlocal): New member function.
7449 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7450 initializer.
7451 * objc-lang.c (objc_language_data): Likewise.
7452 * opencl-lang.c (opencl_language_data): Likewise.
7453 * p-lang.c (pascal_language_data): Likewise.
7454 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7455 rust_language::lookup_symbol_nonlocal.
7456 (rust_language_data): Delete la_lookup_symbol_nonlocal
7457 initializer.
7458 (rust_language::lookup_symbol_nonlocal): New member function,
7459 implementation from rust_lookup_symbol_nonlocal.
7460 * symtab.c (lookup_symbol_aux): Update call to
7461 lookup_symbol_nonlocal.
7462 (basic_lookup_symbol_nonlocal): Rename to...
7463 (language_defn::lookup_symbol_nonlocal): ...this, and update
7464 header comment. Remove language_defn parameter, and replace with
7465 uses of `this'.
7466 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7467
7468 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7471 initializer.
7472 (ada_language::value_print_inner): New member function.
7473 * c-lang.c (c_language_data): Delete la_value_print_inner
7474 initializer.
7475 (cplus_language_data): Likewise.
7476 (asm_language_data): Likewise.
7477 (minimal_language_data): Likewise.
7478 * d-lang.c (d_language_data): Likewise.
7479 (d_language::value_print_inner): New member function.
7480 * f-lang.c (f_language_data): Delete la_value_print_inner
7481 initializer.
7482 (f_language::value_print_inner): New member function.
7483 * f-lang.h (f_value_print_innner): Rename to...
7484 (f_value_print_inner): ...this (note spelling of 'inner').
7485 * f-valprint.c (f_value_print_innner): Rename to...
7486 (f_value_print_inner): ...this (note spelling of 'inner').
7487 * go-lang.c (go_language_data): Delete la_value_print_inner
7488 initializer.
7489 (go_language::value_print_inner): New member function.
7490 * language.c (language_defn::value_print_inner): Define new member
7491 function.
7492 (unk_lang_value_print_inner): Delete.
7493 (unknown_language_data): Delete la_value_print_inner initializer.
7494 (unknown_language::value_print_inner): New member function.
7495 (auto_language_data): Delete la_value_print_inner initializer.
7496 (auto_language::value_print_inner): New member function.
7497 * language.h (language_data): Delete la_value_print_inner field.
7498 (language_defn::value_print_inner): Delcare new member function.
7499 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7500 initializer.
7501 (m2_language::value_print_inner): New member function.
7502 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7503 initializer.
7504 * opencl-lang.c (opencl_language_data): Likewise.
7505 * p-lang.c (pascal_language_data): Likewise.
7506 (pascal_language::value_print_inner): New member function.
7507 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7508 initializer.
7509 (rust_language::value_print_inner): New member function.
7510 * valprint.c (do_val_print): Update call to value_print_inner.
7511
7512 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7513
7514 * ada-lang.c (ada_language_data): Delete la_value_print
7515 initializer.
7516 (ada_language::value_print): New member function.
7517 * c-lang.c (c_language_data): Delete la_value_print initializer.
7518 (cplus_language_data): Likewise.
7519 (asm_language_data): Likewise.
7520 (minimal_language_data): Likewise.
7521 * d-lang.c (d_language_data): Likewise.
7522 * f-lang.c (f_language_data): Likewise.
7523 * go-lang.c (go_language_data): Likewise.
7524 * language.c (unk_lang_value_print): Delete.
7525 (language_defn::value_print): Define new member function.
7526 (unknown_language_data): Delete la_value_print initializer.
7527 (unknown_language::value_print): New member function.
7528 (auto_language_data): Delete la_value_print initializer.
7529 (auto_language::value_print): New member function.
7530 * language.h (language_data): Delete la_value_print field.
7531 (language_defn::value_print): Declare new member function.
7532 (LA_VALUE_PRINT): Update call to value_print.
7533 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7534 * objc-lang.c (objc_language_data): Likewise.
7535 * opencl-lang.c (opencl_language_data): Likewise.
7536 * p-lang.c (pascal_language_data): Likewise.
7537 (pascal_language::value_print): New member function.
7538 * rust-lang.c (rust_language_data): Delete la_value_print
7539 initializer.
7540
7541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7542
7543 * ada-lang.c (ada_watch_location_expression): Rename to
7544 ada_language::watch_location_expression.
7545 (ada_language_data): Delete la_watch_location_expression
7546 initializer.
7547 (ada_language::watch_location_expression): New member function,
7548 implementation from ada_watch_location_expression.
7549 * breakpoint.c (watch_command_1): Update call to
7550 watch_location_expression.
7551 * c-lang.c (c_watch_location_expression): Rename to
7552 language_defn::watch_location_expression.
7553 (c_language_data): Delete la_watch_location_expression
7554 initializer.
7555 (cplus_language_data): Likewise.
7556 (asm_language_data): Likewise.
7557 (minimal_language_data): Likewise.
7558 * c-lang.h (c_watch_location_expression): Delete declaration.
7559 * d-lang.c (d_language_data): Delete la_watch_location_expression
7560 initializer.
7561 * f-lang.c (f_language_data): Likewise.
7562 * go-lang.c (go_language_data): Likewise.
7563 * language.c (language_defn::watch_location_expression): Member
7564 function implementation from c_watch_location_expression.
7565 (unknown_language_data): Delete la_watch_location_expression
7566 initializer.
7567 (auto_language_data): Likewise.
7568 * language.h (language_data): Delete la_watch_location_expression
7569 field.
7570 (language_defn::watch_location_expression): Declare new member
7571 function.
7572 * m2-lang.c (m2_language_data): Delete
7573 la_watch_location_expression initializer.
7574 * objc-lang.c (objc_language_data): Likewise.
7575 * opencl-lang.c (opencl_language_data): Likewise.
7576 * p-lang.c (pascal_language_data): Likewise.
7577 * rust-lang.c (rust_watch_location_expression): Rename to
7578 rust_language::watch_location_expression.
7579 (rust_language_data): Delete la_watch_location_expression
7580 initializer.
7581 (rust_language::watch_location_expression): New member function,
7582 implementation from rust_watch_location_expression.
7583
7584 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7585
7586 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7587 ada_language::collect_symbol_completion_matches.
7588 (ada_language_data): Delete la_collect_symbol_completion_matches
7589 initializer.
7590 (ada_language::collect_symbol_completion_matches): New member
7591 function, implementation from
7592 ada_collect_symbol_completion_matches.
7593 * c-lang.c (c_language_data): Delete
7594 la_collect_symbol_completion_matches initializer.
7595 (cplus_language_data): Likewise.
7596 (asm_language_data): Likewise.
7597 (minimal_language_data): Likewise.
7598 * d-lang.c (d_language_data): Likewise.
7599 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7600 f_language::collect_symbol_completion_matches.
7601 (f_language_data): Delete la_collect_symbol_completion_matches
7602 initializer.
7603 (f_language::collect_symbol_completion_matches) New member
7604 function, implementation from f_collect_symbol_completion_matches.
7605 * go-lang.c (go_language_data): Delete
7606 la_collect_symbol_completion_matches initializer.
7607 * language.c (unknown_language_data): Likewise.
7608 (auto_language_data): Likewise.
7609 * language.h (language_data): Delete
7610 la_collect_symbol_completion_matches field.
7611 (language_defn::collect_symbol_completion_matches): New member
7612 function.
7613 * m2-lang.c (m2_language_data): Delete
7614 la_collect_symbol_completion_matches initializer.
7615 * objc-lang.c (objc_language_data): Likewise.
7616 * opencl-lang.c (opencl_language_data): Likewise.
7617 * p-lang.c (pascal_language_data): Likewise.
7618 * rust-lang.c (rust_language_data): Likewise.
7619 * symtab.c (default_collect_symbol_completion_matches): Delete.
7620 (collect_symbol_completion_matches): Update call to
7621 collect_symbol_completion_matches.
7622 (collect_symbol_completion_matches_type): Likewise.
7623 * symtab.h (default_collect_symbol_completion_matches): Delete
7624 declaration.
7625
7626 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7629 (ada_language_data): Delete la_word_break_characters initializer.
7630 (ada_language::word_break_characters): New member function.
7631 * c-lang.c (c_language_data): Delete la_word_break_characters
7632 initializer.
7633 (cplus_language_data): Likewise.
7634 (asm_language_data): Likewise.
7635 (minimal_language_data): Likewise.
7636 * completer.c: Update global comment.
7637 (advance_to_expression_complete_word_point): Update call to
7638 word_break_characters.
7639 (complete_files_symbols): Likewise.
7640 (complete_line_internal_1): Likewise.
7641 (default_completer_handle_brkchars): Likewise.
7642 (skip_quoted_chars): Likewise.
7643 * d-lang.c (d_language_data): Delete la_word_break_characters
7644 initializer.
7645 * f-lang.c (f_word_break_characters): Delete.
7646 (f_language_data): Delete la_word_break_characters initializer.
7647 (f_language::word_break_characters): New member function.
7648 * go-lang.c (go_language_data): Delete la_word_break_characters
7649 initializer.
7650 * language.c (unknown_language_data): Likewise.
7651 (auto_language_data): Likewise.
7652 * language.h (default_word_break_characters): Move declaration to
7653 earlier in the file.
7654 (language_data): Delete la_word_break_characters field.
7655 (language_defn::word_break_characters): New member function.
7656 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7657 initializer.
7658 * objc-lang.c (objc_language_data): Likewise.
7659 * opencl-lang.c (opencl_language_data): Likewise.
7660 * p-lang.c (pascal_language_data): Likewise.
7661 * rust-lang.c (rust_language_data): Likewise.
7662
7663 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7666 (ada_language_data): Delete la_get_symbol_name_matcher
7667 initializer.
7668 (language_defn::get_symbol_name_matcher_inner): New member
7669 function.
7670 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7671 initializer.
7672 (cplus_language_data): Likewise.
7673 (cplus_language::get_symbol_name_matcher_inner): New member
7674 function.
7675 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7676 (minimal_language_data): Likewise.
7677 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7678 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7679 initializer.
7680 * dictionary.c (iter_match_first_hashed): Update call to
7681 get_symbol_name_matcher.
7682 (iter_match_next_hashed): Likewise.
7683 (iter_match_next_linear): Likewise.
7684 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7685 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7686 initializer.
7687 (f_language::get_symbol_name_matcher_inner): New member function.
7688 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7689 initializer.
7690 * language.c (default_symbol_name_matcher): Update header comment,
7691 make static.
7692 (language_defn::get_symbol_name_matcher): New definition.
7693 (language_defn::get_symbol_name_matcher_inner): Likewise.
7694 (get_symbol_name_matcher): Delete.
7695 (unknown_language_data): Delete la_get_symbol_name_matcher
7696 initializer.
7697 (auto_language_data): Likewise.
7698 * language.h (language_data): Delete la_get_symbol_name_matcher
7699 field.
7700 (language_defn::get_symbol_name_matcher): New member function.
7701 (language_defn::get_symbol_name_matcher_inner): Likewise.
7702 (default_symbol_name_matcher): Delete declaration.
7703 * linespec.c (find_methods): Update call to
7704 get_symbol_name_matcher.
7705 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7706 initializer.
7707 * minsyms.c (lookup_minimal_symbol): Update call to
7708 get_symbol_name_matcher.
7709 (iterate_over_minimal_symbols): Likewise.
7710 * objc-lang.c (objc_language_data): Delete
7711 la_get_symbol_name_matcher initializer.
7712 * opencl-lang.c (opencl_language_data): Likewise.
7713 * p-lang.c (pascal_language_data): Likewise.
7714 * psymtab.c (psymbol_name_matches): Update call to
7715 get_symbol_name_matcher.
7716 * rust-lang.c (rust_language_data): Delete
7717 la_get_symbol_name_matcher initializer.
7718 * symtab.c (symbol_matches_search_name): Update call to
7719 get_symbol_name_matcher.
7720 (compare_symbol_name): Likewise.
7721
7722 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * ada-lang.c (ada_language_data): Delete la_compute_program
7725 initializer.
7726 * c-lang.c (c_language_data): Likewise.
7727 (c_language::compute_program): New member function.
7728 (cplus_language_data): Delete la_compute_program initializer.
7729 (cplus_language::compute_program): New member function.
7730 (asm_language_data): Delete la_compute_program initializer.
7731 (minimal_language_data): Likewise.
7732 * c-lang.h (c_compute_program): Update comment.
7733 (cplus_compute_program): Likewise.
7734 * compile/compile-c-support.c (c_compute_program): Likewise.
7735 (cplus_compute_program): Likewise.
7736 * compile/compile.c (compile_to_object): Update call to
7737 la_compute_program.
7738 * d-lang.c (d_language_data): Delete la_compute_program
7739 initializer.
7740 * f-lang.c (f_language_data): Likewise.
7741 * go-lang.c (go_language_data): Likewise.
7742 * language.c (unknown_language_data): Likewise.
7743 (auto_language_data): Likewise.
7744 * language.h (language_data): Delete la_compute_program field.
7745 (language_defn::compute_program): New member function.
7746 * m2-lang.c (m2_language_data): Delete la_compute_program
7747 initializer.
7748 * objc-lang.c (objc_language_data): Likewise.
7749 * opencl-lang.c (opencl_language_data): Likewise.
7750 * p-lang.c (pascal_language_data): Likewise.
7751 * rust-lang.c (rust_language_data): Likewise.
7752
7753 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * ada-lang.c (ada_language_data) Delete
7756 la_class_name_from_physname initializer.
7757 * c-lang.c (c_language_data): Likewise.
7758 (cplus_language_data): Likewise.
7759 (cplus_language::class_name_from_physname): New member function.
7760 (asm_language_data): Delete la_class_name_from_physname
7761 initializer.
7762 (minimal_language_data): Likewise.
7763 * d-lang.c (d_language_data): Likewise.
7764 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7765 method on language_defn class.
7766 (guess_full_die_structure_name): Likewise.
7767 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7768 initializer.
7769 * go-lang.c (go_language_data): Likewise.
7770 * language.c (language_class_name_from_physname): Delete.
7771 (unk_lang_class_name): Delete.
7772 (unknown_language_data): Delete la_class_name_from_physname
7773 initializer.
7774 (auto_language_data): Likewise.
7775 * language.h (language_data): Delete la_class_name_from_physname
7776 field.
7777 (language_defn::class_name_from_physname): New function.
7778 (language_class_name_from_physname): Delete declaration.
7779 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7780 initializer.
7781 * objc-lang.c (objc_language_data): Likewise.
7782 * opencl-lang.c (opencl_language_data): Likewise.
7783 * p-lang.c (pascal_language_data): Likewise.
7784 * rust-lang.c (rust_language_data): Likewise.
7785
7786 2020-06-16 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui-data.h (STATUS_NAME): New macro.
7789 * tui/tui-layout.c (tui_remove_some_windows)
7790 (initialize_known_windows, tui_register_window)
7791 (tui_layout_split::remove_windows, initialize_layouts)
7792 (tui_new_layout_command): Don't use hard-coded window names.
7793
7794 2020-06-16 Tom Tromey <tom@tromey.com>
7795
7796 PR tui/25348:
7797 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7798 tui_initialize_readline. Only run once. Call rl_initialize.
7799 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7800 tui_initialize_readline.
7801 * tui/tui-io.c (tui_setup_io): Call
7802 tui_ensure_readline_initialized.
7803 * tui/tui-interp.c (tui_interp::init): Update.
7804
7805 2020-06-16 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7808 Also preserve the status window.
7809
7810 2020-06-16 Tom Tromey <tom@tromey.com>
7811
7812 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7813 where m_window==nullptr.
7814
7815 2020-06-15 Tom Tromey <tromey@adacore.com>
7816
7817 * windows-nat.c (windows_nat::handle_output_debug_string):
7818 Update.
7819 (windows_nat::handle_ms_vc_exception): Update.
7820 * target.h (target_read_string): Change API.
7821 * target.c (target_read_string): Change API.
7822 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7823 Update.
7824 * solib-frv.c (frv_current_sos): Update.
7825 * solib-dsbt.c (dsbt_current_sos): Update.
7826 * solib-darwin.c (darwin_current_sos): Update.
7827 * linux-thread-db.c (inferior_has_bug): Update.
7828 * expprint.c (print_subexp_standard): Update.
7829 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7830 (ada_exception_message_1): Update.
7831
7832 2020-06-15 Tom Tromey <tromey@adacore.com>
7833
7834 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7835
7836 2020-06-15 Tom Tromey <tromey@adacore.com>
7837
7838 * valprint.c (read_string): Update comment.
7839 * target.c (MIN): Remove.
7840 (target_read_string): Rewrite.
7841
7842 2020-06-15 Tom Tromey <tromey@adacore.com>
7843
7844 * corefile.c (read_memory_string): Remove.
7845 * ada-valprint.c (ada_value_print_ptr): Update.
7846 * ada-lang.h (ada_tag_name): Change return type.
7847 * ada-lang.c (type_from_tag): Update.
7848 (ada_tag_name_from_tsd): Change return type. Use
7849 target_read_string.
7850 (ada_tag_name): Likewise.
7851 * gdbcore.h (read_memory_string): Don't declare.
7852
7853 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7854
7855 * symtab.c (rbreak_command): Ignore Windows drive colon.
7856
7857 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * NEWS: Mention removed GDBserver host support.
7860
7861 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7862
7863 * features/riscv/rebuild-csr-xml.sh: Updated.
7864
7865 2020-06-11 Tom Tromey <tom@tromey.com>
7866
7867 PR gdb/18318:
7868 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7869
7870 2020-06-09 Jonny Grant <jg@jguk.org>
7871 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7872
7873 * main.c (captured_main_1): Don't print new line after help.
7874 (print_gdb_help): add mailing list and IRC channel information
7875 to --help. Add new lines between items in the footer. Remove
7876 quotes around bug url.
7877
7878 2020-06-11 Keith Seitz <keiths@redhat.com>
7879
7880 PR gdb/21356
7881 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7882 Resolve typedefs for type length calculations.
7883
7884 2020-06-10 Tom de Vries <tdevries@suse.de>
7885
7886 PR ada/24713
7887 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7888 (write_psymbols): Enable .gdb_index for ada.
7889 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7890 ada.
7891
7892 2020-06-10 Tom de Vries <tdevries@suse.de>
7893
7894 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7895 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7896 namei" instead of "const char *name" argument.
7897 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7898 dw2_symtab_iter_init.
7899
7900 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7901
7902 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7903 to use type::field and field::type instead.
7904
7905 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7908 to use field::type instead.
7909
7910 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * gdbtypes.h (struct field) <type, set_type>: New methods.
7913 Rename `type` field to...
7914 <m_type>: ... this. Change references throughout to use type or
7915 set_type methods.
7916 (FIELD_TYPE): Use field::type. Change call sites that modify
7917 the field's type to use field::set_type instead.
7918
7919 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7922 to use type::index_type instead.
7923
7924 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7925
7926 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7927 methods.
7928 (TYPE_INDEX_TYPE): Use type::index_type.
7929 * gdbtypes.c (create_array_type_with_stride): Likewise.
7930
7931 2020-06-07 Tom Tromey <tom@tromey.com>
7932
7933 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7934 parameter.
7935 (generic_value_print): Update.
7936
7937 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 Revert commit 982a38f60b0.
7940 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7941
7942 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7945 avoid use after free.
7946
7947 2020-06-05 Tom de Vries <tdevries@suse.de>
7948
7949 * NEWS: Fix typos.
7950
7951 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7954 the per_bfd object.
7955 (dwarf2_read_debug_names): Likewise.
7956 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7957 object when re-using a per_bfd object with an index.
7958
7959 2020-06-03 Tom de Vries <tdevries@suse.de>
7960
7961 PR symtab/26046
7962 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7963 children for C++.
7964 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7965 DW_TAG_subprogram.
7966
7967 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * ada-lang.c (ada_language_data): Delete skip_trampoline
7970 initializer.
7971 * c-lang.c (c_language_data): Likewise.
7972 (cplus_language_data): Likewise.
7973 (cplus_language::skip_trampoline): New member function.
7974 (asm_language_data): Delete skip_trampoline initializer.
7975 (minimal_language_data): Likewise.
7976 * d-lang.c (d_language_data): Likewise.
7977 * f-lang.c (f_language_data): Likewise.
7978 * go-lang.c (go_language_data): Likewise.
7979 * language.c (unk_lang_trampoline): Delete function.
7980 (skip_language_trampoline): Update.
7981 (unknown_language_data): Delete skip_trampoline initializer.
7982 (auto_language_data): Likewise.
7983 * language.h (language_data): Delete skip_trampoline field.
7984 (language_defn::skip_trampoline): New function.
7985 * m2-lang.c (m2_language_data): Delete skip_trampoline
7986 initializer.
7987 * objc-lang.c (objc_skip_trampoline): Delete function, move
7988 implementation to objc_language::skip_trampoline.
7989 (objc_language_data): Delete skip_trampoline initializer.
7990 (objc_language::skip_trampoline): New member function with
7991 implementation from objc_skip_trampoline.
7992 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7993 initializer.
7994 * p-lang.c (pascal_language_data): Likewise.
7995 * rust-lang.c (rust_language_data): Likewise.
7996
7997 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7998
7999 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8000 (ada_language::demangle): New member function.
8001 * c-lang.c (c_language_data): Delete la_demangle initializer.
8002 (cplus_language_data): Delete la_demangle initializer.
8003 (cplus_language::demangle): New member function.
8004 (asm_language_data): Delete la_demangle initializer.
8005 (minimal_language_data): Delete la_demangle initializer.
8006 * d-lang.c (d_language_data): Delete la_demangle initializer.
8007 (d_language::demangle): New member function.
8008 * f-lang.c (f_language_data): Delete la_demangle initializer.
8009 (f_language::demangle): New member function.
8010 * go-lang.c (go_language_data): Delete la_demangle initializer.
8011 (go_language::demangle): New member function.
8012 * language.c (language_demangle): Update.
8013 (unk_lang_demangle): Delete.
8014 (unknown_language_data): Delete la_demangle initializer.
8015 (unknown_language::demangle): New member function.
8016 (auto_language_data): Delete la_demangle initializer.
8017 (auto_language::demangle): New member function.
8018 * language.h (language_data): Delete la_demangle field.
8019 (language_defn::demangle): New function.
8020 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8021 * objc-lang.c (objc_language_data): Delete la_demangle
8022 initializer.
8023 (objc_language::demangle): New member function.
8024 * opencl-lang.c (opencl_language_data): Delete la_demangle
8025 initializer.
8026 * p-lang.c (pascal_language_data): Likewise.
8027 * rust-lang.c (rust_language_data): Likewise.
8028 (rust_language::demangle): New member function.
8029
8030 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8031
8032 * ada-lang.c (ada_language_data): Delete la_print_type
8033 initializer.
8034 (ada_language::print_type): New member function.
8035 * c-lang.c (c_language_data): Delete la_print_type initializer.
8036 (c_language::print_type): New member function.
8037 (cplus_language_data): Delete la_print_type initializer.
8038 (cplus_language::print_type): New member function.
8039 (asm_language_data): Delete la_print_type initializer.
8040 (asm_language::print_type): New member function.
8041 (minimal_language_data): Delete la_print_type initializer.
8042 (minimal_language::print_type): New member function.
8043 * d-lang.c (d_language_data): Delete la_print_type initializer.
8044 (d_language::print_type): New member function.
8045 * f-lang.c (f_language_data): Delete la_print_type initializer.
8046 (f_language::print_type): New member function.
8047 * go-lang.c (go_language_data): Delete la_print_type initializer.
8048 (go_language::print_type): New member function.
8049 * language.c (unk_lang_print_type): Delete.
8050 (unknown_language_data): Delete la_print_type initializer.
8051 (unknown_language::print_type): New member function.
8052 (auto_language_data): Delete la_print_type initializer.
8053 (auto_language::print_type): New member function.
8054 * language.h (language_data): Delete la_print_type field.
8055 (language_defn::print_type): New function.
8056 (LA_PRINT_TYPE): Update.
8057 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8058 (m2_language::print_type): New member function.
8059 * objc-lang.c (objc_language_data): Delete la_print_type
8060 initializer.
8061 (objc_language::print_type): New member function.
8062 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8063 to opencl_language::print_type.
8064 (opencl_language_data): Delete la_print_type initializer.
8065 (opencl_language::print_type): New member function, implementation
8066 from opencl_print_type.
8067 * p-lang.c (pascal_language_data): Delete la_print_type
8068 initializer.
8069 (pascal_language::print_type): New member function.
8070 * rust-lang.c (rust_print_type): Delete, implementation moved to
8071 rust_language::print_type.
8072 (rust_language_data): Delete la_print_type initializer.
8073 (rust_language::print_type): New member function, implementation
8074 from rust_print_type.
8075
8076 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8077
8078 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8079 implementation moves to...
8080 (ada_language::sniff_from_mangled_name): ...here. Update return
8081 type.
8082 (ada_language_data): Delete la_sniff_from_mangled_name
8083 initializer.
8084 * c-lang.c (c_language_data): Likewise.
8085 (cplus_language_data): Likewise.
8086 (cplus_language::sniff_from_mangled_name): New member function,
8087 implementation taken from gdb_sniff_from_mangled_name.
8088 (asm_language_data): Delete la_sniff_from_mangled_name
8089 initializer.
8090 (minimal_language_data): Likewise.
8091 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8092 implementation moves to cplus_language::sniff_from_mangled_name.
8093 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8094 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8095 moves to...
8096 (d_language::sniff_from_mangled_name): ...here.
8097 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8098 * f-lang.c (f_language_data): Likewise.
8099 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8100 moves to...
8101 (go_language::sniff_from_mangled_name): ...here.
8102 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8103 * language.c (language_sniff_from_mangled_name): Delete.
8104 (unknown_language_data): Delete la_sniff_from_mangled_name
8105 initializer.
8106 (auto_language_data): Likewise.
8107 * language.h (language_data): Delete la_sniff_from_mangled_name
8108 field.
8109 (language_defn::sniff_from_mangled_name): New function.
8110 (language_sniff_from_mangled_name): Delete declaration.
8111 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8112 field.
8113 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8114 implementation moves to...
8115 (objc_language::sniff_from_mangled_name): ...here.
8116 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8117 * opencl-lang.c (opencl_language_data): Likewise.
8118 * p-lang.c (pascal_language_data): Likewise.
8119 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8120 implementation moves to...
8121 (rust_language::sniff_from_mangled_name): ...here.
8122 (rust_language_data): Delete la_sniff_from_mangled_name
8123 initializer.
8124 * symtab.c (symbol_find_demangled_name): Call
8125 sniff_from_mangled_name member function.
8126
8127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8128
8129 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8130 initializer.
8131 * c-lang.c (c_language_data): Likewise.
8132 (cplus_language_data): Likewise.
8133 (cplus_language::search_name_hash): New member function.
8134 (asm_language_data): Delete la_search_name_hash initializer.
8135 (minimal_language_data): Likewise.
8136 * d-lang.c (d_language_data): Likewise.
8137 * dictionary.c (default_search_name_hash): Rename to...
8138 (language_defn::search_name_hash): ...this.
8139 * f-lang.c (f_language_data): Likewise.
8140 (f_language::search_name_hash): New member function.
8141 * go-lang.c (go_language_data): Delete la_search_name_hash
8142 initializer.
8143 * language.c (unknown_language_data): Likewise.
8144 (auto_language_data): Likewise.
8145 * language.h (struct language_data): Delete la_search_name_hash
8146 field.
8147 (language_defn::search_name_hash): Declare new member function.
8148 (default_search_name_hash): Delete declaration.
8149 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8150 initializer.
8151 * objc-lang.c (objc_language_data): Likewise.
8152 * opencl-lang.c (opencl_language_data): Likewise.
8153 * p-lang.c (pascal_language_data): Likewise.
8154 * rust-lang.c (rust_language_data): Likewise.
8155 * symtab.c (search_name_hash): Update call.
8156
8157 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8160 initializer.
8161 * c-lang.c (class compile_instance): Declare.
8162 (c_language_data): Delete la_get_compile_instance initializer.
8163 (c_language::get_compile_instance): New member function.
8164 (cplus_language_data): Delete la_get_compile_instance initializer.
8165 (cplus_language::get_compile_instance): New member function.
8166 (asm_language_data): Delete la_get_compile_instance initializer.
8167 (minimal_language_data): Likewise.
8168 * c-lang.h (c_get_compile_context): Update comment.
8169 (cplus_get_compile_context): Update comment.
8170 * compile/compile.c (compile_to_object): Update calls, don't rely
8171 on function pointer being NULL.
8172 * d-lang.c (d_language_data): Delete la_get_compile_instance
8173 initializer.
8174 * f-lang.c (f_language_data): Likewise.
8175 * go-lang.c (go_language_data): Likewise.
8176 * language.c (unknown_language_data): Likewise.
8177 (auto_language_data): Likewise.
8178 * language.h (language_data): Delete la_get_compile_instance field.
8179 (language_defn::get_compile_instance): New member function.
8180 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8181 initializer.
8182 * objc-lang.c (objc_language_data): Likewise.
8183 * opencl-lang.c (opencl_language_data): Likewise.
8184 * p-lang.c (pascal_language_data): Likewise.
8185 * rust-lang.c (rust_language_data): Likewise.
8186
8187 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * ada-lang.c (ada_add_all_symbols): Update comment.
8190 (ada_iterate_over_symbols): Delete, move implementation to...
8191 (ada_language::iterate_over_symbols): ...here, a new member
8192 function, rewrite to use range based for loop.
8193 (ada_language_data): Delete la_iterate_over_symbols initializer.
8194 * c-lang.c (c_language_data): Likewise.
8195 (cplus_language_data): Likewise.
8196 (asm_language_data): Likewise.
8197 (minimal_language_data): Likewise.
8198 * d-lang.c (d_language_data): Likewise.
8199 * f-lang.c (f_language_data): Likewise.
8200 * go-lang.c (go_language_data): Likewise.
8201 * language.c (unknown_language_data): Likewise.
8202 (auto_language_data): Likewise.
8203 * language.h (language_data): Delete la_iterate_over_symbols field.
8204 (language_defn::iterate_over_symbols): New member function.
8205 (LA_ITERATE_OVER_SYMBOLS): Update.
8206 * linespec.c (iterate_over_all_matching_symtabs): Update.
8207 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8208 initializer.
8209 * objc-lang.c (objc_language_data): Likewise.
8210 * opencl-lang.c (opencl_language_data): Likewise.
8211 * p-lang.c (pascal_language_data): Likewise.
8212 * rust-lang.c (rust_language_data): Likewise.
8213
8214 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * ada-lang.c (ada_language_data): Delete
8217 la_lookup_transparent_type initializer.
8218 * c-lang.c (c_language_data): Likewise.
8219 (cplus_language_data): Likewise.
8220 (cplus_language::lookup_transparent_type): New member function.
8221 (asm_language_data): Delete la_lookup_transparent_type
8222 initializer.
8223 (minimal_language_data): Likewise.
8224 * d-lang.c (d_language_data): Likewise.
8225 * f-lang.c (f_language_data): Likewise.
8226 * go-lang.c (go_language_data): Likewise.
8227 * language.c (unknown_language_data): Likewise.
8228 (auto_language_data): Likewise.
8229 * language.h (struct language_data): Delete
8230 la_lookup_transparent_type field.
8231 (language_defn::lookup_transparent_type): New member function.
8232 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8233 initializer.
8234 * objc-lang.c (objc_language_data): Likewise.
8235 * opencl-lang.c (opencl_language_data): Likewise.
8236 * p-lang.c (pascal_language_data): Likewise.
8237 * rust-lang.c (rust_language_data): Likewise.
8238 * symtab.c (symbol_matches_domain): Update call.
8239
8240 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * ada-lang.c (ada_language_arch_info): Delete function, move
8243 implementation to...
8244 (ada_language::language_arch_info): ...here, a new member
8245 function.
8246 (ada_language_data): Delete la_language_arch_info.
8247 * c-lang.c (c_language_data): Likewise.
8248 (c_language::language_arch_info): New member function.
8249 (cplus_language_arch_info): Delete function, move
8250 implementation to...
8251 (cplus_language::language_arch_info): ...here, a new member
8252 function.
8253 (cplus_language_data): Delete la_language_arch_info.
8254 (asm_language_data): Likewise.
8255 (asm_language::language_arch_info): New member function.
8256 (minimal_language_data): Delete la_language_arch_info.
8257 (minimal_language::language_arch_info): New member function.
8258 * d-lang.c (d_language_arch_info): Delete function, move
8259 implementation to...
8260 (d_language::language_arch_info): ...here, a new member
8261 function.
8262 (d_language_data): Delete la_language_arch_info.
8263 * f-lang.c (f_language_arch_info): Delete function, move
8264 implementation to...
8265 (f_language::language_arch_info): ...here, a new member
8266 function.
8267 (f_language_data): Delete la_language_arch_info.
8268 * go-lang.c (go_language_arch_info): Delete function, move
8269 implementation to...
8270 (go_language::language_arch_info): ...here, a new member
8271 function.
8272 (go_language_data): Delete la_language_arch_info.
8273 * language.c (unknown_language_data): Likewise.
8274 (unknown_language::language_arch_info): New member function.
8275 (auto_language_data): Delete la_language_arch_info.
8276 (auto_language::language_arch_info): New member function.
8277 (language_gdbarch_post_init): Update call to
8278 la_language_arch_info.
8279 * language.h (language_data): Delete la_language_arch_info
8280 function pointer.
8281 (language_defn::language_arch_info): New function.
8282 * m2-lang.c (m2_language_arch_info): Delete function, move
8283 implementation to...
8284 (m2_language::language_arch_info): ...here, a new member
8285 function.
8286 (m2_language_data): Delete la_language_arch_info.
8287 * objc-lang.c (objc_language_arch_info): Delete function, move
8288 implementation to...
8289 (objc_language::language_arch_info): ...here, a new member
8290 function.
8291 (objc_language_data): Delete la_language_arch_info.
8292 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8293 implementation to...
8294 (opencl_language::language_arch_info): ...here, a new member
8295 function.
8296 (opencl_language_data): Delete la_language_arch_info.
8297 * p-lang.c (pascal_language_arch_info): Delete function, move
8298 implementation to...
8299 (pascal_language::language_arch_info): ...here, a new member
8300 function.
8301 (pascal_language_data): Delete la_language_arch_info.
8302 * rust-lang.c (rust_language_arch_info): Delete function, move
8303 implementation to...
8304 (rust_language::language_arch_info): ...here, a new member
8305 function.
8306 (rust_language_data): Delete la_language_arch_info.
8307
8308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8309
8310 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8311 initializer.
8312 * c-lang.c (c_language_data): Likewise.
8313 (cplus_language_data): Likewise.
8314 (cplus_language::pass_by_reference_info): New method.
8315 (asm_language_data): Delete la_pass_by_reference initializer.
8316 (minimal_language_data): Likewise.
8317 * cp-abi.c (cp_pass_by_reference): Remove use of
8318 default_pass_by_reference.
8319 * d-lang.c (d_language_data): Likewise.
8320 * f-lang.c (f_language_data): Likewise.
8321 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8322 default_pass_by_reference.
8323 * go-lang.c (go_language_data): Likewise.
8324 * language.c (language_pass_by_reference): Update.
8325 (default_pass_by_reference): Delete.
8326 (unknown_language_data): Delete la_pass_by_reference
8327 initializer.
8328 (auto_language_data): Likewise.
8329 * language.h (struct language_data): Delete la_pass_by_reference
8330 field.
8331 (language_defn::pass_by_reference_info): New member function.
8332 (default_pass_by_reference): Delete declaration.
8333 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8334 initializer.
8335 * objc-lang.c (objc_language_data): Likewise.
8336 * opencl-lang.c (opencl_language_data): Likewise.
8337 * p-lang.c (pascal_language_data): Likewise.
8338 * rust-lang.c (rust_language_data): Likewise.
8339
8340 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8341
8342 * ada-lang.c (ada_read_var_value): Delete function, move
8343 implementation to...
8344 (ada_language::read_var_value): ...here.
8345 (ada_language_data): Delete la_read_var_value initializer.
8346 * c-lang.c (c_language_data): Likewise.
8347 (cplus_language_data): Likewise.
8348 (minimal_language_data): Likewise.
8349 * d-lang.c (d_language_data): Likewise.
8350 * f-lang.c (f_language_data): Likewise.
8351 * findvar.c (default_read_var_value): Rename to...
8352 (language_defn::read_var_value): ...this.
8353 * findvar.c (read_var_value): Update header comment, and change to
8354 call member function instead of function pointer.
8355 * go-lang.c (go_language_data): Likewise.
8356 * language.c (unknown_language_data): Delete la_read_var_value
8357 initializer.
8358 (auto_language_data): Likewise.
8359 * language.h (struct language_data): Delete la_read_var_value
8360 field.
8361 (language_defn::read_var_value): New member function.
8362 (default_read_var_value): Delete declaration.
8363 * m2-lang.c (m2_language_data): Delete la_read_var_value
8364 initializer.
8365 * objc-lang.c (objc_language_data): Likewise.
8366 * opencl-lang.c (opencl_language_data): Likewise.
8367 * p-lang.c (pascal_language_data): Likewise.
8368 * rust-lang.c (rust_language_data): Likewise.
8369 * value.h (default_read_var_value): Delete declaration.
8370
8371 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * ada-lang.c (ada_print_array_index): Delete function, move
8374 implementation to...
8375 (ada_language::print_array_index): ...here.
8376 (ada_language_data): Delete la_print_array_index initializer.
8377 * c-lang.c (c_language_data): Likewise.
8378 (cplus_language_data): Likewise.
8379 (minimal_language_data): Likewise.
8380 * d-lang.c (d_language_data): Likewise.
8381 * f-lang.c (f_language_data): Likewise.
8382 * go-lang.c (go_language_data): Likewise.
8383 * language.c (default_print_array_index): Delete function, move
8384 implementation to...
8385 (language_defn::print_array_index): ...here.
8386 (unknown_language_data): Delete la_print_array_index initializer.
8387 (auto_language_data): Likewise.
8388 * language.h (struct language_data): Delete la_print_array_index
8389 field.
8390 (language_defn::print_array_index): New member function.
8391 (LA_PRINT_ARRAY_INDEX): Update.
8392 (default_print_array_index): Delete declaration.
8393 * m2-lang.c (m2_language_data): Delete la_print_array_index
8394 initializer.
8395 * objc-lang.c (objc_language_data): Likewise.
8396 * opencl-lang.c (opencl_language_data): Likewise.
8397 * p-lang.c (pascal_language_data): Likewise.
8398 * rust-lang.c (rust_language_data): Likewise.
8399
8400 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 * gdb/ada-lang.c (ada_language_defn): Convert to...
8403 (ada_language_data): ...this.
8404 (class ada_language): New class.
8405 (ada_language_defn): New static global.
8406 * gdb/c-lang.c (c_language_defn): Convert to...
8407 (c_language_data): ...this.
8408 (class c_language): New class.
8409 (c_language_defn): New static global.
8410 (cplus_language_defn): Convert to...
8411 (cplus_language_data): ...this.
8412 (class cplus_language): New class.
8413 (cplus_language_defn): New static global.
8414 (asm_language_defn): Convert to...
8415 (asm_language_data): ...this.
8416 (class asm_language): New class.
8417 (asm_language_defn): New static global.
8418 (minimal_language_defn): Convert to...
8419 (minimal_language_data): ...this.
8420 (class minimal_language): New class.
8421 (minimal_language_defn): New static global.
8422 * gdb/d-lang.c (d_language_defn): Convert to...
8423 (d_language_data): ...this.
8424 (class d_language): New class.
8425 (d_language_defn): New static global.
8426 * gdb/f-lang.c (f_language_defn): Convert to...
8427 (f_language_data): ...this.
8428 (class f_language): New class.
8429 (f_language_defn): New static global.
8430 * gdb/go-lang.c (go_language_defn): Convert to...
8431 (go_language_data): ...this.
8432 (class go_language): New class.
8433 (go_language_defn): New static global.
8434 * gdb/language.c (unknown_language_defn): Remove declaration.
8435 (current_language): Initialize to nullptr, real initialization is
8436 moved to _initialize_language.
8437 (languages): Delete global.
8438 (language_defn::languages): Define.
8439 (set_language_command): Use language_defn::languages.
8440 (set_language): Likewise.
8441 (range_error): Likewise.
8442 (language_enum): Likewise.
8443 (language_def): Likewise.
8444 (add_set_language_command): Use language_def::languages for the
8445 language list, and language_def to lookup language pointers.
8446 (skip_language_trampoline): Use language_defn::languages.
8447 (unknown_language_defn): Convert to...
8448 (unknown_language_data): ...this.
8449 (class unknown_language): New class.
8450 (unknown_language_defn): New static global.
8451 (auto_language_defn): Convert to...
8452 (auto_language_data): ...this.
8453 (class auto_language): New class.
8454 (auto_language_defn): New static global.
8455 (language_gdbarch_post_init): Use language_defn::languages.
8456 (_initialize_language): Initialize current_language.
8457 * gdb/language.h (struct language_defn): Rename to...
8458 (struct language_data): ...this.
8459 (struct language_defn): New.
8460 (auto_language_defn): Delete.
8461 (unknown_language_defn): Delete.
8462 (minimal_language_defn): Delete.
8463 (ada_language_defn): Delete.
8464 (asm_language_defn): Delete.
8465 (c_language_defn): Delete.
8466 (cplus_language_defn): Delete.
8467 (d_language_defn): Delete.
8468 (f_language_defn): Delete.
8469 (go_language_defn): Delete.
8470 (m2_language_defn): Delete.
8471 (objc_language_defn): Delete.
8472 (opencl_language_defn): Delete.
8473 (pascal_language_defn): Delete.
8474 (rust_language_defn): Delete.
8475 * gdb/m2-lang.c (m2_language_defn): Convert to...
8476 (m2_language_data): ...this.
8477 (class m2_language): New class.
8478 (m2_language_defn): New static global.
8479 * gdb/objc-lang.c (objc_language_defn): Convert to...
8480 (objc_language_data): ...this.
8481 (class objc_language): New class.
8482 (objc_language_defn): New static global.
8483 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8484 (opencl_language_data): ...this.
8485 (class opencl_language): New class.
8486 (opencl_language_defn): New static global.
8487 * gdb/p-lang.c (pascal_language_defn): Convert to...
8488 (pascal_language_data): ...this.
8489 (class pascal_language): New class.
8490 (pascal_language_defn): New static global.
8491 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8492 language pointer, update comment format.
8493 * gdb/rust-lang.c (rust_language_defn): Convert to...
8494 (rust_language_data): ...this.
8495 (class rust_language): New class.
8496 (rust_language_defn): New static global.
8497
8498 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8501 member variable.
8502 <m_stmt_at_address>: New member variable.
8503 (lnp_state_machine::record_line): Don't record some lines, update
8504 tracking of is_stmt at the same address.
8505 (lnp_state_machine::lnp_state_machine): Initialise new member
8506 variables.
8507
8508 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8509
8510 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8511 "-include gnu-nat-mig.h".
8512 * gnu-nat-mig.h: New file.
8513 * gnu-nat.c: Include "gnu-nat-mig.h".
8514 (exc_server, msg_reply_server, notify_server,
8515 process_reply_server): Remove declarations.
8516
8517 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8518
8519 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8520 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8521 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8522 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8523 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8524 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8525 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8526 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8527 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8528 to gnu_nat_target class.
8529 * gnu-nat.c: Likewise.
8530 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8531 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8532 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8533 object.
8534 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8535 instead of `gnu_target'.
8536
8537 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8538
8539 * i386-gnu-tdep.c: Include "gdbcore.h"
8540 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8541 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8542 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8543 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8544 i386_gnu_sigcontext_addr): New functions
8545 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8546 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8547 tdep.
8548
8549 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8550
8551 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8552 before fork_inferior call. Avoid calling it if target_is_pushed returns
8553 true.
8554
8555 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8556
8557 * gnu-nat.h (gnu_target): New variable declaration.
8558 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8559 gnu_target.
8560 * gnu-nat.c (gnu_target): New variable.
8561 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8562 add_thread_silent, and add_thread calls.
8563 (gnu_nat_target::create_inferior): Pass gnu_target to
8564 add_thread_silent, thread_change_ptid call.
8565 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8566 call.
8567
8568 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8569
8570 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8571 (gnu_nat_target::find_memory_regions): Remove unused
8572 `old_address' variable.
8573
8574 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8575
8576 * gnu-nat.c: Include "gdbarch.h".
8577
8578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8579
8580 * reply_mig_hack.awk (Error return): Cast function through
8581 void *, to bypass compiler function call check.
8582
8583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8584
8585 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8586 $(srcdir)/reply_mig_hack.awk.
8587
8588 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8589
8590 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8591
8592 2020-05-30 Jonny Grant <jg@jguk.org>
8593
8594 * configure.ac (ACX_BUGURL): change bug URL to https.
8595
8596 2020-05-30 Pedro Alves <palves@redhat.com>
8597
8598 * cp-support.c (replace_typedefs_template): New.
8599 (replace_typedefs_qualified_name): Handle
8600 DEMANGLE_COMPONENT_TEMPLATE.
8601
8602 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8605 dwarf2/index-cache.h, dwarf2/index-write.c,
8606 dwarf2/index-write.h, dwarf2/line-header.c,
8607 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8608 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8609 variables and fields from `dwarf2_per_objfile` to just
8610 `per_objfile` throughout.
8611
8612 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8613
8614 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8615 <push_dwarf_reg_entry_value>: Add comment.
8616
8617 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8618 Keith Seitz <keiths@redhat.com>
8619
8620 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8621 instead of PyEval_ReleaseLock.
8622 (class gdbpy_gil): Move to earlier in file.
8623 (finalize_python): Set gdb_python_initialized.
8624 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8625 when not initialized.
8626
8627 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8630 <push_dwarf_reg_entry_value>: Remove assert. Override
8631 per_objfile with caller_per_objfile.
8632
8633 2020-05-28 Tom de Vries <tdevries@suse.de>
8634
8635 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8636 PR gold/15646 workaround to symbol kind "type".
8637
8638 2020-05-27 Tom Tromey <tromey@adacore.com>
8639
8640 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8641
8642 2020-05-27 Tom Tromey <tromey@adacore.com>
8643
8644 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8645 Use htab_find_with_hash.
8646 <add_abbrev>: Remove "abbrev_number" parameter.
8647 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8648 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8649 (hash_abbrev): Add comment.
8650 (abbrev_table::lookup_abbrev): Move to header file.
8651 (abbrev_table::read): Update.
8652
8653 2020-05-27 Tom Tromey <tromey@adacore.com>
8654
8655 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8656 method.
8657 <canonical_name>: New member.
8658 <raw_name>: Rename from "name".
8659 (partial_die_info): Initialize canonical_name.
8660 (scan_partial_symbols): Check raw_name.
8661 (partial_die_parent_scope, partial_die_full_name)
8662 (add_partial_symbol, add_partial_subprogram)
8663 (add_partial_enumeration, load_partial_dies): Use "name" method.
8664 (partial_die_info::name): New method.
8665 (partial_die_info::read, guess_partial_die_structure_name)
8666 (partial_die_info::fixup): Update.
8667
8668 2020-05-27 Tom Tromey <tromey@adacore.com>
8669
8670 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8671 <get_ref_die_offset>: Inline.
8672 <get_ref_die_offset_complaint>: New method.
8673 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8674 (attribute::get_ref_die_offset_complaint): Rename from
8675 get_ref_die_offset. Just issue complaint.
8676
8677 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8678
8679 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8680
8681 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8682
8683 * exec.c (exec_file_attach): Use errno value of first openp failure.
8684
8685 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8686
8687 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8688 Don't close thread handle.
8689
8690 2020-05-27 Tom Tromey <tom@tromey.com>
8691 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8694 shared_ptr.
8695 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8696 member.
8697 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8698 dwarf2_per_bfd_objfile_data_key>: New globals.
8699 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8700 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8701 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8702 shared.
8703 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8704 short-circuit when sharing.
8705 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8706 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8707
8708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8711 to...
8712 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8713 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8714
8715 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8718 build_name_components, find_name_components_bounds>:
8719 Add per_objfile parameter.
8720 (struct mapped_index) <symbol_name_at>: Likewise.
8721 (struct mapped_debug_names): Remove constructor.
8722 <dwarf2_per_objfile>: Remove field.
8723 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8724 (mapped_index_base::find_name_components_bounds,
8725 mapped_index_base::build_name_components,
8726 dw2_expand_symtabs_matching_symbol): Likewise.
8727 (class mock_mapped_index) <symbol_name_at>: Likewise.
8728 (check_match): Likewise.
8729 (check_find_bounds_finds): Likewise.
8730 (test_mapped_index_find_name_component_bounds): Update.
8731 (CHECK_MATCH): Update.
8732 (dw2_expand_symtabs_matching): Update.
8733 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8734 per_objfile parameter.
8735 <find_vec_in_debug_names>: Likewise.
8736 <m_per_objfile>: New field.
8737 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8738 parameter.
8739 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8740 (dw2_debug_names_iterator::next): Update.
8741 (dw2_debug_names_lookup_symbol): Update.
8742 (dw2_debug_names_expand_symtabs_for_function): Update.
8743 (dw2_debug_names_map_matching_symbols): Update.
8744 (dw2_debug_names_expand_symtabs_matching): Update.
8745 (dwarf2_read_debug_names): Update.
8746
8747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8750 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8751 move to dwarf2_per_objfile.
8752 <read_in_chain>: Remove.
8753 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8754 remove_all_cus, age_comp_units>: New methods.
8755 <m_dwarf2_cus>: New member.
8756 (struct dwarf2_per_cu_data) <cu>: Remove.
8757 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8758 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8759 moved to methods of dwarf2_per_objfile.
8760 (dwarf2_clear_marks): Remove.
8761 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8762 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8763 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8764 (dwarf2_per_objfile::remove_all_cus): New.
8765 (class free_cached_comp_units) <~free_cached_comp_units>:
8766 Update.
8767 (load_cu): Update.
8768 (dw2_do_instantiate_symtab): Adjust.
8769 (fill_in_sig_entry_from_dwo_entry): Adjust.
8770 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8771 (cutu_reader::cutu_reader): Likewise.
8772 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8773 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8774 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8775 and dwarf2_per_objfile::age_comp_units.
8776 (load_partial_comp_unit): Update.
8777 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8778 (process_queue): Likewise.
8779 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8780 backlink.
8781 (dwarf2_read_addr_index): Likewise.
8782 (follow_die_offset): Likewise.
8783 (dwarf2_fetch_die_loc_sect_off): Likewise.
8784 (dwarf2_fetch_constant_bytes): Likewise.
8785 (dwarf2_fetch_die_type_sect_off): Likewise.
8786 (follow_die_sig_1): Likewise.
8787 (load_full_type_unit): Likewise.
8788 (read_signatured_type): Likewise.
8789 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8790 (dwarf2_cu::~dwarf2_cu): Remove.
8791 (dwarf2_per_objfile::get_cu): New.
8792 (dwarf2_per_objfile::set_cu): New.
8793 (age_cached_comp_units): Rename to...
8794 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8795 to std::unordered_map.
8796 (free_one_cached_comp_unit): Rename to...
8797 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8798 to std::unordered_map.
8799 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8800 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8801 a dwarf2_per_objfile in data.
8802 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8803 (dwarf2_clear_marks): Remove.
8804
8805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8808 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8809 (init_tu_and_read_dwo_dies): Likewise.
8810 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8811 (cutu_reader::cutu_reader): Likewise.
8812 (load_partial_comp_unit): Likewise.
8813 (process_psymtab_comp_unit): Update.
8814 (build_type_psymtabs_1): Update.
8815 (process_skeletonless_type_unit): Update.
8816 (load_full_comp_unit): Update.
8817 (find_partial_die): Update.
8818 (dwarf2_read_addr_index): Update.
8819 (read_signatured_type): Update.
8820
8821 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8822
8823 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8824 m_header_read_in>: New fields.
8825 <get_header>: New method.
8826 * dwarf2/read.c (per_cu_header_read_in): Remove.
8827 (dwarf2_per_cu_data::get_header): New.
8828 (dwarf2_per_cu_data::addr_size): Update.
8829 (dwarf2_per_cu_data::offset_size): Update.
8830 (dwarf2_per_cu_data::ref_addr_size): Update.
8831
8832 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8835 (dw2_do_instantiate_symtab): Update.
8836 (queue_and_load_all_dwo_tus): Change parameter from
8837 dwarf2_per_cu_data to dwarf2_cu.
8838 (dwarf2_fetch_die_loc_sect_off): Update.
8839 (dwarf2_fetch_constant_bytes): Update.
8840 (dwarf2_fetch_die_type_sect_off): Update.
8841
8842 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8843
8844 * dwarf2/read.c (process_full_comp_unit,
8845 process_full_type_unit): Remove per_cu, per_objfile paramters.
8846 Add dwarf2_cu parameter.
8847 (process_queue): Update.
8848
8849 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8850
8851 * dwarf2/read.c (create_cu_from_index_list): Replace
8852 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8853 (create_cus_from_index_list): Likewise.
8854 (create_cus_from_index): Likewise.
8855 (create_signatured_type_table_from_index): Likewise.
8856 (create_cus_from_debug_names_list): Likewise.
8857 (create_cus_from_debug_names): Likewise.
8858 (dwarf2_read_gdb_index): Update.
8859 (dwarf2_read_debug_names): Update.
8860
8861 2020-05-27 Tom Tromey <tom@tromey.com>
8862 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.h (struct dwarf2_per_objfile)
8865 <get_type_for_signatured_type, set_type_for_signatured_type>:
8866 New methods.
8867 <m_type_map>: New member.
8868 (struct signatured_type) <type>: Remove.
8869 * dwarf2/read.c
8870 (dwarf2_per_objfile::get_type_for_signatured_type,
8871 dwarf2_per_objfile::set_type_for_signatured_type): New.
8872 (get_signatured_type): Use new methods.
8873
8874 2020-05-27 Tom Tromey <tom@tromey.com>
8875 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8878 (struct dwarf2_per_objfile) <type_units>: New member.
8879 <get_type_unit_group_unshareable>: New method.
8880 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8881 num_symtabs, symtabs>: Remove; move to
8882 type_unit_group_unshareable.
8883 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8884 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8885 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8886
8887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * dwarf2/read.h (struct dwarf2_per_cu_data):
8890 <dwarf2_per_objfile>: Remove.
8891 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8892 dwarf2_per_objfile.
8893 (create_signatured_type_table_from_index): Likewise.
8894 (create_signatured_type_table_from_debug_names): Likewise.
8895 (create_debug_type_hash_table): Likewise.
8896 (fill_in_sig_entry_from_dwo_entry): Likewise.
8897 (create_type_unit_group): Likewise.
8898 (read_comp_units_from_section): Likewise.
8899 (create_cus_hash_table): Likewise.
8900
8901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8904 dwarf2_per_cu_data::dwarf2_per_objfile.
8905 (compute_compunit_symtab_includes): Likewise.
8906 (dwarf2_cu::start_symtab): Likewise.
8907
8908 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8909
8910 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8911 parameter.
8912 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8913 (read_namespace_alias): Update.
8914 (lookup_die_type): Update.
8915 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8916 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8917 Update.
8918 (disassemble_dwarf_expression): Update.
8919
8920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.h (struct dwarf2_queue_item): Add
8923 dwarf2_per_objfile parameter, assign new parameter.
8924 <per_objfile>: New field.
8925 * dwarf2/read.c (free_one_cached_comp_unit): Add
8926 dwarf2_per_objfile parameter.
8927 (queue_comp_unit): Likewise.
8928 (dw2_do_instantiate_symtab): Update.
8929 (process_psymtab_comp_unit): Update.
8930 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8931 (process_imported_unit_die): Update.
8932 (queue_and_load_dwo_tu): Update.
8933 (follow_die_offset): Update.
8934 (follow_die_sig_1): Update.
8935
8936 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8939 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8940 (read_call_site_scope): Assign per_objfile.
8941 (dwarf2_per_cu_data::objfile): Remove.
8942 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8943 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8944 dwarf2_per_objfile parameter.
8945 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8946 dwarf2_per_objfile parameter.
8947 (dwarf_expr_reg_to_entry_parameter): Add output
8948 dwarf2_per_objfile parameter.
8949 (locexpr_get_frame_base): Update.
8950 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8951 <push_dwarf_reg_entry_value>: Update.
8952 <call_site_to_target_addr>: Update.
8953 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8954 parameter.
8955 (value_of_dwarf_reg_entry): Update.
8956 (rw_pieced_value): Update.
8957 (indirect_synthetic_pointer): Update.
8958 (dwarf2_evaluate_property): Update.
8959 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8960 parameter.
8961 (locexpr_read_variable): Update.
8962 (locexpr_get_symbol_read_needs): Update.
8963 (loclist_read_variable): Update.
8964
8965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8966
8967 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8968 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8969 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8970 parameter.
8971 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8973 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8974 parameter.
8975 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8976 sect_variable_value): Add dwarf2_per_objfile parameter.
8977 (class dwarf_evaluate_loc_desc) <dwarf_call,
8978 dwarf_variable_value>: Update.
8979 (fetch_const_value_from_synthetic_pointer): Add
8980 dwarf2_per_objfile parameter.
8981 (fetch_const_value_from_synthetic_pointer): Update.
8982 (coerced_pieced_ref): Update.
8983 (class symbol_needs_eval_context) <dwarf_call,
8984 dwarf_variable_value>: Update.
8985 (dwarf2_compile_expr_to_ax): Update.
8986
8987 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8988
8989 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8990 parameter.
8991 (dwarf2_evaluate_loc_desc_full): Update.
8992
8993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8996 parameter.
8997 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8998 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8999 dwarf2_per_objfile parameter.
9000 (decode_debug_loc_dwo_addresses): Likewise.
9001 (dwarf2_find_location_expression): Update.
9002 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9003 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9004 parameter.
9005 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9006 parameter.
9007 (locexpr_describe_location_1): Likewise.
9008 (locexpr_describe_location): Update.
9009
9010 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9011
9012 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9013 Remove.
9014 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9015 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9016 (dwarf2_compile_property_to_c): Update.
9017 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9018 use text offset from objfile.
9019 (locexpr_tracepoint_var_ref): Update.
9020 (locexpr_generate_c_location): Update.
9021 (loclist_describe_location): Update.
9022 (loclist_tracepoint_var_ref): Update.
9023 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9024 dwarf2_per_objfile parameter.
9025 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9026 use text offset from objfile.
9027 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9028
9029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * dwarf2/expr.h (struct dwarf_expr_context)
9032 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9033 <offset>: Remove.
9034 <per_objfile>: New member.
9035 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9036 dwarf2_per_objfile parameter. Don't set offset, set
9037 per_objfile.
9038 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9039 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9040 a dwarf2_per_objfile object instead of an offset.
9041 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9042 constructor.
9043 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9044 to dwarf2_expr_executor constructor. Don't set offset.
9045 (dwarf2_fetch_cfa_info): Update.
9046 (struct dwarf2_frame_cache) <text_offset>: Remove.
9047 <per_objfile>: New field.
9048 (dwarf2_frame_cache): Update.
9049 (dwarf2_frame_prev_register): Update.
9050 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9051 <dwarf_evaluate_loc_desc>: Add constructor.
9052 (dwarf2_evaluate_loc_desc_full): Update.
9053 (dwarf2_locexpr_baton_eval): Update.
9054 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9055 Add constructor.
9056 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9057
9058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9061 addr_sized_int_type>: Move to dwarf2_cu.
9062 <int_type>: Move to dwarf2_per_objfile.
9063 (struct dwarf2_per_objfile) <int_type>: Move here.
9064 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9065 addr_sized_int_type>: Move here.
9066 (read_func_scope): Update.
9067 (read_array_type): Update.
9068 (read_tag_string_type): Update.
9069 (attr_to_dynamic_prop): Update.
9070 (dwarf2_per_cu_data::int_type): Rename to...
9071 (dwarf2_per_objfile::int_type): ... this.
9072 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9073 (dwarf2_cu::addr_sized_int_type): ... this.
9074 (read_subrange_type): Update.
9075 (dwarf2_per_cu_data::addr_type): Rename to...
9076 (dwarf2_cu::addr_type): ... this.
9077 (set_die_type): Update.
9078
9079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9080
9081 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9082 data through per_cu->cu.
9083
9084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9087 dwarf2_per_cu_data parameter fo dwarf2_cu.
9088 (lookup_dwo_type_unit): Likewise.
9089 (read_cutu_die_from_dwo): Likewise.
9090 (lookup_dwo_unit): Likewise.
9091 (open_and_init_dwo_file): Likewise.
9092 (lookup_dwo_cutu): Likewise.
9093 (lookup_dwo_comp_unit): Likewise.
9094 (lookup_dwo_type_unit): Likewise.
9095 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9096 (cutu_reader::cutu_reader): Update.
9097
9098 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9101 parameter.
9102 (process_full_type_unit): Likewise.
9103 (process_queue): Update.
9104
9105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * dwarf2/read.c (recursively_compute_inclusions): Add
9108 dwarf2_per_objfile parameter.
9109 (compute_compunit_symtab_includes): Likewise.
9110 (process_cu_includes): Update.
9111
9112 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9115 parameter.
9116 (create_type_unit_group): Update.
9117 (process_psymtab_comp_unit_reader): Update.
9118 (build_type_psymtabs_reader): Update.
9119
9120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9123 object through m_this_cu->cu.
9124
9125 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9126
9127 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9128 the info parameter.
9129 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9130
9131 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9132
9133 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9134 per_objfile parameter.
9135 (load_full_type_unit): Add per_objfile parameter.
9136 (read_signatured_type): Likewise.
9137 (load_full_comp_unit): Likewise.
9138 (load_cu): Likewise.
9139 (dw2_do_instantiate_symtab): Likewise.
9140 (dw2_get_file_names): Likewise.
9141 (dw2_map_symtabs_matching_filename): Update.
9142 (dw_expand_symtabs_matching_file_matcher): Update.
9143 (dw2_map_symbol_filenames): Update.
9144 (process_psymtab_comp_unit): Add per_objfile parameter.
9145 (build_type_psymtabs_1): Update.
9146 (process_skeletonless_type_unit): Update.
9147 (dwarf2_build_psymtabs_hard): Update.
9148 (load_partial_comp_unit): Add per_objfile parameter.
9149 (scan_partial_symbols): Update.
9150 (load_full_comp_unit): Add per_objfile parameter.
9151 (process_imported_unit_die): Update.
9152 (create_cus_hash_table): Update.
9153 (find_partial_die): Update.
9154 (dwarf2_read_addr_index): Update.
9155 (follow_die_offset): Update.
9156 (dwarf2_fetch_die_loc_sect_off): Update.
9157 (dwarf2_fetch_constant_bytes): Update.
9158 (dwarf2_fetch_die_type_sect_off): Update.
9159 (follow_die_sig_1): Update.
9160 (load_full_type_unit): Add per_objfile parameter.
9161 (read_signatured_type): Likewise.
9162
9163 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9166 of objfile_name.
9167
9168 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9169
9170 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9171 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9172 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9173 field.
9174 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9175 (create_cus_from_index): Update.
9176 (dwarf2_read_gdb_index): Update.
9177 (create_cus_from_debug_names): Update.
9178 (dwarf2_read_debug_names): Update.
9179 (get_abbrev_section_for_cu): Update.
9180 (create_all_comp_units): Update.
9181 (read_attribute_value): Update.
9182 (get_debug_line_section): Update.
9183 * dwarf2/index-cache.c (index_cache::store): Update.
9184 * dwarf2/index-write.c (save_gdb_index_command): Update.
9185 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9186
9187 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9188
9189 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9190 member.
9191 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9192 dwarf2_per_cu_data::per_bfd.
9193 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9194 (create_type_unit_group): Likewise.
9195 (queue_comp_unit): Remove reference to
9196 per_cu->dwarf2_per_objfile.
9197 (maybe_queue_comp_unit): Likewise.
9198 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9199 (create_cus_hash_table): Assign new field.
9200
9201 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * dwarf2/read.c: Replace
9204 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9205 dwarf2_cu->per_objfile throughout.
9206
9207 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9210 parameter, don't use per_cu->dwarf2_per_objfile.
9211 (dw2_instantiate_symtab): Likewise.
9212 (dw2_find_last_source_symtab): Update.
9213 (dw2_map_expand_apply): Update.
9214 (dw2_lookup_symbol): Update.
9215 (dw2_expand_symtabs_for_function): Update.
9216 (dw2_expand_all_symtabs): Update.
9217 (dw2_expand_symtabs_with_fullname): Update.
9218 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9219 don't use per_cu->dwarf2_per_objfile.
9220 (dw2_expand_marked_cus): Update.
9221 (dw2_find_pc_sect_compunit_symtab): Update.
9222 (dw2_debug_names_lookup_symbol): Update.
9223 (dw2_debug_names_expand_symtabs_for_function): Update.
9224 (dw2_debug_names_map_matching_symbols): Update.
9225 (dwarf2_psymtab::expand_psymtab): Update.
9226
9227 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9230 <per_objfile>: New member.
9231 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9232 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9233 call to dwarf2_cu.
9234 (cutu_reader::cutu_reader): Update.
9235 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9236
9237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9240 struct dwarf2_per_objfile.
9241 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9242 dwarf2_per_bfd.
9243 * dwarf2/read.c (set_die_type): Update.
9244 (get_die_type_at_offset): Update.
9245
9246 2020-05-27 Tom Tromey <tom@tromey.com>
9247 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9250 method.
9251 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9252 get_symtab, set_symtab>: New methods.
9253 <m_symtabs>: New field.
9254 (struct dwarf2_psymtab): Derive from partial_symtab.
9255 <readin_p, get_compunit_symtab>: Declare methods.
9256 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9257 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9258 New methods.
9259 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9260 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9261 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9262 (dw2_symtab_iter_next, dw2_print_stats)
9263 (dw2_expand_symtabs_with_fullname)
9264 (dw2_expand_symtabs_matching_one)
9265 (dw_expand_symtabs_matching_file_matcher)
9266 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9267 (dw2_debug_names_iterator::next)
9268 (dw2_debug_names_map_matching_symbols)
9269 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9270 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9271 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9272 New methods.
9273 (get_compunit_symtab, process_full_comp_unit)
9274 (process_full_type_unit): Update.
9275 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9276
9277 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9278
9279 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9280 then introduce a new dwarf2_per_objfile type.
9281 <read_line_string>: Move to the new dwarf2_per_objfile type.
9282 <objfile>: Likewise.
9283 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9284 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9285 dwarf2_per_objfile->per_bfd.
9286 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9287 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9288 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9289 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9290 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9291 (dwarf2_per_objfile::locate_sections): Rename to...
9292 (dwarf2_per_bfd::locate_sections): ... this.
9293 (dwarf2_per_objfile::get_cutu): Rename to...
9294 (dwarf2_per_bfd::get_cutu): ... this.
9295 (dwarf2_per_objfile::get_cu): Rename to...
9296 (dwarf2_per_bfd::get_cu): ... this.
9297 (dwarf2_per_objfile::get_tu): Rename to...
9298 (dwarf2_per_bfd::get_tu): ... this.
9299 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9300 (dwarf2_per_bfd::allocate_per_cu): ... this.
9301 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9302 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9303 (get_gdb_index_contents_ftype): Change parameter from
9304 dwarf2_per_objfile to dwarf2_per_bfd.
9305 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9306 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9307
9308 2020-05-27 Tom Tromey <tom@tromey.com>
9309 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9312 (allocate_piece_closure): Set "per_objfile" member.
9313 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9314 (locexpr_describe_location, loclist_describe_location): Use new
9315 member.
9316 * dwarf2/read.c (read_call_site_scope)
9317 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9318 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9319 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9320 handle_data_member_location): Set per_objfile member.
9321 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9322 member.
9323 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9324
9325 2020-05-27 Tom Tromey <tom@tromey.com>
9326
9327 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9328 allocate_signatured_type>: Declare new methods.
9329 <m_num_psymtabs>: New member.
9330 (struct dwarf2_per_cu_data) <index>: New member.
9331 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9332 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9333 (create_cu_from_index_list): Use allocate_per_cu.
9334 (create_signatured_type_table_from_index)
9335 (create_signatured_type_table_from_debug_names)
9336 (create_debug_type_hash_table, add_type_unit)
9337 (read_comp_units_from_section): Use allocate_signatured_type.
9338
9339 2020-05-27 Tom Tromey <tom@tromey.com>
9340
9341 * psymtab.c (partial_map_expand_apply)
9342 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9343 (psym_lookup_global_symbol_language)
9344 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9345 (psym_print_stats, psym_expand_symtabs_for_function)
9346 (psym_map_symbol_filenames, psym_map_matching_symbols)
9347 (psym_expand_symtabs_matching)
9348 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9349 (maintenance_check_psymtabs): Update.
9350 * psympriv.h (struct partial_symtab) <readin_p,
9351 get_compunit_symtab>: Add objfile parameter.
9352 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9353 Likewise.
9354 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9355 get_compunit_symtab>: Likewise.
9356 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9357
9358 2020-05-27 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9361 member.
9362 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9363 (create_cu_from_index_list)
9364 (create_signatured_type_table_from_index)
9365 (create_signatured_type_table_from_debug_names)
9366 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9367 (dwarf2_create_include_psymtab)
9368 (create_debug_type_hash_table, add_type_unit)
9369 (create_type_unit_group, read_comp_units_from_section)
9370 (dwarf2_compute_name, create_cus_hash_table)
9371 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9372 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9373 obstack.
9374 (dw2_get_real_path): Likewise. Change argument to
9375 dwarf2_per_objfile.
9376
9377 2020-05-27 Luis Machado <luis.machado@linaro.org>
9378
9379 PR tdep/26000
9380 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9381 for ldrd (immediate).
9382
9383 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9384
9385 * command.h: Add comment giving the name of class_tui.
9386 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9387 create the fake command for the help for class_tui.
9388
9389 2020-05-26 Tom Tromey <tromey@adacore.com>
9390
9391 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9392 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9393 (val_atr): New function.
9394 (value_val_atr): Use it.
9395 * ada-valprint.c (print_optional_low_bound): Change low bound
9396 handling for enums.
9397 (val_print_packed_array_elements): Don't call discrete_position.
9398 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9399 discrete_position for enum types.
9400 * language.c (default_print_array_index): Change type.
9401 * language.h (struct language_defn) <la_print_array_index>: Add
9402 index_type parameter, change type of index_value.
9403 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9404 (default_print_array_index): Update.
9405 * valprint.c (maybe_print_array_index): Don't call
9406 value_from_longest. Update.
9407 (value_print_array_elements): Don't call discrete_position.
9408
9409 2020-05-26 Tom Tromey <tromey@adacore.com>
9410
9411 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9412 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9413
9414 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9415
9416 PR gdb/13519
9417 * avr-tdep.c (avr_integer_to_address): Return data or code
9418 address accordingly to the second 'type' argument of the
9419 function.
9420
9421 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9422
9423 * infcmd.c, inferior.h: (construct_inferior_arguments):
9424 Moved function from here to gdbsupport/common-inferior.{h,cc}
9425
9426 2020-05-23 Tom Tromey <tom@tromey.com>
9427
9428 Revert commit eca1f90c:
9429 * NEWS: Remove entry for completion styling.
9430 * completer.c (_rl_completion_prefix_display_length): Move
9431 declaration later.
9432 (gdb_fnprint): Revert.
9433 (gdb_display_match_list_1): Likewise.
9434 * cli/cli-style.c (completion_prefix_style)
9435 (completion_difference_style, completion_suffix_style): Remove.
9436 (_initialize_cli_style): Revert.
9437 * cli/cli-style.h (completion_prefix_style)
9438 (completion_difference_style, completion_suffix_style): Don't
9439 declare.
9440
9441 2020-05-24 Pedro Alves <palves@redhat.com>
9442
9443 * symtab.c (completion_list_add_name): Return boolean indication
9444 of whether the symbol matched.
9445 (completion_list_add_symbol): Don't try to remove C++ aliases if
9446 the symbol didn't match in the first place.
9447 * symtab.h (completion_list_add_name): Return bool.
9448
9449 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9450
9451 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9452 type::field.
9453
9454 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9455
9456 GDB 9.2 released.
9457
9458 2020-05-23 Tom Tromey <tom@tromey.com>
9459
9460 * NEWS: Add entry for completion styling.
9461 * completer.c (_rl_completion_prefix_display_length): Move
9462 declaration earlier.
9463 (gdb_fnprint): Use completion_style.
9464 (gdb_display_match_list_1): Likewise.
9465 * cli/cli-style.c (completion_prefix_style)
9466 (completion_difference_style, completion_suffix_style): New
9467 globals.
9468 (_initialize_cli_style): Register new globals.
9469 * cli/cli-style.h (completion_prefix_style)
9470 (completion_difference_style, completion_suffix_style): Declare.
9471
9472 2020-05-23 Pedro Alves <palves@redhat.com>
9473
9474 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9475 (parse_escape): Use ISDIGIT instead of isdigit.
9476 (puts_debug): Use gdb_isprint instead of isprint.
9477 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9478 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9479 ISSPACE instead of isspace.
9480 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9481 instead of isspace.
9482 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9483 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9484 instead of isxdigit and ISDIGIT instead of isdigit.
9485
9486 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * gdbtypes.h (struct type) <field>: New method.
9489 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9490 or type::field.
9491
9492 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9495 (TYPE_FIELDS): Use type::fields. Change all call sites that
9496 modify the propery to use type::set_fields instead.
9497
9498 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9501 type::num_fields instead.
9502
9503 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9506 methods.
9507 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9508 that modify the number of fields to use type::set_num_fields
9509 instead.
9510
9511 2020-05-22 Tom Tromey <tromey@adacore.com>
9512
9513 * compile/compile-object-load.h (munmap_list_free): Don't
9514 declare.
9515
9516 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9517
9518 * annotate.c (annotate_source_line): Update return type, add call
9519 to update current symtab and line.
9520 * annotate.h (annotate_source_line): Update return type, and
9521 extend header comment.
9522 * source.c (info_line_command): Check annotation_level before
9523 calling annotate_source_line.
9524 * stack.c (print_frame_info): If calling annotate_source_line
9525 returns true, then don't print any other source line information.
9526
9527 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9530
9531 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9532
9533 * coffread.c (patch_type): Remove NULL check before xfree.
9534 * corefile.c (set_gnutarget): Likewise.
9535 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9536 * exec.c (build_section_table): Likewise.
9537 * remote.c (remote_target::pass_signals): Likewise.
9538 * utils.c (n_spaces): Likewise.
9539 * cli/cli-script.c (document_command): Likewise.
9540 * i386-windows-tdep.c (core_process_module_section): Likewise.
9541 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9542
9543 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * symfile.c (reread_symbols): Clear objfile's section_offsets
9546 vector and section indices, re-compute them by calling
9547 sym_offsets.
9548
9549 2020-05-20 Tom Tromey <tromey@adacore.com>
9550
9551 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9552 (desc_one_bound, desc_index_type): Compute field name.
9553
9554 2020-05-20 Tom de Vries <tdevries@suse.de>
9555
9556 PR symtab/25833
9557 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9558
9559 2020-05-20 Alan Modra <amodra@gmail.com>
9560
9561 PR 25993
9562 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9563 bfd_set_filename.
9564 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9565 passed to bfd_set_filename.
9566 * symfile-mem.c (add_vsyscall_page): Likewise for string
9567 passed to symbol_file_add_from_memory.
9568 (symbol_file_add_from_memory): Make name param a const char* and
9569 don't strdup.
9570
9571 2020-05-20 Alan Modra <amodra@gmail.com>
9572
9573 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9574 rather than accessing bfd->filename directly.
9575 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9576 and use bfd_section_name.
9577 * dwarf2/frame.c (decode_frame_entry): Likewise.
9578 * exec.c (exec_set_section_address): Likewise.
9579 * solib-aix.c (solib_aix_bfd_open): Likewise.
9580 * stap-probe.c (get_stap_base_address): Likewise.
9581 * symfile.c (reread_symbols): Likewise.
9582
9583 2020-05-19 Tom Tromey <tromey@adacore.com>
9584
9585 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9586
9587 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9590
9591 2020-05-19 Pedro Alves <palves@redhat.com>
9592
9593 * NEWS (set exec-file-mismatch): Adjust entry.
9594 * exec.c: Include "build-id.h".
9595 (validate_exec_file): Try to match build IDs instead of filenames.
9596 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9597 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9598 and pass down 'warn_if_slow'.
9599 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9600 gdb_bfd_open_closure to pass it down.
9601 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9602
9603 2020-05-19 Pedro Alves <palves@redhat.com>
9604
9605 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9606 * target.c (target_fileio_open_1): Rename to target_fileio_open
9607 and make extern. Use bool.
9608 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9609 (target_fileio_read_alloc_1): Adjust.
9610 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9611 (target_fileio_open_warn_if_slow): Delete declaration.
9612
9613 2020-05-19 Pedro Alves <palves@redhat.com>
9614
9615 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9616 Adjust all callers.
9617
9618 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9619
9620 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9621 whether disp is negative.
9622
9623 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * symfile.h (struct symfile_segment_data)
9626 <~symfile_segment_data>: Remove.
9627 <segment_info>: Change to std::vector.
9628 * symfile.c (default_symfile_segments): Update.
9629 * elfread.c (elf_symfile_segments): Update.
9630
9631 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9632
9633 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9634 <segments>: New.
9635 <segment_bases, segment_sizes>: Remove.
9636 * symfile.c (default_symfile_segments): Update.
9637 * elfread.c (elf_symfile_segments): Update.
9638 * remote.c (remote_target::get_offsets): Update.
9639 * solib-target.c (solib_target_relocate_section_addresses):
9640 Update.
9641
9642 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * symfile.h (struct symfile_segment_data): Initialize fields.
9645 <~symfile_segment_data>: Add.
9646 (symfile_segment_data_up): New.
9647 (struct sym_fns) <sym_segments>: Return a
9648 symfile_segment_data_up.
9649 (default_symfile_segments): Return a symfile_segment_data_up.
9650 (free_symfile_segment_data): Remove.
9651 (get_symfile_segment_data): Return a symfile_segment_data_up.
9652 * symfile.c (default_symfile_segments): Likewise.
9653 (get_symfile_segment_data): Likewise.
9654 (free_symfile_segment_data): Remove.
9655 (symfile_find_segment_sections): Update.
9656 * elfread.c (elf_symfile_segments): Return a
9657 symfile_segment_data_up.
9658 * remote.c (remote_target::get_offsets): Update.
9659 * solib-target.c (solib_target_relocate_section_addresses):
9660 Update.
9661 * symfile-debug.c (debug_sym_segments): Return a
9662 symfile_segment_data_up.
9663
9664 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9665
9666 PR build/25981
9667 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9668 Hardcode register numbers.
9669
9670 PR build/25981
9671 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9672 procfs_find_LDT_entry): Remove.
9673 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9674 procfs_find_LDT_entry): Remove.
9675 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9676 Remove.
9677
9678 2020-05-17 Pedro Alves <palves@redhat.com>
9679 Andrew Burgess <andrew.burgess@embecosm.com>
9680 Keno Fischer <keno@juliacomputing.com>
9681
9682 PR gdb/25741
9683 * breakpoint.c (build_target_condition_list): Update comments.
9684 (build_target_command_list): Update comments and skip matching
9685 locations.
9686 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9687 a separate function. Simplify "set breakpoint auto-hw off"
9688 handling.
9689 (insert_breakpoints): Update comment.
9690 (tracepoint_locations_match): New parameter. For breakpoints,
9691 compare location types too, if the caller wants to.
9692 (handle_automatic_hardware_breakpoints): New functions.
9693 (bp_location_is_less_than): Also sort by location type and
9694 hardware breakpoint length.
9695 (update_global_location_list): Handle "set breakpoint auto-hw on"
9696 here.
9697 (update_breakpoint_locations): Ask breakpoint_locations_match to
9698 ignore location types.
9699
9700 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9703 type::name instead.
9704
9705 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * gdbtypes.h (struct type) <name, set_name>: New methods.
9708 (TYPE_CODE): Use type::name. Change all call sites used to set
9709 the name to use type::set_name instead.
9710
9711 2020-05-16 Tom Tromey <tom@tromey.com>
9712
9713 * top.c (quit_force): Update.
9714 * infrun.c (handle_no_resumed): Update.
9715 * top.h (all_uis): New function.
9716 (ALL_UIS): Remove.
9717
9718 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9721
9722 2020-05-16 Pedro Alves <palves@redhat.com>
9723
9724 * ia64-linux-nat.c
9725 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9726 Declare method.
9727 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9728
9729 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9732 (sparc64_adi_info): Likewise.
9733
9734 2020-05-15 Tom Tromey <tom@tromey.com>
9735
9736 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9737 block_objfile.
9738 (lookup_objfile_from_block): Remove.
9739 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9740 (lookup_global_symbol): Use block_objfile.
9741 * symtab.h (lookup_objfile_from_block): Don't declare.
9742 * printcmd.c (clear_dangling_display_expressions): Use
9743 block_objfile.
9744 * parse.c (operator_check_standard): Use block_objfile.
9745
9746 2020-05-15 Tom Tromey <tom@tromey.com>
9747
9748 * language.c (language_alloc_type_symbol): Set
9749 SYMBOL_SECTION.
9750 * symtab.c (initialize_objfile_symbol): Remove.
9751 (allocate_symbol): Remove.
9752 (allocate_template_symbol): Remove.
9753 * dwarf2/read.c (fixup_go_packaging): Use "new".
9754 (new_symbol): Use "new".
9755 (read_variable): Don't call initialize_objfile_symbol. Use
9756 "new".
9757 (read_func_scope): Use "new".
9758 * xcoffread.c (process_xcoff_symbol): Don't call
9759 initialize_objfile_symbol.
9760 (SYMBOL_DUP): Remove.
9761 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9762 "new".
9763 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9764 (allocate_template_symbol): Don't declare.
9765 (struct symbol): Add copy constructor. Change defaults.
9766 * jit.c (finalize_symtab): Use "new".
9767 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9768 Use "new".
9769 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9770 (common_block_end): Use "new".
9771 * mdebugread.c (parse_symbol): Use "new".
9772 (new_symbol): Likewise.
9773
9774 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9775
9776 * NEWS: Mention changes to help and apropos.
9777
9778 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9779
9780 * command.h (enum command_class): Improve comments, document
9781 that class_alias is for user-defined aliases, give the class
9782 name for each class, remove unused class_xdb.
9783 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9784 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9785 by a precise class.
9786 * infcmd.c (_initialize_infcmd): Likewise.
9787 * reverse.c (_initialize_reverse): Likewise.
9788 * stack.c (_initialize_stack): Likewise.
9789 * symfile.c (_initialize_symfile): Likewise.
9790 * tracepoint.c (_initialize_tracepoint): Likewise.
9791
9792 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9793
9794 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9795 when their aliased command is traversed.
9796 (help_cmd): Add fput_command_names_styled call to
9797 output command name and aliases when command has an alias.
9798
9799 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9800
9801 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9802 * cli/cli-decode.c (help_cmd_list): Declare as static,
9803 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9804 a command together with the command.
9805 (fput_command_name_styled, fput_command_names_styled): New functions.
9806 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9807 fput_command_name_styled.
9808 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9809 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9810
9811 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9812
9813 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9814 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9815 * command.h (cmd_show_list): Likewise.
9816 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9817 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9818
9819 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9820
9821 * unittests/command-def-selftests.c (traverse_command_structure):
9822 Verify all commands of a list have the same prefix command and
9823 that only the top cmdlist commands have a null prefix.
9824
9825 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9826
9827 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9828 as prefix, not one of its aliases.
9829 (set_cmd_prefix): Remove.
9830 (do_add_cmd): Centralize the setting of the prefix of a command, when
9831 command is defined after its full chain of prefix commands.
9832 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9833 (add_setshow_cmd_full): Likewise.
9834 (update_prefix_field_of_prefixed_commands): New function.
9835 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9836 update_prefix_field_of_prefixed_commands.
9837 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9838 addresses of remote_set_cmdlist and remote_show_cmdlist given
9839 as argument, not the address of an argument.
9840 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9841 * gdb/remote.c (_initialize_remote): Likewise.
9842
9843 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9844
9845 * cli/cli-cmds.c (alias_command): Check for an existing alias
9846 using lookup_cmd_composition, as valid_command_p is too strict
9847 and forbids aliases that are the prefix of an existing alias
9848 or command.
9849 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9850 command is properly recognised as a valid command.
9851
9852 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9853
9854 * unittests/help-doc-selftests.c: Rename to
9855 unittests/command-def-selftests.c
9856 * unittests/command-def-selftests.c (help_doc_tests): Update some
9857 comments.
9858 (command_structure_tests, traverse_command_structure): New namespace
9859 and function.
9860 (command_structure_invariants_tests): New function.
9861 (_initialize_command_def_selftests) Renamed from
9862 _initialize_help_doc_selftests, register command_structure_invariants
9863 selftest.
9864
9865 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9866
9867 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9868 an alias of 'show'.
9869
9870 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9871
9872 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9873 ada_is_fixed_point_type. Update all callers.
9874 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9875 all callers.
9876 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9877 Update all callers.
9878 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9879 print_fixed_point_type. Update all callers.
9880 * ada-valprint.c (ada_value_print_num): Replace call to
9881 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9882
9883 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9884
9885 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9886 processors.
9887 (cpu_supports_bts): Add CV_AMD case.
9888
9889 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9890 Simon Marchi <simon.marchi@efficios.com>
9891
9892 * infrun.c (stop_all_threads): Collect multiple wait events at
9893 each pass.
9894
9895 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9898 type::code instead.
9899
9900 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * gdbtypes.h (struct type) <code, set_code>: New methods.
9903 (TYPE_CODE): Use type::code. Change all call sites used to set
9904 the code to use type::set_code instead.
9905
9906 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9907 Tom de Vries <tdevries@suse.de>
9908 Pedro Alves <palves@redhat.com>
9909
9910 PR threads/25478
9911 * infrun.c (stop_all_threads): Do NOT ignore
9912 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9913 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9914 received.
9915 (handle_no_resumed): Remove code handling a live inferior with no
9916 threads.
9917 * remote.c (has_single_non_exited_thread): New.
9918 (remote_target::update_thread_list): Do not delete a thread if is
9919 the last thread of the process.
9920 * thread.c (thread_select): Call delete_exited_threads instead of
9921 prune_threads.
9922
9923 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9924
9925 * infrun.c (stop_all_threads): Enable/disable thread events of all
9926 targets. Move a debug message denoting the end of the function
9927 into the SCOPED_EXIT block.
9928
9929 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9930
9931 * process-stratum-target.h: Include <set>.
9932 (all_non_exited_process_targets, switch_to_target_no_thread): New
9933 function declarations.
9934 * process-stratum-target.c (all_non_exited_process_targets)
9935 (switch_to_target_no_thread): New function implementations.
9936
9937 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9938
9939 * infrun.c (handle_inferior_event): Extract out a piece of code
9940 into...
9941 (mark_non_executing_threads): ...this new function.
9942
9943 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9944
9945 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9946 use.
9947
9948 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9949
9950 * regcache.c (regcache_read_pc_protected): New function
9951 implementation that returns 0 if the PC cannot read via
9952 'regcache_read_pc'.
9953 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9954 instead of 'regcache_read_pc'.
9955 (keep_going_pass_signal): Ditto.
9956
9957 2020-05-13 Tom Tromey <tromey@adacore.com>
9958
9959 * ada-lang.c (align_value): Remove.
9960 (ada_template_to_fixed_record_type_1): Use align_up.
9961
9962 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9963
9964 * async-event.c: Update the copyright year.
9965 * async-event.h: Update the copyright year.
9966
9967 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9968
9969 * objfiles.h (is_addr_in_objfile,
9970 shared_objfile_contains_address_p): Return bool.
9971 * objfile.c (is_addr_in_objfile,
9972 shared_objfile_contains_address_p): Return bool.
9973
9974 2020-05-11 Tom Tromey <tromey@adacore.com>
9975
9976 * cli/cli-cmds.c (info_command): Restore.
9977 (_initialize_cli_cmds): Use add_prefix_command for "info".
9978 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9979
9980 2020-05-11 Tom Tromey <tromey@adacore.com>
9981
9982 * ada-lang.c (ada_value_primitive_field): Now public.
9983 * ada-lang.h (ada_value_primitive_field): Declare.
9984 * ada-valprint.c (print_field_values): Use
9985 ada_value_primitive_field for wrapper fields.
9986
9987 2020-05-11 Tom de Vries <tdevries@suse.de>
9988
9989 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9990 MODULE_DOMAIN.
9991
9992 2020-05-11 Tom de Vries <tdevries@suse.de>
9993
9994 PR symtab/25941
9995 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9996 with length 0, if not gdb-produced.
9997 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9998
9999 2020-05-09 Tom de Vries <tdevries@suse.de>
10000
10001 PR gdb/25955
10002 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10003 calculation.
10004
10005 2020-05-09 Tom Tromey <tom@tromey.com>
10006
10007 * top.c (server_command): Now bool.
10008 * top.h (server_command): Now bool.
10009
10010 2020-05-08 Tom Tromey <tromey@adacore.com>
10011
10012 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10013 already being processed.
10014
10015 2020-05-08 Tom Tromey <tom@tromey.com>
10016
10017 * printcmd.c (struct display) <next>: Remove.
10018 <display>: New constructor.
10019 <exp_string>: Now a std::string.
10020 <enabled_p>: Now a bool.
10021 (display_number): Move definition earlier.
10022 (displays): Rename from display_chain. Now a std::vector.
10023 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10024 (display_command): Update.
10025 (do_one_display, disable_display)
10026 (enable_disable_display_command, do_enable_disable_display):
10027 Update.
10028 (free_display): Remove.
10029 (clear_displays): Rewrite.
10030 (delete_display): Update.
10031 (map_display_numbers): Use function_view. Remove "data"
10032 parameter. Update.
10033 (do_delete_display): Remove.
10034 (undisplay_command): Update.
10035 (do_one_display, do_displays, disable_display)
10036 (info_display_command): Update.
10037 (do_enable_disable_display): Remove.
10038 (enable_disable_display_command)
10039 (clear_dangling_display_expressions): Update.
10040
10041 2020-05-08 Tom Tromey <tom@tromey.com>
10042
10043 * symtab.c (set_symbol_cache_size)
10044 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10045 (maintenance_print_symbol_cache_statistics): Update.
10046 * symmisc.c (print_symbol_bcache_statistics)
10047 (print_objfile_statistics, maintenance_print_objfiles)
10048 (maintenance_info_symtabs, maintenance_check_symtabs)
10049 (maintenance_expand_symtabs, maintenance_info_line_tables):
10050 Update.
10051 * symfile-debug.c (set_debug_symfile): Update.
10052 * source.c (forget_cached_source_info): Update.
10053 * python/python.c (gdbpy_progspaces): Update.
10054 * psymtab.c (maintenance_info_psymtabs): Update.
10055 * probe.c (parse_probes): Update.
10056 * linespec.c (iterate_over_all_matching_symtabs)
10057 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10058 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10059 * exec.c (exec_target::close): Update.
10060 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10061 * breakpoint.c (print_one_breakpoint_location)
10062 (create_longjmp_master_breakpoint)
10063 (create_std_terminate_master_breakpoint): Update.
10064 * progspace.c (program_spaces): Now a std::vector.
10065 (maybe_new_address_space): Update.
10066 (add_program_space): Remove.
10067 (program_space::program_space): Update.
10068 (remove_program_space): Update.
10069 (number_of_program_spaces): Remove.
10070 (print_program_space, update_address_spaces): Update.
10071 * progspace.h (program_spaces): Change type.
10072 (ALL_PSPACES): Remove.
10073 (number_of_program_spaces): Don't declare.
10074 (struct program_space) <next>: Remove.
10075
10076 2020-05-08 Tom Tromey <tom@tromey.com>
10077
10078 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10079 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10080 (enable_break): Update.
10081 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10082 (frv_fdpic_find_canonical_descriptor): Update.
10083 (frv_fetch_objfile_link_map): Update.
10084 * progspace.c (program_space::free_all_objfiles): Update.
10085 (program_space::solibs): New method.
10086 * progspace.h (struct program_space) <solibs>: New method.
10087 * solist.h (master_so_list): Don't declare.
10088 (ALL_SO_LIBS): Remove.
10089 * solib.h (so_list_head): Remove.
10090 (update_solib_list): Update comment.
10091 * solib.c (master_so_list): Remove.
10092 (solib_used, update_solib_list, solib_add)
10093 (info_sharedlibrary_command, clear_solib)
10094 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10095
10096 2020-05-08 Tom Tromey <tom@tromey.com>
10097
10098 * extension.c (extension_languages): Now a std::array.
10099 (ALL_EXTENSION_LANGUAGES): Remove.
10100 (get_ext_lang_defn, get_ext_lang_of_file)
10101 (eval_ext_lang_from_control_command): Update.
10102 (finish_ext_lang_initialization)
10103 (auto_load_ext_lang_scripts_for_objfile)
10104 (ext_lang_type_printers::ext_lang_type_printers)
10105 (apply_ext_lang_type_printers)
10106 (ext_lang_type_printers::~ext_lang_type_printers)
10107 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10108 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10109 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10110 (get_matching_xmethod_workers, ext_lang_colorize)
10111 (ext_lang_before_prompt): Update.
10112 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10113
10114 2020-05-08 Tom Tromey <tom@tromey.com>
10115
10116 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10117 overload.
10118 <swap_string, m_string>: Remove.
10119 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10120 Update.
10121 * stabsread.c (define_symbol, read_type): Update.
10122 * linespec.c (find_linespec_symbols): Update.
10123 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10124 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10125 * dbxread.c (read_dbx_symtab): Update.
10126 * cp-support.h (cp_canonicalize_string_full)
10127 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10128 Return unique_xmalloc_ptr.
10129 * cp-support.c (inspect_type): Update.
10130 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10131 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10132 Likewise.
10133 * c-typeprint.c (print_name_maybe_canonical): Update.
10134 * break-catch-throw.c (check_status_exception_catchpoint):
10135 Update.
10136
10137 2020-05-08 Tom de Vries <tdevries@suse.de>
10138
10139 * infrun.c (follow_fork): Copy current_line and current_symtab to
10140 child thread.
10141
10142 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10143
10144 * async-event.c (struct async_signal_handler, struct
10145 async_event_handler): Reformat, remove typedef.
10146
10147 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10150 access thistype->main_type->dyn_prop_list directly.
10151
10152 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10155 (remove_dyn_prop): Remove. Update all users to use
10156 type::remove_dyn_prop.
10157 * gdbtypes.c (remove_dyn_prop): Rename to...
10158 (type::remove_dyn_prop): ... this.
10159
10160 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10161
10162 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10163 (add_dyn_prop): Remove. Update all users to use
10164 type::add_dyn_prop.
10165 * gdbtypes.c (add_dyn_prop): Rename to...
10166 (type::add_dyn_prop): ... this.
10167
10168 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10171 (get_dyn_prop): Remove. Update all users to use
10172 type::dyn_prop.
10173 * gdbtypes.c (get_dyn_prop): Rename to...
10174 (type::dyn_prop): ... this.
10175
10176 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10177
10178 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10179
10180 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10183 instruction, skip it if it's there.
10184
10185 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10188
10189 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10192 * gdbtypes.c (recursive_dump_type): Remove use of
10193 TYPE_INCOMPLETE.
10194
10195 2020-05-03 Tom Tromey <tom@tromey.com>
10196
10197 * breakpoint.c (catch_command, tcatch_command): Remove.
10198 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10199 add_show_prefix_cmd.
10200 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10201 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10202 Remove.
10203 (add_internal_problem_command): Use add_basic_prefix_cmd,
10204 add_show_prefix_cmd.
10205 * mips-tdep.c (set_mipsfpu_command): Remove.
10206 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10207 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10208 (_initialize_index_cache): Use add_basic_prefix_cmd.
10209 * memattr.c (dummy_cmd): Remove.
10210 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10211 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10212 (_initialize_tui_win): Use add_basic_prefix_cmd,
10213 add_show_prefix_cmd.
10214 * cli/cli-logging.c (set_logging_command): Remove.
10215 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10216 add_show_prefix_cmd.
10217 (show_logging_command): Remove.
10218 * target.c (target_command): Remove.
10219 (add_target): Use add_basic_prefix_cmd.
10220
10221 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10222
10223 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10224
10225 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10226
10227 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10228 info_command.
10229
10230 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10231
10232 * nbsd-nat.c (nbsd_enable_proc_events)
10233 (nbsd_nat_target::post_startup_inferior): Add.
10234 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10235 (nbsd_nat_target::update_thread_list): Rewrite.
10236 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10237 "PTRACE_LWP_CREATE".
10238 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10239
10240 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10241
10242 * stack.c (_initialize_stack): Remove duplicated creation
10243 of "frame" command and "f" alias.
10244
10245 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10246
10247 PR gdb/18706
10248 * gdbtypes.c (check_typedef): Calculate size of array of
10249 stubbed type.
10250
10251 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10252
10253 PR gdb/15559
10254 * i386-tdep.c (i386_push_dummy_call): Call
10255 i386_thiscall_push_dummy_call.
10256 (i386_thiscall_push_dummy_call): New function.
10257 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10258 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10259 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10260
10261 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * gdbarch.sh (do_read): Add shellcheck disable directive for
10264 warning SC2162.
10265
10266 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10267
10268 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10269 "referenced but not assigned" warning.
10270
10271 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * gdbarch.sh: Remove code that sets fallbackdefault.
10274
10275 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * gdbarch.sh: Use shell operators && and || instead of
10278 -a and -o.
10279
10280 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * gdbarch.sh: Use $(...) instead of `...`.
10283
10284 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * gdbarch.sh: Use double quotes around variables.
10287
10288 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * gdbarch.sh: Use %s with printf, instead of variables in the
10291 format string.
10292
10293 2020-04-29 Tom Tromey <tromey@adacore.com>
10294
10295 PR ada/25875:
10296 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10297 type fields here.
10298 (read_enumeration_type): Call
10299 update_enumeration_type_from_children later. Update comments.
10300 (process_enumeration_scope): Don't create type fields.
10301
10302 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10303
10304 * nbsd-tdep.c: Include "xml-syscall.h".
10305 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10306
10307 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10308
10309 * nbsd-nat.c: Include "sys/wait.h".
10310 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10311 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10312 (nbsd_nat_target::remove_exec_catchpoint)
10313 (nbsd_nat_target::set_syscall_catchpoint): Add.
10314 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10315 (nbsd_nat_target::insert_exec_catchpoint)
10316 (nbsd_nat_target::remove_exec_catchpoint)
10317 (nbsd_nat_target::set_syscall_catchpoint): Add.
10318 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10319 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10320 `nbsd_get_syscall_number'.
10321
10322 2020-04-29 Tom Tromey <tom@tromey.com>
10323
10324 * stack.c (print_block_frame_labels): Remove.
10325
10326 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10327
10328 PR gdb/17320
10329 * ada-valprint.c (val_print_packed_array_elements): Move array
10330 end bracket to new line.
10331 (ada_val_print_string): Remove extra spaces before first array
10332 element.
10333 * c-valprint.c (c_value_print_array): Likewise.
10334 * m2-valprint.c (m2_print_array_contents): Likewise.
10335 (m2_value_print_inner): Likewise.
10336 * p-valprint.c (pascal_value_print_inner): Likewise.
10337 * valprint.c (generic_val_print_array): Likewise.
10338 (value_print_array_elements): Move first array element and array
10339 end bracket to new line.
10340
10341 2020-04-29 Tom de Vries <tdevries@suse.de>
10342
10343 PR symtab/25889
10344 * linespec.c (find_method): Fix ix calculation.
10345
10346 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10347
10348 * syscalls/update-netbsd.sh: New file.
10349 * syscalls/netbsd.xml: Regenerate.
10350 * data-directory/Makefile.in: Register `netbsd.xml' in
10351 `SYSCALLS_FILES'.
10352
10353 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * syscalls/update-freebsd.sh: Add double quotes.
10356
10357 2020-04-28 Tom Tromey <tom@tromey.com>
10358
10359 * NEWS: Update.
10360 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10361 (cmdpy_init): Allow class_tui.
10362
10363 2020-04-28 Mark Williams <mark@myosotissp.com>
10364
10365 PR gdb/24480
10366 * dwarf2read.c: Add missing assingments to list_in_scope when
10367 start_symtab was already called.
10368
10369 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10370
10371 PR gdb/25881
10372 * dwarf2/read.c (offset_map_type): Use
10373 gdb:hash_enum<sect_offset> as hash function.
10374
10375 2020-04-28 Tom de Vries <tdevries@suse.de>
10376
10377 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10378 with DW_AT_signature.
10379
10380 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10381
10382 * configure.ac: Remove check for fs_base/gs_base in
10383 user_regs_struct.
10384 * configure: Re-generate.
10385 * config.in: Re-generate.
10386 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10387 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10388 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10389
10390 2020-04-27 Luis Machado <luis.machado@linaro.org>
10391
10392 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10393 problematic inline frame unwinding situation.
10394 * frame.c (frame_id_computed_p): New function.
10395 * frame.h (frame_id_computed_p): New prototype.
10396
10397 2020-04-26 Tom Tromey <tom@tromey.com>
10398
10399 * command.h (enum command_class) <class_pseudo>: Remove.
10400
10401 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10402
10403 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10404 and whitespace.
10405
10406 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10407
10408 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10409 `PT_GET_PROCESS_STATE' block.
10410
10411 2020-04-24 Tom Tromey <tom@tromey.com>
10412
10413 * symtab.h (symbol_get_demangled_name): Don't declare.
10414 * symtab.c (symbol_get_demangled_name): Remove.
10415 (general_symbol_info::natural_name)
10416 (general_symbol_info::demangled_name): Update.
10417
10418 2020-04-24 Tom Tromey <tom@tromey.com>
10419
10420 PR rust/25025:
10421 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10422
10423 2020-04-24 Tom Tromey <tom@tromey.com>
10424
10425 PR symtab/12707:
10426 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10427 exists.
10428 (new_symbol): Likewise.
10429 * compile/compile-object-load.c (get_out_value_type): Use
10430 symbol_matches_search_name.
10431
10432 2020-04-24 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/read.c (add_partial_symbol): Do not call
10435 compute_and_set_names.
10436
10437 2020-04-24 Tom Tromey <tom@tromey.com>
10438
10439 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10440 overload.
10441
10442 2020-04-24 Tom Tromey <tom@tromey.com>
10443
10444 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10445 (add_psymbol_to_list): New overload. Make old overload call new
10446 one.
10447 * psympriv.h (add_psymbol_to_list): New overload.
10448
10449 2020-04-24 Tom Tromey <tom@tromey.com>
10450
10451 * dwarf2/read.c (partial_die_info::read) <case
10452 DW_AT_linkage_name>: Use value_as_string.
10453 (dwarf2_string_attr): Use value_as_string.
10454 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10455 method.
10456 * dwarf2/attribute.c (attribute::value_as_string): New method.
10457
10458 2020-04-24 Tom Tromey <tom@tromey.com>
10459
10460 * symtab.c (general_symbol_info::natural_name)
10461 (general_symbol_info::demangled_name): Check for language_rust.
10462
10463 2020-04-24 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10466 (dwarf2_physname): ... from here.
10467 (partial_die_info::read): Add Rust "{" hack.
10468
10469 2020-04-24 Tom Tromey <tom@tromey.com>
10470
10471 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10472 method.
10473 (symbol_set_demangled_name): Don't declare.
10474 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10475 symbol_set_demangled_name.
10476 (general_symbol_info::set_language)
10477 (general_symbol_info::compute_and_set_names): Update.
10478 * minsyms.c (minimal_symbol_reader::install): Update.
10479 * dwarf2/read.c (new_symbol): Update.
10480
10481 2020-04-24 Tom Tromey <tromey@adacore.com>
10482
10483 PR python/23662:
10484 * python/py-type.c (convert_field): Handle
10485 FIELD_LOC_KIND_DWARF_BLOCK.
10486 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10487 (typy_get_dynamic): Nw function.
10488 (type_object_getset): Add "dynamic".
10489 * NEWS: Add entry.
10490
10491 2020-04-24 Tom Tromey <tromey@adacore.com>
10492
10493 * ada-typeprint.c (print_choices, print_variant_part)
10494 (print_record_field_types_dynamic): New functions.
10495 (print_record_field_types): Use print_record_field_types_dynamic.
10496
10497 2020-04-24 Tom Tromey <tromey@adacore.com>
10498
10499 * dwarf2/read.c (handle_data_member_location): New overload.
10500 (dwarf2_add_field): Use it.
10501 (decode_locdesc): Add "computed" parameter. Update comment.
10502 * gdbtypes.c (is_dynamic_type_internal): Also look for
10503 FIELD_LOC_KIND_DWARF_BLOCK.
10504 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10505 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10506 virtual base classes.
10507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10508 FIELD_LOC_KIND_DWARF_BLOCK.
10509
10510 2020-04-24 Tom Tromey <tromey@adacore.com>
10511
10512 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10513 * gdbtypes.c (is_dynamic_type_internal): Check
10514 TYPE_HAS_DYNAMIC_LENGTH.
10515 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10516 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10517 New macros.
10518 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10519 constant.
10520
10521 2020-04-24 Tom Tromey <tromey@adacore.com>
10522
10523 * dwarf2/read.c (struct variant_field): Rewrite.
10524 (struct variant_part_builder): New.
10525 (struct nextfield): Remove "variant" field. Add "offset".
10526 (struct field_info): Add "current_variant_part" and
10527 "variant_parts".
10528 (alloc_discriminant_info): Remove.
10529 (alloc_rust_variant): New function.
10530 (quirk_rust_enum): Update.
10531 (dwarf2_add_field): Set "offset" member. Don't handle
10532 DW_TAG_variant_part.
10533 (offset_map_type): New typedef.
10534 (convert_variant_range, create_one_variant)
10535 (create_one_variant_part, create_variant_parts)
10536 (add_variant_property): New functions.
10537 (dwarf2_attach_fields_to_type): Call add_variant_property.
10538 (read_structure_type): Don't handle DW_TAG_variant_part.
10539 (handle_variant_part, handle_variant): New functions.
10540 (handle_struct_member_die): Use them.
10541 (process_structure_scope): Don't handle variant parts.
10542 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10543 (struct discriminant_info): Remove.
10544 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10545 (struct main_type) <flag_discriminated_union>: Remove.
10546 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10547 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10548 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10549 Update.
10550 * valops.c (value_union_variant): Remove.
10551 * value.h (value_union_variant): Don't declare.
10552
10553 2020-04-24 Tom Tromey <tromey@adacore.com>
10554
10555 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10556 (ada_value_primitive_packed_val): Update.
10557 * ada-valprint.c (ada_value_print_1): Update.
10558 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10559 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10560 just an address. Use evaluate_for_locexpr_baton.
10561 (dwarf2_evaluate_property): Update.
10562 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10563 array_view.
10564 * findvar.c (default_read_var_value): Update.
10565 * gdbtypes.c (compute_variant_fields_inner)
10566 (resolve_dynamic_type_internal): Update.
10567 (resolve_dynamic_type): Change type of valaddr parameter.
10568 * gdbtypes.h (resolve_dynamic_type): Update.
10569 * valarith.c (value_subscripted_rvalue): Update.
10570 * value.c (value_from_contents_and_address): Update.
10571
10572 2020-04-24 Tom Tromey <tromey@adacore.com>
10573
10574 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10575 "push_initial_value" parameter.
10576 (dwarf2_evaluate_property): Likewise.
10577 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10578
10579 2020-04-24 Tom Tromey <tromey@adacore.com>
10580
10581 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10582 (variant::matches, compute_variant_fields_recurse)
10583 (compute_variant_fields_inner, compute_variant_fields): New
10584 functions.
10585 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10586 Use resolved_type after type is made.
10587 (operator==): Add new cases.
10588 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10589 (struct discriminant_range, struct variant, struct variant_part):
10590 New.
10591 (union dynamic_prop_data) <variant_parts, original_type>: New
10592 members.
10593 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10594 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10595 constants.
10596 * value.c (unpack_bits_as_long): Now public.
10597 * value.h (unpack_bits_as_long): Declare.
10598
10599 2020-04-24 Tom Tromey <tromey@adacore.com>
10600
10601 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10602 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10603
10604 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10605
10606 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10607
10608 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10609
10610 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10611 (remove_fork_catchpoint, post_startup_inferior)
10612 (post_attach): Move...
10613 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10614 (remove_fork_catchpoint, post_startup_inferior)
10615 (post_attach): ...here.
10616 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10617 (remove_fork_catchpoint, post_startup_inferior)
10618 (post_attach): Move...
10619 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10620 (remove_fork_catchpoint, post_startup_inferior)
10621 (post_attach): ...here.
10622
10623 2020-04-24 Tom Tromey <tromey@adacore.com>
10624
10625 * nat/windows-nat.h (struct windows_thread_info)
10626 <pc_adjusted>: New member.
10627 * windows-nat.c (windows_fetch_one_register): Check
10628 pc_adjusted.
10629 (windows_nat_target::get_windows_debug_event)
10630 (windows_nat_target::wait): Set pc_adjusted.
10631
10632 2020-04-24 Tom de Vries <tdevries@suse.de>
10633
10634 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10635 Run gdb-add-index inside temp dir.
10636
10637 2020-04-23 Tom Tromey <tromey@adacore.com>
10638
10639 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10640 in loop.
10641
10642 2020-04-23 Luis Machado <luis.machado@linaro.org>
10643
10644 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10645 get_frame_register instead of gdbarch_unwind_pc.
10646
10647 2020-04-23 Tom de Vries <tdevries@suse.de>
10648
10649 * symtab.c (lookup_global_symbol): Prefer def over decl.
10650
10651 2020-04-23 Tom de Vries <tdevries@suse.de>
10652
10653 PR symtab/25807
10654 * block.c (best_symbol, better_symbol): Promote to external.
10655 * block.h (best_symbol, better_symbol): Declare.
10656 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10657 decl.
10658
10659 2020-04-23 Tom Tromey <tromey@adacore.com>
10660
10661 PR ada/25837:
10662 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10663 "const char *", not a "const std::string &".
10664 <name_and_matcher::operator==>: Update.
10665 * unittests/lookup_name_info-selftests.c: Change type of
10666 "result".
10667
10668 2020-04-23 Tom Tromey <tom@tromey.com>
10669
10670 * inferior.h (iterate_over_inferiors): Don't declare.
10671 * inferior.c (iterate_over_inferiors): Remove.
10672 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10673 Remove.
10674 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10675 use iterate_over_inferiors.
10676 (darwin_resume_inferior_it)
10677 (struct resume_inferior_threads_param)
10678 (darwin_resume_inferior_threads_it): Remove.
10679 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10680
10681 2020-04-23 Tom de Vries <tdevries@suse.de>
10682
10683 * blockframe.c (find_pc_partial_function): Use
10684 find_pc_sect_compunit_symtab rather than
10685 objfile->sf->qf->find_pc_sect_compunit_symtab.
10686
10687 2020-04-22 Tom de Vries <tdevries@suse.de>
10688
10689 PR symtab/25764
10690 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10691 in psymtabs.
10692
10693 2020-04-22 Tom de Vries <tdevries@suse.de>
10694
10695 PR symtab/25801
10696 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10697 symtabs.
10698
10699 2020-04-22 Tom de Vries <tdevries@suse.de>
10700
10701 PR symtab/25700
10702 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10703 CU if already created.
10704
10705 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10706
10707 * infrun.c (displaced_step_fixup): Switch to the event_thread
10708 before calling displaced_step_restore, not after.
10709
10710 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10711
10712 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10713 its inferior is not recorded by us.
10714 (record_btrace_target_open): Replace call to
10715 all_non_exited_threads () with call to current_inferior
10716 ()->non_exited_threads ().
10717 (record_btrace_target::stop_recording): Likewise.
10718 (record_btrace_target::close): Likewise.
10719 (record_btrace_target::wait): Likewise.
10720 (record_btrace_target::record_stop_replaying): Likewise.
10721
10722 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10723
10724 * btrace.c (btrace_enable): Throw an error on double enables and
10725 when enabling recording fails.
10726 (btrace_disable): Throw an error if the thread is not recorded.
10727
10728 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10729
10730 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10731 request if we do not have a thread_info.
10732
10733 2020-04-21 Tom de Vries <tdevries@suse.de>
10734
10735 PR gdb/25471
10736 * thread.c
10737 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10738 exception in get_frame_id.
10739
10740 2020-04-20 Tom Tromey <tromey@adacore.com>
10741
10742 * python/python.c (struct gdbpy_event): Mark move constructor as
10743 noexcept.
10744 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10745 constructor as noexcept.
10746 * completer.h (struct completion_result): Mark move constructor as
10747 noexcept.
10748 * completer.c (completion_result::completion_result): Use
10749 initialization style. Don't call reset_match_list.
10750
10751 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10752
10753 * MAINTAINERS (Write After Approval): Add myself.
10754
10755 2020-04-18 Tom Tromey <tom@tromey.com>
10756
10757 * windows-tdep.c (init_w32_command_list)
10758 (w32_prefix_command_valid): Restore.
10759 (_initialize_windows_tdep): Call init_w32_command_list.
10760
10761 2020-04-18 Tom Tromey <tom@tromey.com>
10762
10763 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10764 * value.c (value_fn_field): Update.
10765 * valops.c (find_function_in_inferior)
10766 (value_allocate_space_in_inferior): Update.
10767 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10768 Update.
10769 * tui/tui-source.c (tui_source_window::set_contents): Update.
10770 * symtab.c (lookup_global_or_static_symbol)
10771 (find_function_start_sal_1, skip_prologue_sal)
10772 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10773 * symmisc.c (dump_msymbols, dump_symtab_1)
10774 (maintenance_print_one_line_table): Update.
10775 * symfile.c (init_entry_point_info, section_is_mapped)
10776 (list_overlays_command, simple_read_overlay_table)
10777 (simple_overlay_update_1): Update.
10778 * stap-probe.c (handle_stap_probe): Update.
10779 * stabsread.c (dbx_init_float_type, define_symbol)
10780 (read_one_struct_field, read_enum_type, read_range_type): Update.
10781 * source.c (info_line_command): Update.
10782 * python/python.c (gdbpy_source_objfile_script)
10783 (gdbpy_execute_objfile_script): Update.
10784 * python/py-type.c (save_objfile_types): Update.
10785 * python/py-objfile.c (py_free_objfile): Update.
10786 * python/py-inferior.c (python_new_objfile): Update.
10787 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10788 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10789 (maintenance_check_psymtabs): Update.
10790 * printcmd.c (info_address_command): Update.
10791 * objfiles.h (struct objfile) <arch>: New method, from
10792 get_objfile_arch.
10793 (get_objfile_arch): Don't declare.
10794 * objfiles.c (get_objfile_arch): Remove.
10795 (filter_overlapping_sections): Update.
10796 * minsyms.c (msymbol_is_function): Update.
10797 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10798 (output_nondebug_symbol): Update.
10799 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10800 (mdebug_expand_psymtab): Update.
10801 * machoread.c (macho_add_oso_symfile): Update.
10802 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10803 Update.
10804 * linux-fork.c (checkpoint_command): Update.
10805 * linespec.c (convert_linespec_to_sals): Update.
10806 * jit.c (finalize_symtab): Update.
10807 * infrun.c (insert_exception_resume_from_probe): Update.
10808 * ia64-tdep.c (ia64_find_unwind_table): Update.
10809 * hppa-tdep.c (internalize_unwinds): Update.
10810 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10811 Update.
10812 * gcore.c (call_target_sbrk): Update.
10813 * elfread.c (record_minimal_symbol, elf_symtab_read)
10814 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10815 (elf_gnu_ifunc_resolve_by_got): Update.
10816 * dwarf2/read.c (create_addrmap_from_index)
10817 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10818 (read_debug_names_from_section)
10819 (process_psymtab_comp_unit_reader, add_partial_symbol)
10820 (add_partial_subprogram, process_full_comp_unit)
10821 (read_file_scope, read_func_scope, read_lexical_block_scope)
10822 (read_call_site_scope, dwarf2_ranges_read)
10823 (dwarf2_record_block_ranges, dwarf2_add_field)
10824 (mark_common_block_symbol_computed, read_tag_pointer_type)
10825 (read_tag_string_type, dwarf2_init_float_type)
10826 (dwarf2_init_complex_target_type, read_base_type)
10827 (partial_die_info::read, partial_die_info::read)
10828 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10829 (dwarf2_fetch_die_loc_sect_off): Update.
10830 * dwarf2/loc.c (dwarf2_find_location_expression)
10831 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10832 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10833 (dwarf2_loc_desc_get_symbol_read_needs)
10834 (locexpr_describe_location_piece, locexpr_describe_location_1)
10835 (loclist_describe_location): Update.
10836 * dwarf2/index-write.c (write_debug_names): Update.
10837 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10838 * dtrace-probe.c (dtrace_process_dof): Update.
10839 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10840 (process_one_symbol): Update.
10841 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10842 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10843 (coff_read_enum_type): Update.
10844 * cli/cli-cmds.c (edit_command, list_command): Update.
10845 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10846 * breakpoint.c (create_overlay_event_breakpoint)
10847 (create_longjmp_master_breakpoint)
10848 (create_std_terminate_master_breakpoint)
10849 (create_exception_master_breakpoint, get_sal_arch): Update.
10850 * block.c (block_gdbarch): Update.
10851 * annotate.c (annotate_source_line): Update.
10852
10853 2020-04-17 Tom Tromey <tromey@adacore.com>
10854
10855 * auto-load.c (show_auto_load_cmd): Remove.
10856 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10857 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10858 (maintenance_print_arc_command): Remove.
10859 * tui/tui-win.c (tui_command): Remove.
10860 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10861 * tui/tui-layout.c (tui_layout_command): Remove.
10862 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10863 * python/python.c (user_set_python, user_show_python): Remove.
10864 (_initialize_python): Use add_basic_prefix_cmd,
10865 add_show_prefix_cmd.
10866 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10867 (install_gdb_commands): Use add_basic_prefix_cmd,
10868 add_show_prefix_cmd.
10869 (info_guile_command): Remove.
10870 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10871 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10872 add_show_prefix_cmd.
10873 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10874 Remove do_set and do_show parameters.
10875 * cli/cli-style.c (set_style, show_style): Remove.
10876 (_initialize_cli_style): Use add_basic_prefix_cmd,
10877 add_show_prefix_cmd.
10878 (cli_style_option::add_setshow_commands): Remove do_set and
10879 do_show parameters.
10880 (cli_style_option::add_setshow_commands): Use
10881 add_basic_prefix_cmd, add_show_prefix_cmd.
10882 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10883 (set_style_name): Remove.
10884 * cli/cli-dump.c (dump_command, append_command): Remove.
10885 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10886 (tekhex_dump_command, binary_dump_command)
10887 (binary_append_command): Remove.
10888 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10889 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10890 (init_w32_command_list): Remove; move into ...
10891 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10892 * valprint.c (set_print, show_print, set_print_raw)
10893 (show_print_raw): Remove.
10894 (_initialize_valprint): Use add_basic_prefix_cmd,
10895 add_show_prefix_cmd.
10896 * typeprint.c (set_print_type, show_print_type): Remove.
10897 (_initialize_typeprint): Use add_basic_prefix_cmd,
10898 add_show_prefix_cmd.
10899 * record.c (set_record_command, show_record_command): Remove.
10900 (_initialize_record): Use add_basic_prefix_cmd,
10901 add_show_prefix_cmd.
10902 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10903 add_show_prefix_cmd.
10904 (info_command, show_command, set_debug, show_debug): Remove.
10905 * top.h (set_history, show_history): Don't declare.
10906 * top.c (set_history, show_history): Remove.
10907 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10908 (unset_tdesc_cmd): Remove.
10909 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10910 add_show_prefix_cmd.
10911 * symtab.c (info_module_command): Remove.
10912 (_initialize_symtab): Use add_basic_prefix_cmd.
10913 * symfile.c (overlay_command): Remove.
10914 (_initialize_symfile): Use add_basic_prefix_cmd.
10915 * sparc64-tdep.c (info_adi_command): Remove.
10916 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10917 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10918 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10919 add_show_prefix_cmd.
10920 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10921 (_initialize_serial): Use add_basic_prefix_cmd,
10922 add_show_prefix_cmd.
10923 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10924 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10927 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10928 add_show_prefix_cmd.
10929 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10930 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10931 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10932 add_show_prefix_cmd.
10933 * remote.c (remote_command, set_remote_cmd): Remove.
10934 (_initialize_remote): Use add_basic_prefix_cmd.
10935 * record-full.c (set_record_full_command)
10936 (show_record_full_command): Remove.
10937 (_initialize_record_full): Use add_basic_prefix_cmd,
10938 add_show_prefix_cmd.
10939 * record-btrace.c (cmd_set_record_btrace)
10940 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10941 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10942 (cmd_show_record_btrace_pt): Remove.
10943 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10944 add_show_prefix_cmd.
10945 * ravenscar-thread.c (set_ravenscar_command)
10946 (show_ravenscar_command): Remove.
10947 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10948 add_show_prefix_cmd.
10949 * mips-tdep.c (show_mips_command, set_mips_command)
10950 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10951 add_show_prefix_cmd.
10952 * maint.c (maintenance_command, maintenance_info_command)
10953 (maintenance_check_command, maintenance_print_command)
10954 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10955 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10956 add_show_prefix_cmd.
10957 (show_per_command_cmd): Remove.
10958 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10959 Remove.
10960 (maintenance_show_test_settings_cmd): Remove.
10961 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10962 add_show_prefix_cmd.
10963 * maint-test-options.c (maintenance_test_options_command):
10964 Remove.
10965 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10966 * macrocmd.c (macro_command): Remove
10967 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10968 * language.c (set_check, show_check): Remove.
10969 (_initialize_language): Use add_basic_prefix_cmd,
10970 add_show_prefix_cmd.
10971 * infcmd.c (unset_command): Remove.
10972 (_initialize_infcmd): Use add_basic_prefix_cmd.
10973 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10974 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10975 add_show_prefix_cmd.
10976 * go32-nat.c (go32_info_dos_command): Remove.
10977 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10978 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10979 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10980 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10981 (_initialize_frame): Use add_basic_prefix_cmd,
10982 add_show_prefix_cmd.
10983 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10984 (_initialize_dcache): Use add_basic_prefix_cmd,
10985 add_show_prefix_cmd.
10986 * cp-support.c (maint_cplus_command): Remove.
10987 (_initialize_cp_support): Use add_basic_prefix_cmd.
10988 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10989 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10990 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10991 add_basic_prefix_cmd, add_show_prefix_cmd.
10992 * breakpoint.c (save_command): Remove.
10993 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10994 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10995 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10996 add_show_prefix_cmd.
10997 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10998 (set_ada_command, show_ada_command): Remove.
10999 (_initialize_ada_language): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11002
11003 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11004
11005 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11006 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11007
11008 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11009
11010 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11011 warning messages.
11012
11013 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11014
11015 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11016 import table is not at beginning of .idata section.
11017
11018 2020-04-16 Pedro Alves <palves@redhat.com>
11019
11020 * inferior.c (delete_inferior): Use delete operator directly
11021 instead of delete_program_space.
11022 * progspace.c (add_program_space): New, factored out from
11023 program_space::program_space.
11024 (remove_program_space): New, factored out from
11025 delete_program_space.
11026 (program_space::program_space): Remove intro comment. Rewrite.
11027 (program_space::~program_space): Remove intro comment. Call
11028 remove_program_space.
11029 (delete_program_space): Delete.
11030 * progspace.h (program_space::program_space): Make explicit. Move
11031 intro comment here, adjusted.
11032 (program_space::~program_space): Move intro comment here,
11033 adjusted.
11034 (delete_program_space): Remove.
11035
11036 2020-04-16 Tom Tromey <tromey@adacore.com>
11037
11038 * windows-nat.c (windows_nat::handle_access_violation): New
11039 function.
11040 * nat/windows-nat.h (handle_access_violation): Declare.
11041 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11042 windows-nat.c. Call handle_access_violation.
11043
11044 2020-04-16 Tom de Vries <tdevries@suse.de>
11045
11046 PR symtab/25791
11047 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11048 CUs without psymtab.
11049
11050 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11051
11052 * python/python.c (do_start_initialization): Don't call
11053 PyEval_InitThreads for Python 3.9 and beyond.
11054
11055 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11056
11057 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11058 thread functions.
11059 (obsd_nat_target::wait): Likewise.
11060
11061 2020-04-15 Tom Tromey <tromey@adacore.com>
11062
11063 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11064 (DEBUG_EXCEPT): Use debug_printf.
11065
11066 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * completer.c (class completion_tracker::completion_hash_entry)
11069 <hash_name>: New member function.
11070 (completion_tracker::discard_completions): New callback to hash a
11071 completion_hash_entry, pass this to htab_create_alloc.
11072
11073 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11074
11075 * windows-nat.c (windows_make_so): Warn rather than stopping with
11076 an error if realpath() fails.
11077
11078 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11079
11080 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11081 (nbsd_nat_target::info_proc): Add do_status.
11082
11083 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11084 Tom de Vries <tdevries@suse.de>
11085
11086 PR symtab/25718
11087 * psympriv.h (struct partial_symtab::read_symtab)
11088 (struct partial_symtab::expand_psymtab)
11089 (struct partial_symtab::read_dependencies): Update comments.
11090 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11091 read_symtab for includer.
11092 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11093 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11094 (struct dwarf2_include_psymtab::m_readin): Remove.
11095 (struct dwarf2_include_psymtab::includer): New member function.
11096 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11097
11098 2020-04-14 Tom de Vries <tdevries@suse.de>
11099
11100 PR symtab/25720
11101 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11102 with NULL symbol_matcher and lookup_name.
11103 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11104 and lookup_name.
11105 * dwarf2/read.c (dw2_expand_symtabs_matching)
11106 (dw2_debug_names_expand_symtabs_matching): Same.
11107 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11108 Make lookup_name a pointer. Update comment.
11109 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11110 lookup_name being a pointer.
11111 * symfile.c (expand_symtabs_matching): Same.
11112 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11113 * linespec.c (iterate_over_all_matching_symtabs): Same.
11114
11115 2020-04-13 Tom Tromey <tom@tromey.com>
11116
11117 * run-on-main-thread.c: Update include.
11118 * unittests/main-thread-selftests.c: Update include.
11119 * tui/tui-win.c: Update include.
11120 * tui/tui-io.c: Update include.
11121 * tui/tui-interp.c: Update include.
11122 * tui/tui-hooks.c: Update include.
11123 * top.h: Update include.
11124 * top.c: Update include.
11125 * ser-base.c: Update include.
11126 * remote.c: Update include.
11127 * remote-notif.c: Update include.
11128 * remote-fileio.c: Update include.
11129 * record-full.c: Update include.
11130 * record-btrace.c: Update include.
11131 * python/python.c: Update include.
11132 * posix-hdep.c: Update include.
11133 * mingw-hdep.c: Update include.
11134 * mi/mi-main.c: Update include.
11135 * mi/mi-interp.c: Update include.
11136 * main.c: Update include.
11137 * linux-nat.c: Update include.
11138 * interps.c: Update include.
11139 * infrun.c: Update include.
11140 * inf-loop.c: Update include.
11141 * event-top.c: Update include.
11142 * event-loop.c: Move to ../gdbsupport/.
11143 * event-loop.h: Move to ../gdbsupport/.
11144 * async-event.h: Update include.
11145 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11146
11147 2020-04-13 Tom Tromey <tom@tromey.com>
11148
11149 * tui/tui-win.c: Include async-event.h.
11150 * remote.c: Include async-event.h.
11151 * remote-notif.c: Include async-event.h.
11152 * record-full.c: Include async-event.h.
11153 * record-btrace.c: Include async-event.h.
11154 * infrun.c: Include async-event.h.
11155 * event-top.c: Include async-event.h.
11156 * event-loop.h: Move some declarations to async-event.h.
11157 * event-loop.c: Don't include ser-event.h or top.h. Move some
11158 code to async-event.c.
11159 * async-event.h: New file.
11160 * async-event.c: New file.
11161 * Makefile.in (COMMON_SFILES): Add async-event.c.
11162 (HFILES_NO_SRCDIR): Add async-event.h.
11163
11164 2020-04-13 Tom Tromey <tom@tromey.com>
11165
11166 * utils.c (flush_streams): New function.
11167 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11168
11169 2020-04-13 Tom Tromey <tom@tromey.com>
11170
11171 * event-loop.c (handle_file_event): Use warning, not
11172 printf_unfiltered.
11173
11174 2020-04-13 Tom Tromey <tom@tromey.com>
11175
11176 * event-loop.c: Include <chrono>.
11177
11178 2020-04-13 Tom Tromey <tom@tromey.com>
11179
11180 * gdb_select.h: Move to ../gdbsupport/.
11181 * event-loop.c: Update include path.
11182 * top.c: Update include path.
11183 * ser-base.c: Update include path.
11184 * ui-file.c: Update include path.
11185 * ser-tcp.c: Update include path.
11186 * guile/scm-ports.c: Update include path.
11187 * posix-hdep.c: Update include path.
11188 * ser-unix.c: Update include path.
11189 * gdb_usleep.c: Update include path.
11190 * mingw-hdep.c: Update include path.
11191 * inflow.c: Update include path.
11192 * infrun.c: Update include path.
11193 * event-top.c: Update include path.
11194
11195 2020-04-13 Tom Tromey <tom@tromey.com>
11196
11197 * configure: Rebuild.
11198 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11199
11200 2020-04-13 Tom Tromey <tom@tromey.com>
11201
11202 * event-loop.h (start_event_loop): Don't declare.
11203 * event-loop.c (start_event_loop): Move...
11204 * main.c (start_event_loop): ...here. Now static.
11205
11206 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11207
11208 * MAINTAINERS: Update my email address.
11209
11210 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11211
11212 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11213 IP_ALL.
11214
11215 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11216
11217 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11218 (nbsd_nat_target::info_proc): Add do_cmdline.
11219
11220 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11221
11222 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11223 (nbsd_nat_target::info_proc): Add do_cwd.
11224
11225 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11226
11227 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11228
11229 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11230
11231 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11232 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11233 (nbsd_nat_target::info_proc): New functions.
11234 * nbsd-nat.c (kinfo_get_vmmap): New function.
11235 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11236 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11237 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11238 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11239 functions.
11240 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11241 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11242 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11243 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11244 (KINFO_VME_FLAG_GROWS_DOWN): New.
11245
11246 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11247
11248 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11249 bit shift.
11250
11251 2020-04-10 Tom Tromey <tromey@adacore.com>
11252
11253 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11254
11255 2020-04-10 Tom Tromey <tromey@adacore.com>
11256
11257 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11258 separate debug files.
11259
11260 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11261
11262 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11263 Move to...
11264 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11265 ... here.
11266 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11267 Check for STATUS_WX86_BREAKPOINT.
11268 (windows_nat_target::wait): Same.
11269
11270 2020-04-10 Tom de Vries <tdevries@suse.de>
11271
11272 PR cli/25808
11273 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11274
11275 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11276
11277 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11278 (Write After Approval): Remove Tom de Vries.
11279
11280 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11281
11282 revert partially:
11283 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11284
11285 * buildsym.c (record_line): Fix undefined behavior and preserve
11286 lines at eof.
11287
11288 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11289
11290 * auxv.h (svr4_auxv_parse): New.
11291 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11292 and generic_auxv_parse.
11293 (svr4_auxv_parse): Add.
11294 * obsd-tdep.c: Include "auxv.h".
11295 (obsd_auxv_parse): Remove.
11296 (obsd_init_abi): Remove comment.
11297 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11298 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11299 * nbsd-tdep.c: Include "auxv.h".
11300 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11301
11302 2020-04-08 Tom Tromey <tromey@adacore.com>
11303
11304 * nat/windows-nat.h (last_wait_event): Don't declare.
11305 (wait_for_debug_event): Update comment.
11306 * nat/windows-nat.c (last_wait_event): Now static.
11307
11308 2020-04-08 Tom Tromey <tromey@adacore.com>
11309
11310 * windows-nat.c (wait_for_debug_event): Move to
11311 nat/windows-nat.c.
11312 * nat/windows-nat.h (wait_for_debug_event): Declare.
11313 * nat/windows-nat.c (wait_for_debug_event): Move from
11314 windows-nat.c. No longer static.
11315
11316 2020-04-08 Tom Tromey <tromey@adacore.com>
11317
11318 * windows-nat.c (get_windows_debug_event): Use
11319 fetch_pending_stop.
11320 * nat/windows-nat.h (fetch_pending_stop): Declare.
11321 * nat/windows-nat.c (fetch_pending_stop): New function.
11322
11323 2020-04-08 Tom Tromey <tromey@adacore.com>
11324
11325 * windows-nat.c (windows_continue): Use matching_pending_stop and
11326 continue_last_debug_event.
11327 * nat/windows-nat.h (matching_pending_stop)
11328 (continue_last_debug_event): Declare.
11329 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11330 (matching_pending_stop, continue_last_debug_event): New
11331 functions.
11332
11333 2020-04-08 Tom Tromey <tromey@adacore.com>
11334
11335 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11336 (handle_exception_result): Move to nat/windows-nat.h.
11337 (DEBUG_EXCEPTION_SIMPLE): Remove.
11338 (windows_nat::handle_ms_vc_exception): New function.
11339 (handle_exception): Move to nat/windows-nat.c.
11340 (get_windows_debug_event): Update.
11341 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11342 nat/windows-nat.c.
11343 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11344 (handle_exception_result): Move from windows-nat.c.
11345 (handle_exception): Declare.
11346 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11347 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11348 windows-nat.c.
11349
11350 2020-04-08 Tom Tromey <tromey@adacore.com>
11351
11352 * windows-nat.c (exception_count, event_count): Remove.
11353 (handle_exception, get_windows_debug_event)
11354 (do_initial_windows_stuff): Update.
11355
11356 2020-04-08 Tom Tromey <tromey@adacore.com>
11357
11358 * windows-nat.c (windows_nat::handle_load_dll)
11359 (windows_nat::handle_unload_dll): Rename. No longer static.
11360 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11361 Declare.
11362
11363 2020-04-08 Tom Tromey <tromey@adacore.com>
11364
11365 * complaints.h (stop_whining): Declare at top-level.
11366 (complaint): Don't declare stop_whining.
11367
11368 2020-04-08 Tom Tromey <tromey@adacore.com>
11369
11370 * windows-nat.c (windows_nat::handle_output_debug_string):
11371 Rename. No longer static.
11372 * nat/windows-nat.h (handle_output_debug_string): Declare.
11373
11374 2020-04-08 Tom Tromey <tromey@adacore.com>
11375
11376 * windows-nat.c (current_process_handle, current_process_id)
11377 (main_thread_id, last_sig, current_event, last_wait_event)
11378 (current_windows_thread, desired_stop_thread_id, pending_stops)
11379 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11380 (display_selectors, fake_create_process)
11381 (get_windows_debug_event): Update.
11382 * nat/windows-nat.h (current_process_handle, current_process_id)
11383 (main_thread_id, last_sig, current_event, last_wait_event)
11384 (current_windows_thread, desired_stop_thread_id, pending_stops)
11385 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11386 * nat/windows-nat.c (current_process_handle, current_process_id)
11387 (main_thread_id, last_sig, current_event, last_wait_event)
11388 (current_windows_thread, desired_stop_thread_id, pending_stops)
11389 (siginfo_er): New globals. Move from windows-nat.c.
11390
11391 2020-04-08 Tom Tromey <tromey@adacore.com>
11392
11393 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11394 (handle_load_dll): Update.
11395 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11396
11397 2020-04-08 Tom Tromey <tromey@adacore.com>
11398
11399 * windows-nat.c (enum thread_disposition_type): Move to
11400 nat/windows-nat.h.
11401 (windows_nat::thread_rec): Rename from thread_rec. No longer
11402 static.
11403 (windows_add_thread, windows_nat_target::fetch_registers)
11404 (windows_nat_target::store_registers, handle_exception)
11405 (windows_nat_target::resume, get_windows_debug_event)
11406 (windows_nat_target::get_tib_address)
11407 (windows_nat_target::thread_name)
11408 (windows_nat_target::thread_alive): Update.
11409 * nat/windows-nat.h (enum thread_disposition_type): Move from
11410 windows-nat.c.
11411 (thread_rec): Declare.
11412
11413 2020-04-08 Tom Tromey <tromey@adacore.com>
11414
11415 * windows-nat.c: Add "using namespace".
11416 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11417 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11418
11419 2020-04-08 Tom Tromey <tromey@adacore.com>
11420
11421 * nat/windows-nat.h (struct windows_thread_info): Declare
11422 destructor.
11423 * nat/windows-nat.c (~windows_thread_info): New.
11424
11425 2020-04-08 Tom Tromey <tromey@adacore.com>
11426
11427 PR gdb/22992
11428 * windows-nat.c (current_event): Update comment.
11429 (last_wait_event, desired_stop_thread_id): New globals.
11430 (struct pending_stop): New.
11431 (pending_stops): New global.
11432 (windows_nat_target) <stopped_by_sw_breakpoint>
11433 <supports_stopped_by_sw_breakpoint>: New methods.
11434 (windows_fetch_one_register): Add assertions. Adjust PC.
11435 (windows_continue): Handle pending stops. Suspend other threads
11436 when stepping. Use last_wait_event
11437 (wait_for_debug_event): New function.
11438 (get_windows_debug_event): Use wait_for_debug_event. Handle
11439 pending stops. Queue spurious stops.
11440 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11441 (windows_nat_target::kill): Use wait_for_debug_event.
11442 * nat/windows-nat.h (struct windows_thread_info)
11443 <stopped_at_software_breakpoint>: New field.
11444 * nat/windows-nat.c (windows_thread_info::resume): Clear
11445 stopped_at_software_breakpoint.
11446
11447 2020-04-08 Tom Tromey <tromey@adacore.com>
11448
11449 * windows-nat.c (enum thread_disposition_type): New.
11450 (thread_rec): Replace "get_context" parameter with "disposition";
11451 change type.
11452 (windows_add_thread, windows_nat_target::fetch_registers)
11453 (windows_nat_target::store_registers, handle_exception)
11454 (windows_nat_target::resume, get_windows_debug_event)
11455 (windows_nat_target::get_tib_address)
11456 (windows_nat_target::thread_name)
11457 (windows_nat_target::thread_alive): Update.
11458
11459 2020-04-08 Tom Tromey <tromey@adacore.com>
11460
11461 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11462 (windows_continue): Use windows_continue::resume.
11463 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11464 resume>: Declare new methods.
11465 * nat/windows-nat.c: New file.
11466 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11467
11468 2020-04-08 Tom Tromey <tromey@adacore.com>
11469
11470 * windows-nat.c (windows_add_thread, windows_delete_thread)
11471 (windows_nat_target::fetch_registers)
11472 (windows_nat_target::store_registers, fake_create_process)
11473 (windows_nat_target::resume, windows_nat_target::resume)
11474 (get_windows_debug_event, windows_nat_target::wait)
11475 (windows_nat_target::pid_to_str)
11476 (windows_nat_target::get_tib_address)
11477 (windows_nat_target::get_ada_task_ptid)
11478 (windows_nat_target::thread_name)
11479 (windows_nat_target::thread_alive): Use lwp, not tid.
11480
11481 2020-04-08 Tom Tromey <tromey@adacore.com>
11482
11483 * windows-nat.c (handle_exception)
11484 (windows_nat_target::thread_name): Update.
11485 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11486 <name>: Now unique_xmalloc_ptr.
11487
11488 2020-04-08 Tom Tromey <tromey@adacore.com>
11489
11490 * windows-nat.c (thread_rec)
11491 (windows_nat_target::fetch_registers): Update.
11492 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11493 Update comment.
11494 <debug_registers_changed, reload_context>: Now bool.
11495
11496 2020-04-08 Tom Tromey <tromey@adacore.com>
11497
11498 * windows-nat.c (windows_add_thread): Use new.
11499 (windows_init_thread_list, windows_delete_thread): Use delete.
11500 (get_windows_debug_event): Update.
11501 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11502 destructor, and initializers.
11503
11504 2020-04-08 Tom Tromey <tromey@adacore.com>
11505
11506 * windows-nat.c (struct windows_thread_info): Remove.
11507 * nat/windows-nat.h: New file.
11508
11509 2020-04-08 Tom Tromey <tromey@adacore.com>
11510
11511 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11512 (thread_rec, windows_add_thread, windows_delete_thread)
11513 (windows_continue): Update.
11514
11515 2020-04-08 Tom Tromey <tromey@adacore.com>
11516
11517 * windows-nat.c (struct windows_thread_info): Remove typedef.
11518 (thread_head): Remove.
11519 (thread_list): New global.
11520 (thread_rec, windows_add_thread, windows_init_thread_list)
11521 (windows_delete_thread, windows_continue): Update.
11522
11523 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11524
11525 * windows-tdep.h (windows_init_abi): Add comment.
11526 (cygwin_init_abi): New declaration.
11527 * windows-tdep.c: Split signal enumeration in two, one for
11528 Windows and one for Cygwin.
11529 (windows_gdb_signal_to_target): Only deal with signal of the
11530 Windows OS ABI.
11531 (cygwin_gdb_signal_to_target): New function.
11532 (windows_init_abi): Rename to windows_init_abi_common, don't set
11533 gdb_signal_to_target gdbarch method. Add new new function with
11534 this name.
11535 (cygwin_init_abi): New function.
11536 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11537 comment. Don't call windows_init_abi.
11538 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11539 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11540 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11541 i386_windows_init_abi_common, don't call windows_init_abi. Add
11542 a new function of this name.
11543 (i386_cygwin_init_abi): New function.
11544 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11545 OS ABI Cygwin.
11546
11547 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11548
11549 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11550 parameter.c.
11551 (dwarf2_read_gdb_index): Update.
11552
11553 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11554
11555 * nbsd-tdep.c: Include "objfiles.h".
11556 (nbsd_skip_solib_resolver): New.
11557 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11558
11559 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11560
11561 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11562 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11563 with DW_LLE_base_addressx are being emitted in DWARFv5.
11564 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11565 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11566 unsigned integer.
11567
11568 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11569
11570 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11571 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11572 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11573 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11574 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11575 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11576 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11577
11578
11579 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11580
11581 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11582 (read_loclist_index): New function definition.
11583 (lookup_loclist_base): New function definition.
11584 (read_loclist_header): New function definition.
11585 (dwarf2_cu): Add loclist_base and loclist_header field.
11586 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11587 (read_full_die_1): Read the value of DW_AT_loclists_base.
11588 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11589 (read_attribute_value): Handle DW_FORM_loclistx.
11590 (skip_one_die): Handle DW_FORM_loclistx.
11591 (loclist_header): New structure declaration.
11592 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11593
11594 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11595
11596 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11597 constructor. Remove `addr` parameter from other constructor and
11598 add `per_cu` parameter.
11599 * dwarf2/read.c (create_partial_symtab): Update.
11600
11601 2020-04-07 Tom de Vries <tdevries@suse.de>
11602
11603 PR symtab/25796
11604 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11605 (partial_die_info::fixup): Inherit has_const_value.
11606
11607 2020-04-07 Tom de Vries <tdevries@suse.de>
11608
11609 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11610 symbols without address.
11611
11612 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11613
11614 * nbsd-nat.h (struct thread_info): Add forward declaration.
11615 (nbsd_nat_target::thread_alive): Add.
11616 (nbsd_nat_target::thread_name): Likewise.
11617 (nbsd_nat_target::update_thread_list): Likewise.
11618 (update_thread_list::post_attach): Likewise.
11619 (post_attach::pid_to_str): Likewise.
11620 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11621 (nbsd_thread_lister): Add.
11622 (nbsd_nat_target::thread_alive): Likewise.
11623 (nbsd_nat_target::thread_name): Likewise.
11624 (nbsd_add_threads): Likewise.
11625 (update_thread_list::post_attach): Likewise.
11626 (nbsd_nat_target::update_thread_list): Likewise.
11627 (post_attach::pid_to_str): Likewise.
11628
11629 2020-04-06 Tom Tromey <tromey@adacore.com>
11630
11631 * ada-valprint.c (print_variant_part): Extract the variant field.
11632 (print_field_values): Use the field as the outer value when
11633 recursing.
11634
11635 2020-04-06 Tom Tromey <tromey@adacore.com>
11636
11637 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11638 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11639 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11640 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11641 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11642
11643 2020-04-06 Tom Tromey <tromey@adacore.com>
11644
11645 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11646 TYPE_CODE_ERROR.
11647
11648 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11649
11650 * nbsd-tdep.c: Include "gdbarch.h".
11651 Define enum with NetBSD signal numbers.
11652 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11653 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11654 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11655 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11656 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11657 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11658 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11659 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11660 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11661 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11662 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11663 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11664
11665 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11666
11667 PR gdb/25325
11668 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11669
11670 2020-04-03 Tom Tromey <tromey@adacore.com>
11671
11672 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11673 Read constant block.
11674
11675 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11676
11677 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11678 (gdb_bfd_get_full_section_contents): New declaration.
11679 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11680 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11681 gdb_bfd_get_full_section_contents.
11682
11683 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11684
11685 * exec.c (build_section_table): Replace internal_error with
11686 gdb_assert.
11687 (section_table_xfer_memory_partial): Likewise.
11688 * mdebugread.c (parse_partial_symbols): Likewise.
11689 * psymtab.c (lookup_partial_symbol): Likewise.
11690 * utils.c (wrap_here): Likewise.
11691
11692 2020-04-02 Tom Tromey <tromey@adacore.com>
11693
11694 * f-lang.c (build_fortran_types): Use arch_type to initialize
11695 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11696
11697 2020-04-02 Tom Tromey <tromey@adacore.com>
11698
11699 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11700 of attributes.
11701
11702 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11703 Bernd Edlinger <bernd.edlinger@hotmail.de>
11704 Tom Tromey <tromey@adacore.com>
11705
11706 * buildsym.c (buildsym_compunit::record_line): Remove
11707 deduplication code.
11708
11709 2020-04-02 Tom de Vries <tdevries@suse.de>
11710
11711 PR ada/24671
11712 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11713
11714 2020-04-02 Tom de Vries <tdevries@suse.de>
11715
11716 * dwarf2/read.c (dwarf2_gdb_index_functions,
11717 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11718 NULL.
11719 * psymtab.c (psym_lookup_global_symbol_language): New function.
11720 (psym_functions): Init psym_lookup_global_symbol_language with
11721 psym_lookup_global_symbol_language.
11722 * symfile-debug.c (debug_sym_quick_functions): Init
11723 lookup_global_symbol_language with NULL.
11724 * symfile.c (set_initial_language): Remove fixme comment.
11725 * symfile.h (struct quick_symbol_functions): Add
11726 lookup_global_symbol_language.
11727 * symtab.c (find_quick_global_symbol_language): New function.
11728 (find_main_name): Use find_quick_global_symbol_language.
11729
11730 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11731
11732 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11733
11734 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11735
11736 * buildsym.c (record_line): Fix undefined behavior and preserve
11737 lines at eof.
11738
11739 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11740
11741 * buildsym.c (record_line): Fix the resizing condition.
11742
11743 2020-04-01 Tom Tromey <tom@tromey.com>
11744
11745 * value.h (value_literal_complex): Add comment.
11746 * valops.c (value_literal_complex): Refer to value.h.
11747
11748 2020-04-01 Tom Tromey <tom@tromey.com>
11749
11750 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11751 (scalar_type): New rule, from typebase.
11752 (typebase): Use scalar_type. Recognize complex types.
11753 (field_name): Handle FLOAT_KEYWORD.
11754 (ident_tokens): Add _Complex and __complex__.
11755
11756 2020-04-01 Tom Tromey <tom@tromey.com>
11757
11758 PR exp/25299:
11759 * valarith.c (promotion_type, complex_binop): New functions.
11760 (scalar_binop): Handle complex numbers. Use promotion_type.
11761 (value_pos, value_neg, value_complement): Handle complex numbers.
11762
11763 2020-04-01 Tom Tromey <tom@tromey.com>
11764
11765 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11766 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11767 (parse_number): Handle complex numbers.
11768
11769 2020-04-01 Tom Tromey <tom@tromey.com>
11770
11771 * c-valprint.c (c_decorations): Change complex suffix to "i".
11772
11773 2020-04-01 Tom Tromey <tom@tromey.com>
11774
11775 * valprint.c (generic_value_print_complex): Use accessors.
11776 * value.h (value_real_part, value_imaginary_part): Declare.
11777 * valops.c (value_real_part, value_imaginary_part): New
11778 functions.
11779 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11780
11781 2020-04-01 Tom Tromey <tom@tromey.com>
11782
11783 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11784 (read_range_type): Update.
11785 * mdebugread.c (basic_type): Update.
11786 * go-lang.c (build_go_types): Use init_complex_type.
11787 * gdbtypes.h (struct main_type) <complex_type>: New member.
11788 (init_complex_type): Update.
11789 (arch_complex_type): Don't declare.
11790 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11791 Make name if none given. Use alloc_type_copy. Look for cached
11792 complex type.
11793 (arch_complex_type): Remove.
11794 (gdbtypes_post_init): Use init_complex_type.
11795 * f-lang.c (build_fortran_types): Use init_complex_type.
11796 * dwarf2/read.c (read_base_type): Update.
11797 * d-lang.c (build_d_types): Use init_complex_type.
11798 * ctfread.c (read_base_type): Update.
11799
11800 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11801
11802 * infrun.c (stop_all_threads): Update assertion, plus when
11803 stopping threads, take into account that we might be trying
11804 to stop an all-stop target.
11805 (stop_waiting): Call 'stop_all_threads' if there exists a
11806 non-stop target.
11807
11808 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11809
11810 * target.h (exists_non_stop_target): New function declaration.
11811 * target.c (exists_non_stop_target): New function.
11812
11813 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11814
11815 PR gdb/24789
11816 * eval.c (is_integral_or_integral_reference): New function.
11817 (evaluate_subexp_standard): Allow integer references in
11818 pointer arithmetic.
11819
11820 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11821
11822 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11823 check for no ptid in the stop reply when the target is non-stop.
11824
11825 2020-04-01 Tom Tromey <tromey@adacore.com>
11826
11827 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11828 "name" parameter to rvalue reference. Initialize m_name_holder.
11829 <lookup_name_info>: New overloads.
11830 <name>: Return gdb::string_view.
11831 <c_str>: New method.
11832 <make_ignore_params>: Update.
11833 <search_name_hash>: Update.
11834 <language_lookup_name>: Return const char *.
11835 <m_name>: Change type.
11836 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11837 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11838 (lookup_name_info::match_any): Update.
11839 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11840 Update.
11841 * minsyms.c (linkage_name_str): Update.
11842 * language.c (default_symbol_name_matcher): Update.
11843 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11844 Update.
11845 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11846 (ada_lookup_name_info::ada_lookup_name_info): Update.
11847 (literal_symbol_name_matcher): Update.
11848
11849 2020-04-01 Tom Tromey <tromey@adacore.com>
11850
11851 * psymtab.c (psymtab_search_name): Remove function.
11852 (psym_lookup_symbol): Create search name and lookup name here.
11853 (lookup_partial_symbol): Remove "name" parameter; add
11854 lookup_name.
11855 (psym_expand_symtabs_for_function): Update.
11856
11857 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11858
11859 PR tui/25597:
11860 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11861
11862 2020-03-31 Tom Tromey <tromey@adacore.com>
11863
11864 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11865 memcpy.
11866
11867 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11868
11869 * features/riscv/32bit-csr.xml: Regenerated.
11870 * features/riscv/64bit-csr.xml: Regenerated.
11871
11872 2020-03-30 Tom Tromey <tromey@adacore.com>
11873
11874 * ada-valprint.c (print_variant_part): Update.
11875 * ada-lang.h (ada_which_variant_applies): Update.
11876 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11877 outer_valaddr parameters; replace with "outer" value parameter.
11878 (to_fixed_variant_branch_type): Update.
11879
11880 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11881
11882 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11883 <list>. Remove inclusion of observable.h.
11884 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11885 (struct arch_lwp_info): New struct.
11886 (class ppc_linux_dreg_interface): New class.
11887 (struct ppc_linux_process_info): New struct.
11888 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11889 <low_new_clone, low_forget_process, low_prepare_to_resume>
11890 <copy_thread_dreg_state, mark_thread_stale>
11891 <mark_debug_registers_changed, register_hw_breakpoint>
11892 <clear_hw_breakpoint, register_wp, clear_wp>
11893 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11894 <num_memory_accesses, get_trigger_type>
11895 <create_watchpoint_request, hwdebug_point_cmp>
11896 <init_arch_lwp_info, get_arch_lwp_info>
11897 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11898 methods.
11899 <struct ptid_hash>: New inner struct.
11900 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11901 members.
11902 (saved_dabr_value, hwdebug_info, max_slots_number)
11903 (struct hw_break_tuple, struct thread_points, ppc_threads)
11904 (have_ptrace_hwdebug_interface)
11905 (hwdebug_find_thread_points_by_tid)
11906 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11907 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11908 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11909 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11910 use m_dreg_interface.
11911 (hwdebug_point_cmp): Change to...
11912 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11913 reference arguments instead of pointers.
11914 (ppc_linux_nat_target::ranged_break_num_registers): Use
11915 m_dreg_interface.
11916 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11917 m_dreg_interface. Call register_hw_breakpoint.
11918 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11919 m_dreg_interface. Call clear_hw_breakpoint.
11920 (get_trigger_type): Change to...
11921 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11922 comment.
11923 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11924 use m_dreg_interface. Call register_hw_breakpoint.
11925 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11926 use m_dreg_interface. Call clear_hw_breakpoint.
11927 (can_use_watchpoint_cond_accel): Change to...
11928 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11929 method. Update comment, use m_dreg_interface and
11930 m_process_info.
11931 (calculate_dvc): Change to...
11932 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11933 m_dreg_interface.
11934 (num_memory_accesses): Change to...
11935 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11936 (check_condition): Change to...
11937 (ppc_linux_nat_target::check_condition): ...this method.
11938 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11939 comment, use m_dreg_interface.
11940 (create_watchpoint_request): Change to...
11941 (ppc_linux_nat_target::create_watchpoint_request): ...this
11942 method. Use m_dreg_interface.
11943 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11944 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11945 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11946 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11947 (ppc_linux_nat_target::low_forget_process)
11948 (ppc_linux_nat_target::low_new_fork)
11949 (ppc_linux_nat_target::low_new_clone)
11950 (ppc_linux_nat_target::low_delete_thread)
11951 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11952 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11953 only call mark_thread_stale.
11954 (ppc_linux_thread_exit): Remove.
11955 (ppc_linux_nat_target::stopped_data_address): Change to...
11956 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11957 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11958 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11959 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11960 comment. Call low_stopped_data_address.
11961 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11962 m_dreg_interface.
11963 (ppc_linux_nat_target::masked_watch_num_registers): Use
11964 m_dreg_interface.
11965 (ppc_linux_nat_target::copy_thread_dreg_state)
11966 (ppc_linux_nat_target::mark_thread_stale)
11967 (ppc_linux_nat_target::mark_debug_registers_changed)
11968 (ppc_linux_nat_target::register_hw_breakpoint)
11969 (ppc_linux_nat_target::clear_hw_breakpoint)
11970 (ppc_linux_nat_target::register_wp)
11971 (ppc_linux_nat_target::clear_wp)
11972 (ppc_linux_nat_target::init_arch_lwp_info)
11973 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11974 (_initialize_ppc_linux_nat): Remove observer callback.
11975
11976 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11977
11978 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11979 (ppc_linux_nat_target::auxv_parse)
11980 (ppc_linux_nat_target::read_description)
11981 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11982 Move up.
11983
11984 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11985
11986 * linux-nat.h (low_new_clone): New method.
11987 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11988
11989 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11992 (dbx_expand_psymtab): ... this.
11993 (start_psymtab): Update.
11994 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11995 (mdebug_expand_psymtab): ... this.
11996 (parse_partial_symbols): Update.
11997 (new_psymtab): Update.
11998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11999 (xcoff_expand_psymtab): ... this.
12000 (xcoff_start_psymtab): Update.
12001
12002 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12005 <expand_dependencies>: ... this.
12006 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12007 (partial_symtab::expand_dependencies): ... this.
12008 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12009 Update.
12010 (dwarf2_psymtab::expand_psymtab): Update.
12011 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12012 * mdebugread.c (psymtab_to_symtab_1): Update.
12013 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12014
12015 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12016
12017 * psympriv.h (discard_psymtab): Remove.
12018 * dbxread.c (dbx_end_psymtab): Update.
12019 * xcoffread.c (xcoff_end_psymtab): Update.
12020
12021 2020-03-28 Tom Tromey <tom@tromey.com>
12022
12023 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12024 comment.
12025
12026 2020-03-28 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12029
12030 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12031
12032 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12033
12034 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12035
12036 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12037
12038 2020-03-26 Tom Tromey <tom@tromey.com>
12039
12040 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12041 (mark_common_block_symbol_computed, read_tag_string_type)
12042 (attr_to_dynamic_prop, read_subrange_type): Update.
12043 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12044 to be methods on struct attribute.
12045 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12046 (read_call_site_scope, partial_die_info::read)
12047 (partial_die_info::read, lookup_die_type, follow_die_ref):
12048 Update.
12049 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12050 from dwarf2_get_ref_die_offset.
12051 (attribute::constant_value): New method, from
12052 dwarf2_get_attr_constant_value.
12053 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12054 Declare method.
12055 <constant_value>: New method.
12056
12057 2020-03-26 Tom Tromey <tom@tromey.com>
12058
12059 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12060 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12061 (dwarf_type_encoding_name): Move to stringify.c.
12062 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12063 * dwarf2/stringify.c: New file.
12064 * dwarf2/stringify.h: New file.
12065
12066 2020-03-26 Tom Tromey <tom@tromey.com>
12067
12068 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12069 Rewrite.
12070
12071 2020-03-26 Tom Tromey <tom@tromey.com>
12072
12073 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12074 methods.
12075 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12076 (lookup_ranges_base): Likewise.
12077 (read_cutu_die_from_dwo, read_full_die_1): Update.
12078
12079 2020-03-26 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2/read.c (read_import_statement, read_file_scope)
12082 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12083 (read_lexical_block_scope, read_call_site_scope)
12084 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12085 (handle_struct_member_die, process_structure_scope)
12086 (update_enumeration_type_from_children)
12087 (process_enumeration_scope, read_array_type, read_common_block)
12088 (read_namespace, read_module, read_subroutine_type): Update.
12089 (sibling_die): Remove.
12090
12091 2020-03-26 Tom Tromey <tom@tromey.com>
12092
12093 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12094 (build_type_psymtabs_reader, read_structure_type)
12095 (read_enumeration_type, read_full_die_1): Update.
12096 (dwarf2_attr_no_follow): Move to die.h.
12097 * dwarf2/die.h (struct die_info) <attr>: New method.
12098
12099 2020-03-26 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12102 <base_address>: Now an optional.
12103 (dwarf2_find_base_address, dwarf2_rnglists_process)
12104 (dwarf2_ranges_process, fill_in_loclist_baton)
12105 (dwarf2_symbol_mark_computed): Update.
12106
12107 2020-03-26 Tom Tromey <tom@tromey.com>
12108
12109 * dwarf2/read.c (struct die_info): Move to die.h.
12110 * dwarf2/die.h: New file.
12111
12112 2020-03-26 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12115 * dwarf2/read.c
12116 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12117 Move to line-header.c.
12118 (read_checked_initial_length_and_offset, read_formatted_entries):
12119 Likewise.
12120 (dwarf_decode_line_header): Split into two.
12121 * dwarf2/line-header.c
12122 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12123 Move from read.c.
12124 (read_checked_initial_length_and_offset, read_formatted_entries):
12125 Likewise.
12126 (dwarf_decode_line_header): New function, split from read.c.
12127
12128 2020-03-26 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12131 Declare method.
12132 * dwarf2/read.c (read_attribute_value): Update.
12133 (dwarf2_per_objfile::read_line_string): Rename from
12134 read_indirect_line_string.
12135 (read_formatted_entries): Update.
12136
12137 2020-03-26 Tom Tromey <tom@tromey.com>
12138
12139 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12140 variable.
12141
12142 2020-03-26 Tom Tromey <tom@tromey.com>
12143
12144 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12145 const.
12146 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12147 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12148 parameter const.
12149
12150 2020-03-26 Tom Tromey <tom@tromey.com>
12151
12152 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12153 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12154 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12155 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12156
12157 2020-03-26 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12160 file_names_size, file_full_name, file_file_name>: Use const.
12161 <file_name_at, file_names>: Add const overload.
12162 * dwarf2/line-header.c (line_header::file_file_name)
12163 (line_header::file_full_name): Update.
12164
12165 2020-03-26 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12168 (macro_start_file, consume_improper_spaces)
12169 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12170 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12171 (dwarf_decode_macros): Move to macro.c.
12172 * dwarf2/macro.c: New file.
12173 * dwarf2/macro.h: New file.
12174 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12175
12176 2020-03-26 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12179 method.
12180 * dwarf2/section.c: New method. From
12181 read_indirect_string_at_offset_from.
12182 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12183 (read_indirect_string_at_offset_from): Move to section.c.
12184 (read_indirect_string_at_offset): Rewrite.
12185 (read_indirect_line_string_at_offset): Remove.
12186 (read_indirect_string, read_indirect_line_string)
12187 (dwarf_decode_macro_bytes): Update.
12188
12189 2020-03-26 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2/section.h (struct dwarf2_section_info)
12192 <overload_complaint>: Declare.
12193 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12194 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12195 Rename from dwarf2_section_buffer_overflow_complaint.
12196 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12197 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12198
12199 2020-03-26 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12202 Declare.
12203 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12204 Move from read.c.
12205 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12206 to section.c.
12207
12208 2020-03-26 Tom Tromey <tom@tromey.com>
12209
12210 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12211
12212 2020-03-26 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12215 "builder".
12216 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12217 parameter.
12218 (dwarf_decode_macros): Update.
12219
12220 2020-03-26 Tom Tromey <tom@tromey.com>
12221
12222 * dwarf2/read.c (read_attribute_value): Update.
12223 (read_indirect_string_from_dwz): Move to dwz.c; change into
12224 method.
12225 (dwarf_decode_macro_bytes): Update.
12226 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12227 * dwarf2/dwz.c: New file.
12228 * Makefile.in (COMMON_SFILES): Add dwz.c.
12229
12230 2020-03-26 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12233 * dwarf2/read.c: Add include.
12234 * dwarf2/index-write.c: Add include.
12235 * dwarf2/index-cache.c: Add include.
12236 * dwarf2/dwz.h: New file.
12237
12238 2020-03-25 Tom Tromey <tom@tromey.com>
12239
12240 * compile/compile-object-load.c (get_out_value_type): Mention
12241 correct symbol name in error message.
12242
12243 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12244
12245 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12246
12247 2020-03-25 Tom de Vries <tdevries@suse.de>
12248
12249 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12250 * symmisc.c (dump_symtab_1): Print user and includes fields.
12251 (maintenance_info_symtabs): Same.
12252
12253 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12254
12255 PR gdb/25534
12256 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12257 (riscv_regcache_cooked_write): New function.
12258 (riscv_push_dummy_call): Use new function.
12259 (riscv_return_value): Likewise.
12260
12261 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12262
12263 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12264 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12265 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12266 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12267 * infrun.c (follow_fork): Likewise.
12268 (follow_fork_inferior): Likewise.
12269 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12270 * linux-nat.h (class linux_nat_target): Likewise.
12271 * remote.c (class remote_target) <follow_fork>: Likewise.
12272 (remote_target::follow_fork): Likewise.
12273 * target-delegates.c: Re-generate.
12274 * target.c (default_follow_fork): Likewise.
12275 (target_follow_fork): Likewise.
12276 * target.h (struct target_ops) <follow_fork>: Likewise.
12277 (target_follow_fork): Likewise.
12278
12279 2020-03-24 Tom de Vries <tdevries@suse.de>
12280
12281 * psymtab.c (maintenance_info_psymtabs): Print user field.
12282
12283 2020-03-20 Tom Tromey <tromey@adacore.com>
12284
12285 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12286 const.
12287 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12288 const.
12289
12290 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12291
12292 * ptrace.m4: Don't check for ptrace declaration.
12293 * config.in: Re-generate.
12294 * configure: Re-generate.
12295 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12296 not defined.
12297
12298 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12299
12300 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12301 `PTRACE_TYPE_RET'.
12302 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12303 * sparc-nat.c (gdb_ptrace): Likewise.
12304 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12305
12306 2020-03-20 Tom Tromey <tromey@adacore.com>
12307
12308 * c-exp.y (lex_one_token): Fix assert.
12309
12310 2020-03-20 Tom Tromey <tromey@adacore.com>
12311
12312 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12313 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12314 strncpy call.
12315
12316 2020-03-20 Tom Tromey <tromey@adacore.com>
12317
12318 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12319
12320 2020-03-20 Tom Tromey <tromey@adacore.com>
12321
12322 * ada-valprint.c (print_variant_part): Remove parameters; switch
12323 to value-based API.
12324 (print_field_values): Likewise.
12325 (ada_val_print_struct_union): Likewise.
12326 (ada_value_print_1): Update.
12327
12328 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12329
12330 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12331 nbsd_nat_target instead of inf_ptrace_target.
12332 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12333 nbsd_nat_target.
12334
12335 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12336
12337 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12338 it to the ptrace call.
12339 * (store_registers): Likewise.
12340
12341 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12342
12343 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12344 it to the ptrace call.
12345 * (store_registers): Likewise.
12346
12347 2020-03-19 Luis Machado <luis.machado@linaro.org>
12348
12349 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12350 valid, fetch vg value from ptrace.
12351
12352 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12353 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12354 * inf-ptrace.c: Likewise.
12355 * (gdb_ptrace): Add.
12356 * (inf_ptrace_target::resume): Update.
12357 * (inf_ptrace_target::xfer_partial): Likewise.
12358 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12359 * (inf_ptrace_peek_poke): Update.
12360
12361 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12362
12363 * x86-bsd-nat.c (gdb_ptrace): New.
12364 * (x86bsd_dr_set): Add new argument `ptid'.
12365 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12366 x86bsd_dr_set_addr): Update.
12367
12368 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12369
12370 * remote.c (remote_target::process_stop_reply): Handle events for
12371 all threads differently.
12372
12373 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12374
12375 * completer.c (completion_tracker::remove_completion): Define new
12376 function.
12377 * completer.h (completion_tracker::remove_completion): Declare new
12378 function.
12379 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12380 when adding a C++ function symbol.
12381
12382 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12383
12384 * completer.c (completion_tracker::completion_hash_entry): Define
12385 new class.
12386 (advance_to_filename_complete_word_point): Call
12387 recompute_lowest_common_denominator.
12388 (completion_tracker::completion_tracker): Call discard_completions
12389 to setup the hash table.
12390 (completion_tracker::discard_completions): Allow for being called
12391 from the constructor, pass new equal function, and element deleter
12392 when constructing the hash table. Initialise new class member
12393 variables.
12394 (completion_tracker::maybe_add_completion): Remove use of
12395 m_entries_vec, and store more information into m_entries_hash.
12396 (completion_tracker::recompute_lcd_visitor): New function, most
12397 content taken from...
12398 (completion_tracker::recompute_lowest_common_denominator):
12399 ...here, this now just visits each item in the hash calling the
12400 above visitor.
12401 (completion_tracker::build_completion_result): Remove use of
12402 m_entries_vec, call recompute_lowest_common_denominator.
12403 * completer.h (completion_tracker::have_completions): Remove use
12404 of m_entries_vec.
12405 (completion_tracker::completion_hash_entry): Declare new class.
12406 (completion_tracker::recompute_lowest_common_denominator): Change
12407 function signature.
12408 (completion_tracker::recompute_lcd_visitor): Declare new function.
12409 (completion_tracker::m_entries_vec): Delete.
12410 (completion_tracker::m_entries_hash): Initialize to NULL.
12411 (completion_tracker::m_lowest_common_denominator_valid): New
12412 member variable.
12413 (completion_tracker::m_lowest_common_denominator_max_length): New
12414 member variable.
12415
12416 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12417
12418 * regformats/regdef.h: Put reg in gdb namespace.
12419
12420 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12421
12422 * i386-bsd-nat.c (gdb_ptrace): New.
12423 * (i386bsd_fetch_inferior_registers,
12424 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12425 * (i386bsd_fetch_inferior_registers,
12426 i386bsd_store_inferior_registers) Use gdb_ptrace.
12427
12428 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12429
12430 * amd64-bsd-nat.c (gdb_ptrace): New.
12431 * (amd64bsd_fetch_inferior_registers,
12432 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12433 * (amd64bsd_fetch_inferior_registers,
12434 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12435
12436 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12437
12438 * user-regs.c (user_reg::read): Rename to...
12439 (user_reg::xread): ...this.
12440 * (append_user_reg): Rename argument `read' to `xread'.
12441 * (user_reg_add_builtin): Likewise.
12442 * (user_reg_add): Likewise.
12443 * (value_of_user_reg): Likewise.
12444
12445 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12446
12447 * sparc-nat.c (gdb_ptrace): New.
12448 * sparc-nat.c (sparc_fetch_inferior_registers)
12449 (sparc_store_inferior_registers) Remove obsolete comment.
12450 * sparc-nat.c (sparc_fetch_inferior_registers)
12451 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12452 * sparc-nat.c (sparc_fetch_inferior_registers)
12453 (sparc_store_inferior_registers) Use gdb_ptrace.
12454
12455 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12456
12457 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12458 it to the ptrace call.
12459 * sh-nbsd-nat.c (store_registers): Likewise.
12460
12461 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12462
12463 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12464 nbsd_nat_target instead of inf_ptrace_target.
12465 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12466 nbsd_nat_target.
12467
12468 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12469
12470 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12471
12472 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12473
12474 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12475 <sys/sysctl.h>.
12476 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12477
12478 2020-03-17 Tom de Vries <tdevries@suse.de>
12479
12480 PR gdb/23710
12481 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12482 fields.
12483 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12484 fields.
12485 (process_imported_unit_die): Skip import of c++ CUs.
12486
12487 2020-03-16 Tom Tromey <tom@tromey.com>
12488
12489 * p-valprint.c (pascal_object_print_value): Initialize
12490 base_value.
12491
12492 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12493 Shahab Vahedi <shahab@synopsys.com>
12494
12495 * Makefile.in: Add arch/arc.o
12496 * configure.tgt: Likewise.
12497 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12498 (_initialize_arc_tdep): Don't initialize old target descriptions.
12499 (arc_read_description): New function to cache target descriptions.
12500 * arc-tdep.h (arc_read_description): Add proto type.
12501 * arch/arc.c: New file.
12502 * arch/arc.h: Likewise.
12503 * features/Makefile: Replace old target descriptions with new.
12504 * features/arc-arcompact.c: Remove.
12505 * features/arc-arcompact.xml: Likewise.
12506 * features/arc-v2.c: Likewise
12507 * features/arc-v2.xml: Likewise
12508 * features/arc/aux-arcompact.xml: New file.
12509 * features/arc/aux-v2.xml: Likewise.
12510 * features/arc/core-arcompact.xml: Likewise.
12511 * features/arc/core-v2.xml: Likewise.
12512 * features/arc/aux-arcompact.c: Generate.
12513 * features/arc/aux-v2.c: Likewise.
12514 * features/arc/core-arcompact.c: Likewise.
12515 * features/arc/core-v2.c: Likewise.
12516 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12517
12518 2020-03-16 Tom Tromey <tromey@adacore.com>
12519
12520 PR gdb/25663:
12521 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12522 putting value into bcache.
12523
12524 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12525
12526 PR gdb/21500
12527 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12528 to...
12529 (amd64_windows_init_abi_common): ... this. Don't set size of
12530 long type.
12531 (amd64_windows_init_abi): New function.
12532 (amd64_cygwin_init_abi): New function.
12533 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12534 the Cygwin OS ABI.
12535 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12536 comment.
12537
12538 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12539
12540 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12541 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12542 (pe_import_directory_entry): New struct type.
12543 (is_linked_with_cygwin_dll): New function.
12544 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12545 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12546 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12547
12548 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12551 i386_cygwin_core_osabi_sniffer.
12552
12553 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12554
12555 * i386-cygwin-tdep.c: Rename to...
12556 * i386-windows-tdep.c: ... this.
12557 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12558 i386-windows-tdep.c.
12559 * configure.tgt: Likewise.
12560
12561 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12562
12563 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12564 * osabi.c (gdb_osabi_names): Add "Windows".
12565 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12566 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12567 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12568 i386_cygwin_osabi_sniffer.
12569 (_initialize_i386_cygwin_tdep): Register OS ABI
12570 GDB_OSABI_WINDOWS for i386.
12571 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12572 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12573 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12574 for x86-64.
12575 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12576 when the target matches '*-*-mingw*'.
12577
12578 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12579
12580 * defs.h (enum gdb_osabi): Move to...
12581 * osabi.h (enum gdb_osabi): ... here.
12582 * gdbarch.sh: Include osabi.h in gdbarch.h.
12583 * gdbarch.h: Re-generate.
12584
12585 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12586
12587 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12588 function.
12589 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12590
12591 2020-03-14 Tom Tromey <tom@tromey.com>
12592
12593 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12594 for C++.
12595 (c_type_print_modifier): Likewise. Add "language" parameter.
12596 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12597 (c_type_print_base_1): Update.
12598 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12599 constants.
12600 * type-stack.c (type_stack::insert): Handle tp_atomic and
12601 tp_restrict.
12602 (type_stack::follow_type_instance_flags): Likewise.
12603 (type_stack::follow_types): Likewise. Merge type-following code.
12604 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12605 (space_identifier, cv_with_space_id)
12606 (const_or_volatile_or_space_identifier_noopt)
12607 (const_or_volatile_or_space_identifier): Remove.
12608 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12609 rules.
12610 (ptr_operator, typebase): Update.
12611 (enum token_flag) <FLAG_C>: New constant.
12612 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12613 "_Atomic".
12614 (lex_one_token): Handle FLAG_C.
12615
12616 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12617
12618 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12619 it to the ptrace call.
12620 * m68k-bsd-nat.c (store_registers): Likewise.
12621
12622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12623
12624 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12625 gdb_byte *.
12626 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12627 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12628 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12629
12630 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12631
12632 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12633 nbsd_nat_target instead of inf_ptrace_target.
12634 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12635 nbsd_nat_target.
12636
12637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12638
12639 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12640 register_t.
12641
12642 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12643
12644 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12645 it to the ptrace call.
12646 * alpha-bsd-nat.c (store_registers): Likewise.
12647
12648 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12649
12650 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12651 includes.
12652 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12653 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12654 fill_fpregset): Likewise.
12655
12656 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12657
12658 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12659 nbsd_nat_target instead of inf_ptrace_target.
12660 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12661 nbsd_nat_target.
12662
12663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12664
12665 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12666 register_t.
12667
12668 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12669
12670 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12671 it to the ptrace call.
12672 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12673 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12674 * arm-nbsd-nat.c (store_register): Likewise.
12675 * arm-nbsd-nat.c (store_regs): Likewise.
12676 * arm-nbsd-nat.c (store_fp_register): Likewise.
12677 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12678
12679 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12680
12681 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12682 nbsd_nat_target instead of inf_ptrace_target.
12683 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12684 nbsd_nat_target.
12685
12686 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12687
12688 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12689 it to the ptrace call.
12690 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12691
12692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12693
12694 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12695 it to the ptrace call.
12696 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12697
12698 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12699
12700 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12701 gdb_byte *.
12702 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12703
12704 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12705
12706 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12707 instead of inf_ptrace_target.
12708 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12709 nbsd_nat_target.
12710
12711 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12712
12713 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12714 register_t.
12715
12716 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12717
12718 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12719 register_t.
12720
12721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12722
12723 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12724 register_t.
12725
12726 2020-03-13 Tom Tromey <tom@tromey.com>
12727
12728 * value.h (val_print): Don't declare.
12729 * valprint.h (val_print_array_elements)
12730 (val_print_scalar_formatted, generic_val_print): Don't declare.
12731 * valprint.c (generic_val_print_array): Take a struct value.
12732 (generic_val_print_ptr, generic_val_print_memberptr)
12733 (generic_val_print_bool, generic_val_print_int)
12734 (generic_val_print_char, generic_val_print_complex)
12735 (generic_val_print): Remove.
12736 (generic_value_print): Update.
12737 (do_val_print): Remove unused parameters. Don't call
12738 la_val_print.
12739 (val_print): Remove.
12740 (common_val_print): Update. Don't call value_check_printable.
12741 (val_print_scalar_formatted, val_print_array_elements): Remove.
12742 * rust-lang.c (rust_val_print): Remove.
12743 (rust_language_defn): Update.
12744 * p-valprint.c (pascal_val_print): Remove.
12745 (pascal_value_print_inner): Update.
12746 (pascal_object_print_val_fields, pascal_object_print_val):
12747 Remove.
12748 (pascal_object_print_static_field): Update.
12749 * p-lang.h (pascal_val_print): Don't declare.
12750 * p-lang.c (pascal_language_defn): Update.
12751 * opencl-lang.c (opencl_language_defn): Update.
12752 * objc-lang.c (objc_language_defn): Update.
12753 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12754 * m2-lang.h (m2_val_print): Don't declare.
12755 * m2-lang.c (m2_language_defn): Update.
12756 * language.h (struct language_defn) <la_val_print>: Remove.
12757 * language.c (unk_lang_value_print_inner): Rename. Change
12758 argument types.
12759 (unknown_language_defn, auto_language_defn): Update.
12760 * go-valprint.c (go_val_print): Remove.
12761 * go-lang.h (go_val_print): Don't declare.
12762 * go-lang.c (go_language_defn): Update.
12763 * f-valprint.c (f_val_print): Remove.
12764 * f-lang.h (f_value_print): Don't declare.
12765 * f-lang.c (f_language_defn): Update.
12766 * d-valprint.c (d_val_print): Remove.
12767 * d-lang.h (d_value_print): Don't declare.
12768 * d-lang.c (d_language_defn): Update.
12769 * cp-valprint.c (cp_print_value_fields)
12770 (cp_print_value_fields_rtti, cp_print_value): Remove.
12771 (cp_print_static_field): Update.
12772 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12773 (c_val_print_struct, c_val_print_union, c_val_print_int)
12774 (c_val_print_memberptr, c_val_print): Remove.
12775 * c-lang.h (c_val_print_array, cp_print_value_fields)
12776 (cp_print_value_fields_rtti): Don't declare.
12777 * c-lang.c (c_language_defn, cplus_language_defn)
12778 (asm_language_defn, minimal_language_defn): Update.
12779 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12780 (ada_val_print_enum): Take a struct value.
12781 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12782 (ada_val_print): Remove.
12783 (ada_value_print_1): Update.
12784 (printable_val_type): Remove.
12785 * ada-lang.h (ada_val_print): Don't declare.
12786 * ada-lang.c (ada_language_defn): Update.
12787
12788 2020-03-13 Tom Tromey <tom@tromey.com>
12789
12790 * valprint.c (do_val_print): Update.
12791 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12792 a struct value.
12793 (value_to_value_object_no_release): Declare.
12794 * python/py-value.c (value_to_value_object_no_release): New
12795 function.
12796 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12797 struct value.
12798 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12799 function.
12800 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12801 a struct value.
12802 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12803 Declare.
12804 (gdbscm_apply_val_pretty_printer): Take a struct value.
12805 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12806 value.
12807 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12808 value.
12809 * extension-priv.h (struct extension_language_ops)
12810 <apply_val_pretty_printer>: Take a struct value.
12811 * cp-valprint.c (cp_print_value): Create a struct value.
12812 (cp_print_value): Update.
12813
12814 2020-03-13 Tom Tromey <tom@tromey.com>
12815
12816 * ada-valprint.c (print_field_values): Call common_val_print.
12817
12818 2020-03-13 Tom Tromey <tom@tromey.com>
12819
12820 * ada-valprint.c (val_print_packed_array_elements): Remove
12821 bitoffset and val parameters. Call common_val_print.
12822 (ada_val_print_string): Remove offset, address, and original_value
12823 parameters.
12824 (ada_val_print_array): Update.
12825 (ada_value_print_array): New function.
12826 (ada_value_print_1): Call it.
12827
12828 2020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * ada-valprint.c (ada_value_print): Use common_val_print.
12831
12832 2020-03-13 Tom Tromey <tom@tromey.com>
12833
12834 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12835
12836 2020-03-13 Tom Tromey <tom@tromey.com>
12837
12838 * ada-valprint.c (ada_value_print_num): New function.
12839 (ada_value_print_1): Use it.
12840
12841 2020-03-13 Tom Tromey <tom@tromey.com>
12842
12843 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12844
12845 2020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * ada-valprint.c (ada_value_print_ptr): New function.
12848 (ada_value_print_1): Use it.
12849
12850 2020-03-13 Tom Tromey <tom@tromey.com>
12851
12852 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12853 call common_val_print.
12854 (ada_val_print_1): Update.
12855 (ada_value_print_1): New function.
12856 (ada_value_print_inner): Rewrite.
12857
12858 2020-03-13 Tom Tromey <tom@tromey.com>
12859
12860 * cp-valprint.c (cp_print_value_fields): Update.
12861 (cp_print_value): New function.
12862
12863 2020-03-13 Tom Tromey <tom@tromey.com>
12864
12865 * m2-valprint.c (m2_value_print_inner): Use
12866 cp_print_value_fields.
12867 * cp-valprint.c (cp_print_value_fields): New function.
12868 * c-valprint.c (c_value_print_struct): New function.
12869 (c_value_print_inner): Use c_value_print_struct.
12870 * c-lang.h (cp_print_value_fields): Declare.
12871
12872 2020-03-13 Tom Tromey <tom@tromey.com>
12873
12874 * c-valprint.c (c_value_print_array): New function.
12875 (c_value_print_inner): Use it.
12876
12877 2020-03-13 Tom Tromey <tom@tromey.com>
12878
12879 * c-valprint.c (c_value_print_memberptr): New function.
12880 (c_value_print_inner): Use it.
12881
12882 2020-03-13 Tom Tromey <tom@tromey.com>
12883
12884 * c-valprint.c (c_value_print_int): New function.
12885 (c_value_print_inner): Use it.
12886
12887 2020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * c-valprint.c (c_value_print_ptr): New function.
12890 (c_value_print_inner): Use it.
12891
12892 2020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * c-valprint.c (c_value_print_inner): Rewrite.
12895
12896 2020-03-13 Tom Tromey <tom@tromey.com>
12897
12898 * valprint.c (generic_value_print_complex): New function.
12899 (generic_value_print): Use it.
12900
12901 2020-03-13 Tom Tromey <tom@tromey.com>
12902
12903 * valprint.c (generic_val_print_float): Don't call
12904 val_print_scalar_formatted.
12905 (generic_val_print, generic_value_print): Update.
12906
12907 2020-03-13 Tom Tromey <tom@tromey.com>
12908
12909 * valprint.c (generic_value_print_char): New function
12910 (generic_value_print): Use it.
12911
12912 2020-03-13 Tom Tromey <tom@tromey.com>
12913
12914 * valprint.c (generic_value_print_int): New function.
12915 (generic_value_print): Use it.
12916
12917 2020-03-13 Tom Tromey <tom@tromey.com>
12918
12919 * valprint.c (generic_value_print_bool): New function.
12920 (generic_value_print): Use it.
12921
12922 2020-03-13 Tom Tromey <tom@tromey.com>
12923
12924 * valprint.c (generic_val_print_func): Simplify.
12925 (generic_val_print, generic_value_print): Update.
12926
12927 2020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * valprint.c (generic_val_print_flags): Remove.
12930 (generic_val_print, generic_value_print): Update.
12931 (val_print_type_code_flags): Add original_value parameter.
12932
12933 2020-03-13 Tom Tromey <tom@tromey.com>
12934
12935 * valprint.c (generic_val_print): Update.
12936 (generic_value_print): Update.
12937 * valprint.c (generic_val_print_enum): Don't call
12938 val_print_scalar_formatted.
12939
12940 2020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12943 * valprint.c (generic_value_print_ptr): New function.
12944
12945 2020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * valprint.c (generic_value_print): Rewrite.
12948
12949 2020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * p-valprint.c (pascal_object_print_value_fields)
12952 (pascal_object_print_value): New functions.
12953
12954 2020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * p-valprint.c (pascal_value_print_inner): Rewrite.
12957
12958 2020-03-13 Tom Tromey <tom@tromey.com>
12959
12960 * f-valprint.c (f_value_print_innner): Rewrite.
12961
12962 2020-03-13 Tom Tromey <tom@tromey.com>
12963
12964 * m2-valprint.c (m2_print_unbounded_array): New overload.
12965 (m2_print_unbounded_array): Update.
12966 (m2_print_array_contents): Take a struct value.
12967 (m2_value_print_inner): Rewrite.
12968
12969 2020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12972 (d_value_print_inner): New function.
12973 * d-lang.h (d_value_print_inner): Declare.
12974 * d-lang.c (d_language_defn): Use d_value_print_inner.
12975
12976 2020-03-13 Tom Tromey <tom@tromey.com>
12977
12978 * go-valprint.c (go_value_print_inner): New function.
12979 * go-lang.h (go_value_print_inner): Declare.
12980 * go-lang.c (go_language_defn): Use go_value_print_inner.
12981
12982 2020-03-13 Tom Tromey <tom@tromey.com>
12983
12984 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12985 API.
12986 (rust_val_print): Rewrite.
12987 (rust_value_print_inner): New function, from rust_val_print.
12988 (rust_language_defn): Use rust_value_print_inner.
12989
12990 2020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * ada-valprint.c (ada_value_print_inner): New function.
12993 * ada-lang.h (ada_value_print_inner): Declare.
12994 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12995
12996 2020-03-13 Tom Tromey <tom@tromey.com>
12997
12998 * f-valprint.c (f_value_print_innner): New function.
12999 * f-lang.h (f_value_print_innner): Declare.
13000 * f-lang.c (f_language_defn): Use f_value_print_innner.
13001
13002 2020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * p-valprint.c (pascal_value_print_inner): New function.
13005 * p-lang.h (pascal_value_print_inner): Declare.
13006 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13007
13008 2020-03-13 Tom Tromey <tom@tromey.com>
13009
13010 * m2-valprint.c (m2_value_print_inner): New function.
13011 * m2-lang.h (m2_value_print_inner): Declare.
13012 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13013
13014 2020-03-13 Tom Tromey <tom@tromey.com>
13015
13016 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13017 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13018 * c-valprint.c (c_value_print_inner): New function.
13019 * c-lang.h (c_value_print_inner): Declare.
13020 * c-lang.c (c_language_defn, cplus_language_defn)
13021 (asm_language_defn, minimal_language_defn): Use
13022 c_value_print_inner.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * p-valprint.c (pascal_object_print_value_fields): Now static.
13027 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13028
13029 2020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * c-valprint.c (c_val_print_array): Simplify.
13032
13033 2020-03-13 Tom Tromey <tom@tromey.com>
13034
13035 * valprint.c (value_print_array_elements): New function.
13036 * valprint.h (value_print_array_elements): Declare.
13037
13038 2020-03-13 Tom Tromey <tom@tromey.com>
13039
13040 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13041 * mips-tdep.c (mips_print_register): Use
13042 value_print_scalar_formatted.
13043
13044 2020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * valprint.h (value_print_scalar_formatted): Declare.
13047 * valprint.c (value_print_scalar_formatted): New function.
13048
13049 2020-03-13 Tom Tromey <tom@tromey.com>
13050
13051 * valprint.h (generic_value_print): Declare.
13052 * valprint.c (generic_value_print): New function.
13053
13054 2020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * valprint.c (do_val_print): Call la_value_print_inner, if
13057 available.
13058 * rust-lang.c (rust_language_defn): Update.
13059 * p-lang.c (pascal_language_defn): Update.
13060 * opencl-lang.c (opencl_language_defn): Update.
13061 * objc-lang.c (objc_language_defn): Update.
13062 * m2-lang.c (m2_language_defn): Update.
13063 * language.h (struct language_defn) <la_value_print_inner>: New
13064 member.
13065 * language.c (unknown_language_defn, auto_language_defn): Update.
13066 * go-lang.c (go_language_defn): Update.
13067 * f-lang.c (f_language_defn): Update.
13068 * d-lang.c (d_language_defn): Update.
13069 * c-lang.c (c_language_defn, cplus_language_defn)
13070 (asm_language_defn, minimal_language_defn): Update.
13071 * ada-lang.c (ada_language_defn): Update.
13072
13073 2020-03-13 Tom Tromey <tom@tromey.com>
13074
13075 * c-valprint.c (c_value_print): Use common_val_print.
13076
13077 2020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13080
13081 2020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * f-valprint.c (f77_print_array_1, f_val_print): Use
13084 common_val_print.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * riscv-tdep.c (riscv_print_one_register_info): Use
13089 common_val_print.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * mi/mi-main.c (output_register): Use common_val_print.
13094
13095 2020-03-13 Tom Tromey <tom@tromey.com>
13096
13097 * infcmd.c (default_print_one_register_info): Use
13098 common_val_print.
13099
13100 2020-03-13 Tom Tromey <tom@tromey.com>
13101
13102 * valprint.h (common_val_print_checked): Declare.
13103 * valprint.c (common_val_print_checked): New function.
13104 * stack.c (print_frame_arg): Use common_val_print_checked.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.c (do_val_print): New function, from val_print.
13109 (val_print): Use do_val_print.
13110 (common_val_print): Use do_val_print.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * valprint.c (value_print): Use scoped_value_mark.
13115
13116 2020-03-13 Tom de Vries <tdevries@suse.de>
13117
13118 PR symtab/25646
13119 * psymtab.c (partial_symtab::partial_symtab): Don't set
13120 globals_offset and statics_offset. Push element onto
13121 current_global_psymbols and current_static_psymbols stacks.
13122 (concat): New function.
13123 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13124 element from current_global_psymbols and current_static_psymbols
13125 stacks. Concat popped elements to global_psymbols and
13126 static_symbols.
13127 (add_psymbol_to_list): Use current_global_psymbols and
13128 current_static_psymbols stacks.
13129 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13130 current_static_psymbols fields.
13131
13132 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13133
13134 * corelow.c (sniff_core_bfd): Remove.
13135 (class core_target) <m_core_vec>: Remove.
13136 (core_target::core_target): Update.
13137 (core_file_fns): Remove.
13138 (deprecated_add_core_fns): Remove.
13139 (default_core_sniffer): Remove.
13140 (sniff_core_bfd): Remove.
13141 (default_check_format): Remove.
13142 (gdb_check_format): Remove.
13143 (core_target_open): Update.
13144 (core_target::get_core_register_section): Update.
13145 (get_core_registers_cb): Update.
13146 (core_target::fetch_registers): Update.
13147 * gdbcore.h (struct core_fns): Remove.
13148 (deprecated_add_core_fns): Remove.
13149 (default_core_sniffer): Remove.
13150 (default_check_format): Remove.
13151
13152 2020-03-12 Tom Tromey <tom@tromey.com>
13153
13154 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13155 CORE_ADDR.
13156 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13157
13158 2020-03-12 Tom Tromey <tom@tromey.com>
13159
13160 * remote.c (remote_target::download_tracepoint)
13161 (remote_target::enable_tracepoint)
13162 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13163 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13164 sprintf_vma.
13165
13166 2020-03-12 Tom Tromey <tom@tromey.com>
13167
13168 * symfile-mem.c: Update CORE_ADDR size assert.
13169
13170 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13171
13172 * selftest.m4: Move to gdbsupport/.
13173 * acinclude.m4: Update path to selftest.m4.
13174
13175 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13176
13177 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13178 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13179 gdbarch-selfselftests.c and selftest-arch.c.
13180 (SUBDIR_UNITTESTS_OBS): Rename to...
13181 (SELFTESTS_OBS): ... this.
13182 (COMMON_SFILES): Remove disasm-selftests.c and
13183 gdbarch-selftests.c.
13184 * configure.ac: Don't add selftest-arch.{c,o} to
13185 CONFIG_{SRCS,OBS}.
13186 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13187 preprocessor conditions.
13188
13189 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13190
13191 * configure.ac: Don't source bfd/development.sh.
13192 * selftest.m4: Modify comment.
13193 * configure: Re-generate.
13194
13195 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13196
13197 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13198 not "true" or "false".
13199 * configure: Re-generate.
13200
13201 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13202
13203 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13204 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13205 renamed to arm_nbsd_supply_gregset.
13206 (fetch_register): Update to call arm_nbsd_supply_gregset.
13207 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13208 (arm_netbsd_nat_target::fetch_registers): Update.
13209 (fetch_elfcore_registers): Removed.
13210 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13211 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13212 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13213 not require NetBSD system headers.
13214 (arm_nbsd_regset): New struct.
13215 (arm_nbsd_iterate_over_regset_sections): New function.
13216 (arm_netbsd_init_abi_common): Updated to call
13217 set_gdbarch_iterate_over_regset_sections.
13218 * arm-nbsd-tdep.h: New file.
13219
13220 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13221
13222 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13223 recursion.
13224
13225 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13226
13227 * configure: Re-generate.
13228
13229 2020-03-11 Tom Tromey <tromey@adacore.com>
13230
13231 * ada-typeprint.c (print_choices): Fix comment.
13232
13233 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13236 previous item in the list, when the list has no items.
13237
13238 2020-03-11 Tom de Vries <tdevries@suse.de>
13239
13240 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13241 PROP_LOCLIST handling code.
13242
13243 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13244
13245 * buildsym-legacy.c (record_line): Pass extra parameter to
13246 record_line.
13247 * buildsym.c (buildsym_compunit::record_line): Take an extra
13248 parameter, reduce duplication in the line table, and record the
13249 is_stmt flag in the line table.
13250 * buildsym.h (buildsym_compunit::record_line): Add extra
13251 parameter.
13252 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13253 non-statement lines.
13254 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13255 this to the symtab builder.
13256 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13257 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13258 through to dwarf_record_line_1.
13259 * infrun.c (process_event_stop_test): When stepping, don't stop at
13260 a non-statement instruction, and only refresh the step info when
13261 we land in the middle of a line's range. Also add an extra
13262 comment.
13263 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13264 field.
13265 * record-btrace.c (btrace_find_line_range): Only record lines
13266 marked as is-statement.
13267 * stack.c (frame_show_address): Show the frame address if we are
13268 in a non-statement sal.
13269 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13270 (maintenance_print_one_line_table): Print a header for the is_stmt
13271 column, and include is_stmt information in the output.
13272 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13273 preference to non-statements.
13274 (find_pcs_for_symtab_line): Prefer is-statement entries.
13275 (find_line_common): Likewise.
13276 * symtab.h (struct linetable_entry): Add is_stmt field.
13277 (struct symtab_and_line): Likewise.
13278 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13279 arranging the line table.
13280
13281 2020-03-07 Tom de Vries <tdevries@suse.de>
13282
13283 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13284 DIE.
13285
13286 2020-03-07 Tom Tromey <tom@tromey.com>
13287
13288 * valops.c (value_literal_complex): Remove obsolete comment.
13289 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13290 comment.
13291
13292 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13293
13294 * infrun.h: Forward-declare thread_info.
13295 (set_step_info): Add thread_info parameter, add doc.
13296 * infrun.c (set_step_info): Add thread_info parameter, move doc
13297 to header.
13298 * infrun.c (process_event_stop_test): Pass thread to
13299 set_step_info call.
13300 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13301 set_step_info.
13302 (prepare_one_step): Add thread_info parameter, pass it to
13303 set_step_frame and prepare_one_step (recursive) call.
13304 (step_1): Pass thread to prepare_one_step call.
13305 (step_command_fsm::should_stop): Pass thread to
13306 prepare_one_step.
13307 (until_next_fsm): Pass thread to set_step_frame call.
13308 (finish_command): Pass thread to set_step_info call.
13309
13310 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13311
13312 * windows-tdep.c (windows_solib_create_inferior_hook):
13313 Check if inferior is running.
13314
13315 2020-03-06 Tom de Vries <tdevries@suse.de>
13316
13317 * NEWS: Fix "the the".
13318 * ctfread.c: Same.
13319
13320 2020-03-06 Tom de Vries <tdevries@suse.de>
13321
13322 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13323
13324 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13325
13326 * .dir-locals.el: Add a comment referencing the other copies of
13327 this file.
13328
13329 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13330
13331 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13332 psargs.
13333
13334 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13335
13336 * .gitattributes: New file.
13337
13338 2020-03-04 Tom Tromey <tom@tromey.com>
13339
13340 * symmisc.c (print_symbol_bcache_statistics)
13341 (print_objfile_statistics): Update.
13342 * symfile.c (allocate_symtab): Use intern.
13343 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13344 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13345 macro_cache>: Remove.
13346 <string_cache>: New member.
13347 (struct objfile) <intern>: New methods.
13348 * elfread.c (elf_symtab_read): Use intern.
13349 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13350 (dwarf2_compute_name, dwarf2_physname)
13351 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13352 names.
13353 (guess_partial_die_structure_name): Update.
13354 (partial_die_info::fixup): Intern name.
13355 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13356 name.
13357 (dwarf2_name): Intern name. Update.
13358 * buildsym.c (buildsym_compunit::get_macro_table): Use
13359 string_cache.
13360
13361 2020-03-04 Tom Tromey <tom@tromey.com>
13362
13363 * jit.c (bfd_open_from_target_memory): Make "target" const.
13364 * corefile.c (gnutarget): Now const.
13365 * gdbcore.h (gnutarget): Now const.
13366
13367 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13368
13369 * NEWS: Mention support for WOW64 processes.
13370 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13371 (amd64_windows_segment_register_p): Remove static.
13372 (_initialize_amd64_windows_nat): Update.
13373 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13374 * i386-windows-nat.c (context_offset): Update.
13375 (i386_mappings): Rename and remove static.
13376 (i386_windows_segment_register_p): Remove static.
13377 (_initialize_i386_windows_nat): Update.
13378 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13379 (STATUS_WX86_SINGLE_STEP): New macro.
13380 (EnumProcessModulesEx): New macro.
13381 (Wow64SuspendThread): New macro.
13382 (Wow64GetThreadContext): New macro.
13383 (Wow64SetThreadContext): New macro.
13384 (Wow64GetThreadSelectorEntry): New macro.
13385 (windows_set_context_register_offsets): Add static.
13386 (windows_set_segment_register_p): Likewise.
13387 (windows_add_thread): Adapt for WOW64 processes.
13388 (windows_fetch_one_register): Likewise.
13389 (windows_nat_target::fetch_registers): Likewise.
13390 (windows_store_one_register): Likewise.
13391 (display_selector): Likewise.
13392 (display_selectors): Likewise.
13393 (handle_exception): Likewise.
13394 (windows_continue): Likewise.
13395 (windows_nat_target::resume): Likewise.
13396 (windows_add_all_dlls): Likewise.
13397 (do_initial_windows_stuff): Likewise.
13398 (windows_nat_target::attach): Likewise.
13399 (windows_get_exec_module_filename): Likewise.
13400 (windows_nat_target::create_inferior): Likewise.
13401 (windows_xfer_siginfo): Likewise.
13402 (_initialize_loadable): Initialize Wow64SuspendThread,
13403 Wow64GetThreadContext, Wow64SetThreadContext,
13404 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13405 * windows-nat.h (windows_set_context_register_offsets):
13406 Remove declaration.
13407 (windows_set_segment_register_p): Likewise.
13408 (i386_windows_segment_register_p): Add declaration.
13409 (amd64_windows_segment_register_p): Likewise.
13410
13411 2020-03-04 Luis Machado <luis.machado@linaro.org>
13412
13413 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13414 in "info registers" for AArch64/ARM.
13415
13416 The change caused "info registers" to not print GPR's.
13417
13418 gdb/ChangeLog:
13419
13420 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13421
13422 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13423 when reg->group is empty and reggroup is not.
13424
13425 2020-03-03 Tom Tromey <tromey@adacore.com>
13426
13427 * dwarf2/frame.c (struct dwarf2_frame_cache)
13428 <checked_tailcall_bottom, entry_cfa_sp_offset,
13429 entry_cfa_sp_offset_p>: Remove members.
13430 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13431 (dwarf2_frame_prev_register): Don't call
13432 dwarf2_tailcall_sniffer_first.
13433 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13434 * frame-unwind.c (add_unwinder): New fuction.
13435 (frame_unwind_init): Use it. Add tailcall unwinder.
13436
13437 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13438 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13439
13440 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13441 value should be printed as true.
13442
13443 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13444
13445 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13446 (windows_init_abi): Set and use windows_so_ops.
13447
13448 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13449
13450 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13451 when verifying if dealing with a convenience variable.
13452
13453 2020-03-03 Luis Machado <luis.machado@linaro.org>
13454
13455 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13456
13457 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13458
13459 * infrun.c (gdbarch_supports_displaced_stepping): New.
13460 (use_displaced_stepping): Break up conditions in smaller pieces.
13461 Use gdbarch_supports_displaced_stepping.
13462 (displaced_step_prepare_throw): Use
13463 gdbarch_supports_displaced_stepping.
13464
13465 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13466
13467 * NEWS: Mention new behaviour of the history filename.
13468 * top.c (write_history_p): Add comment.
13469 (show_write_history_p): Add header comment, give a different
13470 message when history writing is on, but the history filename is
13471 empty.
13472 (history_filename): Add comment.
13473 (history_filename_empty): New function.
13474 (show_history_filename): Add header comment, give a different
13475 message when the filename is empty.
13476 (init_history): Compare history_filename against nullptr, and only
13477 read history if the filename is not empty.
13478 (set_history_filename): Add header comment, and only make
13479 non-empty filenames absolute.
13480 (init_main): Make the filename argument to 'set history filename'
13481 optional.
13482
13483 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13484
13485 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13486 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13487 (fetch_fp_register): Update.
13488 (fetch_fp_regs): Update.
13489 (store_fp_register): Update.
13490 (store_fp_regs): Update.
13491 (arm_netbsd_nat_target::read_description): New function.
13492 (fetch_elfcore_registers): Update.
13493
13494 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13495
13496 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13497 general_thread if the stop reply is missing a thread-id.
13498 (remote_target::process_stop_reply): Use the first non-exited
13499 thread if the target didn't pass a thread-id.
13500 * infrun.c (do_target_wait): Move call to
13501 switch_to_inferior_no_thread to ....
13502 (do_target_wait_1): ... here.
13503
13504 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13505
13506 * debuginfod-support.c: Include defs.h first.
13507
13508 2020-02-28 Tom de Vries <tdevries@suse.de>
13509
13510 * symfile.c (set_initial_language): Use default language for lookup.
13511
13512 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13513
13514 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13515 reader variable, pass `this` to read_cutu_die_from_dwo.
13516
13517 2020-02-27 Aaron Merey <amerey@redhat.com>
13518
13519 * source.c (open_source_file): Check for nullptr when computing
13520 srcpath.
13521
13522 2020-02-27 Tom Tromey <tromey@adacore.com>
13523
13524 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13525 member.
13526 (dwarf2_add_field): Don't update nfields.
13527 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13528
13529 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13530
13531 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13532 abs.
13533
13534 2020-02-26 Tom Tromey <tom@tromey.com>
13535
13536 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13537 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13538 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13539 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13540 per_cu_data.
13541
13542 2020-02-26 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2/index-write.c (psym_index_map): Change type.
13545 (add_address_entry_worker, write_one_signatured_type)
13546 (recursively_count_psymbols, recursively_write_psymbols)
13547 (class debug_names, psyms_seen_size, write_gdbindex)
13548 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13549
13550 2020-02-26 Aaron Merey <amerey@redhat.com>
13551
13552 * Makefile.in: Handle optional debuginfod support.
13553 * NEWS: Update.
13554 * README: Add --with-debuginfod summary.
13555 * config.in: Regenerate.
13556 * configure: Regenerate.
13557 * configure.ac: Handle optional debuginfod support.
13558 * debuginfod-support.c: debuginfod helper functions.
13559 * debuginfod-support.h: Ditto.
13560 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13561 summary.
13562 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13563 when a dwz file cannot be found.
13564 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13565 debuginfo file cannot be found.
13566 * source.c (open_source_file): Query debuginfod servers when a
13567 source file cannot be found.
13568 * top.c (print_gdb_configuration): Include
13569 --{with,without}-debuginfod in the output.
13570
13571 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13572
13573 * thread.c (thr_try_catch_cmd): Print thread name.
13574
13575 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13576
13577 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13578 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13579 dwarf2_fetch_die_type_sect_off): Move to...
13580 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13581 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13582 dwarf2_fetch_die_type_sect_off): ... here.
13583 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13584 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13585 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13586
13587 2020-02-26 Tom de Vries <tdevries@suse.de>
13588
13589 PR gdb/25603
13590 * symfile.c (set_initial_language): Exit-early if
13591 language_mode == language_mode_manual.
13592
13593 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13594
13595 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13596 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13597 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13598
13599 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13600
13601 * gdbtypes.c (create_array_type_with_stride): Handle negative
13602 array strides.
13603 * valarith.c (value_subscripted_rvalue): Likewise.
13604
13605 2020-02-25 Luis Machado <luis.machado@linaro.org>
13606
13607 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13608
13609 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13610
13611 * loc.h (dwarf2_get_die_type): Move to...
13612 * read.h (dwarf2_get_die_type): ... here.
13613 * read.c (dwarf2_get_die_type): Move doc to header.
13614
13615 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13616
13617 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13618 'gnulib/Makefile.in' to the list.
13619
13620 2020-02-24 Tom Tromey <tom@tromey.com>
13621
13622 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13623 Remove.
13624 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13625 XOBNEWVEC.
13626
13627 2020-02-24 Tom Tromey <tom@tromey.com>
13628
13629 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13630 New method.
13631 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13632 (dw2_do_instantiate_symtab, dw2_get_file_names)
13633 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13634
13635 2020-02-24 Tom Tromey <tom@tromey.com>
13636
13637 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13638 make_scoped_restore.
13639 (dwarf2_psymtab::read_symtab): Don't clear
13640 reading_partial_symbols.
13641
13642 2020-02-24 Tom de Vries <tdevries@suse.de>
13643
13644 PR gdb/25592
13645 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13646
13647 2020-02-24 Tom de Vries <tdevries@suse.de>
13648
13649 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13650 commands layout next/prev/regs.
13651
13652 2020-02-22 Tom Tromey <tom@tromey.com>
13653
13654 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13655 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13656
13657 2020-02-22 Tom Tromey <tom@tromey.com>
13658
13659 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13660
13661 2020-02-22 Tom Tromey <tom@tromey.com>
13662
13663 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13664 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13665 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13666 * tui/tui.c (_initialize_tui): Add usage text.
13667
13668 2020-02-22 Tom Tromey <tom@tromey.com>
13669
13670 * tui/tui-win.c (tui_set_focus_command)
13671 (tui_set_win_height_command): Use error_no_arg.
13672 (_initialize_tui_win): Update help text.
13673 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13674
13675 2020-02-22 Tom Tromey <tom@tromey.com>
13676
13677 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13678 * tui/tui-disasm.h (struct tui_disasm_window)
13679 <display_start_addr>: Declare.
13680 * tui/tui-source.h (struct tui_source_window)
13681 <display_start_addr>: Declare.
13682 * tui/tui-winsource.h (struct tui_source_window_base)
13683 <show_source_line, display_start_addr>: New methods.
13684 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13685 Rename and move to protected section.
13686 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13687 (tui_source_window_base::do_erase_source_content): Update.
13688 (tui_source_window_base::show_source_line): Now a method.
13689 (tui_source_window_base::show_source_content)
13690 (tui_source_window_base::tui_source_window_base)
13691 (tui_source_window_base::rerender)
13692 (tui_source_window_base::refill)
13693 (tui_source_window_base::do_scroll_horizontal)
13694 (tui_source_window_base::set_is_exec_point_at)
13695 (tui_source_window_base::update_breakpoint_info)
13696 (tui_source_window_base::update_exec_info): Update.
13697 * tui/tui-source.c (tui_source_window::set_contents)
13698 (tui_source_window::showing_source_p)
13699 (tui_source_window::do_scroll_vertical)
13700 (tui_source_window::location_matches_p)
13701 (tui_source_window::line_is_displayed): Update.
13702 (tui_source_window::display_start_addr): New method.
13703 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13704 (tui_disasm_window::do_scroll_vertical)
13705 (tui_disasm_window::location_matches_p): Update.
13706 (tui_disasm_window::display_start_addr): New method.
13707
13708 2020-02-22 Tom Tromey <tom@tromey.com>
13709
13710 * NEWS: Add entry for gdb.register_window_type.
13711 * tui/tui-layout.h (window_factory): New typedef.
13712 (tui_register_window): Declare.
13713 * tui/tui-layout.c (saved_tui_windows): New global.
13714 (tui_apply_current_layout): Use it.
13715 (tui_register_window): New function.
13716 * python/python.c (do_start_initialization): Call
13717 gdbpy_initialize_tui.
13718 (python_GdbMethods): Add "register_window_type" function.
13719 * python/python-internal.h (gdbpy_register_tui_window)
13720 (gdbpy_initialize_tui): Declare.
13721 * python/py-tui.c: New file.
13722 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13723
13724 2020-02-22 Tom Tromey <tom@tromey.com>
13725
13726 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13727
13728 2020-02-22 Tom Tromey <tom@tromey.com>
13729
13730 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13731 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13732 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13733 (tui_set_win_focus_to): Move from tui-win.c.
13734
13735 2020-02-22 Tom Tromey <tom@tromey.com>
13736
13737 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13738 functions.
13739 (known_window_types): New global.
13740 (tui_get_window_by_name): Reimplement.
13741 (initialize_known_windows): New function.
13742 (validate_window_name): Rewrite.
13743 (_initialize_tui_layout): Call initialize_known_windows.
13744
13745 2020-02-22 Tom Tromey <tom@tromey.com>
13746
13747 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13748 Remove constants.
13749 * tui/tui-winsource.h (struct tui_source_window_base)
13750 <tui_source_window_base>: Remove parameter.
13751 * tui/tui-winsource.c
13752 (tui_source_window_base::tui_source_window_base): Remove
13753 parameter.
13754 (tui_source_window_base::refill): Update.
13755 * tui/tui-stack.h (struct tui_locator_window)
13756 <tui_locator_window>: Update.
13757 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13758 Default the constructor.
13759 * tui/tui-regs.h (struct tui_data_item_window)
13760 <tui_data_item_window>: Default the constructor.
13761 (struct tui_data_window) <tui_data_window>: Likewise.
13762 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13763 Default the constructor.
13764 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13765 Default the constructor.
13766 <type>: Remove.
13767 (struct tui_win_info) <tui_win_info>: Default the constructor.
13768 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13769 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13770 Default the constructor.
13771
13772 2020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13775 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13776 * tui/tui-win.c (tui_resize_all): Don't call
13777 tui_delete_invisible_windows.
13778 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13779 done.
13780 (tui_set_layout): Update.
13781 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13782 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13783 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13784
13785 2020-02-22 Tom Tromey <tom@tromey.com>
13786
13787 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13788 correctly.
13789
13790 2020-02-22 Tom Tromey <tom@tromey.com>
13791
13792 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13793
13794 2020-02-22 Tom Tromey <tom@tromey.com>
13795
13796 * tui/tui-winsource.h (struct tui_source_window_iterator)
13797 <inner_iterator>: New etytypedef.
13798 <tui_source_window_iterator>: Take "end" parameter.
13799 <tui_source_window_iterator>: Take iterator.
13800 <operator*, advance>: Update.
13801 <m_iter>: Change type.
13802 <m_end>: New field.
13803 (struct tui_source_windows) <begin, end>: Update.
13804 * tui/tui-layout.c (tui_windows): New global.
13805 (tui_apply_current_layout): Clear tui_windows.
13806 (tui_layout_window::apply): Update tui_windows.
13807 * tui/tui-data.h (tui_windows): Declare.
13808 (all_tui_windows): Now inline function.
13809 (class tui_window_iterator, struct all_tui_windows): Remove.
13810
13811 2020-02-22 Tom Tromey <tom@tromey.com>
13812
13813 PR tui/17850:
13814 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13815 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13816 "height" argument.
13817 (class tui_layout_window) <get_sizes>: Likewise.
13818 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13819 argument.
13820 <get_sizes>: Add "height" argument.
13821 <m_vertical>: New field.
13822 * tui/tui-layout.c (tui_layout_split::clone): Update.
13823 (tui_layout_split::get_sizes): Add "height" argument.
13824 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13825 (tui_new_layout_command): Parse "-horizontal".
13826 (_initialize_tui_layout): Update help string.
13827 (tui_layout_split::specification): Add "-horizontal" when needed.
13828 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13829 argument.
13830 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13831 New methods.
13832
13833 2020-02-22 Tom Tromey <tom@tromey.com>
13834
13835 * tui/tui-layout.h (enum tui_adjust_result): New.
13836 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13837 (class tui_layout_window) <adjust_size>: Return
13838 tui_adjust_result. Rewrite.
13839 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13840 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13841
13842 2020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13845 parameter and return types.
13846 (class tui_layout_base) <specification>: Add "depth".
13847 (class tui_layout_window) <specification>: Add "depth".
13848 (class tui_layout_split) <specification>: Add "depth".
13849 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13850 and return types.
13851 (tui_new_layout_command): Parse sub-layouts.
13852 (_initialize_tui_layout): Update help string.
13853 (tui_layout_window::specification): Add "depth".
13854 (add_layout_command): Update.
13855
13856 2020-02-22 Tom Tromey <tom@tromey.com>
13857
13858 * NEWS: Add "tui new-layout" item.
13859 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13860 Add new-layout command to help text.
13861 (validate_window_name): New function.
13862 (tui_new_layout_command): New function.
13863 (_initialize_tui_layout): Register "new-layout".
13864 (tui_layout_window::specification): New method.
13865 (tui_layout_window::specification): New method.
13866 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13867 method.
13868 (class tui_layout_window) <specification>: New method.
13869 (class tui_layout_split) <specification>: New method.
13870
13871 2020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13874 * tui/tui-win.c (window_name_completer): Update comment.
13875 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13876 Declare method.
13877 (class tui_layout_window) <replace_window>: Likewise.
13878 (class tui_layout_split) <replace_window>: Likewise.
13879 (tui_set_layout): Don't declare.
13880 (tui_set_initial_layout): Declare function.
13881 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13882 (asm_regs_layout): New globals.
13883 (tui_current_layout, show_layout): Remove.
13884 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13885 (find_layout, tui_apply_layout): New function.
13886 (layout_completer): Remove.
13887 (tui_next_layout): Reimplement.
13888 (tui_next_layout_command): New function.
13889 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13890 (tui_regs_layout): Reimplement.
13891 (tui_regs_layout_command): New function.
13892 (extract_display_start_addr): Rewrite.
13893 (next_layout, prev_layout): Remove.
13894 (tui_layout_window::replace_window): New method.
13895 (tui_layout_split::replace_window): New method.
13896 (destroy_layout): New function.
13897 (layout_list): New global.
13898 (add_layout_command): New function.
13899 (initialize_layouts): Update.
13900 (tui_layout_command): New function.
13901 (_initialize_tui_layout): Install "layout" commands.
13902 * tui/tui-data.h (enum tui_layout_type): Remove.
13903 (tui_current_layout): Don't declare.
13904
13905 2020-02-22 Tom Tromey <tom@tromey.com>
13906
13907 * tui/tui-regs.c (tui_reg_layout): Remove.
13908 (tui_reg_command): Use tui_regs_layout.
13909 * tui/tui-layout.h (tui_reg_command): Declare.
13910 * tui/tui-layout.c (tui_reg_command): New function.
13911
13912 2020-02-22 Tom Tromey <tom@tromey.com>
13913
13914 * tui/tui.c (tui_rl_delete_other_windows): Call
13915 tui_remove_some_windows.
13916 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13917 Declare method.
13918 (class tui_layout_window) <remove_windows>: New method.
13919 (class tui_layout_split) <remove_windows>: Declare.
13920 (tui_remove_some_windows): Declare.
13921 * tui/tui-layout.c (tui_remove_some_windows): New function.
13922 (tui_layout_split::remove_windows): New method.
13923
13924 2020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13927 * tui/tui-layout.h (tui_next_layout): Declare.
13928 * tui/tui-layout.c (tui_next_layout): New function.
13929
13930 2020-02-22 Tom Tromey <tom@tromey.com>
13931
13932 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13933 correct coordinates.
13934
13935 2020-02-22 Tom Tromey <tom@tromey.com>
13936
13937 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13938 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13939 DATA_WIN case.
13940
13941 2020-02-22 Tom Tromey <tom@tromey.com>
13942
13943 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13944 TUI_DISASM_WIN, not tui_win_list.
13945
13946 2020-02-22 Tom Tromey <tom@tromey.com>
13947
13948 * valprint.c (generic_val_print_enum_1)
13949 (val_print_type_code_flags): Style member names.
13950 * rust-lang.c (val_print_struct, rust_print_enum)
13951 (rust_print_struct_def, rust_internal_print_type): Style member
13952 names.
13953 * p-valprint.c (pascal_object_print_value_fields): Style member
13954 names. Only call fprintf_symbol_filtered for static members.
13955 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13956 * f-valprint.c (f_val_print): Style member names.
13957 * f-typeprint.c (f_type_print_base): Style member names.
13958 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13959 call fprintf_symbol_filtered for static members.
13960 (cp_print_class_member): Style member names.
13961 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13962 member names.
13963 * ada-valprint.c (ada_print_scalar): Style enum names.
13964 (ada_val_print_enum): Likewise.
13965 * ada-typeprint.c (print_enum_type): Style enum names.
13966
13967 2020-02-21 Tom Tromey <tom@tromey.com>
13968
13969 * psympriv.h (struct partial_symtab): Update comment.
13970
13971 2020-02-21 Tom Tromey <tromey@adacore.com>
13972
13973 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13974 type is CORE_ADDR.
13975
13976 2020-02-21 Tom de Vries <tdevries@suse.de>
13977
13978 PR gdb/25534
13979 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13980 if dependencies[i]->user != NULL.
13981
13982 2020-02-21 Ali Tamur <tamur@google.com>
13983
13984 * dwarf2/read.c (dwarf2_name): Add null check.
13985
13986 2020-02-20 Tom Tromey <tom@tromey.com>
13987
13988 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13989 ">=", in binary search.
13990 (dwarf2_find_containing_comp_unit): New overload.
13991 (run_test): New self-test.
13992 (_initialize_dwarf2_read): Register new test.
13993
13994 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13995
13996 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13997 * riscv-tdep.h: Likewise.
13998 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13999 rv32-only CSR.
14000 * features/riscv/64bit-csr.xml: Regenerated.
14001
14002 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14003 Tom Tromey <tom@tromey.com>
14004
14005 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14006 of 'fputc_unfiltered'.
14007 (putchar_unfiltered): Call 'fputc_unfiltered'.
14008 (fputc_unfiltered): Call 'fputs_unfiltered'.
14009
14010 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14011
14012 * config.in: Regenerate.
14013 * configure: Regenerate.
14014 * configure.ac: Add --with-python-libdir option.
14015 * main.c: Use WITH_PYTHON_LIBDIR.
14016
14017 2020-02-19 Tom Tromey <tom@tromey.com>
14018
14019 * symtab.c (general_symbol_info::compute_and_set_names): Use
14020 obstack_strndup. Simplify call to symbol_set_demangled_name.
14021
14022 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14023
14024 * dwarf2/read.c (allocate_signatured_type_table,
14025 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14026 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14027 Remove objfile parameter, update all callers.
14028
14029 2020-02-19 Doug Evans <dje@google.com>
14030
14031 PR rust/25535
14032 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14033 rust_enum_variant calculation.
14034
14035 2020-02-19 Tom Tromey <tromey@adacore.com>
14036
14037 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14038
14039 2020-02-19 Tom Tromey <tromey@adacore.com>
14040
14041 * ada-lang.c (cache_symbol): Use obstack_strdup.
14042
14043 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14044
14045 * configure: Regenerate.
14046
14047 2020-02-19 Tom Tromey <tromey@adacore.com>
14048
14049 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14050 NULL check.
14051
14052 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14053
14054 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14055
14056 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14057
14058 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14059 if GDBSERVER is not defined.
14060 (riscv_tdesc_cache): Likewise, also store const target_desc.
14061 (STATIC_IN_GDB): Define.
14062 (riscv_create_target_description): Update declaration with
14063 STATIC_IN_GDB.
14064 (riscv_lookup_target_description): New function, only define if
14065 GDBSERVER is not defined.
14066 * arch/riscv.h (riscv_create_target_description): Declare only
14067 when GDBSERVER is defined.
14068 (riscv_lookup_target_description): New declaration when GDBSERVER
14069 is not defined.
14070 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14071 (riscv_linux_read_features): ...this, and return
14072 riscv_gdbarch_features instead of target_desc.
14073 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14074 (riscv_linux_read_description): Rename to...
14075 (riscv_linux_read_features): ...this.
14076 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14077 Update to use riscv_gdbarch_features and
14078 riscv_lookup_target_description.
14079 * riscv-tdep.c (riscv_find_default_target_description): Use
14080 riscv_lookup_target_description instead of
14081 riscv_create_target_description.
14082
14083 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14084
14085 * valprint.c (generic_val_print_enum_1): When printing a flag
14086 enum with value 0 and there is no enumerator with value 0, print
14087 just "0" instead of "(unknown: 0x0)".
14088
14089 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14090
14091 * valprint.c (generic_val_print_enum_1): Print unknown part of
14092 flag enum in hex.
14093
14094 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14095
14096 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14097 flag enums to contain duplicate enumerators.
14098 * valprint.c (generic_val_print_enum_1): Update comment.
14099
14100 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14101
14102 * dwarf2/read.c: Include "count-one-bits.h".
14103 (update_enumeration_type_from_children): If an enumerator has
14104 multiple bits set, don't treat the enumeration as a "flag enum".
14105 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14106 of flag enums have 0 or 1 bit set.
14107
14108 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14109
14110 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14111 conversion.
14112 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14113 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14114 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14115 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14116 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14117
14118 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14119
14120 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14121
14122 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14123
14124 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14125 displaced_step_closure_up.
14126 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14127 (struct displaced_step_closure_up):
14128 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14129 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14130 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14131 Likewise.
14132 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14133 * gdbarch.c, gdbarch.h: Re-generate.
14134 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14135 displaced_step_closure_up.
14136 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14137 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14138 * infrun.h (displaced_step_closure_up): New type alias.
14139 (struct displaced_step_inferior_state) <step_closure>: Change
14140 type to displaced_step_closure_up.
14141 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14142 displaced_step_closure_up.
14143 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14144
14145 2020-02-14 Tom Tromey <tom@tromey.com>
14146
14147 * minidebug.c (gnu_debug_key): New global.
14148 (find_separate_debug_file_in_section): Use it.
14149
14150 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14151
14152 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14153 std::unique_ptr.
14154 * gdbarch.c: Re-generate.
14155 * gdbarch.h: Re-generate.
14156 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14157 change.
14158 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14159 type to std::unique_ptr.
14160 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14161 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14162 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14163 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14164 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14165 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14166 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14167 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14168 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14169
14170 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14171
14172 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14173 std::unique_ptr.
14174 (displaced_step_clear): Rename to...
14175 (displaced_step_reset): ... this. Just call displaced->reset ().
14176 (displaced_step_clear_cleanup): Rename to...
14177 (displaced_step_reset_cleanup): ... this.
14178 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14179 (displaced_step_fixup): Likewise.
14180 (resume_1): Likewise.
14181 (handle_inferior_event): Restore child's memory before calling
14182 displaced_step_fixup on the parent.
14183 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14184 to std::unique_ptr.
14185 <step_closure>: Change type to std::unique_ptr.
14186
14187 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14188
14189 * arm-tdep.c: Include count-one-bits.h.
14190 (cleanup_block_store_pc): Use count_one_bits.
14191 (cleanup_block_load_pc): Use count_one_bits.
14192 (arm_copy_block_xfer): Use count_one_bits.
14193 (thumb2_copy_block_xfer): Use count_one_bits.
14194 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14195 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14196 (thumb_get_next_pcs_raw): Use count_one_bits.
14197 (arm_get_next_pcs_raw): Use count_one_bits_l.
14198 * arch/arm.c (bitcount): Remove.
14199 * arch/arm.h (bitcount): Remove.
14200
14201 2020-02-14 Tom Tromey <tromey@adacore.com>
14202
14203 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14204 Update.
14205 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14206 * dwarf2/loc.c (call_site_find_chain_1): Return
14207 unique_xmalloc_ptr.
14208 (call_site_find_chain): Likewise.
14209
14210 2020-02-14 Richard Biener <rguenther@suse.de>
14211
14212 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14213 on expression with division operators.
14214
14215 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14216
14217 * MAINTAINERS (Write After Approval): Adding myself.
14218
14219 2020-02-12 Tom Tromey <tom@tromey.com>
14220
14221 * event-loop.c (event_data, gdb_event, event_handler_func):
14222 Remove.
14223
14224 2020-02-12 Tom Tromey <tom@tromey.com>
14225
14226 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14227 (dwarf2_frame_objfile_data): Add comment.
14228 (find_comp_unit, set_comp_unit): New functions.
14229 (dwarf2_frame_find_fde): Use find_comp_unit.
14230 (dwarf2_build_frame_info): Use set_comp_unit.
14231
14232 2020-02-12 Tom Tromey <tom@tromey.com>
14233
14234 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14235 (comp_unit): Don't initialize objfile.
14236 (execute_cfa_program): Add text_offset parameter.
14237 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14238 (dwarf2_frame_cache): Update.
14239 (dwarf2_build_frame_info): Don't set "objfile" member.
14240
14241 2020-02-12 Tom Tromey <tom@tromey.com>
14242
14243 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14244 (decode_frame_entry): Likewise.
14245 (dwarf2_build_frame_info): Update.
14246
14247 2020-02-12 Tom Tromey <tom@tromey.com>
14248
14249 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14250 (decode_frame_entry_1): Use the comp_unit obstack.
14251
14252 2020-02-12 Tom Tromey <tom@tromey.com>
14253
14254 * dwarf2/frame.c (struct comp_unit): Add initializers and
14255 constructor.
14256 (dwarf2_frame_objfile_data): Store a comp_unit.
14257 (dwarf2_frame_find_fde): Update.
14258 (dwarf2_build_frame_info): Use "new".
14259
14260 2020-02-12 Tom Tromey <tom@tromey.com>
14261
14262 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14263 (dwarf2_fde_table): Typedef for std::vector.
14264 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14265 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14266 (decode_frame_entry): Update.
14267 (dwarf2_build_frame_info): Use "new".
14268
14269 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14270
14271 * arm-tdep.c (arm_gdbarch_init): Update.
14272 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14273 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14274 have_neon, is_m>: Change to bool.
14275
14276 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14277
14278 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14279
14280 2020-02-12 Tom Tromey <tom@tromey.com>
14281
14282 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14283
14284 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14285
14286 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14287 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14288
14289 2020-02-11 Tom Tromey <tom@tromey.com>
14290
14291 * psymtab.h: Update comment.
14292
14293 2020-02-11 Tom Tromey <tom@tromey.com>
14294
14295 * gdb_obstack.h (struct auto_obstack): Use
14296 DISABLE_COPY_AND_ASSIGN.
14297
14298 2020-02-11 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/frame.h (struct objfile): Don't forward declare.
14301
14302 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14303
14304 * cris-tdep.c (cris_supply_gregset): Change signature to match
14305 what struct regset expects.
14306 (cris_regset): New struct.
14307 (fetch_core_registers): Remove.
14308 (cris_iterate_over_regset_sections): New function.
14309 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14310 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14311
14312 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14313
14314 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14315 registers.
14316
14317 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14318
14319 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14320
14321 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14322
14323 * configure: Re-generate.
14324
14325 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14326
14327 * configure: Re-generate.
14328
14329 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14330
14331 * acinclude: Update warning.m4 path.
14332 * warning.m4: Move to gdbsupport.
14333
14334 2020-02-11 Tom Tromey <tromey@adacore.com>
14335
14336 * remote.c (remote_console_output): Update.
14337 * printcmd.c (printf_command): Update.
14338 * event-loop.c (gdb_wait_for_event): Update.
14339 * linux-nat.c (sigchld_handler): Update.
14340 * remote-sim.c (gdb_os_write_stdout): Update.
14341 (gdb_os_flush_stdout): Update.
14342 (gdb_os_flush_stderr): Update.
14343 (gdb_os_write_stderr): Update.
14344 * exceptions.c (print_exception): Update.
14345 * remote-fileio.c (remote_fileio_func_read): Update.
14346 (remote_fileio_func_write): Update.
14347 * tui/tui.c (tui_enable): Update.
14348 * tui/tui-interp.c (tui_interp::init): Update.
14349 * utils.c (init_page_info): Update.
14350 (putchar_unfiltered, fputc_unfiltered): Update.
14351 (gdb_flush): Update.
14352 (emit_style_escape): Update.
14353 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14354 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14355 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14356 (stderr_file::write): Update.
14357 (stderr_file::puts): Update.
14358 * ui-file.h (ui_file_isatty, ui_file_write)
14359 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14360 (ui_file_puts): Don't declare.
14361
14362 2020-02-10 Tom de Vries <tdevries@suse.de>
14363
14364 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14365 sentinel to char *.
14366
14367 2020-02-09 Tom de Vries <tdevries@suse.de>
14368
14369 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14370 filename if it matches "<artificial>".
14371
14372 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14373
14374 * windows-tdep.c (struct enum_value_name): New struct.
14375 (create_enum): New function.
14376 (windows_get_siginfo_type): Create and use enum types.
14377
14378 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14379
14380 * NEWS: Mention $_siginfo support for Windows.
14381 * windows-nat.c (handle_exception): Set siginfo_er.
14382 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14383 (windows_xfer_siginfo): New function.
14384 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14385 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14386 (init_windows_gdbarch_data): New function.
14387 (get_windows_gdbarch_data): New function.
14388 (windows_get_siginfo_type): New function.
14389 (windows_init_abi): Register windows_get_siginfo_type.
14390 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14391
14392 2020-02-08 Tom Tromey <tom@tromey.com>
14393
14394 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14395 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14396 <keep>: Declare method.
14397 <m_keep>: Remove member.
14398 <~cutu_reader>: Remove.
14399 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14400 (cutu_reader::cutu_reader): Update.
14401 (cutu_reader::keep): Rename from ~cutu_reader.
14402 (process_psymtab_comp_unit, build_type_psymtabs_1)
14403 (process_skeletonless_type_unit, load_partial_comp_unit)
14404 (load_full_comp_unit, dwarf2_read_addr_index)
14405 (read_signatured_type): Update.
14406
14407 2020-02-08 Tom Tromey <tom@tromey.com>
14408
14409 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14410 "want_partial_unit" parameter.
14411 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14412 Inline check for DW_TAG_partial_unit.
14413 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14414
14415 2020-02-08 Tom Tromey <tom@tromey.com>
14416
14417 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14418 read.c.
14419 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14420 read.c.
14421
14422 2020-02-08 Tom Tromey <tom@tromey.com>
14423
14424 * dwarf2/read.c (read_address): Move to comp-unit.c.
14425 (dwarf2_rnglists_process, dwarf2_ranges_process)
14426 (read_attribute_value, dwarf_decode_lines_1)
14427 (var_decode_location, decode_locdesc): Update.
14428 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14429 read.c. Remove "cu" parameter.
14430 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14431 method.
14432
14433 2020-02-08 Tom Tromey <tom@tromey.com>
14434
14435 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14436 (read_indirect_line_string): Update.
14437 * dwarf2/comp-unit.c (read_offset): Remove.
14438 (read_comp_unit_head): Update.
14439 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14440 method.
14441 (read_offset): Don't declare.
14442
14443 2020-02-08 Tom Tromey <tom@tromey.com>
14444
14445 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14446 * dwarf2/read.c (struct comp_unit_head): Move to
14447 dwarf2/comp-unit.h.
14448 (enum class rcuh_kind): Move to comp-unit.h.
14449 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14450 (read_comp_unit_head, error_check_comp_unit_head)
14451 (read_and_check_comp_unit_head): Move to comp-unit.c.
14452 (read_offset, dwarf_unit_type_name): Likewise.
14453 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14454 (cutu_reader::cutu_reader, read_call_site_scope)
14455 (find_partial_die, follow_die_offset): Update.
14456 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14457
14458 2020-02-08 Tom Tromey <tom@tromey.com>
14459
14460 * dwarf2/read.c (read_offset_1): Move to leb.c.
14461 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14462 (dwarf_decode_macro_bytes): Update.
14463 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14464 * dwarf2/leb.h (read_offset): Declare.
14465
14466 2020-02-08 Tom Tromey <tom@tromey.com>
14467
14468 * dwarf2/read.c (dwarf2_section_size): Remove.
14469 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14470 Update.
14471 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14472
14473 2020-02-08 Tom Tromey <tom@tromey.com>
14474
14475 * dwarf2/read.c (read_initial_length): Move to leb.c.
14476 * dwarf2/leb.h (read_initial_length): Declare.
14477 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14478 handle_nonstd parameter.
14479 * dwarf2/frame.c (read_initial_length): Remove.
14480 (decode_frame_entry_1): Update.
14481
14482 2020-02-08 Tom Tromey <tom@tromey.com>
14483
14484 * dwarf2/loc.c (dwarf2_find_location_expression)
14485 (dwarf_evaluate_loc_desc::get_tls_address)
14486 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14487 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14488 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14489 (dwarf2_compile_property_to_c)
14490 (dwarf2_loc_desc_get_symbol_read_needs)
14491 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14492 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14493 (loclist_describe_location, loclist_tracepoint_var_ref)
14494 (loclist_generate_c_location): Update.
14495 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14496 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14497 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14498 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14499 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14500 (dwarf2_per_cu_data::addr_size)
14501 (dwarf2_per_cu_data::ref_addr_size)
14502 (dwarf2_per_cu_data::text_offset)
14503 (dwarf2_per_cu_data::addr_type): Now methods.
14504 (per_cu_header_read_in): Make per_cu "const".
14505 (dwarf2_version): Remove.
14506 (dwarf2_per_cu_data::int_type): Now a method.
14507 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14508 (set_die_type, read_array_type, read_subrange_index_type)
14509 (read_tag_string_type, read_subrange_type): Update.
14510 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14511 offset_size, ref_addr_size, text_offset, addr_type, version,
14512 objfile, int_type, addr_sized_int_type>: Declare methods.
14513
14514 2020-02-08 Tom Tromey <tom@tromey.com>
14515
14516 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14517 Move earlier.
14518
14519 2020-02-08 Tom Tromey <tom@tromey.com>
14520
14521 * dwarf2/read.h (dwarf_line_debug): Declare.
14522 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14523 * dwarf2/read.c: Move line_header code to new files.
14524 (dwarf_line_debug): No longer static.
14525 * dwarf2/line-header.c: New file.
14526 * dwarf2/line-header.h: New file.
14527
14528 2020-02-08 Tom Tromey <tom@tromey.com>
14529
14530 * dwarf2/read.c (struct line_header) <file_full_name,
14531 file_file_name>: Return unique_xmalloc_ptr.
14532 (line_header::file_file_name): Update.
14533 (line_header::file_full_name): Update.
14534 (dw2_get_file_names_reader): Update.
14535 (macro_start_file): Update.
14536
14537 2020-02-08 Tom Tromey <tom@tromey.com>
14538
14539 * dwarf2/read.c (struct line_header) <file_full_name,
14540 file_file_name>: Declare methods.
14541 (dw2_get_file_names_reader): Update.
14542 (file_file_name): Now a method.
14543 (file_full_name): Likewise.
14544 (macro_start_file): Update.
14545
14546 2020-02-08 Tom Tromey <tom@tromey.com>
14547
14548 * dwarf2/read.c (dwarf_always_disassemble)
14549 (show_dwarf_always_disassemble): Move to loc.c.
14550 (_initialize_dwarf2_read): Move "always-disassemble" registration
14551 to loc.c.
14552 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14553 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14554 static.
14555 (show_dwarf_always_disassemble): Move from read.c.
14556 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14557
14558 2020-02-08 Tom Tromey <tom@tromey.com>
14559
14560 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14561 (create_quick_file_names_table): Return htab_up.
14562 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14563 Update.
14564 * dwarf2/read.h (struct dwarf2_per_objfile)
14565 <quick_file_names_table>: Now htab_up.
14566
14567 2020-02-08 Tom Tromey <tom@tromey.com>
14568
14569 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14570
14571 2020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14574 Rewrite.
14575 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14576 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14577 (abbrev_table::abbrev_table): No longer inline.
14578 (ABBREV_HASH_SIZE): Remove.
14579 (abbrev_table::m_abbrevs): Now an htab_up.
14580
14581 2020-02-08 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14584 (cutu_reader): Update.
14585 (build_type_psymtabs_1): Update.
14586 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14587 (abbrev_table::alloc_abbrev): Update.
14588 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14589 (abbrev_table::read): New static method, renamed from
14590 abbrev_table_read_table.
14591 (abbrev_table::alloc_abbrev)
14592 (abbrev_table::add_abbrev): Now private.
14593 (abbrev_table::abbrev_table): Now private.
14594 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14595
14596 2020-02-08 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14599 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14600 htab_up.
14601
14602 2020-02-08 Tom Tromey <tom@tromey.com>
14603
14604 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14605 htab_up.
14606 (lookup_dwo_unit_in_dwp): Update.
14607 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14608 on obstack.
14609
14610 2020-02-08 Tom Tromey <tom@tromey.com>
14611
14612 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14613 obstack.
14614
14615 2020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14618 line_header_hash.
14619 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14620 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14621 Change type to htab_up.
14622
14623 2020-02-08 Tom Tromey <tom@tromey.com>
14624
14625 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14626 htab_up. Don't allocate on obstack.
14627 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14628 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14629 Change type to htab_up.
14630
14631 2020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14634 Change type to htab_up.
14635 * dwarf2/read.c (create_signatured_type_table_from_index)
14636 (create_signatured_type_table_from_debug_names)
14637 (create_all_type_units, add_type_unit)
14638 (lookup_dwo_signatured_type, lookup_signatured_type)
14639 (process_skeletonless_type_unit): Update.
14640 (create_debug_type_hash_table, create_debug_types_hash_table):
14641 Change type of types_htab.
14642 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14643 htab_up. Don't allocate on obstack.
14644 (create_cus_hash_table): Change type of cus_htab parameter.
14645 (struct dwo_file) <cus, tus>: Now htab_up.
14646 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14647 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14648 (queue_and_load_all_dwo_tus): Update.
14649 * dwarf2/index-write.c (write_gdbindex): Update.
14650 (write_debug_names): Update.
14651
14652 2020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14655 dwarf2/read.c. Remove "next" member. Add constructor ntad
14656 destructor.
14657 (struct dwarf2_per_objfile) <queue>: New member.
14658 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14659 dwarf2/read.h.
14660 (dwarf2_queue, dwarf2_queue_tail): Remove.
14661 (class dwarf2_queue_guard): Add parameter to constructor. Use
14662 DISABLE_COPY_AND_ASSIGN.
14663 <m_per_objfile>: New member.
14664 <~dwarf2_queue_guard>: Rewrite.
14665 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14666 Update.
14667 (~dwarf2_queue_item): New.
14668
14669 2020-02-08 Tom Tromey <tom@tromey.com>
14670
14671 * dwarf2/read.c (struct die_info) <has_children>: New member.
14672 (dw2_get_file_names_reader): Remove has_children.
14673 (dw2_get_file_names): Update.
14674 (read_cutu_die_from_dwo): Remove has_children.
14675 (cutu_reader::init_tu_and_read_dwo_dies)
14676 (cutu_reader::cutu_reader): Update.
14677 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14678 Remove has_children.
14679 (build_type_psymtabs_1, process_skeletonless_type_unit)
14680 (load_partial_comp_unit, load_full_comp_unit): Update.
14681 (create_dwo_cu_reader): Remove has_children.
14682 (create_cus_hash_table, read_die_and_children): Update.
14683 (read_full_die_1,read_full_die): Remove has_children.
14684 (read_signatured_type): Update.
14685 (class cutu_reader) <has_children>: Remove.
14686
14687 2020-02-08 Tom Tromey <tom@tromey.com>
14688
14689 * dwarf2/expr.c: Rename from dwarf2expr.c.
14690 * dwarf2/expr.h: Rename from dwarf2expr.h.
14691 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14692 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14693 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14694 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14695 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14696 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14697 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14698 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14699 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14700 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14701 * dwarf2/loc.c: Rename from dwarf2loc.c.
14702 * dwarf2/loc.h: Rename from dwarf2loc.h.
14703 * dwarf2/read.c: Rename from dwarf2read.c.
14704 * dwarf2/read.h: Rename from dwarf2read.h.
14705 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14706 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14707 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14708 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14709 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14710 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14711 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14712 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14713 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14714 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14715 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14716 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14717 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14718 Update.
14719 * Makefile.in (COMMON_SFILES): Update.
14720 (HFILES_NO_SRCDIR): Update.
14721
14722 2020-02-08 Tom Tromey <tom@tromey.com>
14723
14724 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14725 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14726
14727 2020-02-08 Tom Tromey <tom@tromey.com>
14728
14729 * dwarf2read.h (struct die_info): Don't declare.
14730
14731 2020-02-08 Tom Tromey <tom@tromey.com>
14732
14733 * dwarf2read.h (die_info_ptr): Remove typedef.
14734
14735 2020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2read.c (read_call_site_scope)
14738 (handle_data_member_location, dwarf2_add_member_fn)
14739 (mark_common_block_symbol_computed, read_common_block)
14740 (attr_to_dynamic_prop, partial_die_info::read)
14741 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14742 (dwarf2_symbol_mark_computed, set_die_type): Update.
14743 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14744 method.
14745 (attr_form_is_block): Don't declare.
14746 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14747
14748 2020-02-08 Tom Tromey <tom@tromey.com>
14749
14750 * dwarf2read.c (dwarf2_find_base_address, )
14751 (read_call_site_scope, rust_containing_type)
14752 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14753 (handle_data_member_location, dwarf2_add_member_fn)
14754 (get_alignment, read_structure_type, process_structure_scope)
14755 (mark_common_block_symbol_computed, read_common_block)
14756 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14757 (partial_die_info::read, read_attribute_value, new_symbol)
14758 (lookup_die_type, dwarf2_get_ref_die_offset)
14759 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14760 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14761 (dwarf2_symbol_mark_computed): Update.
14762 * dwarf2/attribute.h (struct attribute) <value_as_address,
14763 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14764 methods.
14765 (value_as_address, attr_form_is_section_offset)
14766 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14767 * dwarf2/attribute.c (attribute::value_as_address)
14768 (attribute::form_is_section_offset, attribute::form_is_constant)
14769 (attribute::form_is_ref): Now methods.
14770
14771 2020-02-08 Tom Tromey <tom@tromey.com>
14772
14773 * dwarf2read.c (struct attribute, DW_STRING)
14774 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14775 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14776 (attr_form_is_block, attr_form_is_section_offset)
14777 (attr_form_is_constant, attr_form_is_ref): Move.
14778 * dwarf2/attribute.h: New file.
14779 * dwarf2/attribute.c: New file, from dwarf2read.c.
14780 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14781
14782 2020-02-08 Tom Tromey <tom@tromey.com>
14783
14784 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14785 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14786 Move.
14787 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14788 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14789 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14790 abbrev.c.
14791 * dwarf2/abbrev.h: New file.
14792 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14793 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14794
14795 2020-02-08 Tom Tromey <tom@tromey.com>
14796
14797 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14798 (dwarf2_section_size, dwarf2_get_section_info)
14799 (create_signatured_type_table_from_debug_names)
14800 (create_addrmap_from_aranges, read_debug_names_from_section)
14801 (get_gdb_index_contents_from_section, read_comp_unit_head)
14802 (error_check_comp_unit_head, read_abbrev_offset)
14803 (create_debug_type_hash_table, init_cu_die_reader)
14804 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14805 (read_comp_units_from_section, create_cus_hash_table)
14806 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14807 (create_dwp_v2_section, dwarf2_rnglists_process)
14808 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14809 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14810 (read_indirect_string_from_dwz, read_addr_index_1)
14811 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14812 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14813 (fill_in_loclist_baton): Update.
14814 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14815 get_containing_section, get_bfd_owner, get_bfd_section,
14816 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14817 (dwarf2_read_section, get_section_name, get_section_file_name)
14818 (get_containing_section, get_section_bfd_owner)
14819 (get_section_bfd_section, get_section_name, get_section_file_name)
14820 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14821 declare.
14822 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14823 (dwarf2_section_info::get_bfd_owner)
14824 (dwarf2_section_info::get_bfd_section)
14825 (dwarf2_section_info::get_name)
14826 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14827 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14828 (dwarf2_section_info::read): Now methods.
14829 * dwarf-index-write.c (class debug_names): Update.
14830
14831 2020-02-08 Tom Tromey <tom@tromey.com>
14832
14833 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14834 Move to dwarf2/section.h.
14835 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14836 (get_section_bfd_section, get_section_name)
14837 (get_section_file_name, get_section_id, get_section_flags)
14838 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14839 dwarf2/section.c.
14840 * dwarf2/section.h: New file.
14841 * dwarf2/section.c: New file, from dwarf2read.c.
14842 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14843
14844 2020-02-08 Tom Tromey <tom@tromey.com>
14845
14846 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14847 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14848 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14849 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14850 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14851 * dwarf2/leb.h: New file, from dwarf2read.c.
14852 * dwarf2/leb.c: New file, from dwarf2read.c.
14853 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14854 Remove.
14855 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14856 (COMMON_SFILES): Add dwarf2/leb.c.
14857
14858 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14859
14860 GDB 9.1 released.
14861
14862 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14863
14864 PR gdb/25190:
14865 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14866 * gdb/remote.c (remote_console_output): Update.
14867 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14868 (ui_file_puts): ...this.
14869 * gdb/ui-file.h (ui_file_puts): Add declaration.
14870 * gdb/utils.c (emit_style_escape): Update.
14871 (flush_wrap_buffer): Update.
14872 (fputs_maybe_filtered): Update.
14873 (fputs_unfiltered): Add function.
14874
14875 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14876
14877 * gdb/event-loop.c (gdb_wait_for_event): Update.
14878 * gdb/printcmd.c (printf_command): Update.
14879 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14880 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14881 (gdb_os_flush_stderr): Update.
14882 * gdb/remote.c (remote_console_output): Update.
14883 * gdb/ui-file.c (gdb_flush): Rename to...
14884 (ui_file_flush): ...this.
14885 (stderr_file::write): Update.
14886 (stderr_file::puts): Update.
14887 * gdb/ui-file.h (gdb_flush): Rename to...
14888 (ui_file_flush): ...this.
14889 * gdb/utils.c (gdb_flush): Add function.
14890 * gdb/utils.h (gdb_flush): Add declaration.
14891
14892 2020-02-07 Tom Tromey <tromey@adacore.com>
14893
14894 PR breakpoints/24915:
14895 * source.c (find_and_open_source): Do not check basenames_may_differ.
14896
14897 2020-02-07 Tom Tromey <tom@tromey.com>
14898
14899 * README: Update gdbserver documentation.
14900 * gdbserver: Move to top level.
14901 * configure.tgt (build_gdbserver): Remove.
14902 * configure.ac: Remove --enable-gdbserver.
14903 * configure: Rebuild.
14904 * Makefile.in (distclean): Don't mention gdbserver.
14905
14906 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14907
14908 * source-cache.c (source_cache::ensure): Surround
14909 get_plain_source_lines with a try/catch.
14910 (source_cache::get_line_charpos): Get rid of try/catch
14911 and only check for the return value of "ensure".
14912 * tui/tui-source.c (tui_source_window::set_contents):
14913 Simplify "nlines" calculation.
14914
14915 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14916
14917 * MAINTAINERS (Write After Approval): Add myself.
14918
14919 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14920
14921 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14922 function call.
14923
14924 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14925
14926 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14927
14928 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14929
14930 * nat/riscv-linux-tdesc.h: New file.
14931 * nat/riscv-linux-tdesc.c: New file, taking code from...
14932 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14933 ... here.
14934 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14935 NATDEPFILES.
14936
14937 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14938
14939 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14940 we don't set the fake simulator ptid to the null_ptid.
14941
14942 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14943
14944 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14945 * gdbthread.h (class thread_info) <resumed>: Likewise.
14946 * infrun.c (resume_1): Likewise.
14947 (proceed): Likewise.
14948 (infrun_thread_stop_requested): Likewise.
14949 (stop_all_threads): Likewise.
14950 (handle_inferior_event): Likewise.
14951 (restart_threads): Likewise.
14952 (finish_step_over): Likewise.
14953 (keep_going_stepped_thread): Likewise.
14954 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14955 (linux_handle_extended_wait): Likewise.
14956 * record-btrace.c (get_thread_current_frame_id): Likewise.
14957 * record-full.c (record_full_wait_1): Likewise.
14958 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14959 * target.c (target_resume): Likewise.
14960 * thread.c (set_running_thread): Likewise.
14961
14962 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14963
14964 * f-valprint.c (f77_print_array_1): Changed datatype of index
14965 variable to LONGEST from int to enable it to contain bound
14966 values correctly.
14967
14968 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14969
14970 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14971 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14972 offsets according to FLEN determined.
14973 (riscv_linux_nat_target::read_description): Determine FLEN
14974 dynamically.
14975 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14976 according to FLEN determined.
14977 (riscv_linux_nat_target::store_registers): Likewise.
14978
14979 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14980
14981 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14982 when reg->group is empty and reggroup is not.
14983
14984 2020-01-31 Tom Tromey <tromey@adacore.com>
14985
14986 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14987 Call beneath target's mourn_inferior after unpushing.
14988
14989 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14990
14991 PR tui/9765
14992 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14993 have enough lines to fill the screen, still return the lowest
14994 address we found.
14995
14996 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14997
14998 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14999 '-', '<', and '>' commands.
15000
15001 2020-01-29 Pedro Alves <palves@redhat.com>
15002 Sergio Durigan Junior <sergiodj@redhat.com>
15003
15004 * infcmd.c (construct_inferior_arguments): Assert that
15005 'argc' is greater than 0.
15006
15007 2020-01-29 Luis Machado <luis.machado@linaro.org>
15008
15009 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15010 (BRK_INSN_MASK): Define to 0xd4200000.
15011 (aarch64_program_breakpoint_here_p): New function.
15012 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15013 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15014 breakpoint.c.
15015 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15016 breakpoint.h
15017 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15018 call gdbarch_program_breakpoint_here_p.
15019 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15020 default_program_breakpoint_here_p, changed return type to bool and
15021 simplified.
15022 * breakpoint.h (program_breakpoint_here): Moved prototype to
15023 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15024 return type to bool.
15025 * gdbarch.c: Regenerate.
15026 * gdbarch.h: Regenerate.
15027 * gdbarch.sh (program_breakpoint_here_p): New method.
15028 * infrun.c (handle_signal_stop): Call
15029 gdbarch_program_breakpoint_here_p.
15030
15031 2020-01-26 Tom Tromey <tom@tromey.com>
15032
15033 * ctfread.c (struct ctf_fp_info): Reindent.
15034 (_initialize_ctfread): Remove.
15035
15036 2020-01-26 Tom Tromey <tom@tromey.com>
15037
15038 * psymtab.c (partial_map_expand_apply)
15039 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15040 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15041 (psym_print_stats, psym_expand_symtabs_for_function)
15042 (psym_map_symbol_filenames, psym_map_matching_symbols)
15043 (psym_expand_symtabs_matching)
15044 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15045 (maintenance_check_psymtabs): Use new methods.
15046 * psympriv.h (struct partial_symtab) <readin_p,
15047 get_compunit_symtab>: New methods.
15048 <readin, compunit_symtab>: Remove members.
15049 (struct standard_psymtab): New.
15050 (struct legacy_psymtab): Derive from standard_psymtab.
15051 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15052 standard_psymtab.
15053 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15054
15055 2020-01-26 Tom Tromey <tom@tromey.com>
15056
15057 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15058 read_dependencies. Add assert.
15059 * psymtab.c (partial_symtab::read_dependencies): New method.
15060 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15061 method.
15062 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15063 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15064 read_dependencies.
15065 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15066 Add assert.
15067
15068 2020-01-26 Tom Tromey <tom@tromey.com>
15069
15070 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15071 Call expand_psymtab.
15072 (xcoff_read_symtab): Call expand_psymtab.
15073 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15074 legacy_expand_psymtab.
15075 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15076 method.
15077 (struct legacy_psymtab) <expand_psymtab>: Implement.
15078 <legacy_expand_psymtab>: New member.
15079 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15080 (parse_partial_symbols): Set legacy_expand_psymtab.
15081 (psymtab_to_symtab_1): Change argument order. Call
15082 expand_psymtab.
15083 (new_psymtab): Set legacy_expand_psymtab.
15084 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15085 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15086 expand_psymtab.
15087 (dwarf2_psymtab::expand_psymtab): Rename from
15088 psymtab_to_symtab_1. Call expand_psymtab.
15089 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15090 (dbx_end_psymtab): Likewise.
15091 (dbx_psymtab_to_symtab_1): Change argument order. Call
15092 expand_psymtab.
15093 (dbx_read_symtab): Call expand_psymtab.
15094 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15095 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15096 (ctf_psymtab::read_symtab): Call expand_psymtab.
15097
15098 2020-01-26 Tom Tromey <tom@tromey.com>
15099
15100 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15101 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15102 messages.
15103 * mdebugread.c (mdebug_read_symtab): Remove prints.
15104 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15105 assert.
15106 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15107
15108 2020-01-26 Tom Tromey <tom@tromey.com>
15109
15110 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15111 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15112 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15113 legacy_symtab.
15114 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15115 * psymtab.c (psymtab_to_symtab): Call method.
15116 (dump_psymtab): Update.
15117 * psympriv.h (struct partial_symtab): Add virtual destructor.
15118 <read_symtab>: New method.
15119 (struct legacy_symtab): New.
15120 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15121 (struct pst_map) <pst>: Now a legacy_psymtab.
15122 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15123 (new_psymtab): Use legacy_psymtab.
15124 * dwarf2read.h (struct dwarf2_psymtab): New.
15125 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15126 * dwarf2read.c (dwarf2_create_include_psymtab)
15127 (dwarf2_build_include_psymtabs, create_type_unit_group)
15128 (create_partial_symtab, process_psymtab_comp_unit_reader)
15129 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15130 (set_partial_user): Use dwarf2_psymtab.
15131 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15132 (psymtab_to_symtab_1, process_full_comp_unit)
15133 (process_full_type_unit, dwarf2_ranges_read)
15134 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15135 (dwarf_decode_lines): Use dwarf2_psymtab.
15136 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15137 (add_address_entry_worker, write_one_signatured_type)
15138 (recursively_count_psymbols, recursively_write_psymbols)
15139 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15140 (write_debug_names): Likewise.
15141 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15142 <pst>: Now a legacy_psymtab.
15143 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15144 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15145 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15146 * ctfread.c (struct ctf_psymtab): New.
15147 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15148 ctf_psymtab.
15149 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15150 (create_partial_symtab): Return a ctf_psymtab.
15151 (scan_partial_symbols): Update.
15152
15153 2020-01-26 Tom Tromey <tom@tromey.com>
15154
15155 * xcoffread.c (xcoff_start_psymtab): Use new.
15156 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15157 renamed from start_psymtab_common.
15158 * psympriv.h (struct partial_symtab): Add new constructor.
15159 (start_psymtab_common): Don't declare.
15160 * mdebugread.c (parse_partial_symbols): Use new.
15161 * dwarf2read.c (create_partial_symtab): Use new.
15162 * dbxread.c (start_psymtab): Use new.
15163 * ctfread.c (create_partial_symtab): Use new.
15164
15165 2020-01-26 Tom Tromey <tom@tromey.com>
15166
15167 * xcoffread.c (xcoff_end_psymtab): Use new.
15168 * psymtab.c (start_psymtab_common): Use new.
15169 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15170 Update.
15171 * psympriv.h (struct partial_symtab): Add parameters to
15172 constructor. Don't inline.
15173 (allocate_psymtab): Don't declare.
15174 * mdebugread.c (new_psymtab): Use new.
15175 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15176 * dbxread.c (dbx_end_psymtab): Use new.
15177
15178 2020-01-26 Tom Tromey <tom@tromey.com>
15179
15180 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15181 allocate_psymtab. Update documentation.
15182 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15183 allocate_psymtab. Do not use new.
15184 (allocate_psymtab): Use new. Update.
15185
15186 2020-01-26 Tom Tromey <tom@tromey.com>
15187
15188 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15189 * psymtab.c (psym_print_stats): Update.
15190 * psympriv.h (struct partial_symtab) <readin,
15191 psymtabs_addrmap_supported, anonymous>: Now bool.
15192 * mdebugread.c (psymtab_to_symtab_1): Update.
15193 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15194 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15195 (process_full_comp_unit, process_full_type_unit): Update.
15196 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15197 * ctfread.c (psymtab_to_symtab): Update.
15198
15199 2020-01-26 Tom Tromey <tom@tromey.com>
15200
15201 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15202 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15203 * psymtab.c (psymtab_storage): Delete psymtabs.
15204 (psymtab_storage::allocate_psymtab): Use new.
15205 (psymtab_storage::discard_psymtab): Use delete.
15206 * psympriv.h (struct partial_symtab): Add constructor and
15207 initializers.
15208
15209 2020-01-26 Tom Tromey <tom@tromey.com>
15210
15211 * machoread.c: Do not include psympriv.h.
15212
15213 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15214
15215 * NEWS: Mention the new option and the set/show commands.
15216
15217 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15218
15219 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15220 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15221 (validate_exec_file): New variables, enums, functions.
15222 (exec_file_locate_attach, print_section_info): Style the filenames.
15223 (_initialize_exec): Install show_exec_file_mismatch_command and
15224 set_exec_file_mismatch_command.
15225 * gdbcore.h (validate_exec_file): Declare.
15226 * infcmd.c (attach_command): Call validate_exec_file.
15227 * remote.c ( remote_target::remote_add_inferior): Likewise.
15228
15229 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15230
15231 * frame.c (find_frame_sal): Move call to get_next_frame into more
15232 inner scope.
15233 * inline-frame.c (inilne_state) <inline_state>: Update argument
15234 types.
15235 (inilne_state) <skipped_symbol>: Rename to...
15236 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15237 (skip_inline_frames): Build vector of skipped symbols and use this
15238 to reate the inline_state.
15239 (inline_skipped_symbol): Add a comment and some assertions, fetch
15240 skipped symbol from the list.
15241
15242 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15243
15244 * buildsym.c (lte_is_less_than): Delete.
15245 (buildsym_compunit::end_symtab_with_blockvector): Create local
15246 lambda function to sort line table entries, and use
15247 std::stable_sort instead of std::sort.
15248 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15249 markers when looking for a previous line.
15250
15251 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15252
15253 * dwarf2read.c (lnp_state_machine::record_line): Include
15254 end_sequence parameter in debug print out. Record the line if we
15255 are at an end_sequence marker even if it's not the start of a
15256 statement.
15257 * symmisc.c (maintenance_print_one_line_table): Print end of
15258 sequence markers with 'END' not '0'.
15259
15260 2020-01-24 Pedro Alves <palves@redhat.com>
15261
15262 PR gdb/25410
15263 * thread.c (scoped_restore_current_thread::restore): Use
15264 switch_to_inferior_no_thread.
15265 * exec.c: Include "progspace-and-thread.h".
15266 (add_target_sections, remove_target_sections):
15267 scoped_restore_current_pspace_and_thread instead of
15268 scoped_restore_current_thread.
15269 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15270 and aspace to the inferior before calling clone_program_space.
15271 Remove stale comment.
15272
15273 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15274
15275 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15276 (arm_netbsd_nat_target::fetch_registers): ...this.
15277 (arm_nbsd_nat_target::store_registers): Rename to...
15278 (arm_netbsd_nat_target::store_registers): ...this.
15279
15280 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15281
15282 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15283 register_t.
15284
15285 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15286
15287 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15288 Update comment.
15289 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15290 Likewise.
15291 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15292 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15293 the correct replacement (iterate_over_regset_sections).
15294 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15295 Update comment.
15296
15297 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15298
15299 PR gdb/23718
15300 * gdb/python/python.c (execute_gdb_command): Call
15301 async_enable_stdin in catch block.
15302
15303 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15304
15305 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15306 SWITCH_THRU_ALL_UIS.
15307
15308 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15309
15310 PR tui/9765
15311 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15312 comment, add extra parameter, and update to store previous symbol
15313 when appropriate.
15314 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15315 add extra parameter.
15316 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15317 remove unneeded parameter, add try/catch around gdb_print_insn,
15318 rewrite to add items to asm_lines vector.
15319 (tui_find_backward_disassembly_start_address): New function.
15320 (tui_find_disassembly_address): Updated throughout.
15321 (tui_disasm_window::set_contents): Update for changes to
15322 tui_disassemble.
15323 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15324 number of lines to scroll.
15325
15326 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15327
15328 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15329 (SECT_OFF_DATA): Likewise.
15330 (SECT_OFF_RODATA): Likewise.
15331 (SECT_OFF_TEXT): Likewise.
15332 (SECT_OFF_BSS): Likewise.
15333 (struct objfile) <text_section_offset, data_section_offset>: New
15334 methods.
15335 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15336 objfile::text_section_offset.
15337 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15338 * coffread.c (coff_symtab_read): Likewise.
15339 (enter_linenos): Likewise.
15340 (process_coff_symbol): Likewise.
15341 * ctfread.c (get_objfile_text_range): Likewise.
15342 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15343 Use objfile::data_section_offset.
15344 * dwarf2-frame.c (execute_cfa_program): Use
15345 objfile::text_section_offset.
15346 (dwarf2_frame_find_fde): Likewise.
15347 * dwarf2read.c (create_addrmap_from_index): Likewise.
15348 (create_addrmap_from_aranges): Likewise.
15349 (dw2_find_pc_sect_compunit_symtab): Likewise.
15350 (process_psymtab_comp_unit_reader): Likewise.
15351 (add_partial_symbol): Likewise.
15352 (add_partial_subprogram): Likewise.
15353 (process_full_comp_unit): Likewise.
15354 (read_file_scope): Likewise.
15355 (read_func_scope): Likewise.
15356 (read_lexical_block_scope): Likewise.
15357 (read_call_site_scope): Likewise.
15358 (dwarf2_rnglists_process): Likewise.
15359 (dwarf2_ranges_process): Likewise.
15360 (dwarf2_ranges_read): Likewise.
15361 (dwarf_decode_lines_1): Likewise.
15362 (new_symbol): Likewise.
15363 (dwarf2_fetch_die_loc_sect_off): Likewise.
15364 (dwarf2_per_cu_text_offset): Likewise.
15365 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15366 * hppa-tdep.c (read_unwind_info): Likewise.
15367 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15368 * psympriv.h (struct partial_symtab): Likewise.
15369 * psymtab.c (find_pc_sect_psymtab): Likewise.
15370 * solib-svr4.c (enable_break): Likewise.
15371 * stap-probe.c (relocate_address): Use
15372 objfile::data_section_offset.
15373 * xcoffread.c (enter_line_range): Use
15374 objfile::text_section_offset.
15375 (read_xcoff_symtab): Likewise.
15376
15377 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15378
15379 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15380 declaration to narrower scopes.
15381
15382 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15383
15384 * darwin-nat.h (struct darwin_exception_msg, enum
15385 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15386 Move up.
15387 (class darwin_nat_target) <wait_1, check_new_threads,
15388 decode_exception_message, decode_message, stop_inferior,
15389 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15390 * darwin-nat.c (darwin_check_new_threads): Rename to...
15391 (darwin_nat_target::check_new_threads): ... this.
15392 (darwin_suspend_inferior_it): Remove.
15393 (darwin_decode_exception_message): Rename to...
15394 (darwin_nat_target::decode_exception_message): ... this.
15395 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15396 (darwin_decode_message): Rename to...
15397 (darwin_nat_target::decode_message): ... this.
15398 (cancel_breakpoint): Rename to...
15399 (darwin_nat_target::cancel_breakpoint): ... this.
15400 (darwin_wait): Rename to...
15401 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15402 instead of iterate_over_inferiors.
15403 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15404 (darwin_stop_inferior): Rename to...
15405 (darwin_nat_target::stop_inferior): ... this.
15406 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15407 (darwin_init_thread_list): Rename to...
15408 (darwin_nat_target::init_thread_list): ... this.
15409 (darwin_ptrace_him): Rename to...
15410 (darwin_nat_target::ptrace_him): ... this.
15411 (darwin_nat_target::create_inferior): Pass lambda function to
15412 fork_inferior.
15413 (darwin_nat_target::detach): Call stop_inferior instead of
15414 darwin_stop_inferior.
15415 * fork-inferior.h (fork_inferior): Change init_trace_fun
15416 parameter to gdb::function_view.
15417 * fork-inferior.c (fork_inferior): Likewise.
15418
15419 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15420
15421 * i386-cygwin-tdep.c (core_process_module_section): Update.
15422 * windows-nat.c (struct lm_info_windows): Add text_offset.
15423 (windows_xfer_shared_libraries): Update.
15424 * windows-tdep.c (windows_xfer_shared_library):
15425 Add text_offset_cached argument.
15426 * windows-tdep.h (windows_xfer_shared_library): Update.
15427
15428 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15429
15430 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15431
15432 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15433
15434 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15435 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15436 replace with range-based for.
15437 (gdbsim_interrupt_inferior): Remove.
15438 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15439 with a range-based for. Inline code from
15440 gdbsim_interrupt_inferior.
15441
15442 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * infrun.c (proceed): Fix indentation.
15445
15446 2020-01-21 Tom Tromey <tromey@adacore.com>
15447
15448 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15449 * python/python.c (python_extension_ops): Update.
15450 (gdbpy_colorize): New function.
15451 * python/lib/gdb/__init__.py (colorize): New function.
15452 * extension.h (ext_lang_colorize): Declare.
15453 * extension.c (ext_lang_colorize): New function.
15454 * extension-priv.h (struct extension_language_ops) <colorize>: New
15455 member.
15456 * cli/cli-style.c (_initialize_cli_style): Update help text.
15457
15458 2020-01-21 Luis Machado <luis.machado@linaro.org>
15459
15460 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15461 <cond>: Change type to bool.
15462 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15463 (aarch64_displaced_step_cb): Likewise.
15464 (aarch64_displaced_step_tb): Likewise.
15465
15466 2020-01-21 Luis Machado <luis.machado@linaro.org>
15467
15468 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15469 output.
15470
15471 2020-01-21 Luis Machado <luis.machado@linaro.org>
15472
15473 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15474 <pc_adjust>: Adjust the documentation.
15475 (aarch64_displaced_step_fixup): Check if PC really moved before
15476 adjusting it.
15477
15478 2020-01-19 Tom Tromey <tom@tromey.com>
15479
15480 * disasm.c (~gdb_disassembler): New destructor.
15481 (gdb_buffered_insn_length): Call disassemble_free_target.
15482 * disasm.h (class gdb_disassembler): Declare destructor. Use
15483 DISABLE_COPY_AND_ASSIGN.
15484
15485 2020-01-19 Tom Tromey <tom@tromey.com>
15486
15487 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15488 (die_reader_func_ftype): Remove.
15489 (cutu_reader): New class.
15490 (dw2_get_file_names_reader): Remove "data" parameter.
15491 (dw2_get_file_names): Use cutu_reader.
15492 (create_debug_type_hash_table): Update.
15493 (read_cutu_die_from_dwo): Update comment.
15494 (lookup_dwo_unit): Add dwo_name parameter.
15495 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15496 die_reader_func_ftype and data parameters.
15497 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15498 Remove die_reader_func_ftype and data parameters.
15499 (~cutu_reader): New; from init_cutu_and_read_dies.
15500 (cutu_reader::cutu_reader): Rename from
15501 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15502 and data parameters.
15503 (init_cutu_and_read_dies_simple): Remove.
15504 (struct process_psymtab_comp_unit_data): Remove.
15505 (process_psymtab_comp_unit_reader): Remove data parameter; add
15506 want_partial_unit and pretend_language parameters.
15507 (process_psymtab_comp_unit): Use cutu_reader.
15508 (build_type_psymtabs_reader): Remove data parameter.
15509 (build_type_psymtabs_1): Use cutu_reader.
15510 (process_skeletonless_type_unit): Likewise.
15511 (load_partial_comp_unit_reader): Remove.
15512 (load_partial_comp_unit): Use cutu_reader.
15513 (load_full_comp_unit_reader): Remove.
15514 (load_full_comp_unit): Use cutu_reader.
15515 (struct create_dwo_cu_data): Remove.
15516 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15517 dwo_unit parameters.
15518 (create_cus_hash_table): Use cutu_reader.
15519 (struct dwarf2_read_addr_index_data): Remove.
15520 (dwarf2_read_addr_index_reader): Remove.
15521 (dwarf2_read_addr_index): Use cutu_reader.
15522 (read_signatured_type_reader): Remove.
15523 (read_signatured_type): Use cutu_reader.
15524
15525 2020-01-19 Tom Tromey <tom@tromey.com>
15526
15527 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15528 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15529 (tui_wrefresh): Declare.
15530 * tui/tui-wingeneral.c (suppress_output): New global.
15531 (tui_suppress_output, ~tui_suppress_output): New constructor and
15532 destructor.
15533 (tui_wrefresh): New function.
15534 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15535 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15536 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15537 method.
15538 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15539 tui_wrefresh.
15540 (tui_data_window::no_refresh): New method.
15541 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15542 (tui_reg_command): Use tui_suppress_output
15543 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15544 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15545 method.
15546 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15547
15548 2020-01-19 Tom Tromey <tom@tromey.com>
15549
15550 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15551 Handle case where symtab is null.
15552
15553 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15554
15555 * linux-fork.c (one_fork_p): Simplify.
15556
15557 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15558
15559 * top.c (struct qt_args): Remove.
15560 (kill_or_detach): Change return type to void, replace `void *`
15561 parameter with a proper one.
15562 (print_inferior_quit_action): Likewise.
15563 (quit_confirm): Use range-based for loop to iterate over inferiors.
15564 (quit_force): Likewise.
15565
15566 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15567
15568 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15569 `void *` parameter with proper parameters.
15570 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15571 (print_one_inferior): Change return type to void, replace `void *`
15572 parameter with proper parameters.
15573 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15574 inferiors.
15575 (get_other_inferior): Remove.
15576 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15577 inferiors.
15578
15579 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15580
15581 * mi/mi-interp.c (report_initial_inferior): Remove.
15582 (mi_interp::init): Use range-based for to iterate over inferiors.
15583
15584 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15585
15586 * python/py-inferior.c (build_inferior_list): Remove.
15587 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15588
15589 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15590
15591 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15592 (btrace_stitch_trace): Likewise.
15593 * charset.c (intermediate_encoding): Likewise (vaild).
15594 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15595 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15596 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15597
15598 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15599
15600 * windows-tdep.c (windows_get_tlb_type):
15601 Add rtl_user_process_parameters type.
15602
15603 2020-01-16 Pedro Alves <palves@redhat.com>
15604 Norbert Lange <nolange79@gmail.com>
15605
15606 PR build/24805
15607 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15608 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15609 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15610 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15611 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15612 (ps_plog): Redeclare exported functions with default visibility.
15613
15614 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15615
15616 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15617 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15618
15619 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15620
15621 * infcmd.c (post_create_inferior): Use get_thread_regcache
15622 instead of get_current_regcache.
15623
15624 2020-01-14 Tom Tromey <tom@tromey.com>
15625
15626 PR symtab/12535:
15627 * python/python.c (gdbpy_decode_line): Treat empty string the same
15628 as no argument.
15629
15630 2020-01-14 Tom Tromey <tom@tromey.com>
15631
15632 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15633
15634 2020-01-14 Tom Tromey <tom@tromey.com>
15635
15636 * nat/linux-btrace.c: Don't include <config.h>.
15637 * nat/linux-ptrace.c: Don't include <config.h>.
15638 * nat/x86-linux-dregs.c: Don't include <config.h>.
15639
15640 2020-01-14 Tom Tromey <tom@tromey.com>
15641
15642 * configure: Rebuild.
15643 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15644
15645 2020-01-14 Tom Tromey <tom@tromey.com>
15646
15647 * nat/x86-linux-dregs.c: Include configh.h.
15648 * nat/linux-ptrace.c: Include configh.h.
15649 * nat/linux-btrace.c: Include configh.h.
15650 * defs.h: Include config.h, bfd.h.
15651 * configure.ac: Don't source common.host.
15652 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15653 * configure: Rebuild.
15654 * acinclude.m4: Update path.
15655 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15656 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15657 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15658 (CLIBS): Add LIBSUPPORT.
15659 (CDEPS): Likewise.
15660 (COMMON_SFILES): Remove gdbsupport files.
15661 (HFILES_NO_SRCDIR): Likewise.
15662 (stamp-version): Update path to create-version.sh.
15663 (ALLDEPFILES): Remove gdbsupport files.
15664
15665 2020-01-14 Tom Tromey <tom@tromey.com>
15666
15667 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15668 USE_WIN32API when needed.
15669 * configure.ac (USE_WIN32API): Don't define.
15670 (WIN32LIBS): Use WIN32APILIBS.
15671 * configure: Rebuild.
15672
15673 2020-01-14 Tom Tromey <tom@tromey.com>
15674
15675 * configure: Rebuild.
15676 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15677
15678 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15679
15680 * skip.c (skip_function_command): Make skip w/o arguments use the
15681 name of the inlined function if pc is inside any inlined function.
15682
15683 2020-01-14 Luis Machado <luis.machado@linaro.org>
15684
15685 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15686 * infrun.c (resume_1): Likewise.
15687 (handle_inferior_event): Remove stale comment.
15688 * linux-nat.c (linux_nat_target::resume): Update comments.
15689 (save_stop_reason): Likewise.
15690 (linux_nat_filter_event): Likewise.
15691 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15692
15693 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15694
15695 * elfread.c (record_minimal_symbol): Set section index to 0 for
15696 non-allocatable sections.
15697
15698
15699 2020-01-13 Ali Tamur <tamur@google.com>
15700
15701 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15702 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15703 to gdb::optional. Update comments.
15704 (dwo_file): Update comments.
15705 (read_attribute): Update API to take an additional out parameter,
15706 need_reprocess. This is used to mark attributes that need other
15707 attributes (e.g. str_offsets_base) for correct computation which may not
15708 have been read yet.
15709 (read_attribute_reprocess): New function declaration.
15710 (read_addr_index): Likewise.
15711 (read_dwo_str_index): Likewise.
15712 (read_stub_str_index): Likewise.
15713 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15714 (lookup_addr_base): New function definition.
15715 (lookup_ranges_base): Likewise.
15716 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15717 lookup_ranges_base.
15718 (init_cutu_and_read_dies): Update comments.
15719 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15720 unit. This is used to inherit parent's str_offsets_base and addr_base.
15721 Update comments.
15722 (init_cutu_and_read_dies_simple): Reflect API changes.
15723 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15724 (create_cus_hash_table): Change API to take parent compile unit.
15725 Reflect API changes.
15726 (open_and_init_dwo_file): Reflect API changes.
15727 (dwarf2_get_pc_bounds): Update comments.
15728 (dwarf2_record_block_ranges): Likewise.
15729 (read_full_die_1): Change implementation to reprocess attributes that
15730 need str_offsets_base and addr_base.
15731 (partial_die_info::read): Likewise.
15732 (read_attribute_reprocess): New function definition.
15733 (read_attribute_value): Change API to take an additional out parameter,
15734 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15735 when a non-dwo compile unit has index based attributes.
15736 (read_attribute): Reflect API changes.
15737 (read_addr_index_1): Reflect API changes. Update comments.
15738 (dwarf2_read_addr_index_data): Reflect API changes.
15739 (dwarf2_read_addr_index): Likewise.
15740 (read_str_index): Change API and implementation. This becomes a helper
15741 to be used by the new string index related methods. Update error
15742 message and comments.
15743 (read_dwo_str_index): New function definition.
15744 (read_stub_str_index): Likewise.
15745 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15746 * symfile.h (dwarf2_debug_sections): Likewise.
15747 * xcoffread.c (dwarf2_debug_sections): Likewise.
15748
15749 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15750
15751 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15752 core_reg_sect type to gdb_byte *.
15753 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15754 * cris-tdep.c (fetch_core_registers): Likewise.
15755 * corelow.c (core_target::get_core_register_section): Change
15756 type of `contents` to gdb::byte_vector.
15757
15758 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15759
15760 * tui/tui-wingeneral.c (box_win): Position the title in the center
15761 of the border.
15762
15763 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15764
15765 * corelow.c (core_target::get_core_register_section): Use
15766 std::vector instead of alloca.
15767
15768 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15769
15770 * warning.m4: Add -Wmissing-declarations to build_warnings.
15771 * configure: Re-generate.
15772
15773 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15774
15775 * python/python.c (init__gdb_module): Add declaration.
15776
15777 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15778
15779 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15780 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15781 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15782 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15783 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15784 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15785 * ada-exp.y (_initialize_ada_exp): Add declaration.
15786 * ada-lang.c (_initialize_ada_language): Add declaration.
15787 * ada-tasks.c (_initialize_tasks): Add declaration.
15788 * agent.c (_initialize_agent): Add declaration.
15789 * aix-thread.c (_initialize_aix_thread): Add declaration.
15790 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15791 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15792 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15793 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15794 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15795 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15796 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15797 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15798 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15799 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15800 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15801 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15802 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15803 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15804 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15805 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15806 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15807 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15808 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15809 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15810 * annotate.c (_initialize_annotate): Add declaration.
15811 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15812 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15813 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15814 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15815 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15816 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15817 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15818 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15819 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15820 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15821 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15822 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15823 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15824 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15825 * auto-load.c (_initialize_auto_load): Add declaration.
15826 * auxv.c (_initialize_auxv): Add declaration.
15827 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15828 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15829 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15830 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15831 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15832 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15833 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15834 * breakpoint.c (_initialize_breakpoint): Add declaration.
15835 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15836 * btrace.c (_initialize_btrace): Add declaration.
15837 * charset.c (_initialize_charset): Add declaration.
15838 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15839 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15840 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15841 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15842 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15843 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15844 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15845 * coffread.c (_initialize_coffread): Add declaration.
15846 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15847 * compile/compile.c (_initialize_compile): Add declaration.
15848 * complaints.c (_initialize_complaints): Add declaration.
15849 * completer.c (_initialize_completer): Add declaration.
15850 * copying.c (_initialize_copying): Add declaration.
15851 * corefile.c (_initialize_core): Add declaration.
15852 * corelow.c (_initialize_corelow): Add declaration.
15853 * cp-abi.c (_initialize_cp_abi): Add declaration.
15854 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15855 * cp-support.c (_initialize_cp_support): Add declaration.
15856 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15857 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15858 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15859 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15860 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15861 * ctfread.c (_initialize_ctfread): Add declaration.
15862 * d-lang.c (_initialize_d_language): Add declaration.
15863 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15864 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15865 * dbxread.c (_initialize_dbxread): Add declaration.
15866 * dcache.c (_initialize_dcache): Add declaration.
15867 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15868 * disasm.c (_initialize_disasm): Add declaration.
15869 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15870 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15871 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15872 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15873 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15874 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15875 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15876 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15877 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15878 * elfread.c (_initialize_elfread): Add declaration.
15879 * exec.c (_initialize_exec): Add declaration.
15880 * extension.c (_initialize_extension): Add declaration.
15881 * f-lang.c (_initialize_f_language): Add declaration.
15882 * f-valprint.c (_initialize_f_valprint): Add declaration.
15883 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15884 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15885 * filesystem.c (_initialize_filesystem): Add declaration.
15886 * findcmd.c (_initialize_mem_search): Add declaration.
15887 * findvar.c (_initialize_findvar): Add declaration.
15888 * fork-child.c (_initialize_fork_child): Add declaration.
15889 * frame-base.c (_initialize_frame_base): Add declaration.
15890 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15891 * frame.c (_initialize_frame): Add declaration.
15892 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15893 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15894 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15895 * gcore.c (_initialize_gcore): Add declaration.
15896 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15897 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15898 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15899 * gdbarch.c (_initialize_gdbarch): Add declaration.
15900 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15901 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15902 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15903 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15904 * go-lang.c (_initialize_go_language): Add declaration.
15905 * go32-nat.c (_initialize_go32_nat): Add declaration.
15906 * guile/guile.c (_initialize_guile): Add declaration.
15907 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15908 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15909 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15910 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15911 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15912 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15913 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15914 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15915 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15916 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15917 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15918 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15919 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15920 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15921 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15922 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15923 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15924 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15925 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15926 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15927 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15928 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15929 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15930 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15931 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15932 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15933 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15934 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15935 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15936 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15937 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15938 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15939 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15940 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15941 * infcall.c (_initialize_infcall): Add declaration.
15942 * infcmd.c (_initialize_infcmd): Add declaration.
15943 * inflow.c (_initialize_inflow): Add declaration.
15944 * infrun.c (_initialize_infrun): Add declaration.
15945 * interps.c (_initialize_interpreter): Add declaration.
15946 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15947 * jit.c (_initialize_jit): Add declaration.
15948 * language.c (_initialize_language): Add declaration.
15949 * linux-fork.c (_initialize_linux_fork): Add declaration.
15950 * linux-nat.c (_initialize_linux_nat): Add declaration.
15951 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15952 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15953 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15954 * m2-lang.c (_initialize_m2_language): Add declaration.
15955 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15956 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15957 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15958 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15959 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15960 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15961 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15962 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15963 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15964 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15965 * machoread.c (_initialize_machoread): Add declaration.
15966 * macrocmd.c (_initialize_macrocmd): Add declaration.
15967 * macroscope.c (_initialize_macroscope): Add declaration.
15968 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15969 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15970 * maint.c (_initialize_maint_cmds): Add declaration.
15971 * mdebugread.c (_initialize_mdebugread): Add declaration.
15972 * memattr.c (_initialize_mem): Add declaration.
15973 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15974 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15975 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15976 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15977 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15978 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15979 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15980 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15981 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15982 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15983 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15984 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15985 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15986 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15987 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15988 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15989 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15990 * mipsread.c (_initialize_mipsread): Add declaration.
15991 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15992 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15993 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15994 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15995 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15996 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15997 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15998 * nto-procfs.c (_initialize_procfs): Add declaration.
15999 * objc-lang.c (_initialize_objc_language): Add declaration.
16000 * observable.c (_initialize_observer): Add declaration.
16001 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16002 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16003 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16004 * osabi.c (_initialize_gdb_osabi): Add declaration.
16005 * osdata.c (_initialize_osdata): Add declaration.
16006 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16007 * parse.c (_initialize_parse): Add declaration.
16008 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16009 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16010 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16011 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16012 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16013 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16014 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16015 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16016 * printcmd.c (_initialize_printcmd): Add declaration.
16017 * probe.c (_initialize_probe): Add declaration.
16018 * proc-api.c (_initialize_proc_api): Add declaration.
16019 * proc-events.c (_initialize_proc_events): Add declaration.
16020 * proc-service.c (_initialize_proc_service): Add declaration.
16021 * procfs.c (_initialize_procfs): Add declaration.
16022 * producer.c (_initialize_producer): Add declaration.
16023 * psymtab.c (_initialize_psymtab): Add declaration.
16024 * python/python.c (_initialize_python): Add declaration.
16025 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16026 * record-btrace.c (_initialize_record_btrace): Add declaration.
16027 * record-full.c (_initialize_record_full): Add declaration.
16028 * record.c (_initialize_record): Add declaration.
16029 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16030 * regcache.c (_initialize_regcache): Add declaration.
16031 * reggroups.c (_initialize_reggroup): Add declaration.
16032 * remote-notif.c (_initialize_notif): Add declaration.
16033 * remote-sim.c (_initialize_remote_sim): Add declaration.
16034 * remote.c (_initialize_remote): Add declaration.
16035 * reverse.c (_initialize_reverse): Add declaration.
16036 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16037 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16038 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16039 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16040 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16041 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16042 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16043 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16044 Add declaration.
16045 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16046 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16047 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16048 * rust-exp.y (_initialize_rust_exp): Add declaration.
16049 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16050 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16051 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16052 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16053 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16054 * score-tdep.c (_initialize_score_tdep): Add declaration.
16055 * ser-go32.c (_initialize_ser_dos): Add declaration.
16056 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16057 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16058 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16059 * ser-uds.c (_initialize_ser_socket): Add declaration.
16060 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16061 * serial.c (_initialize_serial): Add declaration.
16062 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16063 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16064 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16065 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16066 * skip.c (_initialize_step_skip): Add declaration.
16067 * sol-thread.c (_initialize_sol_thread): Add declaration.
16068 * solib-aix.c (_initialize_solib_aix): Add declaration.
16069 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16070 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16071 * solib-frv.c (_initialize_frv_solib): Add declaration.
16072 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16073 * solib-target.c (_initialize_solib_target): Add declaration.
16074 * solib.c (_initialize_solib): Add declaration.
16075 * source-cache.c (_initialize_source_cache): Add declaration.
16076 * source.c (_initialize_source): Add declaration.
16077 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16078 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16079 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16080 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16081 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16082 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16083 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16084 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16085 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16086 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16087 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16088 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16089 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16090 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16091 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16092 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16093 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16094 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16095 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16096 * stabsread.c (_initialize_stabsread): Add declaration.
16097 * stack.c (_initialize_stack): Add declaration.
16098 * stap-probe.c (_initialize_stap_probe): Add declaration.
16099 * std-regs.c (_initialize_frame_reg): Add declaration.
16100 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16101 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16102 * symfile.c (_initialize_symfile): Add declaration.
16103 * symmisc.c (_initialize_symmisc): Add declaration.
16104 * symtab.c (_initialize_symtab): Add declaration.
16105 * target.c (_initialize_target): Add declaration.
16106 * target-connection.c (_initialize_target_connection): Add
16107 declaration.
16108 * target-dcache.c (_initialize_target_dcache): Add declaration.
16109 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16110 * thread.c (_initialize_thread): Add declaration.
16111 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16112 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16113 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16114 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16115 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16116 * tracectf.c (_initialize_ctf): Add declaration.
16117 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16118 * tracefile.c (_initialize_tracefile): Add declaration.
16119 * tracepoint.c (_initialize_tracepoint): Add declaration.
16120 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16121 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16122 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16123 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16124 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16125 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16126 * tui/tui.c (_initialize_tui): Add declaration.
16127 * typeprint.c (_initialize_typeprint): Add declaration.
16128 * ui-style.c (_initialize_ui_style): Add declaration.
16129 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16130 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16131 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16132 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16133 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16134 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16135 * unittests/filtered_iterator-selftests.c
16136 (_initialize_filtered_iterator_selftests): Add declaration.
16137 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16138 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16139 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16140 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16141 * unittests/main-thread-selftests.c
16142 (_initialize_main_thread_selftests): Add declaration.
16143 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16144 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16145 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16146 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16147 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16148 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16149 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16150 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16151 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16152 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16153 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16154 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16155 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16156 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16157 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16158 declaration.
16159 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16160 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16161 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16162 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16163 * user-regs.c (_initialize_user_regs): Add declaration.
16164 * utils.c (_initialize_utils): Add declaration.
16165 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16166 * valops.c (_initialize_valops): Add declaration.
16167 * valprint.c (_initialize_valprint): Add declaration.
16168 * value.c (_initialize_values): Add declaration.
16169 * varobj.c (_initialize_varobj): Add declaration.
16170 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16171 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16172 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16173 * windows-nat.c (_initialize_windows_nat): Add declaration.
16174 (_initialize_check_for_gdb_ini): Add declaration.
16175 (_initialize_loadable): Add declaration.
16176 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16177 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16178 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16179 * xcoffread.c (_initialize_xcoffread): Add declaration.
16180 * xml-support.c (_initialize_xml_support): Add declaration.
16181 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16182 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16183 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16184 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16185
16186 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16187
16188 * regformats/regdat.sh: Generate declaration for init function.
16189
16190 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16191
16192 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16193 up.
16194 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16195 close_one_inferior>: New methods.
16196 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16197 pass down target to find_inferior_pid.
16198 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16199 Pass down target to find_inferior_ptid.
16200 (gdbsim_target::create_inferior): Pass down target to
16201 add_thread_silent.
16202 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16203 target down to find_inferior_ptid and switch_to_thread.
16204 (gdbsim_target::close): Update to call close_one_inferior.
16205 (struct resume_data): Remove.
16206 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16207 directly, rather than through a void pointer.
16208 (gdbsim_target::resume): Update to call resume_one_inferior.
16209
16210 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16211
16212 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16213
16214 2020-01-12 Pedro Alves <palves@redhat.com>
16215
16216 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16217 directly for the current inferior instead of
16218 discard_all_inferiors.
16219 (discard_all_inferiors): Delete.
16220
16221 2020-01-11 Tom Tromey <tom@tromey.com>
16222
16223 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16224 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16225 deprecated_safe_get_selected_frame.
16226
16227 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16228
16229 * inferior.c (print_inferior): Switch inferior before printing it.
16230
16231 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16232 Pedro Alves <palves@redhat.com>
16233
16234 * progspace-and-thread.c (switch_to_program_space_and_thread):
16235 Assert there's an inferior for PSPACE. Use
16236 switch_to_inferior_no_thread to switch the inferior too.
16237 * progspace.c (program_space::~program_space): Call
16238 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16239 (program_space::free_all_objfiles): Don't call clear_symtab_users
16240 here.
16241 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16242
16243 2020-01-10 Pedro Alves <palves@redhat.com>
16244
16245 * NEWS: Mention multi-target debugging, "info connections", and
16246 "add-inferior -no-connection".
16247
16248 2020-01-10 Pedro Alves <palves@redhat.com>
16249
16250 * infrun.c: Include "target-connection.h".
16251 (check_multi_target_resumption): New.
16252 (proceed): Call it.
16253 * target-connection.c (make_target_connection_string): Make
16254 extern.
16255 * target-connection.h (make_target_connection_string): Declare.
16256
16257 2020-01-10 Pedro Alves <palves@redhat.com>
16258
16259 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16260 * inferior.c (uiout_field_connection): New function.
16261 (print_inferior): Add new "connection-id" column.
16262 (add_inferior_command): Show connection number/string of added
16263 inferior.
16264 * process-stratum-target.h
16265 (process_stratum_target::connection_string): New virtual method.
16266 (process_stratum_target::connection_number): New field.
16267 * remote.c (remote_target::connection_string): New override.
16268 * target-connection.c: New file.
16269 * target-connection.h: New file.
16270 * target.c (decref_target): Remove process_stratum targets from
16271 the connection list.
16272 (target_stack::push): Add process_stratum targets to the
16273 connection list.
16274
16275 2020-01-10 Pedro Alves <palves@redhat.com>
16276
16277 Revert:
16278 2016-04-12 Pedro Alves <palves@redhat.com>
16279 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16280 Remove references to name.
16281 * serial.h (struct serial) <name>: Delete.
16282
16283 2020-01-10 Pedro Alves <palves@redhat.com>
16284
16285 * gdbarch-selftests.c (register_to_value_test): Remove "target
16286 already pushed" check.
16287
16288 2020-01-10 Pedro Alves <palves@redhat.com>
16289 John Baldwin <jhb@FreeBSD.org>
16290
16291 * aarch64-linux-nat.c
16292 (aarch64_linux_nat_target::thread_architecture): Adjust.
16293 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16294 (task_command_1): Likewise.
16295 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16296 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16297 (aix_thread_target::store_registers)
16298 (aix_thread_target::thread_alive): Adjust.
16299 * amd64-fbsd-tdep.c: Include "inferior.h".
16300 (amd64fbsd_get_thread_local_address): Pass down target.
16301 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16302 thread's gdbarch instead of target_gdbarch.
16303 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16304 get_last_target_status.
16305 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16306 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16307 inferiors.
16308 (update_inserted_breakpoint_locations): Skip if inferiors with no
16309 execution.
16310 (update_global_location_list): When handling moribund locations,
16311 find representative inferior for location's pspace, and use thread
16312 count of its process_stratum target.
16313 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16314 * bsd-uthread.c (bsd_uthread_target::wait): Use
16315 as_process_stratum_target and adjust thread_change_ptid and
16316 add_thread calls.
16317 (bsd_uthread_target::update_thread_list): Use
16318 as_process_stratum_target and adjust find_thread_ptid,
16319 thread_change_ptid and add_thread calls.
16320 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16321 find_thread_ptid call.
16322 * corelow.c (add_to_thread_list): Adjust add_thread call.
16323 (core_target_open): Adjust add_thread_silent and thread_count
16324 calls.
16325 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16326 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16327 * event-top.c (async_disconnect): Pop targets from all inferiors.
16328 * exec.c (add_target_sections): Push exec target on all inferiors
16329 sharing the program space.
16330 (remove_target_sections): Remove the exec target from all
16331 inferiors sharing the program space.
16332 (exec_on_vfork): New.
16333 * exec.h (exec_on_vfork): Declare.
16334 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16335 Pass it down.
16336 (fbsd_nat_target::update_thread_list): Adjust.
16337 (fbsd_nat_target::resume): Adjust.
16338 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16339 down.
16340 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16341 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16342 get_thread_arch_regcache call.
16343 * fork-child.c (gdb_startup_inferior): Pass target down to
16344 startup_inferior and set_executing.
16345 * gdbthread.h (struct process_stratum_target): Forward declare.
16346 (add_thread, add_thread_silent, add_thread_with_info)
16347 (in_thread_list): Add process_stratum_target parameter.
16348 (find_thread_ptid(inferior*, ptid_t)): New overload.
16349 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16350 parameter.
16351 (all_threads()): Delete overload.
16352 (all_threads, all_non_exited_threads): Add process_stratum_target
16353 parameter.
16354 (all_threads_safe): Use brace initialization.
16355 (thread_count): Add process_stratum_target parameter.
16356 (set_resumed, set_running, set_stop_requested, set_executing)
16357 (threads_are_executing, finish_thread_state): Add
16358 process_stratum_target parameter.
16359 (switch_to_thread): Use is_current_thread.
16360 * i386-fbsd-tdep.c: Include "inferior.h".
16361 (i386fbsd_get_thread_local_address): Pass down target.
16362 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16363 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16364 have_inferiors check.
16365 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16366 (inf_ptrace_target::attach): Adjust.
16367 * infcall.c (run_inferior_call): Adjust.
16368 * infcmd.c (run_command_1): Pass target to
16369 scoped_finish_thread_state.
16370 (proceed_thread_callback): Skip inferiors with no execution.
16371 (continue_command): Rename 'all_threads' local to avoid hiding
16372 'all_threads' function. Adjust get_last_target_status call.
16373 (prepare_one_step): Adjust set_running call.
16374 (signal_command): Use user_visible_resume_target. Compare thread
16375 pointers instead of inferior_ptid.
16376 (info_program_command): Adjust to pass down target.
16377 (attach_command): Mark target's 'thread_executing' flag.
16378 (stop_current_target_threads_ns): New, factored out from ...
16379 (interrupt_target_1): ... this. Switch inferior before making
16380 target calls.
16381 * inferior-iter.h
16382 (struct all_inferiors_iterator, struct all_inferiors_range)
16383 (struct all_inferiors_safe_range)
16384 (struct all_non_exited_inferiors_range): Filter on
16385 process_stratum_target too. Remove explicit.
16386 * inferior.c (inferior::inferior): Push dummy target on target
16387 stack.
16388 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16389 Add process_stratum_target parameter, and pass it down.
16390 (have_live_inferiors): Adjust.
16391 (switch_to_inferior_and_push_target): New.
16392 (add_inferior_command, clone_inferior_command): Handle
16393 "-no-connection" parameter. Use
16394 switch_to_inferior_and_push_target.
16395 (_initialize_inferior): Mention "-no-connection" option in
16396 the help of "add-inferior" and "clone-inferior" commands.
16397 * inferior.h: Include "process-stratum-target.h".
16398 (interrupt_target_1): Use bool.
16399 (struct inferior) <push_target, unpush_target, target_is_pushed,
16400 find_target_beneath, top_target, process_target, target_at,
16401 m_stack>: New.
16402 (discard_all_inferiors): Delete.
16403 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16404 (all_inferiors, all_non_exited_inferiors): Add
16405 process_stratum_target parameter.
16406 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16407 (target_last_proc_target): New global.
16408 (follow_fork_inferior): Push target on new inferior. Pass target
16409 to add_thread_silent. Call exec_on_vfork. Handle target's
16410 reference count.
16411 (follow_fork): Adjust get_last_target_status call. Also consider
16412 target.
16413 (follow_exec): Push target on new inferior.
16414 (struct execution_control_state) <target>: New field.
16415 (user_visible_resume_target): New.
16416 (do_target_resume): Call target_async.
16417 (resume_1): Set target's threads_executing flag. Consider resume
16418 target.
16419 (commit_resume_all_targets): New.
16420 (proceed): Also consider resume target. Skip threads of inferiors
16421 with no execution. Commit resumtion in all targets.
16422 (start_remote): Pass current inferior to wait_for_inferior.
16423 (infrun_thread_stop_requested): Consider target as well. Pass
16424 thread_info pointer to clear_inline_frame_state instead of ptid.
16425 (infrun_thread_thread_exit): Consider target as well.
16426 (random_pending_event_thread): New inferior parameter. Use it.
16427 (do_target_wait): Rename to ...
16428 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16429 down.
16430 (threads_are_resumed_pending_p, do_target_wait): New.
16431 (prepare_for_detach): Adjust calls.
16432 (wait_for_inferior): New inferior parameter. Handle it. Use
16433 do_target_wait_1 instead of do_target_wait.
16434 (fetch_inferior_event): Adjust. Switch to representative
16435 inferior. Pass target down.
16436 (set_last_target_status): Add process_stratum_target parameter.
16437 Save target in global.
16438 (get_last_target_status): Add process_stratum_target parameter and
16439 handle it.
16440 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16441 (context_switch): Check inferior_ptid == null_ptid before calling
16442 inferior_thread().
16443 (get_inferior_stop_soon): Pass down target.
16444 (wait_one): Rename to ...
16445 (poll_one_curr_target): ... this.
16446 (struct wait_one_event): New.
16447 (wait_one): New.
16448 (stop_all_threads): Adjust.
16449 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16450 event's target.
16451 (switch_back_to_stepped_thread): Also consider target.
16452 (print_stop_event): Update.
16453 (normal_stop): Update. Also consider the resume target.
16454 * infrun.h (wait_for_inferior): Remove declaration.
16455 (user_visible_resume_target): New declaration.
16456 (get_last_target_status, set_last_target_status): New
16457 process_stratum_target parameter.
16458 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16459 process_stratum_target parameter, and use it.
16460 (clear_inline_frame_state (thread_info*)): New.
16461 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16462 process_stratum_target parameter.
16463 (clear_inline_frame_state (thread_info*)): Declare.
16464 * linux-fork.c (delete_checkpoint_command): Pass target down to
16465 find_thread_ptid.
16466 (checkpoint_command): Adjust.
16467 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16468 instead of just tweaking inferior_ptid.
16469 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16470 (exit_lwp): Pass target down to find_thread_ptid.
16471 (attach_proc_task_lwp_callback): Pass target down to
16472 add_thread/set_running/set_executing.
16473 (linux_nat_target::attach): Pass target down to
16474 thread_change_ptid.
16475 (get_detach_signal): Pass target down to find_thread_ptid.
16476 Consider last target status's target.
16477 (linux_resume_one_lwp_throw, resume_lwp)
16478 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16479 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16480 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16481 (linux_nat_target::async_wait_fd): New.
16482 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16483 target down.
16484 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16485 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16486 * linux-thread-db.c (struct thread_db_info::process_target): New
16487 field.
16488 (add_thread_db_info): Save target.
16489 (get_thread_db_info): New process_stratum_target parameter. Also
16490 match target.
16491 (delete_thread_db_info): New process_stratum_target parameter.
16492 Also match target.
16493 (thread_from_lwp): Adjust to pass down target.
16494 (thread_db_notice_clone): Pass down target.
16495 (check_thread_db_callback): Pass down target.
16496 (try_thread_db_load_1): Always push the thread_db target.
16497 (try_thread_db_load, record_thread): Pass target down.
16498 (thread_db_target::detach): Pass target down. Always unpush the
16499 thread_db target.
16500 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16501 target down. Always unpush the thread_db target.
16502 (find_new_threads_callback, thread_db_find_new_threads_2)
16503 (thread_db_target::update_thread_list): Pass target down.
16504 (thread_db_target::pid_to_str): Pass current inferior down.
16505 (thread_db_target::get_thread_local_address): Pass target down.
16506 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16507 target down.
16508 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16509 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16510 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16511 (procfs_init_inferior): Rename to ...
16512 (procfs_target::procfs_init_inferior): ... this and adjust.
16513 (procfs_target::create_inferior, procfs_notice_thread)
16514 (procfs_do_thread_registers): Adjust.
16515 * ppc-fbsd-tdep.c: Include "inferior.h".
16516 (ppcfbsd_get_thread_local_address): Pass down target.
16517 * proc-service.c (ps_xfer_memory): Switch current inferior and
16518 program space as well.
16519 (get_ps_regcache): Pass target down.
16520 * process-stratum-target.c
16521 (process_stratum_target::thread_address_space)
16522 (process_stratum_target::thread_architecture): Pass target down.
16523 * process-stratum-target.h
16524 (process_stratum_target::threads_executing): New field.
16525 (as_process_stratum_target): New.
16526 * ravenscar-thread.c
16527 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16528 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16529 down.
16530 * record-btrace.c (record_btrace_target::info_record): Adjust.
16531 (record_btrace_target::record_method)
16532 (record_btrace_target::record_is_replaying)
16533 (record_btrace_target::fetch_registers)
16534 (get_thread_current_frame_id, record_btrace_target::resume)
16535 (record_btrace_target::wait, record_btrace_target::stop): Pass
16536 target down.
16537 * record-full.c (record_full_wait_1): Switch to event thread.
16538 Pass target down.
16539 * regcache.c (regcache::regcache)
16540 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16541 process_stratum_target parameter and handle it.
16542 (current_thread_target): New global.
16543 (get_thread_regcache): Add process_stratum_target parameter and
16544 handle it. Switch inferior before calling target method.
16545 (get_thread_regcache): Pass target down.
16546 (get_thread_regcache_for_ptid): Pass target down.
16547 (registers_changed_ptid): Add process_stratum_target parameter and
16548 handle it.
16549 (registers_changed_thread, registers_changed): Pass target down.
16550 (test_get_thread_arch_aspace_regcache): New.
16551 (current_regcache_test): Define a couple local test_target_ops
16552 instances and use them for testing.
16553 (readwrite_regcache): Pass process_stratum_target parameter.
16554 (cooked_read_test, cooked_write_test): Pass mock_target down.
16555 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16556 (get_thread_arch_aspace_regcache): Add process_stratum_target
16557 parameter.
16558 (regcache::target): New method.
16559 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16560 (regcache::registers_changed_ptid): Add process_stratum_target
16561 parameter.
16562 (regcache::m_target): New field.
16563 (registers_changed_ptid): Add process_stratum_target parameter.
16564 * remote.c (remote_state::supports_vCont_probed): New field.
16565 (remote_target::async_wait_fd): New method.
16566 (remote_unpush_and_throw): Add remote_target parameter.
16567 (get_current_remote_target): Adjust.
16568 (remote_target::remote_add_inferior): Push target.
16569 (remote_target::remote_add_thread)
16570 (remote_target::remote_notice_new_inferior)
16571 (get_remote_thread_info): Pass target down.
16572 (remote_target::update_thread_list): Skip threads of inferiors
16573 bound to other targets. (remote_target::close): Don't discard
16574 inferiors. (remote_target::add_current_inferior_and_thread)
16575 (remote_target::process_initial_stop_replies)
16576 (remote_target::start_remote)
16577 (remote_target::remote_serial_quit_handler): Pass down target.
16578 (remote_target::remote_unpush_target): New remote_target
16579 parameter. Unpush the target from all inferiors.
16580 (remote_target::remote_unpush_and_throw): New remote_target
16581 parameter. Pass it down.
16582 (remote_target::open_1): Check whether the current inferior has
16583 execution instead of checking whether any inferior is live. Pass
16584 target down.
16585 (remote_target::remote_detach_1): Pass down target. Use
16586 remote_unpush_target.
16587 (extended_remote_target::attach): Pass down target.
16588 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16589 (remote_target::append_resumption): Pass down target.
16590 (remote_target::append_pending_thread_resumptions)
16591 (remote_target::remote_resume_with_hc, remote_target::resume)
16592 (remote_target::commit_resume): Pass down target.
16593 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16594 (remote_target::interrupt_query)
16595 (remote_target::remove_new_fork_children)
16596 (remote_target::check_pending_events_prevent_wildcard_vcont)
16597 (remote_target::remote_parse_stop_reply)
16598 (remote_target::process_stop_reply): Pass down target.
16599 (first_remote_resumed_thread): New remote_target parameter. Pass
16600 it down.
16601 (remote_target::wait_as): Pass down target.
16602 (unpush_and_perror): New remote_target parameter. Pass it down.
16603 (remote_target::readchar, remote_target::remote_serial_write)
16604 (remote_target::getpkt_or_notif_sane_1)
16605 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16606 down target.
16607 (remote_target::mourn_inferior): Pass down target. Use
16608 remote_unpush_target.
16609 (remote_target::core_of_thread)
16610 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16611 (remote_target::pid_to_exec_file)
16612 (remote_target::thread_handle_to_thread_info): Pass down target.
16613 (remote_target::async_wait_fd): New.
16614 * riscv-fbsd-tdep.c: Include "inferior.h".
16615 (riscv_fbsd_get_thread_local_address): Pass down target.
16616 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16617 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16618 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16619 Adjust.
16620 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16621 * solib-svr4.c (enable_break): Pass down target.
16622 * spu-multiarch.c (parse_spufs_run): Pass down target.
16623 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16624 * target-delegates.c: Regenerate.
16625 * target.c (g_target_stack): Delete.
16626 (current_top_target): Return the current inferior's top target.
16627 (target_has_execution_1): Refer to the passed-in inferior's top
16628 target.
16629 (target_supports_terminal_ours): Check whether the initial
16630 inferior was already created.
16631 (decref_target): New.
16632 (target_stack::push): Incref/decref the target.
16633 (push_target, push_target, unpush_target): Adjust.
16634 (target_stack::unpush): Defref target.
16635 (target_is_pushed): Return bool. Adjust to refer to the current
16636 inferior's target stack.
16637 (dispose_inferior): Delete, and inline parts ...
16638 (target_preopen): ... here. Only dispose of the current inferior.
16639 (target_detach): Hold strong target reference while detaching.
16640 Pass target down.
16641 (target_thread_name): Add assertion.
16642 (target_resume): Pass down target.
16643 (target_ops::beneath, find_target_at): Adjust to refer to the
16644 current inferior's target stack.
16645 (get_dummy_target): New.
16646 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16647 has a thread running.
16648 (initialize_targets): Rename to ...
16649 (_initialize_target): ... this.
16650 * target.h: Include "gdbsupport/refcounted-object.h".
16651 (struct target_ops): Inherit refcounted_object.
16652 (target_ops::shortname, target_ops::longname): Make const.
16653 (target_ops::async_wait_fd): New method.
16654 (decref_target): Declare.
16655 (struct target_ops_ref_policy): New.
16656 (target_ops_ref): New typedef.
16657 (get_dummy_target): Declare function.
16658 (target_is_pushed): Return bool.
16659 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16660 (all_matching_threads_iterator::all_matching_threads_iterator):
16661 Handle filter target.
16662 * thread-iter.h (struct all_matching_threads_iterator, struct
16663 all_matching_threads_range, class all_non_exited_threads_range):
16664 Filter by target too. Remove explicit.
16665 * thread.c (threads_executing): Delete.
16666 (inferior_thread): Pass down current inferior.
16667 (clear_thread_inferior_resources): Pass down thread pointer
16668 instead of ptid_t.
16669 (add_thread_silent, add_thread_with_info, add_thread): Add
16670 process_stratum_target parameter. Use it for thread and inferior
16671 searches.
16672 (is_current_thread): New.
16673 (thread_info::deletable): Use it.
16674 (find_thread_ptid, thread_count, in_thread_list)
16675 (thread_change_ptid, set_resumed, set_running): New
16676 process_stratum_target parameter. Pass it down.
16677 (set_executing): New process_stratum_target parameter. Pass it
16678 down. Adjust reference to 'threads_executing'.
16679 (threads_are_executing): New process_stratum_target parameter.
16680 Adjust reference to 'threads_executing'.
16681 (set_stop_requested, finish_thread_state): New
16682 process_stratum_target parameter. Pass it down.
16683 (switch_to_thread): Also match inferior.
16684 (switch_to_thread): New process_stratum_target parameter. Pass it
16685 down.
16686 (update_threads_executing): Reimplement.
16687 * top.c (quit_force): Pop targets from all inferior.
16688 (gdb_init): Don't call initialize_targets.
16689 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16690 Declare.
16691 (windows_add_thread, windows_delete_thread): Adjust.
16692 (get_windows_debug_event): Rename to ...
16693 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16694 * tracefile-tfile.c (tfile_target_open): Pass down target.
16695 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16696 Forward declare.
16697 (switch_to_thread): Add process_stratum_target parameter.
16698 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16699 parameter. Use it.
16700 (mi_on_resume): Pass target down.
16701 * nat/fork-inferior.c (startup_inferior): Add
16702 process_stratum_target parameter. Pass it down.
16703 * nat/fork-inferior.h (startup_inferior): Add
16704 process_stratum_target parameter.
16705 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16706
16707 2020-01-10 Pedro Alves <palves@redhat.com>
16708
16709 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16710 directly. Instead find the first thread in the thread list and
16711 use switch_to_thread.
16712
16713 2020-01-10 Pedro Alves <palves@redhat.com>
16714
16715 * remote.c (remote_target::remote_add_inferior): Don't bind a
16716 process to the current inferior if the current inferior is already
16717 bound to a process.
16718
16719 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16720 Pedro Alves <palves@redhat.com>
16721
16722 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16723 If no process is specified, return null_ptid instead of
16724 inferior_ptid.
16725 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16726 TARGET_WAITKIND_SIGNALLED with no pid.
16727
16728 2020-01-10 Pedro Alves <palves@redhat.com>
16729
16730 * remote.c (first_remote_resumed_thread): New.
16731 (remote_target::wait_as): Use it as default event_ptid instead of
16732 inferior_ptid.
16733
16734 2020-01-10 Pedro Alves <palves@redhat.com>
16735
16736 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16737
16738 2020-01-10 Pedro Alves <palves@redhat.com>
16739
16740 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16741 not -1.
16742
16743 2020-01-10 Pedro Alves <palves@redhat.com>
16744
16745 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16746 ptid to get_last_target_status.
16747 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16748 ptid to get_last_target_status.
16749 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16750 get_last_target_status.
16751 (info_program_command): Don't pass a target_waitstatus to
16752 get_last_target_status.
16753 * infrun.c (init_wait_for_inferior): Use
16754 nullify_last_target_wait_ptid.
16755 (get_last_target_status): Handle nullptr arguments.
16756 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16757 (print_stop_event): Don't pass a ptid to get_last_target_status.
16758 (normal_stop): Don't pass a ptid to get_last_target_status.
16759 * infrun.h (get_last_target_status, set_last_target_status): Move
16760 comments here and update.
16761 (nullify_last_target_wait_ptid): Declare.
16762 * linux-fork.c (fork_load_infrun_state): Remove local extern
16763 declaration of nullify_last_target_wait_ptid.
16764 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16765 to get_last_target_status.
16766
16767 2020-01-10 Pedro Alves <palves@redhat.com>
16768
16769 * gdbthread.h (scoped_restore_current_thread)
16770 <dont_restore, restore, m_dont_restore>: Declare.
16771 * thread.c (thread_alive): Add assertion. Return bool.
16772 (switch_to_thread_if_alive): New.
16773 (prune_threads): Switch inferior/thread.
16774 (print_thread_info_1): Switch thread before calling target methods.
16775 (scoped_restore_current_thread::restore): New, factored out from
16776 ...
16777 (scoped_restore_current_thread::~scoped_restore_current_thread):
16778 ... this.
16779 (scoped_restore_current_thread::scoped_restore_current_thread):
16780 Add assertion.
16781 (thread_apply_all_command, thread_select): Use
16782 switch_to_thread_if_alive.
16783 * infrun.c (proceed, restart_threads, handle_signal_stop)
16784 (switch_back_to_stepped_thread): Switch current thread before
16785 calling target methods.
16786
16787 2020-01-10 Pedro Alves <palves@redhat.com>
16788
16789 * inferior.c (switch_to_inferior_no_thread): New function,
16790 factored out from ...
16791 (inferior_command): ... here.
16792 * inferior.h (switch_to_inferior_no_thread): Declare.
16793 * mi/mi-main.c (run_one_inferior): Use
16794 switch_to_inferior_no_thread.
16795
16796 2020-01-10 Pedro Alves <palves@redhat.com>
16797
16798 * infcmd.c (kill_command): Remove dead code.
16799
16800 2020-01-10 Pedro Alves <palves@redhat.com>
16801
16802 * remote.c (remote_target::mourn_inferior): No longer check
16803 whether the target is running.
16804
16805 2020-01-10 Pedro Alves <palves@redhat.com>
16806
16807 * corelow.c (core_target::has_execution): Change parameter type to
16808 inferior pointer.
16809 * inferior.c (number_of_live_inferiors): Use
16810 inferior::has_execution instead of target_has_execution_1.
16811 * inferior.h (inferior::has_execution): New.
16812 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16813 inferior::has_execution instead of target_has_execution_1.
16814 * process-stratum-target.c
16815 (process_stratum_target::has_execution): Change parameter type to
16816 inferior pointer. Check the inferior's PID instead of
16817 inferior_ptid.
16818 * process-stratum-target.h
16819 (process_stratum_target::has_execution): Change parameter type to
16820 inferior pointer.
16821 * record-full.c (record_full_core_target::has_execution): Change
16822 parameter type to inferior pointer.
16823 * target.c (target_has_execution_1): Change parameter type to
16824 inferior pointer.
16825 (target_has_execution_current): Adjust.
16826 * target.h (target_ops::has_execution): Change parameter type to
16827 inferior pointer.
16828 (target_has_execution_1): Change parameter type to inferior
16829 pointer. Change return type to bool.
16830 * tracefile.h (tracefile_target::has_execution): Change parameter
16831 type to inferior pointer.
16832
16833 2020-01-10 Pedro Alves <palves@redhat.com>
16834
16835 * exceptions.c (print_flush): Remove current_top_target() check.
16836
16837 2020-01-10 Pedro Alves <palves@redhat.com>
16838
16839 * remote.c (show_remote_exec_file): Show the current inferior's
16840 exec-file instead of the command variable's value.
16841
16842 2020-01-10 Pedro Alves <palves@redhat.com>
16843
16844 * record-full.c (record_full_resume_ptid): New global.
16845 (record_full_target::resume): Set it.
16846 (record_full_wait_1): Use record_full_resume_ptid instead of
16847 inferior_ptid.
16848
16849 2020-01-10 Pedro Alves <palves@redhat.com>
16850
16851 * gdbthread.h (scoped_restore_current_thread)
16852 <dont_restore, restore, m_dont_restore>: Declare.
16853 * thread.c (thread_alive): Add assertion. Return bool.
16854 (switch_to_thread_if_alive): New.
16855 (prune_threads): Switch inferior/thread.
16856 (print_thread_info_1): Switch thread before calling target methods.
16857 (scoped_restore_current_thread::restore): New, factored out from
16858 ...
16859 (scoped_restore_current_thread::~scoped_restore_current_thread):
16860 ... this.
16861 (scoped_restore_current_thread::scoped_restore_current_thread):
16862 Add assertion.
16863 (thread_apply_all_command, thread_select): Use
16864 switch_to_thread_if_alive.
16865
16866 2020-01-10 George Barrett <bob@bob131.so>
16867
16868 * stap-probe.c (stap_modify_semaphore): Don't check for null
16869 semaphores.
16870 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16871 for null semaphores.
16872
16873 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16874
16875 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16876 all source windows, and maintain horizontal scroll status while
16877 doing so.
16878
16879 2020-01-09 Tom Tromey <tom@tromey.com>
16880
16881 PR tui/18932:
16882 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16883 update_source_window, not print_source_lines.
16884
16885 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16886
16887 * tui/tui.c (tui_enable): Register tui hooks after calling
16888 tui_display_main.
16889
16890 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16891
16892 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16893
16894 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16895
16896 * thread.c (print_thread_info_1): Fix indentation.
16897
16898 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16899
16900 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16901 unique_xmalloc_ptr outside the if to always free the demangled name.
16902
16903 2020-01-08 Tom Tromey <tromey@adacore.com>
16904
16905 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16906 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16907 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16908 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16909 Remove.
16910 (section_offsets): New typedef.
16911 * symtab.c (fixup_section, get_msymbol_address): Update.
16912 * symmisc.c (dump_msymbols): Update.
16913 * symfile.h (relative_addr_info_to_section_offsets)
16914 (symfile_map_offsets_to_segments): Update.
16915 * symfile.c (build_section_addr_info_from_objfile)
16916 (init_objfile_sect_indices): Update.
16917 (struct place_section_arg): Change type of "offsets".
16918 (place_section): Update.
16919 (relative_addr_info_to_section_offsets): Change type of
16920 "section_offsets". Remove "num_sections" parameter.
16921 (default_symfile_offsets, syms_from_objfile_1)
16922 (set_objfile_default_section_offset): Update.
16923 (reread_symbols): No need to preserve section offsets by hand.
16924 (symfile_map_offsets_to_segments): Change type of "offsets".
16925 * stap-probe.c (relocate_address): Update.
16926 * stabsread.h (process_one_symbol): Update.
16927 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16928 (solib_target_relocate_section_addresses): Update.
16929 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16930 Update.
16931 * solib-frv.c (frv_relocate_main_executable): Update.
16932 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16933 * solib-aix.c (solib_aix_get_section_offsets): Change return
16934 type.
16935 (solib_aix_solib_create_inferior_hook): Update.
16936 * remote.c (remote_target::get_offsets): Update.
16937 * psymtab.c (find_pc_sect_psymtab): Update.
16938 * psympriv.h (struct partial_symbol) <address, text_low,
16939 text_high>: Update.
16940 * objfiles.h (obj_section_offset): Update.
16941 (struct objfile) <section_offsets>: Change type.
16942 <num_sections>: Remove.
16943 (objfile_relocate): Update.
16944 * objfiles.c (entry_point_address_query): Update
16945 (relocate_one_symbol): Change type of "section_offsets".
16946 (objfile_relocate1, objfile_relocate1): Change type of
16947 "new_offsets".
16948 (objfile_rebase1): Update.
16949 * mipsread.c (mipscoff_symfile_read): Update.
16950 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16951 parameter.
16952 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16953 (parse_external, psymtab_to_symtab_1): Update.
16954 * machoread.c (macho_symfile_offsets): Update.
16955 * ia64-tdep.c (ia64_find_unwind_table): Update.
16956 * hppa-tdep.c (read_unwind_info): Update.
16957 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16958 * dwarf2read.c (create_addrmap_from_index)
16959 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16960 (process_psymtab_comp_unit_reader, add_partial_symbol)
16961 (add_partial_subprogram, process_full_comp_unit)
16962 (read_file_scope, read_func_scope, read_lexical_block_scope)
16963 (read_call_site_scope, dwarf2_rnglists_process)
16964 (dwarf2_ranges_process, dwarf2_ranges_read)
16965 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16966 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16967 Update.
16968 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16969 Update.
16970 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16971 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16972 (process_one_symbol): Change type of "section_offsets".
16973 * ctfread.c (get_objfile_text_range): Update.
16974 * coffread.c (coff_symtab_read, enter_linenos)
16975 (process_coff_symbol): Update.
16976 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16977 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16978
16979 2020-01-08 Tom Tromey <tromey@adacore.com>
16980
16981 * dwarf2read.c (parse_macro_definition): Use std::string.
16982 (parse_macro_definition): Likewise.
16983
16984 2020-01-08 Tom Tromey <tromey@adacore.com>
16985
16986 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16987 (ATTR_ALLOC_CHUNK): Remove.
16988
16989 2020-01-08 Tom Tromey <tromey@adacore.com>
16990
16991 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16992
16993 2020-01-08 Tom Tromey <tromey@adacore.com>
16994
16995 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16996 (dwarf2_compute_name, open_dwo_file): Likewise.
16997 (process_enumeration_scope): Use std::vector.
16998 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16999 (partial_die_info::fixup, dwarf2_start_subfile)
17000 (guess_full_die_structure_name, dwarf2_name): Likewise.
17001 (determine_prefix): Update.
17002 (guess_full_die_structure_name): Make return type const.
17003 (partial_die_full_name): Return unique_xmalloc_ptr.
17004 (DW_FIELD_ALLOC_CHUNK): Remove.
17005
17006 2020-01-07 Tom Tromey <tromey@adacore.com>
17007
17008 PR build/24937:
17009 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17010
17011 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17012
17013 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17014
17015 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17016
17017 * stack.c (print_frame_info): Move disassemble_next_line code
17018 inside source_print block.
17019
17020 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17021
17022 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17023 gdb/signals.h, as we are now using native signal symbols.
17024
17025 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17026
17027 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17028 overflow by an early check of content vs threshold.
17029 * tui/tui-source.c (tui_source_window::line_is_displayed):
17030 Likewise.
17031
17032 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17033
17034 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17035
17036 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17037
17038 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17039 export table if no section contains it's RVA.
17040
17041 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17042
17043 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17044
17045 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17046
17047 * source.c (print_source_lines_base): Set last_line_listed.
17048
17049 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17050
17051 * tui/tui-disasm.c: Remove trailing spaces.
17052
17053 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17054 Pedro Alves <palves@redhat.com>
17055
17056 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17057 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17058 (windows_gdb_signal_to_target): New function, uses the above
17059 enumeration to convert GDB internal signal codes to equivalent
17060 Windows codes.
17061 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17062 * windows-nat.c: Include "gdb_wait.h".
17063 (get_windows_debug_event): Extract the fatal exception from the
17064 exit status and convert to the equivalent Posix signal number.
17065 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17066 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17067 * gdbsupport/gdb_wait.c: New file, implements
17068 windows_status_to_termsig.
17069 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17070 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17071
17072 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17073
17074 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17075 show_layout.
17076
17077 2020-01-05 Luis Machado <luis.machado@linaro.org>
17078
17079 * aarch64-linux-nat.c
17080 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17081 and bfd_mach_aarch64.
17082
17083 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17084
17085 * ui-file.c (stdio_file::can_emit_style_escape)
17086 (tee_file::can_emit_style_escape): Ensure style is used also on
17087 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17088 to gdb_stdout.
17089 * main.c (set_gdb_data_directory): Use file style to output the
17090 warning that the given pathname is not a directory.
17091 * top.c (show_history_filename, gdb_safe_append_history)
17092 (show_gdb_datadir): Use file style.
17093
17094 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17095
17096 * solib-target.c (struct lm_info_target):
17097 Change offsets to be a unique_xmalloc_ptr.
17098 (solib_target_relocate_section_addresses): Update.
17099
17100 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17101
17102 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17103
17104 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17105
17106 * MAINTAINERS (Write After Approval): Add myself.
17107
17108 2020-01-02 Luis Machado <luis.machado@linaro.org>
17109
17110 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17111 Cell BE architecture.
17112 * target.h (struct target_ops) <thread_architecture>: Likewise.
17113
17114 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17115
17116 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17117
17118 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17119
17120 * MAINTAINERS (Write After Approval): Add myself.
17121
17122 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17123
17124 * gdbarch.sh: Update copyright year range of generated files.
17125
17126 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17127
17128 Update copyright year range in all GDB files.
17129
17130 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17131
17132 * copyright.py: Convert to Python 3.
17133
17134 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17135
17136 * copyright.py: Adapt after move of gnulib directory from gdb
17137 directory to toplevel directory.
17138
17139 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17140
17141 * copyright.py (main): Exit if run from the wrong directory.
17142
17143 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17144
17145 * top.c (print_gdb_version): Change copyright year to 2020.
17146
17147 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17148
17149 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17150
17151 For older changes see ChangeLog-2019.
17152 \f
17153 Local Variables:
17154 mode: change-log
17155 left-margin: 8
17156 fill-column: 74
17157 version-control: never
17158 coding: utf-8
17159 End:
This page took 0.417509 seconds and 4 git commands to generate.