[gdb] Don't return non-existing path in debuginfod_source_query
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-23 Tom de Vries <tdevries@suse.de>
2
3 * debuginfod-support.c (debuginfod_source_query)
4 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
5
6 2020-11-21 Tom Tromey <tom@tromey.com>
7
8 * breakpoint.c (watchpoint_exp_is_const): Return bool.
9
10 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
13 Pass 2.0 to pow.
14 (gdb_mpz_write_all_from_small): Likewise.
15
16 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
19 of abs.
20
21 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
22
23 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
24 ctf_arc_open_by_name.
25
26 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
27
28 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
29 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
30
31 2020-11-20 Pedro Alves <pedro@palves.net>
32
33 * language.c (language_arch_info::lookup_primitive_type): Use
34 gdb::function_view instead of gdb::function.
35 (template language_lookup_primitive_type): Rename to ...
36 (language_lookup_primitive_type_1): ... this, and make static.
37 (language_lookup_primitive_type(const struct language_defn *,
38 struct gdbarch *, const char *): Make non-template.
39 (language_lookup_primitive_type(const struct language_defn *,
40 struct gdbarch *, std::function<bool (struct type *)>): Make
41 non-template and use gdb::function_view.
42 * language.h (language_arch_info::lookup_primitive_type): Use
43 gdb::function_view instead of std::function.
44 (language_lookup_primitive_type): No longer template.
45 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
46 lambda instead of a std::function.
47
48 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
49
50 PR tdep/26916
51 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
52 and STOCFH.
53
54 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
57
58 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
61 in `loop_cb` parameter.
62 * gdbarch.c: Re-generate.
63 * gdbarch.h: Re-generate.
64 * arch-utils.c (default_read_core_file_mappings): Remove `other`
65 parameter.
66 * arch-utils.h (default_read_core_file_mappings): Likewise.
67 * corelow.c (core_target::build_file_mappings): Likewise.
68 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
69 (linux_core_info_proc_mappings): Likewise.
70
71 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
74 * NEWS: Mention new options.
75 * f-array-walker.h: New file.
76 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
77 (repack_array_slices): New static global.
78 (show_repack_array_slices): New function.
79 (fortran_array_slicing_debug): New static global.
80 (show_fortran_array_slicing_debug): New function.
81 (value_f90_subarray): Delete.
82 (skip_undetermined_arglist): Delete.
83 (class fortran_array_repacker_base_impl): New class.
84 (class fortran_lazy_array_repacker_impl): New class.
85 (class fortran_array_repacker_impl): New class.
86 (fortran_value_subarray): Complete rewrite.
87 (set_fortran_list): New static global.
88 (show_fortran_list): Likewise.
89 (_initialize_f_language): Register new commands.
90 (fortran_adjust_dynamic_array_base_address_hack): New function.
91 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
92 Declare.
93 * f-valprint.c: Include 'f-array-walker.h'.
94 (class fortran_array_printer_impl): New class.
95 (f77_print_array_1): Delete.
96 (f77_print_array): Delete.
97 (fortran_print_array): New.
98 (f_value_print_inner): Update to call fortran_print_array.
99 * gdbtypes.c: Include 'f-lang.h'.
100 (resolve_dynamic_type_internal): Call
101 fortran_adjust_dynamic_array_base_address_hack.
102
103 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * breakpoint.c (struct watch_options): New struct.
106 (watch_option_defs): New static global.
107 (make_watch_options_def_group): New function.
108 (watch_maybe_just_location): Convert option parsing.
109 (watch_command_completer): New function.
110 (_initialize_breakpoint): Build help text using options mechanism.
111
112 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
115 (watch_command_1): Update parameter types. Convert locals to
116 bool.
117 (watch_command_wrapper): Change parameter type.
118 (watch_maybe_just_location): Change locals to bool.
119 (rwatch_command_wrapper): Update parameter type.
120 (awatch_command_wrapper): Update parameter type.
121 * breakpoint.h (watch_command_wrapper): Change parameter type.
122 (rwatch_command_wrapper): Update parameter type.
123 (awatch_command_wrapper): Update parameter type.
124 * eval.c (fetch_subexp_value): Change parameter type.
125 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
126 'false' not '0'.
127 * value.h (fetch_subexp_value): Change parameter type in
128 declaration.
129
130 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
133 skip_spaces.
134
135 2020-11-18 Keith Seitz <keiths@redhat.com>
136
137 * linux-tdep.c (dump_note_entry_p): Return true instead of
138 checking `filename'.
139
140 2020-11-18 Tom de Vries <tdevries@suse.de>
141
142 * debuginfod-support.c (debuginfod_source_query)
143 (debuginfod_debuginfo_query): Also do early exit if
144 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
145
146 2020-11-18 Tom de Vries <tdevries@suse.de>
147
148 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
149 warning.
150
151 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * gdbtypes.h (get_array_bounds): Return bool, adjust some
154 callers. Move doc here.
155 * gdbtypes.c (get_array_bounds): Return bool
156
157 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
160 assert.
161 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
162 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
163 case to the default.
164
165 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * printcmd.c: Include 'safe-ctype.c'.
168 (skip_over_slash_fmt): New function.
169 (print_command_completer): Call skip_over_slash_fmt.
170 (display_and_x_command_completer): New function.
171 (_initialize_printcmd): Add command completion for 'x' and
172 'display'.
173
174 2020-11-16 Pedro Alves <pedro@palves.net>
175
176 * frame.c (get_prev_frame): Move get_frame_id call from here ...
177 (get_prev_frame_always_1): ... to here.
178 * inline-frame.c (inline_frame_this_id): Mention
179 get_prev_frame_always_1 in comment.
180
181 2020-11-15 Joel Brobecker <brobecker@adacore.com>
182
183 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
184 handling.
185 (value_less): Add fixed-point handling.
186
187 2020-11-15 Joel Brobecker <brobecker@adacore.com>
188
189 * eval.c (binop_promote): Add fixed-point type handling.
190 * valarith.c (fixed_point_binop): New function.
191 (scalar_binop): Add fixed-point type handling.
192 (value_neg): Add fixed-point type handling.
193 * valops.c (value_cast_to_fixed_point): New function.
194 (value_cast): Add fixed-point type handling.
195
196 2020-11-15 Joel Brobecker <brobecker@adacore.com>
197
198 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
199 range types.
200 * c-typeprint.c (c_type_print_varspec_prefix)
201 (c_type_print_varspec_suffix, c_type_print_base_1): Add
202 TYPE_CODE_FIXED_POINT handling.
203 * p-typeprint.c (pascal_type_print_varspec_prefix)
204 (pascal_type_print_varspec_suffix): Likewise.
205 * typeprint.c (print_type_fixed_point): New function.
206 * typeprint.h (print_type_fixed_point): Add declaration.
207
208 2020-11-15 Joel Brobecker <brobecker@adacore.com>
209
210 * printcmd.c (print_scalar_formatted): Add fixed-point type
211 handling when options->format is set.
212
213 2020-11-15 Joel Brobecker <brobecker@adacore.com>
214
215 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
216 * dwarf2/read.c (get_dwarf2_rational_constant)
217 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
218 (has_zero_over_zero_small_attribute): New functions.
219 read_base_type, set_die_type): Add fixed-point type handling.
220 * gdb-gdb.py.in: Add fixed-point type handling.
221 * gdbtypes.c: #include "gmp-utils.h".
222 (create_range_type, set_type_code): Add fixed-point type handling.
223 (init_fixed_point_type): New function.
224 (is_integral_type, is_scalar_type): Add fixed-point type handling.
225 (print_fixed_point_type_info): New function.
226 (recursive_dump_type, copy_type_recursive): Add fixed-point type
227 handling.
228 (fixed_point_type_storage): New typedef.
229 (fixed_point_objfile_key): New static global.
230 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
231 (fixed_point_type_base_type, fixed_point_scaling_factor): New
232 functions.
233 * gdbtypes.h: #include "gmp-utils.h".
234 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
235 (union type_specific) <fixed_point_info>: New field.
236 (struct fixed_point_type_info): New struct.
237 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
238 (init_fixed_point_type, is_fixed_point_type)
239 (fixed_point_type_base_type, fixed_point_scaling_factor)
240 (allocate_fixed_point_type_info): Add declarations.
241 * valprint.c (generic_val_print_fixed_point): New function.
242 (generic_value_print): Add fixed-point type handling.
243 * value.c (value_as_address, unpack_long): Add fixed-point type
244 handling.
245
246 2020-11-15 Joel Brobecker <brobecker@adacore.com>
247
248 * utils.h (uinteger_pow): Add declaration.
249 * utils.c (uinteger_pow): Moved here (without changes)...
250 * valarith.c (uinteger_pow): ... from here.
251
252 2020-11-15 Joel Brobecker <brobecker@adacore.com>
253
254 * gmp-utils.h, gmp-utils.c: New file.
255 * unittests/gmp-utils-selftests.c: New file.
256 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
257 unittests/gmp-utils-selftests.c.
258 (COMMON_SFILES) Add gmp-utils.c.
259 (HFILES_NO_SRCDIR): Add gmp-utils.h.
260
261 2020-11-15 Joel Brobecker <brobecker@adacore.com>
262
263 * configure.ac: Generate an error if a usable GMP library
264 could not be found.
265 * configure: Regenerate.
266
267 2020-11-15 Joel Brobecker <brobecker@adacore.com>
268
269 * configure.ac: Add support for --with-libgmp-prefix.
270 * Makefile.in (LIBGMP): New variable.
271 (CLIBS): Include $(LIBGMP).
272 * configure, config.in: Regenerate
273
274 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 PR cli/26879
277 * f-exp.y (COMPLETE): New token.
278 (exp): Two new rules for tab-completion.
279 (saw_name_at_eof): New static global.
280 (last_was_structop): Likewise.
281 (yylex): Set new variables, and return COMPLETE token at the end
282 of the input stream in some cases.
283
284 2020-11-14 Tom Tromey <tom@tromey.com>
285
286 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
287
288 2020-11-14 Tom Tromey <tom@tromey.com>
289
290 * opencl-lang.c (opencl_component_ref): Make "comps" const.
291
292 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
295
296 2020-11-13 Tom Tromey <tom@tromey.com>
297
298 * c-lang.c (convert_ucn, convert_octal, convert_hex)
299 (convert_escape, parse_one_string): Constify.
300
301 2020-11-13 Keith Seitz <keiths@redhat.com>
302
303 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
304 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
305 outside of ELF segments" warning for debugin
306
307 2020-11-13 Keith Seitz <keiths@redhat.com>
308
309 PR gdb/23034
310 * elfread.c (elf_symfile_segments): Output a BFD file name
311 for the "Loadable section ... outside of ELF segments" warning.
312
313 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
314
315 PR gdb/26835
316 * arm-tdep.c (class arm_instruction_reader): New.
317 (target_arm_instruction_reader): New.
318 (arm_analyze_prologue): Add instruction reader parameter and use
319 it. Use arm_expand_immediate.
320 (class target_arm_instruction_reader): Adjust.
321 (arm_skip_prologue): Adjust.
322 (arm_expand_immediate): New.
323 (arm_scan_prologue): Adjust.
324 (arm_analyze_prologue_test): New.
325 (class test_arm_instruction_reader): New.
326
327 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * f-lang.c (fortran_argument_convert): Add declaration. Add
330 header comment, taken from f-lang.h. Make static.
331 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
332 (fortran_argument_convert): Delete declaration.
333
334 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * ada-exp.y (find_primitive_type): Make parameter const.
337 * ada-lang.c (enum ada_primitive_types): Delete.
338 (ada_language::language_arch_info): Update.
339 * c-lang.c (enum c_primitive_types): Delete.
340 (c_language_arch_info): Update.
341 (enum cplus_primitive_types): Delete.
342 (cplus_language::language_arch_info): Update.
343 * d-lang.c (enum d_primitive_types): Delete.
344 (d_language::language_arch_info): Update.
345 * f-lang.c (enum f_primitive_types): Delete.
346 (f_language::language_arch_info): Update.
347 * go-lang.c (enum go_primitive_types): Delete.
348 (go_language::language_arch_info): Update.
349 * language.c (auto_or_unknown_language::language_arch_info):
350 Update.
351 (language_gdbarch_post_init): Use obstack_new, use array indexing.
352 (language_string_char_type): Add header comment, call function in
353 language_arch_info.
354 (language_bool_type): Likewise
355 (language_arch_info::bool_type): Define.
356 (language_lookup_primitive_type_1): Delete.
357 (language_lookup_primitive_type): Rewrite as a templated function
358 to call function in language_arch_info, then instantiate twice.
359 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
360 (language_arch_info::lookup_primitive_type_and_symbol): Define.
361 (language_arch_info::lookup_primitive_type): Define twice with
362 different signatures.
363 (language_arch_info::lookup_primitive_type_as_symbol): Define.
364 (language_lookup_primitive_type_as_symbol): Rewrite to call a
365 member function in language_arch_info.
366 * language.h (language_arch_info): Complete rewrite.
367 (language_lookup_primitive_type): Make templated.
368 * m2-lang.c (enum m2_primitive_types): Delete.
369 (m2_language::language_arch_info): Update.
370 * opencl-lang.c (OCL_P_TYPE): Delete.
371 (enum opencl_primitive_types): Delete.
372 (opencl_type_data): Delete.
373 (builtin_opencl_type): Delete.
374 (lookup_opencl_vector_type): Update.
375 (opencl_language::language_arch_info): Update, lots of content
376 moved from...
377 (build_opencl_types): ...here. This function is now deleted.
378 (_initialize_opencl_language): Delete.
379 * p-lang.c (enum pascal_primitive_types): Delete.
380 (pascal_language::language_arch_info): Update.
381 * rust-lang.c (enum rust_primitive_types): Delete.
382 (rust_language::language_arch_info): Update.
383
384 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
387 dwarf2_queue_guard.
388
389 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
390
391 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
392 comment.
393
394 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
395
396 * dwarf2/read.c (dwarf_read_debug_printf,
397 dwarf_read_debug_printf_v): New macros, use throughout the file.
398
399 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
400
401 * arc-linux-tdep.c (collect_register): Populate "eret" by
402 "pc" value from the regcache when asked for "pc" value.
403
404 2020-11-12 Tom Tromey <tom@tromey.com>
405
406 PR rust/26799:
407 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
408 exist.
409
410 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * features/Makefile (XMLTOC): Add rx.xml.
413 (FEATURE_XMLFILES): Remove rx.xml.
414 (FEATURE_CFILES rule): Pass '-single-feature' flag.
415 * features/rx.c: Regenerate.
416 * features/rx.xml: Wrap in `target` tags, and reindent.
417 * target-descriptions.c (struct maint_print_c_tdesc_options): New
418 structure.
419 (maint_print_c_tdesc_opt_def): New typedef.
420 (maint_print_c_tdesc_opt_defs): New static global.
421 (make_maint_print_c_tdesc_options_def_group): New function.
422 (maint_print_c_tdesc_cmd): Make use of command line flags, only
423 print single feature C file for target descriptions containing a
424 single feature.
425 (maint_print_c_tdesc_cmd_completer): New function.
426 (_initialize_target_descriptions): Update call to register command
427 completer, and include command line flag in help text.
428
429 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
432 numbers.
433 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
434 enum values.
435
436 2020-11-10 Tom Tromey <tom@tromey.com>
437
438 * value.h (internalvar_name): Update.
439 * value.c (internalvar_name): Make return type const.
440
441 2020-11-10 Tom Tromey <tom@tromey.com>
442
443 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
444 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
445 const.
446
447 2020-11-10 Tom Tromey <tom@tromey.com>
448
449 * objc-lang.h (value_nsstring): Update.
450 * objc-lang.c (value_nsstring): Make "ptr" const.
451
452 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * expprint.c (print_subexp_funcall): Increment expression position
455 after reading argument count.
456 * f-lang.c (print_subexp_f): Skip over opcode before calling
457 common function.
458 (dump_subexp_body_f): Likewise.
459
460 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
461
462 PR python/26832
463 * configure: Regenerate.
464 * configure.ac: Check for python modules ctypes instead of
465 itertools.
466
467 2020-11-06 Pedro Alves <pedro@palves.net>
468
469 * macroexp.c (struct macro_buffer): Split in two classes. Add
470 uses adjusted.
471 (struct shared_macro_buffer): New, factored out from struct
472 macro_buffer.
473 (struct growable_macro_buffer): New, factored out from struct
474 macro_buffer.
475 (set_token, get_comment, get_identifier, get_pp_number)
476 (get_character_constant, get_string_literal, get_punctuator)
477 (get_next_token_for_substitution): Constify parameters.
478 (substitute_args): Constify locals.
479
480 2020-11-05 Tom Tromey <tom@tromey.com>
481
482 * dwarf2/read.c (read_cutu_die_from_dwo)
483 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
484 (build_type_psymtabs_1): Update.
485 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
486 parameter.
487 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
488 Don't read section. Add assert.
489
490 2020-11-04 Tom Tromey <tromey@adacore.com>
491
492 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
493
494 2020-11-04 Tom Tromey <tromey@adacore.com>
495
496 * ada-typeprint.c (ada_print_type): Handle __T types.
497
498 2020-11-04 Tom Tromey <tromey@adacore.com>
499
500 * dwarf2/read.c (add_partial_symbol, process_die):
501 Handle DW_TAG_array_type.
502 (is_type_tag_for_partial): Add "lang" parameter.
503 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
504
505 2020-11-04 Tom Tromey <tromey@adacore.com>
506
507 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
508
509 2020-11-04 Tom Tromey <tromey@adacore.com>
510
511 * dwarf2/read.c (read_array_type): Only apply stride to innermost
512 array.
513
514 2020-11-04 Tom Tromey <tromey@adacore.com>
515
516 * gdbtypes.c (update_static_array_size): Handle bit stride.
517
518 2020-11-04 Tom Tromey <tromey@adacore.com>
519
520 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
521
522 2020-11-04 Tom Tromey <tromey@adacore.com>
523
524 * ada-lang.c (ada_is_any_packed_array_type): New function.
525 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
526
527 2020-11-04 Tom Tromey <tromey@adacore.com>
528
529 * dwarf2/read.c (recognize_bound_expression)
530 (quirk_ada_thick_pointer): New functions.
531 (read_array_type): Call quirk_ada_thick_pointer.
532 (set_die_type): Add "skip_data_location" parameter.
533 (quirk_ada_thick_pointer): New function.
534 (process_structure_scope): Call quirk_ada_thick_pointer.
535 * ada-lang.c (ada_is_unconstrained_packed_array_type)
536 (decode_packed_array_bitsize): Handle thick pointers without
537 parallel types.
538 (ada_is_gnat_encoded_packed_array_type): Rename from
539 ada_is_packed_array_type.
540 (ada_is_constrained_packed_array_type): Update.
541 * ada-valprint.c (ada_val_print_gnat_array): Remove.
542 (ada_value_print_1): Use ada_get_decoded_value.
543
544 2020-11-04 Tom Tromey <tromey@adacore.com>
545
546 * ada-lang.c (recursively_update_array_bitsize): New function.
547 (decode_constrained_packed_array_type): Call it.
548
549 2020-11-04 Tom Tromey <tromey@adacore.com>
550
551 * ada-lang.c (to_fixed_array_type): Error if
552 decode_constrained_packed_array_type returns NULL.
553
554 2020-11-04 Tom Tromey <tromey@adacore.com>
555
556 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
557
558 2020-11-02 Tom Tromey <tromey@adacore.com>
559
560 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
561 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
562 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
563 * amd64-ravenscar-thread.c: New file.
564 * amd64-ravenscar-thread.h: New file.
565 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
566 * configure.tgt (amd64_tobjs): Add ravenscar objects.
567
568 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * main.c (execute_cmdargs): New function.
571 (captured_main_1): Make use of execute_cmdargs.
572
573 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * NEWS: Mention changes to config file search path.
576 * main.c
577
578 2020-11-02 Tom Tromey <tromey@adacore.com>
579
580 * python/python.c: Consolidate two HAVE_PYTHON blocks.
581 (python_GdbModuleDef): Move earlier. Now static.
582 (do_start_initialization): Consolidate some IS_PY3K blocks.
583
584 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
585
586 * aarch64-linux-tdep.c: Fix indentation.
587 * aarch64-ravenscar-thread.c: Fix indentation.
588 * aarch64-tdep.c: Fix indentation.
589 * aarch64-tdep.h: Fix indentation.
590 * ada-lang.c: Fix indentation.
591 * ada-lang.h: Fix indentation.
592 * ada-tasks.c: Fix indentation.
593 * ada-typeprint.c: Fix indentation.
594 * ada-valprint.c: Fix indentation.
595 * ada-varobj.c: Fix indentation.
596 * addrmap.c: Fix indentation.
597 * addrmap.h: Fix indentation.
598 * agent.c: Fix indentation.
599 * aix-thread.c: Fix indentation.
600 * alpha-bsd-nat.c: Fix indentation.
601 * alpha-linux-tdep.c: Fix indentation.
602 * alpha-mdebug-tdep.c: Fix indentation.
603 * alpha-nbsd-tdep.c: Fix indentation.
604 * alpha-obsd-tdep.c: Fix indentation.
605 * alpha-tdep.c: Fix indentation.
606 * amd64-bsd-nat.c: Fix indentation.
607 * amd64-darwin-tdep.c: Fix indentation.
608 * amd64-linux-nat.c: Fix indentation.
609 * amd64-linux-tdep.c: Fix indentation.
610 * amd64-nat.c: Fix indentation.
611 * amd64-obsd-tdep.c: Fix indentation.
612 * amd64-tdep.c: Fix indentation.
613 * amd64-windows-tdep.c: Fix indentation.
614 * annotate.c: Fix indentation.
615 * arc-tdep.c: Fix indentation.
616 * arch-utils.c: Fix indentation.
617 * arch/arm-get-next-pcs.c: Fix indentation.
618 * arch/arm.c: Fix indentation.
619 * arm-linux-nat.c: Fix indentation.
620 * arm-linux-tdep.c: Fix indentation.
621 * arm-nbsd-tdep.c: Fix indentation.
622 * arm-pikeos-tdep.c: Fix indentation.
623 * arm-tdep.c: Fix indentation.
624 * arm-tdep.h: Fix indentation.
625 * arm-wince-tdep.c: Fix indentation.
626 * auto-load.c: Fix indentation.
627 * auxv.c: Fix indentation.
628 * avr-tdep.c: Fix indentation.
629 * ax-gdb.c: Fix indentation.
630 * ax-general.c: Fix indentation.
631 * bfin-linux-tdep.c: Fix indentation.
632 * block.c: Fix indentation.
633 * block.h: Fix indentation.
634 * blockframe.c: Fix indentation.
635 * bpf-tdep.c: Fix indentation.
636 * break-catch-sig.c: Fix indentation.
637 * break-catch-syscall.c: Fix indentation.
638 * break-catch-throw.c: Fix indentation.
639 * breakpoint.c: Fix indentation.
640 * breakpoint.h: Fix indentation.
641 * bsd-uthread.c: Fix indentation.
642 * btrace.c: Fix indentation.
643 * build-id.c: Fix indentation.
644 * buildsym-legacy.h: Fix indentation.
645 * buildsym.c: Fix indentation.
646 * c-typeprint.c: Fix indentation.
647 * c-valprint.c: Fix indentation.
648 * c-varobj.c: Fix indentation.
649 * charset.c: Fix indentation.
650 * cli/cli-cmds.c: Fix indentation.
651 * cli/cli-decode.c: Fix indentation.
652 * cli/cli-decode.h: Fix indentation.
653 * cli/cli-script.c: Fix indentation.
654 * cli/cli-setshow.c: Fix indentation.
655 * coff-pe-read.c: Fix indentation.
656 * coffread.c: Fix indentation.
657 * compile/compile-cplus-types.c: Fix indentation.
658 * compile/compile-object-load.c: Fix indentation.
659 * compile/compile-object-run.c: Fix indentation.
660 * completer.c: Fix indentation.
661 * corefile.c: Fix indentation.
662 * corelow.c: Fix indentation.
663 * cp-abi.h: Fix indentation.
664 * cp-namespace.c: Fix indentation.
665 * cp-support.c: Fix indentation.
666 * cp-valprint.c: Fix indentation.
667 * cris-linux-tdep.c: Fix indentation.
668 * cris-tdep.c: Fix indentation.
669 * darwin-nat-info.c: Fix indentation.
670 * darwin-nat.c: Fix indentation.
671 * darwin-nat.h: Fix indentation.
672 * dbxread.c: Fix indentation.
673 * dcache.c: Fix indentation.
674 * disasm.c: Fix indentation.
675 * dtrace-probe.c: Fix indentation.
676 * dwarf2/abbrev.c: Fix indentation.
677 * dwarf2/attribute.c: Fix indentation.
678 * dwarf2/expr.c: Fix indentation.
679 * dwarf2/frame.c: Fix indentation.
680 * dwarf2/index-cache.c: Fix indentation.
681 * dwarf2/index-write.c: Fix indentation.
682 * dwarf2/line-header.c: Fix indentation.
683 * dwarf2/loc.c: Fix indentation.
684 * dwarf2/macro.c: Fix indentation.
685 * dwarf2/read.c: Fix indentation.
686 * dwarf2/read.h: Fix indentation.
687 * elfread.c: Fix indentation.
688 * eval.c: Fix indentation.
689 * event-top.c: Fix indentation.
690 * exec.c: Fix indentation.
691 * exec.h: Fix indentation.
692 * expprint.c: Fix indentation.
693 * f-lang.c: Fix indentation.
694 * f-typeprint.c: Fix indentation.
695 * f-valprint.c: Fix indentation.
696 * fbsd-nat.c: Fix indentation.
697 * fbsd-tdep.c: Fix indentation.
698 * findvar.c: Fix indentation.
699 * fork-child.c: Fix indentation.
700 * frame-unwind.c: Fix indentation.
701 * frame-unwind.h: Fix indentation.
702 * frame.c: Fix indentation.
703 * frv-linux-tdep.c: Fix indentation.
704 * frv-tdep.c: Fix indentation.
705 * frv-tdep.h: Fix indentation.
706 * ft32-tdep.c: Fix indentation.
707 * gcore.c: Fix indentation.
708 * gdb_bfd.c: Fix indentation.
709 * gdbarch.sh: Fix indentation.
710 * gdbarch.c: Re-generate
711 * gdbarch.h: Re-generate.
712 * gdbcore.h: Fix indentation.
713 * gdbthread.h: Fix indentation.
714 * gdbtypes.c: Fix indentation.
715 * gdbtypes.h: Fix indentation.
716 * glibc-tdep.c: Fix indentation.
717 * gnu-nat.c: Fix indentation.
718 * gnu-nat.h: Fix indentation.
719 * gnu-v2-abi.c: Fix indentation.
720 * gnu-v3-abi.c: Fix indentation.
721 * go32-nat.c: Fix indentation.
722 * guile/guile-internal.h: Fix indentation.
723 * guile/scm-cmd.c: Fix indentation.
724 * guile/scm-frame.c: Fix indentation.
725 * guile/scm-iterator.c: Fix indentation.
726 * guile/scm-math.c: Fix indentation.
727 * guile/scm-ports.c: Fix indentation.
728 * guile/scm-pretty-print.c: Fix indentation.
729 * guile/scm-value.c: Fix indentation.
730 * h8300-tdep.c: Fix indentation.
731 * hppa-linux-nat.c: Fix indentation.
732 * hppa-linux-tdep.c: Fix indentation.
733 * hppa-nbsd-nat.c: Fix indentation.
734 * hppa-nbsd-tdep.c: Fix indentation.
735 * hppa-obsd-nat.c: Fix indentation.
736 * hppa-tdep.c: Fix indentation.
737 * hppa-tdep.h: Fix indentation.
738 * i386-bsd-nat.c: Fix indentation.
739 * i386-darwin-nat.c: Fix indentation.
740 * i386-darwin-tdep.c: Fix indentation.
741 * i386-dicos-tdep.c: Fix indentation.
742 * i386-gnu-nat.c: Fix indentation.
743 * i386-linux-nat.c: Fix indentation.
744 * i386-linux-tdep.c: Fix indentation.
745 * i386-nto-tdep.c: Fix indentation.
746 * i386-obsd-tdep.c: Fix indentation.
747 * i386-sol2-nat.c: Fix indentation.
748 * i386-tdep.c: Fix indentation.
749 * i386-tdep.h: Fix indentation.
750 * i386-windows-tdep.c: Fix indentation.
751 * i387-tdep.c: Fix indentation.
752 * i387-tdep.h: Fix indentation.
753 * ia64-libunwind-tdep.c: Fix indentation.
754 * ia64-libunwind-tdep.h: Fix indentation.
755 * ia64-linux-nat.c: Fix indentation.
756 * ia64-linux-tdep.c: Fix indentation.
757 * ia64-tdep.c: Fix indentation.
758 * ia64-tdep.h: Fix indentation.
759 * ia64-vms-tdep.c: Fix indentation.
760 * infcall.c: Fix indentation.
761 * infcmd.c: Fix indentation.
762 * inferior.c: Fix indentation.
763 * infrun.c: Fix indentation.
764 * iq2000-tdep.c: Fix indentation.
765 * language.c: Fix indentation.
766 * linespec.c: Fix indentation.
767 * linux-fork.c: Fix indentation.
768 * linux-nat.c: Fix indentation.
769 * linux-tdep.c: Fix indentation.
770 * linux-thread-db.c: Fix indentation.
771 * lm32-tdep.c: Fix indentation.
772 * m2-lang.c: Fix indentation.
773 * m2-typeprint.c: Fix indentation.
774 * m2-valprint.c: Fix indentation.
775 * m32c-tdep.c: Fix indentation.
776 * m32r-linux-tdep.c: Fix indentation.
777 * m32r-tdep.c: Fix indentation.
778 * m68hc11-tdep.c: Fix indentation.
779 * m68k-bsd-nat.c: Fix indentation.
780 * m68k-linux-nat.c: Fix indentation.
781 * m68k-linux-tdep.c: Fix indentation.
782 * m68k-tdep.c: Fix indentation.
783 * machoread.c: Fix indentation.
784 * macrocmd.c: Fix indentation.
785 * macroexp.c: Fix indentation.
786 * macroscope.c: Fix indentation.
787 * macrotab.c: Fix indentation.
788 * macrotab.h: Fix indentation.
789 * main.c: Fix indentation.
790 * mdebugread.c: Fix indentation.
791 * mep-tdep.c: Fix indentation.
792 * mi/mi-cmd-catch.c: Fix indentation.
793 * mi/mi-cmd-disas.c: Fix indentation.
794 * mi/mi-cmd-env.c: Fix indentation.
795 * mi/mi-cmd-stack.c: Fix indentation.
796 * mi/mi-cmd-var.c: Fix indentation.
797 * mi/mi-cmds.c: Fix indentation.
798 * mi/mi-main.c: Fix indentation.
799 * mi/mi-parse.c: Fix indentation.
800 * microblaze-tdep.c: Fix indentation.
801 * minidebug.c: Fix indentation.
802 * minsyms.c: Fix indentation.
803 * mips-linux-nat.c: Fix indentation.
804 * mips-linux-tdep.c: Fix indentation.
805 * mips-nbsd-tdep.c: Fix indentation.
806 * mips-tdep.c: Fix indentation.
807 * mn10300-linux-tdep.c: Fix indentation.
808 * mn10300-tdep.c: Fix indentation.
809 * moxie-tdep.c: Fix indentation.
810 * msp430-tdep.c: Fix indentation.
811 * namespace.h: Fix indentation.
812 * nat/fork-inferior.c: Fix indentation.
813 * nat/gdb_ptrace.h: Fix indentation.
814 * nat/linux-namespaces.c: Fix indentation.
815 * nat/linux-osdata.c: Fix indentation.
816 * nat/netbsd-nat.c: Fix indentation.
817 * nat/x86-dregs.c: Fix indentation.
818 * nbsd-nat.c: Fix indentation.
819 * nbsd-tdep.c: Fix indentation.
820 * nios2-linux-tdep.c: Fix indentation.
821 * nios2-tdep.c: Fix indentation.
822 * nto-procfs.c: Fix indentation.
823 * nto-tdep.c: Fix indentation.
824 * objfiles.c: Fix indentation.
825 * objfiles.h: Fix indentation.
826 * opencl-lang.c: Fix indentation.
827 * or1k-tdep.c: Fix indentation.
828 * osabi.c: Fix indentation.
829 * osabi.h: Fix indentation.
830 * osdata.c: Fix indentation.
831 * p-lang.c: Fix indentation.
832 * p-typeprint.c: Fix indentation.
833 * p-valprint.c: Fix indentation.
834 * parse.c: Fix indentation.
835 * ppc-linux-nat.c: Fix indentation.
836 * ppc-linux-tdep.c: Fix indentation.
837 * ppc-nbsd-nat.c: Fix indentation.
838 * ppc-nbsd-tdep.c: Fix indentation.
839 * ppc-obsd-nat.c: Fix indentation.
840 * ppc-ravenscar-thread.c: Fix indentation.
841 * ppc-sysv-tdep.c: Fix indentation.
842 * ppc64-tdep.c: Fix indentation.
843 * printcmd.c: Fix indentation.
844 * proc-api.c: Fix indentation.
845 * producer.c: Fix indentation.
846 * producer.h: Fix indentation.
847 * prologue-value.c: Fix indentation.
848 * prologue-value.h: Fix indentation.
849 * psymtab.c: Fix indentation.
850 * python/py-arch.c: Fix indentation.
851 * python/py-bpevent.c: Fix indentation.
852 * python/py-event.c: Fix indentation.
853 * python/py-event.h: Fix indentation.
854 * python/py-finishbreakpoint.c: Fix indentation.
855 * python/py-frame.c: Fix indentation.
856 * python/py-framefilter.c: Fix indentation.
857 * python/py-inferior.c: Fix indentation.
858 * python/py-infthread.c: Fix indentation.
859 * python/py-objfile.c: Fix indentation.
860 * python/py-prettyprint.c: Fix indentation.
861 * python/py-registers.c: Fix indentation.
862 * python/py-signalevent.c: Fix indentation.
863 * python/py-stopevent.c: Fix indentation.
864 * python/py-stopevent.h: Fix indentation.
865 * python/py-threadevent.c: Fix indentation.
866 * python/py-tui.c: Fix indentation.
867 * python/py-unwind.c: Fix indentation.
868 * python/py-value.c: Fix indentation.
869 * python/py-xmethods.c: Fix indentation.
870 * python/python-internal.h: Fix indentation.
871 * python/python.c: Fix indentation.
872 * ravenscar-thread.c: Fix indentation.
873 * record-btrace.c: Fix indentation.
874 * record-full.c: Fix indentation.
875 * record.c: Fix indentation.
876 * reggroups.c: Fix indentation.
877 * regset.h: Fix indentation.
878 * remote-fileio.c: Fix indentation.
879 * remote.c: Fix indentation.
880 * reverse.c: Fix indentation.
881 * riscv-linux-tdep.c: Fix indentation.
882 * riscv-ravenscar-thread.c: Fix indentation.
883 * riscv-tdep.c: Fix indentation.
884 * rl78-tdep.c: Fix indentation.
885 * rs6000-aix-tdep.c: Fix indentation.
886 * rs6000-lynx178-tdep.c: Fix indentation.
887 * rs6000-nat.c: Fix indentation.
888 * rs6000-tdep.c: Fix indentation.
889 * rust-lang.c: Fix indentation.
890 * rx-tdep.c: Fix indentation.
891 * s12z-tdep.c: Fix indentation.
892 * s390-linux-tdep.c: Fix indentation.
893 * score-tdep.c: Fix indentation.
894 * ser-base.c: Fix indentation.
895 * ser-mingw.c: Fix indentation.
896 * ser-uds.c: Fix indentation.
897 * ser-unix.c: Fix indentation.
898 * serial.c: Fix indentation.
899 * sh-linux-tdep.c: Fix indentation.
900 * sh-nbsd-tdep.c: Fix indentation.
901 * sh-tdep.c: Fix indentation.
902 * skip.c: Fix indentation.
903 * sol-thread.c: Fix indentation.
904 * solib-aix.c: Fix indentation.
905 * solib-darwin.c: Fix indentation.
906 * solib-frv.c: Fix indentation.
907 * solib-svr4.c: Fix indentation.
908 * solib.c: Fix indentation.
909 * source.c: Fix indentation.
910 * sparc-linux-tdep.c: Fix indentation.
911 * sparc-nbsd-tdep.c: Fix indentation.
912 * sparc-obsd-tdep.c: Fix indentation.
913 * sparc-ravenscar-thread.c: Fix indentation.
914 * sparc-tdep.c: Fix indentation.
915 * sparc64-linux-tdep.c: Fix indentation.
916 * sparc64-nbsd-tdep.c: Fix indentation.
917 * sparc64-obsd-tdep.c: Fix indentation.
918 * sparc64-tdep.c: Fix indentation.
919 * stabsread.c: Fix indentation.
920 * stack.c: Fix indentation.
921 * stap-probe.c: Fix indentation.
922 * stubs/ia64vms-stub.c: Fix indentation.
923 * stubs/m32r-stub.c: Fix indentation.
924 * stubs/m68k-stub.c: Fix indentation.
925 * stubs/sh-stub.c: Fix indentation.
926 * stubs/sparc-stub.c: Fix indentation.
927 * symfile-mem.c: Fix indentation.
928 * symfile.c: Fix indentation.
929 * symfile.h: Fix indentation.
930 * symmisc.c: Fix indentation.
931 * symtab.c: Fix indentation.
932 * symtab.h: Fix indentation.
933 * target-float.c: Fix indentation.
934 * target.c: Fix indentation.
935 * target.h: Fix indentation.
936 * tic6x-tdep.c: Fix indentation.
937 * tilegx-linux-tdep.c: Fix indentation.
938 * tilegx-tdep.c: Fix indentation.
939 * top.c: Fix indentation.
940 * tracefile-tfile.c: Fix indentation.
941 * tracepoint.c: Fix indentation.
942 * tui/tui-disasm.c: Fix indentation.
943 * tui/tui-io.c: Fix indentation.
944 * tui/tui-regs.c: Fix indentation.
945 * tui/tui-stack.c: Fix indentation.
946 * tui/tui-win.c: Fix indentation.
947 * tui/tui-winsource.c: Fix indentation.
948 * tui/tui.c: Fix indentation.
949 * typeprint.c: Fix indentation.
950 * ui-out.h: Fix indentation.
951 * unittests/copy_bitwise-selftests.c: Fix indentation.
952 * unittests/memory-map-selftests.c: Fix indentation.
953 * utils.c: Fix indentation.
954 * v850-tdep.c: Fix indentation.
955 * valarith.c: Fix indentation.
956 * valops.c: Fix indentation.
957 * valprint.c: Fix indentation.
958 * valprint.h: Fix indentation.
959 * value.c: Fix indentation.
960 * value.h: Fix indentation.
961 * varobj.c: Fix indentation.
962 * vax-tdep.c: Fix indentation.
963 * windows-nat.c: Fix indentation.
964 * windows-tdep.c: Fix indentation.
965 * xcoffread.c: Fix indentation.
966 * xml-syscall.c: Fix indentation.
967 * xml-tdesc.c: Fix indentation.
968 * xstormy16-tdep.c: Fix indentation.
969 * xtensa-config.c: Fix indentation.
970 * xtensa-linux-nat.c: Fix indentation.
971 * xtensa-linux-tdep.c: Fix indentation.
972 * xtensa-tdep.c: Fix indentation.
973
974 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
975 Craig Blackmore <craig.blackmore@embecosm.com>
976
977 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
978 as an unsigned value.
979
980 2020-11-01 Tom Tromey <tom@tromey.com>
981
982 * dbxread.c (dbx_end_psymtab): Update.
983 * dwarf2/read.c (process_psymtab_comp_unit_reader)
984 (build_type_psymtabs_reader): Update.
985 * xcoffread.c (xcoff_end_psymtab): Update.
986 * ctfread.c (scan_partial_symbols): Update.
987 * psymtab.c (sort_pst_symbols): Remove.
988 (partial_symtab::end): Rename from end_psymtab_common. Inline
989 sort_pst_symbols.
990 * psympriv.h (struct partial_symtab) <end>: New method.
991 (end_psymtab_common): Don't declare.
992
993 2020-11-01 Tom Tromey <tom@tromey.com>
994
995 * symmisc.c (count_psyms): New function.
996 (print_objfile_statistics): Use it.
997 * psymtab.c (append_psymbol_to_list): Remove.
998 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
999 * objfiles.h (struct objstats) <n_psyms>: Remove.
1000
1001 2020-11-01 Tom Tromey <tom@tromey.com>
1002
1003 * dbxread.c (dbx_end_psymtab): Update.
1004 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1005 (build_type_psymtabs_reader): Update.
1006 * xcoffread.c (xcoff_end_psymtab): Update.
1007 * ctfread.c (scan_partial_symbols): Update.
1008 * psympriv.h (end_psymtab_common): Update.
1009 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1010 (sort_pst_symbols): Likewise.
1011
1012 2020-11-01 Tom Tromey <tom@tromey.com>
1013
1014 * dbxread.c (dbx_symfile_read): Update.
1015 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1016 * xcoffread.c (xcoff_initial_scan): Update.
1017 * psympriv.h (init_psymbol_list): Don't declare.
1018 * psymtab.c (init_psymbol_list): Remove.
1019
1020 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1021
1022 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1023 gnat_encoded_fixed_type_info. Update all callers.
1024
1025 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1026
1027 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1028 line too long.
1029
1030 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1031
1032 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1033 cast_from_fixed. Update all callers.
1034 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1035 Update all callers.
1036 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1037 Update all callers.
1038 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1039 ada_scaling_factor.
1040 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1041 to print_gnat_encoded_fixed_point_type.
1042 * ada-valprint.c: Likewise.
1043
1044 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1047 (debug_prefixed_printf): Add check of debug_displaced flag.
1048 * linux-nat.c (linux_nat_debug_printf): Add check of
1049 debug_linux_nat flag.
1050
1051 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * infrun.c (infrun_debug_printf_1): Remove.
1054 (displaced_debug_printf_1): Remove.
1055 (stop_all_threads): Use debug_prefixed_printf.
1056 * infrun.h (infrun_debug_printf_1): Remove.
1057 (infrun_debug_printf): Use debug_prefixed_printf.
1058 (displaced_debug_printf_1): Remove.
1059 (displaced_debug_printf): Use debug_prefixed_printf.
1060 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1061 (linux_nat_debug_printf): Use debug_prefixed_printf.
1062
1063 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * configure: Re-generate.
1066 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1067 AC_LANG_PROGRAM.
1068
1069 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * configure: Re-generate.
1072
1073 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * configure: Re-generate.
1076
1077 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * configure: Re-generate.
1080
1081 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1082
1083 * configure: Re-generate.
1084
1085 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * acinclude.m4: Modernize.
1088 * configure: Re-generate.
1089
1090 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * configure.ac: Modernize.
1093 * configure: Re-generate.
1094
1095 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1098 * configure: Re-generate.
1099 * configure.ac: Remove AM_PROG_CC_STDC.
1100
1101 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1104 AC_CANONICAL_SYSTEM.
1105 * configure: Re-generate.
1106
1107 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * infrun.h (displaced_debug_printf): New macro. Replace
1110 displaced debug prints throughout to use it.
1111 (displaced_debug_printf_1): New declaration.
1112 (displaced_step_dump_bytes): Return string, remove ui_file
1113 parameter, update all callers.
1114 * infrun.c (displaced_debug_printf_1): New function.
1115 (displaced_step_dump_bytes): Return string, remove ui_file
1116 parameter
1117
1118 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1119
1120 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1121
1122 2020-10-30 Tom Tromey <tromey@adacore.com>
1123
1124 * Makefile.in (stamp-init): Depend on config.status.
1125
1126 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1127
1128 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1129
1130 2020-10-30 Pedro Alves <pedro@palves.net>
1131
1132 * thread.c (lookup_selected_frame): Move ...
1133 * frame.c (lookup_selected_frame): ... here.
1134
1135 2020-10-30 Pedro Alves <pedro@palves.net>
1136
1137 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1138 * frame.c
1139 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1140 Use save_selected_frame. Save language as well.
1141 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1142 Use restore_selected_frame, and restore language as well.
1143 (selected_frame_id, selected_frame_level): New.
1144 (selected_frame): Update comments.
1145 (save_selected_frame, restore_selected_frame): New.
1146 (get_selected_frame): Use lookup_selected_frame.
1147 (get_selected_frame_if_set): Delete.
1148 (select_frame): Record selected_frame_level and selected_frame_id.
1149 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1150 fields.
1151 (get_selected_frame): Make 'message' parameter optional.
1152 (get_selected_frame_if_set): Delete declaration.
1153 (select_frame): Update comments.
1154 (save_selected_frame, restore_selected_frame)
1155 (lookup_selected_frame): Declare.
1156 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1157 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1158 New field.
1159 (save_infcall_control_state): Use save_selected_frame.
1160 (restore_selected_frame): Delete.
1161 (restore_infcall_control_state): Use restore_selected_frame.
1162 * stack.c (select_frame_command_core, frame_command_core): Use
1163 get_selected_frame.
1164 * thread.c (restore_selected_frame): Rename to ...
1165 (lookup_selected_frame): ... this and make extern. Select the
1166 current frame if the frame level is -1.
1167 (scoped_restore_current_thread::restore): Also restore the
1168 language.
1169 (scoped_restore_current_thread::~scoped_restore_current_thread):
1170 Don't try/catch.
1171 (scoped_restore_current_thread::scoped_restore_current_thread):
1172 Save the language as well. Use save_selected_frame.
1173
1174 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1177 documentation.
1178 * gdbarch.h: Re-generate.
1179
1180 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1183 parameter.
1184 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1185 Likewise.
1186 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1187 Likewise.
1188 * arch-utils.c (default_displaced_step_hw_singlestep):
1189 Likewise.
1190 * arch-utils.h (default_displaced_step_hw_singlestep):
1191 Likewise.
1192 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1193 Likewise.
1194 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1195 Likewise.
1196 * gdbarch.c: Re-generate.
1197 * gdbarch.h: Re-generate.
1198 * infrun.c (resume_1): Adjust.
1199
1200 2020-10-29 Tom Tromey <tom@tromey.com>
1201
1202 * progspace.c (program_space::~program_space): Don't call
1203 exec_close.
1204
1205 2020-10-29 Tom Tromey <tom@tromey.com>
1206
1207 * exec.c (exec_target::close): Don't change current program
1208 space.
1209
1210 2020-10-29 Tom Tromey <tom@tromey.com>
1211
1212 * symfile.c (add_symbol_file_command): Update.
1213 * exec.c (program_space::add_target_sections): Rename.
1214 * symfile-mem.c (symbol_file_add_from_memory): Update.
1215 * progspace.h (struct program_space) <add_target_sections>:
1216 Declare new overload.
1217 * exec.h (add_target_sections_of_objfile): Don't declare.
1218
1219 2020-10-29 Tom Tromey <tom@tromey.com>
1220
1221 * solib.c (solib_map_sections): Update.
1222 * exec.c (program_space::add_target_sections): Now a method.
1223 (exec_file_attach): Update.
1224 * exec.h (add_target_sections): Don't declare.
1225 * progspace.h (struct program_space) <add_target_sections>:
1226 Declare.
1227
1228 2020-10-29 Tom Tromey <tom@tromey.com>
1229
1230 * progspace.h (struct program_space) <remove_target_sections>:
1231 Declare.
1232 * exec.c (program_space::remove_target_sections): Now a method.
1233 * exec.h (remove_target_sections): Don't declare.
1234
1235 2020-10-29 Tom Tromey <tom@tromey.com>
1236
1237 * inferior.c (delete_inferior): Update.
1238 * progspace.c (program_space::empty): Rename from
1239 program_space_empty_p. Return bool.
1240 * progspace.h (struct program_space) <empty>: New method.
1241 (program_space_empty_p): Don't declare.
1242
1243 2020-10-29 Tom Tromey <tom@tromey.com>
1244
1245 * progspace.c (program_space::~program_space): Don't call
1246 clear_program_space_solib_cache.
1247 (program_space::clear_solib_cache): Rename from
1248 clear_solib_cache.
1249 * solib.c (handle_solib_event): Update.
1250 * progspace.h (struct program_space) <clear_solib_cache>: New
1251 method.
1252 (clear_program_space_solib_cache): Don't declare.
1253
1254 2020-10-29 Tom Tromey <tom@tromey.com>
1255
1256 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1257 * target.c (info_target_command): Update.
1258 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1259 (symbol_file_clear, reread_symbols): Update.
1260 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1261 * stabsread.c (scan_file_globals): Update.
1262 * solib.c (update_solib_list): Update.
1263 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1264 (svr4_fetch_objfile_link_map, enable_break)
1265 (svr4_relocate_main_executable)
1266 (svr4_iterate_over_objfiles_in_search_order): Update.
1267 * solib-frv.c (lm_base, enable_break)
1268 (frv_relocate_main_executable): Update.
1269 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1270 (frv_fetch_objfile_link_map): Update.
1271 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1272 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1273 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1274 * remote.c (remote_target::get_offsets): Update.
1275 (remote_target::start_remote)
1276 (extended_remote_target::post_attach): Update.
1277 * objfiles.c (entry_point_address_query): Update.
1278 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1279 * minsyms.c (get_symbol_leading_char): Update.
1280 * frame.c (inside_main_func): Update.
1281 * progspace.h (symfile_objfile): Remove macro.
1282
1283 2020-10-29 Tom Tromey <tom@tromey.com>
1284
1285 * exec.c (exec_file_attach): Update.
1286 * progspace.c (program_space::exec_close): Update.
1287 * progspace.h (struct program_space) <ebfd>: Now a
1288 gdb_bfd_ref_ptr.
1289 <set_exec_bfd>: Change argument type.
1290 <exec_bfd>: Update.
1291
1292 2020-10-29 Tom Tromey <tom@tromey.com>
1293
1294 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1295 * symfile.c (reread_symbols): Update.
1296 * symfile-mem.c (add_symbol_file_from_memory_command)
1297 (add_vsyscall_page): Update.
1298 * source-cache.c (source_cache::get_plain_source_lines): Update.
1299 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1300 (svr4_current_sos_direct, svr4_exec_displacement)
1301 (svr4_relocate_main_executable): Update.
1302 (svr4_iterate_over_objfiles_in_search_order): Update.
1303 * solib-frv.c (enable_break2, enable_break): Update.
1304 * solib-dsbt.c (lm_base, enable_break): Update.
1305 * solib-darwin.c (find_program_interpreter)
1306 (darwin_solib_create_inferior_hook): Update.
1307 * sol-thread.c (rw_common, ps_pdmodel): Update.
1308 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1309 * remote.c (compare_sections_command)
1310 (remote_target::trace_set_readonly_regions): Update.
1311 * remote-sim.c (get_sim_inferior_data)
1312 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1313 (gdbsim_target_open, gdbsim_target::files_info): Update.
1314 * exec.h (exec_bfd): Remove macro.
1315 * progspace.c (initialize_progspace): Update.
1316 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1317 Update.
1318 * nto-procfs.c (nto_procfs_target::post_attach)
1319 (nto_procfs_target::create_inferior): Update.
1320 * maint.c (maintenance_info_sections): Update.
1321 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1322 Update.
1323 * infcmd.c (post_create_inferior): Update.
1324 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1325 (objfile_find_memory_regions): Update.
1326 * exec.c (validate_exec_file, exec_file_attach)
1327 (exec_read_partial_read_only, print_section_info): Update.
1328 * corelow.c (core_target_open): Update.
1329 * corefile.c (reopen_exec_file, validate_files): Update.
1330 * arm-tdep.c (gdb_print_insn_arm): Update.
1331 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1332 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1333 methods.
1334
1335 2020-10-29 Tom Tromey <tom@tromey.com>
1336
1337 * progspace.h (current_target_sections): Remove macro.
1338 * solib-svr4.c (scan_dyntag): Update.
1339 * solib-dsbt.c (scan_dyntag): Update.
1340 * exec.c (exec_target::close): Update.
1341 (add_target_sections, add_target_sections_of_objfile)
1342 (remove_target_sections, exec_target::get_section_table)
1343 (exec_target::files_info, set_section_command)
1344 (exec_set_section_address, exec_target::has_memory)
1345 (exec_target::has_memory): Update.
1346
1347 2020-10-29 Tom Tromey <tom@tromey.com>
1348
1349 * source-cache.c (source_cache::get_plain_source_lines): Use
1350 current_program_space.
1351 * corefile.c (reopen_exec_file): Use current_program_space.
1352 * exec.c (exec_file_attach): Use current_program_space.
1353 * exec.h (exec_bfd_mtime): Remove.
1354
1355 2020-10-29 Tom Tromey <tom@tromey.com>
1356
1357 * gcore.c (default_gcore_mach): Remove.
1358 (create_gcore_bfd): Update.
1359
1360 2020-10-29 Tom Tromey <tom@tromey.com>
1361
1362 * progspace.c (program_space::exec_close): New method, from
1363 exec_close in exec.c.
1364 * exec.c (exec_close): Move to progspace.c.
1365 (exec_target::close, exec_file_attach): Update.
1366 * progspace.h (struct program_space) <exec_close>: Declare
1367 method.
1368
1369 2020-10-29 Tom Tromey <tom@tromey.com>
1370
1371 * progspace.h (struct program_space) <exec_filename>: Rename from
1372 pspace_exec_filename. Now a unique_xmalloc_ptr.
1373 * inferior.c (print_selected_inferior): Update.
1374 (print_inferior): Update.
1375 * mi/mi-main.c (print_one_inferior): Update.
1376 * exec.h (exec_filename): Remove macro.
1377 * corefile.c (get_exec_file): Update.
1378 * exec.c (exec_close): Update.
1379 (exec_file_attach): Update.
1380 * progspace.c (clone_program_space): Update.
1381 (print_program_space): Update.
1382
1383 2020-10-29 Tom Tromey <tom@tromey.com>
1384
1385 * target-section.h (struct target_section): Add constructor.
1386 * exec.c (build_section_table, add_target_sections_of_objfile):
1387 Update.
1388 * corelow.c (core_target::build_file_mappings): Update.
1389
1390 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1391
1392 PR gdb/19318
1393 * inferior.c (detach_inferior_command): Restore the current thread.
1394 (kill_inferior_command): Ditto.
1395
1396 2020-10-28 Tom de Vries <tdevries@suse.de>
1397
1398 PR symtab/26772
1399 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1400 map, check it in the "best match" loop.
1401
1402 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1403
1404 * m32c-tdep.c: Remove unused includes.
1405
1406 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 * xtensa-tdep.c: Remove includes.
1409
1410 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1411
1412 * breakpoint.c (struct condition_command_opts): New struct.
1413 (condition_command_option_defs): New static global.
1414 (make_condition_command_options_def_group): New function.
1415 (condition_completer): Update to consider the '-force' flag.
1416 (condition_command): Use gdb::option for the '-force' flag.
1417
1418 2020-10-27 Tom de Vries <tdevries@suse.de>
1419
1420 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1421 symbols in section check.
1422
1423 2020-10-27 Tom de Vries <tdevries@suse.de>
1424
1425 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1426
1427 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1428
1429 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1430 * breakpoint.c: Update the help text of the 'condition' and 'break'
1431 commands.
1432 (set_breakpoint_condition): Take a new bool parameter
1433 to control whether condition definition should be forced even when
1434 the condition expression is invalid in all of the current locations.
1435 (condition_command): Update the call to 'set_breakpoint_condition'.
1436 (find_condition_and_thread): Take the "-force-condition" flag into
1437 account.
1438 * linespec.c (linespec_keywords): Add "-force-condition" as an
1439 element.
1440 (FORCE_KEYWORD_INDEX): New #define.
1441 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1442 as a keyword.
1443 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1444 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1445 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1446 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1447
1448 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1449
1450 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1451 * breakpoint.c (set_breakpoint_location_condition): New function.
1452 (set_breakpoint_condition): Disable a breakpoint location if parsing
1453 the condition string gives an error.
1454 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1455 (build_target_condition_list): Ditto.
1456 (build_target_command_list): Ditto.
1457 (build_bpstat_chain): Ditto.
1458 (print_one_breakpoint_location): Ditto.
1459 (print_one_breakpoint): Ditto.
1460 (breakpoint_1): Ditto.
1461 (bp_location::bp_location): Ditto.
1462 (locations_are_equal): Ditto.
1463 (update_breakpoint_locations): Ditto.
1464 (enable_disable_bp_num_loc): Ditto.
1465 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1466 (find_condition_and_thread_for_sals): New static function.
1467 (create_breakpoint): Call find_condition_and_thread_for_sals.
1468 (location_to_sals): Call find_condition_and_thread_for_sals instead
1469 of find_condition_and_thread.
1470
1471 2020-10-26 Tom de Vries <tdevries@suse.de>
1472
1473 * dwarf2/read.c (process_full_comp_unit): Call
1474 dwarf2_find_base_address.
1475
1476 2020-10-26 Tom Tromey <tromey@adacore.com>
1477
1478 * gdbtypes.c (create_range_type): Revert previous patch. Add
1479 comment.
1480
1481 2020-10-26 Pedro Alves <pedro@palves.net>
1482
1483 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1484 (my_waitpid): Use gdb::handle_eintr.
1485
1486 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * acinclude.m4: Update ptrace.m4 path.
1489 * ptrace.m4: Moved to gdbsupport.
1490
1491 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1494 instead of target_gdbarch.
1495
1496 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * jit.c (jit_reader_load_command): Pass current inferior.
1499 (jit_inferior_init): Change parameter type to inferior, use it.
1500 (jit_inferior_created): Remove.
1501 (jit_inferior_created_hook): Pass inferior parameter down.
1502 (_initialize_jit): Use jit_inferior_created_hook instead of
1503 jit_inferior_created.
1504 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1505 * infrun.c (follow_exec): Pass inferior to
1506 jit_inferior_created_hook.
1507
1508 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1511 parameter and use it.
1512 (thread_db_inferior_created): Pass inferior argument.
1513
1514 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1515
1516 * aix-thread.c (aix_thread_inferior_created): Add inferior
1517 parameter.
1518 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1519 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1520 * jit.c (jit_inferior_created): Likewise.
1521 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1522 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1523 * observable.h (inferior_created): Likewise.
1524 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1525 * symfile-mem.c (add_vsyscall_page): Likewise.
1526 * infcmd.c (post_create_inferior): Pass inferior argument.
1527
1528 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1529
1530 GDB 10.1 released.
1531
1532 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1533
1534 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1535 to ada_check_typedef.
1536
1537 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * f-exp.y (f_parse): Rename to...
1540 (f_language::parser): ...this.
1541 * f-lang.c (f_get_encoding): Rename to...
1542 (f_language::get_encoding): ...this.
1543 (f_op_print_tab): Rename to...
1544 (f_language::op_print_tab): ...this.
1545 (exp_descriptor_f): Rename to...
1546 (f_language::exp_descriptor_tab): ...this.
1547 (class f_language): Moved to f-lang.h.
1548 (f_language::language_arch_info): New function, moved out of class
1549 declaration.
1550 (f_language::search_name_hash): Likewise.
1551 (f_language::lookup_symbol_nonlocal): Likewise.
1552 (f_language::get_symbol_name_matcher_inner): Likewise.
1553 * f-lang.h: Add 'valprint.h' include.
1554 (class f_language): Moved here from f-lang.c.
1555 * f-typeprint.c (f_type_print_args): Delete commented out
1556 declaration.
1557 (f_print_typedef): Rename to...
1558 (f_language::print_typedef): ...this.
1559 (f_print_type): Rename to...
1560 (f_language::print_type): ...this.
1561 (f_type_print_varspec_prefix): Delete declaration and rename to...
1562 (f_language::f_type_print_varspec_prefix): ...this.
1563 (f_type_print_varspec_suffix): Delete declaration and rename to...
1564 (f_language::f_type_print_varspec_suffix): ...this.
1565 (f_type_print_base): Delete declaration and rename to...
1566 (f_language::f_type_print_base): ...this.
1567 * f-valprint.c (f_value_print_inner): Rename to...
1568 (f_language::value_print_inner): ...this.
1569 * parse.c: Delete 'f-lang.h' include.
1570
1571 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * language.h (language_defn::print_type): Add variable names in
1574 declaration, and update header comment.
1575
1576 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * ada-lang.c (ada_language::demangle): Rename to...
1579 (ada_language::demangle_symbol): ...this.
1580 * c-lang.c (cplus_language::demangle): Rename to...
1581 (cplus_language::demangle_symbol): ...this.
1582 * d-lang.c (d_language::demangle): Rename to...
1583 (d_language::demangle_symbol): ...this.
1584 * f-lang.c (f_language::demangle): Rename to...
1585 (f_language::demangle_symbol): ...this.
1586 * go-lang.c (go_language::demangle): Rename to...
1587 (go_language::demangle_symbol): ...this.
1588 * language.c (language_demangle): Update call to demangle_symbol.
1589 (auto_or_unknown_language::demangle): Rename to...
1590 (auto_or_unknown_language::demangle_symbol): ...this.
1591 * language.h (language_defn::demangle): Rename to...
1592 (language_defn::demangle_symbol): ...this.
1593 * objc-lang.c (objc_language::demangle): Rename to...
1594 (objc_language::demangle_symbol): ...this.
1595 * rust-lang.c (rust_language::demangle): Rename to...
1596 (rust_language::demangle_symbol): ...this.
1597
1598 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1601 (iterate_over_file_blocks): Replace use of macro with the macros
1602 definition.
1603
1604 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1607 * valprint.c (maybe_print_array_index): Replace use of macro with
1608 the macros definition.
1609
1610 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * ada-lang.c (ada_language::print_array_index): Call value_print
1613 directly.
1614 * language.c (language_defn::print_array_index): Likewise.
1615 * language.h (LA_VALUE_PRINT): Delete.
1616 * valprint.c (value_print): Call value_print on the
1617 current_language directly.
1618
1619 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * language.h (LA_PRINT_TYPEDEF): Delete.
1622 * typeprint.c (typedef_print): Call print_typedef directly on the
1623 current_language object.
1624
1625 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * m2-exp.y (m2_parse): Rename to...
1628 (m2_language::parser): ...this. Update function signature.
1629 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1630 (m2_op_print): Rename to...
1631 (m2_language::op_print_tab): ...this, and make const.
1632 (exp_descriptor_modula2): Rename to...
1633 (m2_language::exp_descriptor_modula2): ...this.
1634 (class m2_language): Move to m2-lang.h.
1635 (m2_language::language_arch_info): New function, moved out of
1636 class declaration.
1637 (m2_language::printchar): New function, body from m2_printchar.
1638 (m2_language::printstr): New function, moved out of class
1639 declaration.
1640 (m2_language::emitchar): Likewise.
1641 * m2-lang.h (m2_parse): Delete declaration.
1642 (m2_print_typedef): Delete declaration.
1643 (m2_value_print_inner): Delete declaration.
1644 (class m2_language): Class declaration moved from m2-lang.c,
1645 larger functions are left in m2-lang.c.
1646 * m2-typeprint.c (m2_print_typedef): Rename to...
1647 (m2_language::print_typedef): ...this, and update function
1648 signature.
1649 * m2-valprint.c (m2_value_print_inner): Rename to...
1650 (m2_language::value_print_inner): ...this, replace use of
1651 LA_PRINT_STRING with a direct call to printstr member function,
1652 and update recursive call.
1653
1654 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * language.c (default_is_string_type_p): Delete, implementation
1657 moved into auto_or_unknown_language::is_string_type_p.
1658 (unk_op_print_tab): Moved into
1659 auto_or_unknown_language::opcode_print_table.
1660 (unknown_language_arch_info): Delete, implementation moved into
1661 auto_or_unknown_language::language_arch_info.
1662 (class auto_or_unknown_language): New class, member functions
1663 copied from unknown_language class, with some updates.
1664 (class unknown_language): Most member functions moved into
1665 auto_or_unknown_language class. Inherit from
1666 auto_or_unknown_language class.
1667 (class auto_language): Inherit from auto_or_unknown_language.
1668 Delete most member functions.
1669
1670 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1671
1672 * stabsread.c (read_member_functions): Remove gdb_assert.
1673
1674 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1675
1676 * gdbtypes.c (init_complex_type): Check target type name.
1677
1678 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * target-debug.h (target_debug_print_struct_target_ops_p):
1681 Remove.
1682 (target_debug_print_async_callback_ftype_p): Remove.
1683 (target_debug_print_struct_trace_state_variable_p): Remove.
1684 (target_debug_print_struct_traceframe_info_p): Remove.
1685 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1686 (target_debug_print_enum_btrace_format): Remove.
1687 (target_debug_print_enum_info_proc_what): Remove.
1688 (target_debug_print_thread_info_pp): Remove.
1689
1690 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * target.h (struct target_ops) <make_corefile_notes>:
1693 Change return type to unique pointer.
1694 * target.c (dummy_make_corefile_notes): Likewise.
1695 * exec.c (struct exec_target) <make_corefile_notes>:
1696 Likewise.
1697 (exec_target::make_corefile_notes): Likewise.
1698 * procfs.c (class procfs_target) <make_corefile_notes>:
1699 Likewise.
1700 (procfs_do_thread_registers): Adjust to unique pointer.
1701 (struct procfs_corefile_thread_data): Add constructor.
1702 <note_data>: Change type to unique pointer.
1703 (procfs_corefile_thread_callback): Adjust to unique pointer.
1704 (procfs_target::make_corefile_notes): Change return type to
1705 unique pointer.
1706 * target-delegates.c: Re-generate.
1707 * gcore.c (write_gcore_file_1): Adjust.
1708 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1709 New.
1710
1711 2020-10-22 Tom de Vries <tdevries@suse.de>
1712
1713 * block.c (find_block_in_blockvector): Make sure the returned block
1714 contains pc.
1715
1716 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 PR gdb/26693
1719 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1720 parameter.
1721 (load_cu): Pass existing CU.
1722 (process_imported_unit_die): Likewise.
1723 (follow_die_offset): Likewise.
1724
1725 2020-10-22 Luis Machado <luis.machado@linaro.org>
1726
1727 * corelow.c (core_target::xfer_partial): Also check for an empty
1728 m_core_unavailable_mappings vector.
1729
1730 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1733 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1734 * f-exp.y (arglist): Allow for a series of subranges.
1735 (subrange): Add cases for subranges with strides.
1736 * f-lang.c (value_f90_subarray): Catch use of array strides and
1737 throw an error.
1738 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1739
1740 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * expprint.c (print_subexp_standard): Change enum range_type to
1743 range_flag and rename variables to match.
1744 (dump_subexp_body_standard): Likewise.
1745 * expression.h (enum range_type): Rename to...
1746 (enum range_flag): ...this.
1747 (range_types): Rename to...
1748 (range_flags): ...this.
1749 * f-lang.c (value_f90_subarray): Change enum range_type to
1750 range_flag and rename variables to match.
1751 * parse.c (operator_length_standard): Likewise.
1752 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1753 range_type to range_flag.
1754 * rust-lang.c (rust_evaluate_funcall): Likewise.
1755 (rust_range): Likewise.
1756 (rust_compute_range): Likewise.
1757 (rust_subscript): Likewise.
1758
1759 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * expprint.c (print_subexp_standard): Update to reflect changes to
1762 enum range_type.
1763 (dump_subexp_body_standard): Likewise.
1764 * expression.h (enum range_type): Convert to a bit field enum, and
1765 make the enum unsigned.
1766 * f-exp.y (subrange): Update to reflect changes to enum
1767 range_type.
1768 * f-lang.c (value_f90_subarray): Likewise.
1769 * parse.c (operator_length_standard): Likewise.
1770 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1771 * rust-lang.c (rust_range): Likewise.
1772 (rust_compute_range): Likewise.
1773 (rust_subscript): Likewise.
1774
1775 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1778 (displaced_step_in_progress): Fix comment.
1779
1780 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1781
1782 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1783 * gdbarch.c: Re-generate.
1784 * gdbarch.h: Re-generate.
1785 * gcore.c (write_gcore_file_1): Adjust.
1786 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1787 constructor.
1788 <note_data>: Change type to unique pointer.
1789 <abort_iteration>: Change type to bool.
1790 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1791 (fbsd_collect_thread_registers): Return void, adjust.
1792 (struct fbsd_corefile_thread_data): Add construtor.
1793 <note_data>: Change type to unique pointer.
1794 (fbsd_corefile_thread): Adjust.
1795 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1796 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1797 to unique pointer, adjust.
1798 (struct linux_collect_regset_section_cb_data): Add constructor.
1799 <note_data>: Change type to unique pointer.
1800 <abort_iteration>: Change type to bool.
1801 (linux_collect_thread_registers): Return void, adjust.
1802 (struct linux_corefile_thread_data): Add constructor.
1803 <note_data>: Change type to unique pointer.
1804 (linux_corefile_thread): Adjust.
1805 (linux_make_corefile_notes): Return unique pointer, adjust.
1806
1807 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1810 * gdbarch.c: Re-generate.
1811 * gdbarch.h: Re-generate.
1812 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1813 bool.
1814 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1815 Likewise.
1816 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1817 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1818 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1819 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1820
1821 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * gdbarch.sh: Make generated predicates return bool.
1824 * gdbarch.c: Re-generate.
1825 * gdbarch.h: Re-generate.
1826
1827 2020-10-20 Tom Tromey <tom@tromey.com>
1828
1829 * varobj-iter.h (struct varobj_item): Remove typedef.
1830
1831 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * infrun.c (currently_stepping): Change int to bool
1834 (maybe_software_singlestep): Likewise.
1835 (show_stop_on_solib_events): Likewise.
1836 (stepping_past_nonsteppable_watchpoint): Likewise.
1837 (displaced_step_in_progress_any_inferior): Likewise.
1838 (displaced_step_in_progress_thread): Likewise.
1839 (keep_going_stepped_thread): Likewise.
1840 (thread_still_needs_step_over): Likewise.
1841 (start_step_over): Likewise.
1842 (do_target_resume): Likewise.
1843 (resume_1): Likewise.
1844 (clear_proceed_status): Likewise.
1845 (thread_still_needs_step_over_bp): Likewise.
1846 (proceed): Likewise.
1847 (switch_back_to_stepped_thread): Likewise.
1848 (adjust_pc_after_break): Likewise.
1849 (stepped_in_from): Likewise.
1850 (handle_stop_requested): Likewise.
1851 (handle_syscall_event): Likewise.
1852 (handle_no_resumed): Likewise.
1853 (handle_inferior_event): Likewise.
1854 (finish_step_over): Likewise.
1855 (handle_signal_stop): Likewise.
1856 (process_event_stop_test): Likewise.
1857
1858 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * infrun.c (get_displaced_stepping_state): Fix comment.
1861
1862 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1863
1864 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1865
1866 2020-10-19 Tom Tromey <tromey@adacore.com>
1867
1868 PR tui/26719
1869 * tui/tui-winsource.h (struct tui_source_window_base)
1870 <refresh_window>: Rename from refresh_pad.
1871 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1872 Rename from refresh_pad.
1873 (tui_source_window_base::show_source_content)
1874 (tui_source_window_base::do_scroll_horizontal): Update.
1875
1876 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1877
1878 * thread.c (_initialize_thread): Fine-tune the help text of
1879 'info threads'.
1880
1881 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1882
1883 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1884
1885 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1886
1887 * breakpoint.c (handle_jit_event): Add an argument, change how
1888 `jit_event_handler` is called.
1889
1890 2020-10-17 Tom Tromey <tom@tromey.com>
1891
1892 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1893 (scan_xcoff_symtab): Update.
1894 * psymtab.h (class psymtab_storage) <global_psymbols,
1895 static_psymbols, current_global_psymbols,
1896 current_static_psymbols>: Remove.
1897 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1898 (match_partial_symbol, lookup_partial_symbol): Update.
1899 (print_partial_symbols): Change parameters.
1900 (dump_psymtab, recursively_search_psymtabs)
1901 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1902 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1903 (concat): Remove.
1904 (end_psymtab_common): Simplify.
1905 (append_psymbol_to_list): Change parameters.
1906 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1907 (init_psymbol_list): Simplify.
1908 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1909 * psympriv.h (struct partial_symtab) <empty>: New method.
1910 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1911 Remove.
1912 <global_psymbols, static_psymbols>: New members.
1913 <add_psymbol>: New methods.
1914 (add_psymbol_to_list): Don't declare.
1915 (psymbol_placement): Move earlier.
1916 * mdebugread.c (parse_partial_symbols): Update.
1917 (handle_psymbol_enumerators): Change parameters.
1918 (mdebug_expand_psymtab): Update.
1919 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1920 (add_partial_symbol): Update.
1921 * dwarf2/index-write.c (write_psymbols): Change parameters.
1922 (write_one_signatured_type): Update.
1923 (recursively_count_psymbols): Update.
1924 (recursively_write_psymbols): Update.
1925 (class debug_names) <recursively_write_psymbols>: Update.
1926 <write_psymbols>: Change parameters.
1927 <write_one_signatured_type>: Update.
1928 * dbxread.c (read_dbx_symtab): Update.
1929 (dbx_end_psymtab): Use partial_symtab::empty.
1930 * ctfread.c (struct ctf_context) <pst>: New member.
1931 (create_partial_symtab): Set it.
1932 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1933 (scan_partial_symbols): Use the psymtab's context. Update.
1934
1935 2020-10-17 Tom Tromey <tom@tromey.com>
1936
1937 * valprint.c (generic_value_print): Remove comment.
1938 * m2-valprint.c (m2_value_print_inner): Remove comment.
1939 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1940 type.
1941
1942 2020-10-17 Tom de Vries <tdevries@suse.de>
1943
1944 PR symtab/26317
1945 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1946 symbol main.
1947
1948 2020-10-14 Tom de Vries <tdevries@suse.de>
1949
1950 PR gdb/26733
1951 * solib.c (solib_contains_address_p): Handle
1952 'solib->sections == nullptr'.
1953
1954 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 PR gdb/26642
1957 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1958 target can't do async.
1959 * target.c (target_wait): Assert that we don't pass
1960 TARGET_WNOHANG to a target that can't async.
1961
1962 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1963
1964 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1965 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1966 * alpha-bsd-nat.c: Adjust include.
1967 * alpha-bsd-tdep.h: Adjust comment.
1968 * alpha-nbsd-tdep.c: Rename to ...
1969 * alpha-netbsd-tdep.c: ... this, adjust include.
1970 * amd64-nbsd-nat.c: Rename to ...
1971 * amd64-netbsd-nat.c: ... this, adjust include.
1972 * amd64-nbsd-tdep.c: Rename to ...
1973 * amd64-netbsd-tdep.c: ... this, adjust include.
1974 * amd64-tdep.h: Adjust include.
1975 * arm-nbsd-nat.c: Rename to ...
1976 * arm-netbsd-nat.c: ... this, adjust include.
1977 * arm-nbsd-tdep.c: Rename to ...
1978 * arm-netbsd-tdep.c: ... this, adjust include.
1979 * arm-nbsd-tdep.h: Rename to ...
1980 * arm-netbsd-tdep.h: ... this, adjust include.
1981 * configure.nat: Adjust file lists.
1982 * configure.tgt: Likewise.
1983 * hppa-nbsd-nat.c: Rename to ...
1984 * hppa-netbsd-nat.c: ... this, adjust include.
1985 * hppa-nbsd-tdep.c: Rename to ...
1986 * hppa-netbsd-tdep.c: ... this, adjust include.
1987 * i386-nbsd-nat.c: Rename to ...
1988 * i386-netbsd-nat.c: ... this, adjust include.
1989 * i386-nbsd-tdep.c: Rename to ...
1990 * i386-netbsd-tdep.c: ... this, adjust include.
1991 * m68k-bsd-nat.c: Adjust include.
1992 * mips-nbsd-nat.c: Rename to ...
1993 * mips-netbsd-nat.c: ... this, adjust include.
1994 * mips-nbsd-tdep.c: Rename to ...
1995 * mips-netbsd-tdep.c: ... this, adjust include.
1996 * mips-nbsd-tdep.h: Rename to ...
1997 * mips-netbsd-tdep.h: ... this.
1998 * nbsd-nat.c: Rename to ...
1999 * netbsd-nat.c: ... this, adjust include.
2000 * nbsd-nat.h: Rename to ...
2001 * netbsd-nat.h: ... this, adjust include.
2002 * nbsd-tdep.c: Rename to ...
2003 * netbsd-tdep.c: ... this, adjust include.
2004 * nbsd-tdep.h: Rename to ...
2005 * netbsd-tdep.h: ... this.
2006 * ppc-nbsd-nat.c: Rename to ...
2007 * ppc-netbsd-nat.c: ... this, adjust include.
2008 * ppc-nbsd-tdep.c: Rename to ...
2009 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2010 * ppc-nbsd-tdep.h: Rename to ...
2011 * ppc-netbsd-tdep.h: ... this.
2012 * sh-nbsd-nat.c: Rename to ...
2013 * sh-netbsd-nat.c: ... this, adjust include.
2014 * sh-nbsd-tdep.c: Rename to ...
2015 * sh-netbsd-tdep.c: ... this, adjust include.
2016 * sparc-nbsd-nat.c: Rename to ...
2017 * sparc-netbsd-nat.c: ... this.
2018 * sparc-nbsd-tdep.c: Rename to ...
2019 * sparc-netbsd-tdep.c: ... this, adjust include.
2020 * sparc64-nbsd-nat.c: Rename to ...
2021 * sparc64-netbsd-nat.c: ... this.
2022 * sparc64-nbsd-tdep.c: Rename to ...
2023 * sparc64-netbsd-tdep.c: ... this, adjust include.
2024 * sparc64-tdep.h: Adjust comment.
2025 * vax-bsd-nat.c: Adjust include.
2026 * vax-nbsd-tdep.c: Rename to ...
2027 * vax-netbsd-tdep.c: ... this, adjust include.
2028
2029 2020-10-12 Tom Tromey <tom@tromey.com>
2030
2031 * target.h (struct target_ops) <get_section_table>: Update.
2032 (target_get_section_table): Update.
2033 * target.c (target_get_section_table, target_section_by_addr)
2034 (memory_xfer_partial_1): Update.
2035 * target-section.h (target_section_table): Now an alias.
2036 * target-delegates.c: Rebuild.
2037 * target-debug.h (target_debug_print_target_section_table_p):
2038 Rename from target_debug_print_struct_target_section_table_p.
2039 * symfile.c (build_section_addr_info_from_section_table): Update.
2040 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2041 * solib-svr4.c (scan_dyntag): Update.
2042 * solib-dsbt.c (scan_dyntag): Update.
2043 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2044 Update.
2045 * record-full.c (record_full_core_target::xfer_partial): Update.
2046 * progspace.h (struct program_space) <target_sections>: Update.
2047 * exec.h (print_section_info): Update.
2048 * exec.c (exec_target::close, build_section_table)
2049 (add_target_sections, add_target_sections_of_objfile)
2050 (remove_target_sections, exec_on_vfork)
2051 (section_table_available_memory)
2052 (section_table_xfer_memory_partial)
2053 (exec_target::get_section_table, exec_target::xfer_partial)
2054 (print_section_info, set_section_command)
2055 (exec_set_section_address, exec_target::has_memory): Update.
2056 * corelow.c (core_target::build_file_mappings)
2057 (core_target::xfer_partial, core_target::info_proc_mappings)
2058 (core_target::info_proc_mappings): Update.
2059 * bfd-target.c (class target_bfd): Update
2060
2061 2020-10-12 Tom Tromey <tom@tromey.com>
2062
2063 * progspace.c (program_space::~program_space): Don't call
2064 clear_section_table.
2065 * exec.h (clear_section_table): Don't declare.
2066 * exec.c (exec_target::close): Update.
2067 (clear_section_table): Remove.
2068
2069 2020-10-12 Tom Tromey <tom@tromey.com>
2070
2071 * exec.c (add_target_sections_of_objfile): Simplify.
2072
2073 2020-10-12 Tom Tromey <tom@tromey.com>
2074
2075 * solib.c (solib_map_sections): Update.
2076 * record-full.c (record_full_core_open_1): Update.
2077 * exec.h (build_section_table): Return a target_section_table.
2078 * exec.c (exec_file_attach): Update.
2079 (build_section_table): Return a target_section_table.
2080 * corelow.c (core_target::core_target): Update.
2081 * bfd-target.c (target_bfd::target_bfd): Update.
2082
2083 2020-10-12 Tom Tromey <tom@tromey.com>
2084
2085 * target.c (target_section_by_addr, memory_xfer_partial_1):
2086 Update.
2087 * target-section.h (struct target_section_table): Use
2088 std::vector.
2089 * symfile.h (build_section_addr_info_from_section_table): Take a
2090 target_section_table.
2091 * symfile.c (build_section_addr_info_from_section_table): Take a
2092 target_section_table.
2093 * solist.h (struct so_list) <sections>: Change type.
2094 <sections_end>: Remove.
2095 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2096 (solib_contains_address_p): Update.
2097 * solib-svr4.c (scan_dyntag): Update.
2098 * solib-dsbt.c (scan_dyntag): Update.
2099 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2100 Update.
2101 * record-full.c (record_full_core_start, record_full_core_end):
2102 Remove.
2103 (record_full_core_sections): New global.
2104 (record_full_core_open_1, record_full_core_target::xfer_partial):
2105 Update.
2106 * exec.h (build_section_table, section_table_xfer_memory_partial)
2107 (add_target_sections): Take a target_section_table.
2108 * exec.c (exec_file_attach, clear_section_table): Update.
2109 (resize_section_table): Remove.
2110 (build_section_table, add_target_sections): Take a
2111 target_section_table.
2112 (add_target_sections_of_objfile, remove_target_sections)
2113 (exec_on_vfork): Update.
2114 (section_table_available_memory): Take a target_section_table.
2115 (section_table_read_available_memory): Update.
2116 (section_table_xfer_memory_partial): Take a target_section_table.
2117 (print_section_info, set_section_command)
2118 (exec_set_section_address, exec_target::has_memory): Update.
2119 * corelow.c (class core_target) <m_core_section_table,
2120 m_core_file_mappings>: Remove braces.
2121 <~core_target>: Remove.
2122 (core_target::core_target): Update.
2123 (core_target::~core_target): Remove.
2124 (core_target::build_file_mappings)
2125 (core_target::xfer_memory_via_mappings)
2126 (core_target::xfer_partial, core_target::info_proc_mappings):
2127 Update.
2128 * bfd-target.c (target_bfd::xfer_partial): Update.
2129 (target_bfd::target_bfd): Update.
2130 (target_bfd::~target_bfd): Remove.
2131
2132 2020-10-12 Tom Tromey <tom@tromey.com>
2133
2134 * target.h (struct target_section, struct target_section_table):
2135 Move to target-section.h.
2136 * target-section.h: New file.
2137
2138 2020-10-12 Pedro Alves <pedro@palves.net>
2139
2140 PR exp/26602
2141 * valops.c (struct struct_field_searcher): New.
2142 (update_search_result): Rename to ...
2143 (struct_field_searcher::update_result): ... this. Simplify
2144 prototype. Record all found fields.
2145 (do_search_struct_field): Rename to ...
2146 (struct_field_searcher::search): ... this. Simplify prototype.
2147 Maintain stack of visited baseclass path. Call update_result for
2148 fields too. Keep searching fields in baseclasses instead of
2149 stopping at the first found field.
2150 (search_struct_field): Use struct_field_searcher. When looking
2151 for fields, report ambiguous access attempts.
2152
2153 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * frame.c (inside_main_func): Check full symbols as well as
2156 minimal symbols.
2157
2158 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2159
2160 * ada-lang.c (advance_wild_match): Rewrite the function's
2161 description. Change the type of target0, t0 and t1 to char.
2162
2163 2020-10-09 Tom Tromey <tromey@adacore.com>
2164
2165 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2166
2167 2020-10-09 Tom Tromey <tromey@adacore.com>
2168
2169 * ada-lang.h (ada_encode): Return std::string.
2170 * ada-lang.c (ada_encode_1): Return std::string.
2171 (ada_encode): Likewise.
2172 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2173 Update.
2174 * ada-exp.y (block_lookup, write_var_or_type): Update.
2175
2176 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2177
2178 PR exp/26714
2179 * printcmd.c (print_formatted): Handle void results as
2180 unformatted prints.
2181
2182 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * arch/aarch32.c (aarch32_create_target_description): Release the
2185 target_desc_up as late as possible.
2186 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2187 * arch/amd64.c (amd64_create_target_description): Likewise.
2188 * arch/arc.c (arc_create_target_description): Return a
2189 target_desc_up, don't release it.
2190 * arch/arc.h (arc_create_target_description): Update declaration.
2191 (arc_lookup_target_description): Move target_desc_up into the
2192 cache, and return a borrowed pointer.
2193 * arch/arm.c (arm_create_target_description): Release the
2194 target_desc_up as late as possible.
2195 * arch/i386.c (i386_create_target_description): Likewise.
2196 * arch/riscv.h (riscv_create_target_description): Update
2197 declaration to match definition.
2198 * arch/tic6x.c (tic6x_create_target_description): Release the
2199 target_desc_up as late as possible.
2200
2201 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2204 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2205
2206 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2207
2208 * source.c (directory_command): Notify observers that "directories"
2209 parameter has changed.
2210
2211 2020-10-08 Tom Tromey <tom@tromey.com>
2212
2213 * cli/cli-cmds.c (print_disassembly): Style function name and
2214 addresses. Add _() wrappers.
2215
2216 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2217
2218 * NEWS: Mention ARC support in GDBserver.
2219
2220 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2221
2222 * arch/aarch32.c (aarch32_create_target_description): Release
2223 unique_ptr returned from allocate_target_description.
2224 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2225 * arch/amd64.c (amd64_create_target_description): Likewise.
2226 * arch/arc.c (arc_create_target_description): Likewise.
2227 * arch/arm.c (arm_create_target_description): Likewise.
2228 * arch/i386.c (i386_create_target_description): Likewise.
2229 * arch/riscv.c (riscv_create_target_description): Update return
2230 type. Handle allocate_target_description returning a unique_ptr.
2231 (riscv_lookup_target_description): Update to handle unique_ptr.
2232 * arch/tic6x.c (tic6x_create_target_description): Release
2233 unique_ptr returned from allocate_target_description.
2234 * features/microblaze-with-stack-protect.c: Regenerate.
2235 * features/microblaze.c: Regenerate.
2236 * features/mips-dsp-linux.c: Regenerate.
2237 * features/mips-linux.c: Regenerate.
2238 * features/mips64-dsp-linux.c: Regenerate.
2239 * features/mips64-linux.c: Regenerate.
2240 * features/nds32.c: Regenerate.
2241 * features/nios2.c: Regenerate.
2242 * features/or1k.c: Regenerate.
2243 * features/rs6000/powerpc-32.c: Regenerate.
2244 * features/rs6000/powerpc-32l.c: Regenerate.
2245 * features/rs6000/powerpc-403.c: Regenerate.
2246 * features/rs6000/powerpc-403gc.c: Regenerate.
2247 * features/rs6000/powerpc-405.c: Regenerate.
2248 * features/rs6000/powerpc-505.c: Regenerate.
2249 * features/rs6000/powerpc-601.c: Regenerate.
2250 * features/rs6000/powerpc-602.c: Regenerate.
2251 * features/rs6000/powerpc-603.c: Regenerate.
2252 * features/rs6000/powerpc-604.c: Regenerate.
2253 * features/rs6000/powerpc-64.c: Regenerate.
2254 * features/rs6000/powerpc-64l.c: Regenerate.
2255 * features/rs6000/powerpc-7400.c: Regenerate.
2256 * features/rs6000/powerpc-750.c: Regenerate.
2257 * features/rs6000/powerpc-860.c: Regenerate.
2258 * features/rs6000/powerpc-altivec32.c: Regenerate.
2259 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2260 * features/rs6000/powerpc-altivec64.c: Regenerate.
2261 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2262 * features/rs6000/powerpc-e500.c: Regenerate.
2263 * features/rs6000/powerpc-e500l.c: Regenerate.
2264 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2265 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2266 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2267 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2268 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2269 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2270 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2271 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2272 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2273 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2274 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2275 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2276 * features/rs6000/powerpc-vsx32.c: Regenerate.
2277 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2278 * features/rs6000/powerpc-vsx64.c: Regenerate.
2279 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2280 * features/rs6000/rs6000.c: Regenerate.
2281 * features/rx.c: Regenerate.
2282 * features/s390-gs-linux64.c: Regenerate.
2283 * features/s390-linux32.c: Regenerate.
2284 * features/s390-linux32v1.c: Regenerate.
2285 * features/s390-linux32v2.c: Regenerate.
2286 * features/s390-linux64.c: Regenerate.
2287 * features/s390-linux64v1.c: Regenerate.
2288 * features/s390-linux64v2.c: Regenerate.
2289 * features/s390-te-linux64.c: Regenerate.
2290 * features/s390-tevx-linux64.c: Regenerate.
2291 * features/s390-vx-linux64.c: Regenerate.
2292 * features/s390x-gs-linux64.c: Regenerate.
2293 * features/s390x-linux64.c: Regenerate.
2294 * features/s390x-linux64v1.c: Regenerate.
2295 * features/s390x-linux64v2.c: Regenerate.
2296 * features/s390x-te-linux64.c: Regenerate.
2297 * features/s390x-tevx-linux64.c: Regenerate.
2298 * features/s390x-vx-linux64.c: Regenerate.
2299 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2300 from allocate_target_description.
2301 * target-descriptions.c (allocate_target_description): Update
2302 return type.
2303 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2304 allocate_target_description.
2305
2306 2020-10-07 Tom Tromey <tromey@adacore.com>
2307
2308 * unittests/search-memory-selftests.c: New file.
2309 * Makefile.in (SELFTESTS_SRCS): Add
2310 unittests/search-memory-selftests.c.
2311
2312 2020-10-07 Tom Tromey <tromey@adacore.com>
2313
2314 PR gdb/16930:
2315 * findcmd.c (_initialize_mem_search): Mention that the range is
2316 inclusive.
2317
2318 2020-10-07 Tom Tromey <tromey@adacore.com>
2319
2320 * target.h (simple_search_memory): Don't declare.
2321 * target.c (simple_search_memory): Move to gdbsupport.
2322 (default_search_memory): Update.
2323 * remote.c (remote_target::search_memory): Update.
2324
2325 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2326
2327 * Makefile.in (COMPILE): Add CXXFLAGS.
2328 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2329 (check-headers): Add CXXFLAGS.
2330
2331 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2332
2333 * arc-linux-tdep.h: New file.
2334 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2335 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2336 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2337 arc_linux_gregset, arc_linux_v2_regset,
2338 arc_linux_iterate_over_regset_sections,
2339 arc_linux_core_read_description): Implement.
2340 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2341 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2342 (arc_gdbarch_features_create): Add.
2343 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2344
2345 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2346
2347 * arch/arc.h: Rename "arc_gdbarch_features" to
2348 "arc_arch_features".
2349 * arc-tdep.h: Likewise.
2350 * arc-tdep.c: Likewise.
2351
2352 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2353
2354 * infcmd.c (attach_command): Remove the redundant call to
2355 `clear_proceed_status`.
2356
2357 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2358
2359 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2360
2361 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2362
2363 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2364 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2365 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2366
2367 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2370 (_initialize_break_catch_sig): Don't allocate array.
2371
2372 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * symtab.c (find_pc_line): Return unmapped addresses when the
2375 requested address is also unmapped.
2376
2377 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2380 tui/tui-out.h.
2381
2382 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2383
2384 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2385 type::is_vector instead of TYPE_VECTOR.
2386
2387 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * auto-load.c (auto_load_objfile_script_1): Don't use
2390 debugfile_holder as temporary variable when stripping drive
2391 letter.
2392
2393 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2394
2395 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2396 Add TYPE_CODE_COMPLEX.
2397 (amd64_windows_return_value): Fix types returned via XMM0.
2398
2399 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2400
2401 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2402 AArch64/ARM maintainers.
2403
2404 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * NEWS: Mention set/show debug event-loop.
2407
2408 2020-10-02 Tom Tromey <tromey@adacore.com>
2409
2410 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2411 REG_EXTENDED.
2412
2413 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2416 * procfs.c (procfs_inferior_created): Remove.
2417 (_initialize_procfs): Don't register procfs_inferior_created.
2418
2419 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * async-event.c (invoke_async_signal_handlers): Add debug
2422 print.
2423 (check_async_event_handlers): Likewise.
2424 * event-top.c (show_debug_event_loop): New function.
2425 (_initialize_event_top): Register "set debug event-loop"
2426 setting.
2427
2428 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2431 * debug.h: Remove.
2432 * infrun.c: Include gdbsupport/common-debug.h.
2433 * linux-nat.c: Likewise.
2434
2435 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * async-event.h (create_async_signal_handler): Add name
2438 parameter.
2439 (create_async_event_handler): Likewise.
2440 * async-event.c (struct async_signal_handler) <name>: New field.
2441 (struct async_event_handler) <name>: New field.
2442 (create_async_signal_handler): Assign name.
2443 (create_async_event_handler): Assign name.
2444 * event-top.c (async_init_signals): Pass name when creating
2445 handler.
2446 * infrun.c (_initialize_infrun): Likewise.
2447 * record-btrace.c (record_btrace_push_target): Likewise.
2448 * record-full.c (record_full_open): Likewise.
2449 * remote-notif.c (remote_notif_state_allocate): Likewise.
2450 * remote.c (remote_target::open_1): Likewise.
2451 * tui/tui-win.c (tui_initialize_win): Likewise.
2452
2453 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * async-event.c (initialize_async_signal_handlers): Pass name to
2456 add_file_handler
2457 * event-top.c (ui_register_input_event_handler): Likewise.
2458 * linux-nat.c (linux_nat_target::async): Likewise.
2459 * run-on-main-thread.c (_initialize_run_on_main_thread):
2460 Likewise
2461 * ser-base.c (reschedule): Likewise.
2462 (ser_base_async): Likewise.
2463 * tui/tui-io.c: Likewise.
2464 * top.h (struct ui) <num>: New field.
2465 * top.c (highest_ui_num): New variable.
2466 (ui::ui): Initialize num.
2467
2468 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * observable.h <inferior_created>: Remove parameters. Update all
2471 listeners.
2472 * inferior.h (post_create_inferior): Remove target parameter.
2473 Update all callers.
2474
2475 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2476
2477 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2478 and DW_MACRO_undef_strx.
2479 (dwarf_decode_macros): Likewise
2480 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2481 which is the value of DW_AT_str_offsets_base.
2482 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2483 str_offsets_base.
2484
2485 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2486
2487 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2488
2489 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2490
2491 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2492 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2493
2494 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2495
2496 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2497
2498 2020-09-30 Tom de Vries <tdevries@suse.de>
2499
2500 PR symtab/26683
2501 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2502
2503 2020-09-30 Tom Tromey <tromey@adacore.com>
2504
2505 * dwarf2/read.c (handle_variant): Use constant_value.
2506
2507 2020-09-29 Tom Tromey <tom@tromey.com>
2508
2509 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2510 (read_file_scope, dwarf2_get_pc_bounds)
2511 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2512 (read_structure_type, handle_struct_member_die)
2513 (read_enumeration_type, read_array_type, read_set_type)
2514 (read_tag_pointer_type, read_tag_reference_type)
2515 (read_subroutine_type, read_base_type, read_subrange_type)
2516 (read_full_die_1, partial_die_info::read)
2517 (partial_die_info::read, by, new_symbol)
2518 (dwarf2_const_value_data, dwarf2_const_value_attr)
2519 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2520 (prepare_one_comp_unit): Update.
2521 * dwarf2/attribute.h (DW_UNSND): Remove.
2522
2523 2020-09-29 Tom Tromey <tom@tromey.com>
2524
2525 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2526 (read_subroutine_type, partial_die_info::read)
2527 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2528 (dwarf2_add_member_fn): Update.
2529 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2530 * dwarf2/attribute.c (attribute::as_boolean): New method.
2531
2532 2020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2535 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2536 method.
2537 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2538
2539 2020-09-29 Tom Tromey <tom@tromey.com>
2540
2541 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2542 the attribute's form.
2543
2544 2020-09-29 Tom Tromey <tom@tromey.com>
2545
2546 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2547 (dwarf2_add_member_fn): Update.
2548 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2549 * dwarf2/attribute.c (attribute::defaulted): New method, from
2550 is_valid_DW_AT_defaulted.
2551
2552 2020-09-29 Tom Tromey <tom@tromey.com>
2553
2554 * dwarf2/read.c (dw2_get_file_names_reader)
2555 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2556 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2557 (dwarf2_symbol_mark_computed): Use as_unsigned.
2558 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2559 method.
2560 <form_is_section_offset>: Update comment.
2561
2562 2020-09-29 Tom Tromey <tom@tromey.com>
2563
2564 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2565 dwarf2_default_access_attribute. Look up attribute.
2566 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2567 Update.
2568
2569 2020-09-29 Tom Tromey <tom@tromey.com>
2570
2571 * dwarf2/read.c (skip_one_die): Update.
2572 (read_full_die_1): Change how reprocessing is done.
2573 (partial_die_info::read): Update.
2574 (read_attribute_value): Remove need_reprocess parameter.
2575 (read_attribute): Likewise.
2576 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2577 New method.
2578
2579 2020-09-29 Tom Tromey <tom@tromey.com>
2580
2581 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2582 (dwarf2_const_value_attr, dump_die_shallow)
2583 (dwarf2_fetch_constant_bytes): Update.
2584 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2585 comment.
2586 <set_address>: New method.
2587 (DW_ADDR): Remove.
2588 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2589 (attribute::as_string, attribute::as_address): Add assert.
2590
2591 2020-09-29 Tom Tromey <tom@tromey.com>
2592
2593 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2594 (read_attribute_reprocess, read_attribute_value): Update.
2595 (read_attribute): Clear requires_reprocessing.
2596 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2597 form_requires_reprocessing>: New methods.
2598 <string_init>: Clear requires_reprocessing.
2599 <set_unsigned_reprocess>: New method.
2600 <name>: Shrink by one bit.
2601 <requires_reprocessing>: New member.
2602 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2603 method.
2604
2605 2020-09-29 Tom Tromey <tom@tromey.com>
2606
2607 * dwarf2/read.c (read_attribute_value): Update.
2608 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2609 set_unsigned>: New methods.
2610 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2611
2612 2020-09-29 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2/read.c (get_alignment, read_array_order)
2615 (read_attribute_value, dwarf2_const_value_attr)
2616 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2617 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2618 New methods.
2619 (DW_SND): Remove.
2620
2621 2020-09-29 Tom Tromey <tom@tromey.com>
2622
2623 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2624 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2625 Update.
2626 * dwarf2/attribute.h (struct attribute) <as_signature,
2627 set_signature>: New methods.
2628 (DW_SIGNATURE): Remove.
2629
2630 2020-09-29 Tom Tromey <tom@tromey.com>
2631
2632 * dwarf2/read.c (read_call_site_scope)
2633 (handle_data_member_location, dwarf2_add_member_fn)
2634 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2635 (partial_die_info::read, read_attribute_value)
2636 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2637 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2638 (dwarf2_symbol_mark_computed): Update.
2639 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2640 methods.
2641 (DW_BLOCK): Remove.
2642 * dwarf2/attribute.c (attribute::form_is_block): Add
2643 DW_FORM_data16.
2644
2645 2020-09-29 Tom Tromey <tom@tromey.com>
2646
2647 * dwarf2/read.c (read_cutu_die_from_dwo)
2648 (read_attribute_reprocess, read_attribute_value, read_attribute)
2649 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2650 (dwarf2_fetch_constant_bytes): Update.
2651 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2652 <set_string_noncanonical, set_string_canonical>: New methods.
2653 <string_is_canonical>: Update comment.
2654 <canonical_string_p>: Add assert.
2655 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2656 * dwarf2/attribute.c (attribute::form_is_string): New method.
2657 (attribute::string): Use it.
2658
2659 2020-09-29 Tom Tromey <tom@tromey.com>
2660
2661 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2662 (dump_die_shallow): Use canonical_string_p.
2663 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2664 method.
2665
2666 2020-09-29 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/read.c (partial_die_info::read)
2669 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2670 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2671 attribute::as_string.
2672
2673 2020-09-29 Tom Tromey <tom@tromey.com>
2674
2675 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2676 DW_ADDR.
2677 (attribute::string): Don't use DW_STRING.
2678 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2679 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2680
2681 2020-09-29 Tom Tromey <tom@tromey.com>
2682
2683 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2684 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2685 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2686 * dwarf2/attribute.h (struct attribute): Rename methods.
2687 * dwarf2/attribute.c (attribute::as_address): Rename from
2688 value_as_address.
2689 (attribute::as_string): Rename from value_as_string.
2690
2691 2020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/read.c (partial_die_info::read) <case
2694 DW_AT_linkage_name>: Use value_as_string.
2695 (dwarf2_string_attr): Use value_as_string.
2696 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2697 method.
2698 * dwarf2/attribute.c (attribute::value_as_string): New method.
2699
2700 2020-09-29 Pedro Alves <pedro@palves.net>
2701
2702 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2703 defined before using '#pragma GCC diagnostic' instead of checking
2704 __clang__.
2705
2706 2020-09-28 Tom Tromey <tom@tromey.com>
2707
2708 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2709 (handle_signal_stop): Update.
2710 * procfs.c (procfs_target::insert_watchpoint): Update.
2711 * target.h (target_have_steppable_watchpoint): Now a function.
2712
2713 2020-09-28 Tom Tromey <tom@tromey.com>
2714
2715 * infrun.c (set_schedlock_func): Update.
2716 * target.h (target_can_lock_scheduler): Now a function.
2717
2718 2020-09-28 Tom Tromey <tom@tromey.com>
2719
2720 * inferior.h (class inferior) <has_execution>: Update.
2721 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2722 * valops.c (find_function_in_inferior)
2723 (value_allocate_space_in_inferior): Update.
2724 * top.c (kill_or_detach): Update.
2725 * target.c (target_preopen, set_target_permissions): Update.
2726 (target_has_execution_current): Remove.
2727 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2728 Update.
2729 * solib.c (update_solib_list, reload_shared_libraries): Update.
2730 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2731 * solib-dsbt.c (enable_break): Update.
2732 * score-tdep.c (score7_fetch_inst): Update.
2733 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2734 Update.
2735 * remote.c (remote_target::start_remote)
2736 (remote_target::remote_check_symbols, remote_target::open_1)
2737 (remote_target::remote_detach_1, remote_target::verify_memory)
2738 (remote_target::xfer_partial, remote_target::read_description)
2739 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2740 * record-full.c (record_full_open_1): Update.
2741 * record-btrace.c (record_btrace_target_open): Update.
2742 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2743 (value_nsstring): Update.
2744 * linux-thread-db.c (add_thread_db_info)
2745 (thread_db_find_new_threads_silently, check_thread_db_callback)
2746 (try_thread_db_load_1, record_thread): Update.
2747 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2748 Update.
2749 * linux-fork.c (checkpoint_command): Update.
2750 * infrun.c (set_non_stop, set_observer_mode)
2751 (check_multi_target_resumption, for_each_just_stopped_thread)
2752 (maybe_remove_breakpoints, normal_stop)
2753 (class infcall_suspend_state): Update.
2754 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2755 (info_program_command, attach_command): Update.
2756 * infcall.c (call_function_by_hand_dummy): Update.
2757 * inf-loop.c (inferior_event_handler): Update.
2758 * gcore.c (gcore_command, derive_heap_segment): Update.
2759 * exec.c (exec_file_command): Update.
2760 * eval.c (evaluate_subexp): Update.
2761 * compile/compile.c (compile_to_object): Update.
2762 * cli/cli-dump.c (restore_command): Update.
2763 * breakpoint.c (update_watchpoint)
2764 (update_inserted_breakpoint_locations)
2765 (insert_breakpoint_locations, get_bpstat_thread): Update.
2766 * target.h (target_has_execution): Remove macro.
2767 (target_has_execution_current): Don't declare.
2768 (target_has_execution): Rename from target_has_execution_1. Add
2769 argument default.
2770
2771 2020-09-28 Tom Tromey <tom@tromey.com>
2772
2773 * mi/mi-main.c (exec_reverse_continue)
2774 (mi_cmd_list_target_features): Update.
2775 * infrun.c (set_exec_direction_func): Update.
2776 * target.c (default_execution_direction): Update.
2777 * reverse.c (exec_reverse_once): Update.
2778 * target.h (target_can_execute_reverse): Now a function.
2779
2780 2020-09-28 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-regs.c (tui_get_register)
2783 (tui_data_window::show_registers): Update.
2784 * thread.c (scoped_restore_current_thread::restore)
2785 (scoped_restore_current_thread::scoped_restore_current_thread):
2786 Update.
2787 * regcache-dump.c (regcache_print): Update.
2788 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2789 Update.
2790 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2791 * mep-tdep.c (current_me_module, current_options): Update.
2792 * linux-thread-db.c (thread_db_load): Update.
2793 * infcmd.c (registers_info, info_vector_command)
2794 (info_float_command): Update.
2795 * ia64-tdep.c (ia64_frame_prev_register)
2796 (ia64_sigtramp_frame_prev_register): Update.
2797 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2798 * gcore.c (derive_stack_segment): Update.
2799 * frame.c (get_current_frame, has_stack_frames): Update.
2800 * findvar.c (language_defn::read_var_value): Update.
2801 * arm-tdep.c (arm_pc_is_thumb): Update.
2802 * target.c (target_has_registers): Rename from
2803 target_has_registers_1.
2804 * target.h (target_has_registers): Remove macro.
2805 (target_has_registers): Rename from target_has_registers_1.
2806
2807 2020-09-28 Tom Tromey <tom@tromey.com>
2808
2809 * windows-tdep.c (tlb_make_value): Update.
2810 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2811 * thread.c (scoped_restore_current_thread::restore)
2812 (scoped_restore_current_thread::scoped_restore_current_thread)
2813 (thread_command): Update.
2814 * stack.c (backtrace_command_1, frame_apply_level_command)
2815 (frame_apply_all_command, frame_apply_command): Update.
2816 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2817 Update.
2818 * gcore.c (derive_stack_segment): Update.
2819 * frame.c (get_current_frame, has_stack_frames): Update.
2820 * auxv.c (info_auxv_command): Update.
2821 * ada-tasks.c (ada_build_task_list): Update.
2822 * target.c (target_has_stack): Rename from target_has_stack_1.
2823 * target.h (target_has_stack): Remove macro.
2824 (target_has_stack): Rename from target_has_stack_1.
2825
2826 2020-09-28 Tom Tromey <tom@tromey.com>
2827
2828 * target.c (target_has_memory): Rename from target_has_memory_1.
2829 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2830 * thread.c (scoped_restore_current_thread::restore)
2831 (scoped_restore_current_thread::scoped_restore_current_thread):
2832 Update.
2833 * frame.c (get_current_frame, has_stack_frames): Update.
2834 * target.h (target_has_memory): Remove macro.
2835 (target_has_memory): Rename from target_has_memory_1.
2836
2837 2020-09-28 Tom Tromey <tom@tromey.com>
2838
2839 * target.c (target_has_all_memory_1): Remove.
2840 * target.h (target_has_all_memory): Remove define.
2841 (target_has_all_memory_1): Don't declare.
2842
2843 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * ser-base.c: Adjust comments formatting.
2846
2847 2020-09-27 Tom Tromey <tom@tromey.com>
2848
2849 PR tui/25342:
2850 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2851
2852 2020-09-27 Tom Tromey <tom@tromey.com>
2853
2854 PR tui/25342:
2855 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2856
2857 2020-09-27 Tom Tromey <tom@tromey.com>
2858
2859 * unittests/tui-selftests.c: Update.
2860 * tui/tui-winsource.h (struct tui_source_window_base)
2861 <extra_margin, show_line_number, refresh_pad>: New methods.
2862 <m_max_length, m_pad>: New members.
2863 (tui_copy_source_line): Update.
2864 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2865 first_col, line_width, ndigits parameters. Add length.
2866 (tui_source_window_base::show_source_line): Write to pad. Line
2867 number now 0-based.
2868 (tui_source_window_base::refresh_pad): New method.
2869 (tui_source_window_base::show_source_content): Write to pad. Call
2870 refresh_pad.
2871 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2872 not refill.
2873 (tui_source_window_base::update_exec_info): Call
2874 show_line_number.
2875 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2876 method.
2877 <m_digits>: New member.
2878 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2879 and m_max_length.
2880 (tui_source_window::show_line_number): New method.
2881 * tui/tui-io.h (tui_puts): Fix comment.
2882 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2883 m_max_length.
2884
2885 2020-09-27 Tom Tromey <tom@tromey.com>
2886
2887 * tui/tui-winsource.c
2888 (tui_source_window_base::set_is_exec_point_at): Don't call
2889 show_source_line.
2890
2891 2020-09-27 Tom Tromey <tom@tromey.com>
2892
2893 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2894 method.
2895 <erase>: Update.
2896 <cursor_x, cursor_y>: Remove.
2897 <m_inner_window>: New member.
2898 (tui_py_window::rerender): Create inner window.
2899 (tui_py_window::output): Write to inner window.
2900
2901 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2902
2903 PR python/26586
2904 * cli/cli-script.c (execute_control_commands): don't set
2905 instream to nullptr here as this breaks the from_tty argument
2906 to gdb.execute in Python.
2907 (execute_user_command): set instream to nullptr here instead.
2908
2909 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * infrun.h (infrun_debug_printf): Fix formatting.
2912 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2913
2914 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2915
2916 * compile/compile-object-load.h (struct munmap_list): Add
2917 explicitly-defined move constructor.
2918
2919 2020-09-24 Tom Tromey <tromey@adacore.com>
2920
2921 PR tui/26638:
2922 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2923 method.
2924 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2925 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2926 (tui_prev_win): Rewrite.
2927
2928 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2929
2930 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2931 in WOW64 processes as SIGINT.
2932 * nat/windows-nat.h: Make wow64_process a shared variable.
2933 * windows-nat.c: Remove static wow64_process variable.
2934
2935 2020-09-23 Tom Tromey <tom@tromey.com>
2936
2937 PR symtab/25470:
2938 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2939 offset and bit size.
2940 * printcmd.c (print_scalar_formatted): Handle zero-length
2941 integer.
2942 (print_scalar_formatted): Use bit_size_differs_p.
2943 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2944 constant.
2945 (union type_specific): <int_stuff>: New member.
2946 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2947 methods.
2948 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2949 TYPE_SPECIFIC_FIELD.
2950 (recursive_dump_type, copy_type_recursive): Update.
2951 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2952 DW_AT_data_bit_offset.
2953
2954 2020-09-23 Tom Tromey <tom@tromey.com>
2955
2956 * utils.h (class gdb_argv): Add move operators.
2957 <append>: New methods.
2958 * compile/compile.c (build_argc_argv): Remove.
2959 (compile_args_argc): Remove.
2960 (compile_args_argv): Change type.
2961 (set_compile_args): Simplify.
2962 (append_args): Remove.
2963 (filter_args): Remove argcp parameter.
2964 (get_args): Return gdb_argv. Simplify.
2965 (compile_to_object): Update.
2966
2967 2020-09-23 Tom Tromey <tom@tromey.com>
2968
2969 * compile/compile-object-run.c (do_module_cleanup)
2970 <~do_module_cleanup> :Remove.
2971 (do_module_cleanup): Update.
2972 * compile/compile-object-load.h (struct munmap_list): Add move
2973 assignment operator.
2974 <source_file>: Now a std::string.
2975 <munmap_list>: Rename. No longer a pointer.
2976 * compile/compile-object-load.c (struct setup_sections_data): Add
2977 constructor.
2978 <setup_one_section>: Declare.
2979 <munmap_list>: Move earlier.
2980 <m_bfd>: New member.
2981 <m_last_size, m_last_section_first, m_last_prot,
2982 m_last_max_alignment>: Rename, add initializers where needed.
2983 (setup_sections_data::setup_one_section): Rename from
2984 setup_sections. Update.
2985 (compile_object_load): Update. Don't use bfd_map_over_sections.
2986
2987 2020-09-23 Tom Tromey <tom@tromey.com>
2988
2989 * compile/compile-object-run.c (struct do_module_cleanup): Add
2990 parameters to constructor. Update destructor.
2991 <source_file, scope, scope_data, out_value_type, out_value_addr,
2992 munmap_list_head, objfile_name_string>: Remove.
2993 <module>: New member.
2994 (do_module_cleanup): Update.
2995 (compile_object_run): Update.
2996
2997 2020-09-23 Tom Tromey <tom@tromey.com>
2998
2999 * compile/compile.c (eval_compile_command): Update.
3000 * compile/compile-object-run.h (compile_object_run): Take a
3001 compile_module_up.
3002 * compile/compile-object-run.c (compile_object_run): Take a
3003 compile_module_up.
3004 * compile/compile-object-load.h (struct compile_module): Add
3005 constructor, destructor.
3006 (compile_module_up): New typedef.
3007 (compile_object_load): Return compile_object_up.
3008 * compile/compile-object-load.c (compile_object_load): Return
3009 compile_module_up.
3010
3011 2020-09-23 Tom Tromey <tom@tromey.com>
3012
3013 * compile/compile-object-run.c (struct do_module_cleanup): Add
3014 constructor, destructor.
3015 <objfile_name_string>: Don't use struct hack.
3016 (do_module_cleanup): Use delete.
3017 (compile_object_run): Use new.
3018
3019 2020-09-23 Tom Tromey <tom@tromey.com>
3020
3021 * compile/compile-cplus-types.c
3022 (compile_cplus_convert_struct_or_union): Use std::vector.
3023 (compile_cplus_convert_func): Likewise.
3024 * compile/compile-c-types.c (convert_func): Use std::vector.
3025
3026 2020-09-21 Tom Tromey <tromey@adacore.com>
3027
3028 * sparc-tdep.c (sparc32_skip_prologue): Use
3029 skip_prologue_using_sal.
3030
3031 2020-09-19 Tom Tromey <tom@tromey.com>
3032
3033 * symfile.c (add_section_size_callback): Remove.
3034 (load_one_section): Rename from load_section_callback. Change
3035 parameters.
3036 (generic_load): Use foreach.
3037
3038 2020-09-19 Tom Tromey <tom@tromey.com>
3039
3040 * exec.c (add_to_section_table): Remove.
3041 (build_section_table): Use foreach.
3042
3043 2020-09-19 Tom Tromey <tom@tromey.com>
3044
3045 * elfread.c (elf_locate_sections): Change parameters.
3046 (elf_symfile_read): Use foreach.
3047
3048 2020-09-19 Tom Tromey <tom@tromey.com>
3049
3050 * cli/cli-dump.c (struct callback_data): Remove.
3051 (restore_one_section): Rename from restore_section_callback.
3052 Change parameters.
3053 (restore_binary_file): Change parameters.
3054 (restore_command): Use foreach.
3055
3056 2020-09-19 Tom Tromey <tom@tromey.com>
3057
3058 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3059 (gcore_copy_callback): Likewise.
3060 (gcore_memory_sections): Use foreach.
3061
3062 2020-09-19 Tom Tromey <tom@tromey.com>
3063
3064 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3065 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3066 parameters.
3067 (generic_elf_osabi_sniffer): Use foreach.
3068 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3069 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3070
3071 2020-09-19 Tom Tromey <tom@tromey.com>
3072
3073 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3074 (dwarf2_get_dwz_file): Use foreach.
3075 (dwarf2_locate_dwo_sections): Change parameters.
3076 (open_and_init_dwo_file): Use foreach.
3077 (dwarf2_locate_common_dwp_sections): Change parameters.
3078 (open_and_init_dwp_file): Use foreach.
3079
3080 2020-09-19 Tom Tromey <tom@tromey.com>
3081
3082 * symfile.h: (find_lowest_section): Don't declare.
3083 * symfile.c (find_lowest_section): Now static. Change
3084 parameters.
3085 (struct place_section_arg): Remove.
3086 (place_section): Change parameters.
3087 (addr_info_make_relative): Use foreach.
3088 (symfile_dummy_outputs): Remove.
3089 (default_symfile_relocate): Use foreach.
3090
3091 2020-09-19 Tom Tromey <tom@tromey.com>
3092
3093 * objfiles.c (add_to_objfile_sections): Rename from
3094 add_to_objfile_sections_full.
3095 (add_to_objfile_sections): Remove.
3096 (build_objfile_section_table): Use foreach.
3097
3098 2020-09-19 Tom Tromey <tom@tromey.com>
3099
3100 * stap-probe.c (get_stap_base_address_1): Remove.
3101 (get_stap_base_address): Use foreach.
3102
3103 2020-09-19 Tom Tromey <tom@tromey.com>
3104
3105 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3106 parameters.
3107 (gdb_bfd_close_or_warn): Use foreach.
3108
3109 2020-09-19 Tom Tromey <tom@tromey.com>
3110
3111 * corelow.c (add_to_thread_list): Change parameters.
3112 (core_target_open): Use foreach.
3113
3114 2020-09-19 Tom Tromey <tom@tromey.com>
3115
3116 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3117 existing function.
3118
3119 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3122 for arrays.
3123
3124 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * eval.c: Remove 'f-lang.h' include.
3127 (value_f90_subarray): Moved to f-lang.c.
3128 (eval_call): Renamed to...
3129 (evaluate_subexp_do_call): ...this, is no longer static, header
3130 comment moved into header file.
3131 (evaluate_funcall): Update call to eval_call.
3132 (skip_undetermined_arglist): Moved to f-lang.c.
3133 (fortran_value_subarray): Likewise.
3134 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3135 moved to evaluate_subexp_f.
3136 (calc_f77_array_dims): Moved to f-lang.c
3137 * expprint.c (print_subexp_funcall): New function.
3138 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3139 moved to print_subexp_f, OP_FUNCALL uses new function.
3140 (dump_subexp_body_funcall): New function.
3141 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3142 moved to dump_subexp_f, OP_FUNCALL uses new function.
3143 * expression.h (evaluate_subexp_do_call): Declare.
3144 * f-lang.c (value_f90_subarray): Moved from eval.c.
3145 (skip_undetermined_arglist): Likewise.
3146 (calc_f77_array_dims): Likewise.
3147 (fortran_value_subarray): Likewise.
3148 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3149 (operator_length_f): Likewise.
3150 (print_subexp_f): Likewise.
3151 (dump_subexp_body_f): Likewise.
3152 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3153 declaration of this operation to here.
3154 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3155 support moved to operator_length_f.
3156 * parser-defs.h (dump_subexp_body_funcall): Declare.
3157 (print_subexp_funcall): Declare.
3158 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3159 fortran-operator.def.
3160
3161 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * eval.c (fortran_value_subarray): New function, content is taken
3164 from...
3165 (evaluate_subexp_standard): ...here, in two places. Now arrays
3166 and strings both call the new function.
3167 (calc_f77_array_dims): Add header comment, handle strings.
3168
3169 2020-09-18 Victor Collod <vcollod@nvidia.com>
3170
3171 PR gdb/26635
3172 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3173 (i386_analyze_prologue): Call i386_skip_endbr.
3174
3175 2020-09-18 Tom Tromey <tromey@adacore.com>
3176
3177 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3178 (windows_nat_target::wait): Update.
3179 * target/wait.h (enum target_wait_flag): New. Use
3180 DEF_ENUM_FLAGS_TYPE.
3181 * target/target.h (target_wait): Change type of options.
3182 * target.h (target_options_to_string, default_target_wait):
3183 Update.
3184 (struct target_ops) <wait>: Change type of options.
3185 * target.c (target_wait, default_target_wait, do_option): Change
3186 type of "options".
3187 (target_options_to_string): Likewise.
3188 * target-delegates.c: Rebuild.
3189 * target-debug.h (target_debug_print_target_wait_flags): Rename
3190 from target_debug_print_options.
3191 * sol-thread.c (class sol_thread_target) <wait>: Update.
3192 (sol_thread_target::wait): Update.
3193 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3194 (rs6000_nat_target::wait): Update.
3195 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3196 Update.
3197 (remote_target::wait_ns, remote_target::wait_as): Change type of
3198 "options".
3199 (remote_target::wait): Update.
3200 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3201 (gdbsim_target::wait): Update.
3202 * record-full.c (class record_full_base_target) <wait>: Update.
3203 (record_full_wait_1): Change type of "options".
3204 (record_full_base_target::wait): Update.
3205 * record-btrace.c (class record_btrace_target) <wait>: Update.
3206 (record_btrace_target::wait): Update.
3207 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3208 Update.
3209 (ravenscar_thread_target::wait): Update.
3210 * procfs.c (class procfs_target) <wait>: Update.
3211 (procfs_target::wait): Update.
3212 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3213 * obsd-nat.c (obsd_nat_target::wait): Update.
3214 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3215 (nto_procfs_target::wait): Update.
3216 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3217 * nbsd-nat.c (nbsd_wait): Change type of "options".
3218 (nbsd_nat_target::wait): Update.
3219 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3220 (thread_db_target::wait): Update.
3221 * linux-nat.h (class linux_nat_target) <wait>: Update.
3222 * linux-nat.c (linux_nat_target::wait): Update.
3223 (linux_nat_wait_1): Update.
3224 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3225 "options".
3226 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3227 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3228 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3229 (go32_nat_target::wait): Update.
3230 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3231 * gnu-nat.c (gnu_nat_target::wait): Update.
3232 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3233 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3234 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3235 * darwin-nat.c (darwin_nat_target::wait): Update.
3236 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3237 (bsd_uthread_target::wait): Update.
3238 * aix-thread.c (class aix_thread_target) <wait>: Update.
3239 (aix_thread_target::wait): Update.
3240
3241 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * compile/compile-object-run.c (create_copied_type_recursive): New
3244 function.
3245 (compile_object_run): Use new function.
3246
3247 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3248
3249 * NEWS: Mention x86_64 Cygwin core file support.
3250
3251 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3252
3253 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3254 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3255
3256 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3257
3258 * windows-tdep.h: Add prototypes.
3259 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3260 (i386_windows_core_pid_to_str): Move and rename ...
3261 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3262 (windows_core_pid_to_str): ... and here.
3263 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3264
3265 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3266 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3267 (amd64_windows_init_abi_common): ... and register.
3268
3269 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3270
3271 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3272 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3273
3274 2020-09-18 Pedro Alves <pedro@palves.net>
3275
3276 PR gdb/26631
3277 * thread.c (thread_find_command): Switch inferior before calling
3278 target methods.
3279
3280 2020-09-17 Tom Tromey <tromey@adacore.com>
3281
3282 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3283 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3284 (tdesc_arch_data_up): New typedef.
3285 (tdesc_use_registers, tdesc_data_alloc): Update.
3286 (tdesc_data_cleanup): Don't declare.
3287 * target-descriptions.c (tdesc_data_alloc): Return a
3288 tdesc_arch_data_up.
3289 (tdesc_arch_data_deleter::operator()): Rename from
3290 tdesc_data_cleanup. Change argument type.
3291 (tdesc_use_registers): Change early_data to an rvalue reference.
3292 (tdesc_use_registers): Don't use delete.
3293 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3294 * s390-tdep.c (s390_gdbarch_init): Update.
3295 * rx-tdep.c (rx_gdbarch_init): Update.
3296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3297 * riscv-tdep.c (riscv_gdbarch_init): Update.
3298 * or1k-tdep.c (or1k_gdbarch_init): Update.
3299 * nios2-tdep.c (nios2_gdbarch_init): Update.
3300 * nds32-tdep.c (nds32_gdbarch_init): Update.
3301 * mips-tdep.c (mips_gdbarch_init): Update.
3302 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3303 * m68k-tdep.c (m68k_gdbarch_init): Update.
3304 * i386-tdep.c (i386_gdbarch_init): Update.
3305 * arm-tdep.c (arm_gdbarch_init): Update.
3306 * arc-tdep.c (arc_tdesc_init): Update.
3307 (arc_gdbarch_init): Update.
3308 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3309
3310 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3311
3312 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3313 for WOW64 processes.
3314
3315 2020-09-17 Tom Tromey <tom@tromey.com>
3316
3317 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3318
3319 2020-09-17 Tom Tromey <tom@tromey.com>
3320
3321 * value.c (preserve_values): Update.
3322 * python/py-type.c (save_objfile_types): Update.
3323 * guile/scm-type.c (save_objfile_types): Update.
3324 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3325 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3326 * compile/compile-object-run.c (compile_object_run): Update.
3327
3328 2020-09-17 Tom Tromey <tom@tromey.com>
3329
3330 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3331 Remove.
3332 <m_table>: Now htab_up.
3333 * typeprint.c (typedef_hash_table::recursively_update)
3334 (typedef_hash_table::add_template_parameters)
3335 (typedef_hash_table::typedef_hash_table): Update.
3336 (typedef_hash_table::~typedef_hash_table): Remove.
3337 (typedef_hash_table::typedef_hash_table)
3338 (typedef_hash_table::find_global_typedef)
3339 (typedef_hash_table::find_typedef): Update.
3340
3341 2020-09-17 Tom Tromey <tom@tromey.com>
3342
3343 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3344
3345 2020-09-17 Tom Tromey <tom@tromey.com>
3346
3347 * linespec.c (class decode_compound_collector)
3348 <~decode_compound_collector>: Remove.
3349 <m_unique_syms>: Now htab_up.
3350 (decode_compound_collector::operator ()): Update.
3351 (class symtab_collector) <~symtab_collector>: Remove.
3352 <m_symtab_table>: Now htab_up.
3353 (symtab_collector::operator ()): Update.
3354
3355 2020-09-17 Tom Tromey <tom@tromey.com>
3356
3357 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3358 (filename_seen_cache::clear): Update.
3359 (~filename_seen_cache): Remove.
3360 (filename_seen_cache::seen): Update.
3361 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3362 htab_up.
3363 <~filename_seen_cache>: Remove.
3364 <traverse>: Update.
3365
3366 2020-09-17 Tom Tromey <tom@tromey.com>
3367
3368 * completer.c (completion_tracker::discard_completions)
3369 (completion_tracker::~completion_tracker)
3370 (completion_tracker::maybe_add_completion)
3371 (completion_tracker::remove_completion)
3372 (completion_tracker::recompute_lowest_common_denominator)
3373 (completion_tracker::build_completion_result): Update.
3374 * completer.h (class completion_tracker) <have_completions>:
3375 Update.
3376 <m_entries_hash>: Now htab_up.
3377
3378 2020-09-17 Tom Tromey <tom@tromey.com>
3379
3380 * breakpoint.c (ambiguous_names_p): Use htab_up.
3381
3382 2020-09-17 Tom Tromey <tom@tromey.com>
3383
3384 * auto-load.c (struct auto_load_pspace_info)
3385 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3386 <loaded_script_files, loaded_script_texts>: Change type to
3387 htab_up.
3388 (~auto_load_pspace_info) Remove.
3389 (init_loaded_scripts_info, maybe_add_script_file)
3390 (maybe_add_script_text, auto_load_info_scripts): Update.
3391
3392 2020-09-17 Tom Tromey <tromey@adacore.com>
3393
3394 * c-exp.y (name_obstack): Now static.
3395
3396 2020-09-17 Chungyi Chi <demonic@csie.io>
3397
3398 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3399
3400 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3403 (add_solib_catchpoint): Likewise.
3404 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3405 to bool.
3406 (add_solib_catchpoint): Change int parameter/variable to bool.
3407 (catch_load_or_unload): Likewise.
3408 (init_catchpoint): Likewise.
3409 (create_fork_vfork_event_catchpoint): Likewise.
3410 (catch_fork_command_1): Likewise.
3411 (catch_exec_command_1): Likewise.
3412
3413 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3416 Change instance_flags to m_instance_flags.
3417
3418 2020-09-16 Tom Tromey <tromey@adacore.com>
3419
3420 PR gdb/26598:
3421 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3422
3423 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3424
3425 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3426 PL_FLAG_EXEC.
3427 (fbsd_nat_target::insert_exec_catchpoint)
3428 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3429 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3430 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3431
3432 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3433
3434 * configure.ac: Remove check for kinfo_getvmmap().
3435 * configure, config.in: Regenerate.
3436 * fbsd-nat.c (fbsd_read_mapping): Remove
3437 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3438 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3439 kinfo_get_vmmap() are always present.
3440
3441 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3442
3443 * fbsd-nat.c: Always include support for
3444 TARGET_OBJECT_SIGNAL_INFO.
3445
3446 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3447
3448 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3449 sysctl and remove procfs fallback.
3450
3451 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3452
3453 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3454 * fbsd-nat.h: Likewise.
3455
3456 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457
3458 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3459 argument.
3460
3461 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_language_data): Delete.
3464 (ada_language): Remove references to ada_language_data.
3465 * c-lang.c (c_language_data): Delete.
3466 (c_language): Remove references to c_language_data.
3467 (cplus_language_data): Delete.
3468 (cplus_language): Remove references to cplus_language_data.
3469 (asm_language_data): Delete.
3470 (asm_language): Remove references to asm_language_data.
3471 (minimal_language_data): Delete.
3472 (minimal_language): Remove references to minimal_language_data.
3473 * d-lang.c (d_language_data): Delete.
3474 (d_language): Remove references to d_language_data.
3475 * f-lang.c (f_language_data): Delete.
3476 (f_language): Remove references to f_language_data.
3477 * go-lang.c (go_language_data): Delete.
3478 (go_language): Remove references to go_language_data.
3479 * language.c (unknown_language_data): Delete.
3480 (unknown_language): Remove references to unknown_language_data.
3481 (auto_language_data): Delete.
3482 (auto_language): Remove references to auto_language_data.
3483 * language.h (language_data): Delete struct.
3484 (language_defn): No longer inherit from language_data.
3485 * m2-lang.c (m2_language_data): Delete.
3486 (m2_language): Remove references to m2_language_data.
3487 * objc-lang.c (objc_language_data): Delete.
3488 (objc_language): Remove references to objc_language_data.
3489 * opencl-lang.c (opencl_language_data): Delete.
3490 (opencl_language): Remove references to opencl_language_data.
3491 * p-lang.c (pascal_language_data): Delete.
3492 (pascal_language): Remove references to pascal_language_data.
3493 * rust-lang.c (rust_language_data): Delete.
3494 (rust_language): Remove references to rust_language_data.
3495
3496 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3499 initializer.
3500 (ada_language::opcode_print_table): New member function.
3501 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3502 (c_language::opcode_print_table): New member function.
3503 (cplus_language_data): Remove la_op_print_tab initializer.
3504 (cplus_language::opcode_print_table): New member function.
3505 (asm_language_data): Remove la_op_print_tab initializer.
3506 (asm_language::opcode_print_table): New member function.
3507 (minimal_language_data): Remove la_op_print_tab initializer.
3508 (minimal_language::opcode_print_table): New member function.
3509 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3510 (d_language::opcode_print_table): New member function.
3511 * expprint.c (print_subexp_standard): Update call to
3512 opcode_print_table.
3513 (op_string): Likewise.
3514 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3515 (f_language::opcode_print_table): New member function.
3516 * go-lang.c (go_language_data): Remove la_op_print_tab
3517 initializer.
3518 (go_language::opcode_print_table): New member function.
3519 * language.c (unknown_language_data): Remove la_op_print_tab
3520 initializer.
3521 (unknown_language::opcode_print_table): New member function.
3522 (auto_language_data): Remove la_op_print_tab initializer.
3523 (auto_language::opcode_print_table): New member function.
3524 * language.h (language_data): Remove la_op_print_tab field.
3525 (language_defn::opcode_print_table): Declare new member function.
3526 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3527 initializer.
3528 (m2_language::opcode_print_table): New member function.
3529 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3530 initializer.
3531 (objc_language::opcode_print_table): New member function.
3532 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3533 initializer.
3534 (opencl_language::opcode_print_table): New member function.
3535 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3536 initializer.
3537 (pascal_language::opcode_print_table): New member function.
3538 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3539 initializer.
3540 (rust_language::opcode_print_table): New member function.
3541
3542 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3545 (ada_language::expression_ops): New member function.
3546 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3547 (c_language::expression_ops): New member function.
3548 (cplus_language_data): Remove la_exp_desc initializer.
3549 (cplus_language::expression_ops): New member function.
3550 (asm_language_data): Remove la_exp_desc initializer.
3551 (asm_language::expression_ops): New member function.
3552 (minimal_language_data): Remove la_exp_desc initializer.
3553 (minimal_language::expression_ops): New member function.
3554 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3555 (d_language::expression_ops): New member function.
3556 * eval.c (evaluate_subexp): Update call to expression_ops.
3557 * expprint.c (print_subexp): Likewise.
3558 (op_name): Likewise.
3559 (dump_subexp_body): Likewise.
3560 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3561 (f_language::expression_ops): New member function.
3562 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3563 (go_language::expression_ops): New member function.
3564 * language.c (language_defn::expression_ops): New function.
3565 (unknown_language_data): Remove la_exp_desc initializer.
3566 (auto_language_data): Likewise.
3567 * language.h (language_data): Remove la_exp_desc field.
3568 (language_defn::expression_ops): Declare new member function.
3569 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3570 (m2_language::expression_ops): New member function.
3571 * objc-lang.c (objc_language_data): Remove la_exp_desc
3572 initializer.
3573 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3574 initializer.
3575 (opencl_language::expression_ops): New member function.
3576 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3577 * parse.c (operator_length): Update call to expression_ops.
3578 (exp_iterate): Likewise.
3579 * rust-lang.c (rust_language_data): Remove la_exp_desc
3580 initializer.
3581 (ruse_language::expression_ops): New member function.
3582
3583 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3584
3585 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3586 initializer.
3587 (ada_language::varobj_ops): New member function.
3588 * c-lang.c (c_language_data): Remove la_varobj_ops
3589 initializer.
3590 (cplus_language_data): Likewise.
3591 (cplus_language::varobj_ops): New member function.
3592 (asm_language_data): Remove la_varobj_ops initializer.
3593 (minimal_language_data): Likewise.
3594 * d-lang.c (d_language_data): Likewise.
3595 * f-lang.c (f_language_data): Likewise.
3596 * go-lang.c (go_language_data): Likewise.
3597 * language.c (language_defn::varobj_ops): New function.
3598 (unknown_language_data): Remove la_varobj_ops
3599 initializer.
3600 (auto_language_data): Likewise.
3601 * language.h (language_data): Remove la_varobj_ops field.
3602 (language_defn::varobj_ops): Declare new member function.
3603 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3604 * objc-lang.c (objc_language_data): Likewise.
3605 * opencl-lang.c (opencl_language_data): Likewise.
3606 * p-lang.c (pascal_language_data): Likewise.
3607 * rust-lang.c (rust_language_data): Likewise.
3608 * varobj.c (varobj_create): Update call to varobj_ops.
3609 * varobj.h (default_varobj_ops): Delete define.
3610
3611 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3612
3613 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3614 initializer.
3615 * c-lang.c (c_language_data): Likewise.
3616 (c_language::macro_expansion): New member function.
3617 (cplus_language_data): Likewise.
3618 (cplus_language::macro_expansion): New member function.
3619 (asm_language_data): Likewise.
3620 (asm_language::macro_expansion): New member function.
3621 (minimal_language_data): Likewise.
3622 (minimal_language::macro_expansion): New member function.
3623 * d-lang.c (d_language_data): Remove la_macro_expansion
3624 initializer.
3625 * f-lang.c (f_language_data): Likewise.
3626 * go-lang.c (go_language_data): Likewise.
3627 * language.c (unknown_language_data): Likewise.
3628 (auto_language_data): Likewise.
3629 * language.h (language_data): Remove la_macro_expansion field.
3630 (language_defn::macro_expansion): New member function.
3631 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3632 initializer.
3633 * objc-lang.c (objc_language_data): Likewise.
3634 (objc_language::macro_expansion): New member function.
3635 * opencl-lang.c (opencl_language_data): Likewise.
3636 (opencl_language::macro_expansion): New member function.
3637 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3638 initializer.
3639 * rust-lang.c (rust_language_data): Likewise.
3640 * symtab.c (default_collect_symbol_completion_matches_break_on):
3641 Update call to macro_expansion.
3642
3643 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (ada_language_data): Remove la_array_ordering
3646 initializer.
3647 * c-lang.c (c_language_data): Likewise.
3648 (cplus_language_data): Likewise.
3649 (asm_language_data): Likewise.
3650 (minimal_language_data): Likewise.
3651 * d-lang.c (d_language_data): Likewise.
3652 * dwarf2/read.c (read_array_order): Update for call to
3653 array_ordering.
3654 * f-lang.c (f_language_data): Remove la_array_ordering
3655 initializer.
3656 (f_language::array_ordering): New member function.
3657 * go-lang.c (go_language_data): Remove la_array_ordering
3658 initializer.
3659 * language.c (unknown_language_data): Likewise.
3660 (auto_language_data): Likewise.
3661 * language.h (language_data): Delete la_array_ordering field.
3662 (language_defn::array_ordering): New member function.
3663 * m2-lang.c (m2_language_data): Remove la_array_ordering
3664 initializer.
3665 * objc-lang.c (objc_language_data): Likewise.
3666 * opencl-lang.c (opencl_language_data): Likewise.
3667 * p-lang.c (pascal_language_data): Likewise.
3668 * rust-lang.c (rust_language_data): Likewise.
3669
3670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3673 initializer.
3674 * c-lang.c (c_language_data): Likewise.
3675 (cplus_language_data): Likewise.
3676 (asm_language_data): Likewise.
3677 (minimal_language_data): Likewise.
3678 * d-lang.c (d_language_data): Likewise.
3679 * f-lang.c (f_language_data): Likewise.
3680 (f_language::case_sensitivity): New member function.
3681 * go-lang.c (go_language_data): Remove la_case_sensitivity
3682 initializer.
3683 * language.c (enum case_mode): Moved here from language.h.
3684 (case_mode): Make static.
3685 (show_case_command): Update for case_sensitivity being a method.
3686 (set_case_command): Likewise.
3687 (set_range_case): Likewise.
3688 (unknown_language_data): Remove la_case_sensitivity initializer.
3689 (auto_language_data): Likewise.
3690 * language.h (case_mode): Delete, move enum declaration to
3691 language.c.
3692 (language_data): Delete la_case_sensitivity field.
3693 (language_defn::case_sensitivity): New member function.
3694 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3695 initializer.
3696 * objc-lang.c (objc_language_data): Likewise.
3697 * opencl-lang.c (opencl_language_data): Likewise.
3698 * p-lang.c (pascal_language_data): Likewise.
3699 * rust-lang.c (rust_language_data): Likewise.
3700
3701 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Remove la_range_check
3704 initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (cplus_language_data): Likewise.
3707 (asm_language_data): Likewise.
3708 (minimal_language_data): Likewise.
3709 * d-lang.c (d_language_data): Likewise.
3710 * f-lang.c (f_language_data): Likewise.
3711 (f_language::range_checking_on_by_default): New member function.
3712 * go-lang.c (go_language_data): Remove la_range_check initializer.
3713 * language.c (enum range_mode): Moved here from language.h.
3714 (range_mode): Made static.
3715 (show_range_command): Update to use
3716 range_checking_on_by_default.
3717 (set_range_command): Likewise.
3718 (set_range_case): Likewise.
3719 (unknown_language_data): Remove la_range_check initializer.
3720 (auto_language_data): Likewise.
3721 * language.h (range_mode): Delete. Enum definition moved to
3722 language.c.
3723 (language_data): Remove la_range_check field.
3724 (language_defn::range_checking_on_by_default): New member
3725 function.
3726 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3727 (m2_language::range_checking_on_by_default): New member function.
3728 * objc-lang.c (objc_language_data): Remove la_range_check
3729 initializer.
3730 * opencl-lang.c (opencl_language_data): Likewise.
3731 * p-lang.c (pascal_language_data): Likewise.
3732 (pascal_language::range_checking_on_by_default): New member
3733 function.
3734 * rust-lang.c (rust_language_data): Remove la_range_check
3735 initializer.
3736 (rust_language::range_checking_on_by_default): New member
3737 function.
3738
3739 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * dwarf2/read.c (dwarf2_physname): Remove special case for
3742 language_go.
3743 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3744 member function.
3745
3746 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * ada-lang.c (ada_language_data): Remove
3749 la_store_sym_names_in_linkage_form_p initializer.
3750 (ada_language::store_sym_names_in_linkage_form_p): New member
3751 function.
3752 * c-lang.c (c_language_data): Remove
3753 la_store_sym_names_in_linkage_form_p initializer.
3754 (c_language::store_sym_names_in_linkage_form_p): New member
3755 function.
3756 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3757 initializer.
3758 (asm_language_data): Likewise.
3759 (asm_language::store_sym_names_in_linkage_form_p): New member
3760 function.
3761 (minimal_language_data): Remove
3762 la_store_sym_names_in_linkage_form_p initializer.
3763 (minimal_language::store_sym_names_in_linkage_form_p): New member
3764 function.
3765 * d-lang.c (d_language_data): Remove
3766 la_store_sym_names_in_linkage_form_p initializer.
3767 * dwarf2/read.c (dwarf2_physname): Update call to
3768 store_sym_names_in_linkage_form_p.
3769 * f-lang.c (f_language_data): Remove
3770 la_store_sym_names_in_linkage_form_p initializer.
3771 * go-lang.c (go_language_data): Remove
3772 la_store_sym_names_in_linkage_form_p initializer.
3773 * language.c (unknown_language_data): Remove
3774 la_store_sym_names_in_linkage_form_p initializer.
3775 (unknown_language::store_sym_names_in_linkage_form_p): New member
3776 function.
3777 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3778 initializer.
3779 (auto_language::store_sym_names_in_linkage_form_p): New member
3780 function.
3781 * language.h (language_data): Remove
3782 la_store_sym_names_in_linkage_form_p member variable.
3783 (language_defn::store_sym_names_in_linkage_form_p): New member
3784 function.
3785 * m2-lang.c (m2_language_data): Remove
3786 la_store_sym_names_in_linkage_form_p initializer.
3787 * objc-lang.c (objc_language_data): Likewise.
3788 * opencl-lang.c (opencl_language_data): Likewise.
3789 * p-lang.c (pascal_language_data): Likewise.
3790 * rust-lang.c (rust_language_data): Likewise.
3791
3792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * ada-lang.c (ada_language_data): Remove string_lower_bound
3795 initializer.
3796 * c-lang.c (c_language_data): Likewise.
3797 (cplus_language_data): Likewise.
3798 (asm_language_data): Likewise.
3799 (minimal_language_data): Likewise.
3800 * d-lang.c (d_language_data): Likewise.
3801 * f-lang.c (f_language_data): Likewise.
3802 * go-lang.c (go_language_data): Likewise.
3803 * language.c (unknown_language_data): Likewise.
3804 (auto_language_data): Likewise.
3805 * language.h (language_data): Remove string_lower_bound field.
3806 (language_defn::string_lower_bound): New member function.
3807 * m2-lang.c (m2_language_data): Remove string_lower_bound
3808 initializer.
3809 (m2_language::string_lower_bound): New member function.
3810 * objc-lang.c (objc_language_data): Remove string_lower_bound
3811 initializer.
3812 * opencl-lang.c (opencl_language_data): Likewise.
3813 * p-lang.c (pascal_language_data): Likewise.
3814 * rust-lang.c (rust_language_data): Likewise.
3815 * valops.c (value_cstring): Update call to string_lower_bound.
3816 (value_string): Likewise.
3817 * value.c (allocate_repeated_value): Likewise.
3818
3819 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * valops.c (value_repeat): Fix incorrect argument name in comment.
3822
3823 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * ada-lang.c (ada_language_data): Remove c_style_arrays
3826 initializer.
3827 (ada_language::c_style_arrays_p): New member fuction.
3828 * c-lang.c (c_language_data): Remove c_style_arrays
3829 initializer.
3830 (cplus_language_data): Likewise.
3831 (asm_language_data): Likewise.
3832 (minimal_language_data): Likewise.
3833 * d-lang.c (d_language_data): Likewise.
3834 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3835 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3836 (f_language::c_style_arrays_p): New member function.
3837 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3838 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3839 * language.c (unknown_language_data): Remove c_style_arrays
3840 initializer.
3841 (auto_language_data): Likewise.
3842 * language.h (language_data): Remove c_style_arrays field.
3843 (language_defn::c_style_arrays_p): New member function.
3844 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3845 (m2_language::c_style_arrays_p): New member function.
3846 * objc-lang.c (objc_language_data): Remove c_style_arrays
3847 initializer.
3848 * opencl-lang.c (opencl_language_data): Likewise.
3849 * p-lang.c (pascal_language_data): Likewise.
3850 * rust-lang.c (rust_language_data): Likewise.
3851 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3852 and update local variable to a bool.
3853 * valops.c (value_cast): Update call to c_style_arrays_p.
3854 (value_array): Likewise.
3855 * value.c (coerce_array): Likewise.
3856
3857 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_language_data): Remove la_language initializer.
3860 * c-lang.c (c_language_data): Likewise.
3861 (cplus_language_data): Likewise.
3862 (asm_language_data): Likewise.
3863 (minimal_language_data): Likewise.
3864 * d-lang.c (d_language_data): Likewise.
3865 * f-lang.c (f_language_data): Likewise.
3866 * go-lang.c (go_language_data): Likewise.
3867 * language.c (unknown_language_data): Likewise.
3868 (auto_language_data): Likewise.
3869 * language.h (language_data): Remove la_language field.
3870 (language_defn::language_defn): Initialise la_language field.
3871 (language_defn::la_language): New member variable.
3872 * m2-lang.c (m2_language_data): Remove la_language field.
3873 * objc-lang.c (objc_language_data): Likewise.
3874 * opencl-lang.c (opencl_language_data): Likewise.
3875 * p-lang.c (pascal_language_data): Likewise.
3876 * rust-lang.c (rust_language_data): Likewise.
3877
3878 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3879
3880 * ada-lang.c (ada_extensions): Delete, moved into
3881 ada_language::filename_extensions.
3882 (ada_language_data): Remove la_filename_extensions initializer.
3883 (ada_language::filename_extensions): New member function.
3884 * c-lang.c (c_extensions): Delete, moved into
3885 c_language::filename_extensions.
3886 (c_language_data): Remove la_filename_extensions initializer.
3887 (c_language::filename_extensions): New member function.
3888 (cplus_extensions): Delete, moved into
3889 cplus_language::filename_extensions.
3890 (cplus_language_data): Remove la_filename_extensions initializer.
3891 (cplus_language::filename_extensions): New member function.
3892 (asm_extensions): Delete, moved into
3893 asm_language::filename_extensions.
3894 (asm_language_data): Remove la_filename_extensions initializer.
3895 (asm_language::filename_extensions): New member function.
3896 (minimal_language_data): Remove la_filename_extensions
3897 initializer.
3898 * d-lang.c (d_extensions): Delete, moved into
3899 d_language::filename_extensions.
3900 (d_language_data): Remove la_filename_extensions initializer.
3901 (d_language::filename_extensions): New member function.
3902 * f-lang.c (f_extensions): Delete, moved into
3903 f_language::filename_extensions.
3904 (f_language_data): Remove la_filename_extensions initializer.
3905 (f_language::filename_extensions): New member function.
3906 * go-lang.c (go_language_data): Remove la_filename_extensions
3907 initializer.
3908 * language.c (add_set_language_command): Update now that
3909 filename_extensions returns a vector.
3910 (unknown_language_data): Remove la_filename_extensions
3911 initializer.
3912 (auto_language_data): Likewise.
3913 * language.h (language_data): Remove la_filename_extensions field.
3914 (language_defn::filename_extensions): New member function.
3915 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3916 initializer.
3917 * objc-lang.c (objc_extensions): Delete, moved into
3918 objc_language::filename_extensions.
3919 (objc_language_data): Remove la_filename_extensions initializer.
3920 (objc_language::filename_extensions): New member function.
3921 * opencl-lang.c (opencl_language_data): Remove
3922 la_filename_extensions initializer.
3923 * p-lang.c (pascal_extensions): Delete, moved into
3924 pascal_language::filename_extensions.
3925 (pascal_language_data): Remove la_filename_extensions initializer.
3926 (pascal_language::filename_extensions): New member function.
3927 * rust-lang.c (rust_extensions): Delete, moved into
3928 rust_language::filename_extensions.
3929 (rust_language_data): Remove la_filename_extensions initializer.
3930 (rust_language::filename_extensions): New member function.
3931 * symfile.c (add_filename_language): Add new assert.
3932
3933 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * ada-lang.c (ada_language_data): Remove la_name and
3936 la_natural_name initializers.
3937 (ada_language::name): New member function.
3938 (ada_language::natural_name): New member function.
3939 * c-lang.c (c_language_data): Remove la_name and
3940 la_natural_name initializers.
3941 (c_language::name): New member function.
3942 (c_language::natural_name): New member function.
3943 (cplus_language_data): Remove la_name and
3944 la_natural_name initializers.
3945 (cplus_language::name): New member function.
3946 (cplus_language::natural_name): New member function.
3947 (asm_language_data): Remove la_name and
3948 la_natural_name initializers.
3949 (asm_language::name): New member function.
3950 (asm_language::natural_name): New member function.
3951 (minimal_language_data): Remove la_name and
3952 la_natural_name initializers.
3953 (minimal_language::name): New member function.
3954 (minimal_language::natural_name): New member function.
3955 * compile/compile.c (compile_to_object): Update call to
3956 lanugage_defn::name.
3957 * d-lang.c (d_language_data): Remove la_name and
3958 la_natural_name initializers.
3959 (d_language::name): New member function.
3960 (d_language::natural_name): New member function.
3961 * expprint.c (print_subexp_standard): Update call to
3962 language_defn::name.
3963 (dump_raw_expression): Likewise
3964 (dump_prefix_expression): Likewise.
3965 * f-lang.c (f_language_data): Remove la_name and
3966 la_natural_name initializers.
3967 (f_language::name): New member function.
3968 (f_language::natural_name): New member function.
3969 * go-lang.c (go_language_data): Remove la_name and
3970 la_natural_name initializers.
3971 (go_language::name): New member function.
3972 (go_language::natural_name): New member function.
3973 * language.c (show_language_command): Update call to
3974 language_defn::name.
3975 (set_language_command): Likewise.
3976 (language_enum): Likewise.
3977 (language_str): Likewise.
3978 (add_set_language_command): Likewise, use
3979 language_defn::natural_name in the doc string.
3980 (unknown_language_data): Remove la_name and
3981 la_natural_name initializers.
3982 (unknown_language::name): New member function.
3983 (unknown_language::natural_name): New member function.
3984 (auto_language_data): Remove la_name and
3985 la_natural_name initializers.
3986 (auto_language::name): New member function.
3987 (auto_language::natural_name): New member function.
3988 (language_lookup_primitive_type_as_symbol): Update call to
3989 language_defn::name.
3990 * language.h (language_data): Remove la_name and la_natural_name
3991 member variables.
3992 (language_defn::name): New member function.
3993 (language_defn::natural_name): New member function.
3994 * m2-lang.c (m2_language_data): Remove la_name and
3995 la_natural_name initializers.
3996 (m2_language::name): New member function.
3997 (m2_language::natural_name): New member function.
3998 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3999 language_defn::natural_name.
4000 * objc-lang.c (objc_language_data): Remove la_name and
4001 la_natural_name initializers.
4002 (objc_language::name): New member function.
4003 (objc_language::natural_name): New member function.
4004 * opencl-lang.c (opencl_language_data): Remove la_name and
4005 la_natural_name initializers.
4006 (opencl_language::name): New member function.
4007 (opencl_language::natural_name): New member function.
4008 * p-lang.c (pascal_language_data): Remove la_name and
4009 la_natural_name initializers.
4010 (pascal_language::name): New member function.
4011 (pascal_language::natural_name): New member function.
4012 * rust-lang.c (rust_language_data): Remove la_name and
4013 la_natural_name initializers.
4014 (rust_language::name): New member function.
4015 (rust_language::natural_name): New member function.
4016 * symtab.c (lookup_language_this): Update call to
4017 language_defn::name.
4018
4019 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * ada-lang.c (ada_language_data): Remove la_name_of_this
4022 initializer.
4023 * ax-gdb.c (gen_expr): Update call to name_of_this.
4024 * c-exp.y (classify_name): Likewise.
4025 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4026 (cplus_language_data): Likewise.
4027 (cplus_language::name_of_this): New member function.
4028 (asm_language_data): Remove la_name_of_this initializer.
4029 (minimal_language_data): Likewise.
4030 * d-lang.c (d_language_data): Likewise.
4031 (d_language::name_of_this): New member function.
4032 * expprint.c (print_subexp_standard): Update call to name_of_this.
4033 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4034 * go-lang.c (go_language_data): Likewise.
4035 * language.c (unknown_language_data): Likewise.
4036 (unknown_language::name_of_this): New member function.
4037 (auto_language_data): Remove la_name_of_this initializer.
4038 (auto_language::name_of_this): New member function.
4039 * language.h (language_data): Delete la_name_of_this member
4040 variable.
4041 (language_defn::name_of_this): New member function.
4042 * m2-lang.c (m2_language_data): Remove la_name_of_this
4043 initializer.
4044 * objc-lang.c (objc_language_data): Likewise.
4045 (objc_language::name_of_this): New member function.
4046 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4047 initializer.
4048 * p-lang.c (pascal_language_data): Likewise.
4049 (pascal_language::name_of_this): New member function.
4050 * rust-lang.c (rust_language_data): Remove la_name_of_this
4051 initializer.
4052 * symtab.c (lookup_language_this): Update call to name_of_this.
4053 (lookup_symbol_aux): Likewise.
4054 * valops.c (value_of_this): Likewise.
4055
4056 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4057
4058 * ada-lang.c (ada_language_data): Remove
4059 la_struct_too_deep_ellipsis initializer.
4060 (ada_language::struct_too_deep_ellipsis): New member function.
4061 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4062 initializer.
4063 (cplus_language_data): Likewise.
4064 (asm_language_data): Likewise.
4065 (minimal_language_data): Likewise.
4066 * cp-valprint.c (cp_print_value): Update call to
4067 struct_too_deep_ellipsis.
4068 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4069 initializer.
4070 * f-lang.c (f_language_data): Likewise.
4071 (f_language::struct_too_deep_ellipsis): New member function.
4072 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4073 initializer.
4074 * language.c (unknown_language_data): Likewise.
4075 (auto_language_data): Likewise.
4076 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4077 member variable.
4078 (language_defn::struct_too_deep_ellipsis): New member function.
4079 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4080 initializer.Q
4081 * objc-lang.c (objc_language_data): Likewise.
4082 * opencl-lang.c (opencl_language_data): Likewise.
4083 * p-lang.c (pascal_language_data): Likewise.
4084 * rust-lang.c (rust_language_data): Likewise.
4085 * valprint.c (val_print_check_max_depth): Update call to
4086 struct_too_deep_ellipsis.
4087
4088 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4089
4090 * MAINTAINERS (Write After Approval): Add myself.
4091
4092 2020-09-15 Tom Tromey <tom@tromey.com>
4093
4094 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4095 Remove.
4096
4097 2020-09-15 Tom Tromey <tom@tromey.com>
4098
4099 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4100 and TYPE_CODE_METHODPTR cases.
4101 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4102 (c_value_print_inner): Update.
4103 * valprint.c (generic_value_print_memberptr): New function, from
4104 c_value_print_memberptr.
4105 (generic_value_print): Use it. Call cplus_print_method_ptr.
4106
4107 2020-09-15 Tom Tromey <tromey@adacore.com>
4108
4109 * python/python-internal.h (PyInt_FromLong): Remove define.
4110 * python/py-value.c (convert_value_from_python): Use
4111 gdb_py_object_from_longest.
4112 * python/py-type.c (typy_get_code): Use
4113 gdb_py_object_from_longest.
4114 * python/py-symtab.c (salpy_get_line): Use
4115 gdb_py_object_from_longest.
4116 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4117 gdb_py_object_from_longest.
4118 * python/py-record.c (recpy_gap_reason_code): Use
4119 gdb_py_object_from_longest.
4120 * python/py-record-btrace.c (recpy_bt_insn_size)
4121 (recpy_bt_func_level, btpy_list_count): Use
4122 gdb_py_object_from_longest.
4123 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4124 gdb_py_object_from_longest. Fix error handling.
4125 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4126 gdb_py_object_from_longest.
4127 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4128 gdb_py_object_from_longest.
4129 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4130 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4131 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4132
4133 2020-09-15 Tom Tromey <tromey@adacore.com>
4134
4135 * python/python.c (gdbpy_parameter_value): Use
4136 gdb_py_object_from_ulongest.
4137
4138 2020-09-15 Tom Tromey <tromey@adacore.com>
4139
4140 * python/py-infevents.c (create_register_changed_event_object):
4141 Use gdb_py_object_from_longest.
4142 * python/py-exitedevent.c (create_exited_event_object): Use
4143 gdb_py_object_from_longest.
4144
4145 2020-09-15 Tom Tromey <tromey@adacore.com>
4146
4147 * python/python.c (gdbpy_parameter_value): Use
4148 gdb_py_object_from_longest.
4149 * python/py-type.c (convert_field, typy_range): Use
4150 gdb_py_object_from_longest.
4151 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4152 gdb_py_object_from_longest.
4153 * python/py-lazy-string.c (stpy_get_length): Use
4154 gdb_py_object_from_longest.
4155 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4156 gdb_py_object_from_longest.
4157 * python/py-infevents.c (create_memory_changed_event_object): Use
4158 gdb_py_object_from_longest.
4159 * python/py-inferior.c (infpy_get_num): Use
4160 gdb_py_object_from_longest.
4161 (infpy_get_pid): Likewise.
4162
4163 2020-09-15 Tom Tromey <tromey@adacore.com>
4164
4165 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4166 defines.
4167 * python/py-value.c (valpy_long): Use
4168 gdb_py_object_from_ulongest.
4169 * python/py-symtab.c (salpy_get_pc): Use
4170 gdb_py_object_from_ulongest.
4171 (salpy_get_last): Likewise.
4172 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4173 gdb_py_object_from_ulongest.
4174 * python/py-lazy-string.c (stpy_get_address): Use
4175 gdb_py_object_from_ulongest.
4176 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4177 * python/py-arch.c (archpy_disassemble): Use
4178 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4179 error handling.
4180
4181 2020-09-15 Tom Tromey <tromey@adacore.com>
4182
4183 * python/python-internal.h (gdb_py_long_from_longest): Remove
4184 defines.
4185 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4186 * python/py-type.c (convert_field, typy_get_sizeof): Use
4187 gdb_py_object_from_longest.
4188 * python/py-record-btrace.c (btpy_list_index): Use
4189 gdb_py_object_from_longest.
4190
4191 2020-09-15 Tom Tromey <tromey@adacore.com>
4192
4193 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4194 * python/py-record.c (recpy_element_number): Use
4195 gdb_py_object_from_longest.
4196 (recpy_gap_number): Likewise.
4197
4198 2020-09-15 Tom Tromey <tromey@adacore.com>
4199
4200 * top.c (ui::ui): Update.
4201 (highest_ui_num): Remove.
4202 * top.h (struct ui) <num>: Remove.
4203
4204 2020-09-15 Tom Tromey <tromey@adacore.com>
4205
4206 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4207 * ui-style.c (ansi_regex_text): Now array.
4208 * rust-exp.y (number_regex_text): Now array.
4209 * linespec.c (linespec_quote_characters): Now array.
4210 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4211 Now arrays.
4212
4213 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4214
4215 * debuginfod-support.c (debuginfod_client_deleter): New.
4216 (debuginfod_client_up): New.
4217 (debuginfod_init): Return debuginfod_client_up.
4218 (debuginfod_source_query): Adjust.
4219 (debuginfod_debuginfo_query): Adjust.
4220
4221 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * debuginfod-support.c (debuginfod_source_query): Use
4224 make_unique_xstrdup.
4225
4226 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4229 with `type::instance_flags`.
4230
4231 2020-09-14 Michael Mullin <masmullin@gmail.com>
4232
4233 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4234 Remove baton parameter.
4235
4236 2020-09-14 Pedro Alves <pedro@palves.net>
4237
4238 * Makefile.in (SELFTESTS_SRCS): Add
4239 unittests/enum-flags-selftests.c.
4240 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4241 btrace_function_flags instead of enum btrace_function_flag.
4242 * compile/compile-c-types.c (convert_qualified): Use
4243 enum_flags::raw.
4244 * compile/compile-cplus-symbols.c (convert_one_symbol)
4245 (convert_symbol_bmsym):
4246 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4247 (compile_cplus_convert_struct_or_union_methods)
4248 (compile_cplus_instance::convert_qualified_base):
4249 * go-exp.y (parse_string_or_char): Add cast to int.
4250 * unittests/enum-flags-selftests.c: New file.
4251 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4252 type to btrace_thread_flags from btrace_thread_flag.
4253 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4254 local's type to btrace_thread_flags from btrace_thread_flag. Add
4255 cast in DEBUG call.
4256
4257 2020-09-14 Pedro Alves <pedro@palves.net>
4258
4259 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4260 * gdbtypes.c (address_space_name_to_int): Rename to ...
4261 (address_space_name_to_type_instance_flags): ... this.
4262 (address_space_int_to_name): Rename to ...
4263 (address_space_type_instance_flags_to_name): ... this.
4264 * gdbtypes.h (address_space_name_to_int): Rename to ...
4265 (address_space_name_to_type_instance_flags): ... this.
4266 (address_space_int_to_name): Rename to ...
4267 (address_space_type_instance_flags_to_name): ... this.
4268 * type-stack.c (type_stack::insert): Adjust to rename.
4269 * type-stack.h (type_stack::insert): Likewise.
4270
4271 2020-09-14 Pedro Alves <pedro@palves.net>
4272 Andrew Burgess <andrew.burgess@embecosm.com>
4273
4274 * avr-tdep.c (avr_address_class_type_flags): Return
4275 type_instance_flags.
4276 (avr_address_class_type_flags_to_name): Take a
4277 type_instance_flags.
4278 (avr_address_class_name_to_type_flags): Return bool and take a
4279 type_instance_flags.
4280 * d-lang.c (build_d_types): Use type::set_instance_flags.
4281 * ft32-tdep.c (ft32_address_class_type_flags): Return
4282 type_instance_flags.
4283 (ft32_address_class_type_flags_to_name): Take a
4284 type_instance_flags.
4285 (ft32_address_class_name_to_type_flags): Return bool and take a
4286 type_instance_flags.
4287 (ft32_gdbarch_init): Use type::set_instance_flags.
4288 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4289 * gdbarch.h, gdbarch.c: Regenerate.
4290 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4291 (address_class_name_to_type_flags): Use type_instance_flags and
4292 bool.
4293 * gdbtypes.c (address_space_name_to_int)
4294 (address_space_int_to_name, make_qualified_type): Use
4295 type_instance_flags.
4296 (make_qualified_type): Use type_instance_flags and
4297 type::set_instance_flags.
4298 (make_type_with_address_space, make_cv_type, make_vector_type)
4299 (check_typedef): Use type_instance_flags.
4300 (recursive_dump_type): Cast type_instance_flags to unsigned for
4301 printing.
4302 (copy_type_recursive): Use type::set_instance_flags.
4303 (gdbtypes_post_init): Use type::set_instance_flags.
4304 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4305 <m_instance_flags>: ... this.
4306 <instance_flags, set_instance_flags>: New methods.
4307 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4308 (SET_TYPE_INSTANCE_FLAGS): New.
4309 (address_space_name_to_int, address_space_int_to_name)
4310 (make_type_with_address_space): Pass flags using
4311 type_instance_flags instead of int.
4312 * stabsread.c (cleanup_undefined_types_noname): Use
4313 type::set_instance_flags.
4314 * s390-tdep.c (s390_address_class_type_flags): Return
4315 type_instance_flags.
4316 (s390_address_class_type_flags_to_name): Take a
4317 type_instance_flags.
4318 (s390_address_class_name_to_type_flags): Return bool and take a
4319 type_instance_flags.
4320 * type-stack.c (type_stack::follow_types): Use
4321 type_instance_flags.
4322 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4323
4324 2020-09-14 Tom Tromey <tromey@adacore.com>
4325
4326 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4327 * x86-tdep.c (x86_is_thunk_register_name)
4328 (x86_in_indirect_branch_thunk): Update.
4329 * sparc64-tdep.c (sparc64_fpu_register_names)
4330 (sparc64_cp0_register_names, sparc64_register_names)
4331 (sparc64_pseudo_register_names): Now const.
4332 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4333 cp0_registers_num>: Now const.
4334 * sparc-tdep.c (sparc_core_register_names)
4335 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4336 (sparc32_pseudo_register_names): Now const.
4337 (validate_tdesc_registers): Update.
4338 * rust-lang.c (rust_extensions): Now const.
4339 * p-lang.c (p_extensions): Now const.
4340 * objc-lang.c (objc_extensions): Now const.
4341 * nto-tdep.c (nto_thread_state_str): Now const.
4342 * moxie-tdep.c (moxie_register_names): Now const.
4343 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4344 Now const.
4345 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4346 (mips_linux_reg_names): Now const.
4347 (mips_gdbarch_init): Update.
4348 * microblaze-tdep.c (microblaze_register_names): Now const.
4349 * m68k-tdep.c (m68k_register_names): Now const.
4350 * m32r-tdep.c (m32r_register_names): Now const.
4351 * ia64-tdep.c (ia64_register_names): Now const.
4352 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4353 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4354 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4355 ymm_avx512_register_names, pkeys_register_names>: Now const.
4356 * i386-tdep.c (i386_register_names, i386_zmm_names)
4357 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4358 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4359 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4360 * f-lang.c (f_extensions): Now const.
4361 * d-lang.c (d_extensions): Now const.
4362 * csky-tdep.c (csky_register_names): Now const.
4363 * charset.c (default_charset_names, charset_enum): Now const.
4364 (_initialize_charset): Update.
4365 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4366 const.
4367 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4368 (bsd_uthread_solib_loaded): Update.
4369 (bsd_uthread_state): Now const.
4370 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4371 (amd64_ymm_avx512_names, amd64_ymmh_names)
4372 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4373 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4374 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4375 (amd64_dword_names): Now const.
4376 * agent.c (can_use_agent_enum): Now const.
4377 * ada-tasks.c (task_states, long_task_states): Now const.
4378 * ada-lang.c (known_runtime_file_name_patterns)
4379 (known_auxiliary_function_name_patterns, attribute_names)
4380 (standard_exc, ada_extensions): Now const.
4381
4382 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4383
4384 * bcache.h (struct bcache) <bcache>: Remove constructor.
4385 <m_hash_function, m_compare_function>: Remove.
4386 <~bcache>: Make virtual.
4387 <compare>: Remove static method, introduce virtual method.
4388 <default_hash>: Remove.
4389 <hash>: New virtual method.
4390 * bcache.c (bcache::expand_hash_table): Update.
4391 (bcache::insert): Update.
4392 (bcache::hash): New.
4393 (bcache::compare): Update comment and parameter names.
4394 * gdbtypes.c (types_deeply_equal): Update.
4395 * psymtab.h (struct psymbol_bcache): New struct.
4396 (class psymtab_storage) <psymtab_storage>: Make default.
4397 <psymbol_cache>: Change type to psymbol_bcache.
4398 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4399 (psymbol_hash): Change to...
4400 (psymbol_bcache::hash): ... this.
4401 (psymbol_compare): Change to...
4402 (psymbol_bcache::compare): ... this.
4403
4404 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4407 checking for initial lwp.
4408
4409 2020-09-14 Tom Tromey <tromey@adacore.com>
4410
4411 * m68k-tdep.c (m68k_extract_return_value): Use
4412 pointer_result_regnum.
4413 (m68k_store_return_value): Likewise.
4414 (m68k_reg_struct_return_p): Handle vectors and arrays.
4415 (m68k_return_value): Handle arrays.
4416 (m68k_svr4_return_value): Fix single-element aggregate handling.
4417 Handle long double. Adjust for embedded ABI.
4418 (m68k_svr4_init_abi): Set pointer_result_regnum.
4419 (m68k_embedded_init_abi): New function.
4420 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4421 (m68k_osabi_sniffer): New function.
4422 (_initialize_m68k_tdep): Register osabi sniffer.
4423 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4424 member.
4425
4426 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4427
4428 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4429 with gdb::unique_xmalloc_ptr<char>.
4430
4431 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4432
4433 * xml-support.h (xml_fetch_another): Change type to be a
4434 function_view.
4435 (xml_process_xincludes): Remove baton parameter.
4436 (xml_fetch_content_from_file): Change baton parameter to
4437 dirname.
4438 * xml-support.c (struct xinclude_parsing_data)
4439 <xinclude_parsing_data>: Remove baton parameter.
4440 <fetcher_baton>: Remove.
4441 (xinclude_start_include): Adjust.
4442 (xml_process_xincludes): Adjust.
4443 (xml_fetch_content_from_file): Replace baton parameter with
4444 dirname.
4445 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4446 (xml_init_syscalls_info): Use a lambda.
4447 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4448 (file_read_description_xml): Use a lambda.
4449 (fetch_available_features_from_target): Change baton parameter
4450 to target_ops.
4451 (target_read_description_xml): Use a lambda.
4452 (target_fetch_description_xml): Use a lambda.
4453 (string_read_description_xml): Update.
4454
4455 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4456
4457 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4458 uses with type::endianity_is_not_default.
4459
4460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (struct type) <endianity_is_not_default,
4463 set_endianity_is_not_default>: New methods.
4464 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4465 type::endianity_is_not_default, change all write call sites to
4466 use type::set_endianity_is_not_default.
4467
4468 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4471 uses with type::is_fixed_instance.
4472
4473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * gdbtypes.h (struct type) <is_fixed_instance,
4476 set_is_fixed_instance>: New methods.
4477 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4478 write call sites to use type::set_is_fixed_instance.
4479
4480 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4483 uses with type::is_gnu_ifunc.
4484
4485 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4488 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4489 use type::set_is_gnu_ifunc.
4490
4491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4494 uses with type::stub_is_supported.
4495
4496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4499 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4500 use type::set_stub_is_supported.
4501
4502 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4505 uses with type::is_vector.
4506
4507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4510 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4511 use type::set_is_vector.
4512
4513 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4516 uses with type::has_varargs.
4517
4518 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4521 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4522 use type::set_has_varargs.
4523
4524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4527 uses with type::is_prototyped.
4528
4529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4532 New methods.
4533 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4534 call sites to use type::set_is_prototyped.
4535
4536 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4539 uses with type::target_is_stub.
4540
4541 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4544 New methods.
4545 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4546 sites to use type::set_target_is_stub.
4547
4548 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * gdbtypes.h (TYPE_STUB): Remove, replace all
4551 uses with type::is_stub.
4552
4553 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4556 (TYPE_STUB): Use type::is_stub, change all write call sites to
4557 use type::set_is_stub.
4558
4559 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4562 type::has_no_signedness.
4563
4564 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (struct type) <has_no_signedness,
4567 set_has_no_signedness>: New methods.
4568 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4569 call sites to use type::set_has_no_signedness.
4570
4571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4574 type::is_unsigned.
4575
4576 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4579 methods.
4580 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4581 sites to use type::set_is_unsigned.
4582
4583 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4584 Adam Renquinha <arenquinha@cimeq.qc.ca>
4585
4586 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4587 pointer and stack frame offset when unwinding.
4588
4589 2020-09-13 Pedro Alves <pedro@palves.net>
4590
4591 * NEWS: Document "-break-insert --qualified".
4592 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4593
4594 2020-09-13 Pedro Alves <pedro@palves.net>
4595
4596 * linespec.c (classify_mtype, compare_msyms): Delete.
4597 (search_minsyms_for_name): Remove classification logic. Instead
4598 filter out trampoline symbols if we also found an external
4599 function of the same name.
4600
4601 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4602
4603 * NEWS: Create a new section for the next release branch.
4604 Rename the section of the current branch, now that it has
4605 been cut.
4606
4607 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4608
4609 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4610 * version.in: Bump version to 11.0.50.DATE-git.
4611
4612 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4613
4614 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4615
4616 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4617 Felix Willgerodt <Felix.Willgerodt@intel.com>
4618
4619 * gdbarch.sh: Added bfloat16 type.
4620 * gdbarch.c: Regenerated.
4621 * gdbarch.h: Regenerated.
4622 * gdbtypes.c (floatformats_bfloat16): New struct.
4623 (gdbtypes_post_init): Add builtin_bfloat16.
4624 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4625 (floatformats_bfloat16): New struct.
4626 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4627 (i386_ymm_type): Add field "v16_bfloat16"
4628 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4629 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4630 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4631 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4632 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4633 * features/i386/64bit-avx512.c: Regenerated.
4634 * features/i386/64bit-sse.xml: Add bfloat16 type.
4635 * features/i386/64bit-sse.c: Regenerated.
4636
4637 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4638
4639 * i386-tdep.c (i386_zmm_type): Fix field names.
4640 (i386_ymm_type): Fix field names.
4641
4642 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4643
4644 * breakpoint.c: Fix typo in the help message of the
4645 "set breakpoint condition-evaluation" command.
4646
4647 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4648
4649 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4650 * (nbsd_nat_target::pid_to_exec_file)
4651 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4652 (nbsd_nat_target::post_startup_inferior)
4653 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4654 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4655 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4656 * (nbsd_thread_lister): Remove.
4657
4658 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4659
4660 * fork-inferior.c (startup_inferior): Avoid double free.
4661
4662 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4663
4664 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4665 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4666
4667 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4668
4669 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4670 * netbsd-nat.c: Include <sys/ptrace.h>.
4671 * (netbsd_nat::enable_proc_events): Add.
4672
4673 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4674
4675 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4676 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4677 (netbsd_nat::for_each_thread): Add.
4678 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4679 "gdbsupport/common-debug.h".
4680 * (netbsd_nat::netbsd_thread_lister)
4681 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4682 (netbsd_nat::for_each_thread): Add.
4683
4684 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4685
4686 * netbsd-nat.h: Include <unistd.h>.
4687 * (netbsd_nat::pid_to_exec_file): Add.
4688 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4689 * (netbsd_nat::pid_to_exec_file) Add.
4690
4691 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4692
4693 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4694
4695 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4696
4697 * netbsd-nat.h: New file.
4698 * netbsd-nat.c: Likewise.
4699
4700 2020-09-09 Tom Tromey <tromey@adacore.com>
4701
4702 * ada-lang.c (remove_extra_symbols): Do not increment when
4703 removing an element
4704
4705 2020-09-08 Tom Tromey <tromey@adacore.com>
4706
4707 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4708
4709 2020-09-08 Tom Tromey <tromey@adacore.com>
4710
4711 PR win32/25302:
4712 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4713 (gdb_bfd_init_data): New function.
4714 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4715
4716 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4717
4718 * infrun.c (fetch_inferior_event): Use
4719 `switch_to_target_no_thread` to switch the target.
4720
4721 2020-09-06 Tom Tromey <tom@tromey.com>
4722
4723 * symfile.h (dwarf2_free_objfile): Don't declare.
4724
4725 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4726
4727 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4728 to match 16 byte real/complex type generated by Flang compiler.
4729
4730 2020-09-03 Tom de Vries <tdevries@suse.de>
4731
4732 PR breakpoint/26546
4733 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4734 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4735
4736 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * maint.c (index_digits): New function.
4739 (struct maint_print_section_data): Remove.
4740 (print_bfd_section_info): Remove print_data parameter, add arg
4741 and index_digits.
4742 (print_objfile_section_info): Likewise.
4743 (print_bfd_section_info_maybe_relocated): Likewise (plus
4744 objfile).
4745 (maintenance_info_sections): Adjust calls.
4746
4747 2020-09-02 Tom Tromey <tromey@adacore.com>
4748
4749 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4750 for null pointers.
4751 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4752
4753 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * bcache.h (struct bcache) <insert>: Change type of `added` to
4756 pointer to bool.
4757 * bcache.c (bcache::insert): Likewise.
4758 * gdbtypes.c (check_types_worklist): Adjust.
4759 * psymtab.c (add_psymbol_to_bcache): Adjust.
4760
4761 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4762
4763 * corelow.c (unordered_set): Include.
4764 (class core_target): Add field 'm_core_unavailable_mappings'.
4765 (core_target::build_file_mappings): Print only one warning
4766 per inaccessible file. Add unavailable/broken mappings
4767 to m_core_unavailable_mappings.
4768 (core_target::xfer_partial): Call...
4769 (core_target::xfer_memory_via_mappings): New method.
4770
4771 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4772
4773 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4774 type to bool.
4775
4776 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4777
4778 * dwarf2/read.c (struct field_info): Fix indentation.
4779
4780 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4783 ordering in comment.
4784 * frame.c (frame_id_eq): Fix indentation.
4785
4786 2020-08-31 Scott Linder <scott@scottlinder.com>
4787 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4790 inline frame ids in outer frame.
4791
4792 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4795 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4796 (outer_frame_id): Use FID_STACK_OUTER instead of
4797 FID_STACK_INVALID.
4798 (frame_id_p): Don't check for outer_frame_id.
4799
4800 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4803 regnum/frame in value. Call allocate_value_lazy.
4804 * frame.c (frame_unwind_register_value): Use
4805 val_print_not_saved.
4806
4807 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4810
4811 2020-08-29 Pedro Alves <pedro@palves.net>
4812
4813 * progspace.c (print_program_space): Use all_inferiors. Switch to
4814 the inferior before calling target_pid_to_str.
4815
4816 2020-08-28 Tom Tromey <tom@tromey.com>
4817
4818 * xcoffread.c (xcoff_end_psymtab): Update comment.
4819 * dbxread.c (dbx_end_psymtab): Update comment.
4820
4821 2020-08-28 Tom de Vries <tdevries@suse.de>
4822
4823 PR breakpoint/26544
4824 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4825 event_location.
4826 (create_breakpoint): Same.
4827 (base_breakpoint_decode_location): Same.
4828 (bkpt_create_sals_from_location): Same.
4829 (bkpt_decode_location): Same.
4830 (bkpt_probe_create_sals_from_location): Same.
4831 (bkpt_probe_decode_location): Same.
4832 (tracepoint_create_sals_from_location): Same.
4833 (tracepoint_decode_location): Same.
4834 (tracepoint_probe_decode_location): Same.
4835 (strace_marker_create_sals_from_location): Same.
4836 (strace_marker_decode_location): Same.
4837 (create_sals_from_location_default): Same.
4838 (decode_location_default): Same.
4839 * breakpoint.h (struct breakpoint_ops): Same.
4840 (create_breakpoint): Same.
4841 * linespec.h (decode_line_full): Same.
4842 * linespec.c (decode_line_full): Same. Throw error if
4843 result.size () == 0.
4844
4845 2020-08-27 Pedro Alves <pedro@palves.net>
4846
4847 PR gdb/26524
4848 * breakpoint.c (until_break_fsm) <location_breakpoint,
4849 caller_breakpoint>: Delete fields.
4850 <breakpoints>: New field.
4851 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4852 two individual breakpoints.
4853 (until_break_fsm::should_stop): Loop over breakpoints in the
4854 breakpoint vector.
4855 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4856 vector.
4857 (until_break_command): Handle location expanding into multiple
4858 sals.
4859
4860 2020-08-27 Pedro Alves <pedro@palves.net>
4861
4862 PR gdb/26523
4863 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4864 bp_until breakpoints user-specified locations. Update intro
4865 comment.
4866
4867 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4870 gdb_bfd_sections): New.
4871 * maint.c (print_bfd_section_info): Change param type to
4872 maint_print_section_data.
4873 (print_objfile_section_info): Likewise.
4874 (print_bfd_section_info_maybe_relocated): Likewise.
4875 (maintenance_info_sections): Use gdb_bfd_sections.
4876
4877 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4878
4879 * MAINTAINERS: Add ARC target and maintainer.
4880
4881 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4882
4883 * configure.tgt: ARC support for GNU/Linux.
4884 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4885 * arc-linux-tdep.c: New file.
4886 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4887 * arc-tdep.c (arc_write_pc): Use it.
4888
4889 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4890
4891 * arc-tdep.c (arc_check_for_hardware_loop): New.
4892 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4893
4894 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4895
4896 * arc-tdep.h: Include "gdbarch.h".
4897
4898 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4899
4900 * arch/arc.h
4901 (arc_gdbarch_features): New class to stir the selection of target XML.
4902 (arc_create_target_description): Use FEATURES to choose XML target.
4903 (arc_lookup_target_description): Use arc_create_target_description
4904 to create _new_ target descriptions or return the already created
4905 ones if the FEATURES is the same.
4906 * arch/arc.c: Implementation of prototypes described above.
4907 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4908 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4909 * arc-tdep.c (*_feature_name): Make feature names consistent.
4910 (arc_register_feature): A new struct to hold information about
4911 registers of a particular target/feature.
4912 (arc_check_tdesc_feature): Check if XML provides registers in
4913 compliance with ARC_REGISTER_FEATURE structs.
4914 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4915 (determine_*_reg_feature_set): Which feature name to look for.
4916 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4917 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4918 to expected ISA enums to be used in arc_gdbarch_features structs.
4919 * features/Makefile (FEATURE_XMLFILES): Add new files.
4920 * gdb/features/arc/v1-aux.c: New file.
4921 * gdb/features/arc/v1-aux.xml: Likewise.
4922 * gdb/features/arc/v1-core.c: Likewise.
4923 * gdb/features/arc/v1-core.xml: Likewise.
4924 * gdb/features/arc/v2-aux.c: Likewise.
4925 * gdb/features/arc/v2-aux.xml: Likewise.
4926 * gdb/features/arc/v2-core.c: Likewise.
4927 * gdb/features/arc/v2-core.xml: Likewise.
4928 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4929
4930 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4931 Andrew Burgess <andrew.burgess@embecosm.com>
4932
4933 PR m2/26372
4934 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4935 an assert. Remove single element array indexing pattern as the
4936 MULTI_SUBSCRIPT support will handle this case too.
4937
4938 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4939
4940 * value.h (valprint_check_validity): Move declaration from
4941 here...
4942 * valprint.h (valprint_check_validity): ... to here.
4943
4944 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * debug.h: New file.
4947 * debug.c (debug_prefixed_vprintf): New function.
4948 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4949 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4950
4951 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * infrun.h (infrun_debug_printf_1): New function declaration.
4954 (infrun_debug_printf): New macro.
4955 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4956 throughout.
4957 (infrun_debug_printf): New function.
4958 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4959 (handle_jit_event): Likewise.
4960
4961 2020-08-21 Mark Wielaard <mark@klomp.org>
4962
4963 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4964
4965 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * frame.c (enum class frame_id_status): New.
4968 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4969 (fprintf_frame): Update.
4970 (compute_frame_id): Set frame id status to "computing" on entry.
4971 Set it back to "not_computed" on failure and to "computed" on
4972 success.
4973 (get_frame_id): Assert the frame id is not being computed.
4974 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4975 (create_new_frame): Likewise.
4976 (frame_cleanup_after_sniffer): Update assert.
4977
4978 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * regcache.c (pid_ptid_regcache_map): New type.
4981 (target_ptid_regcache_map): Remove.
4982 (target_pid_ptid_regcache_map): New type.
4983 (regcaches): Change type to target_pid_ptid_regcache_map.
4984 (get_thread_arch_aspace_regcache): Update.
4985 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4986 case.
4987 (regcaches_size): Update.
4988 (regcache_count): Update.
4989 (registers_changed_ptid_target_pid_test): New.
4990 (_initialize_regcache): Register new test.
4991
4992 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * regcache.c (regcache_count): New.
4995 (struct regcache_test_data): New.
4996 (regcache_test_data_up): New.
4997 (populate_regcaches_for_test): New.
4998 (regcaches_test): Remove.
4999 (get_thread_arch_aspace_regcache_test): New.
5000 (registers_changed_ptid_all_test): New.
5001 (registers_changed_ptid_target_test): New.
5002 (registers_changed_ptid_target_ptid_test): New.
5003 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5004 (_initialize_regcache): Register new tests.
5005
5006 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5009 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5010 gdbarch and aspace parameter. Use current inferior's aspace.
5011 Validate regcache's arch value.
5012 (regcaches_test): Update.
5013
5014 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5015
5016 * regcache.c (regcaches_test): Call registers_changed.
5017
5018 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5019
5020 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5021
5022 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5023
5024 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5025 to find the end of prologue for flang compiled binaries.
5026 * arm-tdep.c (arm_skip_prologue): Likewise.
5027 * i386-tdep.c (i386_skip_prologue): Likewise.
5028 * producer.c (producer_is_llvm): New function.
5029 (producer_parsing_tests): Added new tests for clang/flang.
5030 * producer.h (producer_is_llvm): New declaration.
5031
5032 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * linux-nat.c (linux_nat_debug_printf): New function.
5035 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5036
5037 2020-08-18 Aaron Merey <amerey@redhat.com>
5038
5039 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5040 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5041 (CLIBS): Add DEBUGINFOD_LIBS.
5042
5043 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5044
5045 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5046 'gdbarch_num_regs'.
5047
5048 2020-08-17 Tom Tromey <tromey@adacore.com>
5049
5050 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5051 ada_get_decoded_value returns NULL.
5052
5053 2020-08-17 Tom Tromey <tromey@adacore.com>
5054
5055 * python/py-inferior.c (infpy_search_memory): Use
5056 gdb_py_object_from_ulongest.
5057 * python/py-infevents.c (create_inferior_call_event_object)
5058 (create_memory_changed_event_object): Use
5059 gdb_py_object_from_ulongest.
5060 * python/py-linetable.c (ltpy_entry_get_pc): Use
5061 gdb_py_object_from_ulongest.
5062
5063 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * loc.c (class symbol_needs_eval_context): Fix indentation.
5066
5067 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5068
5069 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5070 bool.
5071
5072 2020-08-17 Tom de Vries <tdevries@suse.de>
5073
5074 PR gdb/26393
5075 * gdbtypes.c (dump_dynamic_prop): New function.
5076 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5077
5078 2020-08-15 Tom de Vries <tdevries@suse.de>
5079
5080 PR backtrace/26390
5081 * stack.c (print_frame_args): Temporarily set the selected
5082 frame to FRAME while printing the frame's arguments.
5083
5084 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5085
5086 PR breakpoints/26385
5087 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5088 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5089
5090 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5091
5092 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5093 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5094 and >= to check return value instead of == -1 and != -1.
5095
5096 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * utils.h (class gdb_argv) <as_array_view>: New method.
5099 * utils.c (gdb_argv_as_array_view_test): New.
5100 (_initialize_utils): Register selftest.
5101 * maint.c (maintenance_selftest): Use the new method.
5102
5103 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5104
5105 * target.h (supports_dumpcore, dumpcore): New
5106 function declarations.
5107 * target.c (supports_dumpcore, dumpcore): New
5108 functions.
5109 * target-delegates.c: Rebuild.
5110 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5111 and target_dumpcore ().
5112
5113 2020-08-13 Aaron Merey <amerey@redhat.com>
5114
5115 * debuginfod-support.c: Replace global variables with user_data.
5116
5117 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5118
5119 * maint.c (maintenance_selftest): Split args and pass array_view
5120 to run_tests.
5121
5122 2020-08-12 Luis Machado <luis.machado@linaro.org>
5123
5124 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5125 type's length.
5126 Use %s and pulongest to print the length.
5127
5128 2020-08-12 Pedro Alves <palves@redhat.com>
5129
5130 * NEWS: Move "Multi-target debugging support" item to the
5131 "Changes since GDB 9" section.
5132
5133 2020-08-12 Pedro Alves <palves@redhat.com>
5134
5135 PR gdb/26336
5136 * progspace.c (program_space::remove_objfile): Invalidate the
5137 frame cache.
5138
5139 2020-08-11 Tom de Vries <tdevries@suse.de>
5140
5141 * MAINTAINERS: Mark ms1 as deleted.
5142
5143 2020-08-10 Luis Machado <luis.machado@linaro.org>
5144
5145 PR gdb/26310
5146
5147 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5148 act accordingly.
5149 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5150 movz/str/stur/stp skipping behavior.
5151
5152 2020-08-10 Luis Machado <luis.machado@linaro.org>
5153
5154 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5155 struct user_sve_header instead of struct sve_context.
5156
5157 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5158
5159 * read.h (dwarf2_fetch_die_loc_sect_off,
5160 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5161 `void *` parameter with function_view.
5162 * read.c (dwarf2_fetch_die_loc_sect_off,
5163 dwarf2_fetch_die_loc_cu_off): Likewise.
5164 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5165 (per_cu_dwarf_call): Adjust.
5166 (get_frame_address_in_block_wrapper): Remove.
5167 (indirect_synthetic_pointer): Adjust.
5168 (get_ax_pc): Remove.
5169 (dwarf2_compile_expr_to_ax): Adjust.
5170
5171 2020-08-08 Tom de Vries <tdevries@suse.de>
5172
5173 PR build/26344
5174 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5175 constructor.
5176 * regcache.c (get_thread_arch_aspace_regcache): Same.
5177
5178 2020-08-07 Tom Tromey <tromey@adacore.com>
5179
5180 * ravenscar-thread.c
5181 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5182 New method.
5183 (ravenscar_thread_target::wait): Check
5184 runtime_initialized.
5185 (ravenscar_thread_target::prepare_to_store)
5186 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5187 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5188 (ravenscar_thread_target::stopped_by_watchpoint)
5189 (ravenscar_thread_target::stopped_data_address)
5190 (ravenscar_thread_target::core_of_thread): Use
5191 scoped_restore_current_thread and
5192 set_base_thread_from_ravenscar_task.
5193
5194 2020-08-07 Tom Tromey <tromey@adacore.com>
5195
5196 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5197
5198 2020-08-07 Tom Tromey <tromey@adacore.com>
5199
5200 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5201 update_inferior_ptid before update_thread_list.
5202 (temporarily_change_regcache_ptid): New class.
5203 (ravenscar_thread_target::fetch_registers)
5204 (ravenscar_thread_target::store_registers)
5205 (ravenscar_thread_target::prepare_to_store): Use base thread when
5206 forwarding operation.
5207
5208 2020-08-07 Tom Tromey <tromey@adacore.com>
5209
5210 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5211 "is_pid" case.
5212
5213 2020-08-07 Tom Tromey <tromey@adacore.com>
5214
5215 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5216 New methods.
5217 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5218 first.
5219 (ravenscar_thread_target::add_thread): Rename from
5220 ravenscar_add_thread.
5221 (ravenscar_thread_target::update_thread_list): Use a lambda.
5222 (ravenscar_thread_target::xfer_partial): New method.
5223
5224 2020-08-07 Tom Tromey <tromey@adacore.com>
5225
5226 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5227 gdb::function_view.
5228 (iterate_over_live_ada_tasks): Change type of argument.
5229 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5230 of argument.
5231
5232 2020-08-07 Tom Tromey <tromey@adacore.com>
5233
5234 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5235 Remove.
5236 (ravenscar_thread_target::extra_thread_info): Remove.
5237 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5238 defer to target beneath for non-Ravenscar threads.
5239
5240 2020-08-07 Tom Tromey <tromey@adacore.com>
5241
5242 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5243 get_base_thread_from_ravenscar_task>: Now methods.
5244 <m_cpu_map>: New member.
5245 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5246 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5247 (ravenscar_thread_target::task_is_currently_active): Update.
5248 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5249 Now a method.
5250 (ravenscar_thread_target::add_active_thread): Put initial thread
5251 into the m_cpu_map.
5252
5253 2020-08-07 Tom Tromey <tromey@adacore.com>
5254
5255 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5256 event_ptid.
5257
5258 2020-08-07 Tom Tromey <tromey@adacore.com>
5259
5260 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5261 runtime_initialized.
5262
5263 2020-08-07 Tom Tromey <tromey@adacore.com>
5264
5265 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5266 add_active_thread.
5267 (ravenscar_thread_target::add_active_thread): Now public.
5268 (ravenscar_inferior_created): Call add_active_thread after pushing
5269 the target.
5270
5271 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5272
5273 * regcache.c (ptid_regcache_map): New type.
5274 (target_ptid_regcache_map): New type.
5275 (regcaches): Change type to target_ptid_regcache_map.
5276 (get_thread_arch_aspace_regcache): Update to regcaches' new
5277 type.
5278 (regcache_thread_ptid_changed): Likewise.
5279 (registers_changed_ptid): Likewise.
5280 (regcaches_size): Likewise.
5281 (regcaches_test): Update.
5282 (regcache_thread_ptid_changed): Update.
5283 * regcache.h (regcache_up): New type.
5284 * gdbsupport/ptid.h (hash_ptid): New struct.
5285
5286 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * observable.h (thread_ptid_changed): Add parameter
5289 `process_stratum_target *`.
5290 * infrun.c (infrun_thread_ptid_changed): Add parameter
5291 `process_stratum_target *` and use it.
5292 (selftests): New namespace.
5293 (infrun_thread_ptid_changed): New function.
5294 (_initialize_infrun): Register selftest.
5295 * regcache.c (regcache_thread_ptid_changed): Add parameter
5296 `process_stratum_target *` and use it.
5297 (regcache_thread_ptid_changed): New function.
5298 (_initialize_regcache): Register selftest.
5299 * thread.c (thread_change_ptid): Pass target to
5300 thread_ptid_changed observable.
5301
5302 2020-08-06 Caroline Tice <cmtice@google.com>
5303
5304 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5305 (struct dwp_sections): Update field comments. Add loclists and
5306 rnglists fields.
5307 (struct virtual_v2_dwo_sections): Rename struct to
5308 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5309 size & offset fields for loclists and rnglists.
5310 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5311 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5312 skipping dummy type units.
5313 (create_dwp_hash_table): Update the large comment above the function to
5314 discuss Version 5 DWP files as well, with references. Update all the
5315 version checks in the function to check for version 5 as well. Add new
5316 section at the end to create dwp hash table for version 5.
5317 (create_dwp_v2_section): Rename function to
5318 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5319 Add V5 to error message text.
5320 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5321 into calls to create_dwp_v2_or_v5_section.
5322 (create_dwo_unit_in_dwp_v5): New function.
5323 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5324 check for version2; add else clause to handle version 5.
5325 (open_and_init_dwo_file): Add code to check dwarf version & only call
5326 create_debug_types_hash_table (with sections.types) if version is not 5;
5327 else call create_debug_type_hash_table, with sections.info.
5328 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5329 version 5.
5330 (dwarf2_locate_v5_dwp_sections): New function.
5331 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5332 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5333
5334 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5335
5336 * regcache.h (class regcache): Remove friend
5337 registers_changed_ptid.
5338 <regcache_thread_ptid_changed>: Remove.
5339 <regcaches>: Remove.
5340 * regcache.c (regcache::regcaches): Rename to...
5341 (regcaches): ... this. Make static.
5342 (get_thread_arch_aspace_regcache): Update.
5343 (regcache::regcache_thread_ptid_changed): Rename to...
5344 (regcache_thread_ptid_changed): ... this. Update.
5345 (class regcache_access): Remove.
5346 (regcaches_test): Update.
5347 (_initialize_regcache): Update.
5348 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5349 <forward_list>.
5350
5351 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * regcache.h (class regcache) <current_regcache>: Rename to...
5354 <regcaches>: ... this. Move doc here.
5355 * regcache.c (regcache::current_regcache) Rename to...
5356 (regcache::regcaches): ... this. Move doc to header.
5357 (get_thread_arch_aspace_regcache): Update.
5358 (regcache::regcache_thread_ptid_changed): Update.
5359 (registers_changed_ptid): Update.
5360 (class regcache_access) <current_regcache_size>: Rename to...
5361 <regcaches_size>: ... this.
5362 (current_regcache_test): Rename to...
5363 (regcaches_test): ... this.
5364 (_initialize_regcache): Update.
5365
5366 2020-08-06 Victor Collod <vcollod@nvidia.com>
5367
5368 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5369
5370 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5371
5372 * corelow.c (core_target::build_file_mappings): Don't output
5373 null pathname in warning.
5374
5375 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5376
5377 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5378 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5379 gdb.dwarf2/dw2-single-line-discriminators.exp,
5380 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5381
5382 2020-08-05 Tom Tromey <tromey@adacore.com>
5383
5384 PR rust/26197:
5385 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5386 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5387 Fix off-by-one and type size errors in ordinary case.
5388
5389 2020-08-05 Tom de Vries <tdevries@suse.de>
5390
5391 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5392 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5393
5394 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * frame.h (frame_id_p): Return bool.
5397 (frame_id_artificial_p): Return bool.
5398 (frame_id_eq): Return bool.
5399 (has_stack_frames): Return bool.
5400 (get_selected_frame): Fix typo in comment.
5401 (get_frame_pc_if_available): Return bool.
5402 (get_frame_address_in_block_if_available): Return bool.
5403 (get_frame_func_if_available): Return bool.
5404 (read_frame_register_unsigned): Return bool.
5405 (get_frame_register_bytes): Return bool.
5406 (safe_frame_unwind_memory): Return bool.
5407 (deprecated_frame_register_read): Return bool.
5408 (frame_unwinder_is): Return bool.
5409 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5410 bool.
5411 <this_id::p>: Likewise.
5412 <prev_p>: Likewise.
5413 (frame_stash_add): Return bool.
5414 (get_frame_id): Use bool.
5415 (frame_id_build_special) Use bool.
5416 (frame_id_build_unavailable_stack): Use bool.
5417 (frame_id_build): Use bool.
5418 (frame_id_p): Return bool, use true/false instead of 1/0.
5419 (frame_id_artificial_p): Likewise.
5420 (frame_id_eq): Likewise.
5421 (frame_id_inner): Likewise.
5422 (get_frame_func_if_available): Likewise.
5423 (read_frame_register_unsigned): Likewise.
5424 (deprecated_frame_register_read): Likewise.
5425 (get_frame_register_bytes): Likewise.
5426 (has_stack_frames): Likewise.
5427 (inside_main_func): Likewise.
5428 (inside_entry_func): Likewise.
5429 (get_frame_pc_if_available): Likewise.
5430 (get_frame_address_in_block_if_available): Likewise.
5431 (frame_unwinder_is): Likewise.
5432 (safe_frame_unwind_memory): Likewise.
5433 (frame_unwind_arch): Likewise.
5434
5435 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5438 type to cached_copy_status.
5439 (fprintf_frame): Adjust.
5440 (get_frame_func_if_available): Adjust.
5441 (frame_cleanup_after_sniffer): Adjust.
5442
5443 2020-08-04 Mark Wielaard <mark@klomp.org>
5444
5445 * MAINTAINERS (Write After Approval): Update email address.
5446
5447 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5450 dynamic_prop::const_val.
5451
5452 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5455 dynamic_prop::kind.
5456
5457 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5460
5461 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5462
5463 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5464
5465 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5466 Jose E. Marchesi <jose.marchesi@oracle.com>
5467
5468 * configure.tgt: Add entry for bpf-*-*.
5469 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5470 (ALLDEPFILES): Add bpf-tdep.c.
5471 * bpf-tdep.c: New file.
5472 * MAINTAINERS: Add bpf target and maintainer.
5473 * NEWS: Mention the support for the new target.
5474
5475 2020-08-04 Tom de Vries <tdevries@suse.de>
5476
5477 PR symtab/23270
5478 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5479 Error.
5480
5481 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5482
5483 * syscalls/freebsd.xml: Regenerate.
5484
5485 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5486
5487 * syscalls/update-freebsd.sh: Fix usage and year range.
5488
5489 2020-08-03 Tom de Vries <tdevries@suse.de>
5490
5491 PR symtab/26333
5492 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5493 DW_LNE_lo_user/DW_LNE_hi_user range.
5494
5495 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 PR ada/26318
5498 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5499 kind.
5500
5501 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5502
5503 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5504
5505 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5506
5507 * breakpoint.c (set_breakpoint_condition): Update the condition
5508 expressions after checking that the input condition string parses
5509 successfully and does not contain junk at the end.
5510
5511 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5512
5513 * breakpoint.c (set_breakpoint_condition): Update the
5514 condition string after parsing the new condition successfully.
5515
5516 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5517
5518 * proc-api.c (_STRUCTURED_PROC): Don't define.
5519 * proc-events.c: Likewise.
5520 * proc-flags.c: Likewise.
5521 * proc-why.c: Likewise.
5522 * procfs.c: Likewise.
5523
5524 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5525 * configure, config.in: Regenerate.
5526
5527 2020-07-30 Tom de Vries <tdevries@suse.de>
5528
5529 PR build/26320
5530 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5531 m_red/m_green/m_blue in a union.
5532
5533 2020-07-29 Tom de Vries <tdevries@suse.de>
5534
5535 PR tdep/26280
5536 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5537
5538 2020-07-28 Tom Tromey <tromey@adacore.com>
5539
5540 PR symtab/26270:
5541 * symtab.h (find_pc_partial_function_sym): Declare.
5542 * cli/cli-cmds.c (disassemble_command): Use
5543 find_pc_partial_function_sym. Check asm_demangle.
5544 * blockframe.c (cache_pc_function_sym): New global.
5545 (cache_pc_function_name): Remove.
5546 (clear_pc_function_cache): Update.
5547 (find_pc_partial_function_sym): New function, from
5548 find_pc_partial_function.
5549 (find_pc_partial_function): Rewrite using
5550 find_pc_partial_function_sym.
5551
5552 2020-07-28 Tom Tromey <tromey@adacore.com>
5553
5554 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5555 help. Add usage.
5556
5557 2020-07-28 Tom Tromey <tromey@adacore.com>
5558
5559 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5560 <DW_OP_GNU_variable_value>: Cast to address type.
5561
5562 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5563
5564 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5565 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5566 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5567 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5568 (nbsd_get_siginfo_type): New.
5569 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5570 (_initialize_nbsd_tdep): New.
5571
5572 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5573
5574 PR binutils/26301
5575 * configure: Regenerated.
5576
5577 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5578
5579 PR binutils/26301
5580 * configure: Regenerated.
5581
5582 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * python/py-frame.c: Remove 'user-regs.h' include.
5585 (frapy_read_register): Rewrite to make use of
5586 gdbpy_parse_register_id.
5587 * python/py-registers.c (gdbpy_parse_register_id): New function,
5588 moved here from python/py-unwind.c. Updated the return type, and
5589 also accepts register descriptor objects.
5590 * python/py-unwind.c: Remove 'user-regs.h' include.
5591 (pyuw_parse_register_id): Moved to python/py-registers.c.
5592 (unwind_infopy_add_saved_register): Update to use
5593 gdbpy_parse_register_id.
5594 (pending_framepy_read_register): Likewise.
5595 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5596
5597 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * python/py-registers.c: Add 'user-regs.h' include.
5600 (register_descriptor_iter_find): New function.
5601 (register_descriptor_iterator_object_methods): New static global
5602 methods array.
5603 (register_descriptor_iterator_object_type): Add pointer to methods
5604 array.
5605
5606 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5607
5608 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5609 for all architectures on FreeBSD 11.3 and later.
5610
5611 2020-07-27 Tom Tromey <tromey@adacore.com>
5612
5613 * gcore.h (load_corefile): Don't declare.
5614
5615 2020-07-27 Tom de Vries <tdevries@suse.de>
5616
5617 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5618 * config.in: Regenerate.
5619 * configure: Regenerate.
5620
5621 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5622
5623 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5624 ws2tcpip.h. When checking whether socklen_t type is defined, use
5625 ws2tcpip.h if it is available and sys/socket.h isn't.
5626 * configure: Regenerate.
5627 * config.in: Regenerate.
5628
5629 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 PR fortran/23051
5632 PR fortran/26139
5633 * valops.c (value_ind): Pass address to
5634 readjust_indirect_value_type.
5635 * value.c (readjust_indirect_value_type): Make parameter
5636 non-const, and add extra address parameter. Resolve original type
5637 before using it.
5638 * value.h (readjust_indirect_value_type): Update function
5639 signature and comment.
5640
5641 2020-07-25 Tom de Vries <tdevries@suse.de>
5642
5643 PR symtab/26243
5644 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5645 entries.
5646
5647 2020-07-24 Aaron Merey <amerey@redhat.com>
5648
5649 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5650 * configure: Rebuild.
5651
5652 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5653
5654 PR corefiles/26294
5655 * corelow.c (_initialize_corelow): Add period to help text
5656 for "maintenance print core-file-backed-mappings".
5657
5658 2020-07-23 Pedro Alves <pedro@palves.net>
5659
5660 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5661 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5662 meanwhile.
5663 * frame.c (frame_cache_generation, get_frame_cache_generation):
5664 New.
5665 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5666 (get_prev_frame_if_no_cycle): On exception, don't touch
5667 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5668 * frame.h (get_frame_cache_generation): Declare.
5669
5670 2020-07-23 Tom de Vries <tdevries@suse.de>
5671
5672 PR tui/26282
5673 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5674 New default constructor.
5675
5676 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5679 exclude non-statement entries.
5680
5681 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5682
5683 * NEWS (New commands): Mention new command
5684 "maintenance print core-file-backed-mappings".
5685
5686 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5687
5688 * corelow.c (gdbcmd.h): Include.
5689 (core_target::info_proc_mappings): New method.
5690 (get_current_core_target): New function.
5691 (maintenance_print_core_file_backed_mappings): New function.
5692 (_initialize_corelow): Add core-file-backed-mappings to
5693 "maint print" commands.
5694
5695 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5696
5697 * linux-tdep.c (dump_note_entry_p): New function.
5698 (linux_dump_mapping_p_ftype): New typedef.
5699 (linux_find_memory_regions_full): Add new parameter,
5700 should_dump_mapping_p.
5701 (linux_find_memory_regions): Adjust call to
5702 linux_find_memory_regions_full.
5703 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5704 call to linux_find_memory_regions_full.
5705
5706 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5707
5708 * corelow.c (solist.h, unordered_map): Include.
5709 (class core_target): Add field m_core_file_mappings and
5710 method build_file_mappings.
5711 (core_target::core_target): Call build_file_mappings.
5712 (core_target::~core_target): Free memory associated with
5713 m_core_file_mappings.
5714 (core_target::build_file_mappings): New method.
5715 (core_target::xfer_partial): Use m_core_file_mappings
5716 for memory transfers.
5717 * linux-tdep.c (linux_read_core_file_mappings): New
5718 function.
5719 (linux_core_info_proc_mappings): Rewrite to use
5720 linux_read_core_file_mappings.
5721 (linux_init_abi): Register linux_read_core_file_mappings.
5722
5723 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5724
5725 * arch-utils.c (default_read_core_file_mappings): New function.
5726 * arch-utils.c (default_read_core_file_mappings): Declare.
5727 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5728 * gdbarch.h, gdbarch.c: Regenerate.
5729
5730 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5731
5732 PR corefiles/25631
5733 * corelow.c (core_target:xfer_partial): Revise
5734 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5735 case after first checking the stratum beneath the core
5736 target.
5737 (has_all_memory): Return true.
5738 * target.c (raw_memory_xfer_partial): Revise comment
5739 regarding use of has_all_memory.
5740
5741 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5742
5743 * exec.h (section_table_xfer_memory): Revise declaration,
5744 replacing section name parameter with an optional callback
5745 predicate.
5746 * exec.c (section_table_xfer_memory): Likewise.
5747 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5748 of section_table_xfer_memory.
5749
5750 2020-07-22 Tom Tromey <tromey@adacore.com>
5751
5752 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5753 lookup_symbol_search_name.
5754
5755 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5756
5757 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5758 redundant local variable.
5759 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5760 reference, not pointer, update code accordingly.
5761
5762 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5763 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5764
5765 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5766 * jit.c (jit_breakpoint_re_set_internal): Use the
5767 `skip_jit_symbol_lookup` field.
5768
5769 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5770 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5771
5772 * jit.c (jit_read_descriptor): Define the descriptor address once,
5773 use twice.
5774 (jit_breakpoint_deleted): Move the declaration of the loop variable
5775 `iter` into the loop header.
5776 (jit_breakpoint_re_set_internal): Move the declaration of the local
5777 variable `objf_data` to the first point of definition.
5778 (jit_event_handler): Move the declaration of local variables
5779 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5780 Rename `objf` to `jited`.
5781
5782 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5783
5784 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5785 Remove.
5786 * jit.c (get_jiter_objfile_data): Update.
5787
5788 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5789 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * jit.c (struct jit_program_space_data): Remove.
5792 (jit_program_space_key): Remove.
5793 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5794 stuff.
5795 (get_jit_program_space_data): Remove.
5796 (jit_breakpoint_deleted): Iterate on all of the program space's
5797 objfiles.
5798 (jit_inferior_init): Likewise.
5799 (jit_breakpoint_re_set_internal): Likewise. Also change return
5800 type to void.
5801 (jit_breakpoint_re_set): Pass current_program_space to
5802 jit_breakpoint_re_set_internal.
5803
5804 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * jit.h (struct jiter_objfile_data) <cached_code_address,
5807 jit_breakpoint>: Move to here from ...
5808 * jit.c (jit_program_space_data): ... here.
5809 (jiter_objfile_data::~jiter_objfile_data): Update.
5810 (jit_breakpoint_deleted): Update.
5811 (jit_breakpoint_re_set_internal): Update.
5812
5813 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5816 checks.
5817 (jit_read_descriptor): Remove NULL check.
5818 (jit_event_handler): Add an assertion.
5819
5820 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5821
5822 * jit.h (struct jit_objfile_data): Split into...
5823 (struct jiter_objfile_data): ... this ...
5824 (struct jited_objfile_data): ... and this.
5825 * objfiles.h (struct objfile) <jit_data>: Remove.
5826 <jiter_data, jited_data>: New fields.
5827 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5828 (jiter_objfile_data::~jiter_objfile_data): ... this.
5829 (get_jit_objfile_data): Rename to ...
5830 (get_jiter_objfile_data): ... this.
5831 (add_objfile_entry): Update.
5832 (jit_read_descriptor): Use get_jiter_objfile_data.
5833 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5834 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5835 (jit_inferior_exit_hook): Use objfile's jited_data field.
5836
5837 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * jit.h: Forward-declare `struct minimal_symbol`.
5840 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5841 constructor, destructor, and an objfile* field.
5842 * jit.c (jit_objfile_data): Remove.
5843 (struct jit_objfile_data): Migrate from here to jit.h.
5844 (jit_objfile_data::~jit_objfile_data): New destructor
5845 implementation with code moved from free_objfile_data.
5846 (free_objfile_data): Delete.
5847 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5848 (jit_find_objf_with_entry_addr): Ditto.
5849 (jit_inferior_exit_hook): Ditto.
5850 (_initialize_jit): Remove the call to
5851 register_objfile_data_with_cleanup.
5852 * objfiles.h (struct objfile) <jit_data>: New field.
5853
5854 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5855
5856 * jit.h: Forward-declare `struct objfile`.
5857 (jit_event_handler): Add a second parameter, the JITer objfile.
5858 * jit.c (jit_read_descriptor): Change the signature to take the
5859 JITer objfile as an argument instead of the jit_program_space_data.
5860 (jit_inferior_init): Update the call to jit_read_descriptor.
5861 (jit_event_handler): Use the new JITer objfile argument when calling
5862 jit_read_descriptor.
5863 * breakpoint.c (handle_jit_event): Update the call to
5864 jit_event_handler to pass the JITer objfile.
5865
5866 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5867
5868 * gdbarch.c: Regenerate.
5869 * gdbarch.h: Regenerate.
5870 * gdbarch.sh (handle_segmentation_fault): Remove method.
5871 * infrun.c (handle_segmentation_fault): Remove.
5872 (print_signal_received_reason): Remove call to
5873 handle_segmentation_fault.
5874
5875 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5876
5877 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5878 Rename to sparc64_linux_report_signal_info and add siggnal
5879 argument.
5880 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5881 instead of sparc64_linux_handle_segmentation_fault.
5882
5883 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5884
5885 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5886 i386_linux_report_signal_info instead of
5887 i386_linux_handle_segmentation_fault.
5888 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5889 to i386_linux_report_signal_info and add siggnal argument.
5890 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5891 of i386_linux_handle_segmentation_fault.
5892 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5893 to i386_linux_report_signal_info and add siggnal argument.
5894
5895 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5896
5897 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5898 hook if present.
5899
5900 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5901
5902 * gdbarch.c: Regenerate.
5903 * gdbarch.h: Regenerate.
5904 * gdbarch.sh (report_signal_info): New method.
5905 * infrun.c (print_signal_received_reason): Invoke gdbarch
5906 report_signal_info hook if present.
5907
5908 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5909
5910 * python/py-registers.c : Add 'unordered_map' include.
5911 (gdbpy_new_reggroup): Renamed to...
5912 (gdbpy_get_reggroup): ...this. Update to only create register
5913 group descriptors when needed.
5914 (gdbpy_reggroup_iter_next): Update.
5915
5916 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * python/py-registers.c (gdbpy_register_object_data): New static
5919 global.
5920 (gdbpy_register_object_data_init): New function.
5921 (gdbpy_new_register_descriptor): Renamed to...
5922 (gdbpy_get_register_descriptor): ...this, and update to reuse
5923 existing register descriptors where possible.
5924 (gdbpy_register_descriptor_iter_next): Update.
5925 (gdbpy_initialize_registers): Register new gdbarch data.
5926
5927 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5928
5929 * linux-nat.c (stopped_pids): Make static.
5930
5931 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 PR ada/26235
5934 * gdbtypes.c (ada_discrete_type_low_bound,
5935 ada_discrete_type_high_bound): Handle undefined bounds.
5936
5937 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5938
5939 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5940 declaration.
5941 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5942 function.
5943
5944 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5945
5946 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5947 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5948 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5949 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5950 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5951 method.
5952
5953 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5954
5955 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5956 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5957 which are deprecated in Guile 3.0.
5958 * configure.ac (try_guile_versions): Add "guile-3.0".
5959 * configure (try_guile_versions): Regenerate.
5960 * NEWS: Update entry.
5961
5962 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5963 Doug Evans <dje@google.com>
5964
5965 PR gdb/21104
5966 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5967 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5968 USING_GUILE_BEFORE_2_2.
5969 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5970 Change type to 'scm_t_port_type *'.
5971 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5972 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5973 parameter and honor it. Update callers.
5974 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5975 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5976 functions.
5977 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5978 USING_GUILE_BEFORE_2_2.
5979 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5980 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5981 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5982 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5983 and 'SCM_PORT_TYPE'.
5984 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5985 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5986 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5987 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5988 [!USING_GUILE_BEFORE_2_2]: New functions.
5989 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5990 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5991 'gdbscm_memory_port_read'.
5992 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5993 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5994 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5995 function.
5996 (ioscm_init_memory_port): Remove.
5997 (ioscm_init_memory_port_stream): New function
5998 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5999 function.
6000 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6001 Return scm_from_uint (0).
6002 (gdbscm_set_memory_port_read_buffer_size_x)
6003 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6004 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6005 Return scm_from_uint (0).
6006 (gdbscm_set_memory_port_write_buffer_size_x)
6007 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6008 * configure.ac (try_guile_versions): Add "guile-2.2".
6009 * configure: Regenerate.
6010 * NEWS: Add entry.
6011
6012 2020-07-18 Tom Tromey <tom@tromey.com>
6013
6014 * linux-nat.c (linux_multi_process): Remove.
6015 (linux_nat_target::supports_multi_process): Return true.
6016
6017 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6020 (riscv_lookup_target_description): Return pointer out of
6021 unique_ptr.
6022 * target-descriptions.c (allocate_target_description): Add
6023 comment.
6024 (target_desc_deleter::operator()): Likewise.
6025 * target-descriptions.h (struct target_desc_deleter): Moved to
6026 gdbsupport/tdesc.h.
6027 (target_desc_up): Likewise.
6028
6029 2020-07-17 Tom Tromey <tromey@adacore.com>
6030
6031 * linux-nat.c (linux_nat_target::supports_non_stop)
6032 (linux_nat_target::always_non_stop_p): Use "true".
6033 (linux_nat_target::supports_disable_randomization): Use "true" and
6034 "false".
6035
6036 2020-07-16 Caroline Tice <cmtice@google.com>
6037
6038 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6039 (RNGLIST_HEADER_SIZE64): New constant definition.
6040 (struct dwop_section_names): Add rnglists_dwo.
6041 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6042 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6043 (struct dwo_sections): Add rnglists field.
6044 (read_attribut_reprocess): Add tag parameter.
6045 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6046 (cu_debug_rnglists_section): New function (decl & definition).
6047 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6048 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6049 die whose range is being checked; get rnglist section from
6050 cu_debug_rnglists_section, to get from either objfile or dwo file as
6051 appropriate. Add cases for DW_RLE_base_addressx,
6052 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6053 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6054 test inside if-condition and updating complaint message.
6055 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6056 dwarf2_rnglists_process.
6057 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6058 dwarf2_ranges_process.
6059 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6060 need_ranges_base and update comment appropriately. Also pass die tag
6061 to dwarf2_ranges_read.
6062 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6063 need_ranges_base and update comment appropriately. Also pass die tag
6064 to dwarf2_ranges_process.
6065 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6066 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6067 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6068 need_ranges_base and update comment appropriately. Also pass die tag
6069 to read_attribute_reprocess and dwarf2_ranges_read.
6070 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6071 and update function comment appropriately.
6072 (read_loclist_index): Call read_loclists_rnglists_header instead of
6073 read_loclist_header.
6074 (read_rnglist_index): New function.
6075 (read_attribute_reprocess): Add tag parameter. Add code for
6076 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6077 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6078
6079 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6080
6081 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6082 being resolved.
6083
6084 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * arch-utils.c (show_architecture): Update formatting of messages.
6087
6088 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbtypes.h (struct type) <bounds>: Handle array and string
6091 types.
6092 * ada-lang.c (assign_aggregate): Use type::bounds on
6093 array/string type.
6094 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6095 * c-varobj.c (c_number_of_children): Likewise.
6096 (c_describe_child): Likewise.
6097 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6098 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6099 (f_type_print_base): Likewise.
6100 * f-valprint.c (f77_array_offset_tbl): Likewise.
6101 (f77_get_upperbound): Likewise.
6102 (f77_print_array_1): Likewise.
6103 * guile/scm-type.c (gdbscm_type_range): Likewise.
6104 * m2-typeprint.c (m2_array): Likewise.
6105 (m2_is_long_set_of_type): Likewise.
6106 * m2-valprint.c (get_long_set_bounds): Likewise.
6107 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6108 * python/py-type.c (typy_range): Likewise.
6109 * rust-lang.c (rust_internal_print_type): Likewise.
6110 * type-stack.c (type_stack::follow_types): Likewise.
6111 * valarith.c (value_subscripted_rvalue): Likewise.
6112 * valops.c (value_cast): Likewise.
6113
6114 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6117 callers to use the equivalent accessor methods.
6118
6119 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6120
6121 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6122 (struct type) <bit_stride>: New method.
6123 (TYPE_BIT_STRIDE): Remove.
6124 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6125
6126 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6129 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6130 callers to use the equivalent accessor methods instead.
6131
6132 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6135 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6136 callers to use the equivalent accessor methods instead.
6137
6138 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6141 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6142 to use dynamic_prop::kind.
6143
6144 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6147 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6148 to get the bound property's kind and check against
6149 PROP_UNDEFINED.
6150
6151 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6154 all callers to use type::range_bounds followed by
6155 dynamic_prop::{low,high}.
6156
6157 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6160 const_val, set_const_val, baton, set_locexpr, set_loclist,
6161 set_addr_offset, variant_parts, set_variant_parts,
6162 original_type, set_original_type>: New methods.
6163 <kind>: Rename to...
6164 <m_kind>: ... this. Update all users to use the new methods
6165 instead.
6166 <data>: Rename to...
6167 <m_data>: ... this. Update all users to use the new methods
6168 instead.
6169
6170 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6171
6172 * gdbtypes.c (get_discrete_bounds): Return failure if
6173 the range type's bounds are not both defined and constant
6174 values.
6175 (get_array_bounds): Update comment. Remove undefined bound check.
6176
6177 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6180 the type::bounds method directly.
6181
6182 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6183
6184 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6185 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6186 are used to set the range type's bounds to use set_bounds.
6187
6188 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6189
6190 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6191
6192 2020-07-10 Pedro Alves <pedro@palves.net>
6193
6194 * gdbthread.h (inferior_ref): Define.
6195 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6196 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6197 * thread.c
6198 (scoped_restore_current_thread::restore):
6199 Adjust to gdb::ref_ptr.
6200 (scoped_restore_current_thread::~scoped_restore_current_thread):
6201 Remove manual decref handling.
6202 (scoped_restore_current_thread::scoped_restore_current_thread):
6203 Adjust to use
6204 inferior_ref::new_reference/thread_info_ref::new_reference.
6205 Incref the thread before calling get_frame_id instead of after.
6206 Let TARGET_CLOSE_ERROR propagate.
6207
6208 2020-07-10 Pedro Alves <pedro@palves.net>
6209
6210 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6211 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6212 NOT_AVAILABLE_ERROR.
6213 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6214 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6215
6216 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6217 Pedro Alves <pedro@palves.net>
6218
6219 PR gdb/26199
6220 * infrun.c (threads_are_resumed_pending_p): Delete.
6221 (do_target_wait): Remove threads_are_executing and
6222 threads_are_resumed_pending_p checks from the inferior_matches
6223 lambda. Update comments.
6224
6225 2020-07-10 Pedro Alves <pedro@palves.net>
6226
6227 PR gdb/26199
6228 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6229 executing threads.
6230
6231 2020-07-10 Pedro Alves <pedro@palves.net>
6232
6233 PR gdb/26199
6234 * infrun.c (handle_no_resumed): Handle multiple targets.
6235
6236 2020-07-10 Pedro Alves <pedro@palves.net>
6237
6238 PR gdb/26199
6239 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6240 target_is_async_p.
6241
6242 2020-07-10 Pedro Alves <pedro@palves.net>
6243
6244 PR gdb/26199
6245 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6246 threads, not all threads.
6247
6248 2020-07-10 Pedro Alves <pedro@palves.net>
6249
6250 PR gdb/26199
6251 * remote.c (remote_target::open_1): Pass remote target pointer as
6252 data to create_async_event_handler.
6253 (remote_async_inferior_event_handler): Mark async event handler
6254 before returning if the remote target still has either pending
6255 events or unacknowledged notifications.
6256
6257 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6258
6259 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6260 declaration.
6261 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6262 function.
6263
6264 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6265
6266 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6267 inferior_ptid.
6268
6269 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6270
6271 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6272 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6273 AT_FREEBSD_PS_STRINGS.
6274
6275 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6276
6277 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6278 of debugfile path on Windows.
6279
6280 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6281
6282 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6283 argument to 'data'.
6284
6285 2020-07-08 Tom Tromey <tromey@adacore.com>
6286
6287 * ada-lang.c (ada_exception_message_1): Use read_memory.
6288
6289 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6290
6291 PR python/22748
6292 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6293 special handling for inline frames.
6294 * findvar.c (value_of_register_lazy): Skip inline frames when
6295 creating lazy register values.
6296 * frame.c (frame_id_computed_p): Delete definition.
6297 * frame.h (frame_id_computed_p): Delete declaration.
6298
6299 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * NEWS: Mention additions to Python API.
6302 * python/py-arch.c (archpy_register_groups): New function.
6303 (arch_object_methods): Add 'register_groups' method.
6304 * python/py-registers.c (reggroup_iterator_object): New struct.
6305 (reggroup_object): New struct.
6306 (gdbpy_new_reggroup): New function.
6307 (gdbpy_reggroup_to_string): New function.
6308 (gdbpy_reggroup_name): New function.
6309 (gdbpy_reggroup_iter): New function.
6310 (gdbpy_reggroup_iter_next): New function.
6311 (gdbpy_new_reggroup_iterator): New function
6312 (gdbpy_initialize_registers): Register new types.
6313 (reggroup_iterator_object_type): Define new Python type.
6314 (gdbpy_reggroup_getset): New static global.
6315 (reggroup_object_type): Define new Python type.
6316 * python/python-internal.h
6317
6318 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6319
6320 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6321 * python/py-arch.c (archpy_registers): New function.
6322 (arch_object_methods): Add 'registers' method.
6323 * python/py-registers.c: New file.
6324 * python/python-internal.h
6325 (gdbpy_new_register_descriptor_iterator): Declare.
6326 (gdbpy_initialize_registers): Declare.
6327 * python/python.c (do_start_initialization): Call
6328 gdbpy_initialize_registers.
6329 * NEWS: Mention additions to the Python API.
6330
6331 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * NEWS: Mention new Python API method.
6334 * python/py-unwind.c (pending_framepy_architecture): New function.
6335 (pending_frame_object_methods): Add architecture method.
6336
6337 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6338
6339 * gdbarch.c: Regenerate.
6340 * gdbarch.h: Regenerate.
6341 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6342 (gdbarch_data): Use internal_error for the case where
6343 deprecated_set_gdbarch_data was originally needed.
6344 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6345 and use passed in obstack.
6346 (libunwind_frame_set_descr): Should no longer get back NULL from
6347 gdbarch_data.
6348 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6349 type.
6350 * user-regs.c (user_regs_init): Update parameters, and use passed
6351 in obstack.
6352 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6353 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6354
6355 2020-07-06 Tom de Vries <tdevries@suse.de>
6356
6357 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6358 End-Of-Sequence in lte_is_less_than.
6359 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6360 "gdb: Don't reorder line table entries too much when sorting".
6361
6362 2020-07-06 Tom de Vries <tdevries@suse.de>
6363
6364 PR tui/26205
6365 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6366
6367 2020-07-05 Tom de Vries <tdevries@suse.de>
6368
6369 PR build/26187
6370 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6371 std::uncaught_exceptions instead of deprecated
6372 std::uncaught_exception.
6373
6374 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * macroexp.h (macro_stringify): Return
6377 gdb::unique_xmalloc_ptr<char>.
6378 * macroexp.c (macro_stringify): Likewise.
6379 * macrotab.c (fixup_definition): Update.
6380
6381 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6382
6383 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6384 (lex_one_token): Update.
6385 * macroexp.c (struct macro_buffer) <release>: Return
6386 gdb::unique_xmalloc_ptr<char>.
6387 (macro_stringify): Update.
6388 (macro_expand): Update.
6389 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6390 * macroexp.h (macro_expand_next): Likewise.
6391
6392 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6393
6394 * macroexp.h (macro_lookup_ftype): Remove.
6395 (macro_expand, macro_expand_once, macro_expand_next): Remove
6396 lookup function parameters, add scope parameter.
6397 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6398 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6399 * macroscope.h (standard_macro_lookup): Change parameter type
6400 to macro_scope.
6401 * macroscope.c (standard_macro_lookup): Likewise.
6402 * c-exp.y (lex_one_token): Update.
6403 * macrocmd.c (macro_expand_command): Likewise.
6404 (macro_expand_once_command): Likewise.
6405
6406 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * inf-loop.c (inferior_event_handler): Remove client_data param.
6409 * inf-loop.h (inferior_event_handler): Likewise.
6410 * infcmd.c (step_1): Adjust.
6411 * infrun.c (proceed): Adjust.
6412 (fetch_inferior_event): Remove client_data param.
6413 (infrun_async_inferior_event_handler): Adjust.
6414 * infrun.h (fetch_inferior_event): Remove `void *` param.
6415 * linux-nat.c (handle_target_event): Adjust.
6416 * record-btrace.c (record_btrace_handle_async_inferior_event):
6417 Adjust.
6418 * record-full.c (record_full_async_inferior_event_handler):
6419 Adjust.
6420 * remote.c (remote_async_inferior_event_handler): Adjust.
6421
6422 2020-07-01 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6425 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6426
6427 2020-07-01 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6430 tui_gen_win_info.
6431 (tui_win_info::make_window): Merge with
6432 tui_gen_win_info::make_window.
6433 (tui_win_info::make_visible): Move from tui_gen_win_info.
6434 * tui/tui-win.c (tui_win_info::max_width): Move from
6435 tui_gen_win_info.
6436 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6437 type.
6438 <window_factory>: Likewise.
6439 * tui/tui-layout.c (tui_win_info::resize): Move from
6440 tui_gen_win_info.
6441 (make_standard_window): Change return type.
6442 (get_locator_window, tui_get_window_by_name): Likewise.
6443 (tui_layout_window::apply): Remove a cast.
6444 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6445 (struct tui_win_info): Merge with tui_gen_win_info.
6446 (struct tui_gen_win_info): Remove.
6447
6448 2020-07-01 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-stack.h (struct tui_locator_window): Derive from
6451 tui_win_info.
6452 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6453 <can_box>: New method.
6454
6455 2020-07-01 Tom Tromey <tom@tromey.com>
6456
6457 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6458
6459 2020-07-01 Tom Tromey <tom@tromey.com>
6460
6461 * tui/tui-regs.c (tui_data_window::display_registers_from)
6462 (tui_data_window::display_registers_from)
6463 (tui_data_window::first_data_item_displayed)
6464 (tui_data_window::delete_data_content_windows): Update.
6465 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6466 Remove.
6467 (tui_data_window::check_register_values): Update.
6468 (tui_data_item_window::rerender): Add parameters. Update.
6469 (tui_data_item_window::refresh_window): Remove.
6470 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6471 virtual.
6472 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6473 tui_gen_win_info.
6474 <refresh_window, max_height, min_height>: Remove.
6475 <rerender>: Add parameters.
6476 <x, y, visible>: New members.
6477 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6478 <m_item_width>: New member.
6479
6480 2020-07-01 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-regs.c (tui_data_window::show_register_group)
6483 (tui_data_window::check_register_values): Update.
6484 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6485 from item_no.
6486
6487 2020-07-01 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6490 useless "if".
6491
6492 2020-07-01 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6495 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6496
6497 2020-07-01 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6500 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6501 (struct tui_line_or_address): Move from tui-data.h.
6502 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6503 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6504 (tui_cmd_window, tui_source_window_base, tui_source_window)
6505 (tui_disasm_window): Don't declare.
6506 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6507 to tui-winsource.h.
6508 (SINGLE_KEY): Move to tui-stack.c.
6509
6510 2020-07-01 Tom Tromey <tom@tromey.com>
6511
6512 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6513 std::string.
6514 * tui/tui-regs.c (class tab_expansion_file): New.
6515 (tab_expansion_file::write): New method.
6516 (tui_register_format): Change return type. Use
6517 tab_expansion_file.
6518 (tui_get_register, tui_data_window::display_registers_from)
6519 (tui_data_item_window::rerender): Update.
6520 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6521 * tui/tui-io.c (tui_expand_tabs): Remove.
6522
6523 2020-07-01 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6526
6527 2020-07-01 Fangrui Song <maskray@google.com>
6528
6529 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6530
6531 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6532
6533 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6534 forms for DW_AT_associated and DW_AT_allocated attributes,
6535 which is already checked in function attr_to_dynamic_prop.
6536
6537 2020-06-30 Tom Tromey <tromey@adacore.com>
6538
6539 * dwarf2/read.c (quirk_rust_enum): Correctly call
6540 alloc_rust_variant for default-less enum.
6541
6542 2020-06-30 Tom Tromey <tromey@adacore.com>
6543
6544 PR build/26183:
6545 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6546 gdb::to_string.
6547
6548 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6551 * gdbarch.h: Re-generate.
6552
6553 2020-06-28 Tom Tromey <tom@tromey.com>
6554
6555 * command.h (cmd_types): Remove.
6556 (cmd_type): Don't declare.
6557 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6558 typedef.
6559 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6560 * cli/cli-decode.c (cmd_type): Remove.
6561
6562 2020-06-27 Pedro Alves <palves@redhat.com>
6563
6564 * fork-child.c (prefork_hook): Adjust.
6565 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6566 Delete.
6567 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6568 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6569 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6570 Remove declarations.
6571 (struct inferior) <set_tty, tty>: New methods.
6572 (struct inferior) <terminal>: Rename to ...
6573 (struct inferior) <m_terminal>: ... this and make private.
6574 * main.c (captured_main_1): Adjust.
6575 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6576 (mi_cmd_inferior_tty_show): Adjust.
6577 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6578 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6579
6580 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6581
6582 * configure.ac: Add --enable-libctf: handle --disable-static
6583 properly.
6584 * acinclude.m4: sinclude ../config/enable.m4.
6585 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6586 (LIBCTF): Substitute in.
6587 (CTF_DEPS): New, likewise.
6588 (CLIBS): libctf needs symbols from libbfd: move earlier.
6589 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6590 flags.
6591 * ctfread.c: Surround in ENABLE_LIBCTF.
6592 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6593 * configure: Regenerate.
6594 * config.in: Likewise.
6595
6596 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6599
6600 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6601
6602 * inferior.h (struct inferior) <terminal>: Change type to
6603 gdb::unique_xmalloc_ptr<char>.
6604 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6605 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6606 field, adjust to unique pointer.
6607 (get_inferior_io_terminal): Adjust to unique pointer.
6608
6609 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6612 registers, not just the known core set of registers.
6613
6614 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6615
6616 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6617 fflags, frm, and fcsr registers.
6618 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6619 restore groups.
6620 (riscv_tdesc_unknown_reg): New function.
6621 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6622 tdesc_use_registers.
6623 * riscv-tdep.h (struct gdbarch_tdep): Add
6624 unknown_csrs_first_regnum, unknown_csrs_count,
6625 duplicate_fflags_regnum, duplicate_frm_regnum, and
6626 duplicate_fcsr_regnum fields.
6627
6628 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6631 callback, use the callback (when not null) to help number unknown
6632 registers.
6633 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6634 (tdesc_use_registers): Add extra parameter to declaration.
6635
6636 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6639 in the file.
6640 (class riscv_pending_register_alias): Likewise.
6641 (riscv_register_feature::register_info): Change 'required_p' field
6642 to 'required', and change its type. Add 'check' member function.
6643 (riscv_register_feature::register_info::check): Define new member
6644 function.
6645 (riscv_xreg_feature): Change initialisation of 'required' field.
6646 (riscv_freg_feature): Likewise.
6647 (riscv_virtual_feature): Likewise.
6648 (riscv_csr_feature): Likewise.
6649 (riscv_check_tdesc_feature): Take extra parameter, the csr
6650 tdesc_feature, rewrite the function to use the new
6651 riscv_register_feature::register_info::check function.
6652 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6653
6654 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6655
6656 * features/Makefile: Remove all references to the deleted files
6657 below.
6658 * features/riscv/32bit-csr.c: Deleted.
6659 * features/riscv/32bit-csr.xml: Deleted.
6660 * features/riscv/64bit-csr.c: Deleted.
6661 * features/riscv/64bit-csr.xml: Deleted.
6662 * features/riscv/rebuild-csr-xml.sh: Deleted.
6663
6664 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6667 whitespace error for declaration of names member variable.
6668 (struct riscv_register_feature): Add new prefer_first_name member
6669 variable, and fix whitespace error in declaration of registers.
6670 (riscv_xreg_feature): Initialize prefer_first_name field.
6671 (riscv_freg_feature): Likewise.
6672 (riscv_virtual_feature): Likewise.
6673 (riscv_csr_feature): Likewise.
6674 (riscv_register_name): Expand on comments. Remove register name
6675 modifications for CSR and virtual registers.
6676
6677 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6680 errors.
6681
6682 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6685 riscv-opc.h.
6686 (class riscv_pending_register_alias): New class.
6687 (riscv_check_tdesc_feature): Take vector of pending aliases and
6688 populate it as appropriate.
6689 (riscv_setup_register_aliases): Delete.
6690 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6691 to riscv_check_tdesc_feature in all cases. Use the vector to
6692 create the register aliases.
6693
6694 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6695
6696 * sol2-tdep.c (sol2_static_transform_name): Remove.
6697 (sol2_init_abi): Don't register it.
6698 * gdbarch.sh (static_transform_name): Remove.
6699 * gdbarch.c, gdbarch.h: Regenerate.
6700
6701 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6702 gdbarch_static_transform_name.
6703 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6704 * stabsread.c (define_symbol) <'X'>: Remove.
6705 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6706 handling.
6707 <'V'>: Likewise.
6708 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6709 <'S'>: Remove call to gdbarch_static_transform_name.
6710
6711 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712
6713 * procfs.c (procfs_pre_trace): New function.
6714 (procfs_target::create_inferior): Pass it to fork_inferior.
6715
6716 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6717
6718 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6719 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6720 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6721 sol2-tdep.o, sparc-sol2-tdep.o.
6722 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6723 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6724 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6725 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6726
6727 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6728
6729 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6730 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6731 Call sol2_init_abi.
6732 Remove calls to set_gdbarch_skip_solib_resolver,
6733 set_gdbarch_core_pid_to_str.
6734 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6735 (i386_sol2_static_transform_name): Remove.
6736 (i386_sol2_init_abi): Call sol2_init_abi.
6737 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6738 set_gdbarch_static_transform_name,
6739 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6740 Use sol2_sigtramp_p.
6741 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6742 (sol2_sigtramp_p): New function.
6743 (sol2_static_transform_name): New function.
6744 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6745 (sol2_init_abi): New function.
6746 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6747 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6748 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6749 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6750 (sparc_sol2_static_transform_name): Remove.
6751 (sparc32_sol2_init_abi): Call sol2_init_abi.
6752 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6753 set_gdbarch_static_transform_name,
6754 set_gdbarch_skip_solib_resolver,
6755 set_gdbarch_core_pid_to_str.
6756 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6757 (sparc_sol2_static_transform_name): Remove
6758 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6759 call sol2_sigtramp_p.
6760 (sparc64_sol2_init_abi): Call sol2_init_abi.
6761 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6762 set_gdbarch_static_transform_name,
6763 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6764
6765 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6766
6767 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6768 * exec.c (validate_exec_file): If from_tty, set both
6769 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6770 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6771 and from_tty, unconditionally ask a confirmation.
6772
6773 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * target-descriptions.c (tdesc_architecture_name): Protect against
6776 NULL pointer dereference.
6777 (maint_print_xml_tdesc_cmd): New function.
6778 (_initialize_target_descriptions): Register new 'maint print
6779 xml-tdesc' command and give it the filename completer.
6780 * NEWS: Mention new 'maint print xml-tdesc' command.
6781
6782 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * target-descriptions.c (class tdesc_compatible_info): New class.
6785 (struct target_desc): Change type of compatible vector.
6786 (tdesc_compatible_p): Update for change in type of
6787 target_desc::compatible.
6788 (tdesc_compatible_info_list): New function.
6789 (tdesc_compatible_info_arch_name): New function.
6790 (tdesc_add_compatible): Update for change in type of
6791 target_desc::compatible.
6792 (print_c_tdesc::visit_pre): Likewise.
6793
6794 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6795
6796 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6797 whitespace to underscore.
6798 (maint_print_c_tdesc_cmd): Use fake filename for target
6799 descriptions that came from the target.
6800 (_initialize_target_descriptions): Add filename command completion
6801 for 'maint print c-tdesc'.
6802
6803 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6806 lines.
6807
6808 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6811 lines.
6812 (dwarf2_find_location_expression): Likewise.
6813 (call_site_parameter_matches): Likewise.
6814 (dwarf2_compile_expr_to_ax): Likewise.
6815 (disassemble_dwarf_expression): Likewise.
6816 (loclist_describe_location): Likewise.
6817
6818 2020-06-23 Pedro Alves <palves@redhat.com>
6819
6820 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6821 progspace-and-thread.h. Include scoped-mock-context.h instead.
6822 (register_to_value_test): Use scoped_mock_context.
6823 * regcache.c: Include "scoped-mock-context.h".
6824 (cooked_read_test): Don't error out if a target is already pushed.
6825 Use scoped_mock_context. Adjust.
6826 * scoped-mock-context.h: New file.
6827
6828 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6831 initializer.
6832 (ada_language::is_string_type_p): New member function.
6833 * c-lang.c (c_language_data): Delete la_is_string_type_p
6834 initializer.
6835 (cplus_language_data): Likewise.
6836 (asm_language_data): Likewise.
6837 (minimal_language_data): Likewise.
6838 * d-lang.c (d_language_data): Likewise.
6839 * f-lang.c (f_is_string_type_p): Delete function, implementation
6840 moved to f_language::is_string_type_p.
6841 (f_language_data): Delete la_is_string_type_p initializer.
6842 (f_language::is_string_type_p): New member function,
6843 implementation from f_is_string_type_p.
6844 * go-lang.c (go_is_string_type_p): Delete function, implementation
6845 moved to go_language::is_string_type_p.
6846 (go_language_data): Delete la_is_string_type_p initializer.
6847 (go_language::is_string_type_p): New member function,
6848 implementation from go_is_string_type_p.
6849 * language.c (language_defn::is_string_type_p): Define new member
6850 function.
6851 (default_is_string_type_p): Make static, add comment copied from
6852 header file.
6853 (unknown_language_data): Delete la_is_string_type_p initializer.
6854 (unknown_language::is_string_type_p): New member function.
6855 (auto_language_data): Delete la_is_string_type_p initializer.
6856 (auto_language::is_string_type_p): New member function.
6857 * language.h (language_data): Delete la_is_string_type_p field.
6858 (language_defn::is_string_type_p): Declare new function.
6859 (default_is_string_type_p): Delete desclaration, move comment to
6860 definition.
6861 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6862 moved to m2_language::is_string_type_p.
6863 (m2_language_data): Delete la_is_string_type_p initializer.
6864 (m2_language::is_string_type_p): New member function,
6865 implementation from m2_is_string_type_p.
6866 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6867 initializer.
6868 * opencl-lang.c (opencl_language_data): Likewise.
6869 * p-lang.c (pascal_is_string_type_p): Delete function,
6870 implementation moved to pascal_language::is_string_type_p.
6871 (pascal_language_data): Delete la_is_string_type_p initializer.
6872 (pascal_language::is_string_type_p): New member function,
6873 implementation from pascal_is_string_type_p.
6874 * rust-lang.c (rust_is_string_type_p): Delete function,
6875 implementation moved to rust_language::is_string_type_p.
6876 (rust_language_data): Delete la_is_string_type_p initializer.
6877 (rust_language::is_string_type_p): New member function,
6878 implementation from rust_is_string_type_p.
6879 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6880 is_string_type_p.
6881
6882 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * ada-lang.c (ada_language_data): Delete la_print_typedef
6885 initializer.
6886 (ada_language::print_typedef): New member function.
6887 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6888 (cplus_language_data): Likewise.
6889 (asm_language_data): Likewise.
6890 (minimal_language_data): Likewise.
6891 * d-lang.c (d_language_data): Likewise.
6892 * f-lang.c (f_language_data): Likewise.
6893 (f_language::print_typedef): New member function.
6894 * go-lang.c (go_language_data): Delete la_print_typedef
6895 initializer.
6896 * language.c (language_defn::print_typedef): Define member
6897 function.
6898 (unknown_language_data): Delete la_print_typedef initializer.
6899 (unknown_language::print_typedef): New member function.
6900 (auto_language_data): Delete la_print_typedef initializer.
6901 (auto_language::print_typedef): New member function.
6902 * language.h (language_data): Delete la_print_typedef field.
6903 (language_defn::print_typedef): Declare new member function.
6904 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6905 (default_print_typedef): Delete declaration.
6906 * m2-lang.c (m2_language_data): Delete la_print_typedef
6907 initializer.
6908 (m2_language::print_typedef): New member function.
6909 * objc-lang.c (objc_language_data): Delete la_print_typedef
6910 initializer.
6911 * opencl-lang.c (opencl_language_data): Likewise.
6912 * p-lang.c (pascal_language_data): Likewise.
6913 (pascal_language::print_typedef): New member function.
6914 * rust-lang.c (rust_print_typedef): Delete function,
6915 implementation moved to rust_language::print_typedef.
6916 (rust_language): Delete la_print_typedef initializer.
6917 (rust_language::print_typedef): New member function,
6918 implementation from rust_print_typedef.
6919 * typeprint.c (default_print_typedef): Delete.
6920
6921 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6922
6923 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6924 (ada_language::printstr): New member function.
6925 * c-lang.c (c_language_data): Delete la_printstr initializer.
6926 (cplus_language_data): Likewise.
6927 (asm_language_data): Likewise.
6928 (minimal_language_data): Likewise.
6929 * d-lang.c (d_language_data): Likewise.
6930 * f-lang.c (f_printstr): Rename to f_language::printstr.
6931 (f_language_data): Delete la_printstr initializer.
6932 (f_language::printstr): New member function, implementation from
6933 f_printstr.
6934 * go-lang.c (go_language_data): Delete la_printstr initializer.
6935 * language.c (language_defn::printstr): Define new member
6936 function.
6937 (unk_lang_printstr): Delete.
6938 (unknown_language_data): Delete la_printstr initializer.
6939 (unknown_language::printstr): New member function.
6940 (auto_language_data): Delete la_printstr initializer.
6941 (auto_language::printstr): New member function.
6942 * language.h (language_data): Delete la_printstr field.
6943 (language_defn::printstr): Declare new member function.
6944 (LA_PRINT_STRING): Update call to printstr.
6945 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6946 (m2_language_data): Delete la_printstr initializer.
6947 (m2_language::printstr): New member function, implementation from
6948 m2_printstr.
6949 * objc-lang.c (objc_language_data): Delete la_printstr
6950 initializer.
6951 * opencl-lang.c (opencl_language_data): Likewise.
6952 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6953 (pascal_language_data): Delete la_printstr initializer.
6954 (pascal_language::printstr): New member function, implementation
6955 from pascal_printstr.
6956 * p-lang.h (pascal_printstr): Delete declaration.
6957 * rust-lang.c (rust_printstr): Update header comment.
6958 (rust_language_data): Delete la_printstr initializer.
6959 (rust_language::printstr): New member function.
6960
6961 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6964 (ada_language::printchar): New member function.
6965 * c-lang.c (c_language_data): Delete la_printchar initializer.
6966 (cplus_language_data): Likewise.
6967 (asm_language_data): Likewise.
6968 (minimal_language_data): Likewise.
6969 * d-lang.c (d_language_data): Likewise.
6970 * f-lang.c (f_printchar): Rename to f_language::printchar.
6971 (f_language_data): Delete la_printchar initializer.
6972 (f_language::printchar): New member function, implementation from
6973 f_printchar.
6974 * go-lang.c (go_language_data): Delete la_printchar initializer.
6975 * language.c (unk_lang_printchar): Delete.
6976 (language_defn::printchar): Define new member function.
6977 (unknown_language_data): Delete la_printchar initializer.
6978 (unknown_language::printchar): New member function.
6979 (auto_language_data): Delete la_printchar initializer.
6980 (auto_language::printchar): New member function.
6981 * language.h (language_data): Delete la_printchar field.
6982 (language_defn::printchar): Declare new member function.
6983 (LA_PRINT_CHAR): Update call to printchar.
6984 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6985 (m2_language::printchar): New member function.
6986 * objc-lang.c (objc_language_data): Delete la_printchar
6987 initializer.
6988 * opencl-lang.c (opencl_language_data): Likewise.
6989 * p-lang.c (pascal_language_data): Delete la_printchar
6990 initializer.
6991 (pascal_language::printchar): New member function.
6992 * rust-lang.c (rust_printchar): Rename to
6993 rust_language::printchar.
6994 (rust_language_data): Delete la_printchar initializer.
6995 (rust_language::printchar): New member function, implementation
6996 from rust_printchar.
6997
6998 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7001 (ada_language_data): Delete la_emitchar initializer.
7002 (ada_language::emitchar): New member function, implementation from
7003 emit_char.
7004 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7005 (cplus_language_data): Likewise.
7006 (asm_language_data): Likewise.
7007 (minimal_language_data): Likewise.
7008 * d-lang.c (d_language_data): Likewise.
7009 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7010 (f_language_data): Delete la_emitchar initializer.
7011 (f_language::emitchar): New member function, implementation from
7012 f_emit_char.
7013 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7014 * language.c (unk_lang_emit_char): Delete.
7015 (language_defn::emitchar): New member function definition.
7016 (unknown_language_data): Delete la_emitchar initializer.
7017 (unknown_language::emitchar): New member function.
7018 (auto_language_data): Delete la_emitchar initializer.
7019 (auto_language::emitchar): New member function.
7020 * language.h (language_data): Delete la_emitchar field.
7021 (language_defn::emitchar): New member field declaration.
7022 (LA_EMIT_CHAR): Update call to emitchar.
7023 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7024 (m2_language_data): Delete la_emitchar initializer.
7025 (m2_language::emitchar): New member function, implementation from
7026 m2_emit_char.
7027 * objc-lang.c (objc_language_data): Delete la_emitchar
7028 initializer.
7029 * opencl-lang.c (opencl_language_data): Likewise.
7030 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7031 (pascal_language_data): Delete la_emitchar initializer.
7032 (pascal_language::emitchar): New member function, implementation
7033 from pascal_emit_char.
7034 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7035 (rust_language_data): Delete la_emitchar initializer.
7036 (rust_language::emitchar): New member function, implementation
7037 from rust_emitchar.
7038
7039 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7042 (ada_language_data): Delete la_post_parser initializer.
7043 (ada_language::post_parser): New member function.
7044 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7045 (cplus_language_data): Likewise.
7046 (asm_language_data): Likewise.
7047 (minimal_language_data): Likewise.
7048 * d-lang.c (d_language_data): Likewise.
7049 * f-lang.c (f_language_data): Likewise.
7050 * go-lang.c (go_language_data): Likewise.
7051 * language.c (unknown_language_data): Likewise.
7052 (auto_language_data): Likewise.
7053 * language.h (language_data): Delete la_post_parser field.
7054 (language_defn::post_parser): New member function.
7055 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7056 * objc-lang.c (objc_language_data): Likewise.
7057 * opencl-lang.c (opencl_language_data): Likewise.
7058 * p-lang.c (pascal_language_data): Likewise.
7059 * parse.c (parse_exp_in_context): Update call to post_parser.
7060 (null_post_parser): Delete definition.
7061 * parser-defs.h (null_post_parser): Delete declaration.
7062 * rust-lang.c (rust_language_data): Delete la_post_parser
7063 initializer.
7064
7065 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * ada-lang.c (parse): Rename to ada_language::parser.
7068 (ada_language_data): Delete la_parser initializer.
7069 (ada_language::parser): New member function, implementation from
7070 parse.
7071 * c-lang.c (c_language_data): Delete la_parser initializer.
7072 (cplus_language_data): Likewise.
7073 (asm_language_data): Likewise.
7074 (minimal_language_data): Likewise.
7075 * d-lang.c (d_language_data): Likewise.
7076 (d_language::parser): New member function.
7077 * f-lang.c (f_language_data): Delete la_parser initializer.
7078 (f_language::parser): New member function.
7079 * go-lang.c (go_language_data): Delete la_parser initializer.
7080 (go_language::parser): New member function.
7081 * language.c (unk_lang_parser): Delete.
7082 (language_defn::parser): Define new member function.
7083 (unknown_language_data): Delete la_parser initializer.
7084 (unknown_language::parser): New member function.
7085 (auto_language_data): Delete la_parser initializer.
7086 (auto_language::parser): New member function.
7087 * language.h (language_data): Delete la_parser field.
7088 (language_defn::parser): Declare new member function.
7089 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7090 (m2_language::parser): New member function.
7091 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7092 * opencl-lang.c (opencl_language_data): Likewise.
7093 * p-lang.c (pascal_language_data): Likewise.
7094 (pascal_language::parser): New member function.
7095 * parse.c (parse_exp_in_context): Update call to parser.
7096 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7097 (rust_language::parser): New member function.
7098
7099 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * top.c (print_gdb_configuration): Print --with-python-libdir
7102 configuration value.
7103
7104 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7105
7106 * NEWS: Mention change to the alias command.
7107
7108 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7109
7110 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7111 (alias_command_completer)
7112 (make_alias_options_def_group): New functions.
7113 (alias_opts, alias_option_defs): New struct and array.
7114 (alias_usage_error): Update usage.
7115 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7116 Use option framework.
7117 (_initialize_cli_cmds): Update alias command help.
7118 Update aliases command help.
7119 (show_user):
7120 Add NULL for new default_args lookup_cmd argument.
7121 (valid_command_p): Rename to validate_aliased_command.
7122 Add NULL for new default_args lookup_cmd argument. Verify that the
7123 aliased_command has no default args.
7124 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7125 (lookup_cmd_1, lookup_cmd): New argument default_args.
7126 (add_alias_cmd):
7127 Add NULL for new default_args lookup_cmd argument.
7128 (print_help_for_command): Show default args under the layout
7129 alias some_alias = some_aliased_cmd some_alias_default_arg.
7130 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7131 xfree default_args in destructor.
7132 * cli/cli-script.c (process_next_line, do_define_command):
7133 Add NULL for new default_args lookup_cmd argument.
7134 * command.h: Declare new default_args argument in lookup_cmd
7135 and lookup_cmd_1.
7136 * completer.c (complete_line_internal_1):
7137 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7138 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7139 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7140 Likewise.
7141 * infcmd.c (_initialize_infcmd): Likewise.
7142 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7143 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7144 * python/py-param.c (add_setshow_generic): Likewise.
7145 * remote.c (_initialize_remote): Likewise.
7146 * top.c (execute_command): Prepend default_args if command has some.
7147 (set_verbose):
7148 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7149 * tracepoint.c (validate_actionline, encode_actions_1):
7150 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7151
7152 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7153
7154 * jit.c (jit_read_descriptor): Use bool as the return type.
7155 (jit_breakpoint_re_set_internal): Use bool as the return type.
7156 Invert the return value logic; return true if the jit breakpoint
7157 has been successfully initialized.
7158 (jit_inferior_init): Update the call to
7159 jit_breakpoint_re_set_internal.
7160
7161 2020-06-22 Pedro Alves <palves@redhat.com>
7162
7163 PR gdb/25939
7164 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7165 Use the current inferior instead. Don't return
7166 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7167 wait again.
7168 * sol-thread.c (sol_thread_target::wait): Don't reference
7169 inferior_ptid.
7170 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7171 (sol_update_thread_list_callback): Use the current inferior's pid
7172 instead of inferior_ptid.
7173
7174 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7175
7176 * procfs.c: Cleanup many comments.
7177
7178 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7179 (AFTER_WATCHFLAG): Replace by value.
7180
7181 (MAIN_PROC_NAME_FORMAT): Inline ...
7182 (create_procinfo): ... here.
7183
7184 (procfs_debug_inferior): Remove SYS_exec handling.
7185 (syscall_is_exec): Likewise.
7186 (procfs_set_exec_trap): Likewise.
7187
7188 (syscall_is_lwp_exit): Inline in callers.
7189 (syscall_is_exit): Likewise.
7190 (syscall_is_exec): Likewise.
7191 (syscall_is_lwp_create): Likewise.
7192
7193 (invalidate_cache): Remove #if 0 code.
7194
7195 (make_signal_thread_runnable): Remove.
7196 (procfs_target::resume): Remove #if 0 code.
7197
7198 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199
7200 PR gdb/25939
7201 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7202 call ...
7203 (procfs_target::create_inferior): ... here.
7204
7205 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7206
7207 * exec.c (validate_exec_file): Ensure the build-id is up to
7208 date by calling reopen_exec_file (that checks file timestamp
7209 to decide to re-read the file).
7210
7211 2020-06-18 Pedro Alves <palves@redhat.com>
7212
7213 PR gdb/25412
7214 * gdbthread.h (delete_thread, delete_thread_silent)
7215 (find_thread_ptid): Update comments.
7216 * thread.c (current_thread_): New global.
7217 (is_current_thread): Move higher, and reimplement.
7218 (inferior_thread): Reimplement.
7219 (set_thread_exited): Use bool. Add assertions.
7220 (add_thread_silent): Simplify thread-reuse handling by always
7221 calling delete_thread.
7222 (delete_thread): Remove intro comment.
7223 (find_thread_ptid): Skip exited threads.
7224 (switch_to_thread_no_regs): Write to current_thread_.
7225 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7226 INFERIOR_PTID. Clear current_thread_.
7227
7228 2020-06-18 Pedro Alves <palves@redhat.com>
7229
7230 * aix-thread.c (pd_update): Use switch_to_thread.
7231
7232 2020-06-18 Pedro Alves <palves@redhat.com>
7233
7234 * ravenscar-thread.c (ravenscar_thread_target): Update.
7235 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7236 (ravenscar_thread_target::add_active_thread): ... this. Don't
7237 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7238 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7239
7240 2020-06-18 Pedro Alves <palves@redhat.com>
7241
7242 * nat/windows-nat.c (current_windows_thread): Remove.
7243 * nat/windows-nat.h (current_windows_thread): Remove.
7244 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7245 Adjust.
7246 (display_selectors): Adjust to fetch the current
7247 windows_thread_info based on inferior_ptid.
7248 (fake_create_process): No longer write to current_windows_thread.
7249 (windows_nat_target::get_windows_debug_event):
7250 Don't set inferior_ptid or current_windows_thread.
7251 (windows_nat_target::wait): Adjust to not rely on
7252 current_windows_thread.
7253 (do_initial_windows_stuff): Now a method of windows_nat_target.
7254 Switch to the last_ptid thread.
7255 (windows_nat_target::attach): Adjust.
7256 (windows_nat_target::detach): Use switch_to_no_thread instead of
7257 writing to inferior_ptid directly.
7258 (windows_nat_target::create_inferior): Adjust.
7259
7260 2020-06-18 Pedro Alves <palves@redhat.com>
7261
7262 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7263
7264 2020-06-18 Pedro Alves <palves@redhat.com>
7265
7266 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7267 after creating it, instead of writing to inferior_ptid. Don't
7268 write to inferior_ptid.
7269
7270 2020-06-18 Pedro Alves <palves@redhat.com>
7271
7272 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7273
7274 2020-06-18 Pedro Alves <palves@redhat.com>
7275
7276 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7277 it, instead of writing to inferior_ptid.
7278
7279 2020-06-18 Pedro Alves <palves@redhat.com>
7280
7281 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7282 to inferior_ptid.
7283
7284 2020-06-18 Pedro Alves <palves@redhat.com>
7285
7286 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7287 instead of writing to inferior_ptid directly.
7288
7289 2020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * corelow.c (core_target::close): Use switch_to_no_thread instead
7292 of writing to inferior_ptid directly.
7293 (add_to_thread_list, core_target_open): Use switch_to_thread
7294 instead of writing to inferior_ptid directly.
7295
7296 2020-06-18 Pedro Alves <palves@redhat.com>
7297
7298 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7299 inferior_ptid.
7300 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7301 inferior_ptid.
7302 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7303 inferior_ptid directly.
7304 (darwin_nat_target::init_thread_list): Switch to thread, instead
7305 of writing to inferior_ptid.
7306 (darwin_nat_target::attach): Don't write to inferior_ptid.
7307 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7308
7309 2020-06-18 Pedro Alves <palves@redhat.com>
7310
7311 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7312 thread.
7313 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7314 Instead use switch_to_thread.
7315 (gnu_nat_target::detach): Use switch_to_no_thread
7316 instead of writing to inferior_ptid directly. Used passed-in
7317 inferior instead of looking up the inferior by pid.
7318
7319 2020-06-18 Pedro Alves <palves@redhat.com>
7320
7321 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7322 inferior_ptid.
7323
7324 2020-06-18 Pedro Alves <palves@redhat.com>
7325
7326 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7327 inferior_ptid.
7328 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7329 thread.
7330 (nto_procfs_target::detach): Avoid referencing
7331 inferior_ptid. Use switch_to_no_thread instead of writing to
7332 inferior_ptid directly.
7333 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7334 instead of writing to inferior_ptid directly.
7335 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7336 to thread.
7337
7338 2020-06-18 Pedro Alves <palves@redhat.com>
7339
7340 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7341 after creating it, instead of writing to inferior_ptid.
7342 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7343 to inferior_ptid directly.
7344 (gdbsim_target::wait): Don't write to inferior_ptid.
7345
7346 2020-06-18 Pedro Alves <palves@redhat.com>
7347
7348 * remote.c (remote_target::remote_notice_new_inferior): Use
7349 switch_to_thread instead of writing to inferior_ptid directly.
7350 (remote_target::add_current_inferior_and_thread): Use
7351 switch_to_no_thread instead of writing to inferior_ptid directly.
7352 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7353 and switch_to_thread instead of using set_current_inferior or
7354 writing to inferior_ptid directly.
7355
7356 2020-06-18 Pedro Alves <palves@redhat.com>
7357
7358 * tracectf.c (ctf_target_open): Switch to added thread instead of
7359 writing to inferior_ptid directly.
7360 (ctf_target::close): Use switch_to_no_thread instead of writing to
7361 inferior_ptid directly.
7362
7363 2020-06-18 Pedro Alves <palves@redhat.com>
7364
7365 * tracefile-tfile.c (tfile_target_open): Don't write to
7366 inferior_ptid directly, instead switch to added thread.
7367 (tfile_target::close): Use switch_to_no_thread instead of writing
7368 to inferior_ptid directly.
7369
7370 2020-06-18 Pedro Alves <palves@redhat.com>
7371
7372 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7373 (procfs_target::detach): Use switch_to_no_thread
7374 instead of writing to inferior_ptid directly.
7375 (do_attach): Change return type to void. Switch to the added
7376 thread.
7377 (procfs_target::create_inferior): Switch to the added thread.
7378 (procfs_do_thread_registers): Don't write to inferior_ptid.
7379
7380 2020-06-18 Pedro Alves <palves@redhat.com>
7381
7382 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7383 of writing to inferior_ptid.
7384 (scoped_restore_exited_inferior): Delete.
7385 (handle_vfork_child_exec_or_exit): Simplify using
7386 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7387 instead of writing to inferior_ptid.
7388 (THREAD_STOPPED_BY): Delete.
7389 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7390 (thread_stopped_by_hw_breakpoint): Delete.
7391 (save_waitstatus): Use
7392 scoped_restore_current_thread+switch_to_thread, and call
7393 target_stopped_by_watchpoint instead of
7394 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7395 instead of thread_stopped_by_sw_breakpoint, and
7396 target_stopped_by_hw_breakpoint instead of
7397 thread_stopped_by_hw_breakpoint.
7398 (handle_inferior_event)
7399 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7400 inferior_ptid directly, nor
7401 set_current_inferior/set_current_program_space. Use
7402 switch_to_thread / switch_to_inferior_no_thread instead.
7403
7404 2020-06-18 Pedro Alves <palves@redhat.com>
7405
7406 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7407 instead of writing to inferior_ptid.
7408
7409 2020-06-18 Pedro Alves <palves@redhat.com>
7410
7411 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7412 added thread.
7413 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7414 to the added thread.
7415 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7416 instead of writing to inferior_ptid.
7417
7418 2020-06-18 Pedro Alves <palves@redhat.com>
7419
7420 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7421 (register_to_value_test): Mock a program_space too. Heap-allocate
7422 the address space. Don't write to inferior_ptid. Use
7423 switch_to_thread instead.
7424
7425 2020-06-18 Pedro Alves <palves@redhat.com>
7426
7427 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7428 Delete.
7429 (find_signalled_thread()): New, factored out from
7430 linux_make_corefile_notes and adjusted to handle exited threads.
7431 (linux_make_corefile_notes): Adjust to use the new
7432 find_signalled_thread.
7433
7434 2020-06-18 Pedro Alves <palves@redhat.com>
7435
7436 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7437 of saving/restoring inferior_ptid.
7438
7439 2020-06-17 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7442 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7443 declare.
7444 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7445
7446 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7449 of partial symtabs.
7450
7451 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * regformats/reg-arm.dat: Remove.
7454 * regformats/reg-bfin.dat: Remove.
7455 * regformats/reg-cris.dat: Remove.
7456 * regformats/reg-crisv32.dat: Remove.
7457 * regformats/reg-m32r.dat: Remove.
7458 * regformats/reg-tilegx.dat: Remove.
7459 * regformats/reg-tilegx32.dat: Remove.
7460
7461 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7462
7463 * features/Makefile (WHICH): Remove arm files.
7464 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7465 * regformats/arm/arm-with-neon.dat: Remove.
7466 * regformats/arm/arm-with-vfpv2.dat: Remove.
7467 * regformats/arm/arm-with-vfpv3.dat: Remove.
7468
7469 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7470
7471 * features/Makefile (XMLTOC): Remove rx.xml.
7472
7473 2020-06-17 Pedro Alves <palves@redhat.com>
7474
7475 * gdbthread.h (thread_control_state) <trap_expected> Update
7476 comments.
7477
7478 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7479
7480 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7481 ada_language::lookup_symbol_nonlocal.
7482 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7483 (ada_language::lookup_symbol_nonlocal): New member function,
7484 implementation from ada_lookup_symbol_nonlocal.
7485 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7486 initializer.
7487 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7488 initializer.
7489 (cplus_language::lookup_symbol_nonlocal): New member function.
7490 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7491 (minimal_language_data) Likewise.
7492 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7493 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7494 initializer.
7495 (d_language::lookup_symbol_nonlocal): New member function.
7496 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7497 initializer.
7498 (f_language::lookup_symbol_nonlocal): New member function.
7499 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7500 initializer.
7501 * language.c (unknown_language_data): Likewise.
7502 (auto_language_data): Likewise.
7503 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7504 field.
7505 (language_defn::lookup_symbol_nonlocal): New member function.
7506 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7507 initializer.
7508 * objc-lang.c (objc_language_data): Likewise.
7509 * opencl-lang.c (opencl_language_data): Likewise.
7510 * p-lang.c (pascal_language_data): Likewise.
7511 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7512 rust_language::lookup_symbol_nonlocal.
7513 (rust_language_data): Delete la_lookup_symbol_nonlocal
7514 initializer.
7515 (rust_language::lookup_symbol_nonlocal): New member function,
7516 implementation from rust_lookup_symbol_nonlocal.
7517 * symtab.c (lookup_symbol_aux): Update call to
7518 lookup_symbol_nonlocal.
7519 (basic_lookup_symbol_nonlocal): Rename to...
7520 (language_defn::lookup_symbol_nonlocal): ...this, and update
7521 header comment. Remove language_defn parameter, and replace with
7522 uses of `this'.
7523 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7524
7525 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7528 initializer.
7529 (ada_language::value_print_inner): New member function.
7530 * c-lang.c (c_language_data): Delete la_value_print_inner
7531 initializer.
7532 (cplus_language_data): Likewise.
7533 (asm_language_data): Likewise.
7534 (minimal_language_data): Likewise.
7535 * d-lang.c (d_language_data): Likewise.
7536 (d_language::value_print_inner): New member function.
7537 * f-lang.c (f_language_data): Delete la_value_print_inner
7538 initializer.
7539 (f_language::value_print_inner): New member function.
7540 * f-lang.h (f_value_print_innner): Rename to...
7541 (f_value_print_inner): ...this (note spelling of 'inner').
7542 * f-valprint.c (f_value_print_innner): Rename to...
7543 (f_value_print_inner): ...this (note spelling of 'inner').
7544 * go-lang.c (go_language_data): Delete la_value_print_inner
7545 initializer.
7546 (go_language::value_print_inner): New member function.
7547 * language.c (language_defn::value_print_inner): Define new member
7548 function.
7549 (unk_lang_value_print_inner): Delete.
7550 (unknown_language_data): Delete la_value_print_inner initializer.
7551 (unknown_language::value_print_inner): New member function.
7552 (auto_language_data): Delete la_value_print_inner initializer.
7553 (auto_language::value_print_inner): New member function.
7554 * language.h (language_data): Delete la_value_print_inner field.
7555 (language_defn::value_print_inner): Delcare new member function.
7556 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7557 initializer.
7558 (m2_language::value_print_inner): New member function.
7559 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7560 initializer.
7561 * opencl-lang.c (opencl_language_data): Likewise.
7562 * p-lang.c (pascal_language_data): Likewise.
7563 (pascal_language::value_print_inner): New member function.
7564 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7565 initializer.
7566 (rust_language::value_print_inner): New member function.
7567 * valprint.c (do_val_print): Update call to value_print_inner.
7568
7569 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * ada-lang.c (ada_language_data): Delete la_value_print
7572 initializer.
7573 (ada_language::value_print): New member function.
7574 * c-lang.c (c_language_data): Delete la_value_print initializer.
7575 (cplus_language_data): Likewise.
7576 (asm_language_data): Likewise.
7577 (minimal_language_data): Likewise.
7578 * d-lang.c (d_language_data): Likewise.
7579 * f-lang.c (f_language_data): Likewise.
7580 * go-lang.c (go_language_data): Likewise.
7581 * language.c (unk_lang_value_print): Delete.
7582 (language_defn::value_print): Define new member function.
7583 (unknown_language_data): Delete la_value_print initializer.
7584 (unknown_language::value_print): New member function.
7585 (auto_language_data): Delete la_value_print initializer.
7586 (auto_language::value_print): New member function.
7587 * language.h (language_data): Delete la_value_print field.
7588 (language_defn::value_print): Declare new member function.
7589 (LA_VALUE_PRINT): Update call to value_print.
7590 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7591 * objc-lang.c (objc_language_data): Likewise.
7592 * opencl-lang.c (opencl_language_data): Likewise.
7593 * p-lang.c (pascal_language_data): Likewise.
7594 (pascal_language::value_print): New member function.
7595 * rust-lang.c (rust_language_data): Delete la_value_print
7596 initializer.
7597
7598 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * ada-lang.c (ada_watch_location_expression): Rename to
7601 ada_language::watch_location_expression.
7602 (ada_language_data): Delete la_watch_location_expression
7603 initializer.
7604 (ada_language::watch_location_expression): New member function,
7605 implementation from ada_watch_location_expression.
7606 * breakpoint.c (watch_command_1): Update call to
7607 watch_location_expression.
7608 * c-lang.c (c_watch_location_expression): Rename to
7609 language_defn::watch_location_expression.
7610 (c_language_data): Delete la_watch_location_expression
7611 initializer.
7612 (cplus_language_data): Likewise.
7613 (asm_language_data): Likewise.
7614 (minimal_language_data): Likewise.
7615 * c-lang.h (c_watch_location_expression): Delete declaration.
7616 * d-lang.c (d_language_data): Delete la_watch_location_expression
7617 initializer.
7618 * f-lang.c (f_language_data): Likewise.
7619 * go-lang.c (go_language_data): Likewise.
7620 * language.c (language_defn::watch_location_expression): Member
7621 function implementation from c_watch_location_expression.
7622 (unknown_language_data): Delete la_watch_location_expression
7623 initializer.
7624 (auto_language_data): Likewise.
7625 * language.h (language_data): Delete la_watch_location_expression
7626 field.
7627 (language_defn::watch_location_expression): Declare new member
7628 function.
7629 * m2-lang.c (m2_language_data): Delete
7630 la_watch_location_expression initializer.
7631 * objc-lang.c (objc_language_data): Likewise.
7632 * opencl-lang.c (opencl_language_data): Likewise.
7633 * p-lang.c (pascal_language_data): Likewise.
7634 * rust-lang.c (rust_watch_location_expression): Rename to
7635 rust_language::watch_location_expression.
7636 (rust_language_data): Delete la_watch_location_expression
7637 initializer.
7638 (rust_language::watch_location_expression): New member function,
7639 implementation from rust_watch_location_expression.
7640
7641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7644 ada_language::collect_symbol_completion_matches.
7645 (ada_language_data): Delete la_collect_symbol_completion_matches
7646 initializer.
7647 (ada_language::collect_symbol_completion_matches): New member
7648 function, implementation from
7649 ada_collect_symbol_completion_matches.
7650 * c-lang.c (c_language_data): Delete
7651 la_collect_symbol_completion_matches initializer.
7652 (cplus_language_data): Likewise.
7653 (asm_language_data): Likewise.
7654 (minimal_language_data): Likewise.
7655 * d-lang.c (d_language_data): Likewise.
7656 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7657 f_language::collect_symbol_completion_matches.
7658 (f_language_data): Delete la_collect_symbol_completion_matches
7659 initializer.
7660 (f_language::collect_symbol_completion_matches) New member
7661 function, implementation from f_collect_symbol_completion_matches.
7662 * go-lang.c (go_language_data): Delete
7663 la_collect_symbol_completion_matches initializer.
7664 * language.c (unknown_language_data): Likewise.
7665 (auto_language_data): Likewise.
7666 * language.h (language_data): Delete
7667 la_collect_symbol_completion_matches field.
7668 (language_defn::collect_symbol_completion_matches): New member
7669 function.
7670 * m2-lang.c (m2_language_data): Delete
7671 la_collect_symbol_completion_matches initializer.
7672 * objc-lang.c (objc_language_data): Likewise.
7673 * opencl-lang.c (opencl_language_data): Likewise.
7674 * p-lang.c (pascal_language_data): Likewise.
7675 * rust-lang.c (rust_language_data): Likewise.
7676 * symtab.c (default_collect_symbol_completion_matches): Delete.
7677 (collect_symbol_completion_matches): Update call to
7678 collect_symbol_completion_matches.
7679 (collect_symbol_completion_matches_type): Likewise.
7680 * symtab.h (default_collect_symbol_completion_matches): Delete
7681 declaration.
7682
7683 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7684
7685 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7686 (ada_language_data): Delete la_word_break_characters initializer.
7687 (ada_language::word_break_characters): New member function.
7688 * c-lang.c (c_language_data): Delete la_word_break_characters
7689 initializer.
7690 (cplus_language_data): Likewise.
7691 (asm_language_data): Likewise.
7692 (minimal_language_data): Likewise.
7693 * completer.c: Update global comment.
7694 (advance_to_expression_complete_word_point): Update call to
7695 word_break_characters.
7696 (complete_files_symbols): Likewise.
7697 (complete_line_internal_1): Likewise.
7698 (default_completer_handle_brkchars): Likewise.
7699 (skip_quoted_chars): Likewise.
7700 * d-lang.c (d_language_data): Delete la_word_break_characters
7701 initializer.
7702 * f-lang.c (f_word_break_characters): Delete.
7703 (f_language_data): Delete la_word_break_characters initializer.
7704 (f_language::word_break_characters): New member function.
7705 * go-lang.c (go_language_data): Delete la_word_break_characters
7706 initializer.
7707 * language.c (unknown_language_data): Likewise.
7708 (auto_language_data): Likewise.
7709 * language.h (default_word_break_characters): Move declaration to
7710 earlier in the file.
7711 (language_data): Delete la_word_break_characters field.
7712 (language_defn::word_break_characters): New member function.
7713 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7714 initializer.
7715 * objc-lang.c (objc_language_data): Likewise.
7716 * opencl-lang.c (opencl_language_data): Likewise.
7717 * p-lang.c (pascal_language_data): Likewise.
7718 * rust-lang.c (rust_language_data): Likewise.
7719
7720 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7721
7722 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7723 (ada_language_data): Delete la_get_symbol_name_matcher
7724 initializer.
7725 (language_defn::get_symbol_name_matcher_inner): New member
7726 function.
7727 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7728 initializer.
7729 (cplus_language_data): Likewise.
7730 (cplus_language::get_symbol_name_matcher_inner): New member
7731 function.
7732 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7733 (minimal_language_data): Likewise.
7734 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7735 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7736 initializer.
7737 * dictionary.c (iter_match_first_hashed): Update call to
7738 get_symbol_name_matcher.
7739 (iter_match_next_hashed): Likewise.
7740 (iter_match_next_linear): Likewise.
7741 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7742 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7743 initializer.
7744 (f_language::get_symbol_name_matcher_inner): New member function.
7745 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7746 initializer.
7747 * language.c (default_symbol_name_matcher): Update header comment,
7748 make static.
7749 (language_defn::get_symbol_name_matcher): New definition.
7750 (language_defn::get_symbol_name_matcher_inner): Likewise.
7751 (get_symbol_name_matcher): Delete.
7752 (unknown_language_data): Delete la_get_symbol_name_matcher
7753 initializer.
7754 (auto_language_data): Likewise.
7755 * language.h (language_data): Delete la_get_symbol_name_matcher
7756 field.
7757 (language_defn::get_symbol_name_matcher): New member function.
7758 (language_defn::get_symbol_name_matcher_inner): Likewise.
7759 (default_symbol_name_matcher): Delete declaration.
7760 * linespec.c (find_methods): Update call to
7761 get_symbol_name_matcher.
7762 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7763 initializer.
7764 * minsyms.c (lookup_minimal_symbol): Update call to
7765 get_symbol_name_matcher.
7766 (iterate_over_minimal_symbols): Likewise.
7767 * objc-lang.c (objc_language_data): Delete
7768 la_get_symbol_name_matcher initializer.
7769 * opencl-lang.c (opencl_language_data): Likewise.
7770 * p-lang.c (pascal_language_data): Likewise.
7771 * psymtab.c (psymbol_name_matches): Update call to
7772 get_symbol_name_matcher.
7773 * rust-lang.c (rust_language_data): Delete
7774 la_get_symbol_name_matcher initializer.
7775 * symtab.c (symbol_matches_search_name): Update call to
7776 get_symbol_name_matcher.
7777 (compare_symbol_name): Likewise.
7778
7779 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * ada-lang.c (ada_language_data): Delete la_compute_program
7782 initializer.
7783 * c-lang.c (c_language_data): Likewise.
7784 (c_language::compute_program): New member function.
7785 (cplus_language_data): Delete la_compute_program initializer.
7786 (cplus_language::compute_program): New member function.
7787 (asm_language_data): Delete la_compute_program initializer.
7788 (minimal_language_data): Likewise.
7789 * c-lang.h (c_compute_program): Update comment.
7790 (cplus_compute_program): Likewise.
7791 * compile/compile-c-support.c (c_compute_program): Likewise.
7792 (cplus_compute_program): Likewise.
7793 * compile/compile.c (compile_to_object): Update call to
7794 la_compute_program.
7795 * d-lang.c (d_language_data): Delete la_compute_program
7796 initializer.
7797 * f-lang.c (f_language_data): Likewise.
7798 * go-lang.c (go_language_data): Likewise.
7799 * language.c (unknown_language_data): Likewise.
7800 (auto_language_data): Likewise.
7801 * language.h (language_data): Delete la_compute_program field.
7802 (language_defn::compute_program): New member function.
7803 * m2-lang.c (m2_language_data): Delete la_compute_program
7804 initializer.
7805 * objc-lang.c (objc_language_data): Likewise.
7806 * opencl-lang.c (opencl_language_data): Likewise.
7807 * p-lang.c (pascal_language_data): Likewise.
7808 * rust-lang.c (rust_language_data): Likewise.
7809
7810 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * ada-lang.c (ada_language_data) Delete
7813 la_class_name_from_physname initializer.
7814 * c-lang.c (c_language_data): Likewise.
7815 (cplus_language_data): Likewise.
7816 (cplus_language::class_name_from_physname): New member function.
7817 (asm_language_data): Delete la_class_name_from_physname
7818 initializer.
7819 (minimal_language_data): Likewise.
7820 * d-lang.c (d_language_data): Likewise.
7821 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7822 method on language_defn class.
7823 (guess_full_die_structure_name): Likewise.
7824 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7825 initializer.
7826 * go-lang.c (go_language_data): Likewise.
7827 * language.c (language_class_name_from_physname): Delete.
7828 (unk_lang_class_name): Delete.
7829 (unknown_language_data): Delete la_class_name_from_physname
7830 initializer.
7831 (auto_language_data): Likewise.
7832 * language.h (language_data): Delete la_class_name_from_physname
7833 field.
7834 (language_defn::class_name_from_physname): New function.
7835 (language_class_name_from_physname): Delete declaration.
7836 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7837 initializer.
7838 * objc-lang.c (objc_language_data): Likewise.
7839 * opencl-lang.c (opencl_language_data): Likewise.
7840 * p-lang.c (pascal_language_data): Likewise.
7841 * rust-lang.c (rust_language_data): Likewise.
7842
7843 2020-06-16 Tom Tromey <tom@tromey.com>
7844
7845 * tui/tui-data.h (STATUS_NAME): New macro.
7846 * tui/tui-layout.c (tui_remove_some_windows)
7847 (initialize_known_windows, tui_register_window)
7848 (tui_layout_split::remove_windows, initialize_layouts)
7849 (tui_new_layout_command): Don't use hard-coded window names.
7850
7851 2020-06-16 Tom Tromey <tom@tromey.com>
7852
7853 PR tui/25348:
7854 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7855 tui_initialize_readline. Only run once. Call rl_initialize.
7856 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7857 tui_initialize_readline.
7858 * tui/tui-io.c (tui_setup_io): Call
7859 tui_ensure_readline_initialized.
7860 * tui/tui-interp.c (tui_interp::init): Update.
7861
7862 2020-06-16 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7865 Also preserve the status window.
7866
7867 2020-06-16 Tom Tromey <tom@tromey.com>
7868
7869 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7870 where m_window==nullptr.
7871
7872 2020-06-15 Tom Tromey <tromey@adacore.com>
7873
7874 * windows-nat.c (windows_nat::handle_output_debug_string):
7875 Update.
7876 (windows_nat::handle_ms_vc_exception): Update.
7877 * target.h (target_read_string): Change API.
7878 * target.c (target_read_string): Change API.
7879 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7880 Update.
7881 * solib-frv.c (frv_current_sos): Update.
7882 * solib-dsbt.c (dsbt_current_sos): Update.
7883 * solib-darwin.c (darwin_current_sos): Update.
7884 * linux-thread-db.c (inferior_has_bug): Update.
7885 * expprint.c (print_subexp_standard): Update.
7886 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7887 (ada_exception_message_1): Update.
7888
7889 2020-06-15 Tom Tromey <tromey@adacore.com>
7890
7891 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7892
7893 2020-06-15 Tom Tromey <tromey@adacore.com>
7894
7895 * valprint.c (read_string): Update comment.
7896 * target.c (MIN): Remove.
7897 (target_read_string): Rewrite.
7898
7899 2020-06-15 Tom Tromey <tromey@adacore.com>
7900
7901 * corefile.c (read_memory_string): Remove.
7902 * ada-valprint.c (ada_value_print_ptr): Update.
7903 * ada-lang.h (ada_tag_name): Change return type.
7904 * ada-lang.c (type_from_tag): Update.
7905 (ada_tag_name_from_tsd): Change return type. Use
7906 target_read_string.
7907 (ada_tag_name): Likewise.
7908 * gdbcore.h (read_memory_string): Don't declare.
7909
7910 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7911
7912 * symtab.c (rbreak_command): Ignore Windows drive colon.
7913
7914 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * NEWS: Mention removed GDBserver host support.
7917
7918 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7919
7920 * features/riscv/rebuild-csr-xml.sh: Updated.
7921
7922 2020-06-11 Tom Tromey <tom@tromey.com>
7923
7924 PR gdb/18318:
7925 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7926
7927 2020-06-09 Jonny Grant <jg@jguk.org>
7928 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7929
7930 * main.c (captured_main_1): Don't print new line after help.
7931 (print_gdb_help): add mailing list and IRC channel information
7932 to --help. Add new lines between items in the footer. Remove
7933 quotes around bug url.
7934
7935 2020-06-11 Keith Seitz <keiths@redhat.com>
7936
7937 PR gdb/21356
7938 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7939 Resolve typedefs for type length calculations.
7940
7941 2020-06-10 Tom de Vries <tdevries@suse.de>
7942
7943 PR ada/24713
7944 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7945 (write_psymbols): Enable .gdb_index for ada.
7946 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7947 ada.
7948
7949 2020-06-10 Tom de Vries <tdevries@suse.de>
7950
7951 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7952 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7953 namei" instead of "const char *name" argument.
7954 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7955 dw2_symtab_iter_init.
7956
7957 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7960 to use type::field and field::type instead.
7961
7962 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7963
7964 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7965 to use field::type instead.
7966
7967 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * gdbtypes.h (struct field) <type, set_type>: New methods.
7970 Rename `type` field to...
7971 <m_type>: ... this. Change references throughout to use type or
7972 set_type methods.
7973 (FIELD_TYPE): Use field::type. Change call sites that modify
7974 the field's type to use field::set_type instead.
7975
7976 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7979 to use type::index_type instead.
7980
7981 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7984 methods.
7985 (TYPE_INDEX_TYPE): Use type::index_type.
7986 * gdbtypes.c (create_array_type_with_stride): Likewise.
7987
7988 2020-06-07 Tom Tromey <tom@tromey.com>
7989
7990 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7991 parameter.
7992 (generic_value_print): Update.
7993
7994 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 Revert commit 982a38f60b0.
7997 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7998
7999 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8002 avoid use after free.
8003
8004 2020-06-05 Tom de Vries <tdevries@suse.de>
8005
8006 * NEWS: Fix typos.
8007
8008 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8009
8010 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8011 the per_bfd object.
8012 (dwarf2_read_debug_names): Likewise.
8013 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8014 object when re-using a per_bfd object with an index.
8015
8016 2020-06-03 Tom de Vries <tdevries@suse.de>
8017
8018 PR symtab/26046
8019 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8020 children for C++.
8021 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8022 DW_TAG_subprogram.
8023
8024 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * ada-lang.c (ada_language_data): Delete skip_trampoline
8027 initializer.
8028 * c-lang.c (c_language_data): Likewise.
8029 (cplus_language_data): Likewise.
8030 (cplus_language::skip_trampoline): New member function.
8031 (asm_language_data): Delete skip_trampoline initializer.
8032 (minimal_language_data): Likewise.
8033 * d-lang.c (d_language_data): Likewise.
8034 * f-lang.c (f_language_data): Likewise.
8035 * go-lang.c (go_language_data): Likewise.
8036 * language.c (unk_lang_trampoline): Delete function.
8037 (skip_language_trampoline): Update.
8038 (unknown_language_data): Delete skip_trampoline initializer.
8039 (auto_language_data): Likewise.
8040 * language.h (language_data): Delete skip_trampoline field.
8041 (language_defn::skip_trampoline): New function.
8042 * m2-lang.c (m2_language_data): Delete skip_trampoline
8043 initializer.
8044 * objc-lang.c (objc_skip_trampoline): Delete function, move
8045 implementation to objc_language::skip_trampoline.
8046 (objc_language_data): Delete skip_trampoline initializer.
8047 (objc_language::skip_trampoline): New member function with
8048 implementation from objc_skip_trampoline.
8049 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8050 initializer.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * rust-lang.c (rust_language_data): Likewise.
8053
8054 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8057 (ada_language::demangle): New member function.
8058 * c-lang.c (c_language_data): Delete la_demangle initializer.
8059 (cplus_language_data): Delete la_demangle initializer.
8060 (cplus_language::demangle): New member function.
8061 (asm_language_data): Delete la_demangle initializer.
8062 (minimal_language_data): Delete la_demangle initializer.
8063 * d-lang.c (d_language_data): Delete la_demangle initializer.
8064 (d_language::demangle): New member function.
8065 * f-lang.c (f_language_data): Delete la_demangle initializer.
8066 (f_language::demangle): New member function.
8067 * go-lang.c (go_language_data): Delete la_demangle initializer.
8068 (go_language::demangle): New member function.
8069 * language.c (language_demangle): Update.
8070 (unk_lang_demangle): Delete.
8071 (unknown_language_data): Delete la_demangle initializer.
8072 (unknown_language::demangle): New member function.
8073 (auto_language_data): Delete la_demangle initializer.
8074 (auto_language::demangle): New member function.
8075 * language.h (language_data): Delete la_demangle field.
8076 (language_defn::demangle): New function.
8077 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8078 * objc-lang.c (objc_language_data): Delete la_demangle
8079 initializer.
8080 (objc_language::demangle): New member function.
8081 * opencl-lang.c (opencl_language_data): Delete la_demangle
8082 initializer.
8083 * p-lang.c (pascal_language_data): Likewise.
8084 * rust-lang.c (rust_language_data): Likewise.
8085 (rust_language::demangle): New member function.
8086
8087 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8088
8089 * ada-lang.c (ada_language_data): Delete la_print_type
8090 initializer.
8091 (ada_language::print_type): New member function.
8092 * c-lang.c (c_language_data): Delete la_print_type initializer.
8093 (c_language::print_type): New member function.
8094 (cplus_language_data): Delete la_print_type initializer.
8095 (cplus_language::print_type): New member function.
8096 (asm_language_data): Delete la_print_type initializer.
8097 (asm_language::print_type): New member function.
8098 (minimal_language_data): Delete la_print_type initializer.
8099 (minimal_language::print_type): New member function.
8100 * d-lang.c (d_language_data): Delete la_print_type initializer.
8101 (d_language::print_type): New member function.
8102 * f-lang.c (f_language_data): Delete la_print_type initializer.
8103 (f_language::print_type): New member function.
8104 * go-lang.c (go_language_data): Delete la_print_type initializer.
8105 (go_language::print_type): New member function.
8106 * language.c (unk_lang_print_type): Delete.
8107 (unknown_language_data): Delete la_print_type initializer.
8108 (unknown_language::print_type): New member function.
8109 (auto_language_data): Delete la_print_type initializer.
8110 (auto_language::print_type): New member function.
8111 * language.h (language_data): Delete la_print_type field.
8112 (language_defn::print_type): New function.
8113 (LA_PRINT_TYPE): Update.
8114 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8115 (m2_language::print_type): New member function.
8116 * objc-lang.c (objc_language_data): Delete la_print_type
8117 initializer.
8118 (objc_language::print_type): New member function.
8119 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8120 to opencl_language::print_type.
8121 (opencl_language_data): Delete la_print_type initializer.
8122 (opencl_language::print_type): New member function, implementation
8123 from opencl_print_type.
8124 * p-lang.c (pascal_language_data): Delete la_print_type
8125 initializer.
8126 (pascal_language::print_type): New member function.
8127 * rust-lang.c (rust_print_type): Delete, implementation moved to
8128 rust_language::print_type.
8129 (rust_language_data): Delete la_print_type initializer.
8130 (rust_language::print_type): New member function, implementation
8131 from rust_print_type.
8132
8133 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8136 implementation moves to...
8137 (ada_language::sniff_from_mangled_name): ...here. Update return
8138 type.
8139 (ada_language_data): Delete la_sniff_from_mangled_name
8140 initializer.
8141 * c-lang.c (c_language_data): Likewise.
8142 (cplus_language_data): Likewise.
8143 (cplus_language::sniff_from_mangled_name): New member function,
8144 implementation taken from gdb_sniff_from_mangled_name.
8145 (asm_language_data): Delete la_sniff_from_mangled_name
8146 initializer.
8147 (minimal_language_data): Likewise.
8148 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8149 implementation moves to cplus_language::sniff_from_mangled_name.
8150 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8151 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8152 moves to...
8153 (d_language::sniff_from_mangled_name): ...here.
8154 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8155 * f-lang.c (f_language_data): Likewise.
8156 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8157 moves to...
8158 (go_language::sniff_from_mangled_name): ...here.
8159 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8160 * language.c (language_sniff_from_mangled_name): Delete.
8161 (unknown_language_data): Delete la_sniff_from_mangled_name
8162 initializer.
8163 (auto_language_data): Likewise.
8164 * language.h (language_data): Delete la_sniff_from_mangled_name
8165 field.
8166 (language_defn::sniff_from_mangled_name): New function.
8167 (language_sniff_from_mangled_name): Delete declaration.
8168 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8169 field.
8170 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8171 implementation moves to...
8172 (objc_language::sniff_from_mangled_name): ...here.
8173 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8174 * opencl-lang.c (opencl_language_data): Likewise.
8175 * p-lang.c (pascal_language_data): Likewise.
8176 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8177 implementation moves to...
8178 (rust_language::sniff_from_mangled_name): ...here.
8179 (rust_language_data): Delete la_sniff_from_mangled_name
8180 initializer.
8181 * symtab.c (symbol_find_demangled_name): Call
8182 sniff_from_mangled_name member function.
8183
8184 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8187 initializer.
8188 * c-lang.c (c_language_data): Likewise.
8189 (cplus_language_data): Likewise.
8190 (cplus_language::search_name_hash): New member function.
8191 (asm_language_data): Delete la_search_name_hash initializer.
8192 (minimal_language_data): Likewise.
8193 * d-lang.c (d_language_data): Likewise.
8194 * dictionary.c (default_search_name_hash): Rename to...
8195 (language_defn::search_name_hash): ...this.
8196 * f-lang.c (f_language_data): Likewise.
8197 (f_language::search_name_hash): New member function.
8198 * go-lang.c (go_language_data): Delete la_search_name_hash
8199 initializer.
8200 * language.c (unknown_language_data): Likewise.
8201 (auto_language_data): Likewise.
8202 * language.h (struct language_data): Delete la_search_name_hash
8203 field.
8204 (language_defn::search_name_hash): Declare new member function.
8205 (default_search_name_hash): Delete declaration.
8206 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8207 initializer.
8208 * objc-lang.c (objc_language_data): Likewise.
8209 * opencl-lang.c (opencl_language_data): Likewise.
8210 * p-lang.c (pascal_language_data): Likewise.
8211 * rust-lang.c (rust_language_data): Likewise.
8212 * symtab.c (search_name_hash): Update call.
8213
8214 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8217 initializer.
8218 * c-lang.c (class compile_instance): Declare.
8219 (c_language_data): Delete la_get_compile_instance initializer.
8220 (c_language::get_compile_instance): New member function.
8221 (cplus_language_data): Delete la_get_compile_instance initializer.
8222 (cplus_language::get_compile_instance): New member function.
8223 (asm_language_data): Delete la_get_compile_instance initializer.
8224 (minimal_language_data): Likewise.
8225 * c-lang.h (c_get_compile_context): Update comment.
8226 (cplus_get_compile_context): Update comment.
8227 * compile/compile.c (compile_to_object): Update calls, don't rely
8228 on function pointer being NULL.
8229 * d-lang.c (d_language_data): Delete la_get_compile_instance
8230 initializer.
8231 * f-lang.c (f_language_data): Likewise.
8232 * go-lang.c (go_language_data): Likewise.
8233 * language.c (unknown_language_data): Likewise.
8234 (auto_language_data): Likewise.
8235 * language.h (language_data): Delete la_get_compile_instance field.
8236 (language_defn::get_compile_instance): New member function.
8237 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8238 initializer.
8239 * objc-lang.c (objc_language_data): Likewise.
8240 * opencl-lang.c (opencl_language_data): Likewise.
8241 * p-lang.c (pascal_language_data): Likewise.
8242 * rust-lang.c (rust_language_data): Likewise.
8243
8244 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8245
8246 * ada-lang.c (ada_add_all_symbols): Update comment.
8247 (ada_iterate_over_symbols): Delete, move implementation to...
8248 (ada_language::iterate_over_symbols): ...here, a new member
8249 function, rewrite to use range based for loop.
8250 (ada_language_data): Delete la_iterate_over_symbols initializer.
8251 * c-lang.c (c_language_data): Likewise.
8252 (cplus_language_data): Likewise.
8253 (asm_language_data): Likewise.
8254 (minimal_language_data): Likewise.
8255 * d-lang.c (d_language_data): Likewise.
8256 * f-lang.c (f_language_data): Likewise.
8257 * go-lang.c (go_language_data): Likewise.
8258 * language.c (unknown_language_data): Likewise.
8259 (auto_language_data): Likewise.
8260 * language.h (language_data): Delete la_iterate_over_symbols field.
8261 (language_defn::iterate_over_symbols): New member function.
8262 (LA_ITERATE_OVER_SYMBOLS): Update.
8263 * linespec.c (iterate_over_all_matching_symtabs): Update.
8264 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8265 initializer.
8266 * objc-lang.c (objc_language_data): Likewise.
8267 * opencl-lang.c (opencl_language_data): Likewise.
8268 * p-lang.c (pascal_language_data): Likewise.
8269 * rust-lang.c (rust_language_data): Likewise.
8270
8271 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * ada-lang.c (ada_language_data): Delete
8274 la_lookup_transparent_type initializer.
8275 * c-lang.c (c_language_data): Likewise.
8276 (cplus_language_data): Likewise.
8277 (cplus_language::lookup_transparent_type): New member function.
8278 (asm_language_data): Delete la_lookup_transparent_type
8279 initializer.
8280 (minimal_language_data): Likewise.
8281 * d-lang.c (d_language_data): Likewise.
8282 * f-lang.c (f_language_data): Likewise.
8283 * go-lang.c (go_language_data): Likewise.
8284 * language.c (unknown_language_data): Likewise.
8285 (auto_language_data): Likewise.
8286 * language.h (struct language_data): Delete
8287 la_lookup_transparent_type field.
8288 (language_defn::lookup_transparent_type): New member function.
8289 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8290 initializer.
8291 * objc-lang.c (objc_language_data): Likewise.
8292 * opencl-lang.c (opencl_language_data): Likewise.
8293 * p-lang.c (pascal_language_data): Likewise.
8294 * rust-lang.c (rust_language_data): Likewise.
8295 * symtab.c (symbol_matches_domain): Update call.
8296
8297 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8298
8299 * ada-lang.c (ada_language_arch_info): Delete function, move
8300 implementation to...
8301 (ada_language::language_arch_info): ...here, a new member
8302 function.
8303 (ada_language_data): Delete la_language_arch_info.
8304 * c-lang.c (c_language_data): Likewise.
8305 (c_language::language_arch_info): New member function.
8306 (cplus_language_arch_info): Delete function, move
8307 implementation to...
8308 (cplus_language::language_arch_info): ...here, a new member
8309 function.
8310 (cplus_language_data): Delete la_language_arch_info.
8311 (asm_language_data): Likewise.
8312 (asm_language::language_arch_info): New member function.
8313 (minimal_language_data): Delete la_language_arch_info.
8314 (minimal_language::language_arch_info): New member function.
8315 * d-lang.c (d_language_arch_info): Delete function, move
8316 implementation to...
8317 (d_language::language_arch_info): ...here, a new member
8318 function.
8319 (d_language_data): Delete la_language_arch_info.
8320 * f-lang.c (f_language_arch_info): Delete function, move
8321 implementation to...
8322 (f_language::language_arch_info): ...here, a new member
8323 function.
8324 (f_language_data): Delete la_language_arch_info.
8325 * go-lang.c (go_language_arch_info): Delete function, move
8326 implementation to...
8327 (go_language::language_arch_info): ...here, a new member
8328 function.
8329 (go_language_data): Delete la_language_arch_info.
8330 * language.c (unknown_language_data): Likewise.
8331 (unknown_language::language_arch_info): New member function.
8332 (auto_language_data): Delete la_language_arch_info.
8333 (auto_language::language_arch_info): New member function.
8334 (language_gdbarch_post_init): Update call to
8335 la_language_arch_info.
8336 * language.h (language_data): Delete la_language_arch_info
8337 function pointer.
8338 (language_defn::language_arch_info): New function.
8339 * m2-lang.c (m2_language_arch_info): Delete function, move
8340 implementation to...
8341 (m2_language::language_arch_info): ...here, a new member
8342 function.
8343 (m2_language_data): Delete la_language_arch_info.
8344 * objc-lang.c (objc_language_arch_info): Delete function, move
8345 implementation to...
8346 (objc_language::language_arch_info): ...here, a new member
8347 function.
8348 (objc_language_data): Delete la_language_arch_info.
8349 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8350 implementation to...
8351 (opencl_language::language_arch_info): ...here, a new member
8352 function.
8353 (opencl_language_data): Delete la_language_arch_info.
8354 * p-lang.c (pascal_language_arch_info): Delete function, move
8355 implementation to...
8356 (pascal_language::language_arch_info): ...here, a new member
8357 function.
8358 (pascal_language_data): Delete la_language_arch_info.
8359 * rust-lang.c (rust_language_arch_info): Delete function, move
8360 implementation to...
8361 (rust_language::language_arch_info): ...here, a new member
8362 function.
8363 (rust_language_data): Delete la_language_arch_info.
8364
8365 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8366
8367 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8368 initializer.
8369 * c-lang.c (c_language_data): Likewise.
8370 (cplus_language_data): Likewise.
8371 (cplus_language::pass_by_reference_info): New method.
8372 (asm_language_data): Delete la_pass_by_reference initializer.
8373 (minimal_language_data): Likewise.
8374 * cp-abi.c (cp_pass_by_reference): Remove use of
8375 default_pass_by_reference.
8376 * d-lang.c (d_language_data): Likewise.
8377 * f-lang.c (f_language_data): Likewise.
8378 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8379 default_pass_by_reference.
8380 * go-lang.c (go_language_data): Likewise.
8381 * language.c (language_pass_by_reference): Update.
8382 (default_pass_by_reference): Delete.
8383 (unknown_language_data): Delete la_pass_by_reference
8384 initializer.
8385 (auto_language_data): Likewise.
8386 * language.h (struct language_data): Delete la_pass_by_reference
8387 field.
8388 (language_defn::pass_by_reference_info): New member function.
8389 (default_pass_by_reference): Delete declaration.
8390 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8391 initializer.
8392 * objc-lang.c (objc_language_data): Likewise.
8393 * opencl-lang.c (opencl_language_data): Likewise.
8394 * p-lang.c (pascal_language_data): Likewise.
8395 * rust-lang.c (rust_language_data): Likewise.
8396
8397 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8398
8399 * ada-lang.c (ada_read_var_value): Delete function, move
8400 implementation to...
8401 (ada_language::read_var_value): ...here.
8402 (ada_language_data): Delete la_read_var_value initializer.
8403 * c-lang.c (c_language_data): Likewise.
8404 (cplus_language_data): Likewise.
8405 (minimal_language_data): Likewise.
8406 * d-lang.c (d_language_data): Likewise.
8407 * f-lang.c (f_language_data): Likewise.
8408 * findvar.c (default_read_var_value): Rename to...
8409 (language_defn::read_var_value): ...this.
8410 * findvar.c (read_var_value): Update header comment, and change to
8411 call member function instead of function pointer.
8412 * go-lang.c (go_language_data): Likewise.
8413 * language.c (unknown_language_data): Delete la_read_var_value
8414 initializer.
8415 (auto_language_data): Likewise.
8416 * language.h (struct language_data): Delete la_read_var_value
8417 field.
8418 (language_defn::read_var_value): New member function.
8419 (default_read_var_value): Delete declaration.
8420 * m2-lang.c (m2_language_data): Delete la_read_var_value
8421 initializer.
8422 * objc-lang.c (objc_language_data): Likewise.
8423 * opencl-lang.c (opencl_language_data): Likewise.
8424 * p-lang.c (pascal_language_data): Likewise.
8425 * rust-lang.c (rust_language_data): Likewise.
8426 * value.h (default_read_var_value): Delete declaration.
8427
8428 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_print_array_index): Delete function, move
8431 implementation to...
8432 (ada_language::print_array_index): ...here.
8433 (ada_language_data): Delete la_print_array_index initializer.
8434 * c-lang.c (c_language_data): Likewise.
8435 (cplus_language_data): Likewise.
8436 (minimal_language_data): Likewise.
8437 * d-lang.c (d_language_data): Likewise.
8438 * f-lang.c (f_language_data): Likewise.
8439 * go-lang.c (go_language_data): Likewise.
8440 * language.c (default_print_array_index): Delete function, move
8441 implementation to...
8442 (language_defn::print_array_index): ...here.
8443 (unknown_language_data): Delete la_print_array_index initializer.
8444 (auto_language_data): Likewise.
8445 * language.h (struct language_data): Delete la_print_array_index
8446 field.
8447 (language_defn::print_array_index): New member function.
8448 (LA_PRINT_ARRAY_INDEX): Update.
8449 (default_print_array_index): Delete declaration.
8450 * m2-lang.c (m2_language_data): Delete la_print_array_index
8451 initializer.
8452 * objc-lang.c (objc_language_data): Likewise.
8453 * opencl-lang.c (opencl_language_data): Likewise.
8454 * p-lang.c (pascal_language_data): Likewise.
8455 * rust-lang.c (rust_language_data): Likewise.
8456
8457 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8458
8459 * gdb/ada-lang.c (ada_language_defn): Convert to...
8460 (ada_language_data): ...this.
8461 (class ada_language): New class.
8462 (ada_language_defn): New static global.
8463 * gdb/c-lang.c (c_language_defn): Convert to...
8464 (c_language_data): ...this.
8465 (class c_language): New class.
8466 (c_language_defn): New static global.
8467 (cplus_language_defn): Convert to...
8468 (cplus_language_data): ...this.
8469 (class cplus_language): New class.
8470 (cplus_language_defn): New static global.
8471 (asm_language_defn): Convert to...
8472 (asm_language_data): ...this.
8473 (class asm_language): New class.
8474 (asm_language_defn): New static global.
8475 (minimal_language_defn): Convert to...
8476 (minimal_language_data): ...this.
8477 (class minimal_language): New class.
8478 (minimal_language_defn): New static global.
8479 * gdb/d-lang.c (d_language_defn): Convert to...
8480 (d_language_data): ...this.
8481 (class d_language): New class.
8482 (d_language_defn): New static global.
8483 * gdb/f-lang.c (f_language_defn): Convert to...
8484 (f_language_data): ...this.
8485 (class f_language): New class.
8486 (f_language_defn): New static global.
8487 * gdb/go-lang.c (go_language_defn): Convert to...
8488 (go_language_data): ...this.
8489 (class go_language): New class.
8490 (go_language_defn): New static global.
8491 * gdb/language.c (unknown_language_defn): Remove declaration.
8492 (current_language): Initialize to nullptr, real initialization is
8493 moved to _initialize_language.
8494 (languages): Delete global.
8495 (language_defn::languages): Define.
8496 (set_language_command): Use language_defn::languages.
8497 (set_language): Likewise.
8498 (range_error): Likewise.
8499 (language_enum): Likewise.
8500 (language_def): Likewise.
8501 (add_set_language_command): Use language_def::languages for the
8502 language list, and language_def to lookup language pointers.
8503 (skip_language_trampoline): Use language_defn::languages.
8504 (unknown_language_defn): Convert to...
8505 (unknown_language_data): ...this.
8506 (class unknown_language): New class.
8507 (unknown_language_defn): New static global.
8508 (auto_language_defn): Convert to...
8509 (auto_language_data): ...this.
8510 (class auto_language): New class.
8511 (auto_language_defn): New static global.
8512 (language_gdbarch_post_init): Use language_defn::languages.
8513 (_initialize_language): Initialize current_language.
8514 * gdb/language.h (struct language_defn): Rename to...
8515 (struct language_data): ...this.
8516 (struct language_defn): New.
8517 (auto_language_defn): Delete.
8518 (unknown_language_defn): Delete.
8519 (minimal_language_defn): Delete.
8520 (ada_language_defn): Delete.
8521 (asm_language_defn): Delete.
8522 (c_language_defn): Delete.
8523 (cplus_language_defn): Delete.
8524 (d_language_defn): Delete.
8525 (f_language_defn): Delete.
8526 (go_language_defn): Delete.
8527 (m2_language_defn): Delete.
8528 (objc_language_defn): Delete.
8529 (opencl_language_defn): Delete.
8530 (pascal_language_defn): Delete.
8531 (rust_language_defn): Delete.
8532 * gdb/m2-lang.c (m2_language_defn): Convert to...
8533 (m2_language_data): ...this.
8534 (class m2_language): New class.
8535 (m2_language_defn): New static global.
8536 * gdb/objc-lang.c (objc_language_defn): Convert to...
8537 (objc_language_data): ...this.
8538 (class objc_language): New class.
8539 (objc_language_defn): New static global.
8540 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8541 (opencl_language_data): ...this.
8542 (class opencl_language): New class.
8543 (opencl_language_defn): New static global.
8544 * gdb/p-lang.c (pascal_language_defn): Convert to...
8545 (pascal_language_data): ...this.
8546 (class pascal_language): New class.
8547 (pascal_language_defn): New static global.
8548 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8549 language pointer, update comment format.
8550 * gdb/rust-lang.c (rust_language_defn): Convert to...
8551 (rust_language_data): ...this.
8552 (class rust_language): New class.
8553 (rust_language_defn): New static global.
8554
8555 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8558 member variable.
8559 <m_stmt_at_address>: New member variable.
8560 (lnp_state_machine::record_line): Don't record some lines, update
8561 tracking of is_stmt at the same address.
8562 (lnp_state_machine::lnp_state_machine): Initialise new member
8563 variables.
8564
8565 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8566
8567 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8568 "-include gnu-nat-mig.h".
8569 * gnu-nat-mig.h: New file.
8570 * gnu-nat.c: Include "gnu-nat-mig.h".
8571 (exc_server, msg_reply_server, notify_server,
8572 process_reply_server): Remove declarations.
8573
8574 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8575
8576 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8577 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8578 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8579 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8580 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8581 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8582 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8583 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8584 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8585 to gnu_nat_target class.
8586 * gnu-nat.c: Likewise.
8587 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8588 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8589 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8590 object.
8591 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8592 instead of `gnu_target'.
8593
8594 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8595
8596 * i386-gnu-tdep.c: Include "gdbcore.h"
8597 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8598 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8599 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8600 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8601 i386_gnu_sigcontext_addr): New functions
8602 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8603 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8604 tdep.
8605
8606 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8607
8608 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8609 before fork_inferior call. Avoid calling it if target_is_pushed returns
8610 true.
8611
8612 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8613
8614 * gnu-nat.h (gnu_target): New variable declaration.
8615 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8616 gnu_target.
8617 * gnu-nat.c (gnu_target): New variable.
8618 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8619 add_thread_silent, and add_thread calls.
8620 (gnu_nat_target::create_inferior): Pass gnu_target to
8621 add_thread_silent, thread_change_ptid call.
8622 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8623 call.
8624
8625 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8626
8627 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8628 (gnu_nat_target::find_memory_regions): Remove unused
8629 `old_address' variable.
8630
8631 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8632
8633 * gnu-nat.c: Include "gdbarch.h".
8634
8635 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8636
8637 * reply_mig_hack.awk (Error return): Cast function through
8638 void *, to bypass compiler function call check.
8639
8640 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8641
8642 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8643 $(srcdir)/reply_mig_hack.awk.
8644
8645 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8646
8647 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8648
8649 2020-05-30 Jonny Grant <jg@jguk.org>
8650
8651 * configure.ac (ACX_BUGURL): change bug URL to https.
8652
8653 2020-05-30 Pedro Alves <palves@redhat.com>
8654
8655 * cp-support.c (replace_typedefs_template): New.
8656 (replace_typedefs_qualified_name): Handle
8657 DEMANGLE_COMPONENT_TEMPLATE.
8658
8659 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8662 dwarf2/index-cache.h, dwarf2/index-write.c,
8663 dwarf2/index-write.h, dwarf2/line-header.c,
8664 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8665 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8666 variables and fields from `dwarf2_per_objfile` to just
8667 `per_objfile` throughout.
8668
8669 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8670
8671 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8672 <push_dwarf_reg_entry_value>: Add comment.
8673
8674 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8675 Keith Seitz <keiths@redhat.com>
8676
8677 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8678 instead of PyEval_ReleaseLock.
8679 (class gdbpy_gil): Move to earlier in file.
8680 (finalize_python): Set gdb_python_initialized.
8681 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8682 when not initialized.
8683
8684 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8685
8686 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8687 <push_dwarf_reg_entry_value>: Remove assert. Override
8688 per_objfile with caller_per_objfile.
8689
8690 2020-05-28 Tom de Vries <tdevries@suse.de>
8691
8692 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8693 PR gold/15646 workaround to symbol kind "type".
8694
8695 2020-05-27 Tom Tromey <tromey@adacore.com>
8696
8697 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8698
8699 2020-05-27 Tom Tromey <tromey@adacore.com>
8700
8701 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8702 Use htab_find_with_hash.
8703 <add_abbrev>: Remove "abbrev_number" parameter.
8704 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8705 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8706 (hash_abbrev): Add comment.
8707 (abbrev_table::lookup_abbrev): Move to header file.
8708 (abbrev_table::read): Update.
8709
8710 2020-05-27 Tom Tromey <tromey@adacore.com>
8711
8712 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8713 method.
8714 <canonical_name>: New member.
8715 <raw_name>: Rename from "name".
8716 (partial_die_info): Initialize canonical_name.
8717 (scan_partial_symbols): Check raw_name.
8718 (partial_die_parent_scope, partial_die_full_name)
8719 (add_partial_symbol, add_partial_subprogram)
8720 (add_partial_enumeration, load_partial_dies): Use "name" method.
8721 (partial_die_info::name): New method.
8722 (partial_die_info::read, guess_partial_die_structure_name)
8723 (partial_die_info::fixup): Update.
8724
8725 2020-05-27 Tom Tromey <tromey@adacore.com>
8726
8727 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8728 <get_ref_die_offset>: Inline.
8729 <get_ref_die_offset_complaint>: New method.
8730 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8731 (attribute::get_ref_die_offset_complaint): Rename from
8732 get_ref_die_offset. Just issue complaint.
8733
8734 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8735
8736 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8737
8738 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8739
8740 * exec.c (exec_file_attach): Use errno value of first openp failure.
8741
8742 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8743
8744 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8745 Don't close thread handle.
8746
8747 2020-05-27 Tom Tromey <tom@tromey.com>
8748 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8751 shared_ptr.
8752 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8753 member.
8754 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8755 dwarf2_per_bfd_objfile_data_key>: New globals.
8756 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8757 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8758 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8759 shared.
8760 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8761 short-circuit when sharing.
8762 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8763 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8764
8765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8768 to...
8769 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8770 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8771
8772 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8775 build_name_components, find_name_components_bounds>:
8776 Add per_objfile parameter.
8777 (struct mapped_index) <symbol_name_at>: Likewise.
8778 (struct mapped_debug_names): Remove constructor.
8779 <dwarf2_per_objfile>: Remove field.
8780 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8781 (mapped_index_base::find_name_components_bounds,
8782 mapped_index_base::build_name_components,
8783 dw2_expand_symtabs_matching_symbol): Likewise.
8784 (class mock_mapped_index) <symbol_name_at>: Likewise.
8785 (check_match): Likewise.
8786 (check_find_bounds_finds): Likewise.
8787 (test_mapped_index_find_name_component_bounds): Update.
8788 (CHECK_MATCH): Update.
8789 (dw2_expand_symtabs_matching): Update.
8790 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8791 per_objfile parameter.
8792 <find_vec_in_debug_names>: Likewise.
8793 <m_per_objfile>: New field.
8794 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8795 parameter.
8796 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8797 (dw2_debug_names_iterator::next): Update.
8798 (dw2_debug_names_lookup_symbol): Update.
8799 (dw2_debug_names_expand_symtabs_for_function): Update.
8800 (dw2_debug_names_map_matching_symbols): Update.
8801 (dw2_debug_names_expand_symtabs_matching): Update.
8802 (dwarf2_read_debug_names): Update.
8803
8804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8805
8806 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8807 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8808 move to dwarf2_per_objfile.
8809 <read_in_chain>: Remove.
8810 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8811 remove_all_cus, age_comp_units>: New methods.
8812 <m_dwarf2_cus>: New member.
8813 (struct dwarf2_per_cu_data) <cu>: Remove.
8814 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8815 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8816 moved to methods of dwarf2_per_objfile.
8817 (dwarf2_clear_marks): Remove.
8818 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8819 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8820 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8821 (dwarf2_per_objfile::remove_all_cus): New.
8822 (class free_cached_comp_units) <~free_cached_comp_units>:
8823 Update.
8824 (load_cu): Update.
8825 (dw2_do_instantiate_symtab): Adjust.
8826 (fill_in_sig_entry_from_dwo_entry): Adjust.
8827 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8828 (cutu_reader::cutu_reader): Likewise.
8829 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8830 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8831 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8832 and dwarf2_per_objfile::age_comp_units.
8833 (load_partial_comp_unit): Update.
8834 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8835 (process_queue): Likewise.
8836 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8837 backlink.
8838 (dwarf2_read_addr_index): Likewise.
8839 (follow_die_offset): Likewise.
8840 (dwarf2_fetch_die_loc_sect_off): Likewise.
8841 (dwarf2_fetch_constant_bytes): Likewise.
8842 (dwarf2_fetch_die_type_sect_off): Likewise.
8843 (follow_die_sig_1): Likewise.
8844 (load_full_type_unit): Likewise.
8845 (read_signatured_type): Likewise.
8846 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8847 (dwarf2_cu::~dwarf2_cu): Remove.
8848 (dwarf2_per_objfile::get_cu): New.
8849 (dwarf2_per_objfile::set_cu): New.
8850 (age_cached_comp_units): Rename to...
8851 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8852 to std::unordered_map.
8853 (free_one_cached_comp_unit): Rename to...
8854 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8855 to std::unordered_map.
8856 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8857 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8858 a dwarf2_per_objfile in data.
8859 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8860 (dwarf2_clear_marks): Remove.
8861
8862 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8865 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8866 (init_tu_and_read_dwo_dies): Likewise.
8867 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8868 (cutu_reader::cutu_reader): Likewise.
8869 (load_partial_comp_unit): Likewise.
8870 (process_psymtab_comp_unit): Update.
8871 (build_type_psymtabs_1): Update.
8872 (process_skeletonless_type_unit): Update.
8873 (load_full_comp_unit): Update.
8874 (find_partial_die): Update.
8875 (dwarf2_read_addr_index): Update.
8876 (read_signatured_type): Update.
8877
8878 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8879
8880 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8881 m_header_read_in>: New fields.
8882 <get_header>: New method.
8883 * dwarf2/read.c (per_cu_header_read_in): Remove.
8884 (dwarf2_per_cu_data::get_header): New.
8885 (dwarf2_per_cu_data::addr_size): Update.
8886 (dwarf2_per_cu_data::offset_size): Update.
8887 (dwarf2_per_cu_data::ref_addr_size): Update.
8888
8889 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8890
8891 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8892 (dw2_do_instantiate_symtab): Update.
8893 (queue_and_load_all_dwo_tus): Change parameter from
8894 dwarf2_per_cu_data to dwarf2_cu.
8895 (dwarf2_fetch_die_loc_sect_off): Update.
8896 (dwarf2_fetch_constant_bytes): Update.
8897 (dwarf2_fetch_die_type_sect_off): Update.
8898
8899 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * dwarf2/read.c (process_full_comp_unit,
8902 process_full_type_unit): Remove per_cu, per_objfile paramters.
8903 Add dwarf2_cu parameter.
8904 (process_queue): Update.
8905
8906 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * dwarf2/read.c (create_cu_from_index_list): Replace
8909 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8910 (create_cus_from_index_list): Likewise.
8911 (create_cus_from_index): Likewise.
8912 (create_signatured_type_table_from_index): Likewise.
8913 (create_cus_from_debug_names_list): Likewise.
8914 (create_cus_from_debug_names): Likewise.
8915 (dwarf2_read_gdb_index): Update.
8916 (dwarf2_read_debug_names): Update.
8917
8918 2020-05-27 Tom Tromey <tom@tromey.com>
8919 Simon Marchi <simon.marchi@efficios.com>
8920
8921 * dwarf2/read.h (struct dwarf2_per_objfile)
8922 <get_type_for_signatured_type, set_type_for_signatured_type>:
8923 New methods.
8924 <m_type_map>: New member.
8925 (struct signatured_type) <type>: Remove.
8926 * dwarf2/read.c
8927 (dwarf2_per_objfile::get_type_for_signatured_type,
8928 dwarf2_per_objfile::set_type_for_signatured_type): New.
8929 (get_signatured_type): Use new methods.
8930
8931 2020-05-27 Tom Tromey <tom@tromey.com>
8932 Simon Marchi <simon.marchi@efficios.com>
8933
8934 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8935 (struct dwarf2_per_objfile) <type_units>: New member.
8936 <get_type_unit_group_unshareable>: New method.
8937 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8938 num_symtabs, symtabs>: Remove; move to
8939 type_unit_group_unshareable.
8940 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8941 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8942 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8943
8944 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * dwarf2/read.h (struct dwarf2_per_cu_data):
8947 <dwarf2_per_objfile>: Remove.
8948 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8949 dwarf2_per_objfile.
8950 (create_signatured_type_table_from_index): Likewise.
8951 (create_signatured_type_table_from_debug_names): Likewise.
8952 (create_debug_type_hash_table): Likewise.
8953 (fill_in_sig_entry_from_dwo_entry): Likewise.
8954 (create_type_unit_group): Likewise.
8955 (read_comp_units_from_section): Likewise.
8956 (create_cus_hash_table): Likewise.
8957
8958 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8959
8960 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8961 dwarf2_per_cu_data::dwarf2_per_objfile.
8962 (compute_compunit_symtab_includes): Likewise.
8963 (dwarf2_cu::start_symtab): Likewise.
8964
8965 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8966
8967 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8968 parameter.
8969 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8970 (read_namespace_alias): Update.
8971 (lookup_die_type): Update.
8972 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8973 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8974 Update.
8975 (disassemble_dwarf_expression): Update.
8976
8977 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8978
8979 * dwarf2/read.h (struct dwarf2_queue_item): Add
8980 dwarf2_per_objfile parameter, assign new parameter.
8981 <per_objfile>: New field.
8982 * dwarf2/read.c (free_one_cached_comp_unit): Add
8983 dwarf2_per_objfile parameter.
8984 (queue_comp_unit): Likewise.
8985 (dw2_do_instantiate_symtab): Update.
8986 (process_psymtab_comp_unit): Update.
8987 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8988 (process_imported_unit_die): Update.
8989 (queue_and_load_dwo_tu): Update.
8990 (follow_die_offset): Update.
8991 (follow_die_sig_1): Update.
8992
8993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8996 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8997 (read_call_site_scope): Assign per_objfile.
8998 (dwarf2_per_cu_data::objfile): Remove.
8999 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9000 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9001 dwarf2_per_objfile parameter.
9002 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9003 dwarf2_per_objfile parameter.
9004 (dwarf_expr_reg_to_entry_parameter): Add output
9005 dwarf2_per_objfile parameter.
9006 (locexpr_get_frame_base): Update.
9007 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9008 <push_dwarf_reg_entry_value>: Update.
9009 <call_site_to_target_addr>: Update.
9010 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9011 parameter.
9012 (value_of_dwarf_reg_entry): Update.
9013 (rw_pieced_value): Update.
9014 (indirect_synthetic_pointer): Update.
9015 (dwarf2_evaluate_property): Update.
9016 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9017 parameter.
9018 (locexpr_read_variable): Update.
9019 (locexpr_get_symbol_read_needs): Update.
9020 (loclist_read_variable): Update.
9021
9022 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9023
9024 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9025 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9026 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9027 parameter.
9028 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9029 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9030 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9031 parameter.
9032 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9033 sect_variable_value): Add dwarf2_per_objfile parameter.
9034 (class dwarf_evaluate_loc_desc) <dwarf_call,
9035 dwarf_variable_value>: Update.
9036 (fetch_const_value_from_synthetic_pointer): Add
9037 dwarf2_per_objfile parameter.
9038 (fetch_const_value_from_synthetic_pointer): Update.
9039 (coerced_pieced_ref): Update.
9040 (class symbol_needs_eval_context) <dwarf_call,
9041 dwarf_variable_value>: Update.
9042 (dwarf2_compile_expr_to_ax): Update.
9043
9044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9047 parameter.
9048 (dwarf2_evaluate_loc_desc_full): Update.
9049
9050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9053 parameter.
9054 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9055 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9056 dwarf2_per_objfile parameter.
9057 (decode_debug_loc_dwo_addresses): Likewise.
9058 (dwarf2_find_location_expression): Update.
9059 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9060 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9061 parameter.
9062 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9063 parameter.
9064 (locexpr_describe_location_1): Likewise.
9065 (locexpr_describe_location): Update.
9066
9067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9070 Remove.
9071 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9072 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9073 (dwarf2_compile_property_to_c): Update.
9074 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9075 use text offset from objfile.
9076 (locexpr_tracepoint_var_ref): Update.
9077 (locexpr_generate_c_location): Update.
9078 (loclist_describe_location): Update.
9079 (loclist_tracepoint_var_ref): Update.
9080 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9081 dwarf2_per_objfile parameter.
9082 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9083 use text offset from objfile.
9084 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9085
9086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9087
9088 * dwarf2/expr.h (struct dwarf_expr_context)
9089 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9090 <offset>: Remove.
9091 <per_objfile>: New member.
9092 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9093 dwarf2_per_objfile parameter. Don't set offset, set
9094 per_objfile.
9095 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9096 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9097 a dwarf2_per_objfile object instead of an offset.
9098 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9099 constructor.
9100 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9101 to dwarf2_expr_executor constructor. Don't set offset.
9102 (dwarf2_fetch_cfa_info): Update.
9103 (struct dwarf2_frame_cache) <text_offset>: Remove.
9104 <per_objfile>: New field.
9105 (dwarf2_frame_cache): Update.
9106 (dwarf2_frame_prev_register): Update.
9107 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9108 <dwarf_evaluate_loc_desc>: Add constructor.
9109 (dwarf2_evaluate_loc_desc_full): Update.
9110 (dwarf2_locexpr_baton_eval): Update.
9111 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9112 Add constructor.
9113 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9114
9115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9118 addr_sized_int_type>: Move to dwarf2_cu.
9119 <int_type>: Move to dwarf2_per_objfile.
9120 (struct dwarf2_per_objfile) <int_type>: Move here.
9121 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9122 addr_sized_int_type>: Move here.
9123 (read_func_scope): Update.
9124 (read_array_type): Update.
9125 (read_tag_string_type): Update.
9126 (attr_to_dynamic_prop): Update.
9127 (dwarf2_per_cu_data::int_type): Rename to...
9128 (dwarf2_per_objfile::int_type): ... this.
9129 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9130 (dwarf2_cu::addr_sized_int_type): ... this.
9131 (read_subrange_type): Update.
9132 (dwarf2_per_cu_data::addr_type): Rename to...
9133 (dwarf2_cu::addr_type): ... this.
9134 (set_die_type): Update.
9135
9136 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9139 data through per_cu->cu.
9140
9141 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9144 dwarf2_per_cu_data parameter fo dwarf2_cu.
9145 (lookup_dwo_type_unit): Likewise.
9146 (read_cutu_die_from_dwo): Likewise.
9147 (lookup_dwo_unit): Likewise.
9148 (open_and_init_dwo_file): Likewise.
9149 (lookup_dwo_cutu): Likewise.
9150 (lookup_dwo_comp_unit): Likewise.
9151 (lookup_dwo_type_unit): Likewise.
9152 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9153 (cutu_reader::cutu_reader): Update.
9154
9155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9158 parameter.
9159 (process_full_type_unit): Likewise.
9160 (process_queue): Update.
9161
9162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * dwarf2/read.c (recursively_compute_inclusions): Add
9165 dwarf2_per_objfile parameter.
9166 (compute_compunit_symtab_includes): Likewise.
9167 (process_cu_includes): Update.
9168
9169 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9170
9171 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9172 parameter.
9173 (create_type_unit_group): Update.
9174 (process_psymtab_comp_unit_reader): Update.
9175 (build_type_psymtabs_reader): Update.
9176
9177 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9178
9179 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9180 object through m_this_cu->cu.
9181
9182 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9183
9184 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9185 the info parameter.
9186 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9187
9188 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9189
9190 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9191 per_objfile parameter.
9192 (load_full_type_unit): Add per_objfile parameter.
9193 (read_signatured_type): Likewise.
9194 (load_full_comp_unit): Likewise.
9195 (load_cu): Likewise.
9196 (dw2_do_instantiate_symtab): Likewise.
9197 (dw2_get_file_names): Likewise.
9198 (dw2_map_symtabs_matching_filename): Update.
9199 (dw_expand_symtabs_matching_file_matcher): Update.
9200 (dw2_map_symbol_filenames): Update.
9201 (process_psymtab_comp_unit): Add per_objfile parameter.
9202 (build_type_psymtabs_1): Update.
9203 (process_skeletonless_type_unit): Update.
9204 (dwarf2_build_psymtabs_hard): Update.
9205 (load_partial_comp_unit): Add per_objfile parameter.
9206 (scan_partial_symbols): Update.
9207 (load_full_comp_unit): Add per_objfile parameter.
9208 (process_imported_unit_die): Update.
9209 (create_cus_hash_table): Update.
9210 (find_partial_die): Update.
9211 (dwarf2_read_addr_index): Update.
9212 (follow_die_offset): Update.
9213 (dwarf2_fetch_die_loc_sect_off): Update.
9214 (dwarf2_fetch_constant_bytes): Update.
9215 (dwarf2_fetch_die_type_sect_off): Update.
9216 (follow_die_sig_1): Update.
9217 (load_full_type_unit): Add per_objfile parameter.
9218 (read_signatured_type): Likewise.
9219
9220 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9223 of objfile_name.
9224
9225 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9226
9227 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9228 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9229 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9230 field.
9231 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9232 (create_cus_from_index): Update.
9233 (dwarf2_read_gdb_index): Update.
9234 (create_cus_from_debug_names): Update.
9235 (dwarf2_read_debug_names): Update.
9236 (get_abbrev_section_for_cu): Update.
9237 (create_all_comp_units): Update.
9238 (read_attribute_value): Update.
9239 (get_debug_line_section): Update.
9240 * dwarf2/index-cache.c (index_cache::store): Update.
9241 * dwarf2/index-write.c (save_gdb_index_command): Update.
9242 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9243
9244 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9247 member.
9248 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9249 dwarf2_per_cu_data::per_bfd.
9250 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9251 (create_type_unit_group): Likewise.
9252 (queue_comp_unit): Remove reference to
9253 per_cu->dwarf2_per_objfile.
9254 (maybe_queue_comp_unit): Likewise.
9255 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9256 (create_cus_hash_table): Assign new field.
9257
9258 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * dwarf2/read.c: Replace
9261 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9262 dwarf2_cu->per_objfile throughout.
9263
9264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9267 parameter, don't use per_cu->dwarf2_per_objfile.
9268 (dw2_instantiate_symtab): Likewise.
9269 (dw2_find_last_source_symtab): Update.
9270 (dw2_map_expand_apply): Update.
9271 (dw2_lookup_symbol): Update.
9272 (dw2_expand_symtabs_for_function): Update.
9273 (dw2_expand_all_symtabs): Update.
9274 (dw2_expand_symtabs_with_fullname): Update.
9275 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9276 don't use per_cu->dwarf2_per_objfile.
9277 (dw2_expand_marked_cus): Update.
9278 (dw2_find_pc_sect_compunit_symtab): Update.
9279 (dw2_debug_names_lookup_symbol): Update.
9280 (dw2_debug_names_expand_symtabs_for_function): Update.
9281 (dw2_debug_names_map_matching_symbols): Update.
9282 (dwarf2_psymtab::expand_psymtab): Update.
9283
9284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9287 <per_objfile>: New member.
9288 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9289 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9290 call to dwarf2_cu.
9291 (cutu_reader::cutu_reader): Update.
9292 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9293
9294 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9297 struct dwarf2_per_objfile.
9298 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9299 dwarf2_per_bfd.
9300 * dwarf2/read.c (set_die_type): Update.
9301 (get_die_type_at_offset): Update.
9302
9303 2020-05-27 Tom Tromey <tom@tromey.com>
9304 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9307 method.
9308 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9309 get_symtab, set_symtab>: New methods.
9310 <m_symtabs>: New field.
9311 (struct dwarf2_psymtab): Derive from partial_symtab.
9312 <readin_p, get_compunit_symtab>: Declare methods.
9313 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9314 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9315 New methods.
9316 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9317 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9318 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9319 (dw2_symtab_iter_next, dw2_print_stats)
9320 (dw2_expand_symtabs_with_fullname)
9321 (dw2_expand_symtabs_matching_one)
9322 (dw_expand_symtabs_matching_file_matcher)
9323 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9324 (dw2_debug_names_iterator::next)
9325 (dw2_debug_names_map_matching_symbols)
9326 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9327 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9328 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9329 New methods.
9330 (get_compunit_symtab, process_full_comp_unit)
9331 (process_full_type_unit): Update.
9332 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9333
9334 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9337 then introduce a new dwarf2_per_objfile type.
9338 <read_line_string>: Move to the new dwarf2_per_objfile type.
9339 <objfile>: Likewise.
9340 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9341 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9342 dwarf2_per_objfile->per_bfd.
9343 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9344 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9345 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9346 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9347 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9348 (dwarf2_per_objfile::locate_sections): Rename to...
9349 (dwarf2_per_bfd::locate_sections): ... this.
9350 (dwarf2_per_objfile::get_cutu): Rename to...
9351 (dwarf2_per_bfd::get_cutu): ... this.
9352 (dwarf2_per_objfile::get_cu): Rename to...
9353 (dwarf2_per_bfd::get_cu): ... this.
9354 (dwarf2_per_objfile::get_tu): Rename to...
9355 (dwarf2_per_bfd::get_tu): ... this.
9356 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9357 (dwarf2_per_bfd::allocate_per_cu): ... this.
9358 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9359 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9360 (get_gdb_index_contents_ftype): Change parameter from
9361 dwarf2_per_objfile to dwarf2_per_bfd.
9362 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9363 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9364
9365 2020-05-27 Tom Tromey <tom@tromey.com>
9366 Simon Marchi <simon.marchi@efficios.com>
9367
9368 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9369 (allocate_piece_closure): Set "per_objfile" member.
9370 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9371 (locexpr_describe_location, loclist_describe_location): Use new
9372 member.
9373 * dwarf2/read.c (read_call_site_scope)
9374 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9375 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9376 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9377 handle_data_member_location): Set per_objfile member.
9378 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9379 member.
9380 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9381
9382 2020-05-27 Tom Tromey <tom@tromey.com>
9383
9384 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9385 allocate_signatured_type>: Declare new methods.
9386 <m_num_psymtabs>: New member.
9387 (struct dwarf2_per_cu_data) <index>: New member.
9388 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9389 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9390 (create_cu_from_index_list): Use allocate_per_cu.
9391 (create_signatured_type_table_from_index)
9392 (create_signatured_type_table_from_debug_names)
9393 (create_debug_type_hash_table, add_type_unit)
9394 (read_comp_units_from_section): Use allocate_signatured_type.
9395
9396 2020-05-27 Tom Tromey <tom@tromey.com>
9397
9398 * psymtab.c (partial_map_expand_apply)
9399 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9400 (psym_lookup_global_symbol_language)
9401 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9402 (psym_print_stats, psym_expand_symtabs_for_function)
9403 (psym_map_symbol_filenames, psym_map_matching_symbols)
9404 (psym_expand_symtabs_matching)
9405 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9406 (maintenance_check_psymtabs): Update.
9407 * psympriv.h (struct partial_symtab) <readin_p,
9408 get_compunit_symtab>: Add objfile parameter.
9409 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9410 Likewise.
9411 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9412 get_compunit_symtab>: Likewise.
9413 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9414
9415 2020-05-27 Tom Tromey <tom@tromey.com>
9416
9417 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9418 member.
9419 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9420 (create_cu_from_index_list)
9421 (create_signatured_type_table_from_index)
9422 (create_signatured_type_table_from_debug_names)
9423 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9424 (dwarf2_create_include_psymtab)
9425 (create_debug_type_hash_table, add_type_unit)
9426 (create_type_unit_group, read_comp_units_from_section)
9427 (dwarf2_compute_name, create_cus_hash_table)
9428 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9429 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9430 obstack.
9431 (dw2_get_real_path): Likewise. Change argument to
9432 dwarf2_per_objfile.
9433
9434 2020-05-27 Luis Machado <luis.machado@linaro.org>
9435
9436 PR tdep/26000
9437 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9438 for ldrd (immediate).
9439
9440 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9441
9442 * command.h: Add comment giving the name of class_tui.
9443 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9444 create the fake command for the help for class_tui.
9445
9446 2020-05-26 Tom Tromey <tromey@adacore.com>
9447
9448 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9449 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9450 (val_atr): New function.
9451 (value_val_atr): Use it.
9452 * ada-valprint.c (print_optional_low_bound): Change low bound
9453 handling for enums.
9454 (val_print_packed_array_elements): Don't call discrete_position.
9455 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9456 discrete_position for enum types.
9457 * language.c (default_print_array_index): Change type.
9458 * language.h (struct language_defn) <la_print_array_index>: Add
9459 index_type parameter, change type of index_value.
9460 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9461 (default_print_array_index): Update.
9462 * valprint.c (maybe_print_array_index): Don't call
9463 value_from_longest. Update.
9464 (value_print_array_elements): Don't call discrete_position.
9465
9466 2020-05-26 Tom Tromey <tromey@adacore.com>
9467
9468 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9469 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9470
9471 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9472
9473 PR gdb/13519
9474 * avr-tdep.c (avr_integer_to_address): Return data or code
9475 address accordingly to the second 'type' argument of the
9476 function.
9477
9478 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9479
9480 * infcmd.c, inferior.h: (construct_inferior_arguments):
9481 Moved function from here to gdbsupport/common-inferior.{h,cc}
9482
9483 2020-05-23 Tom Tromey <tom@tromey.com>
9484
9485 Revert commit eca1f90c:
9486 * NEWS: Remove entry for completion styling.
9487 * completer.c (_rl_completion_prefix_display_length): Move
9488 declaration later.
9489 (gdb_fnprint): Revert.
9490 (gdb_display_match_list_1): Likewise.
9491 * cli/cli-style.c (completion_prefix_style)
9492 (completion_difference_style, completion_suffix_style): Remove.
9493 (_initialize_cli_style): Revert.
9494 * cli/cli-style.h (completion_prefix_style)
9495 (completion_difference_style, completion_suffix_style): Don't
9496 declare.
9497
9498 2020-05-24 Pedro Alves <palves@redhat.com>
9499
9500 * symtab.c (completion_list_add_name): Return boolean indication
9501 of whether the symbol matched.
9502 (completion_list_add_symbol): Don't try to remove C++ aliases if
9503 the symbol didn't match in the first place.
9504 * symtab.h (completion_list_add_name): Return bool.
9505
9506 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9507
9508 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9509 type::field.
9510
9511 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9512
9513 GDB 9.2 released.
9514
9515 2020-05-23 Tom Tromey <tom@tromey.com>
9516
9517 * NEWS: Add entry for completion styling.
9518 * completer.c (_rl_completion_prefix_display_length): Move
9519 declaration earlier.
9520 (gdb_fnprint): Use completion_style.
9521 (gdb_display_match_list_1): Likewise.
9522 * cli/cli-style.c (completion_prefix_style)
9523 (completion_difference_style, completion_suffix_style): New
9524 globals.
9525 (_initialize_cli_style): Register new globals.
9526 * cli/cli-style.h (completion_prefix_style)
9527 (completion_difference_style, completion_suffix_style): Declare.
9528
9529 2020-05-23 Pedro Alves <palves@redhat.com>
9530
9531 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9532 (parse_escape): Use ISDIGIT instead of isdigit.
9533 (puts_debug): Use gdb_isprint instead of isprint.
9534 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9535 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9536 ISSPACE instead of isspace.
9537 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9538 instead of isspace.
9539 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9540 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9541 instead of isxdigit and ISDIGIT instead of isdigit.
9542
9543 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * gdbtypes.h (struct type) <field>: New method.
9546 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9547 or type::field.
9548
9549 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9552 (TYPE_FIELDS): Use type::fields. Change all call sites that
9553 modify the propery to use type::set_fields instead.
9554
9555 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9558 type::num_fields instead.
9559
9560 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9563 methods.
9564 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9565 that modify the number of fields to use type::set_num_fields
9566 instead.
9567
9568 2020-05-22 Tom Tromey <tromey@adacore.com>
9569
9570 * compile/compile-object-load.h (munmap_list_free): Don't
9571 declare.
9572
9573 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * annotate.c (annotate_source_line): Update return type, add call
9576 to update current symtab and line.
9577 * annotate.h (annotate_source_line): Update return type, and
9578 extend header comment.
9579 * source.c (info_line_command): Check annotation_level before
9580 calling annotate_source_line.
9581 * stack.c (print_frame_info): If calling annotate_source_line
9582 returns true, then don't print any other source line information.
9583
9584 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9587
9588 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9589
9590 * coffread.c (patch_type): Remove NULL check before xfree.
9591 * corefile.c (set_gnutarget): Likewise.
9592 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9593 * exec.c (build_section_table): Likewise.
9594 * remote.c (remote_target::pass_signals): Likewise.
9595 * utils.c (n_spaces): Likewise.
9596 * cli/cli-script.c (document_command): Likewise.
9597 * i386-windows-tdep.c (core_process_module_section): Likewise.
9598 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9599
9600 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * symfile.c (reread_symbols): Clear objfile's section_offsets
9603 vector and section indices, re-compute them by calling
9604 sym_offsets.
9605
9606 2020-05-20 Tom Tromey <tromey@adacore.com>
9607
9608 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9609 (desc_one_bound, desc_index_type): Compute field name.
9610
9611 2020-05-20 Tom de Vries <tdevries@suse.de>
9612
9613 PR symtab/25833
9614 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9615
9616 2020-05-20 Alan Modra <amodra@gmail.com>
9617
9618 PR 25993
9619 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9620 bfd_set_filename.
9621 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9622 passed to bfd_set_filename.
9623 * symfile-mem.c (add_vsyscall_page): Likewise for string
9624 passed to symbol_file_add_from_memory.
9625 (symbol_file_add_from_memory): Make name param a const char* and
9626 don't strdup.
9627
9628 2020-05-20 Alan Modra <amodra@gmail.com>
9629
9630 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9631 rather than accessing bfd->filename directly.
9632 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9633 and use bfd_section_name.
9634 * dwarf2/frame.c (decode_frame_entry): Likewise.
9635 * exec.c (exec_set_section_address): Likewise.
9636 * solib-aix.c (solib_aix_bfd_open): Likewise.
9637 * stap-probe.c (get_stap_base_address): Likewise.
9638 * symfile.c (reread_symbols): Likewise.
9639
9640 2020-05-19 Tom Tromey <tromey@adacore.com>
9641
9642 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9643
9644 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9647
9648 2020-05-19 Pedro Alves <palves@redhat.com>
9649
9650 * NEWS (set exec-file-mismatch): Adjust entry.
9651 * exec.c: Include "build-id.h".
9652 (validate_exec_file): Try to match build IDs instead of filenames.
9653 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9654 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9655 and pass down 'warn_if_slow'.
9656 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9657 gdb_bfd_open_closure to pass it down.
9658 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9659
9660 2020-05-19 Pedro Alves <palves@redhat.com>
9661
9662 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9663 * target.c (target_fileio_open_1): Rename to target_fileio_open
9664 and make extern. Use bool.
9665 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9666 (target_fileio_read_alloc_1): Adjust.
9667 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9668 (target_fileio_open_warn_if_slow): Delete declaration.
9669
9670 2020-05-19 Pedro Alves <palves@redhat.com>
9671
9672 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9673 Adjust all callers.
9674
9675 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9676
9677 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9678 whether disp is negative.
9679
9680 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * symfile.h (struct symfile_segment_data)
9683 <~symfile_segment_data>: Remove.
9684 <segment_info>: Change to std::vector.
9685 * symfile.c (default_symfile_segments): Update.
9686 * elfread.c (elf_symfile_segments): Update.
9687
9688 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9689
9690 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9691 <segments>: New.
9692 <segment_bases, segment_sizes>: Remove.
9693 * symfile.c (default_symfile_segments): Update.
9694 * elfread.c (elf_symfile_segments): Update.
9695 * remote.c (remote_target::get_offsets): Update.
9696 * solib-target.c (solib_target_relocate_section_addresses):
9697 Update.
9698
9699 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * symfile.h (struct symfile_segment_data): Initialize fields.
9702 <~symfile_segment_data>: Add.
9703 (symfile_segment_data_up): New.
9704 (struct sym_fns) <sym_segments>: Return a
9705 symfile_segment_data_up.
9706 (default_symfile_segments): Return a symfile_segment_data_up.
9707 (free_symfile_segment_data): Remove.
9708 (get_symfile_segment_data): Return a symfile_segment_data_up.
9709 * symfile.c (default_symfile_segments): Likewise.
9710 (get_symfile_segment_data): Likewise.
9711 (free_symfile_segment_data): Remove.
9712 (symfile_find_segment_sections): Update.
9713 * elfread.c (elf_symfile_segments): Return a
9714 symfile_segment_data_up.
9715 * remote.c (remote_target::get_offsets): Update.
9716 * solib-target.c (solib_target_relocate_section_addresses):
9717 Update.
9718 * symfile-debug.c (debug_sym_segments): Return a
9719 symfile_segment_data_up.
9720
9721 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9722
9723 PR build/25981
9724 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9725 Hardcode register numbers.
9726
9727 PR build/25981
9728 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9729 procfs_find_LDT_entry): Remove.
9730 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9731 procfs_find_LDT_entry): Remove.
9732 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9733 Remove.
9734
9735 2020-05-17 Pedro Alves <palves@redhat.com>
9736 Andrew Burgess <andrew.burgess@embecosm.com>
9737 Keno Fischer <keno@juliacomputing.com>
9738
9739 PR gdb/25741
9740 * breakpoint.c (build_target_condition_list): Update comments.
9741 (build_target_command_list): Update comments and skip matching
9742 locations.
9743 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9744 a separate function. Simplify "set breakpoint auto-hw off"
9745 handling.
9746 (insert_breakpoints): Update comment.
9747 (tracepoint_locations_match): New parameter. For breakpoints,
9748 compare location types too, if the caller wants to.
9749 (handle_automatic_hardware_breakpoints): New functions.
9750 (bp_location_is_less_than): Also sort by location type and
9751 hardware breakpoint length.
9752 (update_global_location_list): Handle "set breakpoint auto-hw on"
9753 here.
9754 (update_breakpoint_locations): Ask breakpoint_locations_match to
9755 ignore location types.
9756
9757 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9758
9759 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9760 type::name instead.
9761
9762 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * gdbtypes.h (struct type) <name, set_name>: New methods.
9765 (TYPE_CODE): Use type::name. Change all call sites used to set
9766 the name to use type::set_name instead.
9767
9768 2020-05-16 Tom Tromey <tom@tromey.com>
9769
9770 * top.c (quit_force): Update.
9771 * infrun.c (handle_no_resumed): Update.
9772 * top.h (all_uis): New function.
9773 (ALL_UIS): Remove.
9774
9775 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9776
9777 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9778
9779 2020-05-16 Pedro Alves <palves@redhat.com>
9780
9781 * ia64-linux-nat.c
9782 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9783 Declare method.
9784 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9785
9786 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9789 (sparc64_adi_info): Likewise.
9790
9791 2020-05-15 Tom Tromey <tom@tromey.com>
9792
9793 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9794 block_objfile.
9795 (lookup_objfile_from_block): Remove.
9796 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9797 (lookup_global_symbol): Use block_objfile.
9798 * symtab.h (lookup_objfile_from_block): Don't declare.
9799 * printcmd.c (clear_dangling_display_expressions): Use
9800 block_objfile.
9801 * parse.c (operator_check_standard): Use block_objfile.
9802
9803 2020-05-15 Tom Tromey <tom@tromey.com>
9804
9805 * language.c (language_alloc_type_symbol): Set
9806 SYMBOL_SECTION.
9807 * symtab.c (initialize_objfile_symbol): Remove.
9808 (allocate_symbol): Remove.
9809 (allocate_template_symbol): Remove.
9810 * dwarf2/read.c (fixup_go_packaging): Use "new".
9811 (new_symbol): Use "new".
9812 (read_variable): Don't call initialize_objfile_symbol. Use
9813 "new".
9814 (read_func_scope): Use "new".
9815 * xcoffread.c (process_xcoff_symbol): Don't call
9816 initialize_objfile_symbol.
9817 (SYMBOL_DUP): Remove.
9818 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9819 "new".
9820 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9821 (allocate_template_symbol): Don't declare.
9822 (struct symbol): Add copy constructor. Change defaults.
9823 * jit.c (finalize_symtab): Use "new".
9824 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9825 Use "new".
9826 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9827 (common_block_end): Use "new".
9828 * mdebugread.c (parse_symbol): Use "new".
9829 (new_symbol): Likewise.
9830
9831 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9832
9833 * NEWS: Mention changes to help and apropos.
9834
9835 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9836
9837 * command.h (enum command_class): Improve comments, document
9838 that class_alias is for user-defined aliases, give the class
9839 name for each class, remove unused class_xdb.
9840 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9841 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9842 by a precise class.
9843 * infcmd.c (_initialize_infcmd): Likewise.
9844 * reverse.c (_initialize_reverse): Likewise.
9845 * stack.c (_initialize_stack): Likewise.
9846 * symfile.c (_initialize_symfile): Likewise.
9847 * tracepoint.c (_initialize_tracepoint): Likewise.
9848
9849 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9850
9851 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9852 when their aliased command is traversed.
9853 (help_cmd): Add fput_command_names_styled call to
9854 output command name and aliases when command has an alias.
9855
9856 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9857
9858 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9859 * cli/cli-decode.c (help_cmd_list): Declare as static,
9860 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9861 a command together with the command.
9862 (fput_command_name_styled, fput_command_names_styled): New functions.
9863 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9864 fput_command_name_styled.
9865 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9866 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9867
9868 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9869
9870 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9871 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9872 * command.h (cmd_show_list): Likewise.
9873 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9874 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9875
9876 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9877
9878 * unittests/command-def-selftests.c (traverse_command_structure):
9879 Verify all commands of a list have the same prefix command and
9880 that only the top cmdlist commands have a null prefix.
9881
9882 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9883
9884 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9885 as prefix, not one of its aliases.
9886 (set_cmd_prefix): Remove.
9887 (do_add_cmd): Centralize the setting of the prefix of a command, when
9888 command is defined after its full chain of prefix commands.
9889 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9890 (add_setshow_cmd_full): Likewise.
9891 (update_prefix_field_of_prefixed_commands): New function.
9892 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9893 update_prefix_field_of_prefixed_commands.
9894 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9895 addresses of remote_set_cmdlist and remote_show_cmdlist given
9896 as argument, not the address of an argument.
9897 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9898 * gdb/remote.c (_initialize_remote): Likewise.
9899
9900 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9901
9902 * cli/cli-cmds.c (alias_command): Check for an existing alias
9903 using lookup_cmd_composition, as valid_command_p is too strict
9904 and forbids aliases that are the prefix of an existing alias
9905 or command.
9906 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9907 command is properly recognised as a valid command.
9908
9909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9910
9911 * unittests/help-doc-selftests.c: Rename to
9912 unittests/command-def-selftests.c
9913 * unittests/command-def-selftests.c (help_doc_tests): Update some
9914 comments.
9915 (command_structure_tests, traverse_command_structure): New namespace
9916 and function.
9917 (command_structure_invariants_tests): New function.
9918 (_initialize_command_def_selftests) Renamed from
9919 _initialize_help_doc_selftests, register command_structure_invariants
9920 selftest.
9921
9922 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9923
9924 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9925 an alias of 'show'.
9926
9927 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9928
9929 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9930 ada_is_fixed_point_type. Update all callers.
9931 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9932 all callers.
9933 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9934 Update all callers.
9935 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9936 print_fixed_point_type. Update all callers.
9937 * ada-valprint.c (ada_value_print_num): Replace call to
9938 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9939
9940 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9941
9942 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9943 processors.
9944 (cpu_supports_bts): Add CV_AMD case.
9945
9946 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9947 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * infrun.c (stop_all_threads): Collect multiple wait events at
9950 each pass.
9951
9952 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9955 type::code instead.
9956
9957 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * gdbtypes.h (struct type) <code, set_code>: New methods.
9960 (TYPE_CODE): Use type::code. Change all call sites used to set
9961 the code to use type::set_code instead.
9962
9963 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9964 Tom de Vries <tdevries@suse.de>
9965 Pedro Alves <palves@redhat.com>
9966
9967 PR threads/25478
9968 * infrun.c (stop_all_threads): Do NOT ignore
9969 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9970 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9971 received.
9972 (handle_no_resumed): Remove code handling a live inferior with no
9973 threads.
9974 * remote.c (has_single_non_exited_thread): New.
9975 (remote_target::update_thread_list): Do not delete a thread if is
9976 the last thread of the process.
9977 * thread.c (thread_select): Call delete_exited_threads instead of
9978 prune_threads.
9979
9980 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9981
9982 * infrun.c (stop_all_threads): Enable/disable thread events of all
9983 targets. Move a debug message denoting the end of the function
9984 into the SCOPED_EXIT block.
9985
9986 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9987
9988 * process-stratum-target.h: Include <set>.
9989 (all_non_exited_process_targets, switch_to_target_no_thread): New
9990 function declarations.
9991 * process-stratum-target.c (all_non_exited_process_targets)
9992 (switch_to_target_no_thread): New function implementations.
9993
9994 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9995
9996 * infrun.c (handle_inferior_event): Extract out a piece of code
9997 into...
9998 (mark_non_executing_threads): ...this new function.
9999
10000 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10001
10002 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10003 use.
10004
10005 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10006
10007 * regcache.c (regcache_read_pc_protected): New function
10008 implementation that returns 0 if the PC cannot read via
10009 'regcache_read_pc'.
10010 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10011 instead of 'regcache_read_pc'.
10012 (keep_going_pass_signal): Ditto.
10013
10014 2020-05-13 Tom Tromey <tromey@adacore.com>
10015
10016 * ada-lang.c (align_value): Remove.
10017 (ada_template_to_fixed_record_type_1): Use align_up.
10018
10019 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10020
10021 * async-event.c: Update the copyright year.
10022 * async-event.h: Update the copyright year.
10023
10024 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10025
10026 * objfiles.h (is_addr_in_objfile,
10027 shared_objfile_contains_address_p): Return bool.
10028 * objfile.c (is_addr_in_objfile,
10029 shared_objfile_contains_address_p): Return bool.
10030
10031 2020-05-11 Tom Tromey <tromey@adacore.com>
10032
10033 * cli/cli-cmds.c (info_command): Restore.
10034 (_initialize_cli_cmds): Use add_prefix_command for "info".
10035 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10036
10037 2020-05-11 Tom Tromey <tromey@adacore.com>
10038
10039 * ada-lang.c (ada_value_primitive_field): Now public.
10040 * ada-lang.h (ada_value_primitive_field): Declare.
10041 * ada-valprint.c (print_field_values): Use
10042 ada_value_primitive_field for wrapper fields.
10043
10044 2020-05-11 Tom de Vries <tdevries@suse.de>
10045
10046 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10047 MODULE_DOMAIN.
10048
10049 2020-05-11 Tom de Vries <tdevries@suse.de>
10050
10051 PR symtab/25941
10052 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10053 with length 0, if not gdb-produced.
10054 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10055
10056 2020-05-09 Tom de Vries <tdevries@suse.de>
10057
10058 PR gdb/25955
10059 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10060 calculation.
10061
10062 2020-05-09 Tom Tromey <tom@tromey.com>
10063
10064 * top.c (server_command): Now bool.
10065 * top.h (server_command): Now bool.
10066
10067 2020-05-08 Tom Tromey <tromey@adacore.com>
10068
10069 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10070 already being processed.
10071
10072 2020-05-08 Tom Tromey <tom@tromey.com>
10073
10074 * printcmd.c (struct display) <next>: Remove.
10075 <display>: New constructor.
10076 <exp_string>: Now a std::string.
10077 <enabled_p>: Now a bool.
10078 (display_number): Move definition earlier.
10079 (displays): Rename from display_chain. Now a std::vector.
10080 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10081 (display_command): Update.
10082 (do_one_display, disable_display)
10083 (enable_disable_display_command, do_enable_disable_display):
10084 Update.
10085 (free_display): Remove.
10086 (clear_displays): Rewrite.
10087 (delete_display): Update.
10088 (map_display_numbers): Use function_view. Remove "data"
10089 parameter. Update.
10090 (do_delete_display): Remove.
10091 (undisplay_command): Update.
10092 (do_one_display, do_displays, disable_display)
10093 (info_display_command): Update.
10094 (do_enable_disable_display): Remove.
10095 (enable_disable_display_command)
10096 (clear_dangling_display_expressions): Update.
10097
10098 2020-05-08 Tom Tromey <tom@tromey.com>
10099
10100 * symtab.c (set_symbol_cache_size)
10101 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10102 (maintenance_print_symbol_cache_statistics): Update.
10103 * symmisc.c (print_symbol_bcache_statistics)
10104 (print_objfile_statistics, maintenance_print_objfiles)
10105 (maintenance_info_symtabs, maintenance_check_symtabs)
10106 (maintenance_expand_symtabs, maintenance_info_line_tables):
10107 Update.
10108 * symfile-debug.c (set_debug_symfile): Update.
10109 * source.c (forget_cached_source_info): Update.
10110 * python/python.c (gdbpy_progspaces): Update.
10111 * psymtab.c (maintenance_info_psymtabs): Update.
10112 * probe.c (parse_probes): Update.
10113 * linespec.c (iterate_over_all_matching_symtabs)
10114 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10115 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10116 * exec.c (exec_target::close): Update.
10117 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10118 * breakpoint.c (print_one_breakpoint_location)
10119 (create_longjmp_master_breakpoint)
10120 (create_std_terminate_master_breakpoint): Update.
10121 * progspace.c (program_spaces): Now a std::vector.
10122 (maybe_new_address_space): Update.
10123 (add_program_space): Remove.
10124 (program_space::program_space): Update.
10125 (remove_program_space): Update.
10126 (number_of_program_spaces): Remove.
10127 (print_program_space, update_address_spaces): Update.
10128 * progspace.h (program_spaces): Change type.
10129 (ALL_PSPACES): Remove.
10130 (number_of_program_spaces): Don't declare.
10131 (struct program_space) <next>: Remove.
10132
10133 2020-05-08 Tom Tromey <tom@tromey.com>
10134
10135 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10136 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10137 (enable_break): Update.
10138 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10139 (frv_fdpic_find_canonical_descriptor): Update.
10140 (frv_fetch_objfile_link_map): Update.
10141 * progspace.c (program_space::free_all_objfiles): Update.
10142 (program_space::solibs): New method.
10143 * progspace.h (struct program_space) <solibs>: New method.
10144 * solist.h (master_so_list): Don't declare.
10145 (ALL_SO_LIBS): Remove.
10146 * solib.h (so_list_head): Remove.
10147 (update_solib_list): Update comment.
10148 * solib.c (master_so_list): Remove.
10149 (solib_used, update_solib_list, solib_add)
10150 (info_sharedlibrary_command, clear_solib)
10151 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10152
10153 2020-05-08 Tom Tromey <tom@tromey.com>
10154
10155 * extension.c (extension_languages): Now a std::array.
10156 (ALL_EXTENSION_LANGUAGES): Remove.
10157 (get_ext_lang_defn, get_ext_lang_of_file)
10158 (eval_ext_lang_from_control_command): Update.
10159 (finish_ext_lang_initialization)
10160 (auto_load_ext_lang_scripts_for_objfile)
10161 (ext_lang_type_printers::ext_lang_type_printers)
10162 (apply_ext_lang_type_printers)
10163 (ext_lang_type_printers::~ext_lang_type_printers)
10164 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10165 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10166 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10167 (get_matching_xmethod_workers, ext_lang_colorize)
10168 (ext_lang_before_prompt): Update.
10169 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10170
10171 2020-05-08 Tom Tromey <tom@tromey.com>
10172
10173 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10174 overload.
10175 <swap_string, m_string>: Remove.
10176 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10177 Update.
10178 * stabsread.c (define_symbol, read_type): Update.
10179 * linespec.c (find_linespec_symbols): Update.
10180 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10181 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10182 * dbxread.c (read_dbx_symtab): Update.
10183 * cp-support.h (cp_canonicalize_string_full)
10184 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10185 Return unique_xmalloc_ptr.
10186 * cp-support.c (inspect_type): Update.
10187 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10188 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10189 Likewise.
10190 * c-typeprint.c (print_name_maybe_canonical): Update.
10191 * break-catch-throw.c (check_status_exception_catchpoint):
10192 Update.
10193
10194 2020-05-08 Tom de Vries <tdevries@suse.de>
10195
10196 * infrun.c (follow_fork): Copy current_line and current_symtab to
10197 child thread.
10198
10199 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * async-event.c (struct async_signal_handler, struct
10202 async_event_handler): Reformat, remove typedef.
10203
10204 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10205
10206 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10207 access thistype->main_type->dyn_prop_list directly.
10208
10209 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10212 (remove_dyn_prop): Remove. Update all users to use
10213 type::remove_dyn_prop.
10214 * gdbtypes.c (remove_dyn_prop): Rename to...
10215 (type::remove_dyn_prop): ... this.
10216
10217 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10218
10219 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10220 (add_dyn_prop): Remove. Update all users to use
10221 type::add_dyn_prop.
10222 * gdbtypes.c (add_dyn_prop): Rename to...
10223 (type::add_dyn_prop): ... this.
10224
10225 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10228 (get_dyn_prop): Remove. Update all users to use
10229 type::dyn_prop.
10230 * gdbtypes.c (get_dyn_prop): Rename to...
10231 (type::dyn_prop): ... this.
10232
10233 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10234
10235 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10236
10237 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10240 instruction, skip it if it's there.
10241
10242 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10245
10246 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10247
10248 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10249 * gdbtypes.c (recursive_dump_type): Remove use of
10250 TYPE_INCOMPLETE.
10251
10252 2020-05-03 Tom Tromey <tom@tromey.com>
10253
10254 * breakpoint.c (catch_command, tcatch_command): Remove.
10255 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10256 add_show_prefix_cmd.
10257 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10258 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10259 Remove.
10260 (add_internal_problem_command): Use add_basic_prefix_cmd,
10261 add_show_prefix_cmd.
10262 * mips-tdep.c (set_mipsfpu_command): Remove.
10263 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10264 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10265 (_initialize_index_cache): Use add_basic_prefix_cmd.
10266 * memattr.c (dummy_cmd): Remove.
10267 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10268 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10269 (_initialize_tui_win): Use add_basic_prefix_cmd,
10270 add_show_prefix_cmd.
10271 * cli/cli-logging.c (set_logging_command): Remove.
10272 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10273 add_show_prefix_cmd.
10274 (show_logging_command): Remove.
10275 * target.c (target_command): Remove.
10276 (add_target): Use add_basic_prefix_cmd.
10277
10278 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10279
10280 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10281
10282 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10283
10284 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10285 info_command.
10286
10287 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10288
10289 * nbsd-nat.c (nbsd_enable_proc_events)
10290 (nbsd_nat_target::post_startup_inferior): Add.
10291 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10292 (nbsd_nat_target::update_thread_list): Rewrite.
10293 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10294 "PTRACE_LWP_CREATE".
10295 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10296
10297 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10298
10299 * stack.c (_initialize_stack): Remove duplicated creation
10300 of "frame" command and "f" alias.
10301
10302 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10303
10304 PR gdb/18706
10305 * gdbtypes.c (check_typedef): Calculate size of array of
10306 stubbed type.
10307
10308 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10309
10310 PR gdb/15559
10311 * i386-tdep.c (i386_push_dummy_call): Call
10312 i386_thiscall_push_dummy_call.
10313 (i386_thiscall_push_dummy_call): New function.
10314 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10315 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10316 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10317
10318 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * gdbarch.sh (do_read): Add shellcheck disable directive for
10321 warning SC2162.
10322
10323 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10326 "referenced but not assigned" warning.
10327
10328 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * gdbarch.sh: Remove code that sets fallbackdefault.
10331
10332 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbarch.sh: Use shell operators && and || instead of
10335 -a and -o.
10336
10337 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * gdbarch.sh: Use $(...) instead of `...`.
10340
10341 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10342
10343 * gdbarch.sh: Use double quotes around variables.
10344
10345 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10346
10347 * gdbarch.sh: Use %s with printf, instead of variables in the
10348 format string.
10349
10350 2020-04-29 Tom Tromey <tromey@adacore.com>
10351
10352 PR ada/25875:
10353 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10354 type fields here.
10355 (read_enumeration_type): Call
10356 update_enumeration_type_from_children later. Update comments.
10357 (process_enumeration_scope): Don't create type fields.
10358
10359 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10360
10361 * nbsd-tdep.c: Include "xml-syscall.h".
10362 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10363
10364 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10365
10366 * nbsd-nat.c: Include "sys/wait.h".
10367 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10368 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10369 (nbsd_nat_target::remove_exec_catchpoint)
10370 (nbsd_nat_target::set_syscall_catchpoint): Add.
10371 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10372 (nbsd_nat_target::insert_exec_catchpoint)
10373 (nbsd_nat_target::remove_exec_catchpoint)
10374 (nbsd_nat_target::set_syscall_catchpoint): Add.
10375 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10376 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10377 `nbsd_get_syscall_number'.
10378
10379 2020-04-29 Tom Tromey <tom@tromey.com>
10380
10381 * stack.c (print_block_frame_labels): Remove.
10382
10383 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10384
10385 PR gdb/17320
10386 * ada-valprint.c (val_print_packed_array_elements): Move array
10387 end bracket to new line.
10388 (ada_val_print_string): Remove extra spaces before first array
10389 element.
10390 * c-valprint.c (c_value_print_array): Likewise.
10391 * m2-valprint.c (m2_print_array_contents): Likewise.
10392 (m2_value_print_inner): Likewise.
10393 * p-valprint.c (pascal_value_print_inner): Likewise.
10394 * valprint.c (generic_val_print_array): Likewise.
10395 (value_print_array_elements): Move first array element and array
10396 end bracket to new line.
10397
10398 2020-04-29 Tom de Vries <tdevries@suse.de>
10399
10400 PR symtab/25889
10401 * linespec.c (find_method): Fix ix calculation.
10402
10403 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10404
10405 * syscalls/update-netbsd.sh: New file.
10406 * syscalls/netbsd.xml: Regenerate.
10407 * data-directory/Makefile.in: Register `netbsd.xml' in
10408 `SYSCALLS_FILES'.
10409
10410 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * syscalls/update-freebsd.sh: Add double quotes.
10413
10414 2020-04-28 Tom Tromey <tom@tromey.com>
10415
10416 * NEWS: Update.
10417 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10418 (cmdpy_init): Allow class_tui.
10419
10420 2020-04-28 Mark Williams <mark@myosotissp.com>
10421
10422 PR gdb/24480
10423 * dwarf2read.c: Add missing assingments to list_in_scope when
10424 start_symtab was already called.
10425
10426 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10427
10428 PR gdb/25881
10429 * dwarf2/read.c (offset_map_type): Use
10430 gdb:hash_enum<sect_offset> as hash function.
10431
10432 2020-04-28 Tom de Vries <tdevries@suse.de>
10433
10434 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10435 with DW_AT_signature.
10436
10437 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * configure.ac: Remove check for fs_base/gs_base in
10440 user_regs_struct.
10441 * configure: Re-generate.
10442 * config.in: Re-generate.
10443 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10444 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10445 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10446
10447 2020-04-27 Luis Machado <luis.machado@linaro.org>
10448
10449 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10450 problematic inline frame unwinding situation.
10451 * frame.c (frame_id_computed_p): New function.
10452 * frame.h (frame_id_computed_p): New prototype.
10453
10454 2020-04-26 Tom Tromey <tom@tromey.com>
10455
10456 * command.h (enum command_class) <class_pseudo>: Remove.
10457
10458 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10459
10460 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10461 and whitespace.
10462
10463 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10464
10465 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10466 `PT_GET_PROCESS_STATE' block.
10467
10468 2020-04-24 Tom Tromey <tom@tromey.com>
10469
10470 * symtab.h (symbol_get_demangled_name): Don't declare.
10471 * symtab.c (symbol_get_demangled_name): Remove.
10472 (general_symbol_info::natural_name)
10473 (general_symbol_info::demangled_name): Update.
10474
10475 2020-04-24 Tom Tromey <tom@tromey.com>
10476
10477 PR rust/25025:
10478 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10479
10480 2020-04-24 Tom Tromey <tom@tromey.com>
10481
10482 PR symtab/12707:
10483 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10484 exists.
10485 (new_symbol): Likewise.
10486 * compile/compile-object-load.c (get_out_value_type): Use
10487 symbol_matches_search_name.
10488
10489 2020-04-24 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/read.c (add_partial_symbol): Do not call
10492 compute_and_set_names.
10493
10494 2020-04-24 Tom Tromey <tom@tromey.com>
10495
10496 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10497 overload.
10498
10499 2020-04-24 Tom Tromey <tom@tromey.com>
10500
10501 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10502 (add_psymbol_to_list): New overload. Make old overload call new
10503 one.
10504 * psympriv.h (add_psymbol_to_list): New overload.
10505
10506 2020-04-24 Tom Tromey <tom@tromey.com>
10507
10508 * dwarf2/read.c (partial_die_info::read) <case
10509 DW_AT_linkage_name>: Use value_as_string.
10510 (dwarf2_string_attr): Use value_as_string.
10511 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10512 method.
10513 * dwarf2/attribute.c (attribute::value_as_string): New method.
10514
10515 2020-04-24 Tom Tromey <tom@tromey.com>
10516
10517 * symtab.c (general_symbol_info::natural_name)
10518 (general_symbol_info::demangled_name): Check for language_rust.
10519
10520 2020-04-24 Tom Tromey <tom@tromey.com>
10521
10522 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10523 (dwarf2_physname): ... from here.
10524 (partial_die_info::read): Add Rust "{" hack.
10525
10526 2020-04-24 Tom Tromey <tom@tromey.com>
10527
10528 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10529 method.
10530 (symbol_set_demangled_name): Don't declare.
10531 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10532 symbol_set_demangled_name.
10533 (general_symbol_info::set_language)
10534 (general_symbol_info::compute_and_set_names): Update.
10535 * minsyms.c (minimal_symbol_reader::install): Update.
10536 * dwarf2/read.c (new_symbol): Update.
10537
10538 2020-04-24 Tom Tromey <tromey@adacore.com>
10539
10540 PR python/23662:
10541 * python/py-type.c (convert_field): Handle
10542 FIELD_LOC_KIND_DWARF_BLOCK.
10543 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10544 (typy_get_dynamic): Nw function.
10545 (type_object_getset): Add "dynamic".
10546 * NEWS: Add entry.
10547
10548 2020-04-24 Tom Tromey <tromey@adacore.com>
10549
10550 * ada-typeprint.c (print_choices, print_variant_part)
10551 (print_record_field_types_dynamic): New functions.
10552 (print_record_field_types): Use print_record_field_types_dynamic.
10553
10554 2020-04-24 Tom Tromey <tromey@adacore.com>
10555
10556 * dwarf2/read.c (handle_data_member_location): New overload.
10557 (dwarf2_add_field): Use it.
10558 (decode_locdesc): Add "computed" parameter. Update comment.
10559 * gdbtypes.c (is_dynamic_type_internal): Also look for
10560 FIELD_LOC_KIND_DWARF_BLOCK.
10561 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10562 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10563 virtual base classes.
10564 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10565 FIELD_LOC_KIND_DWARF_BLOCK.
10566
10567 2020-04-24 Tom Tromey <tromey@adacore.com>
10568
10569 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10570 * gdbtypes.c (is_dynamic_type_internal): Check
10571 TYPE_HAS_DYNAMIC_LENGTH.
10572 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10573 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10574 New macros.
10575 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10576 constant.
10577
10578 2020-04-24 Tom Tromey <tromey@adacore.com>
10579
10580 * dwarf2/read.c (struct variant_field): Rewrite.
10581 (struct variant_part_builder): New.
10582 (struct nextfield): Remove "variant" field. Add "offset".
10583 (struct field_info): Add "current_variant_part" and
10584 "variant_parts".
10585 (alloc_discriminant_info): Remove.
10586 (alloc_rust_variant): New function.
10587 (quirk_rust_enum): Update.
10588 (dwarf2_add_field): Set "offset" member. Don't handle
10589 DW_TAG_variant_part.
10590 (offset_map_type): New typedef.
10591 (convert_variant_range, create_one_variant)
10592 (create_one_variant_part, create_variant_parts)
10593 (add_variant_property): New functions.
10594 (dwarf2_attach_fields_to_type): Call add_variant_property.
10595 (read_structure_type): Don't handle DW_TAG_variant_part.
10596 (handle_variant_part, handle_variant): New functions.
10597 (handle_struct_member_die): Use them.
10598 (process_structure_scope): Don't handle variant parts.
10599 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10600 (struct discriminant_info): Remove.
10601 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10602 (struct main_type) <flag_discriminated_union>: Remove.
10603 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10604 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10605 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10606 Update.
10607 * valops.c (value_union_variant): Remove.
10608 * value.h (value_union_variant): Don't declare.
10609
10610 2020-04-24 Tom Tromey <tromey@adacore.com>
10611
10612 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10613 (ada_value_primitive_packed_val): Update.
10614 * ada-valprint.c (ada_value_print_1): Update.
10615 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10616 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10617 just an address. Use evaluate_for_locexpr_baton.
10618 (dwarf2_evaluate_property): Update.
10619 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10620 array_view.
10621 * findvar.c (default_read_var_value): Update.
10622 * gdbtypes.c (compute_variant_fields_inner)
10623 (resolve_dynamic_type_internal): Update.
10624 (resolve_dynamic_type): Change type of valaddr parameter.
10625 * gdbtypes.h (resolve_dynamic_type): Update.
10626 * valarith.c (value_subscripted_rvalue): Update.
10627 * value.c (value_from_contents_and_address): Update.
10628
10629 2020-04-24 Tom Tromey <tromey@adacore.com>
10630
10631 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10632 "push_initial_value" parameter.
10633 (dwarf2_evaluate_property): Likewise.
10634 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10635
10636 2020-04-24 Tom Tromey <tromey@adacore.com>
10637
10638 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10639 (variant::matches, compute_variant_fields_recurse)
10640 (compute_variant_fields_inner, compute_variant_fields): New
10641 functions.
10642 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10643 Use resolved_type after type is made.
10644 (operator==): Add new cases.
10645 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10646 (struct discriminant_range, struct variant, struct variant_part):
10647 New.
10648 (union dynamic_prop_data) <variant_parts, original_type>: New
10649 members.
10650 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10651 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10652 constants.
10653 * value.c (unpack_bits_as_long): Now public.
10654 * value.h (unpack_bits_as_long): Declare.
10655
10656 2020-04-24 Tom Tromey <tromey@adacore.com>
10657
10658 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10659 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10660
10661 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10662
10663 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10664
10665 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10666
10667 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10668 (remove_fork_catchpoint, post_startup_inferior)
10669 (post_attach): Move...
10670 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10671 (remove_fork_catchpoint, post_startup_inferior)
10672 (post_attach): ...here.
10673 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10674 (remove_fork_catchpoint, post_startup_inferior)
10675 (post_attach): Move...
10676 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10677 (remove_fork_catchpoint, post_startup_inferior)
10678 (post_attach): ...here.
10679
10680 2020-04-24 Tom Tromey <tromey@adacore.com>
10681
10682 * nat/windows-nat.h (struct windows_thread_info)
10683 <pc_adjusted>: New member.
10684 * windows-nat.c (windows_fetch_one_register): Check
10685 pc_adjusted.
10686 (windows_nat_target::get_windows_debug_event)
10687 (windows_nat_target::wait): Set pc_adjusted.
10688
10689 2020-04-24 Tom de Vries <tdevries@suse.de>
10690
10691 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10692 Run gdb-add-index inside temp dir.
10693
10694 2020-04-23 Tom Tromey <tromey@adacore.com>
10695
10696 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10697 in loop.
10698
10699 2020-04-23 Luis Machado <luis.machado@linaro.org>
10700
10701 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10702 get_frame_register instead of gdbarch_unwind_pc.
10703
10704 2020-04-23 Tom de Vries <tdevries@suse.de>
10705
10706 * symtab.c (lookup_global_symbol): Prefer def over decl.
10707
10708 2020-04-23 Tom de Vries <tdevries@suse.de>
10709
10710 PR symtab/25807
10711 * block.c (best_symbol, better_symbol): Promote to external.
10712 * block.h (best_symbol, better_symbol): Declare.
10713 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10714 decl.
10715
10716 2020-04-23 Tom Tromey <tromey@adacore.com>
10717
10718 PR ada/25837:
10719 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10720 "const char *", not a "const std::string &".
10721 <name_and_matcher::operator==>: Update.
10722 * unittests/lookup_name_info-selftests.c: Change type of
10723 "result".
10724
10725 2020-04-23 Tom Tromey <tom@tromey.com>
10726
10727 * inferior.h (iterate_over_inferiors): Don't declare.
10728 * inferior.c (iterate_over_inferiors): Remove.
10729 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10730 Remove.
10731 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10732 use iterate_over_inferiors.
10733 (darwin_resume_inferior_it)
10734 (struct resume_inferior_threads_param)
10735 (darwin_resume_inferior_threads_it): Remove.
10736 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10737
10738 2020-04-23 Tom de Vries <tdevries@suse.de>
10739
10740 * blockframe.c (find_pc_partial_function): Use
10741 find_pc_sect_compunit_symtab rather than
10742 objfile->sf->qf->find_pc_sect_compunit_symtab.
10743
10744 2020-04-22 Tom de Vries <tdevries@suse.de>
10745
10746 PR symtab/25764
10747 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10748 in psymtabs.
10749
10750 2020-04-22 Tom de Vries <tdevries@suse.de>
10751
10752 PR symtab/25801
10753 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10754 symtabs.
10755
10756 2020-04-22 Tom de Vries <tdevries@suse.de>
10757
10758 PR symtab/25700
10759 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10760 CU if already created.
10761
10762 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10763
10764 * infrun.c (displaced_step_fixup): Switch to the event_thread
10765 before calling displaced_step_restore, not after.
10766
10767 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10768
10769 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10770 its inferior is not recorded by us.
10771 (record_btrace_target_open): Replace call to
10772 all_non_exited_threads () with call to current_inferior
10773 ()->non_exited_threads ().
10774 (record_btrace_target::stop_recording): Likewise.
10775 (record_btrace_target::close): Likewise.
10776 (record_btrace_target::wait): Likewise.
10777 (record_btrace_target::record_stop_replaying): Likewise.
10778
10779 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10780
10781 * btrace.c (btrace_enable): Throw an error on double enables and
10782 when enabling recording fails.
10783 (btrace_disable): Throw an error if the thread is not recorded.
10784
10785 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10786
10787 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10788 request if we do not have a thread_info.
10789
10790 2020-04-21 Tom de Vries <tdevries@suse.de>
10791
10792 PR gdb/25471
10793 * thread.c
10794 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10795 exception in get_frame_id.
10796
10797 2020-04-20 Tom Tromey <tromey@adacore.com>
10798
10799 * python/python.c (struct gdbpy_event): Mark move constructor as
10800 noexcept.
10801 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10802 constructor as noexcept.
10803 * completer.h (struct completion_result): Mark move constructor as
10804 noexcept.
10805 * completer.c (completion_result::completion_result): Use
10806 initialization style. Don't call reset_match_list.
10807
10808 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10809
10810 * MAINTAINERS (Write After Approval): Add myself.
10811
10812 2020-04-18 Tom Tromey <tom@tromey.com>
10813
10814 * windows-tdep.c (init_w32_command_list)
10815 (w32_prefix_command_valid): Restore.
10816 (_initialize_windows_tdep): Call init_w32_command_list.
10817
10818 2020-04-18 Tom Tromey <tom@tromey.com>
10819
10820 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10821 * value.c (value_fn_field): Update.
10822 * valops.c (find_function_in_inferior)
10823 (value_allocate_space_in_inferior): Update.
10824 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10825 Update.
10826 * tui/tui-source.c (tui_source_window::set_contents): Update.
10827 * symtab.c (lookup_global_or_static_symbol)
10828 (find_function_start_sal_1, skip_prologue_sal)
10829 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10830 * symmisc.c (dump_msymbols, dump_symtab_1)
10831 (maintenance_print_one_line_table): Update.
10832 * symfile.c (init_entry_point_info, section_is_mapped)
10833 (list_overlays_command, simple_read_overlay_table)
10834 (simple_overlay_update_1): Update.
10835 * stap-probe.c (handle_stap_probe): Update.
10836 * stabsread.c (dbx_init_float_type, define_symbol)
10837 (read_one_struct_field, read_enum_type, read_range_type): Update.
10838 * source.c (info_line_command): Update.
10839 * python/python.c (gdbpy_source_objfile_script)
10840 (gdbpy_execute_objfile_script): Update.
10841 * python/py-type.c (save_objfile_types): Update.
10842 * python/py-objfile.c (py_free_objfile): Update.
10843 * python/py-inferior.c (python_new_objfile): Update.
10844 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10845 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10846 (maintenance_check_psymtabs): Update.
10847 * printcmd.c (info_address_command): Update.
10848 * objfiles.h (struct objfile) <arch>: New method, from
10849 get_objfile_arch.
10850 (get_objfile_arch): Don't declare.
10851 * objfiles.c (get_objfile_arch): Remove.
10852 (filter_overlapping_sections): Update.
10853 * minsyms.c (msymbol_is_function): Update.
10854 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10855 (output_nondebug_symbol): Update.
10856 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10857 (mdebug_expand_psymtab): Update.
10858 * machoread.c (macho_add_oso_symfile): Update.
10859 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10860 Update.
10861 * linux-fork.c (checkpoint_command): Update.
10862 * linespec.c (convert_linespec_to_sals): Update.
10863 * jit.c (finalize_symtab): Update.
10864 * infrun.c (insert_exception_resume_from_probe): Update.
10865 * ia64-tdep.c (ia64_find_unwind_table): Update.
10866 * hppa-tdep.c (internalize_unwinds): Update.
10867 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10868 Update.
10869 * gcore.c (call_target_sbrk): Update.
10870 * elfread.c (record_minimal_symbol, elf_symtab_read)
10871 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10872 (elf_gnu_ifunc_resolve_by_got): Update.
10873 * dwarf2/read.c (create_addrmap_from_index)
10874 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10875 (read_debug_names_from_section)
10876 (process_psymtab_comp_unit_reader, add_partial_symbol)
10877 (add_partial_subprogram, process_full_comp_unit)
10878 (read_file_scope, read_func_scope, read_lexical_block_scope)
10879 (read_call_site_scope, dwarf2_ranges_read)
10880 (dwarf2_record_block_ranges, dwarf2_add_field)
10881 (mark_common_block_symbol_computed, read_tag_pointer_type)
10882 (read_tag_string_type, dwarf2_init_float_type)
10883 (dwarf2_init_complex_target_type, read_base_type)
10884 (partial_die_info::read, partial_die_info::read)
10885 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10886 (dwarf2_fetch_die_loc_sect_off): Update.
10887 * dwarf2/loc.c (dwarf2_find_location_expression)
10888 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10889 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10890 (dwarf2_loc_desc_get_symbol_read_needs)
10891 (locexpr_describe_location_piece, locexpr_describe_location_1)
10892 (loclist_describe_location): Update.
10893 * dwarf2/index-write.c (write_debug_names): Update.
10894 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10895 * dtrace-probe.c (dtrace_process_dof): Update.
10896 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10897 (process_one_symbol): Update.
10898 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10899 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10900 (coff_read_enum_type): Update.
10901 * cli/cli-cmds.c (edit_command, list_command): Update.
10902 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10903 * breakpoint.c (create_overlay_event_breakpoint)
10904 (create_longjmp_master_breakpoint)
10905 (create_std_terminate_master_breakpoint)
10906 (create_exception_master_breakpoint, get_sal_arch): Update.
10907 * block.c (block_gdbarch): Update.
10908 * annotate.c (annotate_source_line): Update.
10909
10910 2020-04-17 Tom Tromey <tromey@adacore.com>
10911
10912 * auto-load.c (show_auto_load_cmd): Remove.
10913 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10914 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10915 (maintenance_print_arc_command): Remove.
10916 * tui/tui-win.c (tui_command): Remove.
10917 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10918 * tui/tui-layout.c (tui_layout_command): Remove.
10919 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10920 * python/python.c (user_set_python, user_show_python): Remove.
10921 (_initialize_python): Use add_basic_prefix_cmd,
10922 add_show_prefix_cmd.
10923 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10924 (install_gdb_commands): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 (info_guile_command): Remove.
10927 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10928 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10929 add_show_prefix_cmd.
10930 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10931 Remove do_set and do_show parameters.
10932 * cli/cli-style.c (set_style, show_style): Remove.
10933 (_initialize_cli_style): Use add_basic_prefix_cmd,
10934 add_show_prefix_cmd.
10935 (cli_style_option::add_setshow_commands): Remove do_set and
10936 do_show parameters.
10937 (cli_style_option::add_setshow_commands): Use
10938 add_basic_prefix_cmd, add_show_prefix_cmd.
10939 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10940 (set_style_name): Remove.
10941 * cli/cli-dump.c (dump_command, append_command): Remove.
10942 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10943 (tekhex_dump_command, binary_dump_command)
10944 (binary_append_command): Remove.
10945 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10946 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10947 (init_w32_command_list): Remove; move into ...
10948 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10949 * valprint.c (set_print, show_print, set_print_raw)
10950 (show_print_raw): Remove.
10951 (_initialize_valprint): Use add_basic_prefix_cmd,
10952 add_show_prefix_cmd.
10953 * typeprint.c (set_print_type, show_print_type): Remove.
10954 (_initialize_typeprint): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 * record.c (set_record_command, show_record_command): Remove.
10957 (_initialize_record): Use add_basic_prefix_cmd,
10958 add_show_prefix_cmd.
10959 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10960 add_show_prefix_cmd.
10961 (info_command, show_command, set_debug, show_debug): Remove.
10962 * top.h (set_history, show_history): Don't declare.
10963 * top.c (set_history, show_history): Remove.
10964 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10965 (unset_tdesc_cmd): Remove.
10966 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10967 add_show_prefix_cmd.
10968 * symtab.c (info_module_command): Remove.
10969 (_initialize_symtab): Use add_basic_prefix_cmd.
10970 * symfile.c (overlay_command): Remove.
10971 (_initialize_symfile): Use add_basic_prefix_cmd.
10972 * sparc64-tdep.c (info_adi_command): Remove.
10973 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10974 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10975 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10976 add_show_prefix_cmd.
10977 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10978 (_initialize_serial): Use add_basic_prefix_cmd,
10979 add_show_prefix_cmd.
10980 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10981 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10982 add_show_prefix_cmd.
10983 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10984 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10985 add_show_prefix_cmd.
10986 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10987 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10988 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10989 add_show_prefix_cmd.
10990 * remote.c (remote_command, set_remote_cmd): Remove.
10991 (_initialize_remote): Use add_basic_prefix_cmd.
10992 * record-full.c (set_record_full_command)
10993 (show_record_full_command): Remove.
10994 (_initialize_record_full): Use add_basic_prefix_cmd,
10995 add_show_prefix_cmd.
10996 * record-btrace.c (cmd_set_record_btrace)
10997 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10998 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10999 (cmd_show_record_btrace_pt): Remove.
11000 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11001 add_show_prefix_cmd.
11002 * ravenscar-thread.c (set_ravenscar_command)
11003 (show_ravenscar_command): Remove.
11004 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11005 add_show_prefix_cmd.
11006 * mips-tdep.c (show_mips_command, set_mips_command)
11007 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11008 add_show_prefix_cmd.
11009 * maint.c (maintenance_command, maintenance_info_command)
11010 (maintenance_check_command, maintenance_print_command)
11011 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11012 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11013 add_show_prefix_cmd.
11014 (show_per_command_cmd): Remove.
11015 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11016 Remove.
11017 (maintenance_show_test_settings_cmd): Remove.
11018 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11019 add_show_prefix_cmd.
11020 * maint-test-options.c (maintenance_test_options_command):
11021 Remove.
11022 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11023 * macrocmd.c (macro_command): Remove
11024 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11025 * language.c (set_check, show_check): Remove.
11026 (_initialize_language): Use add_basic_prefix_cmd,
11027 add_show_prefix_cmd.
11028 * infcmd.c (unset_command): Remove.
11029 (_initialize_infcmd): Use add_basic_prefix_cmd.
11030 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11031 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11032 add_show_prefix_cmd.
11033 * go32-nat.c (go32_info_dos_command): Remove.
11034 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11035 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11036 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11037 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11038 (_initialize_frame): Use add_basic_prefix_cmd,
11039 add_show_prefix_cmd.
11040 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11041 (_initialize_dcache): Use add_basic_prefix_cmd,
11042 add_show_prefix_cmd.
11043 * cp-support.c (maint_cplus_command): Remove.
11044 (_initialize_cp_support): Use add_basic_prefix_cmd.
11045 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11046 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11047 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11048 add_basic_prefix_cmd, add_show_prefix_cmd.
11049 * breakpoint.c (save_command): Remove.
11050 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11051 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11052 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11055 (set_ada_command, show_ada_command): Remove.
11056 (_initialize_ada_language): Use add_basic_prefix_cmd,
11057 add_show_prefix_cmd.
11058 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11059
11060 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11061
11062 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11063 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11064
11065 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11066
11067 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11068 warning messages.
11069
11070 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11071
11072 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11073 import table is not at beginning of .idata section.
11074
11075 2020-04-16 Pedro Alves <palves@redhat.com>
11076
11077 * inferior.c (delete_inferior): Use delete operator directly
11078 instead of delete_program_space.
11079 * progspace.c (add_program_space): New, factored out from
11080 program_space::program_space.
11081 (remove_program_space): New, factored out from
11082 delete_program_space.
11083 (program_space::program_space): Remove intro comment. Rewrite.
11084 (program_space::~program_space): Remove intro comment. Call
11085 remove_program_space.
11086 (delete_program_space): Delete.
11087 * progspace.h (program_space::program_space): Make explicit. Move
11088 intro comment here, adjusted.
11089 (program_space::~program_space): Move intro comment here,
11090 adjusted.
11091 (delete_program_space): Remove.
11092
11093 2020-04-16 Tom Tromey <tromey@adacore.com>
11094
11095 * windows-nat.c (windows_nat::handle_access_violation): New
11096 function.
11097 * nat/windows-nat.h (handle_access_violation): Declare.
11098 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11099 windows-nat.c. Call handle_access_violation.
11100
11101 2020-04-16 Tom de Vries <tdevries@suse.de>
11102
11103 PR symtab/25791
11104 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11105 CUs without psymtab.
11106
11107 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11108
11109 * python/python.c (do_start_initialization): Don't call
11110 PyEval_InitThreads for Python 3.9 and beyond.
11111
11112 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11113
11114 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11115 thread functions.
11116 (obsd_nat_target::wait): Likewise.
11117
11118 2020-04-15 Tom Tromey <tromey@adacore.com>
11119
11120 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11121 (DEBUG_EXCEPT): Use debug_printf.
11122
11123 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11124
11125 * completer.c (class completion_tracker::completion_hash_entry)
11126 <hash_name>: New member function.
11127 (completion_tracker::discard_completions): New callback to hash a
11128 completion_hash_entry, pass this to htab_create_alloc.
11129
11130 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11131
11132 * windows-nat.c (windows_make_so): Warn rather than stopping with
11133 an error if realpath() fails.
11134
11135 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11136
11137 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11138 (nbsd_nat_target::info_proc): Add do_status.
11139
11140 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11141 Tom de Vries <tdevries@suse.de>
11142
11143 PR symtab/25718
11144 * psympriv.h (struct partial_symtab::read_symtab)
11145 (struct partial_symtab::expand_psymtab)
11146 (struct partial_symtab::read_dependencies): Update comments.
11147 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11148 read_symtab for includer.
11149 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11150 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11151 (struct dwarf2_include_psymtab::m_readin): Remove.
11152 (struct dwarf2_include_psymtab::includer): New member function.
11153 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11154
11155 2020-04-14 Tom de Vries <tdevries@suse.de>
11156
11157 PR symtab/25720
11158 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11159 with NULL symbol_matcher and lookup_name.
11160 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11161 and lookup_name.
11162 * dwarf2/read.c (dw2_expand_symtabs_matching)
11163 (dw2_debug_names_expand_symtabs_matching): Same.
11164 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11165 Make lookup_name a pointer. Update comment.
11166 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11167 lookup_name being a pointer.
11168 * symfile.c (expand_symtabs_matching): Same.
11169 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11170 * linespec.c (iterate_over_all_matching_symtabs): Same.
11171
11172 2020-04-13 Tom Tromey <tom@tromey.com>
11173
11174 * run-on-main-thread.c: Update include.
11175 * unittests/main-thread-selftests.c: Update include.
11176 * tui/tui-win.c: Update include.
11177 * tui/tui-io.c: Update include.
11178 * tui/tui-interp.c: Update include.
11179 * tui/tui-hooks.c: Update include.
11180 * top.h: Update include.
11181 * top.c: Update include.
11182 * ser-base.c: Update include.
11183 * remote.c: Update include.
11184 * remote-notif.c: Update include.
11185 * remote-fileio.c: Update include.
11186 * record-full.c: Update include.
11187 * record-btrace.c: Update include.
11188 * python/python.c: Update include.
11189 * posix-hdep.c: Update include.
11190 * mingw-hdep.c: Update include.
11191 * mi/mi-main.c: Update include.
11192 * mi/mi-interp.c: Update include.
11193 * main.c: Update include.
11194 * linux-nat.c: Update include.
11195 * interps.c: Update include.
11196 * infrun.c: Update include.
11197 * inf-loop.c: Update include.
11198 * event-top.c: Update include.
11199 * event-loop.c: Move to ../gdbsupport/.
11200 * event-loop.h: Move to ../gdbsupport/.
11201 * async-event.h: Update include.
11202 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11203
11204 2020-04-13 Tom Tromey <tom@tromey.com>
11205
11206 * tui/tui-win.c: Include async-event.h.
11207 * remote.c: Include async-event.h.
11208 * remote-notif.c: Include async-event.h.
11209 * record-full.c: Include async-event.h.
11210 * record-btrace.c: Include async-event.h.
11211 * infrun.c: Include async-event.h.
11212 * event-top.c: Include async-event.h.
11213 * event-loop.h: Move some declarations to async-event.h.
11214 * event-loop.c: Don't include ser-event.h or top.h. Move some
11215 code to async-event.c.
11216 * async-event.h: New file.
11217 * async-event.c: New file.
11218 * Makefile.in (COMMON_SFILES): Add async-event.c.
11219 (HFILES_NO_SRCDIR): Add async-event.h.
11220
11221 2020-04-13 Tom Tromey <tom@tromey.com>
11222
11223 * utils.c (flush_streams): New function.
11224 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11225
11226 2020-04-13 Tom Tromey <tom@tromey.com>
11227
11228 * event-loop.c (handle_file_event): Use warning, not
11229 printf_unfiltered.
11230
11231 2020-04-13 Tom Tromey <tom@tromey.com>
11232
11233 * event-loop.c: Include <chrono>.
11234
11235 2020-04-13 Tom Tromey <tom@tromey.com>
11236
11237 * gdb_select.h: Move to ../gdbsupport/.
11238 * event-loop.c: Update include path.
11239 * top.c: Update include path.
11240 * ser-base.c: Update include path.
11241 * ui-file.c: Update include path.
11242 * ser-tcp.c: Update include path.
11243 * guile/scm-ports.c: Update include path.
11244 * posix-hdep.c: Update include path.
11245 * ser-unix.c: Update include path.
11246 * gdb_usleep.c: Update include path.
11247 * mingw-hdep.c: Update include path.
11248 * inflow.c: Update include path.
11249 * infrun.c: Update include path.
11250 * event-top.c: Update include path.
11251
11252 2020-04-13 Tom Tromey <tom@tromey.com>
11253
11254 * configure: Rebuild.
11255 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11256
11257 2020-04-13 Tom Tromey <tom@tromey.com>
11258
11259 * event-loop.h (start_event_loop): Don't declare.
11260 * event-loop.c (start_event_loop): Move...
11261 * main.c (start_event_loop): ...here. Now static.
11262
11263 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11264
11265 * MAINTAINERS: Update my email address.
11266
11267 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11268
11269 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11270 IP_ALL.
11271
11272 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11273
11274 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11275 (nbsd_nat_target::info_proc): Add do_cmdline.
11276
11277 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11278
11279 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11280 (nbsd_nat_target::info_proc): Add do_cwd.
11281
11282 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11283
11284 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11285
11286 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11287
11288 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11289 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11290 (nbsd_nat_target::info_proc): New functions.
11291 * nbsd-nat.c (kinfo_get_vmmap): New function.
11292 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11293 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11294 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11295 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11296 functions.
11297 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11298 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11299 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11300 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11301 (KINFO_VME_FLAG_GROWS_DOWN): New.
11302
11303 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11304
11305 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11306 bit shift.
11307
11308 2020-04-10 Tom Tromey <tromey@adacore.com>
11309
11310 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11311
11312 2020-04-10 Tom Tromey <tromey@adacore.com>
11313
11314 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11315 separate debug files.
11316
11317 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11318
11319 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11320 Move to...
11321 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11322 ... here.
11323 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11324 Check for STATUS_WX86_BREAKPOINT.
11325 (windows_nat_target::wait): Same.
11326
11327 2020-04-10 Tom de Vries <tdevries@suse.de>
11328
11329 PR cli/25808
11330 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11331
11332 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11333
11334 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11335 (Write After Approval): Remove Tom de Vries.
11336
11337 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11338
11339 revert partially:
11340 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11341
11342 * buildsym.c (record_line): Fix undefined behavior and preserve
11343 lines at eof.
11344
11345 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11346
11347 * auxv.h (svr4_auxv_parse): New.
11348 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11349 and generic_auxv_parse.
11350 (svr4_auxv_parse): Add.
11351 * obsd-tdep.c: Include "auxv.h".
11352 (obsd_auxv_parse): Remove.
11353 (obsd_init_abi): Remove comment.
11354 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11355 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11356 * nbsd-tdep.c: Include "auxv.h".
11357 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11358
11359 2020-04-08 Tom Tromey <tromey@adacore.com>
11360
11361 * nat/windows-nat.h (last_wait_event): Don't declare.
11362 (wait_for_debug_event): Update comment.
11363 * nat/windows-nat.c (last_wait_event): Now static.
11364
11365 2020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * windows-nat.c (wait_for_debug_event): Move to
11368 nat/windows-nat.c.
11369 * nat/windows-nat.h (wait_for_debug_event): Declare.
11370 * nat/windows-nat.c (wait_for_debug_event): Move from
11371 windows-nat.c. No longer static.
11372
11373 2020-04-08 Tom Tromey <tromey@adacore.com>
11374
11375 * windows-nat.c (get_windows_debug_event): Use
11376 fetch_pending_stop.
11377 * nat/windows-nat.h (fetch_pending_stop): Declare.
11378 * nat/windows-nat.c (fetch_pending_stop): New function.
11379
11380 2020-04-08 Tom Tromey <tromey@adacore.com>
11381
11382 * windows-nat.c (windows_continue): Use matching_pending_stop and
11383 continue_last_debug_event.
11384 * nat/windows-nat.h (matching_pending_stop)
11385 (continue_last_debug_event): Declare.
11386 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11387 (matching_pending_stop, continue_last_debug_event): New
11388 functions.
11389
11390 2020-04-08 Tom Tromey <tromey@adacore.com>
11391
11392 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11393 (handle_exception_result): Move to nat/windows-nat.h.
11394 (DEBUG_EXCEPTION_SIMPLE): Remove.
11395 (windows_nat::handle_ms_vc_exception): New function.
11396 (handle_exception): Move to nat/windows-nat.c.
11397 (get_windows_debug_event): Update.
11398 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11399 nat/windows-nat.c.
11400 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11401 (handle_exception_result): Move from windows-nat.c.
11402 (handle_exception): Declare.
11403 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11404 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11405 windows-nat.c.
11406
11407 2020-04-08 Tom Tromey <tromey@adacore.com>
11408
11409 * windows-nat.c (exception_count, event_count): Remove.
11410 (handle_exception, get_windows_debug_event)
11411 (do_initial_windows_stuff): Update.
11412
11413 2020-04-08 Tom Tromey <tromey@adacore.com>
11414
11415 * windows-nat.c (windows_nat::handle_load_dll)
11416 (windows_nat::handle_unload_dll): Rename. No longer static.
11417 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11418 Declare.
11419
11420 2020-04-08 Tom Tromey <tromey@adacore.com>
11421
11422 * complaints.h (stop_whining): Declare at top-level.
11423 (complaint): Don't declare stop_whining.
11424
11425 2020-04-08 Tom Tromey <tromey@adacore.com>
11426
11427 * windows-nat.c (windows_nat::handle_output_debug_string):
11428 Rename. No longer static.
11429 * nat/windows-nat.h (handle_output_debug_string): Declare.
11430
11431 2020-04-08 Tom Tromey <tromey@adacore.com>
11432
11433 * windows-nat.c (current_process_handle, current_process_id)
11434 (main_thread_id, last_sig, current_event, last_wait_event)
11435 (current_windows_thread, desired_stop_thread_id, pending_stops)
11436 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11437 (display_selectors, fake_create_process)
11438 (get_windows_debug_event): Update.
11439 * nat/windows-nat.h (current_process_handle, current_process_id)
11440 (main_thread_id, last_sig, current_event, last_wait_event)
11441 (current_windows_thread, desired_stop_thread_id, pending_stops)
11442 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11443 * nat/windows-nat.c (current_process_handle, current_process_id)
11444 (main_thread_id, last_sig, current_event, last_wait_event)
11445 (current_windows_thread, desired_stop_thread_id, pending_stops)
11446 (siginfo_er): New globals. Move from windows-nat.c.
11447
11448 2020-04-08 Tom Tromey <tromey@adacore.com>
11449
11450 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11451 (handle_load_dll): Update.
11452 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11453
11454 2020-04-08 Tom Tromey <tromey@adacore.com>
11455
11456 * windows-nat.c (enum thread_disposition_type): Move to
11457 nat/windows-nat.h.
11458 (windows_nat::thread_rec): Rename from thread_rec. No longer
11459 static.
11460 (windows_add_thread, windows_nat_target::fetch_registers)
11461 (windows_nat_target::store_registers, handle_exception)
11462 (windows_nat_target::resume, get_windows_debug_event)
11463 (windows_nat_target::get_tib_address)
11464 (windows_nat_target::thread_name)
11465 (windows_nat_target::thread_alive): Update.
11466 * nat/windows-nat.h (enum thread_disposition_type): Move from
11467 windows-nat.c.
11468 (thread_rec): Declare.
11469
11470 2020-04-08 Tom Tromey <tromey@adacore.com>
11471
11472 * windows-nat.c: Add "using namespace".
11473 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11474 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11475
11476 2020-04-08 Tom Tromey <tromey@adacore.com>
11477
11478 * nat/windows-nat.h (struct windows_thread_info): Declare
11479 destructor.
11480 * nat/windows-nat.c (~windows_thread_info): New.
11481
11482 2020-04-08 Tom Tromey <tromey@adacore.com>
11483
11484 PR gdb/22992
11485 * windows-nat.c (current_event): Update comment.
11486 (last_wait_event, desired_stop_thread_id): New globals.
11487 (struct pending_stop): New.
11488 (pending_stops): New global.
11489 (windows_nat_target) <stopped_by_sw_breakpoint>
11490 <supports_stopped_by_sw_breakpoint>: New methods.
11491 (windows_fetch_one_register): Add assertions. Adjust PC.
11492 (windows_continue): Handle pending stops. Suspend other threads
11493 when stepping. Use last_wait_event
11494 (wait_for_debug_event): New function.
11495 (get_windows_debug_event): Use wait_for_debug_event. Handle
11496 pending stops. Queue spurious stops.
11497 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11498 (windows_nat_target::kill): Use wait_for_debug_event.
11499 * nat/windows-nat.h (struct windows_thread_info)
11500 <stopped_at_software_breakpoint>: New field.
11501 * nat/windows-nat.c (windows_thread_info::resume): Clear
11502 stopped_at_software_breakpoint.
11503
11504 2020-04-08 Tom Tromey <tromey@adacore.com>
11505
11506 * windows-nat.c (enum thread_disposition_type): New.
11507 (thread_rec): Replace "get_context" parameter with "disposition";
11508 change type.
11509 (windows_add_thread, windows_nat_target::fetch_registers)
11510 (windows_nat_target::store_registers, handle_exception)
11511 (windows_nat_target::resume, get_windows_debug_event)
11512 (windows_nat_target::get_tib_address)
11513 (windows_nat_target::thread_name)
11514 (windows_nat_target::thread_alive): Update.
11515
11516 2020-04-08 Tom Tromey <tromey@adacore.com>
11517
11518 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11519 (windows_continue): Use windows_continue::resume.
11520 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11521 resume>: Declare new methods.
11522 * nat/windows-nat.c: New file.
11523 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11524
11525 2020-04-08 Tom Tromey <tromey@adacore.com>
11526
11527 * windows-nat.c (windows_add_thread, windows_delete_thread)
11528 (windows_nat_target::fetch_registers)
11529 (windows_nat_target::store_registers, fake_create_process)
11530 (windows_nat_target::resume, windows_nat_target::resume)
11531 (get_windows_debug_event, windows_nat_target::wait)
11532 (windows_nat_target::pid_to_str)
11533 (windows_nat_target::get_tib_address)
11534 (windows_nat_target::get_ada_task_ptid)
11535 (windows_nat_target::thread_name)
11536 (windows_nat_target::thread_alive): Use lwp, not tid.
11537
11538 2020-04-08 Tom Tromey <tromey@adacore.com>
11539
11540 * windows-nat.c (handle_exception)
11541 (windows_nat_target::thread_name): Update.
11542 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11543 <name>: Now unique_xmalloc_ptr.
11544
11545 2020-04-08 Tom Tromey <tromey@adacore.com>
11546
11547 * windows-nat.c (thread_rec)
11548 (windows_nat_target::fetch_registers): Update.
11549 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11550 Update comment.
11551 <debug_registers_changed, reload_context>: Now bool.
11552
11553 2020-04-08 Tom Tromey <tromey@adacore.com>
11554
11555 * windows-nat.c (windows_add_thread): Use new.
11556 (windows_init_thread_list, windows_delete_thread): Use delete.
11557 (get_windows_debug_event): Update.
11558 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11559 destructor, and initializers.
11560
11561 2020-04-08 Tom Tromey <tromey@adacore.com>
11562
11563 * windows-nat.c (struct windows_thread_info): Remove.
11564 * nat/windows-nat.h: New file.
11565
11566 2020-04-08 Tom Tromey <tromey@adacore.com>
11567
11568 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11569 (thread_rec, windows_add_thread, windows_delete_thread)
11570 (windows_continue): Update.
11571
11572 2020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 * windows-nat.c (struct windows_thread_info): Remove typedef.
11575 (thread_head): Remove.
11576 (thread_list): New global.
11577 (thread_rec, windows_add_thread, windows_init_thread_list)
11578 (windows_delete_thread, windows_continue): Update.
11579
11580 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11581
11582 * windows-tdep.h (windows_init_abi): Add comment.
11583 (cygwin_init_abi): New declaration.
11584 * windows-tdep.c: Split signal enumeration in two, one for
11585 Windows and one for Cygwin.
11586 (windows_gdb_signal_to_target): Only deal with signal of the
11587 Windows OS ABI.
11588 (cygwin_gdb_signal_to_target): New function.
11589 (windows_init_abi): Rename to windows_init_abi_common, don't set
11590 gdb_signal_to_target gdbarch method. Add new new function with
11591 this name.
11592 (cygwin_init_abi): New function.
11593 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11594 comment. Don't call windows_init_abi.
11595 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11596 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11597 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11598 i386_windows_init_abi_common, don't call windows_init_abi. Add
11599 a new function of this name.
11600 (i386_cygwin_init_abi): New function.
11601 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11602 OS ABI Cygwin.
11603
11604 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11605
11606 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11607 parameter.c.
11608 (dwarf2_read_gdb_index): Update.
11609
11610 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11611
11612 * nbsd-tdep.c: Include "objfiles.h".
11613 (nbsd_skip_solib_resolver): New.
11614 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11615
11616 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11617
11618 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11619 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11620 with DW_LLE_base_addressx are being emitted in DWARFv5.
11621 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11622 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11623 unsigned integer.
11624
11625 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11626
11627 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11628 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11629 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11630 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11631 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11632 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11633 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11634
11635
11636 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11637
11638 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11639 (read_loclist_index): New function definition.
11640 (lookup_loclist_base): New function definition.
11641 (read_loclist_header): New function definition.
11642 (dwarf2_cu): Add loclist_base and loclist_header field.
11643 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11644 (read_full_die_1): Read the value of DW_AT_loclists_base.
11645 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11646 (read_attribute_value): Handle DW_FORM_loclistx.
11647 (skip_one_die): Handle DW_FORM_loclistx.
11648 (loclist_header): New structure declaration.
11649 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11650
11651 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11652
11653 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11654 constructor. Remove `addr` parameter from other constructor and
11655 add `per_cu` parameter.
11656 * dwarf2/read.c (create_partial_symtab): Update.
11657
11658 2020-04-07 Tom de Vries <tdevries@suse.de>
11659
11660 PR symtab/25796
11661 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11662 (partial_die_info::fixup): Inherit has_const_value.
11663
11664 2020-04-07 Tom de Vries <tdevries@suse.de>
11665
11666 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11667 symbols without address.
11668
11669 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11670
11671 * nbsd-nat.h (struct thread_info): Add forward declaration.
11672 (nbsd_nat_target::thread_alive): Add.
11673 (nbsd_nat_target::thread_name): Likewise.
11674 (nbsd_nat_target::update_thread_list): Likewise.
11675 (update_thread_list::post_attach): Likewise.
11676 (post_attach::pid_to_str): Likewise.
11677 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11678 (nbsd_thread_lister): Add.
11679 (nbsd_nat_target::thread_alive): Likewise.
11680 (nbsd_nat_target::thread_name): Likewise.
11681 (nbsd_add_threads): Likewise.
11682 (update_thread_list::post_attach): Likewise.
11683 (nbsd_nat_target::update_thread_list): Likewise.
11684 (post_attach::pid_to_str): Likewise.
11685
11686 2020-04-06 Tom Tromey <tromey@adacore.com>
11687
11688 * ada-valprint.c (print_variant_part): Extract the variant field.
11689 (print_field_values): Use the field as the outer value when
11690 recursing.
11691
11692 2020-04-06 Tom Tromey <tromey@adacore.com>
11693
11694 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11695 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11696 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11697 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11698 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11699
11700 2020-04-06 Tom Tromey <tromey@adacore.com>
11701
11702 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11703 TYPE_CODE_ERROR.
11704
11705 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11706
11707 * nbsd-tdep.c: Include "gdbarch.h".
11708 Define enum with NetBSD signal numbers.
11709 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11710 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11711 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11712 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11713 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11714 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11715 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11716 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11717 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11718 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11719 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11720 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11721
11722 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11723
11724 PR gdb/25325
11725 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11726
11727 2020-04-03 Tom Tromey <tromey@adacore.com>
11728
11729 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11730 Read constant block.
11731
11732 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11735 (gdb_bfd_get_full_section_contents): New declaration.
11736 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11737 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11738 gdb_bfd_get_full_section_contents.
11739
11740 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11741
11742 * exec.c (build_section_table): Replace internal_error with
11743 gdb_assert.
11744 (section_table_xfer_memory_partial): Likewise.
11745 * mdebugread.c (parse_partial_symbols): Likewise.
11746 * psymtab.c (lookup_partial_symbol): Likewise.
11747 * utils.c (wrap_here): Likewise.
11748
11749 2020-04-02 Tom Tromey <tromey@adacore.com>
11750
11751 * f-lang.c (build_fortran_types): Use arch_type to initialize
11752 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11753
11754 2020-04-02 Tom Tromey <tromey@adacore.com>
11755
11756 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11757 of attributes.
11758
11759 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11760 Bernd Edlinger <bernd.edlinger@hotmail.de>
11761 Tom Tromey <tromey@adacore.com>
11762
11763 * buildsym.c (buildsym_compunit::record_line): Remove
11764 deduplication code.
11765
11766 2020-04-02 Tom de Vries <tdevries@suse.de>
11767
11768 PR ada/24671
11769 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11770
11771 2020-04-02 Tom de Vries <tdevries@suse.de>
11772
11773 * dwarf2/read.c (dwarf2_gdb_index_functions,
11774 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11775 NULL.
11776 * psymtab.c (psym_lookup_global_symbol_language): New function.
11777 (psym_functions): Init psym_lookup_global_symbol_language with
11778 psym_lookup_global_symbol_language.
11779 * symfile-debug.c (debug_sym_quick_functions): Init
11780 lookup_global_symbol_language with NULL.
11781 * symfile.c (set_initial_language): Remove fixme comment.
11782 * symfile.h (struct quick_symbol_functions): Add
11783 lookup_global_symbol_language.
11784 * symtab.c (find_quick_global_symbol_language): New function.
11785 (find_main_name): Use find_quick_global_symbol_language.
11786
11787 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11788
11789 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11790
11791 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11792
11793 * buildsym.c (record_line): Fix undefined behavior and preserve
11794 lines at eof.
11795
11796 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11797
11798 * buildsym.c (record_line): Fix the resizing condition.
11799
11800 2020-04-01 Tom Tromey <tom@tromey.com>
11801
11802 * value.h (value_literal_complex): Add comment.
11803 * valops.c (value_literal_complex): Refer to value.h.
11804
11805 2020-04-01 Tom Tromey <tom@tromey.com>
11806
11807 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11808 (scalar_type): New rule, from typebase.
11809 (typebase): Use scalar_type. Recognize complex types.
11810 (field_name): Handle FLOAT_KEYWORD.
11811 (ident_tokens): Add _Complex and __complex__.
11812
11813 2020-04-01 Tom Tromey <tom@tromey.com>
11814
11815 PR exp/25299:
11816 * valarith.c (promotion_type, complex_binop): New functions.
11817 (scalar_binop): Handle complex numbers. Use promotion_type.
11818 (value_pos, value_neg, value_complement): Handle complex numbers.
11819
11820 2020-04-01 Tom Tromey <tom@tromey.com>
11821
11822 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11823 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11824 (parse_number): Handle complex numbers.
11825
11826 2020-04-01 Tom Tromey <tom@tromey.com>
11827
11828 * c-valprint.c (c_decorations): Change complex suffix to "i".
11829
11830 2020-04-01 Tom Tromey <tom@tromey.com>
11831
11832 * valprint.c (generic_value_print_complex): Use accessors.
11833 * value.h (value_real_part, value_imaginary_part): Declare.
11834 * valops.c (value_real_part, value_imaginary_part): New
11835 functions.
11836 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11837
11838 2020-04-01 Tom Tromey <tom@tromey.com>
11839
11840 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11841 (read_range_type): Update.
11842 * mdebugread.c (basic_type): Update.
11843 * go-lang.c (build_go_types): Use init_complex_type.
11844 * gdbtypes.h (struct main_type) <complex_type>: New member.
11845 (init_complex_type): Update.
11846 (arch_complex_type): Don't declare.
11847 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11848 Make name if none given. Use alloc_type_copy. Look for cached
11849 complex type.
11850 (arch_complex_type): Remove.
11851 (gdbtypes_post_init): Use init_complex_type.
11852 * f-lang.c (build_fortran_types): Use init_complex_type.
11853 * dwarf2/read.c (read_base_type): Update.
11854 * d-lang.c (build_d_types): Use init_complex_type.
11855 * ctfread.c (read_base_type): Update.
11856
11857 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11858
11859 * infrun.c (stop_all_threads): Update assertion, plus when
11860 stopping threads, take into account that we might be trying
11861 to stop an all-stop target.
11862 (stop_waiting): Call 'stop_all_threads' if there exists a
11863 non-stop target.
11864
11865 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11866
11867 * target.h (exists_non_stop_target): New function declaration.
11868 * target.c (exists_non_stop_target): New function.
11869
11870 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11871
11872 PR gdb/24789
11873 * eval.c (is_integral_or_integral_reference): New function.
11874 (evaluate_subexp_standard): Allow integer references in
11875 pointer arithmetic.
11876
11877 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11878
11879 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11880 check for no ptid in the stop reply when the target is non-stop.
11881
11882 2020-04-01 Tom Tromey <tromey@adacore.com>
11883
11884 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11885 "name" parameter to rvalue reference. Initialize m_name_holder.
11886 <lookup_name_info>: New overloads.
11887 <name>: Return gdb::string_view.
11888 <c_str>: New method.
11889 <make_ignore_params>: Update.
11890 <search_name_hash>: Update.
11891 <language_lookup_name>: Return const char *.
11892 <m_name>: Change type.
11893 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11894 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11895 (lookup_name_info::match_any): Update.
11896 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11897 Update.
11898 * minsyms.c (linkage_name_str): Update.
11899 * language.c (default_symbol_name_matcher): Update.
11900 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11901 Update.
11902 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11903 (ada_lookup_name_info::ada_lookup_name_info): Update.
11904 (literal_symbol_name_matcher): Update.
11905
11906 2020-04-01 Tom Tromey <tromey@adacore.com>
11907
11908 * psymtab.c (psymtab_search_name): Remove function.
11909 (psym_lookup_symbol): Create search name and lookup name here.
11910 (lookup_partial_symbol): Remove "name" parameter; add
11911 lookup_name.
11912 (psym_expand_symtabs_for_function): Update.
11913
11914 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11915
11916 PR tui/25597:
11917 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11918
11919 2020-03-31 Tom Tromey <tromey@adacore.com>
11920
11921 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11922 memcpy.
11923
11924 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11925
11926 * features/riscv/32bit-csr.xml: Regenerated.
11927 * features/riscv/64bit-csr.xml: Regenerated.
11928
11929 2020-03-30 Tom Tromey <tromey@adacore.com>
11930
11931 * ada-valprint.c (print_variant_part): Update.
11932 * ada-lang.h (ada_which_variant_applies): Update.
11933 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11934 outer_valaddr parameters; replace with "outer" value parameter.
11935 (to_fixed_variant_branch_type): Update.
11936
11937 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11938
11939 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11940 <list>. Remove inclusion of observable.h.
11941 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11942 (struct arch_lwp_info): New struct.
11943 (class ppc_linux_dreg_interface): New class.
11944 (struct ppc_linux_process_info): New struct.
11945 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11946 <low_new_clone, low_forget_process, low_prepare_to_resume>
11947 <copy_thread_dreg_state, mark_thread_stale>
11948 <mark_debug_registers_changed, register_hw_breakpoint>
11949 <clear_hw_breakpoint, register_wp, clear_wp>
11950 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11951 <num_memory_accesses, get_trigger_type>
11952 <create_watchpoint_request, hwdebug_point_cmp>
11953 <init_arch_lwp_info, get_arch_lwp_info>
11954 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11955 methods.
11956 <struct ptid_hash>: New inner struct.
11957 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11958 members.
11959 (saved_dabr_value, hwdebug_info, max_slots_number)
11960 (struct hw_break_tuple, struct thread_points, ppc_threads)
11961 (have_ptrace_hwdebug_interface)
11962 (hwdebug_find_thread_points_by_tid)
11963 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11964 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11965 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11966 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11967 use m_dreg_interface.
11968 (hwdebug_point_cmp): Change to...
11969 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11970 reference arguments instead of pointers.
11971 (ppc_linux_nat_target::ranged_break_num_registers): Use
11972 m_dreg_interface.
11973 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11974 m_dreg_interface. Call register_hw_breakpoint.
11975 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11976 m_dreg_interface. Call clear_hw_breakpoint.
11977 (get_trigger_type): Change to...
11978 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11979 comment.
11980 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11981 use m_dreg_interface. Call register_hw_breakpoint.
11982 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11983 use m_dreg_interface. Call clear_hw_breakpoint.
11984 (can_use_watchpoint_cond_accel): Change to...
11985 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11986 method. Update comment, use m_dreg_interface and
11987 m_process_info.
11988 (calculate_dvc): Change to...
11989 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11990 m_dreg_interface.
11991 (num_memory_accesses): Change to...
11992 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11993 (check_condition): Change to...
11994 (ppc_linux_nat_target::check_condition): ...this method.
11995 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11996 comment, use m_dreg_interface.
11997 (create_watchpoint_request): Change to...
11998 (ppc_linux_nat_target::create_watchpoint_request): ...this
11999 method. Use m_dreg_interface.
12000 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12001 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12002 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12003 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12004 (ppc_linux_nat_target::low_forget_process)
12005 (ppc_linux_nat_target::low_new_fork)
12006 (ppc_linux_nat_target::low_new_clone)
12007 (ppc_linux_nat_target::low_delete_thread)
12008 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12009 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12010 only call mark_thread_stale.
12011 (ppc_linux_thread_exit): Remove.
12012 (ppc_linux_nat_target::stopped_data_address): Change to...
12013 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12014 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12015 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12016 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12017 comment. Call low_stopped_data_address.
12018 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12019 m_dreg_interface.
12020 (ppc_linux_nat_target::masked_watch_num_registers): Use
12021 m_dreg_interface.
12022 (ppc_linux_nat_target::copy_thread_dreg_state)
12023 (ppc_linux_nat_target::mark_thread_stale)
12024 (ppc_linux_nat_target::mark_debug_registers_changed)
12025 (ppc_linux_nat_target::register_hw_breakpoint)
12026 (ppc_linux_nat_target::clear_hw_breakpoint)
12027 (ppc_linux_nat_target::register_wp)
12028 (ppc_linux_nat_target::clear_wp)
12029 (ppc_linux_nat_target::init_arch_lwp_info)
12030 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12031 (_initialize_ppc_linux_nat): Remove observer callback.
12032
12033 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12034
12035 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12036 (ppc_linux_nat_target::auxv_parse)
12037 (ppc_linux_nat_target::read_description)
12038 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12039 Move up.
12040
12041 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12042
12043 * linux-nat.h (low_new_clone): New method.
12044 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12045
12046 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12047
12048 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12049 (dbx_expand_psymtab): ... this.
12050 (start_psymtab): Update.
12051 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12052 (mdebug_expand_psymtab): ... this.
12053 (parse_partial_symbols): Update.
12054 (new_psymtab): Update.
12055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12056 (xcoff_expand_psymtab): ... this.
12057 (xcoff_start_psymtab): Update.
12058
12059 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12060
12061 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12062 <expand_dependencies>: ... this.
12063 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12064 (partial_symtab::expand_dependencies): ... this.
12065 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12066 Update.
12067 (dwarf2_psymtab::expand_psymtab): Update.
12068 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12069 * mdebugread.c (psymtab_to_symtab_1): Update.
12070 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12071
12072 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12073
12074 * psympriv.h (discard_psymtab): Remove.
12075 * dbxread.c (dbx_end_psymtab): Update.
12076 * xcoffread.c (xcoff_end_psymtab): Update.
12077
12078 2020-03-28 Tom Tromey <tom@tromey.com>
12079
12080 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12081 comment.
12082
12083 2020-03-28 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12086
12087 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12088
12089 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12090
12091 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12092
12093 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12094
12095 2020-03-26 Tom Tromey <tom@tromey.com>
12096
12097 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12098 (mark_common_block_symbol_computed, read_tag_string_type)
12099 (attr_to_dynamic_prop, read_subrange_type): Update.
12100 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12101 to be methods on struct attribute.
12102 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12103 (read_call_site_scope, partial_die_info::read)
12104 (partial_die_info::read, lookup_die_type, follow_die_ref):
12105 Update.
12106 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12107 from dwarf2_get_ref_die_offset.
12108 (attribute::constant_value): New method, from
12109 dwarf2_get_attr_constant_value.
12110 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12111 Declare method.
12112 <constant_value>: New method.
12113
12114 2020-03-26 Tom Tromey <tom@tromey.com>
12115
12116 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12117 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12118 (dwarf_type_encoding_name): Move to stringify.c.
12119 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12120 * dwarf2/stringify.c: New file.
12121 * dwarf2/stringify.h: New file.
12122
12123 2020-03-26 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12126 Rewrite.
12127
12128 2020-03-26 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12131 methods.
12132 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12133 (lookup_ranges_base): Likewise.
12134 (read_cutu_die_from_dwo, read_full_die_1): Update.
12135
12136 2020-03-26 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/read.c (read_import_statement, read_file_scope)
12139 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12140 (read_lexical_block_scope, read_call_site_scope)
12141 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12142 (handle_struct_member_die, process_structure_scope)
12143 (update_enumeration_type_from_children)
12144 (process_enumeration_scope, read_array_type, read_common_block)
12145 (read_namespace, read_module, read_subroutine_type): Update.
12146 (sibling_die): Remove.
12147
12148 2020-03-26 Tom Tromey <tom@tromey.com>
12149
12150 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12151 (build_type_psymtabs_reader, read_structure_type)
12152 (read_enumeration_type, read_full_die_1): Update.
12153 (dwarf2_attr_no_follow): Move to die.h.
12154 * dwarf2/die.h (struct die_info) <attr>: New method.
12155
12156 2020-03-26 Tom Tromey <tom@tromey.com>
12157
12158 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12159 <base_address>: Now an optional.
12160 (dwarf2_find_base_address, dwarf2_rnglists_process)
12161 (dwarf2_ranges_process, fill_in_loclist_baton)
12162 (dwarf2_symbol_mark_computed): Update.
12163
12164 2020-03-26 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.c (struct die_info): Move to die.h.
12167 * dwarf2/die.h: New file.
12168
12169 2020-03-26 Tom Tromey <tom@tromey.com>
12170
12171 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12172 * dwarf2/read.c
12173 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12174 Move to line-header.c.
12175 (read_checked_initial_length_and_offset, read_formatted_entries):
12176 Likewise.
12177 (dwarf_decode_line_header): Split into two.
12178 * dwarf2/line-header.c
12179 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12180 Move from read.c.
12181 (read_checked_initial_length_and_offset, read_formatted_entries):
12182 Likewise.
12183 (dwarf_decode_line_header): New function, split from read.c.
12184
12185 2020-03-26 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12188 Declare method.
12189 * dwarf2/read.c (read_attribute_value): Update.
12190 (dwarf2_per_objfile::read_line_string): Rename from
12191 read_indirect_line_string.
12192 (read_formatted_entries): Update.
12193
12194 2020-03-26 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12197 variable.
12198
12199 2020-03-26 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12202 const.
12203 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12204 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12205 parameter const.
12206
12207 2020-03-26 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12210 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12211 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12212 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12213
12214 2020-03-26 Tom Tromey <tom@tromey.com>
12215
12216 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12217 file_names_size, file_full_name, file_file_name>: Use const.
12218 <file_name_at, file_names>: Add const overload.
12219 * dwarf2/line-header.c (line_header::file_file_name)
12220 (line_header::file_full_name): Update.
12221
12222 2020-03-26 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12225 (macro_start_file, consume_improper_spaces)
12226 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12227 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12228 (dwarf_decode_macros): Move to macro.c.
12229 * dwarf2/macro.c: New file.
12230 * dwarf2/macro.h: New file.
12231 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12232
12233 2020-03-26 Tom Tromey <tom@tromey.com>
12234
12235 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12236 method.
12237 * dwarf2/section.c: New method. From
12238 read_indirect_string_at_offset_from.
12239 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12240 (read_indirect_string_at_offset_from): Move to section.c.
12241 (read_indirect_string_at_offset): Rewrite.
12242 (read_indirect_line_string_at_offset): Remove.
12243 (read_indirect_string, read_indirect_line_string)
12244 (dwarf_decode_macro_bytes): Update.
12245
12246 2020-03-26 Tom Tromey <tom@tromey.com>
12247
12248 * dwarf2/section.h (struct dwarf2_section_info)
12249 <overload_complaint>: Declare.
12250 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12251 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12252 Rename from dwarf2_section_buffer_overflow_complaint.
12253 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12254 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12255
12256 2020-03-26 Tom Tromey <tom@tromey.com>
12257
12258 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12259 Declare.
12260 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12261 Move from read.c.
12262 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12263 to section.c.
12264
12265 2020-03-26 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12268
12269 2020-03-26 Tom Tromey <tom@tromey.com>
12270
12271 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12272 "builder".
12273 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12274 parameter.
12275 (dwarf_decode_macros): Update.
12276
12277 2020-03-26 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/read.c (read_attribute_value): Update.
12280 (read_indirect_string_from_dwz): Move to dwz.c; change into
12281 method.
12282 (dwarf_decode_macro_bytes): Update.
12283 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12284 * dwarf2/dwz.c: New file.
12285 * Makefile.in (COMMON_SFILES): Add dwz.c.
12286
12287 2020-03-26 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12290 * dwarf2/read.c: Add include.
12291 * dwarf2/index-write.c: Add include.
12292 * dwarf2/index-cache.c: Add include.
12293 * dwarf2/dwz.h: New file.
12294
12295 2020-03-25 Tom Tromey <tom@tromey.com>
12296
12297 * compile/compile-object-load.c (get_out_value_type): Mention
12298 correct symbol name in error message.
12299
12300 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12301
12302 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12303
12304 2020-03-25 Tom de Vries <tdevries@suse.de>
12305
12306 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12307 * symmisc.c (dump_symtab_1): Print user and includes fields.
12308 (maintenance_info_symtabs): Same.
12309
12310 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12311
12312 PR gdb/25534
12313 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12314 (riscv_regcache_cooked_write): New function.
12315 (riscv_push_dummy_call): Use new function.
12316 (riscv_return_value): Likewise.
12317
12318 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12319
12320 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12321 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12322 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12323 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12324 * infrun.c (follow_fork): Likewise.
12325 (follow_fork_inferior): Likewise.
12326 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12327 * linux-nat.h (class linux_nat_target): Likewise.
12328 * remote.c (class remote_target) <follow_fork>: Likewise.
12329 (remote_target::follow_fork): Likewise.
12330 * target-delegates.c: Re-generate.
12331 * target.c (default_follow_fork): Likewise.
12332 (target_follow_fork): Likewise.
12333 * target.h (struct target_ops) <follow_fork>: Likewise.
12334 (target_follow_fork): Likewise.
12335
12336 2020-03-24 Tom de Vries <tdevries@suse.de>
12337
12338 * psymtab.c (maintenance_info_psymtabs): Print user field.
12339
12340 2020-03-20 Tom Tromey <tromey@adacore.com>
12341
12342 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12343 const.
12344 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12345 const.
12346
12347 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12348
12349 * ptrace.m4: Don't check for ptrace declaration.
12350 * config.in: Re-generate.
12351 * configure: Re-generate.
12352 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12353 not defined.
12354
12355 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12356
12357 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12358 `PTRACE_TYPE_RET'.
12359 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12360 * sparc-nat.c (gdb_ptrace): Likewise.
12361 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12362
12363 2020-03-20 Tom Tromey <tromey@adacore.com>
12364
12365 * c-exp.y (lex_one_token): Fix assert.
12366
12367 2020-03-20 Tom Tromey <tromey@adacore.com>
12368
12369 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12370 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12371 strncpy call.
12372
12373 2020-03-20 Tom Tromey <tromey@adacore.com>
12374
12375 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12376
12377 2020-03-20 Tom Tromey <tromey@adacore.com>
12378
12379 * ada-valprint.c (print_variant_part): Remove parameters; switch
12380 to value-based API.
12381 (print_field_values): Likewise.
12382 (ada_val_print_struct_union): Likewise.
12383 (ada_value_print_1): Update.
12384
12385 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12386
12387 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12388 nbsd_nat_target instead of inf_ptrace_target.
12389 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12390 nbsd_nat_target.
12391
12392 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12393
12394 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12395 it to the ptrace call.
12396 * (store_registers): Likewise.
12397
12398 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12399
12400 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12401 it to the ptrace call.
12402 * (store_registers): Likewise.
12403
12404 2020-03-19 Luis Machado <luis.machado@linaro.org>
12405
12406 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12407 valid, fetch vg value from ptrace.
12408
12409 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12410 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12411 * inf-ptrace.c: Likewise.
12412 * (gdb_ptrace): Add.
12413 * (inf_ptrace_target::resume): Update.
12414 * (inf_ptrace_target::xfer_partial): Likewise.
12415 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12416 * (inf_ptrace_peek_poke): Update.
12417
12418 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12419
12420 * x86-bsd-nat.c (gdb_ptrace): New.
12421 * (x86bsd_dr_set): Add new argument `ptid'.
12422 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12423 x86bsd_dr_set_addr): Update.
12424
12425 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12426
12427 * remote.c (remote_target::process_stop_reply): Handle events for
12428 all threads differently.
12429
12430 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * completer.c (completion_tracker::remove_completion): Define new
12433 function.
12434 * completer.h (completion_tracker::remove_completion): Declare new
12435 function.
12436 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12437 when adding a C++ function symbol.
12438
12439 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12440
12441 * completer.c (completion_tracker::completion_hash_entry): Define
12442 new class.
12443 (advance_to_filename_complete_word_point): Call
12444 recompute_lowest_common_denominator.
12445 (completion_tracker::completion_tracker): Call discard_completions
12446 to setup the hash table.
12447 (completion_tracker::discard_completions): Allow for being called
12448 from the constructor, pass new equal function, and element deleter
12449 when constructing the hash table. Initialise new class member
12450 variables.
12451 (completion_tracker::maybe_add_completion): Remove use of
12452 m_entries_vec, and store more information into m_entries_hash.
12453 (completion_tracker::recompute_lcd_visitor): New function, most
12454 content taken from...
12455 (completion_tracker::recompute_lowest_common_denominator):
12456 ...here, this now just visits each item in the hash calling the
12457 above visitor.
12458 (completion_tracker::build_completion_result): Remove use of
12459 m_entries_vec, call recompute_lowest_common_denominator.
12460 * completer.h (completion_tracker::have_completions): Remove use
12461 of m_entries_vec.
12462 (completion_tracker::completion_hash_entry): Declare new class.
12463 (completion_tracker::recompute_lowest_common_denominator): Change
12464 function signature.
12465 (completion_tracker::recompute_lcd_visitor): Declare new function.
12466 (completion_tracker::m_entries_vec): Delete.
12467 (completion_tracker::m_entries_hash): Initialize to NULL.
12468 (completion_tracker::m_lowest_common_denominator_valid): New
12469 member variable.
12470 (completion_tracker::m_lowest_common_denominator_max_length): New
12471 member variable.
12472
12473 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12474
12475 * regformats/regdef.h: Put reg in gdb namespace.
12476
12477 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12478
12479 * i386-bsd-nat.c (gdb_ptrace): New.
12480 * (i386bsd_fetch_inferior_registers,
12481 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12482 * (i386bsd_fetch_inferior_registers,
12483 i386bsd_store_inferior_registers) Use gdb_ptrace.
12484
12485 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12486
12487 * amd64-bsd-nat.c (gdb_ptrace): New.
12488 * (amd64bsd_fetch_inferior_registers,
12489 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12490 * (amd64bsd_fetch_inferior_registers,
12491 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12492
12493 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12494
12495 * user-regs.c (user_reg::read): Rename to...
12496 (user_reg::xread): ...this.
12497 * (append_user_reg): Rename argument `read' to `xread'.
12498 * (user_reg_add_builtin): Likewise.
12499 * (user_reg_add): Likewise.
12500 * (value_of_user_reg): Likewise.
12501
12502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12503
12504 * sparc-nat.c (gdb_ptrace): New.
12505 * sparc-nat.c (sparc_fetch_inferior_registers)
12506 (sparc_store_inferior_registers) Remove obsolete comment.
12507 * sparc-nat.c (sparc_fetch_inferior_registers)
12508 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12509 * sparc-nat.c (sparc_fetch_inferior_registers)
12510 (sparc_store_inferior_registers) Use gdb_ptrace.
12511
12512 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12513
12514 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12515 it to the ptrace call.
12516 * sh-nbsd-nat.c (store_registers): Likewise.
12517
12518 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12519
12520 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12521 nbsd_nat_target instead of inf_ptrace_target.
12522 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12523 nbsd_nat_target.
12524
12525 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12526
12527 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12528
12529 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12530
12531 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12532 <sys/sysctl.h>.
12533 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12534
12535 2020-03-17 Tom de Vries <tdevries@suse.de>
12536
12537 PR gdb/23710
12538 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12539 fields.
12540 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12541 fields.
12542 (process_imported_unit_die): Skip import of c++ CUs.
12543
12544 2020-03-16 Tom Tromey <tom@tromey.com>
12545
12546 * p-valprint.c (pascal_object_print_value): Initialize
12547 base_value.
12548
12549 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12550 Shahab Vahedi <shahab@synopsys.com>
12551
12552 * Makefile.in: Add arch/arc.o
12553 * configure.tgt: Likewise.
12554 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12555 (_initialize_arc_tdep): Don't initialize old target descriptions.
12556 (arc_read_description): New function to cache target descriptions.
12557 * arc-tdep.h (arc_read_description): Add proto type.
12558 * arch/arc.c: New file.
12559 * arch/arc.h: Likewise.
12560 * features/Makefile: Replace old target descriptions with new.
12561 * features/arc-arcompact.c: Remove.
12562 * features/arc-arcompact.xml: Likewise.
12563 * features/arc-v2.c: Likewise
12564 * features/arc-v2.xml: Likewise
12565 * features/arc/aux-arcompact.xml: New file.
12566 * features/arc/aux-v2.xml: Likewise.
12567 * features/arc/core-arcompact.xml: Likewise.
12568 * features/arc/core-v2.xml: Likewise.
12569 * features/arc/aux-arcompact.c: Generate.
12570 * features/arc/aux-v2.c: Likewise.
12571 * features/arc/core-arcompact.c: Likewise.
12572 * features/arc/core-v2.c: Likewise.
12573 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12574
12575 2020-03-16 Tom Tromey <tromey@adacore.com>
12576
12577 PR gdb/25663:
12578 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12579 putting value into bcache.
12580
12581 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12582
12583 PR gdb/21500
12584 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12585 to...
12586 (amd64_windows_init_abi_common): ... this. Don't set size of
12587 long type.
12588 (amd64_windows_init_abi): New function.
12589 (amd64_cygwin_init_abi): New function.
12590 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12591 the Cygwin OS ABI.
12592 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12593 comment.
12594
12595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12596
12597 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12598 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12599 (pe_import_directory_entry): New struct type.
12600 (is_linked_with_cygwin_dll): New function.
12601 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12602 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12603 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12604
12605 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12608 i386_cygwin_core_osabi_sniffer.
12609
12610 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12611
12612 * i386-cygwin-tdep.c: Rename to...
12613 * i386-windows-tdep.c: ... this.
12614 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12615 i386-windows-tdep.c.
12616 * configure.tgt: Likewise.
12617
12618 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12619
12620 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12621 * osabi.c (gdb_osabi_names): Add "Windows".
12622 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12623 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12624 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12625 i386_cygwin_osabi_sniffer.
12626 (_initialize_i386_cygwin_tdep): Register OS ABI
12627 GDB_OSABI_WINDOWS for i386.
12628 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12629 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12630 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12631 for x86-64.
12632 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12633 when the target matches '*-*-mingw*'.
12634
12635 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12636
12637 * defs.h (enum gdb_osabi): Move to...
12638 * osabi.h (enum gdb_osabi): ... here.
12639 * gdbarch.sh: Include osabi.h in gdbarch.h.
12640 * gdbarch.h: Re-generate.
12641
12642 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12643
12644 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12645 function.
12646 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12647
12648 2020-03-14 Tom Tromey <tom@tromey.com>
12649
12650 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12651 for C++.
12652 (c_type_print_modifier): Likewise. Add "language" parameter.
12653 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12654 (c_type_print_base_1): Update.
12655 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12656 constants.
12657 * type-stack.c (type_stack::insert): Handle tp_atomic and
12658 tp_restrict.
12659 (type_stack::follow_type_instance_flags): Likewise.
12660 (type_stack::follow_types): Likewise. Merge type-following code.
12661 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12662 (space_identifier, cv_with_space_id)
12663 (const_or_volatile_or_space_identifier_noopt)
12664 (const_or_volatile_or_space_identifier): Remove.
12665 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12666 rules.
12667 (ptr_operator, typebase): Update.
12668 (enum token_flag) <FLAG_C>: New constant.
12669 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12670 "_Atomic".
12671 (lex_one_token): Handle FLAG_C.
12672
12673 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12674
12675 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12676 it to the ptrace call.
12677 * m68k-bsd-nat.c (store_registers): Likewise.
12678
12679 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12680
12681 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12682 gdb_byte *.
12683 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12684 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12685 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12686
12687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12688
12689 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12690 nbsd_nat_target instead of inf_ptrace_target.
12691 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12692 nbsd_nat_target.
12693
12694 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12695
12696 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12697 register_t.
12698
12699 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12700
12701 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12702 it to the ptrace call.
12703 * alpha-bsd-nat.c (store_registers): Likewise.
12704
12705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12706
12707 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12708 includes.
12709 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12710 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12711 fill_fpregset): Likewise.
12712
12713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12714
12715 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12716 nbsd_nat_target instead of inf_ptrace_target.
12717 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12718 nbsd_nat_target.
12719
12720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12721
12722 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12723 register_t.
12724
12725 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12726
12727 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12728 it to the ptrace call.
12729 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12730 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12731 * arm-nbsd-nat.c (store_register): Likewise.
12732 * arm-nbsd-nat.c (store_regs): Likewise.
12733 * arm-nbsd-nat.c (store_fp_register): Likewise.
12734 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12735
12736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12737
12738 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12739 nbsd_nat_target instead of inf_ptrace_target.
12740 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12741 nbsd_nat_target.
12742
12743 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12744
12745 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12746 it to the ptrace call.
12747 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12748
12749 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12750
12751 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12752 it to the ptrace call.
12753 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12754
12755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12756
12757 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12758 gdb_byte *.
12759 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12760
12761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12762
12763 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12764 instead of inf_ptrace_target.
12765 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12766 nbsd_nat_target.
12767
12768 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12769
12770 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12771 register_t.
12772
12773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12774
12775 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12776 register_t.
12777
12778 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12779
12780 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12781 register_t.
12782
12783 2020-03-13 Tom Tromey <tom@tromey.com>
12784
12785 * value.h (val_print): Don't declare.
12786 * valprint.h (val_print_array_elements)
12787 (val_print_scalar_formatted, generic_val_print): Don't declare.
12788 * valprint.c (generic_val_print_array): Take a struct value.
12789 (generic_val_print_ptr, generic_val_print_memberptr)
12790 (generic_val_print_bool, generic_val_print_int)
12791 (generic_val_print_char, generic_val_print_complex)
12792 (generic_val_print): Remove.
12793 (generic_value_print): Update.
12794 (do_val_print): Remove unused parameters. Don't call
12795 la_val_print.
12796 (val_print): Remove.
12797 (common_val_print): Update. Don't call value_check_printable.
12798 (val_print_scalar_formatted, val_print_array_elements): Remove.
12799 * rust-lang.c (rust_val_print): Remove.
12800 (rust_language_defn): Update.
12801 * p-valprint.c (pascal_val_print): Remove.
12802 (pascal_value_print_inner): Update.
12803 (pascal_object_print_val_fields, pascal_object_print_val):
12804 Remove.
12805 (pascal_object_print_static_field): Update.
12806 * p-lang.h (pascal_val_print): Don't declare.
12807 * p-lang.c (pascal_language_defn): Update.
12808 * opencl-lang.c (opencl_language_defn): Update.
12809 * objc-lang.c (objc_language_defn): Update.
12810 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12811 * m2-lang.h (m2_val_print): Don't declare.
12812 * m2-lang.c (m2_language_defn): Update.
12813 * language.h (struct language_defn) <la_val_print>: Remove.
12814 * language.c (unk_lang_value_print_inner): Rename. Change
12815 argument types.
12816 (unknown_language_defn, auto_language_defn): Update.
12817 * go-valprint.c (go_val_print): Remove.
12818 * go-lang.h (go_val_print): Don't declare.
12819 * go-lang.c (go_language_defn): Update.
12820 * f-valprint.c (f_val_print): Remove.
12821 * f-lang.h (f_value_print): Don't declare.
12822 * f-lang.c (f_language_defn): Update.
12823 * d-valprint.c (d_val_print): Remove.
12824 * d-lang.h (d_value_print): Don't declare.
12825 * d-lang.c (d_language_defn): Update.
12826 * cp-valprint.c (cp_print_value_fields)
12827 (cp_print_value_fields_rtti, cp_print_value): Remove.
12828 (cp_print_static_field): Update.
12829 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12830 (c_val_print_struct, c_val_print_union, c_val_print_int)
12831 (c_val_print_memberptr, c_val_print): Remove.
12832 * c-lang.h (c_val_print_array, cp_print_value_fields)
12833 (cp_print_value_fields_rtti): Don't declare.
12834 * c-lang.c (c_language_defn, cplus_language_defn)
12835 (asm_language_defn, minimal_language_defn): Update.
12836 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12837 (ada_val_print_enum): Take a struct value.
12838 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12839 (ada_val_print): Remove.
12840 (ada_value_print_1): Update.
12841 (printable_val_type): Remove.
12842 * ada-lang.h (ada_val_print): Don't declare.
12843 * ada-lang.c (ada_language_defn): Update.
12844
12845 2020-03-13 Tom Tromey <tom@tromey.com>
12846
12847 * valprint.c (do_val_print): Update.
12848 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12849 a struct value.
12850 (value_to_value_object_no_release): Declare.
12851 * python/py-value.c (value_to_value_object_no_release): New
12852 function.
12853 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12854 struct value.
12855 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12856 function.
12857 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12858 a struct value.
12859 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12860 Declare.
12861 (gdbscm_apply_val_pretty_printer): Take a struct value.
12862 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12863 value.
12864 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12865 value.
12866 * extension-priv.h (struct extension_language_ops)
12867 <apply_val_pretty_printer>: Take a struct value.
12868 * cp-valprint.c (cp_print_value): Create a struct value.
12869 (cp_print_value): Update.
12870
12871 2020-03-13 Tom Tromey <tom@tromey.com>
12872
12873 * ada-valprint.c (print_field_values): Call common_val_print.
12874
12875 2020-03-13 Tom Tromey <tom@tromey.com>
12876
12877 * ada-valprint.c (val_print_packed_array_elements): Remove
12878 bitoffset and val parameters. Call common_val_print.
12879 (ada_val_print_string): Remove offset, address, and original_value
12880 parameters.
12881 (ada_val_print_array): Update.
12882 (ada_value_print_array): New function.
12883 (ada_value_print_1): Call it.
12884
12885 2020-03-13 Tom Tromey <tom@tromey.com>
12886
12887 * ada-valprint.c (ada_value_print): Use common_val_print.
12888
12889 2020-03-13 Tom Tromey <tom@tromey.com>
12890
12891 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12892
12893 2020-03-13 Tom Tromey <tom@tromey.com>
12894
12895 * ada-valprint.c (ada_value_print_num): New function.
12896 (ada_value_print_1): Use it.
12897
12898 2020-03-13 Tom Tromey <tom@tromey.com>
12899
12900 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12901
12902 2020-03-13 Tom Tromey <tom@tromey.com>
12903
12904 * ada-valprint.c (ada_value_print_ptr): New function.
12905 (ada_value_print_1): Use it.
12906
12907 2020-03-13 Tom Tromey <tom@tromey.com>
12908
12909 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12910 call common_val_print.
12911 (ada_val_print_1): Update.
12912 (ada_value_print_1): New function.
12913 (ada_value_print_inner): Rewrite.
12914
12915 2020-03-13 Tom Tromey <tom@tromey.com>
12916
12917 * cp-valprint.c (cp_print_value_fields): Update.
12918 (cp_print_value): New function.
12919
12920 2020-03-13 Tom Tromey <tom@tromey.com>
12921
12922 * m2-valprint.c (m2_value_print_inner): Use
12923 cp_print_value_fields.
12924 * cp-valprint.c (cp_print_value_fields): New function.
12925 * c-valprint.c (c_value_print_struct): New function.
12926 (c_value_print_inner): Use c_value_print_struct.
12927 * c-lang.h (cp_print_value_fields): Declare.
12928
12929 2020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * c-valprint.c (c_value_print_array): New function.
12932 (c_value_print_inner): Use it.
12933
12934 2020-03-13 Tom Tromey <tom@tromey.com>
12935
12936 * c-valprint.c (c_value_print_memberptr): New function.
12937 (c_value_print_inner): Use it.
12938
12939 2020-03-13 Tom Tromey <tom@tromey.com>
12940
12941 * c-valprint.c (c_value_print_int): New function.
12942 (c_value_print_inner): Use it.
12943
12944 2020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * c-valprint.c (c_value_print_ptr): New function.
12947 (c_value_print_inner): Use it.
12948
12949 2020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * c-valprint.c (c_value_print_inner): Rewrite.
12952
12953 2020-03-13 Tom Tromey <tom@tromey.com>
12954
12955 * valprint.c (generic_value_print_complex): New function.
12956 (generic_value_print): Use it.
12957
12958 2020-03-13 Tom Tromey <tom@tromey.com>
12959
12960 * valprint.c (generic_val_print_float): Don't call
12961 val_print_scalar_formatted.
12962 (generic_val_print, generic_value_print): Update.
12963
12964 2020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * valprint.c (generic_value_print_char): New function
12967 (generic_value_print): Use it.
12968
12969 2020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * valprint.c (generic_value_print_int): New function.
12972 (generic_value_print): Use it.
12973
12974 2020-03-13 Tom Tromey <tom@tromey.com>
12975
12976 * valprint.c (generic_value_print_bool): New function.
12977 (generic_value_print): Use it.
12978
12979 2020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * valprint.c (generic_val_print_func): Simplify.
12982 (generic_val_print, generic_value_print): Update.
12983
12984 2020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * valprint.c (generic_val_print_flags): Remove.
12987 (generic_val_print, generic_value_print): Update.
12988 (val_print_type_code_flags): Add original_value parameter.
12989
12990 2020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * valprint.c (generic_val_print): Update.
12993 (generic_value_print): Update.
12994 * valprint.c (generic_val_print_enum): Don't call
12995 val_print_scalar_formatted.
12996
12997 2020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13000 * valprint.c (generic_value_print_ptr): New function.
13001
13002 2020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * valprint.c (generic_value_print): Rewrite.
13005
13006 2020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * p-valprint.c (pascal_object_print_value_fields)
13009 (pascal_object_print_value): New functions.
13010
13011 2020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * p-valprint.c (pascal_value_print_inner): Rewrite.
13014
13015 2020-03-13 Tom Tromey <tom@tromey.com>
13016
13017 * f-valprint.c (f_value_print_innner): Rewrite.
13018
13019 2020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * m2-valprint.c (m2_print_unbounded_array): New overload.
13022 (m2_print_unbounded_array): Update.
13023 (m2_print_array_contents): Take a struct value.
13024 (m2_value_print_inner): Rewrite.
13025
13026 2020-03-13 Tom Tromey <tom@tromey.com>
13027
13028 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13029 (d_value_print_inner): New function.
13030 * d-lang.h (d_value_print_inner): Declare.
13031 * d-lang.c (d_language_defn): Use d_value_print_inner.
13032
13033 2020-03-13 Tom Tromey <tom@tromey.com>
13034
13035 * go-valprint.c (go_value_print_inner): New function.
13036 * go-lang.h (go_value_print_inner): Declare.
13037 * go-lang.c (go_language_defn): Use go_value_print_inner.
13038
13039 2020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13042 API.
13043 (rust_val_print): Rewrite.
13044 (rust_value_print_inner): New function, from rust_val_print.
13045 (rust_language_defn): Use rust_value_print_inner.
13046
13047 2020-03-13 Tom Tromey <tom@tromey.com>
13048
13049 * ada-valprint.c (ada_value_print_inner): New function.
13050 * ada-lang.h (ada_value_print_inner): Declare.
13051 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13052
13053 2020-03-13 Tom Tromey <tom@tromey.com>
13054
13055 * f-valprint.c (f_value_print_innner): New function.
13056 * f-lang.h (f_value_print_innner): Declare.
13057 * f-lang.c (f_language_defn): Use f_value_print_innner.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * p-valprint.c (pascal_value_print_inner): New function.
13062 * p-lang.h (pascal_value_print_inner): Declare.
13063 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13064
13065 2020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * m2-valprint.c (m2_value_print_inner): New function.
13068 * m2-lang.h (m2_value_print_inner): Declare.
13069 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13070
13071 2020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13074 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13075 * c-valprint.c (c_value_print_inner): New function.
13076 * c-lang.h (c_value_print_inner): Declare.
13077 * c-lang.c (c_language_defn, cplus_language_defn)
13078 (asm_language_defn, minimal_language_defn): Use
13079 c_value_print_inner.
13080
13081 2020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * p-valprint.c (pascal_object_print_value_fields): Now static.
13084 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * c-valprint.c (c_val_print_array): Simplify.
13089
13090 2020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * valprint.c (value_print_array_elements): New function.
13093 * valprint.h (value_print_array_elements): Declare.
13094
13095 2020-03-13 Tom Tromey <tom@tromey.com>
13096
13097 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13098 * mips-tdep.c (mips_print_register): Use
13099 value_print_scalar_formatted.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * valprint.h (value_print_scalar_formatted): Declare.
13104 * valprint.c (value_print_scalar_formatted): New function.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.h (generic_value_print): Declare.
13109 * valprint.c (generic_value_print): New function.
13110
13111 2020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * valprint.c (do_val_print): Call la_value_print_inner, if
13114 available.
13115 * rust-lang.c (rust_language_defn): Update.
13116 * p-lang.c (pascal_language_defn): Update.
13117 * opencl-lang.c (opencl_language_defn): Update.
13118 * objc-lang.c (objc_language_defn): Update.
13119 * m2-lang.c (m2_language_defn): Update.
13120 * language.h (struct language_defn) <la_value_print_inner>: New
13121 member.
13122 * language.c (unknown_language_defn, auto_language_defn): Update.
13123 * go-lang.c (go_language_defn): Update.
13124 * f-lang.c (f_language_defn): Update.
13125 * d-lang.c (d_language_defn): Update.
13126 * c-lang.c (c_language_defn, cplus_language_defn)
13127 (asm_language_defn, minimal_language_defn): Update.
13128 * ada-lang.c (ada_language_defn): Update.
13129
13130 2020-03-13 Tom Tromey <tom@tromey.com>
13131
13132 * c-valprint.c (c_value_print): Use common_val_print.
13133
13134 2020-03-13 Tom Tromey <tom@tromey.com>
13135
13136 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13137
13138 2020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * f-valprint.c (f77_print_array_1, f_val_print): Use
13141 common_val_print.
13142
13143 2020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * riscv-tdep.c (riscv_print_one_register_info): Use
13146 common_val_print.
13147
13148 2020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * mi/mi-main.c (output_register): Use common_val_print.
13151
13152 2020-03-13 Tom Tromey <tom@tromey.com>
13153
13154 * infcmd.c (default_print_one_register_info): Use
13155 common_val_print.
13156
13157 2020-03-13 Tom Tromey <tom@tromey.com>
13158
13159 * valprint.h (common_val_print_checked): Declare.
13160 * valprint.c (common_val_print_checked): New function.
13161 * stack.c (print_frame_arg): Use common_val_print_checked.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * valprint.c (do_val_print): New function, from val_print.
13166 (val_print): Use do_val_print.
13167 (common_val_print): Use do_val_print.
13168
13169 2020-03-13 Tom Tromey <tom@tromey.com>
13170
13171 * valprint.c (value_print): Use scoped_value_mark.
13172
13173 2020-03-13 Tom de Vries <tdevries@suse.de>
13174
13175 PR symtab/25646
13176 * psymtab.c (partial_symtab::partial_symtab): Don't set
13177 globals_offset and statics_offset. Push element onto
13178 current_global_psymbols and current_static_psymbols stacks.
13179 (concat): New function.
13180 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13181 element from current_global_psymbols and current_static_psymbols
13182 stacks. Concat popped elements to global_psymbols and
13183 static_symbols.
13184 (add_psymbol_to_list): Use current_global_psymbols and
13185 current_static_psymbols stacks.
13186 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13187 current_static_psymbols fields.
13188
13189 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13190
13191 * corelow.c (sniff_core_bfd): Remove.
13192 (class core_target) <m_core_vec>: Remove.
13193 (core_target::core_target): Update.
13194 (core_file_fns): Remove.
13195 (deprecated_add_core_fns): Remove.
13196 (default_core_sniffer): Remove.
13197 (sniff_core_bfd): Remove.
13198 (default_check_format): Remove.
13199 (gdb_check_format): Remove.
13200 (core_target_open): Update.
13201 (core_target::get_core_register_section): Update.
13202 (get_core_registers_cb): Update.
13203 (core_target::fetch_registers): Update.
13204 * gdbcore.h (struct core_fns): Remove.
13205 (deprecated_add_core_fns): Remove.
13206 (default_core_sniffer): Remove.
13207 (default_check_format): Remove.
13208
13209 2020-03-12 Tom Tromey <tom@tromey.com>
13210
13211 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13212 CORE_ADDR.
13213 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13214
13215 2020-03-12 Tom Tromey <tom@tromey.com>
13216
13217 * remote.c (remote_target::download_tracepoint)
13218 (remote_target::enable_tracepoint)
13219 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13220 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13221 sprintf_vma.
13222
13223 2020-03-12 Tom Tromey <tom@tromey.com>
13224
13225 * symfile-mem.c: Update CORE_ADDR size assert.
13226
13227 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13228
13229 * selftest.m4: Move to gdbsupport/.
13230 * acinclude.m4: Update path to selftest.m4.
13231
13232 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13233
13234 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13235 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13236 gdbarch-selfselftests.c and selftest-arch.c.
13237 (SUBDIR_UNITTESTS_OBS): Rename to...
13238 (SELFTESTS_OBS): ... this.
13239 (COMMON_SFILES): Remove disasm-selftests.c and
13240 gdbarch-selftests.c.
13241 * configure.ac: Don't add selftest-arch.{c,o} to
13242 CONFIG_{SRCS,OBS}.
13243 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13244 preprocessor conditions.
13245
13246 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13247
13248 * configure.ac: Don't source bfd/development.sh.
13249 * selftest.m4: Modify comment.
13250 * configure: Re-generate.
13251
13252 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13253
13254 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13255 not "true" or "false".
13256 * configure: Re-generate.
13257
13258 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13259
13260 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13261 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13262 renamed to arm_nbsd_supply_gregset.
13263 (fetch_register): Update to call arm_nbsd_supply_gregset.
13264 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13265 (arm_netbsd_nat_target::fetch_registers): Update.
13266 (fetch_elfcore_registers): Removed.
13267 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13268 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13269 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13270 not require NetBSD system headers.
13271 (arm_nbsd_regset): New struct.
13272 (arm_nbsd_iterate_over_regset_sections): New function.
13273 (arm_netbsd_init_abi_common): Updated to call
13274 set_gdbarch_iterate_over_regset_sections.
13275 * arm-nbsd-tdep.h: New file.
13276
13277 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13278
13279 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13280 recursion.
13281
13282 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13283
13284 * configure: Re-generate.
13285
13286 2020-03-11 Tom Tromey <tromey@adacore.com>
13287
13288 * ada-typeprint.c (print_choices): Fix comment.
13289
13290 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13293 previous item in the list, when the list has no items.
13294
13295 2020-03-11 Tom de Vries <tdevries@suse.de>
13296
13297 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13298 PROP_LOCLIST handling code.
13299
13300 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13301
13302 * buildsym-legacy.c (record_line): Pass extra parameter to
13303 record_line.
13304 * buildsym.c (buildsym_compunit::record_line): Take an extra
13305 parameter, reduce duplication in the line table, and record the
13306 is_stmt flag in the line table.
13307 * buildsym.h (buildsym_compunit::record_line): Add extra
13308 parameter.
13309 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13310 non-statement lines.
13311 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13312 this to the symtab builder.
13313 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13314 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13315 through to dwarf_record_line_1.
13316 * infrun.c (process_event_stop_test): When stepping, don't stop at
13317 a non-statement instruction, and only refresh the step info when
13318 we land in the middle of a line's range. Also add an extra
13319 comment.
13320 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13321 field.
13322 * record-btrace.c (btrace_find_line_range): Only record lines
13323 marked as is-statement.
13324 * stack.c (frame_show_address): Show the frame address if we are
13325 in a non-statement sal.
13326 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13327 (maintenance_print_one_line_table): Print a header for the is_stmt
13328 column, and include is_stmt information in the output.
13329 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13330 preference to non-statements.
13331 (find_pcs_for_symtab_line): Prefer is-statement entries.
13332 (find_line_common): Likewise.
13333 * symtab.h (struct linetable_entry): Add is_stmt field.
13334 (struct symtab_and_line): Likewise.
13335 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13336 arranging the line table.
13337
13338 2020-03-07 Tom de Vries <tdevries@suse.de>
13339
13340 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13341 DIE.
13342
13343 2020-03-07 Tom Tromey <tom@tromey.com>
13344
13345 * valops.c (value_literal_complex): Remove obsolete comment.
13346 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13347 comment.
13348
13349 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13350
13351 * infrun.h: Forward-declare thread_info.
13352 (set_step_info): Add thread_info parameter, add doc.
13353 * infrun.c (set_step_info): Add thread_info parameter, move doc
13354 to header.
13355 * infrun.c (process_event_stop_test): Pass thread to
13356 set_step_info call.
13357 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13358 set_step_info.
13359 (prepare_one_step): Add thread_info parameter, pass it to
13360 set_step_frame and prepare_one_step (recursive) call.
13361 (step_1): Pass thread to prepare_one_step call.
13362 (step_command_fsm::should_stop): Pass thread to
13363 prepare_one_step.
13364 (until_next_fsm): Pass thread to set_step_frame call.
13365 (finish_command): Pass thread to set_step_info call.
13366
13367 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13368
13369 * windows-tdep.c (windows_solib_create_inferior_hook):
13370 Check if inferior is running.
13371
13372 2020-03-06 Tom de Vries <tdevries@suse.de>
13373
13374 * NEWS: Fix "the the".
13375 * ctfread.c: Same.
13376
13377 2020-03-06 Tom de Vries <tdevries@suse.de>
13378
13379 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13380
13381 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13382
13383 * .dir-locals.el: Add a comment referencing the other copies of
13384 this file.
13385
13386 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13387
13388 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13389 psargs.
13390
13391 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13392
13393 * .gitattributes: New file.
13394
13395 2020-03-04 Tom Tromey <tom@tromey.com>
13396
13397 * symmisc.c (print_symbol_bcache_statistics)
13398 (print_objfile_statistics): Update.
13399 * symfile.c (allocate_symtab): Use intern.
13400 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13401 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13402 macro_cache>: Remove.
13403 <string_cache>: New member.
13404 (struct objfile) <intern>: New methods.
13405 * elfread.c (elf_symtab_read): Use intern.
13406 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13407 (dwarf2_compute_name, dwarf2_physname)
13408 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13409 names.
13410 (guess_partial_die_structure_name): Update.
13411 (partial_die_info::fixup): Intern name.
13412 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13413 name.
13414 (dwarf2_name): Intern name. Update.
13415 * buildsym.c (buildsym_compunit::get_macro_table): Use
13416 string_cache.
13417
13418 2020-03-04 Tom Tromey <tom@tromey.com>
13419
13420 * jit.c (bfd_open_from_target_memory): Make "target" const.
13421 * corefile.c (gnutarget): Now const.
13422 * gdbcore.h (gnutarget): Now const.
13423
13424 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13425
13426 * NEWS: Mention support for WOW64 processes.
13427 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13428 (amd64_windows_segment_register_p): Remove static.
13429 (_initialize_amd64_windows_nat): Update.
13430 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13431 * i386-windows-nat.c (context_offset): Update.
13432 (i386_mappings): Rename and remove static.
13433 (i386_windows_segment_register_p): Remove static.
13434 (_initialize_i386_windows_nat): Update.
13435 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13436 (STATUS_WX86_SINGLE_STEP): New macro.
13437 (EnumProcessModulesEx): New macro.
13438 (Wow64SuspendThread): New macro.
13439 (Wow64GetThreadContext): New macro.
13440 (Wow64SetThreadContext): New macro.
13441 (Wow64GetThreadSelectorEntry): New macro.
13442 (windows_set_context_register_offsets): Add static.
13443 (windows_set_segment_register_p): Likewise.
13444 (windows_add_thread): Adapt for WOW64 processes.
13445 (windows_fetch_one_register): Likewise.
13446 (windows_nat_target::fetch_registers): Likewise.
13447 (windows_store_one_register): Likewise.
13448 (display_selector): Likewise.
13449 (display_selectors): Likewise.
13450 (handle_exception): Likewise.
13451 (windows_continue): Likewise.
13452 (windows_nat_target::resume): Likewise.
13453 (windows_add_all_dlls): Likewise.
13454 (do_initial_windows_stuff): Likewise.
13455 (windows_nat_target::attach): Likewise.
13456 (windows_get_exec_module_filename): Likewise.
13457 (windows_nat_target::create_inferior): Likewise.
13458 (windows_xfer_siginfo): Likewise.
13459 (_initialize_loadable): Initialize Wow64SuspendThread,
13460 Wow64GetThreadContext, Wow64SetThreadContext,
13461 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13462 * windows-nat.h (windows_set_context_register_offsets):
13463 Remove declaration.
13464 (windows_set_segment_register_p): Likewise.
13465 (i386_windows_segment_register_p): Add declaration.
13466 (amd64_windows_segment_register_p): Likewise.
13467
13468 2020-03-04 Luis Machado <luis.machado@linaro.org>
13469
13470 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13471 in "info registers" for AArch64/ARM.
13472
13473 The change caused "info registers" to not print GPR's.
13474
13475 gdb/ChangeLog:
13476
13477 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13478
13479 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13480 when reg->group is empty and reggroup is not.
13481
13482 2020-03-03 Tom Tromey <tromey@adacore.com>
13483
13484 * dwarf2/frame.c (struct dwarf2_frame_cache)
13485 <checked_tailcall_bottom, entry_cfa_sp_offset,
13486 entry_cfa_sp_offset_p>: Remove members.
13487 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13488 (dwarf2_frame_prev_register): Don't call
13489 dwarf2_tailcall_sniffer_first.
13490 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13491 * frame-unwind.c (add_unwinder): New fuction.
13492 (frame_unwind_init): Use it. Add tailcall unwinder.
13493
13494 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13495 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13496
13497 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13498 value should be printed as true.
13499
13500 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13501
13502 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13503 (windows_init_abi): Set and use windows_so_ops.
13504
13505 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13506
13507 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13508 when verifying if dealing with a convenience variable.
13509
13510 2020-03-03 Luis Machado <luis.machado@linaro.org>
13511
13512 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13513
13514 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13515
13516 * infrun.c (gdbarch_supports_displaced_stepping): New.
13517 (use_displaced_stepping): Break up conditions in smaller pieces.
13518 Use gdbarch_supports_displaced_stepping.
13519 (displaced_step_prepare_throw): Use
13520 gdbarch_supports_displaced_stepping.
13521
13522 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13523
13524 * NEWS: Mention new behaviour of the history filename.
13525 * top.c (write_history_p): Add comment.
13526 (show_write_history_p): Add header comment, give a different
13527 message when history writing is on, but the history filename is
13528 empty.
13529 (history_filename): Add comment.
13530 (history_filename_empty): New function.
13531 (show_history_filename): Add header comment, give a different
13532 message when the filename is empty.
13533 (init_history): Compare history_filename against nullptr, and only
13534 read history if the filename is not empty.
13535 (set_history_filename): Add header comment, and only make
13536 non-empty filenames absolute.
13537 (init_main): Make the filename argument to 'set history filename'
13538 optional.
13539
13540 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13541
13542 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13543 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13544 (fetch_fp_register): Update.
13545 (fetch_fp_regs): Update.
13546 (store_fp_register): Update.
13547 (store_fp_regs): Update.
13548 (arm_netbsd_nat_target::read_description): New function.
13549 (fetch_elfcore_registers): Update.
13550
13551 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13552
13553 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13554 general_thread if the stop reply is missing a thread-id.
13555 (remote_target::process_stop_reply): Use the first non-exited
13556 thread if the target didn't pass a thread-id.
13557 * infrun.c (do_target_wait): Move call to
13558 switch_to_inferior_no_thread to ....
13559 (do_target_wait_1): ... here.
13560
13561 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13562
13563 * debuginfod-support.c: Include defs.h first.
13564
13565 2020-02-28 Tom de Vries <tdevries@suse.de>
13566
13567 * symfile.c (set_initial_language): Use default language for lookup.
13568
13569 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13570
13571 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13572 reader variable, pass `this` to read_cutu_die_from_dwo.
13573
13574 2020-02-27 Aaron Merey <amerey@redhat.com>
13575
13576 * source.c (open_source_file): Check for nullptr when computing
13577 srcpath.
13578
13579 2020-02-27 Tom Tromey <tromey@adacore.com>
13580
13581 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13582 member.
13583 (dwarf2_add_field): Don't update nfields.
13584 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13585
13586 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13587
13588 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13589 abs.
13590
13591 2020-02-26 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13594 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13595 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13596 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13597 per_cu_data.
13598
13599 2020-02-26 Tom Tromey <tom@tromey.com>
13600
13601 * dwarf2/index-write.c (psym_index_map): Change type.
13602 (add_address_entry_worker, write_one_signatured_type)
13603 (recursively_count_psymbols, recursively_write_psymbols)
13604 (class debug_names, psyms_seen_size, write_gdbindex)
13605 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13606
13607 2020-02-26 Aaron Merey <amerey@redhat.com>
13608
13609 * Makefile.in: Handle optional debuginfod support.
13610 * NEWS: Update.
13611 * README: Add --with-debuginfod summary.
13612 * config.in: Regenerate.
13613 * configure: Regenerate.
13614 * configure.ac: Handle optional debuginfod support.
13615 * debuginfod-support.c: debuginfod helper functions.
13616 * debuginfod-support.h: Ditto.
13617 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13618 summary.
13619 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13620 when a dwz file cannot be found.
13621 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13622 debuginfo file cannot be found.
13623 * source.c (open_source_file): Query debuginfod servers when a
13624 source file cannot be found.
13625 * top.c (print_gdb_configuration): Include
13626 --{with,without}-debuginfod in the output.
13627
13628 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13629
13630 * thread.c (thr_try_catch_cmd): Print thread name.
13631
13632 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13633
13634 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13635 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13636 dwarf2_fetch_die_type_sect_off): Move to...
13637 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13638 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13639 dwarf2_fetch_die_type_sect_off): ... here.
13640 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13641 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13642 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13643
13644 2020-02-26 Tom de Vries <tdevries@suse.de>
13645
13646 PR gdb/25603
13647 * symfile.c (set_initial_language): Exit-early if
13648 language_mode == language_mode_manual.
13649
13650 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13651
13652 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13653 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13654 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13655
13656 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13657
13658 * gdbtypes.c (create_array_type_with_stride): Handle negative
13659 array strides.
13660 * valarith.c (value_subscripted_rvalue): Likewise.
13661
13662 2020-02-25 Luis Machado <luis.machado@linaro.org>
13663
13664 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13665
13666 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13667
13668 * loc.h (dwarf2_get_die_type): Move to...
13669 * read.h (dwarf2_get_die_type): ... here.
13670 * read.c (dwarf2_get_die_type): Move doc to header.
13671
13672 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13673
13674 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13675 'gnulib/Makefile.in' to the list.
13676
13677 2020-02-24 Tom Tromey <tom@tromey.com>
13678
13679 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13680 Remove.
13681 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13682 XOBNEWVEC.
13683
13684 2020-02-24 Tom Tromey <tom@tromey.com>
13685
13686 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13687 New method.
13688 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13689 (dw2_do_instantiate_symtab, dw2_get_file_names)
13690 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13691
13692 2020-02-24 Tom Tromey <tom@tromey.com>
13693
13694 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13695 make_scoped_restore.
13696 (dwarf2_psymtab::read_symtab): Don't clear
13697 reading_partial_symbols.
13698
13699 2020-02-24 Tom de Vries <tdevries@suse.de>
13700
13701 PR gdb/25592
13702 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13703
13704 2020-02-24 Tom de Vries <tdevries@suse.de>
13705
13706 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13707 commands layout next/prev/regs.
13708
13709 2020-02-22 Tom Tromey <tom@tromey.com>
13710
13711 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13712 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13713
13714 2020-02-22 Tom Tromey <tom@tromey.com>
13715
13716 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13717
13718 2020-02-22 Tom Tromey <tom@tromey.com>
13719
13720 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13721 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13722 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13723 * tui/tui.c (_initialize_tui): Add usage text.
13724
13725 2020-02-22 Tom Tromey <tom@tromey.com>
13726
13727 * tui/tui-win.c (tui_set_focus_command)
13728 (tui_set_win_height_command): Use error_no_arg.
13729 (_initialize_tui_win): Update help text.
13730 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13731
13732 2020-02-22 Tom Tromey <tom@tromey.com>
13733
13734 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13735 * tui/tui-disasm.h (struct tui_disasm_window)
13736 <display_start_addr>: Declare.
13737 * tui/tui-source.h (struct tui_source_window)
13738 <display_start_addr>: Declare.
13739 * tui/tui-winsource.h (struct tui_source_window_base)
13740 <show_source_line, display_start_addr>: New methods.
13741 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13742 Rename and move to protected section.
13743 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13744 (tui_source_window_base::do_erase_source_content): Update.
13745 (tui_source_window_base::show_source_line): Now a method.
13746 (tui_source_window_base::show_source_content)
13747 (tui_source_window_base::tui_source_window_base)
13748 (tui_source_window_base::rerender)
13749 (tui_source_window_base::refill)
13750 (tui_source_window_base::do_scroll_horizontal)
13751 (tui_source_window_base::set_is_exec_point_at)
13752 (tui_source_window_base::update_breakpoint_info)
13753 (tui_source_window_base::update_exec_info): Update.
13754 * tui/tui-source.c (tui_source_window::set_contents)
13755 (tui_source_window::showing_source_p)
13756 (tui_source_window::do_scroll_vertical)
13757 (tui_source_window::location_matches_p)
13758 (tui_source_window::line_is_displayed): Update.
13759 (tui_source_window::display_start_addr): New method.
13760 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13761 (tui_disasm_window::do_scroll_vertical)
13762 (tui_disasm_window::location_matches_p): Update.
13763 (tui_disasm_window::display_start_addr): New method.
13764
13765 2020-02-22 Tom Tromey <tom@tromey.com>
13766
13767 * NEWS: Add entry for gdb.register_window_type.
13768 * tui/tui-layout.h (window_factory): New typedef.
13769 (tui_register_window): Declare.
13770 * tui/tui-layout.c (saved_tui_windows): New global.
13771 (tui_apply_current_layout): Use it.
13772 (tui_register_window): New function.
13773 * python/python.c (do_start_initialization): Call
13774 gdbpy_initialize_tui.
13775 (python_GdbMethods): Add "register_window_type" function.
13776 * python/python-internal.h (gdbpy_register_tui_window)
13777 (gdbpy_initialize_tui): Declare.
13778 * python/py-tui.c: New file.
13779 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13780
13781 2020-02-22 Tom Tromey <tom@tromey.com>
13782
13783 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13784
13785 2020-02-22 Tom Tromey <tom@tromey.com>
13786
13787 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13788 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13789 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13790 (tui_set_win_focus_to): Move from tui-win.c.
13791
13792 2020-02-22 Tom Tromey <tom@tromey.com>
13793
13794 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13795 functions.
13796 (known_window_types): New global.
13797 (tui_get_window_by_name): Reimplement.
13798 (initialize_known_windows): New function.
13799 (validate_window_name): Rewrite.
13800 (_initialize_tui_layout): Call initialize_known_windows.
13801
13802 2020-02-22 Tom Tromey <tom@tromey.com>
13803
13804 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13805 Remove constants.
13806 * tui/tui-winsource.h (struct tui_source_window_base)
13807 <tui_source_window_base>: Remove parameter.
13808 * tui/tui-winsource.c
13809 (tui_source_window_base::tui_source_window_base): Remove
13810 parameter.
13811 (tui_source_window_base::refill): Update.
13812 * tui/tui-stack.h (struct tui_locator_window)
13813 <tui_locator_window>: Update.
13814 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13815 Default the constructor.
13816 * tui/tui-regs.h (struct tui_data_item_window)
13817 <tui_data_item_window>: Default the constructor.
13818 (struct tui_data_window) <tui_data_window>: Likewise.
13819 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13820 Default the constructor.
13821 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13822 Default the constructor.
13823 <type>: Remove.
13824 (struct tui_win_info) <tui_win_info>: Default the constructor.
13825 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13826 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13827 Default the constructor.
13828
13829 2020-02-22 Tom Tromey <tom@tromey.com>
13830
13831 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13832 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13833 * tui/tui-win.c (tui_resize_all): Don't call
13834 tui_delete_invisible_windows.
13835 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13836 done.
13837 (tui_set_layout): Update.
13838 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13839 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13840 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13841
13842 2020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13845 correctly.
13846
13847 2020-02-22 Tom Tromey <tom@tromey.com>
13848
13849 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13850
13851 2020-02-22 Tom Tromey <tom@tromey.com>
13852
13853 * tui/tui-winsource.h (struct tui_source_window_iterator)
13854 <inner_iterator>: New etytypedef.
13855 <tui_source_window_iterator>: Take "end" parameter.
13856 <tui_source_window_iterator>: Take iterator.
13857 <operator*, advance>: Update.
13858 <m_iter>: Change type.
13859 <m_end>: New field.
13860 (struct tui_source_windows) <begin, end>: Update.
13861 * tui/tui-layout.c (tui_windows): New global.
13862 (tui_apply_current_layout): Clear tui_windows.
13863 (tui_layout_window::apply): Update tui_windows.
13864 * tui/tui-data.h (tui_windows): Declare.
13865 (all_tui_windows): Now inline function.
13866 (class tui_window_iterator, struct all_tui_windows): Remove.
13867
13868 2020-02-22 Tom Tromey <tom@tromey.com>
13869
13870 PR tui/17850:
13871 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13872 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13873 "height" argument.
13874 (class tui_layout_window) <get_sizes>: Likewise.
13875 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13876 argument.
13877 <get_sizes>: Add "height" argument.
13878 <m_vertical>: New field.
13879 * tui/tui-layout.c (tui_layout_split::clone): Update.
13880 (tui_layout_split::get_sizes): Add "height" argument.
13881 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13882 (tui_new_layout_command): Parse "-horizontal".
13883 (_initialize_tui_layout): Update help string.
13884 (tui_layout_split::specification): Add "-horizontal" when needed.
13885 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13886 argument.
13887 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13888 New methods.
13889
13890 2020-02-22 Tom Tromey <tom@tromey.com>
13891
13892 * tui/tui-layout.h (enum tui_adjust_result): New.
13893 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13894 (class tui_layout_window) <adjust_size>: Return
13895 tui_adjust_result. Rewrite.
13896 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13897 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13898
13899 2020-02-22 Tom Tromey <tom@tromey.com>
13900
13901 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13902 parameter and return types.
13903 (class tui_layout_base) <specification>: Add "depth".
13904 (class tui_layout_window) <specification>: Add "depth".
13905 (class tui_layout_split) <specification>: Add "depth".
13906 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13907 and return types.
13908 (tui_new_layout_command): Parse sub-layouts.
13909 (_initialize_tui_layout): Update help string.
13910 (tui_layout_window::specification): Add "depth".
13911 (add_layout_command): Update.
13912
13913 2020-02-22 Tom Tromey <tom@tromey.com>
13914
13915 * NEWS: Add "tui new-layout" item.
13916 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13917 Add new-layout command to help text.
13918 (validate_window_name): New function.
13919 (tui_new_layout_command): New function.
13920 (_initialize_tui_layout): Register "new-layout".
13921 (tui_layout_window::specification): New method.
13922 (tui_layout_window::specification): New method.
13923 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13924 method.
13925 (class tui_layout_window) <specification>: New method.
13926 (class tui_layout_split) <specification>: New method.
13927
13928 2020-02-22 Tom Tromey <tom@tromey.com>
13929
13930 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13931 * tui/tui-win.c (window_name_completer): Update comment.
13932 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13933 Declare method.
13934 (class tui_layout_window) <replace_window>: Likewise.
13935 (class tui_layout_split) <replace_window>: Likewise.
13936 (tui_set_layout): Don't declare.
13937 (tui_set_initial_layout): Declare function.
13938 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13939 (asm_regs_layout): New globals.
13940 (tui_current_layout, show_layout): Remove.
13941 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13942 (find_layout, tui_apply_layout): New function.
13943 (layout_completer): Remove.
13944 (tui_next_layout): Reimplement.
13945 (tui_next_layout_command): New function.
13946 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13947 (tui_regs_layout): Reimplement.
13948 (tui_regs_layout_command): New function.
13949 (extract_display_start_addr): Rewrite.
13950 (next_layout, prev_layout): Remove.
13951 (tui_layout_window::replace_window): New method.
13952 (tui_layout_split::replace_window): New method.
13953 (destroy_layout): New function.
13954 (layout_list): New global.
13955 (add_layout_command): New function.
13956 (initialize_layouts): Update.
13957 (tui_layout_command): New function.
13958 (_initialize_tui_layout): Install "layout" commands.
13959 * tui/tui-data.h (enum tui_layout_type): Remove.
13960 (tui_current_layout): Don't declare.
13961
13962 2020-02-22 Tom Tromey <tom@tromey.com>
13963
13964 * tui/tui-regs.c (tui_reg_layout): Remove.
13965 (tui_reg_command): Use tui_regs_layout.
13966 * tui/tui-layout.h (tui_reg_command): Declare.
13967 * tui/tui-layout.c (tui_reg_command): New function.
13968
13969 2020-02-22 Tom Tromey <tom@tromey.com>
13970
13971 * tui/tui.c (tui_rl_delete_other_windows): Call
13972 tui_remove_some_windows.
13973 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13974 Declare method.
13975 (class tui_layout_window) <remove_windows>: New method.
13976 (class tui_layout_split) <remove_windows>: Declare.
13977 (tui_remove_some_windows): Declare.
13978 * tui/tui-layout.c (tui_remove_some_windows): New function.
13979 (tui_layout_split::remove_windows): New method.
13980
13981 2020-02-22 Tom Tromey <tom@tromey.com>
13982
13983 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13984 * tui/tui-layout.h (tui_next_layout): Declare.
13985 * tui/tui-layout.c (tui_next_layout): New function.
13986
13987 2020-02-22 Tom Tromey <tom@tromey.com>
13988
13989 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13990 correct coordinates.
13991
13992 2020-02-22 Tom Tromey <tom@tromey.com>
13993
13994 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13995 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13996 DATA_WIN case.
13997
13998 2020-02-22 Tom Tromey <tom@tromey.com>
13999
14000 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14001 TUI_DISASM_WIN, not tui_win_list.
14002
14003 2020-02-22 Tom Tromey <tom@tromey.com>
14004
14005 * valprint.c (generic_val_print_enum_1)
14006 (val_print_type_code_flags): Style member names.
14007 * rust-lang.c (val_print_struct, rust_print_enum)
14008 (rust_print_struct_def, rust_internal_print_type): Style member
14009 names.
14010 * p-valprint.c (pascal_object_print_value_fields): Style member
14011 names. Only call fprintf_symbol_filtered for static members.
14012 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14013 * f-valprint.c (f_val_print): Style member names.
14014 * f-typeprint.c (f_type_print_base): Style member names.
14015 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14016 call fprintf_symbol_filtered for static members.
14017 (cp_print_class_member): Style member names.
14018 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14019 member names.
14020 * ada-valprint.c (ada_print_scalar): Style enum names.
14021 (ada_val_print_enum): Likewise.
14022 * ada-typeprint.c (print_enum_type): Style enum names.
14023
14024 2020-02-21 Tom Tromey <tom@tromey.com>
14025
14026 * psympriv.h (struct partial_symtab): Update comment.
14027
14028 2020-02-21 Tom Tromey <tromey@adacore.com>
14029
14030 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14031 type is CORE_ADDR.
14032
14033 2020-02-21 Tom de Vries <tdevries@suse.de>
14034
14035 PR gdb/25534
14036 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14037 if dependencies[i]->user != NULL.
14038
14039 2020-02-21 Ali Tamur <tamur@google.com>
14040
14041 * dwarf2/read.c (dwarf2_name): Add null check.
14042
14043 2020-02-20 Tom Tromey <tom@tromey.com>
14044
14045 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14046 ">=", in binary search.
14047 (dwarf2_find_containing_comp_unit): New overload.
14048 (run_test): New self-test.
14049 (_initialize_dwarf2_read): Register new test.
14050
14051 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14052
14053 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14054 * riscv-tdep.h: Likewise.
14055 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14056 rv32-only CSR.
14057 * features/riscv/64bit-csr.xml: Regenerated.
14058
14059 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14060 Tom Tromey <tom@tromey.com>
14061
14062 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14063 of 'fputc_unfiltered'.
14064 (putchar_unfiltered): Call 'fputc_unfiltered'.
14065 (fputc_unfiltered): Call 'fputs_unfiltered'.
14066
14067 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14068
14069 * config.in: Regenerate.
14070 * configure: Regenerate.
14071 * configure.ac: Add --with-python-libdir option.
14072 * main.c: Use WITH_PYTHON_LIBDIR.
14073
14074 2020-02-19 Tom Tromey <tom@tromey.com>
14075
14076 * symtab.c (general_symbol_info::compute_and_set_names): Use
14077 obstack_strndup. Simplify call to symbol_set_demangled_name.
14078
14079 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14080
14081 * dwarf2/read.c (allocate_signatured_type_table,
14082 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14083 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14084 Remove objfile parameter, update all callers.
14085
14086 2020-02-19 Doug Evans <dje@google.com>
14087
14088 PR rust/25535
14089 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14090 rust_enum_variant calculation.
14091
14092 2020-02-19 Tom Tromey <tromey@adacore.com>
14093
14094 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14095
14096 2020-02-19 Tom Tromey <tromey@adacore.com>
14097
14098 * ada-lang.c (cache_symbol): Use obstack_strdup.
14099
14100 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14101
14102 * configure: Regenerate.
14103
14104 2020-02-19 Tom Tromey <tromey@adacore.com>
14105
14106 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14107 NULL check.
14108
14109 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14110
14111 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14112
14113 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14116 if GDBSERVER is not defined.
14117 (riscv_tdesc_cache): Likewise, also store const target_desc.
14118 (STATIC_IN_GDB): Define.
14119 (riscv_create_target_description): Update declaration with
14120 STATIC_IN_GDB.
14121 (riscv_lookup_target_description): New function, only define if
14122 GDBSERVER is not defined.
14123 * arch/riscv.h (riscv_create_target_description): Declare only
14124 when GDBSERVER is defined.
14125 (riscv_lookup_target_description): New declaration when GDBSERVER
14126 is not defined.
14127 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14128 (riscv_linux_read_features): ...this, and return
14129 riscv_gdbarch_features instead of target_desc.
14130 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14131 (riscv_linux_read_description): Rename to...
14132 (riscv_linux_read_features): ...this.
14133 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14134 Update to use riscv_gdbarch_features and
14135 riscv_lookup_target_description.
14136 * riscv-tdep.c (riscv_find_default_target_description): Use
14137 riscv_lookup_target_description instead of
14138 riscv_create_target_description.
14139
14140 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14141
14142 * valprint.c (generic_val_print_enum_1): When printing a flag
14143 enum with value 0 and there is no enumerator with value 0, print
14144 just "0" instead of "(unknown: 0x0)".
14145
14146 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14147
14148 * valprint.c (generic_val_print_enum_1): Print unknown part of
14149 flag enum in hex.
14150
14151 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14154 flag enums to contain duplicate enumerators.
14155 * valprint.c (generic_val_print_enum_1): Update comment.
14156
14157 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * dwarf2/read.c: Include "count-one-bits.h".
14160 (update_enumeration_type_from_children): If an enumerator has
14161 multiple bits set, don't treat the enumeration as a "flag enum".
14162 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14163 of flag enums have 0 or 1 bit set.
14164
14165 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14166
14167 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14168 conversion.
14169 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14170 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14171 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14172 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14173 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14174
14175 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14176
14177 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14178
14179 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14180
14181 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14182 displaced_step_closure_up.
14183 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14184 (struct displaced_step_closure_up):
14185 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14186 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14187 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14188 Likewise.
14189 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14190 * gdbarch.c, gdbarch.h: Re-generate.
14191 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14192 displaced_step_closure_up.
14193 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14194 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14195 * infrun.h (displaced_step_closure_up): New type alias.
14196 (struct displaced_step_inferior_state) <step_closure>: Change
14197 type to displaced_step_closure_up.
14198 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14199 displaced_step_closure_up.
14200 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14201
14202 2020-02-14 Tom Tromey <tom@tromey.com>
14203
14204 * minidebug.c (gnu_debug_key): New global.
14205 (find_separate_debug_file_in_section): Use it.
14206
14207 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14208
14209 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14210 std::unique_ptr.
14211 * gdbarch.c: Re-generate.
14212 * gdbarch.h: Re-generate.
14213 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14214 change.
14215 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14216 type to std::unique_ptr.
14217 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14218 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14219 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14220 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14221 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14222 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14223 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14224 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14225 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14226
14227 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14228
14229 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14230 std::unique_ptr.
14231 (displaced_step_clear): Rename to...
14232 (displaced_step_reset): ... this. Just call displaced->reset ().
14233 (displaced_step_clear_cleanup): Rename to...
14234 (displaced_step_reset_cleanup): ... this.
14235 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14236 (displaced_step_fixup): Likewise.
14237 (resume_1): Likewise.
14238 (handle_inferior_event): Restore child's memory before calling
14239 displaced_step_fixup on the parent.
14240 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14241 to std::unique_ptr.
14242 <step_closure>: Change type to std::unique_ptr.
14243
14244 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14245
14246 * arm-tdep.c: Include count-one-bits.h.
14247 (cleanup_block_store_pc): Use count_one_bits.
14248 (cleanup_block_load_pc): Use count_one_bits.
14249 (arm_copy_block_xfer): Use count_one_bits.
14250 (thumb2_copy_block_xfer): Use count_one_bits.
14251 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14252 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14253 (thumb_get_next_pcs_raw): Use count_one_bits.
14254 (arm_get_next_pcs_raw): Use count_one_bits_l.
14255 * arch/arm.c (bitcount): Remove.
14256 * arch/arm.h (bitcount): Remove.
14257
14258 2020-02-14 Tom Tromey <tromey@adacore.com>
14259
14260 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14261 Update.
14262 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14263 * dwarf2/loc.c (call_site_find_chain_1): Return
14264 unique_xmalloc_ptr.
14265 (call_site_find_chain): Likewise.
14266
14267 2020-02-14 Richard Biener <rguenther@suse.de>
14268
14269 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14270 on expression with division operators.
14271
14272 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14273
14274 * MAINTAINERS (Write After Approval): Adding myself.
14275
14276 2020-02-12 Tom Tromey <tom@tromey.com>
14277
14278 * event-loop.c (event_data, gdb_event, event_handler_func):
14279 Remove.
14280
14281 2020-02-12 Tom Tromey <tom@tromey.com>
14282
14283 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14284 (dwarf2_frame_objfile_data): Add comment.
14285 (find_comp_unit, set_comp_unit): New functions.
14286 (dwarf2_frame_find_fde): Use find_comp_unit.
14287 (dwarf2_build_frame_info): Use set_comp_unit.
14288
14289 2020-02-12 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14292 (comp_unit): Don't initialize objfile.
14293 (execute_cfa_program): Add text_offset parameter.
14294 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14295 (dwarf2_frame_cache): Update.
14296 (dwarf2_build_frame_info): Don't set "objfile" member.
14297
14298 2020-02-12 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14301 (decode_frame_entry): Likewise.
14302 (dwarf2_build_frame_info): Update.
14303
14304 2020-02-12 Tom Tromey <tom@tromey.com>
14305
14306 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14307 (decode_frame_entry_1): Use the comp_unit obstack.
14308
14309 2020-02-12 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2/frame.c (struct comp_unit): Add initializers and
14312 constructor.
14313 (dwarf2_frame_objfile_data): Store a comp_unit.
14314 (dwarf2_frame_find_fde): Update.
14315 (dwarf2_build_frame_info): Use "new".
14316
14317 2020-02-12 Tom Tromey <tom@tromey.com>
14318
14319 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14320 (dwarf2_fde_table): Typedef for std::vector.
14321 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14322 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14323 (decode_frame_entry): Update.
14324 (dwarf2_build_frame_info): Use "new".
14325
14326 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14327
14328 * arm-tdep.c (arm_gdbarch_init): Update.
14329 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14330 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14331 have_neon, is_m>: Change to bool.
14332
14333 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14334
14335 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14336
14337 2020-02-12 Tom Tromey <tom@tromey.com>
14338
14339 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14340
14341 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14342
14343 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14344 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14345
14346 2020-02-11 Tom Tromey <tom@tromey.com>
14347
14348 * psymtab.h: Update comment.
14349
14350 2020-02-11 Tom Tromey <tom@tromey.com>
14351
14352 * gdb_obstack.h (struct auto_obstack): Use
14353 DISABLE_COPY_AND_ASSIGN.
14354
14355 2020-02-11 Tom Tromey <tom@tromey.com>
14356
14357 * dwarf2/frame.h (struct objfile): Don't forward declare.
14358
14359 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14360
14361 * cris-tdep.c (cris_supply_gregset): Change signature to match
14362 what struct regset expects.
14363 (cris_regset): New struct.
14364 (fetch_core_registers): Remove.
14365 (cris_iterate_over_regset_sections): New function.
14366 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14367 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14368
14369 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14370
14371 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14372 registers.
14373
14374 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14375
14376 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14377
14378 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14379
14380 * configure: Re-generate.
14381
14382 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14383
14384 * configure: Re-generate.
14385
14386 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14387
14388 * acinclude: Update warning.m4 path.
14389 * warning.m4: Move to gdbsupport.
14390
14391 2020-02-11 Tom Tromey <tromey@adacore.com>
14392
14393 * remote.c (remote_console_output): Update.
14394 * printcmd.c (printf_command): Update.
14395 * event-loop.c (gdb_wait_for_event): Update.
14396 * linux-nat.c (sigchld_handler): Update.
14397 * remote-sim.c (gdb_os_write_stdout): Update.
14398 (gdb_os_flush_stdout): Update.
14399 (gdb_os_flush_stderr): Update.
14400 (gdb_os_write_stderr): Update.
14401 * exceptions.c (print_exception): Update.
14402 * remote-fileio.c (remote_fileio_func_read): Update.
14403 (remote_fileio_func_write): Update.
14404 * tui/tui.c (tui_enable): Update.
14405 * tui/tui-interp.c (tui_interp::init): Update.
14406 * utils.c (init_page_info): Update.
14407 (putchar_unfiltered, fputc_unfiltered): Update.
14408 (gdb_flush): Update.
14409 (emit_style_escape): Update.
14410 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14411 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14412 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14413 (stderr_file::write): Update.
14414 (stderr_file::puts): Update.
14415 * ui-file.h (ui_file_isatty, ui_file_write)
14416 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14417 (ui_file_puts): Don't declare.
14418
14419 2020-02-10 Tom de Vries <tdevries@suse.de>
14420
14421 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14422 sentinel to char *.
14423
14424 2020-02-09 Tom de Vries <tdevries@suse.de>
14425
14426 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14427 filename if it matches "<artificial>".
14428
14429 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14430
14431 * windows-tdep.c (struct enum_value_name): New struct.
14432 (create_enum): New function.
14433 (windows_get_siginfo_type): Create and use enum types.
14434
14435 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14436
14437 * NEWS: Mention $_siginfo support for Windows.
14438 * windows-nat.c (handle_exception): Set siginfo_er.
14439 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14440 (windows_xfer_siginfo): New function.
14441 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14442 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14443 (init_windows_gdbarch_data): New function.
14444 (get_windows_gdbarch_data): New function.
14445 (windows_get_siginfo_type): New function.
14446 (windows_init_abi): Register windows_get_siginfo_type.
14447 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14448
14449 2020-02-08 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14452 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14453 <keep>: Declare method.
14454 <m_keep>: Remove member.
14455 <~cutu_reader>: Remove.
14456 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14457 (cutu_reader::cutu_reader): Update.
14458 (cutu_reader::keep): Rename from ~cutu_reader.
14459 (process_psymtab_comp_unit, build_type_psymtabs_1)
14460 (process_skeletonless_type_unit, load_partial_comp_unit)
14461 (load_full_comp_unit, dwarf2_read_addr_index)
14462 (read_signatured_type): Update.
14463
14464 2020-02-08 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14467 "want_partial_unit" parameter.
14468 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14469 Inline check for DW_TAG_partial_unit.
14470 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14471
14472 2020-02-08 Tom Tromey <tom@tromey.com>
14473
14474 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14475 read.c.
14476 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14477 read.c.
14478
14479 2020-02-08 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2/read.c (read_address): Move to comp-unit.c.
14482 (dwarf2_rnglists_process, dwarf2_ranges_process)
14483 (read_attribute_value, dwarf_decode_lines_1)
14484 (var_decode_location, decode_locdesc): Update.
14485 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14486 read.c. Remove "cu" parameter.
14487 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14488 method.
14489
14490 2020-02-08 Tom Tromey <tom@tromey.com>
14491
14492 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14493 (read_indirect_line_string): Update.
14494 * dwarf2/comp-unit.c (read_offset): Remove.
14495 (read_comp_unit_head): Update.
14496 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14497 method.
14498 (read_offset): Don't declare.
14499
14500 2020-02-08 Tom Tromey <tom@tromey.com>
14501
14502 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14503 * dwarf2/read.c (struct comp_unit_head): Move to
14504 dwarf2/comp-unit.h.
14505 (enum class rcuh_kind): Move to comp-unit.h.
14506 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14507 (read_comp_unit_head, error_check_comp_unit_head)
14508 (read_and_check_comp_unit_head): Move to comp-unit.c.
14509 (read_offset, dwarf_unit_type_name): Likewise.
14510 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14511 (cutu_reader::cutu_reader, read_call_site_scope)
14512 (find_partial_die, follow_die_offset): Update.
14513 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14514
14515 2020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2/read.c (read_offset_1): Move to leb.c.
14518 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14519 (dwarf_decode_macro_bytes): Update.
14520 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14521 * dwarf2/leb.h (read_offset): Declare.
14522
14523 2020-02-08 Tom Tromey <tom@tromey.com>
14524
14525 * dwarf2/read.c (dwarf2_section_size): Remove.
14526 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14527 Update.
14528 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14529
14530 2020-02-08 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/read.c (read_initial_length): Move to leb.c.
14533 * dwarf2/leb.h (read_initial_length): Declare.
14534 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14535 handle_nonstd parameter.
14536 * dwarf2/frame.c (read_initial_length): Remove.
14537 (decode_frame_entry_1): Update.
14538
14539 2020-02-08 Tom Tromey <tom@tromey.com>
14540
14541 * dwarf2/loc.c (dwarf2_find_location_expression)
14542 (dwarf_evaluate_loc_desc::get_tls_address)
14543 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14544 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14545 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14546 (dwarf2_compile_property_to_c)
14547 (dwarf2_loc_desc_get_symbol_read_needs)
14548 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14549 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14550 (loclist_describe_location, loclist_tracepoint_var_ref)
14551 (loclist_generate_c_location): Update.
14552 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14553 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14554 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14555 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14556 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14557 (dwarf2_per_cu_data::addr_size)
14558 (dwarf2_per_cu_data::ref_addr_size)
14559 (dwarf2_per_cu_data::text_offset)
14560 (dwarf2_per_cu_data::addr_type): Now methods.
14561 (per_cu_header_read_in): Make per_cu "const".
14562 (dwarf2_version): Remove.
14563 (dwarf2_per_cu_data::int_type): Now a method.
14564 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14565 (set_die_type, read_array_type, read_subrange_index_type)
14566 (read_tag_string_type, read_subrange_type): Update.
14567 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14568 offset_size, ref_addr_size, text_offset, addr_type, version,
14569 objfile, int_type, addr_sized_int_type>: Declare methods.
14570
14571 2020-02-08 Tom Tromey <tom@tromey.com>
14572
14573 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14574 Move earlier.
14575
14576 2020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2/read.h (dwarf_line_debug): Declare.
14579 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14580 * dwarf2/read.c: Move line_header code to new files.
14581 (dwarf_line_debug): No longer static.
14582 * dwarf2/line-header.c: New file.
14583 * dwarf2/line-header.h: New file.
14584
14585 2020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2/read.c (struct line_header) <file_full_name,
14588 file_file_name>: Return unique_xmalloc_ptr.
14589 (line_header::file_file_name): Update.
14590 (line_header::file_full_name): Update.
14591 (dw2_get_file_names_reader): Update.
14592 (macro_start_file): Update.
14593
14594 2020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2/read.c (struct line_header) <file_full_name,
14597 file_file_name>: Declare methods.
14598 (dw2_get_file_names_reader): Update.
14599 (file_file_name): Now a method.
14600 (file_full_name): Likewise.
14601 (macro_start_file): Update.
14602
14603 2020-02-08 Tom Tromey <tom@tromey.com>
14604
14605 * dwarf2/read.c (dwarf_always_disassemble)
14606 (show_dwarf_always_disassemble): Move to loc.c.
14607 (_initialize_dwarf2_read): Move "always-disassemble" registration
14608 to loc.c.
14609 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14610 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14611 static.
14612 (show_dwarf_always_disassemble): Move from read.c.
14613 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14614
14615 2020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14618 (create_quick_file_names_table): Return htab_up.
14619 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14620 Update.
14621 * dwarf2/read.h (struct dwarf2_per_objfile)
14622 <quick_file_names_table>: Now htab_up.
14623
14624 2020-02-08 Tom Tromey <tom@tromey.com>
14625
14626 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14627
14628 2020-02-08 Tom Tromey <tom@tromey.com>
14629
14630 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14631 Rewrite.
14632 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14633 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14634 (abbrev_table::abbrev_table): No longer inline.
14635 (ABBREV_HASH_SIZE): Remove.
14636 (abbrev_table::m_abbrevs): Now an htab_up.
14637
14638 2020-02-08 Tom Tromey <tom@tromey.com>
14639
14640 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14641 (cutu_reader): Update.
14642 (build_type_psymtabs_1): Update.
14643 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14644 (abbrev_table::alloc_abbrev): Update.
14645 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14646 (abbrev_table::read): New static method, renamed from
14647 abbrev_table_read_table.
14648 (abbrev_table::alloc_abbrev)
14649 (abbrev_table::add_abbrev): Now private.
14650 (abbrev_table::abbrev_table): Now private.
14651 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14652
14653 2020-02-08 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14656 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14657 htab_up.
14658
14659 2020-02-08 Tom Tromey <tom@tromey.com>
14660
14661 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14662 htab_up.
14663 (lookup_dwo_unit_in_dwp): Update.
14664 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14665 on obstack.
14666
14667 2020-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14670 obstack.
14671
14672 2020-02-08 Tom Tromey <tom@tromey.com>
14673
14674 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14675 line_header_hash.
14676 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14677 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14678 Change type to htab_up.
14679
14680 2020-02-08 Tom Tromey <tom@tromey.com>
14681
14682 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14683 htab_up. Don't allocate on obstack.
14684 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14685 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14686 Change type to htab_up.
14687
14688 2020-02-08 Tom Tromey <tom@tromey.com>
14689
14690 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14691 Change type to htab_up.
14692 * dwarf2/read.c (create_signatured_type_table_from_index)
14693 (create_signatured_type_table_from_debug_names)
14694 (create_all_type_units, add_type_unit)
14695 (lookup_dwo_signatured_type, lookup_signatured_type)
14696 (process_skeletonless_type_unit): Update.
14697 (create_debug_type_hash_table, create_debug_types_hash_table):
14698 Change type of types_htab.
14699 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14700 htab_up. Don't allocate on obstack.
14701 (create_cus_hash_table): Change type of cus_htab parameter.
14702 (struct dwo_file) <cus, tus>: Now htab_up.
14703 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14704 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14705 (queue_and_load_all_dwo_tus): Update.
14706 * dwarf2/index-write.c (write_gdbindex): Update.
14707 (write_debug_names): Update.
14708
14709 2020-02-08 Tom Tromey <tom@tromey.com>
14710
14711 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14712 dwarf2/read.c. Remove "next" member. Add constructor ntad
14713 destructor.
14714 (struct dwarf2_per_objfile) <queue>: New member.
14715 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14716 dwarf2/read.h.
14717 (dwarf2_queue, dwarf2_queue_tail): Remove.
14718 (class dwarf2_queue_guard): Add parameter to constructor. Use
14719 DISABLE_COPY_AND_ASSIGN.
14720 <m_per_objfile>: New member.
14721 <~dwarf2_queue_guard>: Rewrite.
14722 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14723 Update.
14724 (~dwarf2_queue_item): New.
14725
14726 2020-02-08 Tom Tromey <tom@tromey.com>
14727
14728 * dwarf2/read.c (struct die_info) <has_children>: New member.
14729 (dw2_get_file_names_reader): Remove has_children.
14730 (dw2_get_file_names): Update.
14731 (read_cutu_die_from_dwo): Remove has_children.
14732 (cutu_reader::init_tu_and_read_dwo_dies)
14733 (cutu_reader::cutu_reader): Update.
14734 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14735 Remove has_children.
14736 (build_type_psymtabs_1, process_skeletonless_type_unit)
14737 (load_partial_comp_unit, load_full_comp_unit): Update.
14738 (create_dwo_cu_reader): Remove has_children.
14739 (create_cus_hash_table, read_die_and_children): Update.
14740 (read_full_die_1,read_full_die): Remove has_children.
14741 (read_signatured_type): Update.
14742 (class cutu_reader) <has_children>: Remove.
14743
14744 2020-02-08 Tom Tromey <tom@tromey.com>
14745
14746 * dwarf2/expr.c: Rename from dwarf2expr.c.
14747 * dwarf2/expr.h: Rename from dwarf2expr.h.
14748 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14749 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14750 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14751 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14752 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14753 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14754 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14755 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14756 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14757 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14758 * dwarf2/loc.c: Rename from dwarf2loc.c.
14759 * dwarf2/loc.h: Rename from dwarf2loc.h.
14760 * dwarf2/read.c: Rename from dwarf2read.c.
14761 * dwarf2/read.h: Rename from dwarf2read.h.
14762 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14763 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14764 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14765 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14766 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14767 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14768 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14769 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14770 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14771 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14772 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14773 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14774 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14775 Update.
14776 * Makefile.in (COMMON_SFILES): Update.
14777 (HFILES_NO_SRCDIR): Update.
14778
14779 2020-02-08 Tom Tromey <tom@tromey.com>
14780
14781 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14782 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14783
14784 2020-02-08 Tom Tromey <tom@tromey.com>
14785
14786 * dwarf2read.h (struct die_info): Don't declare.
14787
14788 2020-02-08 Tom Tromey <tom@tromey.com>
14789
14790 * dwarf2read.h (die_info_ptr): Remove typedef.
14791
14792 2020-02-08 Tom Tromey <tom@tromey.com>
14793
14794 * dwarf2read.c (read_call_site_scope)
14795 (handle_data_member_location, dwarf2_add_member_fn)
14796 (mark_common_block_symbol_computed, read_common_block)
14797 (attr_to_dynamic_prop, partial_die_info::read)
14798 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14799 (dwarf2_symbol_mark_computed, set_die_type): Update.
14800 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14801 method.
14802 (attr_form_is_block): Don't declare.
14803 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14804
14805 2020-02-08 Tom Tromey <tom@tromey.com>
14806
14807 * dwarf2read.c (dwarf2_find_base_address, )
14808 (read_call_site_scope, rust_containing_type)
14809 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14810 (handle_data_member_location, dwarf2_add_member_fn)
14811 (get_alignment, read_structure_type, process_structure_scope)
14812 (mark_common_block_symbol_computed, read_common_block)
14813 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14814 (partial_die_info::read, read_attribute_value, new_symbol)
14815 (lookup_die_type, dwarf2_get_ref_die_offset)
14816 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14817 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14818 (dwarf2_symbol_mark_computed): Update.
14819 * dwarf2/attribute.h (struct attribute) <value_as_address,
14820 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14821 methods.
14822 (value_as_address, attr_form_is_section_offset)
14823 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14824 * dwarf2/attribute.c (attribute::value_as_address)
14825 (attribute::form_is_section_offset, attribute::form_is_constant)
14826 (attribute::form_is_ref): Now methods.
14827
14828 2020-02-08 Tom Tromey <tom@tromey.com>
14829
14830 * dwarf2read.c (struct attribute, DW_STRING)
14831 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14832 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14833 (attr_form_is_block, attr_form_is_section_offset)
14834 (attr_form_is_constant, attr_form_is_ref): Move.
14835 * dwarf2/attribute.h: New file.
14836 * dwarf2/attribute.c: New file, from dwarf2read.c.
14837 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14838
14839 2020-02-08 Tom Tromey <tom@tromey.com>
14840
14841 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14842 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14843 Move.
14844 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14845 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14846 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14847 abbrev.c.
14848 * dwarf2/abbrev.h: New file.
14849 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14850 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14851
14852 2020-02-08 Tom Tromey <tom@tromey.com>
14853
14854 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14855 (dwarf2_section_size, dwarf2_get_section_info)
14856 (create_signatured_type_table_from_debug_names)
14857 (create_addrmap_from_aranges, read_debug_names_from_section)
14858 (get_gdb_index_contents_from_section, read_comp_unit_head)
14859 (error_check_comp_unit_head, read_abbrev_offset)
14860 (create_debug_type_hash_table, init_cu_die_reader)
14861 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14862 (read_comp_units_from_section, create_cus_hash_table)
14863 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14864 (create_dwp_v2_section, dwarf2_rnglists_process)
14865 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14866 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14867 (read_indirect_string_from_dwz, read_addr_index_1)
14868 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14869 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14870 (fill_in_loclist_baton): Update.
14871 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14872 get_containing_section, get_bfd_owner, get_bfd_section,
14873 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14874 (dwarf2_read_section, get_section_name, get_section_file_name)
14875 (get_containing_section, get_section_bfd_owner)
14876 (get_section_bfd_section, get_section_name, get_section_file_name)
14877 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14878 declare.
14879 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14880 (dwarf2_section_info::get_bfd_owner)
14881 (dwarf2_section_info::get_bfd_section)
14882 (dwarf2_section_info::get_name)
14883 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14884 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14885 (dwarf2_section_info::read): Now methods.
14886 * dwarf-index-write.c (class debug_names): Update.
14887
14888 2020-02-08 Tom Tromey <tom@tromey.com>
14889
14890 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14891 Move to dwarf2/section.h.
14892 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14893 (get_section_bfd_section, get_section_name)
14894 (get_section_file_name, get_section_id, get_section_flags)
14895 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14896 dwarf2/section.c.
14897 * dwarf2/section.h: New file.
14898 * dwarf2/section.c: New file, from dwarf2read.c.
14899 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14900
14901 2020-02-08 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14904 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14905 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14906 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14907 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14908 * dwarf2/leb.h: New file, from dwarf2read.c.
14909 * dwarf2/leb.c: New file, from dwarf2read.c.
14910 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14911 Remove.
14912 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14913 (COMMON_SFILES): Add dwarf2/leb.c.
14914
14915 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14916
14917 GDB 9.1 released.
14918
14919 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14920
14921 PR gdb/25190:
14922 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14923 * gdb/remote.c (remote_console_output): Update.
14924 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14925 (ui_file_puts): ...this.
14926 * gdb/ui-file.h (ui_file_puts): Add declaration.
14927 * gdb/utils.c (emit_style_escape): Update.
14928 (flush_wrap_buffer): Update.
14929 (fputs_maybe_filtered): Update.
14930 (fputs_unfiltered): Add function.
14931
14932 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14933
14934 * gdb/event-loop.c (gdb_wait_for_event): Update.
14935 * gdb/printcmd.c (printf_command): Update.
14936 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14937 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14938 (gdb_os_flush_stderr): Update.
14939 * gdb/remote.c (remote_console_output): Update.
14940 * gdb/ui-file.c (gdb_flush): Rename to...
14941 (ui_file_flush): ...this.
14942 (stderr_file::write): Update.
14943 (stderr_file::puts): Update.
14944 * gdb/ui-file.h (gdb_flush): Rename to...
14945 (ui_file_flush): ...this.
14946 * gdb/utils.c (gdb_flush): Add function.
14947 * gdb/utils.h (gdb_flush): Add declaration.
14948
14949 2020-02-07 Tom Tromey <tromey@adacore.com>
14950
14951 PR breakpoints/24915:
14952 * source.c (find_and_open_source): Do not check basenames_may_differ.
14953
14954 2020-02-07 Tom Tromey <tom@tromey.com>
14955
14956 * README: Update gdbserver documentation.
14957 * gdbserver: Move to top level.
14958 * configure.tgt (build_gdbserver): Remove.
14959 * configure.ac: Remove --enable-gdbserver.
14960 * configure: Rebuild.
14961 * Makefile.in (distclean): Don't mention gdbserver.
14962
14963 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14964
14965 * source-cache.c (source_cache::ensure): Surround
14966 get_plain_source_lines with a try/catch.
14967 (source_cache::get_line_charpos): Get rid of try/catch
14968 and only check for the return value of "ensure".
14969 * tui/tui-source.c (tui_source_window::set_contents):
14970 Simplify "nlines" calculation.
14971
14972 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14973
14974 * MAINTAINERS (Write After Approval): Add myself.
14975
14976 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14977
14978 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14979 function call.
14980
14981 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14982
14983 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14984
14985 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14986
14987 * nat/riscv-linux-tdesc.h: New file.
14988 * nat/riscv-linux-tdesc.c: New file, taking code from...
14989 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14990 ... here.
14991 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14992 NATDEPFILES.
14993
14994 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14995
14996 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14997 we don't set the fake simulator ptid to the null_ptid.
14998
14999 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15000
15001 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15002 * gdbthread.h (class thread_info) <resumed>: Likewise.
15003 * infrun.c (resume_1): Likewise.
15004 (proceed): Likewise.
15005 (infrun_thread_stop_requested): Likewise.
15006 (stop_all_threads): Likewise.
15007 (handle_inferior_event): Likewise.
15008 (restart_threads): Likewise.
15009 (finish_step_over): Likewise.
15010 (keep_going_stepped_thread): Likewise.
15011 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15012 (linux_handle_extended_wait): Likewise.
15013 * record-btrace.c (get_thread_current_frame_id): Likewise.
15014 * record-full.c (record_full_wait_1): Likewise.
15015 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15016 * target.c (target_resume): Likewise.
15017 * thread.c (set_running_thread): Likewise.
15018
15019 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15020
15021 * f-valprint.c (f77_print_array_1): Changed datatype of index
15022 variable to LONGEST from int to enable it to contain bound
15023 values correctly.
15024
15025 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15026
15027 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15028 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15029 offsets according to FLEN determined.
15030 (riscv_linux_nat_target::read_description): Determine FLEN
15031 dynamically.
15032 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15033 according to FLEN determined.
15034 (riscv_linux_nat_target::store_registers): Likewise.
15035
15036 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15037
15038 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15039 when reg->group is empty and reggroup is not.
15040
15041 2020-01-31 Tom Tromey <tromey@adacore.com>
15042
15043 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15044 Call beneath target's mourn_inferior after unpushing.
15045
15046 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15047
15048 PR tui/9765
15049 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15050 have enough lines to fill the screen, still return the lowest
15051 address we found.
15052
15053 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15054
15055 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15056 '-', '<', and '>' commands.
15057
15058 2020-01-29 Pedro Alves <palves@redhat.com>
15059 Sergio Durigan Junior <sergiodj@redhat.com>
15060
15061 * infcmd.c (construct_inferior_arguments): Assert that
15062 'argc' is greater than 0.
15063
15064 2020-01-29 Luis Machado <luis.machado@linaro.org>
15065
15066 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15067 (BRK_INSN_MASK): Define to 0xd4200000.
15068 (aarch64_program_breakpoint_here_p): New function.
15069 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15070 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15071 breakpoint.c.
15072 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15073 breakpoint.h
15074 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15075 call gdbarch_program_breakpoint_here_p.
15076 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15077 default_program_breakpoint_here_p, changed return type to bool and
15078 simplified.
15079 * breakpoint.h (program_breakpoint_here): Moved prototype to
15080 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15081 return type to bool.
15082 * gdbarch.c: Regenerate.
15083 * gdbarch.h: Regenerate.
15084 * gdbarch.sh (program_breakpoint_here_p): New method.
15085 * infrun.c (handle_signal_stop): Call
15086 gdbarch_program_breakpoint_here_p.
15087
15088 2020-01-26 Tom Tromey <tom@tromey.com>
15089
15090 * ctfread.c (struct ctf_fp_info): Reindent.
15091 (_initialize_ctfread): Remove.
15092
15093 2020-01-26 Tom Tromey <tom@tromey.com>
15094
15095 * psymtab.c (partial_map_expand_apply)
15096 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15097 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15098 (psym_print_stats, psym_expand_symtabs_for_function)
15099 (psym_map_symbol_filenames, psym_map_matching_symbols)
15100 (psym_expand_symtabs_matching)
15101 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15102 (maintenance_check_psymtabs): Use new methods.
15103 * psympriv.h (struct partial_symtab) <readin_p,
15104 get_compunit_symtab>: New methods.
15105 <readin, compunit_symtab>: Remove members.
15106 (struct standard_psymtab): New.
15107 (struct legacy_psymtab): Derive from standard_psymtab.
15108 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15109 standard_psymtab.
15110 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15111
15112 2020-01-26 Tom Tromey <tom@tromey.com>
15113
15114 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15115 read_dependencies. Add assert.
15116 * psymtab.c (partial_symtab::read_dependencies): New method.
15117 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15118 method.
15119 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15120 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15121 read_dependencies.
15122 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15123 Add assert.
15124
15125 2020-01-26 Tom Tromey <tom@tromey.com>
15126
15127 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15128 Call expand_psymtab.
15129 (xcoff_read_symtab): Call expand_psymtab.
15130 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15131 legacy_expand_psymtab.
15132 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15133 method.
15134 (struct legacy_psymtab) <expand_psymtab>: Implement.
15135 <legacy_expand_psymtab>: New member.
15136 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15137 (parse_partial_symbols): Set legacy_expand_psymtab.
15138 (psymtab_to_symtab_1): Change argument order. Call
15139 expand_psymtab.
15140 (new_psymtab): Set legacy_expand_psymtab.
15141 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15142 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15143 expand_psymtab.
15144 (dwarf2_psymtab::expand_psymtab): Rename from
15145 psymtab_to_symtab_1. Call expand_psymtab.
15146 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15147 (dbx_end_psymtab): Likewise.
15148 (dbx_psymtab_to_symtab_1): Change argument order. Call
15149 expand_psymtab.
15150 (dbx_read_symtab): Call expand_psymtab.
15151 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15152 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15153 (ctf_psymtab::read_symtab): Call expand_psymtab.
15154
15155 2020-01-26 Tom Tromey <tom@tromey.com>
15156
15157 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15158 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15159 messages.
15160 * mdebugread.c (mdebug_read_symtab): Remove prints.
15161 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15162 assert.
15163 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15164
15165 2020-01-26 Tom Tromey <tom@tromey.com>
15166
15167 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15168 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15169 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15170 legacy_symtab.
15171 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15172 * psymtab.c (psymtab_to_symtab): Call method.
15173 (dump_psymtab): Update.
15174 * psympriv.h (struct partial_symtab): Add virtual destructor.
15175 <read_symtab>: New method.
15176 (struct legacy_symtab): New.
15177 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15178 (struct pst_map) <pst>: Now a legacy_psymtab.
15179 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15180 (new_psymtab): Use legacy_psymtab.
15181 * dwarf2read.h (struct dwarf2_psymtab): New.
15182 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15183 * dwarf2read.c (dwarf2_create_include_psymtab)
15184 (dwarf2_build_include_psymtabs, create_type_unit_group)
15185 (create_partial_symtab, process_psymtab_comp_unit_reader)
15186 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15187 (set_partial_user): Use dwarf2_psymtab.
15188 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15189 (psymtab_to_symtab_1, process_full_comp_unit)
15190 (process_full_type_unit, dwarf2_ranges_read)
15191 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15192 (dwarf_decode_lines): Use dwarf2_psymtab.
15193 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15194 (add_address_entry_worker, write_one_signatured_type)
15195 (recursively_count_psymbols, recursively_write_psymbols)
15196 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15197 (write_debug_names): Likewise.
15198 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15199 <pst>: Now a legacy_psymtab.
15200 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15201 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15202 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15203 * ctfread.c (struct ctf_psymtab): New.
15204 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15205 ctf_psymtab.
15206 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15207 (create_partial_symtab): Return a ctf_psymtab.
15208 (scan_partial_symbols): Update.
15209
15210 2020-01-26 Tom Tromey <tom@tromey.com>
15211
15212 * xcoffread.c (xcoff_start_psymtab): Use new.
15213 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15214 renamed from start_psymtab_common.
15215 * psympriv.h (struct partial_symtab): Add new constructor.
15216 (start_psymtab_common): Don't declare.
15217 * mdebugread.c (parse_partial_symbols): Use new.
15218 * dwarf2read.c (create_partial_symtab): Use new.
15219 * dbxread.c (start_psymtab): Use new.
15220 * ctfread.c (create_partial_symtab): Use new.
15221
15222 2020-01-26 Tom Tromey <tom@tromey.com>
15223
15224 * xcoffread.c (xcoff_end_psymtab): Use new.
15225 * psymtab.c (start_psymtab_common): Use new.
15226 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15227 Update.
15228 * psympriv.h (struct partial_symtab): Add parameters to
15229 constructor. Don't inline.
15230 (allocate_psymtab): Don't declare.
15231 * mdebugread.c (new_psymtab): Use new.
15232 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15233 * dbxread.c (dbx_end_psymtab): Use new.
15234
15235 2020-01-26 Tom Tromey <tom@tromey.com>
15236
15237 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15238 allocate_psymtab. Update documentation.
15239 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15240 allocate_psymtab. Do not use new.
15241 (allocate_psymtab): Use new. Update.
15242
15243 2020-01-26 Tom Tromey <tom@tromey.com>
15244
15245 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15246 * psymtab.c (psym_print_stats): Update.
15247 * psympriv.h (struct partial_symtab) <readin,
15248 psymtabs_addrmap_supported, anonymous>: Now bool.
15249 * mdebugread.c (psymtab_to_symtab_1): Update.
15250 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15251 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15252 (process_full_comp_unit, process_full_type_unit): Update.
15253 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15254 * ctfread.c (psymtab_to_symtab): Update.
15255
15256 2020-01-26 Tom Tromey <tom@tromey.com>
15257
15258 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15259 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15260 * psymtab.c (psymtab_storage): Delete psymtabs.
15261 (psymtab_storage::allocate_psymtab): Use new.
15262 (psymtab_storage::discard_psymtab): Use delete.
15263 * psympriv.h (struct partial_symtab): Add constructor and
15264 initializers.
15265
15266 2020-01-26 Tom Tromey <tom@tromey.com>
15267
15268 * machoread.c: Do not include psympriv.h.
15269
15270 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15271
15272 * NEWS: Mention the new option and the set/show commands.
15273
15274 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15275
15276 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15277 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15278 (validate_exec_file): New variables, enums, functions.
15279 (exec_file_locate_attach, print_section_info): Style the filenames.
15280 (_initialize_exec): Install show_exec_file_mismatch_command and
15281 set_exec_file_mismatch_command.
15282 * gdbcore.h (validate_exec_file): Declare.
15283 * infcmd.c (attach_command): Call validate_exec_file.
15284 * remote.c ( remote_target::remote_add_inferior): Likewise.
15285
15286 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15287
15288 * frame.c (find_frame_sal): Move call to get_next_frame into more
15289 inner scope.
15290 * inline-frame.c (inilne_state) <inline_state>: Update argument
15291 types.
15292 (inilne_state) <skipped_symbol>: Rename to...
15293 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15294 (skip_inline_frames): Build vector of skipped symbols and use this
15295 to reate the inline_state.
15296 (inline_skipped_symbol): Add a comment and some assertions, fetch
15297 skipped symbol from the list.
15298
15299 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15300
15301 * buildsym.c (lte_is_less_than): Delete.
15302 (buildsym_compunit::end_symtab_with_blockvector): Create local
15303 lambda function to sort line table entries, and use
15304 std::stable_sort instead of std::sort.
15305 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15306 markers when looking for a previous line.
15307
15308 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15309
15310 * dwarf2read.c (lnp_state_machine::record_line): Include
15311 end_sequence parameter in debug print out. Record the line if we
15312 are at an end_sequence marker even if it's not the start of a
15313 statement.
15314 * symmisc.c (maintenance_print_one_line_table): Print end of
15315 sequence markers with 'END' not '0'.
15316
15317 2020-01-24 Pedro Alves <palves@redhat.com>
15318
15319 PR gdb/25410
15320 * thread.c (scoped_restore_current_thread::restore): Use
15321 switch_to_inferior_no_thread.
15322 * exec.c: Include "progspace-and-thread.h".
15323 (add_target_sections, remove_target_sections):
15324 scoped_restore_current_pspace_and_thread instead of
15325 scoped_restore_current_thread.
15326 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15327 and aspace to the inferior before calling clone_program_space.
15328 Remove stale comment.
15329
15330 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15331
15332 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15333 (arm_netbsd_nat_target::fetch_registers): ...this.
15334 (arm_nbsd_nat_target::store_registers): Rename to...
15335 (arm_netbsd_nat_target::store_registers): ...this.
15336
15337 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15338
15339 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15340 register_t.
15341
15342 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15343
15344 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15345 Update comment.
15346 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15347 Likewise.
15348 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15349 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15350 the correct replacement (iterate_over_regset_sections).
15351 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15352 Update comment.
15353
15354 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15355
15356 PR gdb/23718
15357 * gdb/python/python.c (execute_gdb_command): Call
15358 async_enable_stdin in catch block.
15359
15360 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15361
15362 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15363 SWITCH_THRU_ALL_UIS.
15364
15365 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15366
15367 PR tui/9765
15368 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15369 comment, add extra parameter, and update to store previous symbol
15370 when appropriate.
15371 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15372 add extra parameter.
15373 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15374 remove unneeded parameter, add try/catch around gdb_print_insn,
15375 rewrite to add items to asm_lines vector.
15376 (tui_find_backward_disassembly_start_address): New function.
15377 (tui_find_disassembly_address): Updated throughout.
15378 (tui_disasm_window::set_contents): Update for changes to
15379 tui_disassemble.
15380 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15381 number of lines to scroll.
15382
15383 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15384
15385 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15386 (SECT_OFF_DATA): Likewise.
15387 (SECT_OFF_RODATA): Likewise.
15388 (SECT_OFF_TEXT): Likewise.
15389 (SECT_OFF_BSS): Likewise.
15390 (struct objfile) <text_section_offset, data_section_offset>: New
15391 methods.
15392 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15393 objfile::text_section_offset.
15394 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15395 * coffread.c (coff_symtab_read): Likewise.
15396 (enter_linenos): Likewise.
15397 (process_coff_symbol): Likewise.
15398 * ctfread.c (get_objfile_text_range): Likewise.
15399 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15400 Use objfile::data_section_offset.
15401 * dwarf2-frame.c (execute_cfa_program): Use
15402 objfile::text_section_offset.
15403 (dwarf2_frame_find_fde): Likewise.
15404 * dwarf2read.c (create_addrmap_from_index): Likewise.
15405 (create_addrmap_from_aranges): Likewise.
15406 (dw2_find_pc_sect_compunit_symtab): Likewise.
15407 (process_psymtab_comp_unit_reader): Likewise.
15408 (add_partial_symbol): Likewise.
15409 (add_partial_subprogram): Likewise.
15410 (process_full_comp_unit): Likewise.
15411 (read_file_scope): Likewise.
15412 (read_func_scope): Likewise.
15413 (read_lexical_block_scope): Likewise.
15414 (read_call_site_scope): Likewise.
15415 (dwarf2_rnglists_process): Likewise.
15416 (dwarf2_ranges_process): Likewise.
15417 (dwarf2_ranges_read): Likewise.
15418 (dwarf_decode_lines_1): Likewise.
15419 (new_symbol): Likewise.
15420 (dwarf2_fetch_die_loc_sect_off): Likewise.
15421 (dwarf2_per_cu_text_offset): Likewise.
15422 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15423 * hppa-tdep.c (read_unwind_info): Likewise.
15424 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15425 * psympriv.h (struct partial_symtab): Likewise.
15426 * psymtab.c (find_pc_sect_psymtab): Likewise.
15427 * solib-svr4.c (enable_break): Likewise.
15428 * stap-probe.c (relocate_address): Use
15429 objfile::data_section_offset.
15430 * xcoffread.c (enter_line_range): Use
15431 objfile::text_section_offset.
15432 (read_xcoff_symtab): Likewise.
15433
15434 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15435
15436 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15437 declaration to narrower scopes.
15438
15439 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15440
15441 * darwin-nat.h (struct darwin_exception_msg, enum
15442 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15443 Move up.
15444 (class darwin_nat_target) <wait_1, check_new_threads,
15445 decode_exception_message, decode_message, stop_inferior,
15446 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15447 * darwin-nat.c (darwin_check_new_threads): Rename to...
15448 (darwin_nat_target::check_new_threads): ... this.
15449 (darwin_suspend_inferior_it): Remove.
15450 (darwin_decode_exception_message): Rename to...
15451 (darwin_nat_target::decode_exception_message): ... this.
15452 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15453 (darwin_decode_message): Rename to...
15454 (darwin_nat_target::decode_message): ... this.
15455 (cancel_breakpoint): Rename to...
15456 (darwin_nat_target::cancel_breakpoint): ... this.
15457 (darwin_wait): Rename to...
15458 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15459 instead of iterate_over_inferiors.
15460 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15461 (darwin_stop_inferior): Rename to...
15462 (darwin_nat_target::stop_inferior): ... this.
15463 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15464 (darwin_init_thread_list): Rename to...
15465 (darwin_nat_target::init_thread_list): ... this.
15466 (darwin_ptrace_him): Rename to...
15467 (darwin_nat_target::ptrace_him): ... this.
15468 (darwin_nat_target::create_inferior): Pass lambda function to
15469 fork_inferior.
15470 (darwin_nat_target::detach): Call stop_inferior instead of
15471 darwin_stop_inferior.
15472 * fork-inferior.h (fork_inferior): Change init_trace_fun
15473 parameter to gdb::function_view.
15474 * fork-inferior.c (fork_inferior): Likewise.
15475
15476 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15477
15478 * i386-cygwin-tdep.c (core_process_module_section): Update.
15479 * windows-nat.c (struct lm_info_windows): Add text_offset.
15480 (windows_xfer_shared_libraries): Update.
15481 * windows-tdep.c (windows_xfer_shared_library):
15482 Add text_offset_cached argument.
15483 * windows-tdep.h (windows_xfer_shared_library): Update.
15484
15485 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15486
15487 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15488
15489 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15490
15491 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15492 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15493 replace with range-based for.
15494 (gdbsim_interrupt_inferior): Remove.
15495 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15496 with a range-based for. Inline code from
15497 gdbsim_interrupt_inferior.
15498
15499 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15500
15501 * infrun.c (proceed): Fix indentation.
15502
15503 2020-01-21 Tom Tromey <tromey@adacore.com>
15504
15505 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15506 * python/python.c (python_extension_ops): Update.
15507 (gdbpy_colorize): New function.
15508 * python/lib/gdb/__init__.py (colorize): New function.
15509 * extension.h (ext_lang_colorize): Declare.
15510 * extension.c (ext_lang_colorize): New function.
15511 * extension-priv.h (struct extension_language_ops) <colorize>: New
15512 member.
15513 * cli/cli-style.c (_initialize_cli_style): Update help text.
15514
15515 2020-01-21 Luis Machado <luis.machado@linaro.org>
15516
15517 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15518 <cond>: Change type to bool.
15519 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15520 (aarch64_displaced_step_cb): Likewise.
15521 (aarch64_displaced_step_tb): Likewise.
15522
15523 2020-01-21 Luis Machado <luis.machado@linaro.org>
15524
15525 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15526 output.
15527
15528 2020-01-21 Luis Machado <luis.machado@linaro.org>
15529
15530 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15531 <pc_adjust>: Adjust the documentation.
15532 (aarch64_displaced_step_fixup): Check if PC really moved before
15533 adjusting it.
15534
15535 2020-01-19 Tom Tromey <tom@tromey.com>
15536
15537 * disasm.c (~gdb_disassembler): New destructor.
15538 (gdb_buffered_insn_length): Call disassemble_free_target.
15539 * disasm.h (class gdb_disassembler): Declare destructor. Use
15540 DISABLE_COPY_AND_ASSIGN.
15541
15542 2020-01-19 Tom Tromey <tom@tromey.com>
15543
15544 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15545 (die_reader_func_ftype): Remove.
15546 (cutu_reader): New class.
15547 (dw2_get_file_names_reader): Remove "data" parameter.
15548 (dw2_get_file_names): Use cutu_reader.
15549 (create_debug_type_hash_table): Update.
15550 (read_cutu_die_from_dwo): Update comment.
15551 (lookup_dwo_unit): Add dwo_name parameter.
15552 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15553 die_reader_func_ftype and data parameters.
15554 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15555 Remove die_reader_func_ftype and data parameters.
15556 (~cutu_reader): New; from init_cutu_and_read_dies.
15557 (cutu_reader::cutu_reader): Rename from
15558 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15559 and data parameters.
15560 (init_cutu_and_read_dies_simple): Remove.
15561 (struct process_psymtab_comp_unit_data): Remove.
15562 (process_psymtab_comp_unit_reader): Remove data parameter; add
15563 want_partial_unit and pretend_language parameters.
15564 (process_psymtab_comp_unit): Use cutu_reader.
15565 (build_type_psymtabs_reader): Remove data parameter.
15566 (build_type_psymtabs_1): Use cutu_reader.
15567 (process_skeletonless_type_unit): Likewise.
15568 (load_partial_comp_unit_reader): Remove.
15569 (load_partial_comp_unit): Use cutu_reader.
15570 (load_full_comp_unit_reader): Remove.
15571 (load_full_comp_unit): Use cutu_reader.
15572 (struct create_dwo_cu_data): Remove.
15573 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15574 dwo_unit parameters.
15575 (create_cus_hash_table): Use cutu_reader.
15576 (struct dwarf2_read_addr_index_data): Remove.
15577 (dwarf2_read_addr_index_reader): Remove.
15578 (dwarf2_read_addr_index): Use cutu_reader.
15579 (read_signatured_type_reader): Remove.
15580 (read_signatured_type): Use cutu_reader.
15581
15582 2020-01-19 Tom Tromey <tom@tromey.com>
15583
15584 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15585 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15586 (tui_wrefresh): Declare.
15587 * tui/tui-wingeneral.c (suppress_output): New global.
15588 (tui_suppress_output, ~tui_suppress_output): New constructor and
15589 destructor.
15590 (tui_wrefresh): New function.
15591 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15592 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15593 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15594 method.
15595 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15596 tui_wrefresh.
15597 (tui_data_window::no_refresh): New method.
15598 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15599 (tui_reg_command): Use tui_suppress_output
15600 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15601 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15602 method.
15603 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15604
15605 2020-01-19 Tom Tromey <tom@tromey.com>
15606
15607 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15608 Handle case where symtab is null.
15609
15610 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15611
15612 * linux-fork.c (one_fork_p): Simplify.
15613
15614 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15615
15616 * top.c (struct qt_args): Remove.
15617 (kill_or_detach): Change return type to void, replace `void *`
15618 parameter with a proper one.
15619 (print_inferior_quit_action): Likewise.
15620 (quit_confirm): Use range-based for loop to iterate over inferiors.
15621 (quit_force): Likewise.
15622
15623 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15624
15625 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15626 `void *` parameter with proper parameters.
15627 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15628 (print_one_inferior): Change return type to void, replace `void *`
15629 parameter with proper parameters.
15630 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15631 inferiors.
15632 (get_other_inferior): Remove.
15633 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15634 inferiors.
15635
15636 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15637
15638 * mi/mi-interp.c (report_initial_inferior): Remove.
15639 (mi_interp::init): Use range-based for to iterate over inferiors.
15640
15641 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15642
15643 * python/py-inferior.c (build_inferior_list): Remove.
15644 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15645
15646 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15647
15648 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15649 (btrace_stitch_trace): Likewise.
15650 * charset.c (intermediate_encoding): Likewise (vaild).
15651 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15652 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15653 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15654
15655 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15656
15657 * windows-tdep.c (windows_get_tlb_type):
15658 Add rtl_user_process_parameters type.
15659
15660 2020-01-16 Pedro Alves <palves@redhat.com>
15661 Norbert Lange <nolange79@gmail.com>
15662
15663 PR build/24805
15664 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15665 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15666 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15667 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15668 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15669 (ps_plog): Redeclare exported functions with default visibility.
15670
15671 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15672
15673 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15674 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15675
15676 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15677
15678 * infcmd.c (post_create_inferior): Use get_thread_regcache
15679 instead of get_current_regcache.
15680
15681 2020-01-14 Tom Tromey <tom@tromey.com>
15682
15683 PR symtab/12535:
15684 * python/python.c (gdbpy_decode_line): Treat empty string the same
15685 as no argument.
15686
15687 2020-01-14 Tom Tromey <tom@tromey.com>
15688
15689 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15690
15691 2020-01-14 Tom Tromey <tom@tromey.com>
15692
15693 * nat/linux-btrace.c: Don't include <config.h>.
15694 * nat/linux-ptrace.c: Don't include <config.h>.
15695 * nat/x86-linux-dregs.c: Don't include <config.h>.
15696
15697 2020-01-14 Tom Tromey <tom@tromey.com>
15698
15699 * configure: Rebuild.
15700 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15701
15702 2020-01-14 Tom Tromey <tom@tromey.com>
15703
15704 * nat/x86-linux-dregs.c: Include configh.h.
15705 * nat/linux-ptrace.c: Include configh.h.
15706 * nat/linux-btrace.c: Include configh.h.
15707 * defs.h: Include config.h, bfd.h.
15708 * configure.ac: Don't source common.host.
15709 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15710 * configure: Rebuild.
15711 * acinclude.m4: Update path.
15712 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15713 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15714 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15715 (CLIBS): Add LIBSUPPORT.
15716 (CDEPS): Likewise.
15717 (COMMON_SFILES): Remove gdbsupport files.
15718 (HFILES_NO_SRCDIR): Likewise.
15719 (stamp-version): Update path to create-version.sh.
15720 (ALLDEPFILES): Remove gdbsupport files.
15721
15722 2020-01-14 Tom Tromey <tom@tromey.com>
15723
15724 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15725 USE_WIN32API when needed.
15726 * configure.ac (USE_WIN32API): Don't define.
15727 (WIN32LIBS): Use WIN32APILIBS.
15728 * configure: Rebuild.
15729
15730 2020-01-14 Tom Tromey <tom@tromey.com>
15731
15732 * configure: Rebuild.
15733 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15734
15735 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15736
15737 * skip.c (skip_function_command): Make skip w/o arguments use the
15738 name of the inlined function if pc is inside any inlined function.
15739
15740 2020-01-14 Luis Machado <luis.machado@linaro.org>
15741
15742 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15743 * infrun.c (resume_1): Likewise.
15744 (handle_inferior_event): Remove stale comment.
15745 * linux-nat.c (linux_nat_target::resume): Update comments.
15746 (save_stop_reason): Likewise.
15747 (linux_nat_filter_event): Likewise.
15748 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15749
15750 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15751
15752 * elfread.c (record_minimal_symbol): Set section index to 0 for
15753 non-allocatable sections.
15754
15755
15756 2020-01-13 Ali Tamur <tamur@google.com>
15757
15758 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15759 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15760 to gdb::optional. Update comments.
15761 (dwo_file): Update comments.
15762 (read_attribute): Update API to take an additional out parameter,
15763 need_reprocess. This is used to mark attributes that need other
15764 attributes (e.g. str_offsets_base) for correct computation which may not
15765 have been read yet.
15766 (read_attribute_reprocess): New function declaration.
15767 (read_addr_index): Likewise.
15768 (read_dwo_str_index): Likewise.
15769 (read_stub_str_index): Likewise.
15770 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15771 (lookup_addr_base): New function definition.
15772 (lookup_ranges_base): Likewise.
15773 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15774 lookup_ranges_base.
15775 (init_cutu_and_read_dies): Update comments.
15776 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15777 unit. This is used to inherit parent's str_offsets_base and addr_base.
15778 Update comments.
15779 (init_cutu_and_read_dies_simple): Reflect API changes.
15780 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15781 (create_cus_hash_table): Change API to take parent compile unit.
15782 Reflect API changes.
15783 (open_and_init_dwo_file): Reflect API changes.
15784 (dwarf2_get_pc_bounds): Update comments.
15785 (dwarf2_record_block_ranges): Likewise.
15786 (read_full_die_1): Change implementation to reprocess attributes that
15787 need str_offsets_base and addr_base.
15788 (partial_die_info::read): Likewise.
15789 (read_attribute_reprocess): New function definition.
15790 (read_attribute_value): Change API to take an additional out parameter,
15791 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15792 when a non-dwo compile unit has index based attributes.
15793 (read_attribute): Reflect API changes.
15794 (read_addr_index_1): Reflect API changes. Update comments.
15795 (dwarf2_read_addr_index_data): Reflect API changes.
15796 (dwarf2_read_addr_index): Likewise.
15797 (read_str_index): Change API and implementation. This becomes a helper
15798 to be used by the new string index related methods. Update error
15799 message and comments.
15800 (read_dwo_str_index): New function definition.
15801 (read_stub_str_index): Likewise.
15802 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15803 * symfile.h (dwarf2_debug_sections): Likewise.
15804 * xcoffread.c (dwarf2_debug_sections): Likewise.
15805
15806 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15807
15808 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15809 core_reg_sect type to gdb_byte *.
15810 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15811 * cris-tdep.c (fetch_core_registers): Likewise.
15812 * corelow.c (core_target::get_core_register_section): Change
15813 type of `contents` to gdb::byte_vector.
15814
15815 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15816
15817 * tui/tui-wingeneral.c (box_win): Position the title in the center
15818 of the border.
15819
15820 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15821
15822 * corelow.c (core_target::get_core_register_section): Use
15823 std::vector instead of alloca.
15824
15825 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15826
15827 * warning.m4: Add -Wmissing-declarations to build_warnings.
15828 * configure: Re-generate.
15829
15830 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * python/python.c (init__gdb_module): Add declaration.
15833
15834 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15835
15836 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15837 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15838 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15839 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15840 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15841 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15842 * ada-exp.y (_initialize_ada_exp): Add declaration.
15843 * ada-lang.c (_initialize_ada_language): Add declaration.
15844 * ada-tasks.c (_initialize_tasks): Add declaration.
15845 * agent.c (_initialize_agent): Add declaration.
15846 * aix-thread.c (_initialize_aix_thread): Add declaration.
15847 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15848 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15849 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15850 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15851 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15852 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15853 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15854 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15855 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15856 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15857 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15858 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15859 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15860 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15861 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15862 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15863 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15864 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15865 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15866 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15867 * annotate.c (_initialize_annotate): Add declaration.
15868 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15869 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15870 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15871 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15872 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15873 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15874 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15875 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15876 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15877 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15878 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15879 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15880 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15881 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15882 * auto-load.c (_initialize_auto_load): Add declaration.
15883 * auxv.c (_initialize_auxv): Add declaration.
15884 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15885 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15886 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15887 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15888 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15889 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15890 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15891 * breakpoint.c (_initialize_breakpoint): Add declaration.
15892 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15893 * btrace.c (_initialize_btrace): Add declaration.
15894 * charset.c (_initialize_charset): Add declaration.
15895 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15896 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15897 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15898 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15899 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15900 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15901 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15902 * coffread.c (_initialize_coffread): Add declaration.
15903 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15904 * compile/compile.c (_initialize_compile): Add declaration.
15905 * complaints.c (_initialize_complaints): Add declaration.
15906 * completer.c (_initialize_completer): Add declaration.
15907 * copying.c (_initialize_copying): Add declaration.
15908 * corefile.c (_initialize_core): Add declaration.
15909 * corelow.c (_initialize_corelow): Add declaration.
15910 * cp-abi.c (_initialize_cp_abi): Add declaration.
15911 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15912 * cp-support.c (_initialize_cp_support): Add declaration.
15913 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15914 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15915 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15916 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15917 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15918 * ctfread.c (_initialize_ctfread): Add declaration.
15919 * d-lang.c (_initialize_d_language): Add declaration.
15920 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15921 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15922 * dbxread.c (_initialize_dbxread): Add declaration.
15923 * dcache.c (_initialize_dcache): Add declaration.
15924 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15925 * disasm.c (_initialize_disasm): Add declaration.
15926 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15927 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15928 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15929 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15930 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15931 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15932 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15933 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15934 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15935 * elfread.c (_initialize_elfread): Add declaration.
15936 * exec.c (_initialize_exec): Add declaration.
15937 * extension.c (_initialize_extension): Add declaration.
15938 * f-lang.c (_initialize_f_language): Add declaration.
15939 * f-valprint.c (_initialize_f_valprint): Add declaration.
15940 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15941 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15942 * filesystem.c (_initialize_filesystem): Add declaration.
15943 * findcmd.c (_initialize_mem_search): Add declaration.
15944 * findvar.c (_initialize_findvar): Add declaration.
15945 * fork-child.c (_initialize_fork_child): Add declaration.
15946 * frame-base.c (_initialize_frame_base): Add declaration.
15947 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15948 * frame.c (_initialize_frame): Add declaration.
15949 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15950 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15951 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15952 * gcore.c (_initialize_gcore): Add declaration.
15953 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15954 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15955 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15956 * gdbarch.c (_initialize_gdbarch): Add declaration.
15957 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15958 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15959 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15960 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15961 * go-lang.c (_initialize_go_language): Add declaration.
15962 * go32-nat.c (_initialize_go32_nat): Add declaration.
15963 * guile/guile.c (_initialize_guile): Add declaration.
15964 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15965 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15966 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15967 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15968 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15969 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15970 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15971 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15972 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15973 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15974 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15975 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15976 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15977 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15978 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15979 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15980 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15981 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15982 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15983 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15984 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15985 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15986 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15987 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15988 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15989 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15990 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15991 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15992 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15993 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15994 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15995 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15996 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15997 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15998 * infcall.c (_initialize_infcall): Add declaration.
15999 * infcmd.c (_initialize_infcmd): Add declaration.
16000 * inflow.c (_initialize_inflow): Add declaration.
16001 * infrun.c (_initialize_infrun): Add declaration.
16002 * interps.c (_initialize_interpreter): Add declaration.
16003 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16004 * jit.c (_initialize_jit): Add declaration.
16005 * language.c (_initialize_language): Add declaration.
16006 * linux-fork.c (_initialize_linux_fork): Add declaration.
16007 * linux-nat.c (_initialize_linux_nat): Add declaration.
16008 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16009 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16010 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16011 * m2-lang.c (_initialize_m2_language): Add declaration.
16012 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16013 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16014 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16015 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16016 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16017 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16018 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16019 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16020 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16021 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16022 * machoread.c (_initialize_machoread): Add declaration.
16023 * macrocmd.c (_initialize_macrocmd): Add declaration.
16024 * macroscope.c (_initialize_macroscope): Add declaration.
16025 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16026 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16027 * maint.c (_initialize_maint_cmds): Add declaration.
16028 * mdebugread.c (_initialize_mdebugread): Add declaration.
16029 * memattr.c (_initialize_mem): Add declaration.
16030 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16031 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16032 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16033 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16034 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16035 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16036 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16037 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16038 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16039 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16040 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16041 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16042 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16043 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16044 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16045 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16046 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16047 * mipsread.c (_initialize_mipsread): Add declaration.
16048 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16049 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16050 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16051 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16052 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16053 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16054 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16055 * nto-procfs.c (_initialize_procfs): Add declaration.
16056 * objc-lang.c (_initialize_objc_language): Add declaration.
16057 * observable.c (_initialize_observer): Add declaration.
16058 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16059 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16060 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16061 * osabi.c (_initialize_gdb_osabi): Add declaration.
16062 * osdata.c (_initialize_osdata): Add declaration.
16063 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16064 * parse.c (_initialize_parse): Add declaration.
16065 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16066 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16067 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16068 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16069 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16070 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16071 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16072 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16073 * printcmd.c (_initialize_printcmd): Add declaration.
16074 * probe.c (_initialize_probe): Add declaration.
16075 * proc-api.c (_initialize_proc_api): Add declaration.
16076 * proc-events.c (_initialize_proc_events): Add declaration.
16077 * proc-service.c (_initialize_proc_service): Add declaration.
16078 * procfs.c (_initialize_procfs): Add declaration.
16079 * producer.c (_initialize_producer): Add declaration.
16080 * psymtab.c (_initialize_psymtab): Add declaration.
16081 * python/python.c (_initialize_python): Add declaration.
16082 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16083 * record-btrace.c (_initialize_record_btrace): Add declaration.
16084 * record-full.c (_initialize_record_full): Add declaration.
16085 * record.c (_initialize_record): Add declaration.
16086 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16087 * regcache.c (_initialize_regcache): Add declaration.
16088 * reggroups.c (_initialize_reggroup): Add declaration.
16089 * remote-notif.c (_initialize_notif): Add declaration.
16090 * remote-sim.c (_initialize_remote_sim): Add declaration.
16091 * remote.c (_initialize_remote): Add declaration.
16092 * reverse.c (_initialize_reverse): Add declaration.
16093 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16094 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16095 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16096 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16097 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16098 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16099 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16100 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16101 Add declaration.
16102 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16103 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16104 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16105 * rust-exp.y (_initialize_rust_exp): Add declaration.
16106 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16107 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16108 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16109 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16110 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16111 * score-tdep.c (_initialize_score_tdep): Add declaration.
16112 * ser-go32.c (_initialize_ser_dos): Add declaration.
16113 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16114 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16115 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16116 * ser-uds.c (_initialize_ser_socket): Add declaration.
16117 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16118 * serial.c (_initialize_serial): Add declaration.
16119 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16120 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16121 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16122 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16123 * skip.c (_initialize_step_skip): Add declaration.
16124 * sol-thread.c (_initialize_sol_thread): Add declaration.
16125 * solib-aix.c (_initialize_solib_aix): Add declaration.
16126 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16127 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16128 * solib-frv.c (_initialize_frv_solib): Add declaration.
16129 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16130 * solib-target.c (_initialize_solib_target): Add declaration.
16131 * solib.c (_initialize_solib): Add declaration.
16132 * source-cache.c (_initialize_source_cache): Add declaration.
16133 * source.c (_initialize_source): Add declaration.
16134 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16135 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16136 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16137 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16138 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16139 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16140 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16141 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16142 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16143 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16144 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16145 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16146 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16147 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16148 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16149 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16150 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16151 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16152 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16153 * stabsread.c (_initialize_stabsread): Add declaration.
16154 * stack.c (_initialize_stack): Add declaration.
16155 * stap-probe.c (_initialize_stap_probe): Add declaration.
16156 * std-regs.c (_initialize_frame_reg): Add declaration.
16157 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16158 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16159 * symfile.c (_initialize_symfile): Add declaration.
16160 * symmisc.c (_initialize_symmisc): Add declaration.
16161 * symtab.c (_initialize_symtab): Add declaration.
16162 * target.c (_initialize_target): Add declaration.
16163 * target-connection.c (_initialize_target_connection): Add
16164 declaration.
16165 * target-dcache.c (_initialize_target_dcache): Add declaration.
16166 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16167 * thread.c (_initialize_thread): Add declaration.
16168 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16169 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16170 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16171 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16172 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16173 * tracectf.c (_initialize_ctf): Add declaration.
16174 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16175 * tracefile.c (_initialize_tracefile): Add declaration.
16176 * tracepoint.c (_initialize_tracepoint): Add declaration.
16177 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16178 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16179 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16180 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16181 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16182 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16183 * tui/tui.c (_initialize_tui): Add declaration.
16184 * typeprint.c (_initialize_typeprint): Add declaration.
16185 * ui-style.c (_initialize_ui_style): Add declaration.
16186 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16187 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16188 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16189 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16190 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16191 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16192 * unittests/filtered_iterator-selftests.c
16193 (_initialize_filtered_iterator_selftests): Add declaration.
16194 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16195 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16196 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16197 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16198 * unittests/main-thread-selftests.c
16199 (_initialize_main_thread_selftests): Add declaration.
16200 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16201 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16202 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16203 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16204 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16205 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16206 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16207 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16208 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16209 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16210 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16211 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16212 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16213 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16214 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16215 declaration.
16216 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16217 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16218 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16219 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16220 * user-regs.c (_initialize_user_regs): Add declaration.
16221 * utils.c (_initialize_utils): Add declaration.
16222 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16223 * valops.c (_initialize_valops): Add declaration.
16224 * valprint.c (_initialize_valprint): Add declaration.
16225 * value.c (_initialize_values): Add declaration.
16226 * varobj.c (_initialize_varobj): Add declaration.
16227 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16228 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16229 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16230 * windows-nat.c (_initialize_windows_nat): Add declaration.
16231 (_initialize_check_for_gdb_ini): Add declaration.
16232 (_initialize_loadable): Add declaration.
16233 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16234 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16235 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16236 * xcoffread.c (_initialize_xcoffread): Add declaration.
16237 * xml-support.c (_initialize_xml_support): Add declaration.
16238 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16239 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16240 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16241 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16242
16243 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16244
16245 * regformats/regdat.sh: Generate declaration for init function.
16246
16247 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16248
16249 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16250 up.
16251 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16252 close_one_inferior>: New methods.
16253 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16254 pass down target to find_inferior_pid.
16255 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16256 Pass down target to find_inferior_ptid.
16257 (gdbsim_target::create_inferior): Pass down target to
16258 add_thread_silent.
16259 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16260 target down to find_inferior_ptid and switch_to_thread.
16261 (gdbsim_target::close): Update to call close_one_inferior.
16262 (struct resume_data): Remove.
16263 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16264 directly, rather than through a void pointer.
16265 (gdbsim_target::resume): Update to call resume_one_inferior.
16266
16267 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16268
16269 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16270
16271 2020-01-12 Pedro Alves <palves@redhat.com>
16272
16273 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16274 directly for the current inferior instead of
16275 discard_all_inferiors.
16276 (discard_all_inferiors): Delete.
16277
16278 2020-01-11 Tom Tromey <tom@tromey.com>
16279
16280 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16281 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16282 deprecated_safe_get_selected_frame.
16283
16284 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16285
16286 * inferior.c (print_inferior): Switch inferior before printing it.
16287
16288 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16289 Pedro Alves <palves@redhat.com>
16290
16291 * progspace-and-thread.c (switch_to_program_space_and_thread):
16292 Assert there's an inferior for PSPACE. Use
16293 switch_to_inferior_no_thread to switch the inferior too.
16294 * progspace.c (program_space::~program_space): Call
16295 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16296 (program_space::free_all_objfiles): Don't call clear_symtab_users
16297 here.
16298 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16299
16300 2020-01-10 Pedro Alves <palves@redhat.com>
16301
16302 * NEWS: Mention multi-target debugging, "info connections", and
16303 "add-inferior -no-connection".
16304
16305 2020-01-10 Pedro Alves <palves@redhat.com>
16306
16307 * infrun.c: Include "target-connection.h".
16308 (check_multi_target_resumption): New.
16309 (proceed): Call it.
16310 * target-connection.c (make_target_connection_string): Make
16311 extern.
16312 * target-connection.h (make_target_connection_string): Declare.
16313
16314 2020-01-10 Pedro Alves <palves@redhat.com>
16315
16316 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16317 * inferior.c (uiout_field_connection): New function.
16318 (print_inferior): Add new "connection-id" column.
16319 (add_inferior_command): Show connection number/string of added
16320 inferior.
16321 * process-stratum-target.h
16322 (process_stratum_target::connection_string): New virtual method.
16323 (process_stratum_target::connection_number): New field.
16324 * remote.c (remote_target::connection_string): New override.
16325 * target-connection.c: New file.
16326 * target-connection.h: New file.
16327 * target.c (decref_target): Remove process_stratum targets from
16328 the connection list.
16329 (target_stack::push): Add process_stratum targets to the
16330 connection list.
16331
16332 2020-01-10 Pedro Alves <palves@redhat.com>
16333
16334 Revert:
16335 2016-04-12 Pedro Alves <palves@redhat.com>
16336 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16337 Remove references to name.
16338 * serial.h (struct serial) <name>: Delete.
16339
16340 2020-01-10 Pedro Alves <palves@redhat.com>
16341
16342 * gdbarch-selftests.c (register_to_value_test): Remove "target
16343 already pushed" check.
16344
16345 2020-01-10 Pedro Alves <palves@redhat.com>
16346 John Baldwin <jhb@FreeBSD.org>
16347
16348 * aarch64-linux-nat.c
16349 (aarch64_linux_nat_target::thread_architecture): Adjust.
16350 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16351 (task_command_1): Likewise.
16352 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16353 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16354 (aix_thread_target::store_registers)
16355 (aix_thread_target::thread_alive): Adjust.
16356 * amd64-fbsd-tdep.c: Include "inferior.h".
16357 (amd64fbsd_get_thread_local_address): Pass down target.
16358 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16359 thread's gdbarch instead of target_gdbarch.
16360 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16361 get_last_target_status.
16362 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16363 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16364 inferiors.
16365 (update_inserted_breakpoint_locations): Skip if inferiors with no
16366 execution.
16367 (update_global_location_list): When handling moribund locations,
16368 find representative inferior for location's pspace, and use thread
16369 count of its process_stratum target.
16370 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16371 * bsd-uthread.c (bsd_uthread_target::wait): Use
16372 as_process_stratum_target and adjust thread_change_ptid and
16373 add_thread calls.
16374 (bsd_uthread_target::update_thread_list): Use
16375 as_process_stratum_target and adjust find_thread_ptid,
16376 thread_change_ptid and add_thread calls.
16377 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16378 find_thread_ptid call.
16379 * corelow.c (add_to_thread_list): Adjust add_thread call.
16380 (core_target_open): Adjust add_thread_silent and thread_count
16381 calls.
16382 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16383 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16384 * event-top.c (async_disconnect): Pop targets from all inferiors.
16385 * exec.c (add_target_sections): Push exec target on all inferiors
16386 sharing the program space.
16387 (remove_target_sections): Remove the exec target from all
16388 inferiors sharing the program space.
16389 (exec_on_vfork): New.
16390 * exec.h (exec_on_vfork): Declare.
16391 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16392 Pass it down.
16393 (fbsd_nat_target::update_thread_list): Adjust.
16394 (fbsd_nat_target::resume): Adjust.
16395 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16396 down.
16397 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16398 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16399 get_thread_arch_regcache call.
16400 * fork-child.c (gdb_startup_inferior): Pass target down to
16401 startup_inferior and set_executing.
16402 * gdbthread.h (struct process_stratum_target): Forward declare.
16403 (add_thread, add_thread_silent, add_thread_with_info)
16404 (in_thread_list): Add process_stratum_target parameter.
16405 (find_thread_ptid(inferior*, ptid_t)): New overload.
16406 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16407 parameter.
16408 (all_threads()): Delete overload.
16409 (all_threads, all_non_exited_threads): Add process_stratum_target
16410 parameter.
16411 (all_threads_safe): Use brace initialization.
16412 (thread_count): Add process_stratum_target parameter.
16413 (set_resumed, set_running, set_stop_requested, set_executing)
16414 (threads_are_executing, finish_thread_state): Add
16415 process_stratum_target parameter.
16416 (switch_to_thread): Use is_current_thread.
16417 * i386-fbsd-tdep.c: Include "inferior.h".
16418 (i386fbsd_get_thread_local_address): Pass down target.
16419 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16420 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16421 have_inferiors check.
16422 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16423 (inf_ptrace_target::attach): Adjust.
16424 * infcall.c (run_inferior_call): Adjust.
16425 * infcmd.c (run_command_1): Pass target to
16426 scoped_finish_thread_state.
16427 (proceed_thread_callback): Skip inferiors with no execution.
16428 (continue_command): Rename 'all_threads' local to avoid hiding
16429 'all_threads' function. Adjust get_last_target_status call.
16430 (prepare_one_step): Adjust set_running call.
16431 (signal_command): Use user_visible_resume_target. Compare thread
16432 pointers instead of inferior_ptid.
16433 (info_program_command): Adjust to pass down target.
16434 (attach_command): Mark target's 'thread_executing' flag.
16435 (stop_current_target_threads_ns): New, factored out from ...
16436 (interrupt_target_1): ... this. Switch inferior before making
16437 target calls.
16438 * inferior-iter.h
16439 (struct all_inferiors_iterator, struct all_inferiors_range)
16440 (struct all_inferiors_safe_range)
16441 (struct all_non_exited_inferiors_range): Filter on
16442 process_stratum_target too. Remove explicit.
16443 * inferior.c (inferior::inferior): Push dummy target on target
16444 stack.
16445 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16446 Add process_stratum_target parameter, and pass it down.
16447 (have_live_inferiors): Adjust.
16448 (switch_to_inferior_and_push_target): New.
16449 (add_inferior_command, clone_inferior_command): Handle
16450 "-no-connection" parameter. Use
16451 switch_to_inferior_and_push_target.
16452 (_initialize_inferior): Mention "-no-connection" option in
16453 the help of "add-inferior" and "clone-inferior" commands.
16454 * inferior.h: Include "process-stratum-target.h".
16455 (interrupt_target_1): Use bool.
16456 (struct inferior) <push_target, unpush_target, target_is_pushed,
16457 find_target_beneath, top_target, process_target, target_at,
16458 m_stack>: New.
16459 (discard_all_inferiors): Delete.
16460 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16461 (all_inferiors, all_non_exited_inferiors): Add
16462 process_stratum_target parameter.
16463 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16464 (target_last_proc_target): New global.
16465 (follow_fork_inferior): Push target on new inferior. Pass target
16466 to add_thread_silent. Call exec_on_vfork. Handle target's
16467 reference count.
16468 (follow_fork): Adjust get_last_target_status call. Also consider
16469 target.
16470 (follow_exec): Push target on new inferior.
16471 (struct execution_control_state) <target>: New field.
16472 (user_visible_resume_target): New.
16473 (do_target_resume): Call target_async.
16474 (resume_1): Set target's threads_executing flag. Consider resume
16475 target.
16476 (commit_resume_all_targets): New.
16477 (proceed): Also consider resume target. Skip threads of inferiors
16478 with no execution. Commit resumtion in all targets.
16479 (start_remote): Pass current inferior to wait_for_inferior.
16480 (infrun_thread_stop_requested): Consider target as well. Pass
16481 thread_info pointer to clear_inline_frame_state instead of ptid.
16482 (infrun_thread_thread_exit): Consider target as well.
16483 (random_pending_event_thread): New inferior parameter. Use it.
16484 (do_target_wait): Rename to ...
16485 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16486 down.
16487 (threads_are_resumed_pending_p, do_target_wait): New.
16488 (prepare_for_detach): Adjust calls.
16489 (wait_for_inferior): New inferior parameter. Handle it. Use
16490 do_target_wait_1 instead of do_target_wait.
16491 (fetch_inferior_event): Adjust. Switch to representative
16492 inferior. Pass target down.
16493 (set_last_target_status): Add process_stratum_target parameter.
16494 Save target in global.
16495 (get_last_target_status): Add process_stratum_target parameter and
16496 handle it.
16497 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16498 (context_switch): Check inferior_ptid == null_ptid before calling
16499 inferior_thread().
16500 (get_inferior_stop_soon): Pass down target.
16501 (wait_one): Rename to ...
16502 (poll_one_curr_target): ... this.
16503 (struct wait_one_event): New.
16504 (wait_one): New.
16505 (stop_all_threads): Adjust.
16506 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16507 event's target.
16508 (switch_back_to_stepped_thread): Also consider target.
16509 (print_stop_event): Update.
16510 (normal_stop): Update. Also consider the resume target.
16511 * infrun.h (wait_for_inferior): Remove declaration.
16512 (user_visible_resume_target): New declaration.
16513 (get_last_target_status, set_last_target_status): New
16514 process_stratum_target parameter.
16515 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16516 process_stratum_target parameter, and use it.
16517 (clear_inline_frame_state (thread_info*)): New.
16518 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16519 process_stratum_target parameter.
16520 (clear_inline_frame_state (thread_info*)): Declare.
16521 * linux-fork.c (delete_checkpoint_command): Pass target down to
16522 find_thread_ptid.
16523 (checkpoint_command): Adjust.
16524 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16525 instead of just tweaking inferior_ptid.
16526 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16527 (exit_lwp): Pass target down to find_thread_ptid.
16528 (attach_proc_task_lwp_callback): Pass target down to
16529 add_thread/set_running/set_executing.
16530 (linux_nat_target::attach): Pass target down to
16531 thread_change_ptid.
16532 (get_detach_signal): Pass target down to find_thread_ptid.
16533 Consider last target status's target.
16534 (linux_resume_one_lwp_throw, resume_lwp)
16535 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16536 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16537 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16538 (linux_nat_target::async_wait_fd): New.
16539 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16540 target down.
16541 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16542 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16543 * linux-thread-db.c (struct thread_db_info::process_target): New
16544 field.
16545 (add_thread_db_info): Save target.
16546 (get_thread_db_info): New process_stratum_target parameter. Also
16547 match target.
16548 (delete_thread_db_info): New process_stratum_target parameter.
16549 Also match target.
16550 (thread_from_lwp): Adjust to pass down target.
16551 (thread_db_notice_clone): Pass down target.
16552 (check_thread_db_callback): Pass down target.
16553 (try_thread_db_load_1): Always push the thread_db target.
16554 (try_thread_db_load, record_thread): Pass target down.
16555 (thread_db_target::detach): Pass target down. Always unpush the
16556 thread_db target.
16557 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16558 target down. Always unpush the thread_db target.
16559 (find_new_threads_callback, thread_db_find_new_threads_2)
16560 (thread_db_target::update_thread_list): Pass target down.
16561 (thread_db_target::pid_to_str): Pass current inferior down.
16562 (thread_db_target::get_thread_local_address): Pass target down.
16563 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16564 target down.
16565 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16566 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16567 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16568 (procfs_init_inferior): Rename to ...
16569 (procfs_target::procfs_init_inferior): ... this and adjust.
16570 (procfs_target::create_inferior, procfs_notice_thread)
16571 (procfs_do_thread_registers): Adjust.
16572 * ppc-fbsd-tdep.c: Include "inferior.h".
16573 (ppcfbsd_get_thread_local_address): Pass down target.
16574 * proc-service.c (ps_xfer_memory): Switch current inferior and
16575 program space as well.
16576 (get_ps_regcache): Pass target down.
16577 * process-stratum-target.c
16578 (process_stratum_target::thread_address_space)
16579 (process_stratum_target::thread_architecture): Pass target down.
16580 * process-stratum-target.h
16581 (process_stratum_target::threads_executing): New field.
16582 (as_process_stratum_target): New.
16583 * ravenscar-thread.c
16584 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16585 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16586 down.
16587 * record-btrace.c (record_btrace_target::info_record): Adjust.
16588 (record_btrace_target::record_method)
16589 (record_btrace_target::record_is_replaying)
16590 (record_btrace_target::fetch_registers)
16591 (get_thread_current_frame_id, record_btrace_target::resume)
16592 (record_btrace_target::wait, record_btrace_target::stop): Pass
16593 target down.
16594 * record-full.c (record_full_wait_1): Switch to event thread.
16595 Pass target down.
16596 * regcache.c (regcache::regcache)
16597 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16598 process_stratum_target parameter and handle it.
16599 (current_thread_target): New global.
16600 (get_thread_regcache): Add process_stratum_target parameter and
16601 handle it. Switch inferior before calling target method.
16602 (get_thread_regcache): Pass target down.
16603 (get_thread_regcache_for_ptid): Pass target down.
16604 (registers_changed_ptid): Add process_stratum_target parameter and
16605 handle it.
16606 (registers_changed_thread, registers_changed): Pass target down.
16607 (test_get_thread_arch_aspace_regcache): New.
16608 (current_regcache_test): Define a couple local test_target_ops
16609 instances and use them for testing.
16610 (readwrite_regcache): Pass process_stratum_target parameter.
16611 (cooked_read_test, cooked_write_test): Pass mock_target down.
16612 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16613 (get_thread_arch_aspace_regcache): Add process_stratum_target
16614 parameter.
16615 (regcache::target): New method.
16616 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16617 (regcache::registers_changed_ptid): Add process_stratum_target
16618 parameter.
16619 (regcache::m_target): New field.
16620 (registers_changed_ptid): Add process_stratum_target parameter.
16621 * remote.c (remote_state::supports_vCont_probed): New field.
16622 (remote_target::async_wait_fd): New method.
16623 (remote_unpush_and_throw): Add remote_target parameter.
16624 (get_current_remote_target): Adjust.
16625 (remote_target::remote_add_inferior): Push target.
16626 (remote_target::remote_add_thread)
16627 (remote_target::remote_notice_new_inferior)
16628 (get_remote_thread_info): Pass target down.
16629 (remote_target::update_thread_list): Skip threads of inferiors
16630 bound to other targets. (remote_target::close): Don't discard
16631 inferiors. (remote_target::add_current_inferior_and_thread)
16632 (remote_target::process_initial_stop_replies)
16633 (remote_target::start_remote)
16634 (remote_target::remote_serial_quit_handler): Pass down target.
16635 (remote_target::remote_unpush_target): New remote_target
16636 parameter. Unpush the target from all inferiors.
16637 (remote_target::remote_unpush_and_throw): New remote_target
16638 parameter. Pass it down.
16639 (remote_target::open_1): Check whether the current inferior has
16640 execution instead of checking whether any inferior is live. Pass
16641 target down.
16642 (remote_target::remote_detach_1): Pass down target. Use
16643 remote_unpush_target.
16644 (extended_remote_target::attach): Pass down target.
16645 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16646 (remote_target::append_resumption): Pass down target.
16647 (remote_target::append_pending_thread_resumptions)
16648 (remote_target::remote_resume_with_hc, remote_target::resume)
16649 (remote_target::commit_resume): Pass down target.
16650 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16651 (remote_target::interrupt_query)
16652 (remote_target::remove_new_fork_children)
16653 (remote_target::check_pending_events_prevent_wildcard_vcont)
16654 (remote_target::remote_parse_stop_reply)
16655 (remote_target::process_stop_reply): Pass down target.
16656 (first_remote_resumed_thread): New remote_target parameter. Pass
16657 it down.
16658 (remote_target::wait_as): Pass down target.
16659 (unpush_and_perror): New remote_target parameter. Pass it down.
16660 (remote_target::readchar, remote_target::remote_serial_write)
16661 (remote_target::getpkt_or_notif_sane_1)
16662 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16663 down target.
16664 (remote_target::mourn_inferior): Pass down target. Use
16665 remote_unpush_target.
16666 (remote_target::core_of_thread)
16667 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16668 (remote_target::pid_to_exec_file)
16669 (remote_target::thread_handle_to_thread_info): Pass down target.
16670 (remote_target::async_wait_fd): New.
16671 * riscv-fbsd-tdep.c: Include "inferior.h".
16672 (riscv_fbsd_get_thread_local_address): Pass down target.
16673 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16674 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16675 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16676 Adjust.
16677 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16678 * solib-svr4.c (enable_break): Pass down target.
16679 * spu-multiarch.c (parse_spufs_run): Pass down target.
16680 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16681 * target-delegates.c: Regenerate.
16682 * target.c (g_target_stack): Delete.
16683 (current_top_target): Return the current inferior's top target.
16684 (target_has_execution_1): Refer to the passed-in inferior's top
16685 target.
16686 (target_supports_terminal_ours): Check whether the initial
16687 inferior was already created.
16688 (decref_target): New.
16689 (target_stack::push): Incref/decref the target.
16690 (push_target, push_target, unpush_target): Adjust.
16691 (target_stack::unpush): Defref target.
16692 (target_is_pushed): Return bool. Adjust to refer to the current
16693 inferior's target stack.
16694 (dispose_inferior): Delete, and inline parts ...
16695 (target_preopen): ... here. Only dispose of the current inferior.
16696 (target_detach): Hold strong target reference while detaching.
16697 Pass target down.
16698 (target_thread_name): Add assertion.
16699 (target_resume): Pass down target.
16700 (target_ops::beneath, find_target_at): Adjust to refer to the
16701 current inferior's target stack.
16702 (get_dummy_target): New.
16703 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16704 has a thread running.
16705 (initialize_targets): Rename to ...
16706 (_initialize_target): ... this.
16707 * target.h: Include "gdbsupport/refcounted-object.h".
16708 (struct target_ops): Inherit refcounted_object.
16709 (target_ops::shortname, target_ops::longname): Make const.
16710 (target_ops::async_wait_fd): New method.
16711 (decref_target): Declare.
16712 (struct target_ops_ref_policy): New.
16713 (target_ops_ref): New typedef.
16714 (get_dummy_target): Declare function.
16715 (target_is_pushed): Return bool.
16716 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16717 (all_matching_threads_iterator::all_matching_threads_iterator):
16718 Handle filter target.
16719 * thread-iter.h (struct all_matching_threads_iterator, struct
16720 all_matching_threads_range, class all_non_exited_threads_range):
16721 Filter by target too. Remove explicit.
16722 * thread.c (threads_executing): Delete.
16723 (inferior_thread): Pass down current inferior.
16724 (clear_thread_inferior_resources): Pass down thread pointer
16725 instead of ptid_t.
16726 (add_thread_silent, add_thread_with_info, add_thread): Add
16727 process_stratum_target parameter. Use it for thread and inferior
16728 searches.
16729 (is_current_thread): New.
16730 (thread_info::deletable): Use it.
16731 (find_thread_ptid, thread_count, in_thread_list)
16732 (thread_change_ptid, set_resumed, set_running): New
16733 process_stratum_target parameter. Pass it down.
16734 (set_executing): New process_stratum_target parameter. Pass it
16735 down. Adjust reference to 'threads_executing'.
16736 (threads_are_executing): New process_stratum_target parameter.
16737 Adjust reference to 'threads_executing'.
16738 (set_stop_requested, finish_thread_state): New
16739 process_stratum_target parameter. Pass it down.
16740 (switch_to_thread): Also match inferior.
16741 (switch_to_thread): New process_stratum_target parameter. Pass it
16742 down.
16743 (update_threads_executing): Reimplement.
16744 * top.c (quit_force): Pop targets from all inferior.
16745 (gdb_init): Don't call initialize_targets.
16746 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16747 Declare.
16748 (windows_add_thread, windows_delete_thread): Adjust.
16749 (get_windows_debug_event): Rename to ...
16750 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16751 * tracefile-tfile.c (tfile_target_open): Pass down target.
16752 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16753 Forward declare.
16754 (switch_to_thread): Add process_stratum_target parameter.
16755 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16756 parameter. Use it.
16757 (mi_on_resume): Pass target down.
16758 * nat/fork-inferior.c (startup_inferior): Add
16759 process_stratum_target parameter. Pass it down.
16760 * nat/fork-inferior.h (startup_inferior): Add
16761 process_stratum_target parameter.
16762 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16763
16764 2020-01-10 Pedro Alves <palves@redhat.com>
16765
16766 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16767 directly. Instead find the first thread in the thread list and
16768 use switch_to_thread.
16769
16770 2020-01-10 Pedro Alves <palves@redhat.com>
16771
16772 * remote.c (remote_target::remote_add_inferior): Don't bind a
16773 process to the current inferior if the current inferior is already
16774 bound to a process.
16775
16776 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16777 Pedro Alves <palves@redhat.com>
16778
16779 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16780 If no process is specified, return null_ptid instead of
16781 inferior_ptid.
16782 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16783 TARGET_WAITKIND_SIGNALLED with no pid.
16784
16785 2020-01-10 Pedro Alves <palves@redhat.com>
16786
16787 * remote.c (first_remote_resumed_thread): New.
16788 (remote_target::wait_as): Use it as default event_ptid instead of
16789 inferior_ptid.
16790
16791 2020-01-10 Pedro Alves <palves@redhat.com>
16792
16793 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16794
16795 2020-01-10 Pedro Alves <palves@redhat.com>
16796
16797 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16798 not -1.
16799
16800 2020-01-10 Pedro Alves <palves@redhat.com>
16801
16802 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16803 ptid to get_last_target_status.
16804 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16805 ptid to get_last_target_status.
16806 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16807 get_last_target_status.
16808 (info_program_command): Don't pass a target_waitstatus to
16809 get_last_target_status.
16810 * infrun.c (init_wait_for_inferior): Use
16811 nullify_last_target_wait_ptid.
16812 (get_last_target_status): Handle nullptr arguments.
16813 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16814 (print_stop_event): Don't pass a ptid to get_last_target_status.
16815 (normal_stop): Don't pass a ptid to get_last_target_status.
16816 * infrun.h (get_last_target_status, set_last_target_status): Move
16817 comments here and update.
16818 (nullify_last_target_wait_ptid): Declare.
16819 * linux-fork.c (fork_load_infrun_state): Remove local extern
16820 declaration of nullify_last_target_wait_ptid.
16821 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16822 to get_last_target_status.
16823
16824 2020-01-10 Pedro Alves <palves@redhat.com>
16825
16826 * gdbthread.h (scoped_restore_current_thread)
16827 <dont_restore, restore, m_dont_restore>: Declare.
16828 * thread.c (thread_alive): Add assertion. Return bool.
16829 (switch_to_thread_if_alive): New.
16830 (prune_threads): Switch inferior/thread.
16831 (print_thread_info_1): Switch thread before calling target methods.
16832 (scoped_restore_current_thread::restore): New, factored out from
16833 ...
16834 (scoped_restore_current_thread::~scoped_restore_current_thread):
16835 ... this.
16836 (scoped_restore_current_thread::scoped_restore_current_thread):
16837 Add assertion.
16838 (thread_apply_all_command, thread_select): Use
16839 switch_to_thread_if_alive.
16840 * infrun.c (proceed, restart_threads, handle_signal_stop)
16841 (switch_back_to_stepped_thread): Switch current thread before
16842 calling target methods.
16843
16844 2020-01-10 Pedro Alves <palves@redhat.com>
16845
16846 * inferior.c (switch_to_inferior_no_thread): New function,
16847 factored out from ...
16848 (inferior_command): ... here.
16849 * inferior.h (switch_to_inferior_no_thread): Declare.
16850 * mi/mi-main.c (run_one_inferior): Use
16851 switch_to_inferior_no_thread.
16852
16853 2020-01-10 Pedro Alves <palves@redhat.com>
16854
16855 * infcmd.c (kill_command): Remove dead code.
16856
16857 2020-01-10 Pedro Alves <palves@redhat.com>
16858
16859 * remote.c (remote_target::mourn_inferior): No longer check
16860 whether the target is running.
16861
16862 2020-01-10 Pedro Alves <palves@redhat.com>
16863
16864 * corelow.c (core_target::has_execution): Change parameter type to
16865 inferior pointer.
16866 * inferior.c (number_of_live_inferiors): Use
16867 inferior::has_execution instead of target_has_execution_1.
16868 * inferior.h (inferior::has_execution): New.
16869 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16870 inferior::has_execution instead of target_has_execution_1.
16871 * process-stratum-target.c
16872 (process_stratum_target::has_execution): Change parameter type to
16873 inferior pointer. Check the inferior's PID instead of
16874 inferior_ptid.
16875 * process-stratum-target.h
16876 (process_stratum_target::has_execution): Change parameter type to
16877 inferior pointer.
16878 * record-full.c (record_full_core_target::has_execution): Change
16879 parameter type to inferior pointer.
16880 * target.c (target_has_execution_1): Change parameter type to
16881 inferior pointer.
16882 (target_has_execution_current): Adjust.
16883 * target.h (target_ops::has_execution): Change parameter type to
16884 inferior pointer.
16885 (target_has_execution_1): Change parameter type to inferior
16886 pointer. Change return type to bool.
16887 * tracefile.h (tracefile_target::has_execution): Change parameter
16888 type to inferior pointer.
16889
16890 2020-01-10 Pedro Alves <palves@redhat.com>
16891
16892 * exceptions.c (print_flush): Remove current_top_target() check.
16893
16894 2020-01-10 Pedro Alves <palves@redhat.com>
16895
16896 * remote.c (show_remote_exec_file): Show the current inferior's
16897 exec-file instead of the command variable's value.
16898
16899 2020-01-10 Pedro Alves <palves@redhat.com>
16900
16901 * record-full.c (record_full_resume_ptid): New global.
16902 (record_full_target::resume): Set it.
16903 (record_full_wait_1): Use record_full_resume_ptid instead of
16904 inferior_ptid.
16905
16906 2020-01-10 Pedro Alves <palves@redhat.com>
16907
16908 * gdbthread.h (scoped_restore_current_thread)
16909 <dont_restore, restore, m_dont_restore>: Declare.
16910 * thread.c (thread_alive): Add assertion. Return bool.
16911 (switch_to_thread_if_alive): New.
16912 (prune_threads): Switch inferior/thread.
16913 (print_thread_info_1): Switch thread before calling target methods.
16914 (scoped_restore_current_thread::restore): New, factored out from
16915 ...
16916 (scoped_restore_current_thread::~scoped_restore_current_thread):
16917 ... this.
16918 (scoped_restore_current_thread::scoped_restore_current_thread):
16919 Add assertion.
16920 (thread_apply_all_command, thread_select): Use
16921 switch_to_thread_if_alive.
16922
16923 2020-01-10 George Barrett <bob@bob131.so>
16924
16925 * stap-probe.c (stap_modify_semaphore): Don't check for null
16926 semaphores.
16927 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16928 for null semaphores.
16929
16930 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16931
16932 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16933 all source windows, and maintain horizontal scroll status while
16934 doing so.
16935
16936 2020-01-09 Tom Tromey <tom@tromey.com>
16937
16938 PR tui/18932:
16939 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16940 update_source_window, not print_source_lines.
16941
16942 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16943
16944 * tui/tui.c (tui_enable): Register tui hooks after calling
16945 tui_display_main.
16946
16947 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16948
16949 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16950
16951 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16952
16953 * thread.c (print_thread_info_1): Fix indentation.
16954
16955 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16956
16957 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16958 unique_xmalloc_ptr outside the if to always free the demangled name.
16959
16960 2020-01-08 Tom Tromey <tromey@adacore.com>
16961
16962 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16963 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16964 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16965 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16966 Remove.
16967 (section_offsets): New typedef.
16968 * symtab.c (fixup_section, get_msymbol_address): Update.
16969 * symmisc.c (dump_msymbols): Update.
16970 * symfile.h (relative_addr_info_to_section_offsets)
16971 (symfile_map_offsets_to_segments): Update.
16972 * symfile.c (build_section_addr_info_from_objfile)
16973 (init_objfile_sect_indices): Update.
16974 (struct place_section_arg): Change type of "offsets".
16975 (place_section): Update.
16976 (relative_addr_info_to_section_offsets): Change type of
16977 "section_offsets". Remove "num_sections" parameter.
16978 (default_symfile_offsets, syms_from_objfile_1)
16979 (set_objfile_default_section_offset): Update.
16980 (reread_symbols): No need to preserve section offsets by hand.
16981 (symfile_map_offsets_to_segments): Change type of "offsets".
16982 * stap-probe.c (relocate_address): Update.
16983 * stabsread.h (process_one_symbol): Update.
16984 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16985 (solib_target_relocate_section_addresses): Update.
16986 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16987 Update.
16988 * solib-frv.c (frv_relocate_main_executable): Update.
16989 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16990 * solib-aix.c (solib_aix_get_section_offsets): Change return
16991 type.
16992 (solib_aix_solib_create_inferior_hook): Update.
16993 * remote.c (remote_target::get_offsets): Update.
16994 * psymtab.c (find_pc_sect_psymtab): Update.
16995 * psympriv.h (struct partial_symbol) <address, text_low,
16996 text_high>: Update.
16997 * objfiles.h (obj_section_offset): Update.
16998 (struct objfile) <section_offsets>: Change type.
16999 <num_sections>: Remove.
17000 (objfile_relocate): Update.
17001 * objfiles.c (entry_point_address_query): Update
17002 (relocate_one_symbol): Change type of "section_offsets".
17003 (objfile_relocate1, objfile_relocate1): Change type of
17004 "new_offsets".
17005 (objfile_rebase1): Update.
17006 * mipsread.c (mipscoff_symfile_read): Update.
17007 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17008 parameter.
17009 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17010 (parse_external, psymtab_to_symtab_1): Update.
17011 * machoread.c (macho_symfile_offsets): Update.
17012 * ia64-tdep.c (ia64_find_unwind_table): Update.
17013 * hppa-tdep.c (read_unwind_info): Update.
17014 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17015 * dwarf2read.c (create_addrmap_from_index)
17016 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17017 (process_psymtab_comp_unit_reader, add_partial_symbol)
17018 (add_partial_subprogram, process_full_comp_unit)
17019 (read_file_scope, read_func_scope, read_lexical_block_scope)
17020 (read_call_site_scope, dwarf2_rnglists_process)
17021 (dwarf2_ranges_process, dwarf2_ranges_read)
17022 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17023 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17024 Update.
17025 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17026 Update.
17027 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17028 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17029 (process_one_symbol): Change type of "section_offsets".
17030 * ctfread.c (get_objfile_text_range): Update.
17031 * coffread.c (coff_symtab_read, enter_linenos)
17032 (process_coff_symbol): Update.
17033 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17034 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17035
17036 2020-01-08 Tom Tromey <tromey@adacore.com>
17037
17038 * dwarf2read.c (parse_macro_definition): Use std::string.
17039 (parse_macro_definition): Likewise.
17040
17041 2020-01-08 Tom Tromey <tromey@adacore.com>
17042
17043 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17044 (ATTR_ALLOC_CHUNK): Remove.
17045
17046 2020-01-08 Tom Tromey <tromey@adacore.com>
17047
17048 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17049
17050 2020-01-08 Tom Tromey <tromey@adacore.com>
17051
17052 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17053 (dwarf2_compute_name, open_dwo_file): Likewise.
17054 (process_enumeration_scope): Use std::vector.
17055 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17056 (partial_die_info::fixup, dwarf2_start_subfile)
17057 (guess_full_die_structure_name, dwarf2_name): Likewise.
17058 (determine_prefix): Update.
17059 (guess_full_die_structure_name): Make return type const.
17060 (partial_die_full_name): Return unique_xmalloc_ptr.
17061 (DW_FIELD_ALLOC_CHUNK): Remove.
17062
17063 2020-01-07 Tom Tromey <tromey@adacore.com>
17064
17065 PR build/24937:
17066 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17067
17068 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17069
17070 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17071
17072 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17073
17074 * stack.c (print_frame_info): Move disassemble_next_line code
17075 inside source_print block.
17076
17077 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17078
17079 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17080 gdb/signals.h, as we are now using native signal symbols.
17081
17082 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17083
17084 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17085 overflow by an early check of content vs threshold.
17086 * tui/tui-source.c (tui_source_window::line_is_displayed):
17087 Likewise.
17088
17089 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17090
17091 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17092
17093 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17094
17095 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17096 export table if no section contains it's RVA.
17097
17098 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17099
17100 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17101
17102 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17103
17104 * source.c (print_source_lines_base): Set last_line_listed.
17105
17106 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17107
17108 * tui/tui-disasm.c: Remove trailing spaces.
17109
17110 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17111 Pedro Alves <palves@redhat.com>
17112
17113 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17114 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17115 (windows_gdb_signal_to_target): New function, uses the above
17116 enumeration to convert GDB internal signal codes to equivalent
17117 Windows codes.
17118 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17119 * windows-nat.c: Include "gdb_wait.h".
17120 (get_windows_debug_event): Extract the fatal exception from the
17121 exit status and convert to the equivalent Posix signal number.
17122 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17123 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17124 * gdbsupport/gdb_wait.c: New file, implements
17125 windows_status_to_termsig.
17126 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17127 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17128
17129 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17130
17131 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17132 show_layout.
17133
17134 2020-01-05 Luis Machado <luis.machado@linaro.org>
17135
17136 * aarch64-linux-nat.c
17137 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17138 and bfd_mach_aarch64.
17139
17140 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17141
17142 * ui-file.c (stdio_file::can_emit_style_escape)
17143 (tee_file::can_emit_style_escape): Ensure style is used also on
17144 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17145 to gdb_stdout.
17146 * main.c (set_gdb_data_directory): Use file style to output the
17147 warning that the given pathname is not a directory.
17148 * top.c (show_history_filename, gdb_safe_append_history)
17149 (show_gdb_datadir): Use file style.
17150
17151 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17152
17153 * solib-target.c (struct lm_info_target):
17154 Change offsets to be a unique_xmalloc_ptr.
17155 (solib_target_relocate_section_addresses): Update.
17156
17157 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17158
17159 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17160
17161 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17162
17163 * MAINTAINERS (Write After Approval): Add myself.
17164
17165 2020-01-02 Luis Machado <luis.machado@linaro.org>
17166
17167 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17168 Cell BE architecture.
17169 * target.h (struct target_ops) <thread_architecture>: Likewise.
17170
17171 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17172
17173 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17174
17175 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17176
17177 * MAINTAINERS (Write After Approval): Add myself.
17178
17179 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17180
17181 * gdbarch.sh: Update copyright year range of generated files.
17182
17183 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17184
17185 Update copyright year range in all GDB files.
17186
17187 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17188
17189 * copyright.py: Convert to Python 3.
17190
17191 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17192
17193 * copyright.py: Adapt after move of gnulib directory from gdb
17194 directory to toplevel directory.
17195
17196 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17197
17198 * copyright.py (main): Exit if run from the wrong directory.
17199
17200 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17201
17202 * top.c (print_gdb_version): Change copyright year to 2020.
17203
17204 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17205
17206 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17207
17208 For older changes see ChangeLog-2019.
17209 \f
17210 Local Variables:
17211 mode: change-log
17212 left-margin: 8
17213 fill-column: 74
17214 version-control: never
17215 coding: utf-8
17216 End:
This page took 0.455988 seconds and 5 git commands to generate.