change and rename gmp_string_asprintf to return an std::string
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
4 Change return type to std::string. Update all callers.
5 * gmp-utils.c (gmp_string_printf): Likewise.
6
7 2020-11-24 Joel Brobecker <brobecker@adacore.com>
8
9 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
10 instead of mpq_set_ui to initialize our GMP rational.
11
12 2020-11-23 Tom de Vries <tdevries@suse.de>
13
14 * debuginfod-support.c (debuginfod_source_query)
15 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
16
17 2020-11-21 Tom Tromey <tom@tromey.com>
18
19 * breakpoint.c (watchpoint_exp_is_const): Return bool.
20
21 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
24 Pass 2.0 to pow.
25 (gdb_mpz_write_all_from_small): Likewise.
26
27 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
30 of abs.
31
32 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
33
34 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
35 ctf_arc_open_by_name.
36
37 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
38
39 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
40 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
41
42 2020-11-20 Pedro Alves <pedro@palves.net>
43
44 * language.c (language_arch_info::lookup_primitive_type): Use
45 gdb::function_view instead of gdb::function.
46 (template language_lookup_primitive_type): Rename to ...
47 (language_lookup_primitive_type_1): ... this, and make static.
48 (language_lookup_primitive_type(const struct language_defn *,
49 struct gdbarch *, const char *): Make non-template.
50 (language_lookup_primitive_type(const struct language_defn *,
51 struct gdbarch *, std::function<bool (struct type *)>): Make
52 non-template and use gdb::function_view.
53 * language.h (language_arch_info::lookup_primitive_type): Use
54 gdb::function_view instead of std::function.
55 (language_lookup_primitive_type): No longer template.
56 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
57 lambda instead of a std::function.
58
59 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
60
61 PR tdep/26916
62 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
63 and STOCFH.
64
65 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
68
69 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
72 in `loop_cb` parameter.
73 * gdbarch.c: Re-generate.
74 * gdbarch.h: Re-generate.
75 * arch-utils.c (default_read_core_file_mappings): Remove `other`
76 parameter.
77 * arch-utils.h (default_read_core_file_mappings): Likewise.
78 * corelow.c (core_target::build_file_mappings): Likewise.
79 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
80 (linux_core_info_proc_mappings): Likewise.
81
82 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
85 * NEWS: Mention new options.
86 * f-array-walker.h: New file.
87 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
88 (repack_array_slices): New static global.
89 (show_repack_array_slices): New function.
90 (fortran_array_slicing_debug): New static global.
91 (show_fortran_array_slicing_debug): New function.
92 (value_f90_subarray): Delete.
93 (skip_undetermined_arglist): Delete.
94 (class fortran_array_repacker_base_impl): New class.
95 (class fortran_lazy_array_repacker_impl): New class.
96 (class fortran_array_repacker_impl): New class.
97 (fortran_value_subarray): Complete rewrite.
98 (set_fortran_list): New static global.
99 (show_fortran_list): Likewise.
100 (_initialize_f_language): Register new commands.
101 (fortran_adjust_dynamic_array_base_address_hack): New function.
102 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
103 Declare.
104 * f-valprint.c: Include 'f-array-walker.h'.
105 (class fortran_array_printer_impl): New class.
106 (f77_print_array_1): Delete.
107 (f77_print_array): Delete.
108 (fortran_print_array): New.
109 (f_value_print_inner): Update to call fortran_print_array.
110 * gdbtypes.c: Include 'f-lang.h'.
111 (resolve_dynamic_type_internal): Call
112 fortran_adjust_dynamic_array_base_address_hack.
113
114 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * breakpoint.c (struct watch_options): New struct.
117 (watch_option_defs): New static global.
118 (make_watch_options_def_group): New function.
119 (watch_maybe_just_location): Convert option parsing.
120 (watch_command_completer): New function.
121 (_initialize_breakpoint): Build help text using options mechanism.
122
123 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
126 (watch_command_1): Update parameter types. Convert locals to
127 bool.
128 (watch_command_wrapper): Change parameter type.
129 (watch_maybe_just_location): Change locals to bool.
130 (rwatch_command_wrapper): Update parameter type.
131 (awatch_command_wrapper): Update parameter type.
132 * breakpoint.h (watch_command_wrapper): Change parameter type.
133 (rwatch_command_wrapper): Update parameter type.
134 (awatch_command_wrapper): Update parameter type.
135 * eval.c (fetch_subexp_value): Change parameter type.
136 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
137 'false' not '0'.
138 * value.h (fetch_subexp_value): Change parameter type in
139 declaration.
140
141 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
144 skip_spaces.
145
146 2020-11-18 Keith Seitz <keiths@redhat.com>
147
148 * linux-tdep.c (dump_note_entry_p): Return true instead of
149 checking `filename'.
150
151 2020-11-18 Tom de Vries <tdevries@suse.de>
152
153 * debuginfod-support.c (debuginfod_source_query)
154 (debuginfod_debuginfo_query): Also do early exit if
155 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
156
157 2020-11-18 Tom de Vries <tdevries@suse.de>
158
159 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
160 warning.
161
162 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * gdbtypes.h (get_array_bounds): Return bool, adjust some
165 callers. Move doc here.
166 * gdbtypes.c (get_array_bounds): Return bool
167
168 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
171 assert.
172 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
173 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
174 case to the default.
175
176 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * printcmd.c: Include 'safe-ctype.c'.
179 (skip_over_slash_fmt): New function.
180 (print_command_completer): Call skip_over_slash_fmt.
181 (display_and_x_command_completer): New function.
182 (_initialize_printcmd): Add command completion for 'x' and
183 'display'.
184
185 2020-11-16 Pedro Alves <pedro@palves.net>
186
187 * frame.c (get_prev_frame): Move get_frame_id call from here ...
188 (get_prev_frame_always_1): ... to here.
189 * inline-frame.c (inline_frame_this_id): Mention
190 get_prev_frame_always_1 in comment.
191
192 2020-11-15 Joel Brobecker <brobecker@adacore.com>
193
194 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
195 handling.
196 (value_less): Add fixed-point handling.
197
198 2020-11-15 Joel Brobecker <brobecker@adacore.com>
199
200 * eval.c (binop_promote): Add fixed-point type handling.
201 * valarith.c (fixed_point_binop): New function.
202 (scalar_binop): Add fixed-point type handling.
203 (value_neg): Add fixed-point type handling.
204 * valops.c (value_cast_to_fixed_point): New function.
205 (value_cast): Add fixed-point type handling.
206
207 2020-11-15 Joel Brobecker <brobecker@adacore.com>
208
209 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
210 range types.
211 * c-typeprint.c (c_type_print_varspec_prefix)
212 (c_type_print_varspec_suffix, c_type_print_base_1): Add
213 TYPE_CODE_FIXED_POINT handling.
214 * p-typeprint.c (pascal_type_print_varspec_prefix)
215 (pascal_type_print_varspec_suffix): Likewise.
216 * typeprint.c (print_type_fixed_point): New function.
217 * typeprint.h (print_type_fixed_point): Add declaration.
218
219 2020-11-15 Joel Brobecker <brobecker@adacore.com>
220
221 * printcmd.c (print_scalar_formatted): Add fixed-point type
222 handling when options->format is set.
223
224 2020-11-15 Joel Brobecker <brobecker@adacore.com>
225
226 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
227 * dwarf2/read.c (get_dwarf2_rational_constant)
228 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
229 (has_zero_over_zero_small_attribute): New functions.
230 read_base_type, set_die_type): Add fixed-point type handling.
231 * gdb-gdb.py.in: Add fixed-point type handling.
232 * gdbtypes.c: #include "gmp-utils.h".
233 (create_range_type, set_type_code): Add fixed-point type handling.
234 (init_fixed_point_type): New function.
235 (is_integral_type, is_scalar_type): Add fixed-point type handling.
236 (print_fixed_point_type_info): New function.
237 (recursive_dump_type, copy_type_recursive): Add fixed-point type
238 handling.
239 (fixed_point_type_storage): New typedef.
240 (fixed_point_objfile_key): New static global.
241 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
242 (fixed_point_type_base_type, fixed_point_scaling_factor): New
243 functions.
244 * gdbtypes.h: #include "gmp-utils.h".
245 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
246 (union type_specific) <fixed_point_info>: New field.
247 (struct fixed_point_type_info): New struct.
248 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
249 (init_fixed_point_type, is_fixed_point_type)
250 (fixed_point_type_base_type, fixed_point_scaling_factor)
251 (allocate_fixed_point_type_info): Add declarations.
252 * valprint.c (generic_val_print_fixed_point): New function.
253 (generic_value_print): Add fixed-point type handling.
254 * value.c (value_as_address, unpack_long): Add fixed-point type
255 handling.
256
257 2020-11-15 Joel Brobecker <brobecker@adacore.com>
258
259 * utils.h (uinteger_pow): Add declaration.
260 * utils.c (uinteger_pow): Moved here (without changes)...
261 * valarith.c (uinteger_pow): ... from here.
262
263 2020-11-15 Joel Brobecker <brobecker@adacore.com>
264
265 * gmp-utils.h, gmp-utils.c: New file.
266 * unittests/gmp-utils-selftests.c: New file.
267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
268 unittests/gmp-utils-selftests.c.
269 (COMMON_SFILES) Add gmp-utils.c.
270 (HFILES_NO_SRCDIR): Add gmp-utils.h.
271
272 2020-11-15 Joel Brobecker <brobecker@adacore.com>
273
274 * configure.ac: Generate an error if a usable GMP library
275 could not be found.
276 * configure: Regenerate.
277
278 2020-11-15 Joel Brobecker <brobecker@adacore.com>
279
280 * configure.ac: Add support for --with-libgmp-prefix.
281 * Makefile.in (LIBGMP): New variable.
282 (CLIBS): Include $(LIBGMP).
283 * configure, config.in: Regenerate
284
285 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 PR cli/26879
288 * f-exp.y (COMPLETE): New token.
289 (exp): Two new rules for tab-completion.
290 (saw_name_at_eof): New static global.
291 (last_was_structop): Likewise.
292 (yylex): Set new variables, and return COMPLETE token at the end
293 of the input stream in some cases.
294
295 2020-11-14 Tom Tromey <tom@tromey.com>
296
297 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
298
299 2020-11-14 Tom Tromey <tom@tromey.com>
300
301 * opencl-lang.c (opencl_component_ref): Make "comps" const.
302
303 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
306
307 2020-11-13 Tom Tromey <tom@tromey.com>
308
309 * c-lang.c (convert_ucn, convert_octal, convert_hex)
310 (convert_escape, parse_one_string): Constify.
311
312 2020-11-13 Keith Seitz <keiths@redhat.com>
313
314 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
315 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
316 outside of ELF segments" warning for debugin
317
318 2020-11-13 Keith Seitz <keiths@redhat.com>
319
320 PR gdb/23034
321 * elfread.c (elf_symfile_segments): Output a BFD file name
322 for the "Loadable section ... outside of ELF segments" warning.
323
324 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
325
326 PR gdb/26835
327 * arm-tdep.c (class arm_instruction_reader): New.
328 (target_arm_instruction_reader): New.
329 (arm_analyze_prologue): Add instruction reader parameter and use
330 it. Use arm_expand_immediate.
331 (class target_arm_instruction_reader): Adjust.
332 (arm_skip_prologue): Adjust.
333 (arm_expand_immediate): New.
334 (arm_scan_prologue): Adjust.
335 (arm_analyze_prologue_test): New.
336 (class test_arm_instruction_reader): New.
337
338 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * f-lang.c (fortran_argument_convert): Add declaration. Add
341 header comment, taken from f-lang.h. Make static.
342 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
343 (fortran_argument_convert): Delete declaration.
344
345 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * ada-exp.y (find_primitive_type): Make parameter const.
348 * ada-lang.c (enum ada_primitive_types): Delete.
349 (ada_language::language_arch_info): Update.
350 * c-lang.c (enum c_primitive_types): Delete.
351 (c_language_arch_info): Update.
352 (enum cplus_primitive_types): Delete.
353 (cplus_language::language_arch_info): Update.
354 * d-lang.c (enum d_primitive_types): Delete.
355 (d_language::language_arch_info): Update.
356 * f-lang.c (enum f_primitive_types): Delete.
357 (f_language::language_arch_info): Update.
358 * go-lang.c (enum go_primitive_types): Delete.
359 (go_language::language_arch_info): Update.
360 * language.c (auto_or_unknown_language::language_arch_info):
361 Update.
362 (language_gdbarch_post_init): Use obstack_new, use array indexing.
363 (language_string_char_type): Add header comment, call function in
364 language_arch_info.
365 (language_bool_type): Likewise
366 (language_arch_info::bool_type): Define.
367 (language_lookup_primitive_type_1): Delete.
368 (language_lookup_primitive_type): Rewrite as a templated function
369 to call function in language_arch_info, then instantiate twice.
370 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
371 (language_arch_info::lookup_primitive_type_and_symbol): Define.
372 (language_arch_info::lookup_primitive_type): Define twice with
373 different signatures.
374 (language_arch_info::lookup_primitive_type_as_symbol): Define.
375 (language_lookup_primitive_type_as_symbol): Rewrite to call a
376 member function in language_arch_info.
377 * language.h (language_arch_info): Complete rewrite.
378 (language_lookup_primitive_type): Make templated.
379 * m2-lang.c (enum m2_primitive_types): Delete.
380 (m2_language::language_arch_info): Update.
381 * opencl-lang.c (OCL_P_TYPE): Delete.
382 (enum opencl_primitive_types): Delete.
383 (opencl_type_data): Delete.
384 (builtin_opencl_type): Delete.
385 (lookup_opencl_vector_type): Update.
386 (opencl_language::language_arch_info): Update, lots of content
387 moved from...
388 (build_opencl_types): ...here. This function is now deleted.
389 (_initialize_opencl_language): Delete.
390 * p-lang.c (enum pascal_primitive_types): Delete.
391 (pascal_language::language_arch_info): Update.
392 * rust-lang.c (enum rust_primitive_types): Delete.
393 (rust_language::language_arch_info): Update.
394
395 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
398 dwarf2_queue_guard.
399
400 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
403 comment.
404
405 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * dwarf2/read.c (dwarf_read_debug_printf,
408 dwarf_read_debug_printf_v): New macros, use throughout the file.
409
410 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
411
412 * arc-linux-tdep.c (collect_register): Populate "eret" by
413 "pc" value from the regcache when asked for "pc" value.
414
415 2020-11-12 Tom Tromey <tom@tromey.com>
416
417 PR rust/26799:
418 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
419 exist.
420
421 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * features/Makefile (XMLTOC): Add rx.xml.
424 (FEATURE_XMLFILES): Remove rx.xml.
425 (FEATURE_CFILES rule): Pass '-single-feature' flag.
426 * features/rx.c: Regenerate.
427 * features/rx.xml: Wrap in `target` tags, and reindent.
428 * target-descriptions.c (struct maint_print_c_tdesc_options): New
429 structure.
430 (maint_print_c_tdesc_opt_def): New typedef.
431 (maint_print_c_tdesc_opt_defs): New static global.
432 (make_maint_print_c_tdesc_options_def_group): New function.
433 (maint_print_c_tdesc_cmd): Make use of command line flags, only
434 print single feature C file for target descriptions containing a
435 single feature.
436 (maint_print_c_tdesc_cmd_completer): New function.
437 (_initialize_target_descriptions): Update call to register command
438 completer, and include command line flag in help text.
439
440 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
443 numbers.
444 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
445 enum values.
446
447 2020-11-10 Tom Tromey <tom@tromey.com>
448
449 * value.h (internalvar_name): Update.
450 * value.c (internalvar_name): Make return type const.
451
452 2020-11-10 Tom Tromey <tom@tromey.com>
453
454 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
455 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
456 const.
457
458 2020-11-10 Tom Tromey <tom@tromey.com>
459
460 * objc-lang.h (value_nsstring): Update.
461 * objc-lang.c (value_nsstring): Make "ptr" const.
462
463 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * expprint.c (print_subexp_funcall): Increment expression position
466 after reading argument count.
467 * f-lang.c (print_subexp_f): Skip over opcode before calling
468 common function.
469 (dump_subexp_body_f): Likewise.
470
471 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
472
473 PR python/26832
474 * configure: Regenerate.
475 * configure.ac: Check for python modules ctypes instead of
476 itertools.
477
478 2020-11-06 Pedro Alves <pedro@palves.net>
479
480 * macroexp.c (struct macro_buffer): Split in two classes. Add
481 uses adjusted.
482 (struct shared_macro_buffer): New, factored out from struct
483 macro_buffer.
484 (struct growable_macro_buffer): New, factored out from struct
485 macro_buffer.
486 (set_token, get_comment, get_identifier, get_pp_number)
487 (get_character_constant, get_string_literal, get_punctuator)
488 (get_next_token_for_substitution): Constify parameters.
489 (substitute_args): Constify locals.
490
491 2020-11-05 Tom Tromey <tom@tromey.com>
492
493 * dwarf2/read.c (read_cutu_die_from_dwo)
494 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
495 (build_type_psymtabs_1): Update.
496 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
497 parameter.
498 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
499 Don't read section. Add assert.
500
501 2020-11-04 Tom Tromey <tromey@adacore.com>
502
503 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
504
505 2020-11-04 Tom Tromey <tromey@adacore.com>
506
507 * ada-typeprint.c (ada_print_type): Handle __T types.
508
509 2020-11-04 Tom Tromey <tromey@adacore.com>
510
511 * dwarf2/read.c (add_partial_symbol, process_die):
512 Handle DW_TAG_array_type.
513 (is_type_tag_for_partial): Add "lang" parameter.
514 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
515
516 2020-11-04 Tom Tromey <tromey@adacore.com>
517
518 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
519
520 2020-11-04 Tom Tromey <tromey@adacore.com>
521
522 * dwarf2/read.c (read_array_type): Only apply stride to innermost
523 array.
524
525 2020-11-04 Tom Tromey <tromey@adacore.com>
526
527 * gdbtypes.c (update_static_array_size): Handle bit stride.
528
529 2020-11-04 Tom Tromey <tromey@adacore.com>
530
531 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
532
533 2020-11-04 Tom Tromey <tromey@adacore.com>
534
535 * ada-lang.c (ada_is_any_packed_array_type): New function.
536 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
537
538 2020-11-04 Tom Tromey <tromey@adacore.com>
539
540 * dwarf2/read.c (recognize_bound_expression)
541 (quirk_ada_thick_pointer): New functions.
542 (read_array_type): Call quirk_ada_thick_pointer.
543 (set_die_type): Add "skip_data_location" parameter.
544 (quirk_ada_thick_pointer): New function.
545 (process_structure_scope): Call quirk_ada_thick_pointer.
546 * ada-lang.c (ada_is_unconstrained_packed_array_type)
547 (decode_packed_array_bitsize): Handle thick pointers without
548 parallel types.
549 (ada_is_gnat_encoded_packed_array_type): Rename from
550 ada_is_packed_array_type.
551 (ada_is_constrained_packed_array_type): Update.
552 * ada-valprint.c (ada_val_print_gnat_array): Remove.
553 (ada_value_print_1): Use ada_get_decoded_value.
554
555 2020-11-04 Tom Tromey <tromey@adacore.com>
556
557 * ada-lang.c (recursively_update_array_bitsize): New function.
558 (decode_constrained_packed_array_type): Call it.
559
560 2020-11-04 Tom Tromey <tromey@adacore.com>
561
562 * ada-lang.c (to_fixed_array_type): Error if
563 decode_constrained_packed_array_type returns NULL.
564
565 2020-11-04 Tom Tromey <tromey@adacore.com>
566
567 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
568
569 2020-11-02 Tom Tromey <tromey@adacore.com>
570
571 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
572 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
573 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
574 * amd64-ravenscar-thread.c: New file.
575 * amd64-ravenscar-thread.h: New file.
576 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
577 * configure.tgt (amd64_tobjs): Add ravenscar objects.
578
579 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * main.c (execute_cmdargs): New function.
582 (captured_main_1): Make use of execute_cmdargs.
583
584 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 * NEWS: Mention changes to config file search path.
587 * main.c
588
589 2020-11-02 Tom Tromey <tromey@adacore.com>
590
591 * python/python.c: Consolidate two HAVE_PYTHON blocks.
592 (python_GdbModuleDef): Move earlier. Now static.
593 (do_start_initialization): Consolidate some IS_PY3K blocks.
594
595 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
596
597 * aarch64-linux-tdep.c: Fix indentation.
598 * aarch64-ravenscar-thread.c: Fix indentation.
599 * aarch64-tdep.c: Fix indentation.
600 * aarch64-tdep.h: Fix indentation.
601 * ada-lang.c: Fix indentation.
602 * ada-lang.h: Fix indentation.
603 * ada-tasks.c: Fix indentation.
604 * ada-typeprint.c: Fix indentation.
605 * ada-valprint.c: Fix indentation.
606 * ada-varobj.c: Fix indentation.
607 * addrmap.c: Fix indentation.
608 * addrmap.h: Fix indentation.
609 * agent.c: Fix indentation.
610 * aix-thread.c: Fix indentation.
611 * alpha-bsd-nat.c: Fix indentation.
612 * alpha-linux-tdep.c: Fix indentation.
613 * alpha-mdebug-tdep.c: Fix indentation.
614 * alpha-nbsd-tdep.c: Fix indentation.
615 * alpha-obsd-tdep.c: Fix indentation.
616 * alpha-tdep.c: Fix indentation.
617 * amd64-bsd-nat.c: Fix indentation.
618 * amd64-darwin-tdep.c: Fix indentation.
619 * amd64-linux-nat.c: Fix indentation.
620 * amd64-linux-tdep.c: Fix indentation.
621 * amd64-nat.c: Fix indentation.
622 * amd64-obsd-tdep.c: Fix indentation.
623 * amd64-tdep.c: Fix indentation.
624 * amd64-windows-tdep.c: Fix indentation.
625 * annotate.c: Fix indentation.
626 * arc-tdep.c: Fix indentation.
627 * arch-utils.c: Fix indentation.
628 * arch/arm-get-next-pcs.c: Fix indentation.
629 * arch/arm.c: Fix indentation.
630 * arm-linux-nat.c: Fix indentation.
631 * arm-linux-tdep.c: Fix indentation.
632 * arm-nbsd-tdep.c: Fix indentation.
633 * arm-pikeos-tdep.c: Fix indentation.
634 * arm-tdep.c: Fix indentation.
635 * arm-tdep.h: Fix indentation.
636 * arm-wince-tdep.c: Fix indentation.
637 * auto-load.c: Fix indentation.
638 * auxv.c: Fix indentation.
639 * avr-tdep.c: Fix indentation.
640 * ax-gdb.c: Fix indentation.
641 * ax-general.c: Fix indentation.
642 * bfin-linux-tdep.c: Fix indentation.
643 * block.c: Fix indentation.
644 * block.h: Fix indentation.
645 * blockframe.c: Fix indentation.
646 * bpf-tdep.c: Fix indentation.
647 * break-catch-sig.c: Fix indentation.
648 * break-catch-syscall.c: Fix indentation.
649 * break-catch-throw.c: Fix indentation.
650 * breakpoint.c: Fix indentation.
651 * breakpoint.h: Fix indentation.
652 * bsd-uthread.c: Fix indentation.
653 * btrace.c: Fix indentation.
654 * build-id.c: Fix indentation.
655 * buildsym-legacy.h: Fix indentation.
656 * buildsym.c: Fix indentation.
657 * c-typeprint.c: Fix indentation.
658 * c-valprint.c: Fix indentation.
659 * c-varobj.c: Fix indentation.
660 * charset.c: Fix indentation.
661 * cli/cli-cmds.c: Fix indentation.
662 * cli/cli-decode.c: Fix indentation.
663 * cli/cli-decode.h: Fix indentation.
664 * cli/cli-script.c: Fix indentation.
665 * cli/cli-setshow.c: Fix indentation.
666 * coff-pe-read.c: Fix indentation.
667 * coffread.c: Fix indentation.
668 * compile/compile-cplus-types.c: Fix indentation.
669 * compile/compile-object-load.c: Fix indentation.
670 * compile/compile-object-run.c: Fix indentation.
671 * completer.c: Fix indentation.
672 * corefile.c: Fix indentation.
673 * corelow.c: Fix indentation.
674 * cp-abi.h: Fix indentation.
675 * cp-namespace.c: Fix indentation.
676 * cp-support.c: Fix indentation.
677 * cp-valprint.c: Fix indentation.
678 * cris-linux-tdep.c: Fix indentation.
679 * cris-tdep.c: Fix indentation.
680 * darwin-nat-info.c: Fix indentation.
681 * darwin-nat.c: Fix indentation.
682 * darwin-nat.h: Fix indentation.
683 * dbxread.c: Fix indentation.
684 * dcache.c: Fix indentation.
685 * disasm.c: Fix indentation.
686 * dtrace-probe.c: Fix indentation.
687 * dwarf2/abbrev.c: Fix indentation.
688 * dwarf2/attribute.c: Fix indentation.
689 * dwarf2/expr.c: Fix indentation.
690 * dwarf2/frame.c: Fix indentation.
691 * dwarf2/index-cache.c: Fix indentation.
692 * dwarf2/index-write.c: Fix indentation.
693 * dwarf2/line-header.c: Fix indentation.
694 * dwarf2/loc.c: Fix indentation.
695 * dwarf2/macro.c: Fix indentation.
696 * dwarf2/read.c: Fix indentation.
697 * dwarf2/read.h: Fix indentation.
698 * elfread.c: Fix indentation.
699 * eval.c: Fix indentation.
700 * event-top.c: Fix indentation.
701 * exec.c: Fix indentation.
702 * exec.h: Fix indentation.
703 * expprint.c: Fix indentation.
704 * f-lang.c: Fix indentation.
705 * f-typeprint.c: Fix indentation.
706 * f-valprint.c: Fix indentation.
707 * fbsd-nat.c: Fix indentation.
708 * fbsd-tdep.c: Fix indentation.
709 * findvar.c: Fix indentation.
710 * fork-child.c: Fix indentation.
711 * frame-unwind.c: Fix indentation.
712 * frame-unwind.h: Fix indentation.
713 * frame.c: Fix indentation.
714 * frv-linux-tdep.c: Fix indentation.
715 * frv-tdep.c: Fix indentation.
716 * frv-tdep.h: Fix indentation.
717 * ft32-tdep.c: Fix indentation.
718 * gcore.c: Fix indentation.
719 * gdb_bfd.c: Fix indentation.
720 * gdbarch.sh: Fix indentation.
721 * gdbarch.c: Re-generate
722 * gdbarch.h: Re-generate.
723 * gdbcore.h: Fix indentation.
724 * gdbthread.h: Fix indentation.
725 * gdbtypes.c: Fix indentation.
726 * gdbtypes.h: Fix indentation.
727 * glibc-tdep.c: Fix indentation.
728 * gnu-nat.c: Fix indentation.
729 * gnu-nat.h: Fix indentation.
730 * gnu-v2-abi.c: Fix indentation.
731 * gnu-v3-abi.c: Fix indentation.
732 * go32-nat.c: Fix indentation.
733 * guile/guile-internal.h: Fix indentation.
734 * guile/scm-cmd.c: Fix indentation.
735 * guile/scm-frame.c: Fix indentation.
736 * guile/scm-iterator.c: Fix indentation.
737 * guile/scm-math.c: Fix indentation.
738 * guile/scm-ports.c: Fix indentation.
739 * guile/scm-pretty-print.c: Fix indentation.
740 * guile/scm-value.c: Fix indentation.
741 * h8300-tdep.c: Fix indentation.
742 * hppa-linux-nat.c: Fix indentation.
743 * hppa-linux-tdep.c: Fix indentation.
744 * hppa-nbsd-nat.c: Fix indentation.
745 * hppa-nbsd-tdep.c: Fix indentation.
746 * hppa-obsd-nat.c: Fix indentation.
747 * hppa-tdep.c: Fix indentation.
748 * hppa-tdep.h: Fix indentation.
749 * i386-bsd-nat.c: Fix indentation.
750 * i386-darwin-nat.c: Fix indentation.
751 * i386-darwin-tdep.c: Fix indentation.
752 * i386-dicos-tdep.c: Fix indentation.
753 * i386-gnu-nat.c: Fix indentation.
754 * i386-linux-nat.c: Fix indentation.
755 * i386-linux-tdep.c: Fix indentation.
756 * i386-nto-tdep.c: Fix indentation.
757 * i386-obsd-tdep.c: Fix indentation.
758 * i386-sol2-nat.c: Fix indentation.
759 * i386-tdep.c: Fix indentation.
760 * i386-tdep.h: Fix indentation.
761 * i386-windows-tdep.c: Fix indentation.
762 * i387-tdep.c: Fix indentation.
763 * i387-tdep.h: Fix indentation.
764 * ia64-libunwind-tdep.c: Fix indentation.
765 * ia64-libunwind-tdep.h: Fix indentation.
766 * ia64-linux-nat.c: Fix indentation.
767 * ia64-linux-tdep.c: Fix indentation.
768 * ia64-tdep.c: Fix indentation.
769 * ia64-tdep.h: Fix indentation.
770 * ia64-vms-tdep.c: Fix indentation.
771 * infcall.c: Fix indentation.
772 * infcmd.c: Fix indentation.
773 * inferior.c: Fix indentation.
774 * infrun.c: Fix indentation.
775 * iq2000-tdep.c: Fix indentation.
776 * language.c: Fix indentation.
777 * linespec.c: Fix indentation.
778 * linux-fork.c: Fix indentation.
779 * linux-nat.c: Fix indentation.
780 * linux-tdep.c: Fix indentation.
781 * linux-thread-db.c: Fix indentation.
782 * lm32-tdep.c: Fix indentation.
783 * m2-lang.c: Fix indentation.
784 * m2-typeprint.c: Fix indentation.
785 * m2-valprint.c: Fix indentation.
786 * m32c-tdep.c: Fix indentation.
787 * m32r-linux-tdep.c: Fix indentation.
788 * m32r-tdep.c: Fix indentation.
789 * m68hc11-tdep.c: Fix indentation.
790 * m68k-bsd-nat.c: Fix indentation.
791 * m68k-linux-nat.c: Fix indentation.
792 * m68k-linux-tdep.c: Fix indentation.
793 * m68k-tdep.c: Fix indentation.
794 * machoread.c: Fix indentation.
795 * macrocmd.c: Fix indentation.
796 * macroexp.c: Fix indentation.
797 * macroscope.c: Fix indentation.
798 * macrotab.c: Fix indentation.
799 * macrotab.h: Fix indentation.
800 * main.c: Fix indentation.
801 * mdebugread.c: Fix indentation.
802 * mep-tdep.c: Fix indentation.
803 * mi/mi-cmd-catch.c: Fix indentation.
804 * mi/mi-cmd-disas.c: Fix indentation.
805 * mi/mi-cmd-env.c: Fix indentation.
806 * mi/mi-cmd-stack.c: Fix indentation.
807 * mi/mi-cmd-var.c: Fix indentation.
808 * mi/mi-cmds.c: Fix indentation.
809 * mi/mi-main.c: Fix indentation.
810 * mi/mi-parse.c: Fix indentation.
811 * microblaze-tdep.c: Fix indentation.
812 * minidebug.c: Fix indentation.
813 * minsyms.c: Fix indentation.
814 * mips-linux-nat.c: Fix indentation.
815 * mips-linux-tdep.c: Fix indentation.
816 * mips-nbsd-tdep.c: Fix indentation.
817 * mips-tdep.c: Fix indentation.
818 * mn10300-linux-tdep.c: Fix indentation.
819 * mn10300-tdep.c: Fix indentation.
820 * moxie-tdep.c: Fix indentation.
821 * msp430-tdep.c: Fix indentation.
822 * namespace.h: Fix indentation.
823 * nat/fork-inferior.c: Fix indentation.
824 * nat/gdb_ptrace.h: Fix indentation.
825 * nat/linux-namespaces.c: Fix indentation.
826 * nat/linux-osdata.c: Fix indentation.
827 * nat/netbsd-nat.c: Fix indentation.
828 * nat/x86-dregs.c: Fix indentation.
829 * nbsd-nat.c: Fix indentation.
830 * nbsd-tdep.c: Fix indentation.
831 * nios2-linux-tdep.c: Fix indentation.
832 * nios2-tdep.c: Fix indentation.
833 * nto-procfs.c: Fix indentation.
834 * nto-tdep.c: Fix indentation.
835 * objfiles.c: Fix indentation.
836 * objfiles.h: Fix indentation.
837 * opencl-lang.c: Fix indentation.
838 * or1k-tdep.c: Fix indentation.
839 * osabi.c: Fix indentation.
840 * osabi.h: Fix indentation.
841 * osdata.c: Fix indentation.
842 * p-lang.c: Fix indentation.
843 * p-typeprint.c: Fix indentation.
844 * p-valprint.c: Fix indentation.
845 * parse.c: Fix indentation.
846 * ppc-linux-nat.c: Fix indentation.
847 * ppc-linux-tdep.c: Fix indentation.
848 * ppc-nbsd-nat.c: Fix indentation.
849 * ppc-nbsd-tdep.c: Fix indentation.
850 * ppc-obsd-nat.c: Fix indentation.
851 * ppc-ravenscar-thread.c: Fix indentation.
852 * ppc-sysv-tdep.c: Fix indentation.
853 * ppc64-tdep.c: Fix indentation.
854 * printcmd.c: Fix indentation.
855 * proc-api.c: Fix indentation.
856 * producer.c: Fix indentation.
857 * producer.h: Fix indentation.
858 * prologue-value.c: Fix indentation.
859 * prologue-value.h: Fix indentation.
860 * psymtab.c: Fix indentation.
861 * python/py-arch.c: Fix indentation.
862 * python/py-bpevent.c: Fix indentation.
863 * python/py-event.c: Fix indentation.
864 * python/py-event.h: Fix indentation.
865 * python/py-finishbreakpoint.c: Fix indentation.
866 * python/py-frame.c: Fix indentation.
867 * python/py-framefilter.c: Fix indentation.
868 * python/py-inferior.c: Fix indentation.
869 * python/py-infthread.c: Fix indentation.
870 * python/py-objfile.c: Fix indentation.
871 * python/py-prettyprint.c: Fix indentation.
872 * python/py-registers.c: Fix indentation.
873 * python/py-signalevent.c: Fix indentation.
874 * python/py-stopevent.c: Fix indentation.
875 * python/py-stopevent.h: Fix indentation.
876 * python/py-threadevent.c: Fix indentation.
877 * python/py-tui.c: Fix indentation.
878 * python/py-unwind.c: Fix indentation.
879 * python/py-value.c: Fix indentation.
880 * python/py-xmethods.c: Fix indentation.
881 * python/python-internal.h: Fix indentation.
882 * python/python.c: Fix indentation.
883 * ravenscar-thread.c: Fix indentation.
884 * record-btrace.c: Fix indentation.
885 * record-full.c: Fix indentation.
886 * record.c: Fix indentation.
887 * reggroups.c: Fix indentation.
888 * regset.h: Fix indentation.
889 * remote-fileio.c: Fix indentation.
890 * remote.c: Fix indentation.
891 * reverse.c: Fix indentation.
892 * riscv-linux-tdep.c: Fix indentation.
893 * riscv-ravenscar-thread.c: Fix indentation.
894 * riscv-tdep.c: Fix indentation.
895 * rl78-tdep.c: Fix indentation.
896 * rs6000-aix-tdep.c: Fix indentation.
897 * rs6000-lynx178-tdep.c: Fix indentation.
898 * rs6000-nat.c: Fix indentation.
899 * rs6000-tdep.c: Fix indentation.
900 * rust-lang.c: Fix indentation.
901 * rx-tdep.c: Fix indentation.
902 * s12z-tdep.c: Fix indentation.
903 * s390-linux-tdep.c: Fix indentation.
904 * score-tdep.c: Fix indentation.
905 * ser-base.c: Fix indentation.
906 * ser-mingw.c: Fix indentation.
907 * ser-uds.c: Fix indentation.
908 * ser-unix.c: Fix indentation.
909 * serial.c: Fix indentation.
910 * sh-linux-tdep.c: Fix indentation.
911 * sh-nbsd-tdep.c: Fix indentation.
912 * sh-tdep.c: Fix indentation.
913 * skip.c: Fix indentation.
914 * sol-thread.c: Fix indentation.
915 * solib-aix.c: Fix indentation.
916 * solib-darwin.c: Fix indentation.
917 * solib-frv.c: Fix indentation.
918 * solib-svr4.c: Fix indentation.
919 * solib.c: Fix indentation.
920 * source.c: Fix indentation.
921 * sparc-linux-tdep.c: Fix indentation.
922 * sparc-nbsd-tdep.c: Fix indentation.
923 * sparc-obsd-tdep.c: Fix indentation.
924 * sparc-ravenscar-thread.c: Fix indentation.
925 * sparc-tdep.c: Fix indentation.
926 * sparc64-linux-tdep.c: Fix indentation.
927 * sparc64-nbsd-tdep.c: Fix indentation.
928 * sparc64-obsd-tdep.c: Fix indentation.
929 * sparc64-tdep.c: Fix indentation.
930 * stabsread.c: Fix indentation.
931 * stack.c: Fix indentation.
932 * stap-probe.c: Fix indentation.
933 * stubs/ia64vms-stub.c: Fix indentation.
934 * stubs/m32r-stub.c: Fix indentation.
935 * stubs/m68k-stub.c: Fix indentation.
936 * stubs/sh-stub.c: Fix indentation.
937 * stubs/sparc-stub.c: Fix indentation.
938 * symfile-mem.c: Fix indentation.
939 * symfile.c: Fix indentation.
940 * symfile.h: Fix indentation.
941 * symmisc.c: Fix indentation.
942 * symtab.c: Fix indentation.
943 * symtab.h: Fix indentation.
944 * target-float.c: Fix indentation.
945 * target.c: Fix indentation.
946 * target.h: Fix indentation.
947 * tic6x-tdep.c: Fix indentation.
948 * tilegx-linux-tdep.c: Fix indentation.
949 * tilegx-tdep.c: Fix indentation.
950 * top.c: Fix indentation.
951 * tracefile-tfile.c: Fix indentation.
952 * tracepoint.c: Fix indentation.
953 * tui/tui-disasm.c: Fix indentation.
954 * tui/tui-io.c: Fix indentation.
955 * tui/tui-regs.c: Fix indentation.
956 * tui/tui-stack.c: Fix indentation.
957 * tui/tui-win.c: Fix indentation.
958 * tui/tui-winsource.c: Fix indentation.
959 * tui/tui.c: Fix indentation.
960 * typeprint.c: Fix indentation.
961 * ui-out.h: Fix indentation.
962 * unittests/copy_bitwise-selftests.c: Fix indentation.
963 * unittests/memory-map-selftests.c: Fix indentation.
964 * utils.c: Fix indentation.
965 * v850-tdep.c: Fix indentation.
966 * valarith.c: Fix indentation.
967 * valops.c: Fix indentation.
968 * valprint.c: Fix indentation.
969 * valprint.h: Fix indentation.
970 * value.c: Fix indentation.
971 * value.h: Fix indentation.
972 * varobj.c: Fix indentation.
973 * vax-tdep.c: Fix indentation.
974 * windows-nat.c: Fix indentation.
975 * windows-tdep.c: Fix indentation.
976 * xcoffread.c: Fix indentation.
977 * xml-syscall.c: Fix indentation.
978 * xml-tdesc.c: Fix indentation.
979 * xstormy16-tdep.c: Fix indentation.
980 * xtensa-config.c: Fix indentation.
981 * xtensa-linux-nat.c: Fix indentation.
982 * xtensa-linux-tdep.c: Fix indentation.
983 * xtensa-tdep.c: Fix indentation.
984
985 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
986 Craig Blackmore <craig.blackmore@embecosm.com>
987
988 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
989 as an unsigned value.
990
991 2020-11-01 Tom Tromey <tom@tromey.com>
992
993 * dbxread.c (dbx_end_psymtab): Update.
994 * dwarf2/read.c (process_psymtab_comp_unit_reader)
995 (build_type_psymtabs_reader): Update.
996 * xcoffread.c (xcoff_end_psymtab): Update.
997 * ctfread.c (scan_partial_symbols): Update.
998 * psymtab.c (sort_pst_symbols): Remove.
999 (partial_symtab::end): Rename from end_psymtab_common. Inline
1000 sort_pst_symbols.
1001 * psympriv.h (struct partial_symtab) <end>: New method.
1002 (end_psymtab_common): Don't declare.
1003
1004 2020-11-01 Tom Tromey <tom@tromey.com>
1005
1006 * symmisc.c (count_psyms): New function.
1007 (print_objfile_statistics): Use it.
1008 * psymtab.c (append_psymbol_to_list): Remove.
1009 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1010 * objfiles.h (struct objstats) <n_psyms>: Remove.
1011
1012 2020-11-01 Tom Tromey <tom@tromey.com>
1013
1014 * dbxread.c (dbx_end_psymtab): Update.
1015 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1016 (build_type_psymtabs_reader): Update.
1017 * xcoffread.c (xcoff_end_psymtab): Update.
1018 * ctfread.c (scan_partial_symbols): Update.
1019 * psympriv.h (end_psymtab_common): Update.
1020 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1021 (sort_pst_symbols): Likewise.
1022
1023 2020-11-01 Tom Tromey <tom@tromey.com>
1024
1025 * dbxread.c (dbx_symfile_read): Update.
1026 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1027 * xcoffread.c (xcoff_initial_scan): Update.
1028 * psympriv.h (init_psymbol_list): Don't declare.
1029 * psymtab.c (init_psymbol_list): Remove.
1030
1031 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1032
1033 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1034 gnat_encoded_fixed_type_info. Update all callers.
1035
1036 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1037
1038 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1039 line too long.
1040
1041 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1042
1043 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1044 cast_from_fixed. Update all callers.
1045 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1046 Update all callers.
1047 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1048 Update all callers.
1049 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1050 ada_scaling_factor.
1051 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1052 to print_gnat_encoded_fixed_point_type.
1053 * ada-valprint.c: Likewise.
1054
1055 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1058 (debug_prefixed_printf): Add check of debug_displaced flag.
1059 * linux-nat.c (linux_nat_debug_printf): Add check of
1060 debug_linux_nat flag.
1061
1062 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * infrun.c (infrun_debug_printf_1): Remove.
1065 (displaced_debug_printf_1): Remove.
1066 (stop_all_threads): Use debug_prefixed_printf.
1067 * infrun.h (infrun_debug_printf_1): Remove.
1068 (infrun_debug_printf): Use debug_prefixed_printf.
1069 (displaced_debug_printf_1): Remove.
1070 (displaced_debug_printf): Use debug_prefixed_printf.
1071 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1072 (linux_nat_debug_printf): Use debug_prefixed_printf.
1073
1074 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * configure: Re-generate.
1077 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1078 AC_LANG_PROGRAM.
1079
1080 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1081
1082 * configure: Re-generate.
1083
1084 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1085
1086 * configure: Re-generate.
1087
1088 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * configure: Re-generate.
1091
1092 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * configure: Re-generate.
1095
1096 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * acinclude.m4: Modernize.
1099 * configure: Re-generate.
1100
1101 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * configure.ac: Modernize.
1104 * configure: Re-generate.
1105
1106 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1109 * configure: Re-generate.
1110 * configure.ac: Remove AM_PROG_CC_STDC.
1111
1112 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1115 AC_CANONICAL_SYSTEM.
1116 * configure: Re-generate.
1117
1118 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * infrun.h (displaced_debug_printf): New macro. Replace
1121 displaced debug prints throughout to use it.
1122 (displaced_debug_printf_1): New declaration.
1123 (displaced_step_dump_bytes): Return string, remove ui_file
1124 parameter, update all callers.
1125 * infrun.c (displaced_debug_printf_1): New function.
1126 (displaced_step_dump_bytes): Return string, remove ui_file
1127 parameter
1128
1129 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1132
1133 2020-10-30 Tom Tromey <tromey@adacore.com>
1134
1135 * Makefile.in (stamp-init): Depend on config.status.
1136
1137 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1138
1139 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1140
1141 2020-10-30 Pedro Alves <pedro@palves.net>
1142
1143 * thread.c (lookup_selected_frame): Move ...
1144 * frame.c (lookup_selected_frame): ... here.
1145
1146 2020-10-30 Pedro Alves <pedro@palves.net>
1147
1148 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1149 * frame.c
1150 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1151 Use save_selected_frame. Save language as well.
1152 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1153 Use restore_selected_frame, and restore language as well.
1154 (selected_frame_id, selected_frame_level): New.
1155 (selected_frame): Update comments.
1156 (save_selected_frame, restore_selected_frame): New.
1157 (get_selected_frame): Use lookup_selected_frame.
1158 (get_selected_frame_if_set): Delete.
1159 (select_frame): Record selected_frame_level and selected_frame_id.
1160 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1161 fields.
1162 (get_selected_frame): Make 'message' parameter optional.
1163 (get_selected_frame_if_set): Delete declaration.
1164 (select_frame): Update comments.
1165 (save_selected_frame, restore_selected_frame)
1166 (lookup_selected_frame): Declare.
1167 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1168 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1169 New field.
1170 (save_infcall_control_state): Use save_selected_frame.
1171 (restore_selected_frame): Delete.
1172 (restore_infcall_control_state): Use restore_selected_frame.
1173 * stack.c (select_frame_command_core, frame_command_core): Use
1174 get_selected_frame.
1175 * thread.c (restore_selected_frame): Rename to ...
1176 (lookup_selected_frame): ... this and make extern. Select the
1177 current frame if the frame level is -1.
1178 (scoped_restore_current_thread::restore): Also restore the
1179 language.
1180 (scoped_restore_current_thread::~scoped_restore_current_thread):
1181 Don't try/catch.
1182 (scoped_restore_current_thread::scoped_restore_current_thread):
1183 Save the language as well. Use save_selected_frame.
1184
1185 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1188 documentation.
1189 * gdbarch.h: Re-generate.
1190
1191 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1194 parameter.
1195 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1196 Likewise.
1197 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1198 Likewise.
1199 * arch-utils.c (default_displaced_step_hw_singlestep):
1200 Likewise.
1201 * arch-utils.h (default_displaced_step_hw_singlestep):
1202 Likewise.
1203 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1204 Likewise.
1205 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1206 Likewise.
1207 * gdbarch.c: Re-generate.
1208 * gdbarch.h: Re-generate.
1209 * infrun.c (resume_1): Adjust.
1210
1211 2020-10-29 Tom Tromey <tom@tromey.com>
1212
1213 * progspace.c (program_space::~program_space): Don't call
1214 exec_close.
1215
1216 2020-10-29 Tom Tromey <tom@tromey.com>
1217
1218 * exec.c (exec_target::close): Don't change current program
1219 space.
1220
1221 2020-10-29 Tom Tromey <tom@tromey.com>
1222
1223 * symfile.c (add_symbol_file_command): Update.
1224 * exec.c (program_space::add_target_sections): Rename.
1225 * symfile-mem.c (symbol_file_add_from_memory): Update.
1226 * progspace.h (struct program_space) <add_target_sections>:
1227 Declare new overload.
1228 * exec.h (add_target_sections_of_objfile): Don't declare.
1229
1230 2020-10-29 Tom Tromey <tom@tromey.com>
1231
1232 * solib.c (solib_map_sections): Update.
1233 * exec.c (program_space::add_target_sections): Now a method.
1234 (exec_file_attach): Update.
1235 * exec.h (add_target_sections): Don't declare.
1236 * progspace.h (struct program_space) <add_target_sections>:
1237 Declare.
1238
1239 2020-10-29 Tom Tromey <tom@tromey.com>
1240
1241 * progspace.h (struct program_space) <remove_target_sections>:
1242 Declare.
1243 * exec.c (program_space::remove_target_sections): Now a method.
1244 * exec.h (remove_target_sections): Don't declare.
1245
1246 2020-10-29 Tom Tromey <tom@tromey.com>
1247
1248 * inferior.c (delete_inferior): Update.
1249 * progspace.c (program_space::empty): Rename from
1250 program_space_empty_p. Return bool.
1251 * progspace.h (struct program_space) <empty>: New method.
1252 (program_space_empty_p): Don't declare.
1253
1254 2020-10-29 Tom Tromey <tom@tromey.com>
1255
1256 * progspace.c (program_space::~program_space): Don't call
1257 clear_program_space_solib_cache.
1258 (program_space::clear_solib_cache): Rename from
1259 clear_solib_cache.
1260 * solib.c (handle_solib_event): Update.
1261 * progspace.h (struct program_space) <clear_solib_cache>: New
1262 method.
1263 (clear_program_space_solib_cache): Don't declare.
1264
1265 2020-10-29 Tom Tromey <tom@tromey.com>
1266
1267 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1268 * target.c (info_target_command): Update.
1269 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1270 (symbol_file_clear, reread_symbols): Update.
1271 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1272 * stabsread.c (scan_file_globals): Update.
1273 * solib.c (update_solib_list): Update.
1274 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1275 (svr4_fetch_objfile_link_map, enable_break)
1276 (svr4_relocate_main_executable)
1277 (svr4_iterate_over_objfiles_in_search_order): Update.
1278 * solib-frv.c (lm_base, enable_break)
1279 (frv_relocate_main_executable): Update.
1280 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1281 (frv_fetch_objfile_link_map): Update.
1282 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1283 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1284 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1285 * remote.c (remote_target::get_offsets): Update.
1286 (remote_target::start_remote)
1287 (extended_remote_target::post_attach): Update.
1288 * objfiles.c (entry_point_address_query): Update.
1289 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1290 * minsyms.c (get_symbol_leading_char): Update.
1291 * frame.c (inside_main_func): Update.
1292 * progspace.h (symfile_objfile): Remove macro.
1293
1294 2020-10-29 Tom Tromey <tom@tromey.com>
1295
1296 * exec.c (exec_file_attach): Update.
1297 * progspace.c (program_space::exec_close): Update.
1298 * progspace.h (struct program_space) <ebfd>: Now a
1299 gdb_bfd_ref_ptr.
1300 <set_exec_bfd>: Change argument type.
1301 <exec_bfd>: Update.
1302
1303 2020-10-29 Tom Tromey <tom@tromey.com>
1304
1305 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1306 * symfile.c (reread_symbols): Update.
1307 * symfile-mem.c (add_symbol_file_from_memory_command)
1308 (add_vsyscall_page): Update.
1309 * source-cache.c (source_cache::get_plain_source_lines): Update.
1310 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1311 (svr4_current_sos_direct, svr4_exec_displacement)
1312 (svr4_relocate_main_executable): Update.
1313 (svr4_iterate_over_objfiles_in_search_order): Update.
1314 * solib-frv.c (enable_break2, enable_break): Update.
1315 * solib-dsbt.c (lm_base, enable_break): Update.
1316 * solib-darwin.c (find_program_interpreter)
1317 (darwin_solib_create_inferior_hook): Update.
1318 * sol-thread.c (rw_common, ps_pdmodel): Update.
1319 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1320 * remote.c (compare_sections_command)
1321 (remote_target::trace_set_readonly_regions): Update.
1322 * remote-sim.c (get_sim_inferior_data)
1323 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1324 (gdbsim_target_open, gdbsim_target::files_info): Update.
1325 * exec.h (exec_bfd): Remove macro.
1326 * progspace.c (initialize_progspace): Update.
1327 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1328 Update.
1329 * nto-procfs.c (nto_procfs_target::post_attach)
1330 (nto_procfs_target::create_inferior): Update.
1331 * maint.c (maintenance_info_sections): Update.
1332 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1333 Update.
1334 * infcmd.c (post_create_inferior): Update.
1335 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1336 (objfile_find_memory_regions): Update.
1337 * exec.c (validate_exec_file, exec_file_attach)
1338 (exec_read_partial_read_only, print_section_info): Update.
1339 * corelow.c (core_target_open): Update.
1340 * corefile.c (reopen_exec_file, validate_files): Update.
1341 * arm-tdep.c (gdb_print_insn_arm): Update.
1342 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1343 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1344 methods.
1345
1346 2020-10-29 Tom Tromey <tom@tromey.com>
1347
1348 * progspace.h (current_target_sections): Remove macro.
1349 * solib-svr4.c (scan_dyntag): Update.
1350 * solib-dsbt.c (scan_dyntag): Update.
1351 * exec.c (exec_target::close): Update.
1352 (add_target_sections, add_target_sections_of_objfile)
1353 (remove_target_sections, exec_target::get_section_table)
1354 (exec_target::files_info, set_section_command)
1355 (exec_set_section_address, exec_target::has_memory)
1356 (exec_target::has_memory): Update.
1357
1358 2020-10-29 Tom Tromey <tom@tromey.com>
1359
1360 * source-cache.c (source_cache::get_plain_source_lines): Use
1361 current_program_space.
1362 * corefile.c (reopen_exec_file): Use current_program_space.
1363 * exec.c (exec_file_attach): Use current_program_space.
1364 * exec.h (exec_bfd_mtime): Remove.
1365
1366 2020-10-29 Tom Tromey <tom@tromey.com>
1367
1368 * gcore.c (default_gcore_mach): Remove.
1369 (create_gcore_bfd): Update.
1370
1371 2020-10-29 Tom Tromey <tom@tromey.com>
1372
1373 * progspace.c (program_space::exec_close): New method, from
1374 exec_close in exec.c.
1375 * exec.c (exec_close): Move to progspace.c.
1376 (exec_target::close, exec_file_attach): Update.
1377 * progspace.h (struct program_space) <exec_close>: Declare
1378 method.
1379
1380 2020-10-29 Tom Tromey <tom@tromey.com>
1381
1382 * progspace.h (struct program_space) <exec_filename>: Rename from
1383 pspace_exec_filename. Now a unique_xmalloc_ptr.
1384 * inferior.c (print_selected_inferior): Update.
1385 (print_inferior): Update.
1386 * mi/mi-main.c (print_one_inferior): Update.
1387 * exec.h (exec_filename): Remove macro.
1388 * corefile.c (get_exec_file): Update.
1389 * exec.c (exec_close): Update.
1390 (exec_file_attach): Update.
1391 * progspace.c (clone_program_space): Update.
1392 (print_program_space): Update.
1393
1394 2020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * target-section.h (struct target_section): Add constructor.
1397 * exec.c (build_section_table, add_target_sections_of_objfile):
1398 Update.
1399 * corelow.c (core_target::build_file_mappings): Update.
1400
1401 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402
1403 PR gdb/19318
1404 * inferior.c (detach_inferior_command): Restore the current thread.
1405 (kill_inferior_command): Ditto.
1406
1407 2020-10-28 Tom de Vries <tdevries@suse.de>
1408
1409 PR symtab/26772
1410 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1411 map, check it in the "best match" loop.
1412
1413 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1414
1415 * m32c-tdep.c: Remove unused includes.
1416
1417 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * xtensa-tdep.c: Remove includes.
1420
1421 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1422
1423 * breakpoint.c (struct condition_command_opts): New struct.
1424 (condition_command_option_defs): New static global.
1425 (make_condition_command_options_def_group): New function.
1426 (condition_completer): Update to consider the '-force' flag.
1427 (condition_command): Use gdb::option for the '-force' flag.
1428
1429 2020-10-27 Tom de Vries <tdevries@suse.de>
1430
1431 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1432 symbols in section check.
1433
1434 2020-10-27 Tom de Vries <tdevries@suse.de>
1435
1436 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1437
1438 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1439
1440 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1441 * breakpoint.c: Update the help text of the 'condition' and 'break'
1442 commands.
1443 (set_breakpoint_condition): Take a new bool parameter
1444 to control whether condition definition should be forced even when
1445 the condition expression is invalid in all of the current locations.
1446 (condition_command): Update the call to 'set_breakpoint_condition'.
1447 (find_condition_and_thread): Take the "-force-condition" flag into
1448 account.
1449 * linespec.c (linespec_keywords): Add "-force-condition" as an
1450 element.
1451 (FORCE_KEYWORD_INDEX): New #define.
1452 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1453 as a keyword.
1454 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1455 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1456 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1457 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1458
1459 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1460
1461 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1462 * breakpoint.c (set_breakpoint_location_condition): New function.
1463 (set_breakpoint_condition): Disable a breakpoint location if parsing
1464 the condition string gives an error.
1465 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1466 (build_target_condition_list): Ditto.
1467 (build_target_command_list): Ditto.
1468 (build_bpstat_chain): Ditto.
1469 (print_one_breakpoint_location): Ditto.
1470 (print_one_breakpoint): Ditto.
1471 (breakpoint_1): Ditto.
1472 (bp_location::bp_location): Ditto.
1473 (locations_are_equal): Ditto.
1474 (update_breakpoint_locations): Ditto.
1475 (enable_disable_bp_num_loc): Ditto.
1476 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1477 (find_condition_and_thread_for_sals): New static function.
1478 (create_breakpoint): Call find_condition_and_thread_for_sals.
1479 (location_to_sals): Call find_condition_and_thread_for_sals instead
1480 of find_condition_and_thread.
1481
1482 2020-10-26 Tom de Vries <tdevries@suse.de>
1483
1484 * dwarf2/read.c (process_full_comp_unit): Call
1485 dwarf2_find_base_address.
1486
1487 2020-10-26 Tom Tromey <tromey@adacore.com>
1488
1489 * gdbtypes.c (create_range_type): Revert previous patch. Add
1490 comment.
1491
1492 2020-10-26 Pedro Alves <pedro@palves.net>
1493
1494 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1495 (my_waitpid): Use gdb::handle_eintr.
1496
1497 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * acinclude.m4: Update ptrace.m4 path.
1500 * ptrace.m4: Moved to gdbsupport.
1501
1502 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1505 instead of target_gdbarch.
1506
1507 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * jit.c (jit_reader_load_command): Pass current inferior.
1510 (jit_inferior_init): Change parameter type to inferior, use it.
1511 (jit_inferior_created): Remove.
1512 (jit_inferior_created_hook): Pass inferior parameter down.
1513 (_initialize_jit): Use jit_inferior_created_hook instead of
1514 jit_inferior_created.
1515 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1516 * infrun.c (follow_exec): Pass inferior to
1517 jit_inferior_created_hook.
1518
1519 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1522 parameter and use it.
1523 (thread_db_inferior_created): Pass inferior argument.
1524
1525 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1526
1527 * aix-thread.c (aix_thread_inferior_created): Add inferior
1528 parameter.
1529 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1530 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1531 * jit.c (jit_inferior_created): Likewise.
1532 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1533 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1534 * observable.h (inferior_created): Likewise.
1535 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1536 * symfile-mem.c (add_vsyscall_page): Likewise.
1537 * infcmd.c (post_create_inferior): Pass inferior argument.
1538
1539 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1540
1541 GDB 10.1 released.
1542
1543 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1544
1545 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1546 to ada_check_typedef.
1547
1548 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * f-exp.y (f_parse): Rename to...
1551 (f_language::parser): ...this.
1552 * f-lang.c (f_get_encoding): Rename to...
1553 (f_language::get_encoding): ...this.
1554 (f_op_print_tab): Rename to...
1555 (f_language::op_print_tab): ...this.
1556 (exp_descriptor_f): Rename to...
1557 (f_language::exp_descriptor_tab): ...this.
1558 (class f_language): Moved to f-lang.h.
1559 (f_language::language_arch_info): New function, moved out of class
1560 declaration.
1561 (f_language::search_name_hash): Likewise.
1562 (f_language::lookup_symbol_nonlocal): Likewise.
1563 (f_language::get_symbol_name_matcher_inner): Likewise.
1564 * f-lang.h: Add 'valprint.h' include.
1565 (class f_language): Moved here from f-lang.c.
1566 * f-typeprint.c (f_type_print_args): Delete commented out
1567 declaration.
1568 (f_print_typedef): Rename to...
1569 (f_language::print_typedef): ...this.
1570 (f_print_type): Rename to...
1571 (f_language::print_type): ...this.
1572 (f_type_print_varspec_prefix): Delete declaration and rename to...
1573 (f_language::f_type_print_varspec_prefix): ...this.
1574 (f_type_print_varspec_suffix): Delete declaration and rename to...
1575 (f_language::f_type_print_varspec_suffix): ...this.
1576 (f_type_print_base): Delete declaration and rename to...
1577 (f_language::f_type_print_base): ...this.
1578 * f-valprint.c (f_value_print_inner): Rename to...
1579 (f_language::value_print_inner): ...this.
1580 * parse.c: Delete 'f-lang.h' include.
1581
1582 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * language.h (language_defn::print_type): Add variable names in
1585 declaration, and update header comment.
1586
1587 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * ada-lang.c (ada_language::demangle): Rename to...
1590 (ada_language::demangle_symbol): ...this.
1591 * c-lang.c (cplus_language::demangle): Rename to...
1592 (cplus_language::demangle_symbol): ...this.
1593 * d-lang.c (d_language::demangle): Rename to...
1594 (d_language::demangle_symbol): ...this.
1595 * f-lang.c (f_language::demangle): Rename to...
1596 (f_language::demangle_symbol): ...this.
1597 * go-lang.c (go_language::demangle): Rename to...
1598 (go_language::demangle_symbol): ...this.
1599 * language.c (language_demangle): Update call to demangle_symbol.
1600 (auto_or_unknown_language::demangle): Rename to...
1601 (auto_or_unknown_language::demangle_symbol): ...this.
1602 * language.h (language_defn::demangle): Rename to...
1603 (language_defn::demangle_symbol): ...this.
1604 * objc-lang.c (objc_language::demangle): Rename to...
1605 (objc_language::demangle_symbol): ...this.
1606 * rust-lang.c (rust_language::demangle): Rename to...
1607 (rust_language::demangle_symbol): ...this.
1608
1609 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1612 (iterate_over_file_blocks): Replace use of macro with the macros
1613 definition.
1614
1615 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1618 * valprint.c (maybe_print_array_index): Replace use of macro with
1619 the macros definition.
1620
1621 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1622
1623 * ada-lang.c (ada_language::print_array_index): Call value_print
1624 directly.
1625 * language.c (language_defn::print_array_index): Likewise.
1626 * language.h (LA_VALUE_PRINT): Delete.
1627 * valprint.c (value_print): Call value_print on the
1628 current_language directly.
1629
1630 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1631
1632 * language.h (LA_PRINT_TYPEDEF): Delete.
1633 * typeprint.c (typedef_print): Call print_typedef directly on the
1634 current_language object.
1635
1636 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * m2-exp.y (m2_parse): Rename to...
1639 (m2_language::parser): ...this. Update function signature.
1640 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1641 (m2_op_print): Rename to...
1642 (m2_language::op_print_tab): ...this, and make const.
1643 (exp_descriptor_modula2): Rename to...
1644 (m2_language::exp_descriptor_modula2): ...this.
1645 (class m2_language): Move to m2-lang.h.
1646 (m2_language::language_arch_info): New function, moved out of
1647 class declaration.
1648 (m2_language::printchar): New function, body from m2_printchar.
1649 (m2_language::printstr): New function, moved out of class
1650 declaration.
1651 (m2_language::emitchar): Likewise.
1652 * m2-lang.h (m2_parse): Delete declaration.
1653 (m2_print_typedef): Delete declaration.
1654 (m2_value_print_inner): Delete declaration.
1655 (class m2_language): Class declaration moved from m2-lang.c,
1656 larger functions are left in m2-lang.c.
1657 * m2-typeprint.c (m2_print_typedef): Rename to...
1658 (m2_language::print_typedef): ...this, and update function
1659 signature.
1660 * m2-valprint.c (m2_value_print_inner): Rename to...
1661 (m2_language::value_print_inner): ...this, replace use of
1662 LA_PRINT_STRING with a direct call to printstr member function,
1663 and update recursive call.
1664
1665 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * language.c (default_is_string_type_p): Delete, implementation
1668 moved into auto_or_unknown_language::is_string_type_p.
1669 (unk_op_print_tab): Moved into
1670 auto_or_unknown_language::opcode_print_table.
1671 (unknown_language_arch_info): Delete, implementation moved into
1672 auto_or_unknown_language::language_arch_info.
1673 (class auto_or_unknown_language): New class, member functions
1674 copied from unknown_language class, with some updates.
1675 (class unknown_language): Most member functions moved into
1676 auto_or_unknown_language class. Inherit from
1677 auto_or_unknown_language class.
1678 (class auto_language): Inherit from auto_or_unknown_language.
1679 Delete most member functions.
1680
1681 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1682
1683 * stabsread.c (read_member_functions): Remove gdb_assert.
1684
1685 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1686
1687 * gdbtypes.c (init_complex_type): Check target type name.
1688
1689 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1690
1691 * target-debug.h (target_debug_print_struct_target_ops_p):
1692 Remove.
1693 (target_debug_print_async_callback_ftype_p): Remove.
1694 (target_debug_print_struct_trace_state_variable_p): Remove.
1695 (target_debug_print_struct_traceframe_info_p): Remove.
1696 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1697 (target_debug_print_enum_btrace_format): Remove.
1698 (target_debug_print_enum_info_proc_what): Remove.
1699 (target_debug_print_thread_info_pp): Remove.
1700
1701 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * target.h (struct target_ops) <make_corefile_notes>:
1704 Change return type to unique pointer.
1705 * target.c (dummy_make_corefile_notes): Likewise.
1706 * exec.c (struct exec_target) <make_corefile_notes>:
1707 Likewise.
1708 (exec_target::make_corefile_notes): Likewise.
1709 * procfs.c (class procfs_target) <make_corefile_notes>:
1710 Likewise.
1711 (procfs_do_thread_registers): Adjust to unique pointer.
1712 (struct procfs_corefile_thread_data): Add constructor.
1713 <note_data>: Change type to unique pointer.
1714 (procfs_corefile_thread_callback): Adjust to unique pointer.
1715 (procfs_target::make_corefile_notes): Change return type to
1716 unique pointer.
1717 * target-delegates.c: Re-generate.
1718 * gcore.c (write_gcore_file_1): Adjust.
1719 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1720 New.
1721
1722 2020-10-22 Tom de Vries <tdevries@suse.de>
1723
1724 * block.c (find_block_in_blockvector): Make sure the returned block
1725 contains pc.
1726
1727 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 PR gdb/26693
1730 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1731 parameter.
1732 (load_cu): Pass existing CU.
1733 (process_imported_unit_die): Likewise.
1734 (follow_die_offset): Likewise.
1735
1736 2020-10-22 Luis Machado <luis.machado@linaro.org>
1737
1738 * corelow.c (core_target::xfer_partial): Also check for an empty
1739 m_core_unavailable_mappings vector.
1740
1741 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1744 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1745 * f-exp.y (arglist): Allow for a series of subranges.
1746 (subrange): Add cases for subranges with strides.
1747 * f-lang.c (value_f90_subarray): Catch use of array strides and
1748 throw an error.
1749 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1750
1751 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * expprint.c (print_subexp_standard): Change enum range_type to
1754 range_flag and rename variables to match.
1755 (dump_subexp_body_standard): Likewise.
1756 * expression.h (enum range_type): Rename to...
1757 (enum range_flag): ...this.
1758 (range_types): Rename to...
1759 (range_flags): ...this.
1760 * f-lang.c (value_f90_subarray): Change enum range_type to
1761 range_flag and rename variables to match.
1762 * parse.c (operator_length_standard): Likewise.
1763 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1764 range_type to range_flag.
1765 * rust-lang.c (rust_evaluate_funcall): Likewise.
1766 (rust_range): Likewise.
1767 (rust_compute_range): Likewise.
1768 (rust_subscript): Likewise.
1769
1770 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * expprint.c (print_subexp_standard): Update to reflect changes to
1773 enum range_type.
1774 (dump_subexp_body_standard): Likewise.
1775 * expression.h (enum range_type): Convert to a bit field enum, and
1776 make the enum unsigned.
1777 * f-exp.y (subrange): Update to reflect changes to enum
1778 range_type.
1779 * f-lang.c (value_f90_subarray): Likewise.
1780 * parse.c (operator_length_standard): Likewise.
1781 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1782 * rust-lang.c (rust_range): Likewise.
1783 (rust_compute_range): Likewise.
1784 (rust_subscript): Likewise.
1785
1786 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1789 (displaced_step_in_progress): Fix comment.
1790
1791 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1794 * gdbarch.c: Re-generate.
1795 * gdbarch.h: Re-generate.
1796 * gcore.c (write_gcore_file_1): Adjust.
1797 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1798 constructor.
1799 <note_data>: Change type to unique pointer.
1800 <abort_iteration>: Change type to bool.
1801 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1802 (fbsd_collect_thread_registers): Return void, adjust.
1803 (struct fbsd_corefile_thread_data): Add construtor.
1804 <note_data>: Change type to unique pointer.
1805 (fbsd_corefile_thread): Adjust.
1806 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1807 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1808 to unique pointer, adjust.
1809 (struct linux_collect_regset_section_cb_data): Add constructor.
1810 <note_data>: Change type to unique pointer.
1811 <abort_iteration>: Change type to bool.
1812 (linux_collect_thread_registers): Return void, adjust.
1813 (struct linux_corefile_thread_data): Add constructor.
1814 <note_data>: Change type to unique pointer.
1815 (linux_corefile_thread): Adjust.
1816 (linux_make_corefile_notes): Return unique pointer, adjust.
1817
1818 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1821 * gdbarch.c: Re-generate.
1822 * gdbarch.h: Re-generate.
1823 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1824 bool.
1825 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1826 Likewise.
1827 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1828 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1829 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1830 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1831
1832 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * gdbarch.sh: Make generated predicates return bool.
1835 * gdbarch.c: Re-generate.
1836 * gdbarch.h: Re-generate.
1837
1838 2020-10-20 Tom Tromey <tom@tromey.com>
1839
1840 * varobj-iter.h (struct varobj_item): Remove typedef.
1841
1842 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * infrun.c (currently_stepping): Change int to bool
1845 (maybe_software_singlestep): Likewise.
1846 (show_stop_on_solib_events): Likewise.
1847 (stepping_past_nonsteppable_watchpoint): Likewise.
1848 (displaced_step_in_progress_any_inferior): Likewise.
1849 (displaced_step_in_progress_thread): Likewise.
1850 (keep_going_stepped_thread): Likewise.
1851 (thread_still_needs_step_over): Likewise.
1852 (start_step_over): Likewise.
1853 (do_target_resume): Likewise.
1854 (resume_1): Likewise.
1855 (clear_proceed_status): Likewise.
1856 (thread_still_needs_step_over_bp): Likewise.
1857 (proceed): Likewise.
1858 (switch_back_to_stepped_thread): Likewise.
1859 (adjust_pc_after_break): Likewise.
1860 (stepped_in_from): Likewise.
1861 (handle_stop_requested): Likewise.
1862 (handle_syscall_event): Likewise.
1863 (handle_no_resumed): Likewise.
1864 (handle_inferior_event): Likewise.
1865 (finish_step_over): Likewise.
1866 (handle_signal_stop): Likewise.
1867 (process_event_stop_test): Likewise.
1868
1869 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1870
1871 * infrun.c (get_displaced_stepping_state): Fix comment.
1872
1873 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1874
1875 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1876
1877 2020-10-19 Tom Tromey <tromey@adacore.com>
1878
1879 PR tui/26719
1880 * tui/tui-winsource.h (struct tui_source_window_base)
1881 <refresh_window>: Rename from refresh_pad.
1882 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1883 Rename from refresh_pad.
1884 (tui_source_window_base::show_source_content)
1885 (tui_source_window_base::do_scroll_horizontal): Update.
1886
1887 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1888
1889 * thread.c (_initialize_thread): Fine-tune the help text of
1890 'info threads'.
1891
1892 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1893
1894 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1895
1896 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1897
1898 * breakpoint.c (handle_jit_event): Add an argument, change how
1899 `jit_event_handler` is called.
1900
1901 2020-10-17 Tom Tromey <tom@tromey.com>
1902
1903 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1904 (scan_xcoff_symtab): Update.
1905 * psymtab.h (class psymtab_storage) <global_psymbols,
1906 static_psymbols, current_global_psymbols,
1907 current_static_psymbols>: Remove.
1908 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1909 (match_partial_symbol, lookup_partial_symbol): Update.
1910 (print_partial_symbols): Change parameters.
1911 (dump_psymtab, recursively_search_psymtabs)
1912 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1913 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1914 (concat): Remove.
1915 (end_psymtab_common): Simplify.
1916 (append_psymbol_to_list): Change parameters.
1917 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1918 (init_psymbol_list): Simplify.
1919 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1920 * psympriv.h (struct partial_symtab) <empty>: New method.
1921 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1922 Remove.
1923 <global_psymbols, static_psymbols>: New members.
1924 <add_psymbol>: New methods.
1925 (add_psymbol_to_list): Don't declare.
1926 (psymbol_placement): Move earlier.
1927 * mdebugread.c (parse_partial_symbols): Update.
1928 (handle_psymbol_enumerators): Change parameters.
1929 (mdebug_expand_psymtab): Update.
1930 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1931 (add_partial_symbol): Update.
1932 * dwarf2/index-write.c (write_psymbols): Change parameters.
1933 (write_one_signatured_type): Update.
1934 (recursively_count_psymbols): Update.
1935 (recursively_write_psymbols): Update.
1936 (class debug_names) <recursively_write_psymbols>: Update.
1937 <write_psymbols>: Change parameters.
1938 <write_one_signatured_type>: Update.
1939 * dbxread.c (read_dbx_symtab): Update.
1940 (dbx_end_psymtab): Use partial_symtab::empty.
1941 * ctfread.c (struct ctf_context) <pst>: New member.
1942 (create_partial_symtab): Set it.
1943 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1944 (scan_partial_symbols): Use the psymtab's context. Update.
1945
1946 2020-10-17 Tom Tromey <tom@tromey.com>
1947
1948 * valprint.c (generic_value_print): Remove comment.
1949 * m2-valprint.c (m2_value_print_inner): Remove comment.
1950 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1951 type.
1952
1953 2020-10-17 Tom de Vries <tdevries@suse.de>
1954
1955 PR symtab/26317
1956 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1957 symbol main.
1958
1959 2020-10-14 Tom de Vries <tdevries@suse.de>
1960
1961 PR gdb/26733
1962 * solib.c (solib_contains_address_p): Handle
1963 'solib->sections == nullptr'.
1964
1965 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 PR gdb/26642
1968 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1969 target can't do async.
1970 * target.c (target_wait): Assert that we don't pass
1971 TARGET_WNOHANG to a target that can't async.
1972
1973 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1974
1975 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1976 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1977 * alpha-bsd-nat.c: Adjust include.
1978 * alpha-bsd-tdep.h: Adjust comment.
1979 * alpha-nbsd-tdep.c: Rename to ...
1980 * alpha-netbsd-tdep.c: ... this, adjust include.
1981 * amd64-nbsd-nat.c: Rename to ...
1982 * amd64-netbsd-nat.c: ... this, adjust include.
1983 * amd64-nbsd-tdep.c: Rename to ...
1984 * amd64-netbsd-tdep.c: ... this, adjust include.
1985 * amd64-tdep.h: Adjust include.
1986 * arm-nbsd-nat.c: Rename to ...
1987 * arm-netbsd-nat.c: ... this, adjust include.
1988 * arm-nbsd-tdep.c: Rename to ...
1989 * arm-netbsd-tdep.c: ... this, adjust include.
1990 * arm-nbsd-tdep.h: Rename to ...
1991 * arm-netbsd-tdep.h: ... this, adjust include.
1992 * configure.nat: Adjust file lists.
1993 * configure.tgt: Likewise.
1994 * hppa-nbsd-nat.c: Rename to ...
1995 * hppa-netbsd-nat.c: ... this, adjust include.
1996 * hppa-nbsd-tdep.c: Rename to ...
1997 * hppa-netbsd-tdep.c: ... this, adjust include.
1998 * i386-nbsd-nat.c: Rename to ...
1999 * i386-netbsd-nat.c: ... this, adjust include.
2000 * i386-nbsd-tdep.c: Rename to ...
2001 * i386-netbsd-tdep.c: ... this, adjust include.
2002 * m68k-bsd-nat.c: Adjust include.
2003 * mips-nbsd-nat.c: Rename to ...
2004 * mips-netbsd-nat.c: ... this, adjust include.
2005 * mips-nbsd-tdep.c: Rename to ...
2006 * mips-netbsd-tdep.c: ... this, adjust include.
2007 * mips-nbsd-tdep.h: Rename to ...
2008 * mips-netbsd-tdep.h: ... this.
2009 * nbsd-nat.c: Rename to ...
2010 * netbsd-nat.c: ... this, adjust include.
2011 * nbsd-nat.h: Rename to ...
2012 * netbsd-nat.h: ... this, adjust include.
2013 * nbsd-tdep.c: Rename to ...
2014 * netbsd-tdep.c: ... this, adjust include.
2015 * nbsd-tdep.h: Rename to ...
2016 * netbsd-tdep.h: ... this.
2017 * ppc-nbsd-nat.c: Rename to ...
2018 * ppc-netbsd-nat.c: ... this, adjust include.
2019 * ppc-nbsd-tdep.c: Rename to ...
2020 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2021 * ppc-nbsd-tdep.h: Rename to ...
2022 * ppc-netbsd-tdep.h: ... this.
2023 * sh-nbsd-nat.c: Rename to ...
2024 * sh-netbsd-nat.c: ... this, adjust include.
2025 * sh-nbsd-tdep.c: Rename to ...
2026 * sh-netbsd-tdep.c: ... this, adjust include.
2027 * sparc-nbsd-nat.c: Rename to ...
2028 * sparc-netbsd-nat.c: ... this.
2029 * sparc-nbsd-tdep.c: Rename to ...
2030 * sparc-netbsd-tdep.c: ... this, adjust include.
2031 * sparc64-nbsd-nat.c: Rename to ...
2032 * sparc64-netbsd-nat.c: ... this.
2033 * sparc64-nbsd-tdep.c: Rename to ...
2034 * sparc64-netbsd-tdep.c: ... this, adjust include.
2035 * sparc64-tdep.h: Adjust comment.
2036 * vax-bsd-nat.c: Adjust include.
2037 * vax-nbsd-tdep.c: Rename to ...
2038 * vax-netbsd-tdep.c: ... this, adjust include.
2039
2040 2020-10-12 Tom Tromey <tom@tromey.com>
2041
2042 * target.h (struct target_ops) <get_section_table>: Update.
2043 (target_get_section_table): Update.
2044 * target.c (target_get_section_table, target_section_by_addr)
2045 (memory_xfer_partial_1): Update.
2046 * target-section.h (target_section_table): Now an alias.
2047 * target-delegates.c: Rebuild.
2048 * target-debug.h (target_debug_print_target_section_table_p):
2049 Rename from target_debug_print_struct_target_section_table_p.
2050 * symfile.c (build_section_addr_info_from_section_table): Update.
2051 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2052 * solib-svr4.c (scan_dyntag): Update.
2053 * solib-dsbt.c (scan_dyntag): Update.
2054 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2055 Update.
2056 * record-full.c (record_full_core_target::xfer_partial): Update.
2057 * progspace.h (struct program_space) <target_sections>: Update.
2058 * exec.h (print_section_info): Update.
2059 * exec.c (exec_target::close, build_section_table)
2060 (add_target_sections, add_target_sections_of_objfile)
2061 (remove_target_sections, exec_on_vfork)
2062 (section_table_available_memory)
2063 (section_table_xfer_memory_partial)
2064 (exec_target::get_section_table, exec_target::xfer_partial)
2065 (print_section_info, set_section_command)
2066 (exec_set_section_address, exec_target::has_memory): Update.
2067 * corelow.c (core_target::build_file_mappings)
2068 (core_target::xfer_partial, core_target::info_proc_mappings)
2069 (core_target::info_proc_mappings): Update.
2070 * bfd-target.c (class target_bfd): Update
2071
2072 2020-10-12 Tom Tromey <tom@tromey.com>
2073
2074 * progspace.c (program_space::~program_space): Don't call
2075 clear_section_table.
2076 * exec.h (clear_section_table): Don't declare.
2077 * exec.c (exec_target::close): Update.
2078 (clear_section_table): Remove.
2079
2080 2020-10-12 Tom Tromey <tom@tromey.com>
2081
2082 * exec.c (add_target_sections_of_objfile): Simplify.
2083
2084 2020-10-12 Tom Tromey <tom@tromey.com>
2085
2086 * solib.c (solib_map_sections): Update.
2087 * record-full.c (record_full_core_open_1): Update.
2088 * exec.h (build_section_table): Return a target_section_table.
2089 * exec.c (exec_file_attach): Update.
2090 (build_section_table): Return a target_section_table.
2091 * corelow.c (core_target::core_target): Update.
2092 * bfd-target.c (target_bfd::target_bfd): Update.
2093
2094 2020-10-12 Tom Tromey <tom@tromey.com>
2095
2096 * target.c (target_section_by_addr, memory_xfer_partial_1):
2097 Update.
2098 * target-section.h (struct target_section_table): Use
2099 std::vector.
2100 * symfile.h (build_section_addr_info_from_section_table): Take a
2101 target_section_table.
2102 * symfile.c (build_section_addr_info_from_section_table): Take a
2103 target_section_table.
2104 * solist.h (struct so_list) <sections>: Change type.
2105 <sections_end>: Remove.
2106 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2107 (solib_contains_address_p): Update.
2108 * solib-svr4.c (scan_dyntag): Update.
2109 * solib-dsbt.c (scan_dyntag): Update.
2110 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2111 Update.
2112 * record-full.c (record_full_core_start, record_full_core_end):
2113 Remove.
2114 (record_full_core_sections): New global.
2115 (record_full_core_open_1, record_full_core_target::xfer_partial):
2116 Update.
2117 * exec.h (build_section_table, section_table_xfer_memory_partial)
2118 (add_target_sections): Take a target_section_table.
2119 * exec.c (exec_file_attach, clear_section_table): Update.
2120 (resize_section_table): Remove.
2121 (build_section_table, add_target_sections): Take a
2122 target_section_table.
2123 (add_target_sections_of_objfile, remove_target_sections)
2124 (exec_on_vfork): Update.
2125 (section_table_available_memory): Take a target_section_table.
2126 (section_table_read_available_memory): Update.
2127 (section_table_xfer_memory_partial): Take a target_section_table.
2128 (print_section_info, set_section_command)
2129 (exec_set_section_address, exec_target::has_memory): Update.
2130 * corelow.c (class core_target) <m_core_section_table,
2131 m_core_file_mappings>: Remove braces.
2132 <~core_target>: Remove.
2133 (core_target::core_target): Update.
2134 (core_target::~core_target): Remove.
2135 (core_target::build_file_mappings)
2136 (core_target::xfer_memory_via_mappings)
2137 (core_target::xfer_partial, core_target::info_proc_mappings):
2138 Update.
2139 * bfd-target.c (target_bfd::xfer_partial): Update.
2140 (target_bfd::target_bfd): Update.
2141 (target_bfd::~target_bfd): Remove.
2142
2143 2020-10-12 Tom Tromey <tom@tromey.com>
2144
2145 * target.h (struct target_section, struct target_section_table):
2146 Move to target-section.h.
2147 * target-section.h: New file.
2148
2149 2020-10-12 Pedro Alves <pedro@palves.net>
2150
2151 PR exp/26602
2152 * valops.c (struct struct_field_searcher): New.
2153 (update_search_result): Rename to ...
2154 (struct_field_searcher::update_result): ... this. Simplify
2155 prototype. Record all found fields.
2156 (do_search_struct_field): Rename to ...
2157 (struct_field_searcher::search): ... this. Simplify prototype.
2158 Maintain stack of visited baseclass path. Call update_result for
2159 fields too. Keep searching fields in baseclasses instead of
2160 stopping at the first found field.
2161 (search_struct_field): Use struct_field_searcher. When looking
2162 for fields, report ambiguous access attempts.
2163
2164 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * frame.c (inside_main_func): Check full symbols as well as
2167 minimal symbols.
2168
2169 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2170
2171 * ada-lang.c (advance_wild_match): Rewrite the function's
2172 description. Change the type of target0, t0 and t1 to char.
2173
2174 2020-10-09 Tom Tromey <tromey@adacore.com>
2175
2176 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2177
2178 2020-10-09 Tom Tromey <tromey@adacore.com>
2179
2180 * ada-lang.h (ada_encode): Return std::string.
2181 * ada-lang.c (ada_encode_1): Return std::string.
2182 (ada_encode): Likewise.
2183 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2184 Update.
2185 * ada-exp.y (block_lookup, write_var_or_type): Update.
2186
2187 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2188
2189 PR exp/26714
2190 * printcmd.c (print_formatted): Handle void results as
2191 unformatted prints.
2192
2193 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * arch/aarch32.c (aarch32_create_target_description): Release the
2196 target_desc_up as late as possible.
2197 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2198 * arch/amd64.c (amd64_create_target_description): Likewise.
2199 * arch/arc.c (arc_create_target_description): Return a
2200 target_desc_up, don't release it.
2201 * arch/arc.h (arc_create_target_description): Update declaration.
2202 (arc_lookup_target_description): Move target_desc_up into the
2203 cache, and return a borrowed pointer.
2204 * arch/arm.c (arm_create_target_description): Release the
2205 target_desc_up as late as possible.
2206 * arch/i386.c (i386_create_target_description): Likewise.
2207 * arch/riscv.h (riscv_create_target_description): Update
2208 declaration to match definition.
2209 * arch/tic6x.c (tic6x_create_target_description): Release the
2210 target_desc_up as late as possible.
2211
2212 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2215 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2216
2217 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2218
2219 * source.c (directory_command): Notify observers that "directories"
2220 parameter has changed.
2221
2222 2020-10-08 Tom Tromey <tom@tromey.com>
2223
2224 * cli/cli-cmds.c (print_disassembly): Style function name and
2225 addresses. Add _() wrappers.
2226
2227 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2228
2229 * NEWS: Mention ARC support in GDBserver.
2230
2231 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * arch/aarch32.c (aarch32_create_target_description): Release
2234 unique_ptr returned from allocate_target_description.
2235 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2236 * arch/amd64.c (amd64_create_target_description): Likewise.
2237 * arch/arc.c (arc_create_target_description): Likewise.
2238 * arch/arm.c (arm_create_target_description): Likewise.
2239 * arch/i386.c (i386_create_target_description): Likewise.
2240 * arch/riscv.c (riscv_create_target_description): Update return
2241 type. Handle allocate_target_description returning a unique_ptr.
2242 (riscv_lookup_target_description): Update to handle unique_ptr.
2243 * arch/tic6x.c (tic6x_create_target_description): Release
2244 unique_ptr returned from allocate_target_description.
2245 * features/microblaze-with-stack-protect.c: Regenerate.
2246 * features/microblaze.c: Regenerate.
2247 * features/mips-dsp-linux.c: Regenerate.
2248 * features/mips-linux.c: Regenerate.
2249 * features/mips64-dsp-linux.c: Regenerate.
2250 * features/mips64-linux.c: Regenerate.
2251 * features/nds32.c: Regenerate.
2252 * features/nios2.c: Regenerate.
2253 * features/or1k.c: Regenerate.
2254 * features/rs6000/powerpc-32.c: Regenerate.
2255 * features/rs6000/powerpc-32l.c: Regenerate.
2256 * features/rs6000/powerpc-403.c: Regenerate.
2257 * features/rs6000/powerpc-403gc.c: Regenerate.
2258 * features/rs6000/powerpc-405.c: Regenerate.
2259 * features/rs6000/powerpc-505.c: Regenerate.
2260 * features/rs6000/powerpc-601.c: Regenerate.
2261 * features/rs6000/powerpc-602.c: Regenerate.
2262 * features/rs6000/powerpc-603.c: Regenerate.
2263 * features/rs6000/powerpc-604.c: Regenerate.
2264 * features/rs6000/powerpc-64.c: Regenerate.
2265 * features/rs6000/powerpc-64l.c: Regenerate.
2266 * features/rs6000/powerpc-7400.c: Regenerate.
2267 * features/rs6000/powerpc-750.c: Regenerate.
2268 * features/rs6000/powerpc-860.c: Regenerate.
2269 * features/rs6000/powerpc-altivec32.c: Regenerate.
2270 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2271 * features/rs6000/powerpc-altivec64.c: Regenerate.
2272 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2273 * features/rs6000/powerpc-e500.c: Regenerate.
2274 * features/rs6000/powerpc-e500l.c: Regenerate.
2275 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2276 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2277 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2278 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2279 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2280 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2281 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2282 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2283 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2284 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2285 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2286 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2287 * features/rs6000/powerpc-vsx32.c: Regenerate.
2288 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2289 * features/rs6000/powerpc-vsx64.c: Regenerate.
2290 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2291 * features/rs6000/rs6000.c: Regenerate.
2292 * features/rx.c: Regenerate.
2293 * features/s390-gs-linux64.c: Regenerate.
2294 * features/s390-linux32.c: Regenerate.
2295 * features/s390-linux32v1.c: Regenerate.
2296 * features/s390-linux32v2.c: Regenerate.
2297 * features/s390-linux64.c: Regenerate.
2298 * features/s390-linux64v1.c: Regenerate.
2299 * features/s390-linux64v2.c: Regenerate.
2300 * features/s390-te-linux64.c: Regenerate.
2301 * features/s390-tevx-linux64.c: Regenerate.
2302 * features/s390-vx-linux64.c: Regenerate.
2303 * features/s390x-gs-linux64.c: Regenerate.
2304 * features/s390x-linux64.c: Regenerate.
2305 * features/s390x-linux64v1.c: Regenerate.
2306 * features/s390x-linux64v2.c: Regenerate.
2307 * features/s390x-te-linux64.c: Regenerate.
2308 * features/s390x-tevx-linux64.c: Regenerate.
2309 * features/s390x-vx-linux64.c: Regenerate.
2310 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2311 from allocate_target_description.
2312 * target-descriptions.c (allocate_target_description): Update
2313 return type.
2314 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2315 allocate_target_description.
2316
2317 2020-10-07 Tom Tromey <tromey@adacore.com>
2318
2319 * unittests/search-memory-selftests.c: New file.
2320 * Makefile.in (SELFTESTS_SRCS): Add
2321 unittests/search-memory-selftests.c.
2322
2323 2020-10-07 Tom Tromey <tromey@adacore.com>
2324
2325 PR gdb/16930:
2326 * findcmd.c (_initialize_mem_search): Mention that the range is
2327 inclusive.
2328
2329 2020-10-07 Tom Tromey <tromey@adacore.com>
2330
2331 * target.h (simple_search_memory): Don't declare.
2332 * target.c (simple_search_memory): Move to gdbsupport.
2333 (default_search_memory): Update.
2334 * remote.c (remote_target::search_memory): Update.
2335
2336 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * Makefile.in (COMPILE): Add CXXFLAGS.
2339 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2340 (check-headers): Add CXXFLAGS.
2341
2342 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2343
2344 * arc-linux-tdep.h: New file.
2345 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2346 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2347 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2348 arc_linux_gregset, arc_linux_v2_regset,
2349 arc_linux_iterate_over_regset_sections,
2350 arc_linux_core_read_description): Implement.
2351 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2352 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2353 (arc_gdbarch_features_create): Add.
2354 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2355
2356 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2357
2358 * arch/arc.h: Rename "arc_gdbarch_features" to
2359 "arc_arch_features".
2360 * arc-tdep.h: Likewise.
2361 * arc-tdep.c: Likewise.
2362
2363 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2364
2365 * infcmd.c (attach_command): Remove the redundant call to
2366 `clear_proceed_status`.
2367
2368 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2369
2370 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2371
2372 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2373
2374 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2375 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2376 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2377
2378 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2381 (_initialize_break_catch_sig): Don't allocate array.
2382
2383 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * symtab.c (find_pc_line): Return unmapped addresses when the
2386 requested address is also unmapped.
2387
2388 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2391 tui/tui-out.h.
2392
2393 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2396 type::is_vector instead of TYPE_VECTOR.
2397
2398 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * auto-load.c (auto_load_objfile_script_1): Don't use
2401 debugfile_holder as temporary variable when stripping drive
2402 letter.
2403
2404 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2405
2406 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2407 Add TYPE_CODE_COMPLEX.
2408 (amd64_windows_return_value): Fix types returned via XMM0.
2409
2410 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2411
2412 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2413 AArch64/ARM maintainers.
2414
2415 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * NEWS: Mention set/show debug event-loop.
2418
2419 2020-10-02 Tom Tromey <tromey@adacore.com>
2420
2421 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2422 REG_EXTENDED.
2423
2424 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2427 * procfs.c (procfs_inferior_created): Remove.
2428 (_initialize_procfs): Don't register procfs_inferior_created.
2429
2430 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2431
2432 * async-event.c (invoke_async_signal_handlers): Add debug
2433 print.
2434 (check_async_event_handlers): Likewise.
2435 * event-top.c (show_debug_event_loop): New function.
2436 (_initialize_event_top): Register "set debug event-loop"
2437 setting.
2438
2439 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2442 * debug.h: Remove.
2443 * infrun.c: Include gdbsupport/common-debug.h.
2444 * linux-nat.c: Likewise.
2445
2446 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2447
2448 * async-event.h (create_async_signal_handler): Add name
2449 parameter.
2450 (create_async_event_handler): Likewise.
2451 * async-event.c (struct async_signal_handler) <name>: New field.
2452 (struct async_event_handler) <name>: New field.
2453 (create_async_signal_handler): Assign name.
2454 (create_async_event_handler): Assign name.
2455 * event-top.c (async_init_signals): Pass name when creating
2456 handler.
2457 * infrun.c (_initialize_infrun): Likewise.
2458 * record-btrace.c (record_btrace_push_target): Likewise.
2459 * record-full.c (record_full_open): Likewise.
2460 * remote-notif.c (remote_notif_state_allocate): Likewise.
2461 * remote.c (remote_target::open_1): Likewise.
2462 * tui/tui-win.c (tui_initialize_win): Likewise.
2463
2464 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * async-event.c (initialize_async_signal_handlers): Pass name to
2467 add_file_handler
2468 * event-top.c (ui_register_input_event_handler): Likewise.
2469 * linux-nat.c (linux_nat_target::async): Likewise.
2470 * run-on-main-thread.c (_initialize_run_on_main_thread):
2471 Likewise
2472 * ser-base.c (reschedule): Likewise.
2473 (ser_base_async): Likewise.
2474 * tui/tui-io.c: Likewise.
2475 * top.h (struct ui) <num>: New field.
2476 * top.c (highest_ui_num): New variable.
2477 (ui::ui): Initialize num.
2478
2479 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2480
2481 * observable.h <inferior_created>: Remove parameters. Update all
2482 listeners.
2483 * inferior.h (post_create_inferior): Remove target parameter.
2484 Update all callers.
2485
2486 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2487
2488 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2489 and DW_MACRO_undef_strx.
2490 (dwarf_decode_macros): Likewise
2491 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2492 which is the value of DW_AT_str_offsets_base.
2493 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2494 str_offsets_base.
2495
2496 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2497
2498 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2499
2500 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2501
2502 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2503 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2504
2505 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2506
2507 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2508
2509 2020-09-30 Tom de Vries <tdevries@suse.de>
2510
2511 PR symtab/26683
2512 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2513
2514 2020-09-30 Tom Tromey <tromey@adacore.com>
2515
2516 * dwarf2/read.c (handle_variant): Use constant_value.
2517
2518 2020-09-29 Tom Tromey <tom@tromey.com>
2519
2520 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2521 (read_file_scope, dwarf2_get_pc_bounds)
2522 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2523 (read_structure_type, handle_struct_member_die)
2524 (read_enumeration_type, read_array_type, read_set_type)
2525 (read_tag_pointer_type, read_tag_reference_type)
2526 (read_subroutine_type, read_base_type, read_subrange_type)
2527 (read_full_die_1, partial_die_info::read)
2528 (partial_die_info::read, by, new_symbol)
2529 (dwarf2_const_value_data, dwarf2_const_value_attr)
2530 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2531 (prepare_one_comp_unit): Update.
2532 * dwarf2/attribute.h (DW_UNSND): Remove.
2533
2534 2020-09-29 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2537 (read_subroutine_type, partial_die_info::read)
2538 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2539 (dwarf2_add_member_fn): Update.
2540 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2541 * dwarf2/attribute.c (attribute::as_boolean): New method.
2542
2543 2020-09-29 Tom Tromey <tom@tromey.com>
2544
2545 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2546 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2547 method.
2548 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2549
2550 2020-09-29 Tom Tromey <tom@tromey.com>
2551
2552 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2553 the attribute's form.
2554
2555 2020-09-29 Tom Tromey <tom@tromey.com>
2556
2557 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2558 (dwarf2_add_member_fn): Update.
2559 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2560 * dwarf2/attribute.c (attribute::defaulted): New method, from
2561 is_valid_DW_AT_defaulted.
2562
2563 2020-09-29 Tom Tromey <tom@tromey.com>
2564
2565 * dwarf2/read.c (dw2_get_file_names_reader)
2566 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2567 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2568 (dwarf2_symbol_mark_computed): Use as_unsigned.
2569 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2570 method.
2571 <form_is_section_offset>: Update comment.
2572
2573 2020-09-29 Tom Tromey <tom@tromey.com>
2574
2575 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2576 dwarf2_default_access_attribute. Look up attribute.
2577 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2578 Update.
2579
2580 2020-09-29 Tom Tromey <tom@tromey.com>
2581
2582 * dwarf2/read.c (skip_one_die): Update.
2583 (read_full_die_1): Change how reprocessing is done.
2584 (partial_die_info::read): Update.
2585 (read_attribute_value): Remove need_reprocess parameter.
2586 (read_attribute): Likewise.
2587 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2588 New method.
2589
2590 2020-09-29 Tom Tromey <tom@tromey.com>
2591
2592 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2593 (dwarf2_const_value_attr, dump_die_shallow)
2594 (dwarf2_fetch_constant_bytes): Update.
2595 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2596 comment.
2597 <set_address>: New method.
2598 (DW_ADDR): Remove.
2599 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2600 (attribute::as_string, attribute::as_address): Add assert.
2601
2602 2020-09-29 Tom Tromey <tom@tromey.com>
2603
2604 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2605 (read_attribute_reprocess, read_attribute_value): Update.
2606 (read_attribute): Clear requires_reprocessing.
2607 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2608 form_requires_reprocessing>: New methods.
2609 <string_init>: Clear requires_reprocessing.
2610 <set_unsigned_reprocess>: New method.
2611 <name>: Shrink by one bit.
2612 <requires_reprocessing>: New member.
2613 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2614 method.
2615
2616 2020-09-29 Tom Tromey <tom@tromey.com>
2617
2618 * dwarf2/read.c (read_attribute_value): Update.
2619 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2620 set_unsigned>: New methods.
2621 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2622
2623 2020-09-29 Tom Tromey <tom@tromey.com>
2624
2625 * dwarf2/read.c (get_alignment, read_array_order)
2626 (read_attribute_value, dwarf2_const_value_attr)
2627 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2628 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2629 New methods.
2630 (DW_SND): Remove.
2631
2632 2020-09-29 Tom Tromey <tom@tromey.com>
2633
2634 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2635 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2636 Update.
2637 * dwarf2/attribute.h (struct attribute) <as_signature,
2638 set_signature>: New methods.
2639 (DW_SIGNATURE): Remove.
2640
2641 2020-09-29 Tom Tromey <tom@tromey.com>
2642
2643 * dwarf2/read.c (read_call_site_scope)
2644 (handle_data_member_location, dwarf2_add_member_fn)
2645 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2646 (partial_die_info::read, read_attribute_value)
2647 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2648 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2649 (dwarf2_symbol_mark_computed): Update.
2650 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2651 methods.
2652 (DW_BLOCK): Remove.
2653 * dwarf2/attribute.c (attribute::form_is_block): Add
2654 DW_FORM_data16.
2655
2656 2020-09-29 Tom Tromey <tom@tromey.com>
2657
2658 * dwarf2/read.c (read_cutu_die_from_dwo)
2659 (read_attribute_reprocess, read_attribute_value, read_attribute)
2660 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2661 (dwarf2_fetch_constant_bytes): Update.
2662 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2663 <set_string_noncanonical, set_string_canonical>: New methods.
2664 <string_is_canonical>: Update comment.
2665 <canonical_string_p>: Add assert.
2666 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2667 * dwarf2/attribute.c (attribute::form_is_string): New method.
2668 (attribute::string): Use it.
2669
2670 2020-09-29 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2673 (dump_die_shallow): Use canonical_string_p.
2674 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2675 method.
2676
2677 2020-09-29 Tom Tromey <tom@tromey.com>
2678
2679 * dwarf2/read.c (partial_die_info::read)
2680 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2681 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2682 attribute::as_string.
2683
2684 2020-09-29 Tom Tromey <tom@tromey.com>
2685
2686 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2687 DW_ADDR.
2688 (attribute::string): Don't use DW_STRING.
2689 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2690 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2691
2692 2020-09-29 Tom Tromey <tom@tromey.com>
2693
2694 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2695 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2696 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2697 * dwarf2/attribute.h (struct attribute): Rename methods.
2698 * dwarf2/attribute.c (attribute::as_address): Rename from
2699 value_as_address.
2700 (attribute::as_string): Rename from value_as_string.
2701
2702 2020-09-29 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2/read.c (partial_die_info::read) <case
2705 DW_AT_linkage_name>: Use value_as_string.
2706 (dwarf2_string_attr): Use value_as_string.
2707 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2708 method.
2709 * dwarf2/attribute.c (attribute::value_as_string): New method.
2710
2711 2020-09-29 Pedro Alves <pedro@palves.net>
2712
2713 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2714 defined before using '#pragma GCC diagnostic' instead of checking
2715 __clang__.
2716
2717 2020-09-28 Tom Tromey <tom@tromey.com>
2718
2719 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2720 (handle_signal_stop): Update.
2721 * procfs.c (procfs_target::insert_watchpoint): Update.
2722 * target.h (target_have_steppable_watchpoint): Now a function.
2723
2724 2020-09-28 Tom Tromey <tom@tromey.com>
2725
2726 * infrun.c (set_schedlock_func): Update.
2727 * target.h (target_can_lock_scheduler): Now a function.
2728
2729 2020-09-28 Tom Tromey <tom@tromey.com>
2730
2731 * inferior.h (class inferior) <has_execution>: Update.
2732 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2733 * valops.c (find_function_in_inferior)
2734 (value_allocate_space_in_inferior): Update.
2735 * top.c (kill_or_detach): Update.
2736 * target.c (target_preopen, set_target_permissions): Update.
2737 (target_has_execution_current): Remove.
2738 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2739 Update.
2740 * solib.c (update_solib_list, reload_shared_libraries): Update.
2741 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2742 * solib-dsbt.c (enable_break): Update.
2743 * score-tdep.c (score7_fetch_inst): Update.
2744 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2745 Update.
2746 * remote.c (remote_target::start_remote)
2747 (remote_target::remote_check_symbols, remote_target::open_1)
2748 (remote_target::remote_detach_1, remote_target::verify_memory)
2749 (remote_target::xfer_partial, remote_target::read_description)
2750 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2751 * record-full.c (record_full_open_1): Update.
2752 * record-btrace.c (record_btrace_target_open): Update.
2753 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2754 (value_nsstring): Update.
2755 * linux-thread-db.c (add_thread_db_info)
2756 (thread_db_find_new_threads_silently, check_thread_db_callback)
2757 (try_thread_db_load_1, record_thread): Update.
2758 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2759 Update.
2760 * linux-fork.c (checkpoint_command): Update.
2761 * infrun.c (set_non_stop, set_observer_mode)
2762 (check_multi_target_resumption, for_each_just_stopped_thread)
2763 (maybe_remove_breakpoints, normal_stop)
2764 (class infcall_suspend_state): Update.
2765 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2766 (info_program_command, attach_command): Update.
2767 * infcall.c (call_function_by_hand_dummy): Update.
2768 * inf-loop.c (inferior_event_handler): Update.
2769 * gcore.c (gcore_command, derive_heap_segment): Update.
2770 * exec.c (exec_file_command): Update.
2771 * eval.c (evaluate_subexp): Update.
2772 * compile/compile.c (compile_to_object): Update.
2773 * cli/cli-dump.c (restore_command): Update.
2774 * breakpoint.c (update_watchpoint)
2775 (update_inserted_breakpoint_locations)
2776 (insert_breakpoint_locations, get_bpstat_thread): Update.
2777 * target.h (target_has_execution): Remove macro.
2778 (target_has_execution_current): Don't declare.
2779 (target_has_execution): Rename from target_has_execution_1. Add
2780 argument default.
2781
2782 2020-09-28 Tom Tromey <tom@tromey.com>
2783
2784 * mi/mi-main.c (exec_reverse_continue)
2785 (mi_cmd_list_target_features): Update.
2786 * infrun.c (set_exec_direction_func): Update.
2787 * target.c (default_execution_direction): Update.
2788 * reverse.c (exec_reverse_once): Update.
2789 * target.h (target_can_execute_reverse): Now a function.
2790
2791 2020-09-28 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-regs.c (tui_get_register)
2794 (tui_data_window::show_registers): Update.
2795 * thread.c (scoped_restore_current_thread::restore)
2796 (scoped_restore_current_thread::scoped_restore_current_thread):
2797 Update.
2798 * regcache-dump.c (regcache_print): Update.
2799 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2800 Update.
2801 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2802 * mep-tdep.c (current_me_module, current_options): Update.
2803 * linux-thread-db.c (thread_db_load): Update.
2804 * infcmd.c (registers_info, info_vector_command)
2805 (info_float_command): Update.
2806 * ia64-tdep.c (ia64_frame_prev_register)
2807 (ia64_sigtramp_frame_prev_register): Update.
2808 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2809 * gcore.c (derive_stack_segment): Update.
2810 * frame.c (get_current_frame, has_stack_frames): Update.
2811 * findvar.c (language_defn::read_var_value): Update.
2812 * arm-tdep.c (arm_pc_is_thumb): Update.
2813 * target.c (target_has_registers): Rename from
2814 target_has_registers_1.
2815 * target.h (target_has_registers): Remove macro.
2816 (target_has_registers): Rename from target_has_registers_1.
2817
2818 2020-09-28 Tom Tromey <tom@tromey.com>
2819
2820 * windows-tdep.c (tlb_make_value): Update.
2821 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2822 * thread.c (scoped_restore_current_thread::restore)
2823 (scoped_restore_current_thread::scoped_restore_current_thread)
2824 (thread_command): Update.
2825 * stack.c (backtrace_command_1, frame_apply_level_command)
2826 (frame_apply_all_command, frame_apply_command): Update.
2827 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2828 Update.
2829 * gcore.c (derive_stack_segment): Update.
2830 * frame.c (get_current_frame, has_stack_frames): Update.
2831 * auxv.c (info_auxv_command): Update.
2832 * ada-tasks.c (ada_build_task_list): Update.
2833 * target.c (target_has_stack): Rename from target_has_stack_1.
2834 * target.h (target_has_stack): Remove macro.
2835 (target_has_stack): Rename from target_has_stack_1.
2836
2837 2020-09-28 Tom Tromey <tom@tromey.com>
2838
2839 * target.c (target_has_memory): Rename from target_has_memory_1.
2840 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2841 * thread.c (scoped_restore_current_thread::restore)
2842 (scoped_restore_current_thread::scoped_restore_current_thread):
2843 Update.
2844 * frame.c (get_current_frame, has_stack_frames): Update.
2845 * target.h (target_has_memory): Remove macro.
2846 (target_has_memory): Rename from target_has_memory_1.
2847
2848 2020-09-28 Tom Tromey <tom@tromey.com>
2849
2850 * target.c (target_has_all_memory_1): Remove.
2851 * target.h (target_has_all_memory): Remove define.
2852 (target_has_all_memory_1): Don't declare.
2853
2854 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * ser-base.c: Adjust comments formatting.
2857
2858 2020-09-27 Tom Tromey <tom@tromey.com>
2859
2860 PR tui/25342:
2861 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2862
2863 2020-09-27 Tom Tromey <tom@tromey.com>
2864
2865 PR tui/25342:
2866 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2867
2868 2020-09-27 Tom Tromey <tom@tromey.com>
2869
2870 * unittests/tui-selftests.c: Update.
2871 * tui/tui-winsource.h (struct tui_source_window_base)
2872 <extra_margin, show_line_number, refresh_pad>: New methods.
2873 <m_max_length, m_pad>: New members.
2874 (tui_copy_source_line): Update.
2875 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2876 first_col, line_width, ndigits parameters. Add length.
2877 (tui_source_window_base::show_source_line): Write to pad. Line
2878 number now 0-based.
2879 (tui_source_window_base::refresh_pad): New method.
2880 (tui_source_window_base::show_source_content): Write to pad. Call
2881 refresh_pad.
2882 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2883 not refill.
2884 (tui_source_window_base::update_exec_info): Call
2885 show_line_number.
2886 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2887 method.
2888 <m_digits>: New member.
2889 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2890 and m_max_length.
2891 (tui_source_window::show_line_number): New method.
2892 * tui/tui-io.h (tui_puts): Fix comment.
2893 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2894 m_max_length.
2895
2896 2020-09-27 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-winsource.c
2899 (tui_source_window_base::set_is_exec_point_at): Don't call
2900 show_source_line.
2901
2902 2020-09-27 Tom Tromey <tom@tromey.com>
2903
2904 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2905 method.
2906 <erase>: Update.
2907 <cursor_x, cursor_y>: Remove.
2908 <m_inner_window>: New member.
2909 (tui_py_window::rerender): Create inner window.
2910 (tui_py_window::output): Write to inner window.
2911
2912 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2913
2914 PR python/26586
2915 * cli/cli-script.c (execute_control_commands): don't set
2916 instream to nullptr here as this breaks the from_tty argument
2917 to gdb.execute in Python.
2918 (execute_user_command): set instream to nullptr here instead.
2919
2920 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * infrun.h (infrun_debug_printf): Fix formatting.
2923 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2924
2925 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2926
2927 * compile/compile-object-load.h (struct munmap_list): Add
2928 explicitly-defined move constructor.
2929
2930 2020-09-24 Tom Tromey <tromey@adacore.com>
2931
2932 PR tui/26638:
2933 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2934 method.
2935 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2936 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2937 (tui_prev_win): Rewrite.
2938
2939 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2940
2941 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2942 in WOW64 processes as SIGINT.
2943 * nat/windows-nat.h: Make wow64_process a shared variable.
2944 * windows-nat.c: Remove static wow64_process variable.
2945
2946 2020-09-23 Tom Tromey <tom@tromey.com>
2947
2948 PR symtab/25470:
2949 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2950 offset and bit size.
2951 * printcmd.c (print_scalar_formatted): Handle zero-length
2952 integer.
2953 (print_scalar_formatted): Use bit_size_differs_p.
2954 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2955 constant.
2956 (union type_specific): <int_stuff>: New member.
2957 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2958 methods.
2959 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2960 TYPE_SPECIFIC_FIELD.
2961 (recursive_dump_type, copy_type_recursive): Update.
2962 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2963 DW_AT_data_bit_offset.
2964
2965 2020-09-23 Tom Tromey <tom@tromey.com>
2966
2967 * utils.h (class gdb_argv): Add move operators.
2968 <append>: New methods.
2969 * compile/compile.c (build_argc_argv): Remove.
2970 (compile_args_argc): Remove.
2971 (compile_args_argv): Change type.
2972 (set_compile_args): Simplify.
2973 (append_args): Remove.
2974 (filter_args): Remove argcp parameter.
2975 (get_args): Return gdb_argv. Simplify.
2976 (compile_to_object): Update.
2977
2978 2020-09-23 Tom Tromey <tom@tromey.com>
2979
2980 * compile/compile-object-run.c (do_module_cleanup)
2981 <~do_module_cleanup> :Remove.
2982 (do_module_cleanup): Update.
2983 * compile/compile-object-load.h (struct munmap_list): Add move
2984 assignment operator.
2985 <source_file>: Now a std::string.
2986 <munmap_list>: Rename. No longer a pointer.
2987 * compile/compile-object-load.c (struct setup_sections_data): Add
2988 constructor.
2989 <setup_one_section>: Declare.
2990 <munmap_list>: Move earlier.
2991 <m_bfd>: New member.
2992 <m_last_size, m_last_section_first, m_last_prot,
2993 m_last_max_alignment>: Rename, add initializers where needed.
2994 (setup_sections_data::setup_one_section): Rename from
2995 setup_sections. Update.
2996 (compile_object_load): Update. Don't use bfd_map_over_sections.
2997
2998 2020-09-23 Tom Tromey <tom@tromey.com>
2999
3000 * compile/compile-object-run.c (struct do_module_cleanup): Add
3001 parameters to constructor. Update destructor.
3002 <source_file, scope, scope_data, out_value_type, out_value_addr,
3003 munmap_list_head, objfile_name_string>: Remove.
3004 <module>: New member.
3005 (do_module_cleanup): Update.
3006 (compile_object_run): Update.
3007
3008 2020-09-23 Tom Tromey <tom@tromey.com>
3009
3010 * compile/compile.c (eval_compile_command): Update.
3011 * compile/compile-object-run.h (compile_object_run): Take a
3012 compile_module_up.
3013 * compile/compile-object-run.c (compile_object_run): Take a
3014 compile_module_up.
3015 * compile/compile-object-load.h (struct compile_module): Add
3016 constructor, destructor.
3017 (compile_module_up): New typedef.
3018 (compile_object_load): Return compile_object_up.
3019 * compile/compile-object-load.c (compile_object_load): Return
3020 compile_module_up.
3021
3022 2020-09-23 Tom Tromey <tom@tromey.com>
3023
3024 * compile/compile-object-run.c (struct do_module_cleanup): Add
3025 constructor, destructor.
3026 <objfile_name_string>: Don't use struct hack.
3027 (do_module_cleanup): Use delete.
3028 (compile_object_run): Use new.
3029
3030 2020-09-23 Tom Tromey <tom@tromey.com>
3031
3032 * compile/compile-cplus-types.c
3033 (compile_cplus_convert_struct_or_union): Use std::vector.
3034 (compile_cplus_convert_func): Likewise.
3035 * compile/compile-c-types.c (convert_func): Use std::vector.
3036
3037 2020-09-21 Tom Tromey <tromey@adacore.com>
3038
3039 * sparc-tdep.c (sparc32_skip_prologue): Use
3040 skip_prologue_using_sal.
3041
3042 2020-09-19 Tom Tromey <tom@tromey.com>
3043
3044 * symfile.c (add_section_size_callback): Remove.
3045 (load_one_section): Rename from load_section_callback. Change
3046 parameters.
3047 (generic_load): Use foreach.
3048
3049 2020-09-19 Tom Tromey <tom@tromey.com>
3050
3051 * exec.c (add_to_section_table): Remove.
3052 (build_section_table): Use foreach.
3053
3054 2020-09-19 Tom Tromey <tom@tromey.com>
3055
3056 * elfread.c (elf_locate_sections): Change parameters.
3057 (elf_symfile_read): Use foreach.
3058
3059 2020-09-19 Tom Tromey <tom@tromey.com>
3060
3061 * cli/cli-dump.c (struct callback_data): Remove.
3062 (restore_one_section): Rename from restore_section_callback.
3063 Change parameters.
3064 (restore_binary_file): Change parameters.
3065 (restore_command): Use foreach.
3066
3067 2020-09-19 Tom Tromey <tom@tromey.com>
3068
3069 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3070 (gcore_copy_callback): Likewise.
3071 (gcore_memory_sections): Use foreach.
3072
3073 2020-09-19 Tom Tromey <tom@tromey.com>
3074
3075 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3076 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3077 parameters.
3078 (generic_elf_osabi_sniffer): Use foreach.
3079 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3080 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3081
3082 2020-09-19 Tom Tromey <tom@tromey.com>
3083
3084 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3085 (dwarf2_get_dwz_file): Use foreach.
3086 (dwarf2_locate_dwo_sections): Change parameters.
3087 (open_and_init_dwo_file): Use foreach.
3088 (dwarf2_locate_common_dwp_sections): Change parameters.
3089 (open_and_init_dwp_file): Use foreach.
3090
3091 2020-09-19 Tom Tromey <tom@tromey.com>
3092
3093 * symfile.h: (find_lowest_section): Don't declare.
3094 * symfile.c (find_lowest_section): Now static. Change
3095 parameters.
3096 (struct place_section_arg): Remove.
3097 (place_section): Change parameters.
3098 (addr_info_make_relative): Use foreach.
3099 (symfile_dummy_outputs): Remove.
3100 (default_symfile_relocate): Use foreach.
3101
3102 2020-09-19 Tom Tromey <tom@tromey.com>
3103
3104 * objfiles.c (add_to_objfile_sections): Rename from
3105 add_to_objfile_sections_full.
3106 (add_to_objfile_sections): Remove.
3107 (build_objfile_section_table): Use foreach.
3108
3109 2020-09-19 Tom Tromey <tom@tromey.com>
3110
3111 * stap-probe.c (get_stap_base_address_1): Remove.
3112 (get_stap_base_address): Use foreach.
3113
3114 2020-09-19 Tom Tromey <tom@tromey.com>
3115
3116 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3117 parameters.
3118 (gdb_bfd_close_or_warn): Use foreach.
3119
3120 2020-09-19 Tom Tromey <tom@tromey.com>
3121
3122 * corelow.c (add_to_thread_list): Change parameters.
3123 (core_target_open): Use foreach.
3124
3125 2020-09-19 Tom Tromey <tom@tromey.com>
3126
3127 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3128 existing function.
3129
3130 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3133 for arrays.
3134
3135 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 * eval.c: Remove 'f-lang.h' include.
3138 (value_f90_subarray): Moved to f-lang.c.
3139 (eval_call): Renamed to...
3140 (evaluate_subexp_do_call): ...this, is no longer static, header
3141 comment moved into header file.
3142 (evaluate_funcall): Update call to eval_call.
3143 (skip_undetermined_arglist): Moved to f-lang.c.
3144 (fortran_value_subarray): Likewise.
3145 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3146 moved to evaluate_subexp_f.
3147 (calc_f77_array_dims): Moved to f-lang.c
3148 * expprint.c (print_subexp_funcall): New function.
3149 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3150 moved to print_subexp_f, OP_FUNCALL uses new function.
3151 (dump_subexp_body_funcall): New function.
3152 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3153 moved to dump_subexp_f, OP_FUNCALL uses new function.
3154 * expression.h (evaluate_subexp_do_call): Declare.
3155 * f-lang.c (value_f90_subarray): Moved from eval.c.
3156 (skip_undetermined_arglist): Likewise.
3157 (calc_f77_array_dims): Likewise.
3158 (fortran_value_subarray): Likewise.
3159 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3160 (operator_length_f): Likewise.
3161 (print_subexp_f): Likewise.
3162 (dump_subexp_body_f): Likewise.
3163 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3164 declaration of this operation to here.
3165 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3166 support moved to operator_length_f.
3167 * parser-defs.h (dump_subexp_body_funcall): Declare.
3168 (print_subexp_funcall): Declare.
3169 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3170 fortran-operator.def.
3171
3172 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * eval.c (fortran_value_subarray): New function, content is taken
3175 from...
3176 (evaluate_subexp_standard): ...here, in two places. Now arrays
3177 and strings both call the new function.
3178 (calc_f77_array_dims): Add header comment, handle strings.
3179
3180 2020-09-18 Victor Collod <vcollod@nvidia.com>
3181
3182 PR gdb/26635
3183 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3184 (i386_analyze_prologue): Call i386_skip_endbr.
3185
3186 2020-09-18 Tom Tromey <tromey@adacore.com>
3187
3188 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3189 (windows_nat_target::wait): Update.
3190 * target/wait.h (enum target_wait_flag): New. Use
3191 DEF_ENUM_FLAGS_TYPE.
3192 * target/target.h (target_wait): Change type of options.
3193 * target.h (target_options_to_string, default_target_wait):
3194 Update.
3195 (struct target_ops) <wait>: Change type of options.
3196 * target.c (target_wait, default_target_wait, do_option): Change
3197 type of "options".
3198 (target_options_to_string): Likewise.
3199 * target-delegates.c: Rebuild.
3200 * target-debug.h (target_debug_print_target_wait_flags): Rename
3201 from target_debug_print_options.
3202 * sol-thread.c (class sol_thread_target) <wait>: Update.
3203 (sol_thread_target::wait): Update.
3204 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3205 (rs6000_nat_target::wait): Update.
3206 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3207 Update.
3208 (remote_target::wait_ns, remote_target::wait_as): Change type of
3209 "options".
3210 (remote_target::wait): Update.
3211 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3212 (gdbsim_target::wait): Update.
3213 * record-full.c (class record_full_base_target) <wait>: Update.
3214 (record_full_wait_1): Change type of "options".
3215 (record_full_base_target::wait): Update.
3216 * record-btrace.c (class record_btrace_target) <wait>: Update.
3217 (record_btrace_target::wait): Update.
3218 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3219 Update.
3220 (ravenscar_thread_target::wait): Update.
3221 * procfs.c (class procfs_target) <wait>: Update.
3222 (procfs_target::wait): Update.
3223 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3224 * obsd-nat.c (obsd_nat_target::wait): Update.
3225 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3226 (nto_procfs_target::wait): Update.
3227 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3228 * nbsd-nat.c (nbsd_wait): Change type of "options".
3229 (nbsd_nat_target::wait): Update.
3230 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3231 (thread_db_target::wait): Update.
3232 * linux-nat.h (class linux_nat_target) <wait>: Update.
3233 * linux-nat.c (linux_nat_target::wait): Update.
3234 (linux_nat_wait_1): Update.
3235 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3236 "options".
3237 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3238 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3239 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3240 (go32_nat_target::wait): Update.
3241 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3242 * gnu-nat.c (gnu_nat_target::wait): Update.
3243 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3244 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3245 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3246 * darwin-nat.c (darwin_nat_target::wait): Update.
3247 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3248 (bsd_uthread_target::wait): Update.
3249 * aix-thread.c (class aix_thread_target) <wait>: Update.
3250 (aix_thread_target::wait): Update.
3251
3252 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * compile/compile-object-run.c (create_copied_type_recursive): New
3255 function.
3256 (compile_object_run): Use new function.
3257
3258 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3259
3260 * NEWS: Mention x86_64 Cygwin core file support.
3261
3262 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3263
3264 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3265 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3266
3267 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3268
3269 * windows-tdep.h: Add prototypes.
3270 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3271 (i386_windows_core_pid_to_str): Move and rename ...
3272 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3273 (windows_core_pid_to_str): ... and here.
3274 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3275
3276 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3277 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3278 (amd64_windows_init_abi_common): ... and register.
3279
3280 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3281
3282 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3283 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3284
3285 2020-09-18 Pedro Alves <pedro@palves.net>
3286
3287 PR gdb/26631
3288 * thread.c (thread_find_command): Switch inferior before calling
3289 target methods.
3290
3291 2020-09-17 Tom Tromey <tromey@adacore.com>
3292
3293 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3294 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3295 (tdesc_arch_data_up): New typedef.
3296 (tdesc_use_registers, tdesc_data_alloc): Update.
3297 (tdesc_data_cleanup): Don't declare.
3298 * target-descriptions.c (tdesc_data_alloc): Return a
3299 tdesc_arch_data_up.
3300 (tdesc_arch_data_deleter::operator()): Rename from
3301 tdesc_data_cleanup. Change argument type.
3302 (tdesc_use_registers): Change early_data to an rvalue reference.
3303 (tdesc_use_registers): Don't use delete.
3304 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3305 * s390-tdep.c (s390_gdbarch_init): Update.
3306 * rx-tdep.c (rx_gdbarch_init): Update.
3307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3308 * riscv-tdep.c (riscv_gdbarch_init): Update.
3309 * or1k-tdep.c (or1k_gdbarch_init): Update.
3310 * nios2-tdep.c (nios2_gdbarch_init): Update.
3311 * nds32-tdep.c (nds32_gdbarch_init): Update.
3312 * mips-tdep.c (mips_gdbarch_init): Update.
3313 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3314 * m68k-tdep.c (m68k_gdbarch_init): Update.
3315 * i386-tdep.c (i386_gdbarch_init): Update.
3316 * arm-tdep.c (arm_gdbarch_init): Update.
3317 * arc-tdep.c (arc_tdesc_init): Update.
3318 (arc_gdbarch_init): Update.
3319 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3320
3321 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3322
3323 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3324 for WOW64 processes.
3325
3326 2020-09-17 Tom Tromey <tom@tromey.com>
3327
3328 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3329
3330 2020-09-17 Tom Tromey <tom@tromey.com>
3331
3332 * value.c (preserve_values): Update.
3333 * python/py-type.c (save_objfile_types): Update.
3334 * guile/scm-type.c (save_objfile_types): Update.
3335 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3336 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3337 * compile/compile-object-run.c (compile_object_run): Update.
3338
3339 2020-09-17 Tom Tromey <tom@tromey.com>
3340
3341 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3342 Remove.
3343 <m_table>: Now htab_up.
3344 * typeprint.c (typedef_hash_table::recursively_update)
3345 (typedef_hash_table::add_template_parameters)
3346 (typedef_hash_table::typedef_hash_table): Update.
3347 (typedef_hash_table::~typedef_hash_table): Remove.
3348 (typedef_hash_table::typedef_hash_table)
3349 (typedef_hash_table::find_global_typedef)
3350 (typedef_hash_table::find_typedef): Update.
3351
3352 2020-09-17 Tom Tromey <tom@tromey.com>
3353
3354 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3355
3356 2020-09-17 Tom Tromey <tom@tromey.com>
3357
3358 * linespec.c (class decode_compound_collector)
3359 <~decode_compound_collector>: Remove.
3360 <m_unique_syms>: Now htab_up.
3361 (decode_compound_collector::operator ()): Update.
3362 (class symtab_collector) <~symtab_collector>: Remove.
3363 <m_symtab_table>: Now htab_up.
3364 (symtab_collector::operator ()): Update.
3365
3366 2020-09-17 Tom Tromey <tom@tromey.com>
3367
3368 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3369 (filename_seen_cache::clear): Update.
3370 (~filename_seen_cache): Remove.
3371 (filename_seen_cache::seen): Update.
3372 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3373 htab_up.
3374 <~filename_seen_cache>: Remove.
3375 <traverse>: Update.
3376
3377 2020-09-17 Tom Tromey <tom@tromey.com>
3378
3379 * completer.c (completion_tracker::discard_completions)
3380 (completion_tracker::~completion_tracker)
3381 (completion_tracker::maybe_add_completion)
3382 (completion_tracker::remove_completion)
3383 (completion_tracker::recompute_lowest_common_denominator)
3384 (completion_tracker::build_completion_result): Update.
3385 * completer.h (class completion_tracker) <have_completions>:
3386 Update.
3387 <m_entries_hash>: Now htab_up.
3388
3389 2020-09-17 Tom Tromey <tom@tromey.com>
3390
3391 * breakpoint.c (ambiguous_names_p): Use htab_up.
3392
3393 2020-09-17 Tom Tromey <tom@tromey.com>
3394
3395 * auto-load.c (struct auto_load_pspace_info)
3396 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3397 <loaded_script_files, loaded_script_texts>: Change type to
3398 htab_up.
3399 (~auto_load_pspace_info) Remove.
3400 (init_loaded_scripts_info, maybe_add_script_file)
3401 (maybe_add_script_text, auto_load_info_scripts): Update.
3402
3403 2020-09-17 Tom Tromey <tromey@adacore.com>
3404
3405 * c-exp.y (name_obstack): Now static.
3406
3407 2020-09-17 Chungyi Chi <demonic@csie.io>
3408
3409 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3410
3411 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3414 (add_solib_catchpoint): Likewise.
3415 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3416 to bool.
3417 (add_solib_catchpoint): Change int parameter/variable to bool.
3418 (catch_load_or_unload): Likewise.
3419 (init_catchpoint): Likewise.
3420 (create_fork_vfork_event_catchpoint): Likewise.
3421 (catch_fork_command_1): Likewise.
3422 (catch_exec_command_1): Likewise.
3423
3424 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3427 Change instance_flags to m_instance_flags.
3428
3429 2020-09-16 Tom Tromey <tromey@adacore.com>
3430
3431 PR gdb/26598:
3432 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3433
3434 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3435
3436 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3437 PL_FLAG_EXEC.
3438 (fbsd_nat_target::insert_exec_catchpoint)
3439 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3440 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3441 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3442
3443 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3444
3445 * configure.ac: Remove check for kinfo_getvmmap().
3446 * configure, config.in: Regenerate.
3447 * fbsd-nat.c (fbsd_read_mapping): Remove
3448 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3449 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3450 kinfo_get_vmmap() are always present.
3451
3452 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3453
3454 * fbsd-nat.c: Always include support for
3455 TARGET_OBJECT_SIGNAL_INFO.
3456
3457 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3458
3459 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3460 sysctl and remove procfs fallback.
3461
3462 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3463
3464 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3465 * fbsd-nat.h: Likewise.
3466
3467 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3470 argument.
3471
3472 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Delete.
3475 (ada_language): Remove references to ada_language_data.
3476 * c-lang.c (c_language_data): Delete.
3477 (c_language): Remove references to c_language_data.
3478 (cplus_language_data): Delete.
3479 (cplus_language): Remove references to cplus_language_data.
3480 (asm_language_data): Delete.
3481 (asm_language): Remove references to asm_language_data.
3482 (minimal_language_data): Delete.
3483 (minimal_language): Remove references to minimal_language_data.
3484 * d-lang.c (d_language_data): Delete.
3485 (d_language): Remove references to d_language_data.
3486 * f-lang.c (f_language_data): Delete.
3487 (f_language): Remove references to f_language_data.
3488 * go-lang.c (go_language_data): Delete.
3489 (go_language): Remove references to go_language_data.
3490 * language.c (unknown_language_data): Delete.
3491 (unknown_language): Remove references to unknown_language_data.
3492 (auto_language_data): Delete.
3493 (auto_language): Remove references to auto_language_data.
3494 * language.h (language_data): Delete struct.
3495 (language_defn): No longer inherit from language_data.
3496 * m2-lang.c (m2_language_data): Delete.
3497 (m2_language): Remove references to m2_language_data.
3498 * objc-lang.c (objc_language_data): Delete.
3499 (objc_language): Remove references to objc_language_data.
3500 * opencl-lang.c (opencl_language_data): Delete.
3501 (opencl_language): Remove references to opencl_language_data.
3502 * p-lang.c (pascal_language_data): Delete.
3503 (pascal_language): Remove references to pascal_language_data.
3504 * rust-lang.c (rust_language_data): Delete.
3505 (rust_language): Remove references to rust_language_data.
3506
3507 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3510 initializer.
3511 (ada_language::opcode_print_table): New member function.
3512 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3513 (c_language::opcode_print_table): New member function.
3514 (cplus_language_data): Remove la_op_print_tab initializer.
3515 (cplus_language::opcode_print_table): New member function.
3516 (asm_language_data): Remove la_op_print_tab initializer.
3517 (asm_language::opcode_print_table): New member function.
3518 (minimal_language_data): Remove la_op_print_tab initializer.
3519 (minimal_language::opcode_print_table): New member function.
3520 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3521 (d_language::opcode_print_table): New member function.
3522 * expprint.c (print_subexp_standard): Update call to
3523 opcode_print_table.
3524 (op_string): Likewise.
3525 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3526 (f_language::opcode_print_table): New member function.
3527 * go-lang.c (go_language_data): Remove la_op_print_tab
3528 initializer.
3529 (go_language::opcode_print_table): New member function.
3530 * language.c (unknown_language_data): Remove la_op_print_tab
3531 initializer.
3532 (unknown_language::opcode_print_table): New member function.
3533 (auto_language_data): Remove la_op_print_tab initializer.
3534 (auto_language::opcode_print_table): New member function.
3535 * language.h (language_data): Remove la_op_print_tab field.
3536 (language_defn::opcode_print_table): Declare new member function.
3537 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3538 initializer.
3539 (m2_language::opcode_print_table): New member function.
3540 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3541 initializer.
3542 (objc_language::opcode_print_table): New member function.
3543 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3544 initializer.
3545 (opencl_language::opcode_print_table): New member function.
3546 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3547 initializer.
3548 (pascal_language::opcode_print_table): New member function.
3549 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3550 initializer.
3551 (rust_language::opcode_print_table): New member function.
3552
3553 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3556 (ada_language::expression_ops): New member function.
3557 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3558 (c_language::expression_ops): New member function.
3559 (cplus_language_data): Remove la_exp_desc initializer.
3560 (cplus_language::expression_ops): New member function.
3561 (asm_language_data): Remove la_exp_desc initializer.
3562 (asm_language::expression_ops): New member function.
3563 (minimal_language_data): Remove la_exp_desc initializer.
3564 (minimal_language::expression_ops): New member function.
3565 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3566 (d_language::expression_ops): New member function.
3567 * eval.c (evaluate_subexp): Update call to expression_ops.
3568 * expprint.c (print_subexp): Likewise.
3569 (op_name): Likewise.
3570 (dump_subexp_body): Likewise.
3571 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3572 (f_language::expression_ops): New member function.
3573 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3574 (go_language::expression_ops): New member function.
3575 * language.c (language_defn::expression_ops): New function.
3576 (unknown_language_data): Remove la_exp_desc initializer.
3577 (auto_language_data): Likewise.
3578 * language.h (language_data): Remove la_exp_desc field.
3579 (language_defn::expression_ops): Declare new member function.
3580 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3581 (m2_language::expression_ops): New member function.
3582 * objc-lang.c (objc_language_data): Remove la_exp_desc
3583 initializer.
3584 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3585 initializer.
3586 (opencl_language::expression_ops): New member function.
3587 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3588 * parse.c (operator_length): Update call to expression_ops.
3589 (exp_iterate): Likewise.
3590 * rust-lang.c (rust_language_data): Remove la_exp_desc
3591 initializer.
3592 (ruse_language::expression_ops): New member function.
3593
3594 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3597 initializer.
3598 (ada_language::varobj_ops): New member function.
3599 * c-lang.c (c_language_data): Remove la_varobj_ops
3600 initializer.
3601 (cplus_language_data): Likewise.
3602 (cplus_language::varobj_ops): New member function.
3603 (asm_language_data): Remove la_varobj_ops initializer.
3604 (minimal_language_data): Likewise.
3605 * d-lang.c (d_language_data): Likewise.
3606 * f-lang.c (f_language_data): Likewise.
3607 * go-lang.c (go_language_data): Likewise.
3608 * language.c (language_defn::varobj_ops): New function.
3609 (unknown_language_data): Remove la_varobj_ops
3610 initializer.
3611 (auto_language_data): Likewise.
3612 * language.h (language_data): Remove la_varobj_ops field.
3613 (language_defn::varobj_ops): Declare new member function.
3614 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3615 * objc-lang.c (objc_language_data): Likewise.
3616 * opencl-lang.c (opencl_language_data): Likewise.
3617 * p-lang.c (pascal_language_data): Likewise.
3618 * rust-lang.c (rust_language_data): Likewise.
3619 * varobj.c (varobj_create): Update call to varobj_ops.
3620 * varobj.h (default_varobj_ops): Delete define.
3621
3622 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3625 initializer.
3626 * c-lang.c (c_language_data): Likewise.
3627 (c_language::macro_expansion): New member function.
3628 (cplus_language_data): Likewise.
3629 (cplus_language::macro_expansion): New member function.
3630 (asm_language_data): Likewise.
3631 (asm_language::macro_expansion): New member function.
3632 (minimal_language_data): Likewise.
3633 (minimal_language::macro_expansion): New member function.
3634 * d-lang.c (d_language_data): Remove la_macro_expansion
3635 initializer.
3636 * f-lang.c (f_language_data): Likewise.
3637 * go-lang.c (go_language_data): Likewise.
3638 * language.c (unknown_language_data): Likewise.
3639 (auto_language_data): Likewise.
3640 * language.h (language_data): Remove la_macro_expansion field.
3641 (language_defn::macro_expansion): New member function.
3642 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3643 initializer.
3644 * objc-lang.c (objc_language_data): Likewise.
3645 (objc_language::macro_expansion): New member function.
3646 * opencl-lang.c (opencl_language_data): Likewise.
3647 (opencl_language::macro_expansion): New member function.
3648 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3649 initializer.
3650 * rust-lang.c (rust_language_data): Likewise.
3651 * symtab.c (default_collect_symbol_completion_matches_break_on):
3652 Update call to macro_expansion.
3653
3654 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (ada_language_data): Remove la_array_ordering
3657 initializer.
3658 * c-lang.c (c_language_data): Likewise.
3659 (cplus_language_data): Likewise.
3660 (asm_language_data): Likewise.
3661 (minimal_language_data): Likewise.
3662 * d-lang.c (d_language_data): Likewise.
3663 * dwarf2/read.c (read_array_order): Update for call to
3664 array_ordering.
3665 * f-lang.c (f_language_data): Remove la_array_ordering
3666 initializer.
3667 (f_language::array_ordering): New member function.
3668 * go-lang.c (go_language_data): Remove la_array_ordering
3669 initializer.
3670 * language.c (unknown_language_data): Likewise.
3671 (auto_language_data): Likewise.
3672 * language.h (language_data): Delete la_array_ordering field.
3673 (language_defn::array_ordering): New member function.
3674 * m2-lang.c (m2_language_data): Remove la_array_ordering
3675 initializer.
3676 * objc-lang.c (objc_language_data): Likewise.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 * rust-lang.c (rust_language_data): Likewise.
3680
3681 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3684 initializer.
3685 * c-lang.c (c_language_data): Likewise.
3686 (cplus_language_data): Likewise.
3687 (asm_language_data): Likewise.
3688 (minimal_language_data): Likewise.
3689 * d-lang.c (d_language_data): Likewise.
3690 * f-lang.c (f_language_data): Likewise.
3691 (f_language::case_sensitivity): New member function.
3692 * go-lang.c (go_language_data): Remove la_case_sensitivity
3693 initializer.
3694 * language.c (enum case_mode): Moved here from language.h.
3695 (case_mode): Make static.
3696 (show_case_command): Update for case_sensitivity being a method.
3697 (set_case_command): Likewise.
3698 (set_range_case): Likewise.
3699 (unknown_language_data): Remove la_case_sensitivity initializer.
3700 (auto_language_data): Likewise.
3701 * language.h (case_mode): Delete, move enum declaration to
3702 language.c.
3703 (language_data): Delete la_case_sensitivity field.
3704 (language_defn::case_sensitivity): New member function.
3705 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3706 initializer.
3707 * objc-lang.c (objc_language_data): Likewise.
3708 * opencl-lang.c (opencl_language_data): Likewise.
3709 * p-lang.c (pascal_language_data): Likewise.
3710 * rust-lang.c (rust_language_data): Likewise.
3711
3712 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (ada_language_data): Remove la_range_check
3715 initializer.
3716 * c-lang.c (c_language_data): Likewise.
3717 (cplus_language_data): Likewise.
3718 (asm_language_data): Likewise.
3719 (minimal_language_data): Likewise.
3720 * d-lang.c (d_language_data): Likewise.
3721 * f-lang.c (f_language_data): Likewise.
3722 (f_language::range_checking_on_by_default): New member function.
3723 * go-lang.c (go_language_data): Remove la_range_check initializer.
3724 * language.c (enum range_mode): Moved here from language.h.
3725 (range_mode): Made static.
3726 (show_range_command): Update to use
3727 range_checking_on_by_default.
3728 (set_range_command): Likewise.
3729 (set_range_case): Likewise.
3730 (unknown_language_data): Remove la_range_check initializer.
3731 (auto_language_data): Likewise.
3732 * language.h (range_mode): Delete. Enum definition moved to
3733 language.c.
3734 (language_data): Remove la_range_check field.
3735 (language_defn::range_checking_on_by_default): New member
3736 function.
3737 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3738 (m2_language::range_checking_on_by_default): New member function.
3739 * objc-lang.c (objc_language_data): Remove la_range_check
3740 initializer.
3741 * opencl-lang.c (opencl_language_data): Likewise.
3742 * p-lang.c (pascal_language_data): Likewise.
3743 (pascal_language::range_checking_on_by_default): New member
3744 function.
3745 * rust-lang.c (rust_language_data): Remove la_range_check
3746 initializer.
3747 (rust_language::range_checking_on_by_default): New member
3748 function.
3749
3750 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * dwarf2/read.c (dwarf2_physname): Remove special case for
3753 language_go.
3754 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3755 member function.
3756
3757 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * ada-lang.c (ada_language_data): Remove
3760 la_store_sym_names_in_linkage_form_p initializer.
3761 (ada_language::store_sym_names_in_linkage_form_p): New member
3762 function.
3763 * c-lang.c (c_language_data): Remove
3764 la_store_sym_names_in_linkage_form_p initializer.
3765 (c_language::store_sym_names_in_linkage_form_p): New member
3766 function.
3767 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3768 initializer.
3769 (asm_language_data): Likewise.
3770 (asm_language::store_sym_names_in_linkage_form_p): New member
3771 function.
3772 (minimal_language_data): Remove
3773 la_store_sym_names_in_linkage_form_p initializer.
3774 (minimal_language::store_sym_names_in_linkage_form_p): New member
3775 function.
3776 * d-lang.c (d_language_data): Remove
3777 la_store_sym_names_in_linkage_form_p initializer.
3778 * dwarf2/read.c (dwarf2_physname): Update call to
3779 store_sym_names_in_linkage_form_p.
3780 * f-lang.c (f_language_data): Remove
3781 la_store_sym_names_in_linkage_form_p initializer.
3782 * go-lang.c (go_language_data): Remove
3783 la_store_sym_names_in_linkage_form_p initializer.
3784 * language.c (unknown_language_data): Remove
3785 la_store_sym_names_in_linkage_form_p initializer.
3786 (unknown_language::store_sym_names_in_linkage_form_p): New member
3787 function.
3788 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3789 initializer.
3790 (auto_language::store_sym_names_in_linkage_form_p): New member
3791 function.
3792 * language.h (language_data): Remove
3793 la_store_sym_names_in_linkage_form_p member variable.
3794 (language_defn::store_sym_names_in_linkage_form_p): New member
3795 function.
3796 * m2-lang.c (m2_language_data): Remove
3797 la_store_sym_names_in_linkage_form_p initializer.
3798 * objc-lang.c (objc_language_data): Likewise.
3799 * opencl-lang.c (opencl_language_data): Likewise.
3800 * p-lang.c (pascal_language_data): Likewise.
3801 * rust-lang.c (rust_language_data): Likewise.
3802
3803 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * ada-lang.c (ada_language_data): Remove string_lower_bound
3806 initializer.
3807 * c-lang.c (c_language_data): Likewise.
3808 (cplus_language_data): Likewise.
3809 (asm_language_data): Likewise.
3810 (minimal_language_data): Likewise.
3811 * d-lang.c (d_language_data): Likewise.
3812 * f-lang.c (f_language_data): Likewise.
3813 * go-lang.c (go_language_data): Likewise.
3814 * language.c (unknown_language_data): Likewise.
3815 (auto_language_data): Likewise.
3816 * language.h (language_data): Remove string_lower_bound field.
3817 (language_defn::string_lower_bound): New member function.
3818 * m2-lang.c (m2_language_data): Remove string_lower_bound
3819 initializer.
3820 (m2_language::string_lower_bound): New member function.
3821 * objc-lang.c (objc_language_data): Remove string_lower_bound
3822 initializer.
3823 * opencl-lang.c (opencl_language_data): Likewise.
3824 * p-lang.c (pascal_language_data): Likewise.
3825 * rust-lang.c (rust_language_data): Likewise.
3826 * valops.c (value_cstring): Update call to string_lower_bound.
3827 (value_string): Likewise.
3828 * value.c (allocate_repeated_value): Likewise.
3829
3830 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * valops.c (value_repeat): Fix incorrect argument name in comment.
3833
3834 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3835
3836 * ada-lang.c (ada_language_data): Remove c_style_arrays
3837 initializer.
3838 (ada_language::c_style_arrays_p): New member fuction.
3839 * c-lang.c (c_language_data): Remove c_style_arrays
3840 initializer.
3841 (cplus_language_data): Likewise.
3842 (asm_language_data): Likewise.
3843 (minimal_language_data): Likewise.
3844 * d-lang.c (d_language_data): Likewise.
3845 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3846 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3847 (f_language::c_style_arrays_p): New member function.
3848 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3849 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3850 * language.c (unknown_language_data): Remove c_style_arrays
3851 initializer.
3852 (auto_language_data): Likewise.
3853 * language.h (language_data): Remove c_style_arrays field.
3854 (language_defn::c_style_arrays_p): New member function.
3855 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3856 (m2_language::c_style_arrays_p): New member function.
3857 * objc-lang.c (objc_language_data): Remove c_style_arrays
3858 initializer.
3859 * opencl-lang.c (opencl_language_data): Likewise.
3860 * p-lang.c (pascal_language_data): Likewise.
3861 * rust-lang.c (rust_language_data): Likewise.
3862 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3863 and update local variable to a bool.
3864 * valops.c (value_cast): Update call to c_style_arrays_p.
3865 (value_array): Likewise.
3866 * value.c (coerce_array): Likewise.
3867
3868 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * ada-lang.c (ada_language_data): Remove la_language initializer.
3871 * c-lang.c (c_language_data): Likewise.
3872 (cplus_language_data): Likewise.
3873 (asm_language_data): Likewise.
3874 (minimal_language_data): Likewise.
3875 * d-lang.c (d_language_data): Likewise.
3876 * f-lang.c (f_language_data): Likewise.
3877 * go-lang.c (go_language_data): Likewise.
3878 * language.c (unknown_language_data): Likewise.
3879 (auto_language_data): Likewise.
3880 * language.h (language_data): Remove la_language field.
3881 (language_defn::language_defn): Initialise la_language field.
3882 (language_defn::la_language): New member variable.
3883 * m2-lang.c (m2_language_data): Remove la_language field.
3884 * objc-lang.c (objc_language_data): Likewise.
3885 * opencl-lang.c (opencl_language_data): Likewise.
3886 * p-lang.c (pascal_language_data): Likewise.
3887 * rust-lang.c (rust_language_data): Likewise.
3888
3889 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * ada-lang.c (ada_extensions): Delete, moved into
3892 ada_language::filename_extensions.
3893 (ada_language_data): Remove la_filename_extensions initializer.
3894 (ada_language::filename_extensions): New member function.
3895 * c-lang.c (c_extensions): Delete, moved into
3896 c_language::filename_extensions.
3897 (c_language_data): Remove la_filename_extensions initializer.
3898 (c_language::filename_extensions): New member function.
3899 (cplus_extensions): Delete, moved into
3900 cplus_language::filename_extensions.
3901 (cplus_language_data): Remove la_filename_extensions initializer.
3902 (cplus_language::filename_extensions): New member function.
3903 (asm_extensions): Delete, moved into
3904 asm_language::filename_extensions.
3905 (asm_language_data): Remove la_filename_extensions initializer.
3906 (asm_language::filename_extensions): New member function.
3907 (minimal_language_data): Remove la_filename_extensions
3908 initializer.
3909 * d-lang.c (d_extensions): Delete, moved into
3910 d_language::filename_extensions.
3911 (d_language_data): Remove la_filename_extensions initializer.
3912 (d_language::filename_extensions): New member function.
3913 * f-lang.c (f_extensions): Delete, moved into
3914 f_language::filename_extensions.
3915 (f_language_data): Remove la_filename_extensions initializer.
3916 (f_language::filename_extensions): New member function.
3917 * go-lang.c (go_language_data): Remove la_filename_extensions
3918 initializer.
3919 * language.c (add_set_language_command): Update now that
3920 filename_extensions returns a vector.
3921 (unknown_language_data): Remove la_filename_extensions
3922 initializer.
3923 (auto_language_data): Likewise.
3924 * language.h (language_data): Remove la_filename_extensions field.
3925 (language_defn::filename_extensions): New member function.
3926 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3927 initializer.
3928 * objc-lang.c (objc_extensions): Delete, moved into
3929 objc_language::filename_extensions.
3930 (objc_language_data): Remove la_filename_extensions initializer.
3931 (objc_language::filename_extensions): New member function.
3932 * opencl-lang.c (opencl_language_data): Remove
3933 la_filename_extensions initializer.
3934 * p-lang.c (pascal_extensions): Delete, moved into
3935 pascal_language::filename_extensions.
3936 (pascal_language_data): Remove la_filename_extensions initializer.
3937 (pascal_language::filename_extensions): New member function.
3938 * rust-lang.c (rust_extensions): Delete, moved into
3939 rust_language::filename_extensions.
3940 (rust_language_data): Remove la_filename_extensions initializer.
3941 (rust_language::filename_extensions): New member function.
3942 * symfile.c (add_filename_language): Add new assert.
3943
3944 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Remove la_name and
3947 la_natural_name initializers.
3948 (ada_language::name): New member function.
3949 (ada_language::natural_name): New member function.
3950 * c-lang.c (c_language_data): Remove la_name and
3951 la_natural_name initializers.
3952 (c_language::name): New member function.
3953 (c_language::natural_name): New member function.
3954 (cplus_language_data): Remove la_name and
3955 la_natural_name initializers.
3956 (cplus_language::name): New member function.
3957 (cplus_language::natural_name): New member function.
3958 (asm_language_data): Remove la_name and
3959 la_natural_name initializers.
3960 (asm_language::name): New member function.
3961 (asm_language::natural_name): New member function.
3962 (minimal_language_data): Remove la_name and
3963 la_natural_name initializers.
3964 (minimal_language::name): New member function.
3965 (minimal_language::natural_name): New member function.
3966 * compile/compile.c (compile_to_object): Update call to
3967 lanugage_defn::name.
3968 * d-lang.c (d_language_data): Remove la_name and
3969 la_natural_name initializers.
3970 (d_language::name): New member function.
3971 (d_language::natural_name): New member function.
3972 * expprint.c (print_subexp_standard): Update call to
3973 language_defn::name.
3974 (dump_raw_expression): Likewise
3975 (dump_prefix_expression): Likewise.
3976 * f-lang.c (f_language_data): Remove la_name and
3977 la_natural_name initializers.
3978 (f_language::name): New member function.
3979 (f_language::natural_name): New member function.
3980 * go-lang.c (go_language_data): Remove la_name and
3981 la_natural_name initializers.
3982 (go_language::name): New member function.
3983 (go_language::natural_name): New member function.
3984 * language.c (show_language_command): Update call to
3985 language_defn::name.
3986 (set_language_command): Likewise.
3987 (language_enum): Likewise.
3988 (language_str): Likewise.
3989 (add_set_language_command): Likewise, use
3990 language_defn::natural_name in the doc string.
3991 (unknown_language_data): Remove la_name and
3992 la_natural_name initializers.
3993 (unknown_language::name): New member function.
3994 (unknown_language::natural_name): New member function.
3995 (auto_language_data): Remove la_name and
3996 la_natural_name initializers.
3997 (auto_language::name): New member function.
3998 (auto_language::natural_name): New member function.
3999 (language_lookup_primitive_type_as_symbol): Update call to
4000 language_defn::name.
4001 * language.h (language_data): Remove la_name and la_natural_name
4002 member variables.
4003 (language_defn::name): New member function.
4004 (language_defn::natural_name): New member function.
4005 * m2-lang.c (m2_language_data): Remove la_name and
4006 la_natural_name initializers.
4007 (m2_language::name): New member function.
4008 (m2_language::natural_name): New member function.
4009 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4010 language_defn::natural_name.
4011 * objc-lang.c (objc_language_data): Remove la_name and
4012 la_natural_name initializers.
4013 (objc_language::name): New member function.
4014 (objc_language::natural_name): New member function.
4015 * opencl-lang.c (opencl_language_data): Remove la_name and
4016 la_natural_name initializers.
4017 (opencl_language::name): New member function.
4018 (opencl_language::natural_name): New member function.
4019 * p-lang.c (pascal_language_data): Remove la_name and
4020 la_natural_name initializers.
4021 (pascal_language::name): New member function.
4022 (pascal_language::natural_name): New member function.
4023 * rust-lang.c (rust_language_data): Remove la_name and
4024 la_natural_name initializers.
4025 (rust_language::name): New member function.
4026 (rust_language::natural_name): New member function.
4027 * symtab.c (lookup_language_this): Update call to
4028 language_defn::name.
4029
4030 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4031
4032 * ada-lang.c (ada_language_data): Remove la_name_of_this
4033 initializer.
4034 * ax-gdb.c (gen_expr): Update call to name_of_this.
4035 * c-exp.y (classify_name): Likewise.
4036 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4037 (cplus_language_data): Likewise.
4038 (cplus_language::name_of_this): New member function.
4039 (asm_language_data): Remove la_name_of_this initializer.
4040 (minimal_language_data): Likewise.
4041 * d-lang.c (d_language_data): Likewise.
4042 (d_language::name_of_this): New member function.
4043 * expprint.c (print_subexp_standard): Update call to name_of_this.
4044 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4045 * go-lang.c (go_language_data): Likewise.
4046 * language.c (unknown_language_data): Likewise.
4047 (unknown_language::name_of_this): New member function.
4048 (auto_language_data): Remove la_name_of_this initializer.
4049 (auto_language::name_of_this): New member function.
4050 * language.h (language_data): Delete la_name_of_this member
4051 variable.
4052 (language_defn::name_of_this): New member function.
4053 * m2-lang.c (m2_language_data): Remove la_name_of_this
4054 initializer.
4055 * objc-lang.c (objc_language_data): Likewise.
4056 (objc_language::name_of_this): New member function.
4057 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4058 initializer.
4059 * p-lang.c (pascal_language_data): Likewise.
4060 (pascal_language::name_of_this): New member function.
4061 * rust-lang.c (rust_language_data): Remove la_name_of_this
4062 initializer.
4063 * symtab.c (lookup_language_this): Update call to name_of_this.
4064 (lookup_symbol_aux): Likewise.
4065 * valops.c (value_of_this): Likewise.
4066
4067 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * ada-lang.c (ada_language_data): Remove
4070 la_struct_too_deep_ellipsis initializer.
4071 (ada_language::struct_too_deep_ellipsis): New member function.
4072 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4073 initializer.
4074 (cplus_language_data): Likewise.
4075 (asm_language_data): Likewise.
4076 (minimal_language_data): Likewise.
4077 * cp-valprint.c (cp_print_value): Update call to
4078 struct_too_deep_ellipsis.
4079 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4080 initializer.
4081 * f-lang.c (f_language_data): Likewise.
4082 (f_language::struct_too_deep_ellipsis): New member function.
4083 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4084 initializer.
4085 * language.c (unknown_language_data): Likewise.
4086 (auto_language_data): Likewise.
4087 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4088 member variable.
4089 (language_defn::struct_too_deep_ellipsis): New member function.
4090 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4091 initializer.Q
4092 * objc-lang.c (objc_language_data): Likewise.
4093 * opencl-lang.c (opencl_language_data): Likewise.
4094 * p-lang.c (pascal_language_data): Likewise.
4095 * rust-lang.c (rust_language_data): Likewise.
4096 * valprint.c (val_print_check_max_depth): Update call to
4097 struct_too_deep_ellipsis.
4098
4099 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4100
4101 * MAINTAINERS (Write After Approval): Add myself.
4102
4103 2020-09-15 Tom Tromey <tom@tromey.com>
4104
4105 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4106 Remove.
4107
4108 2020-09-15 Tom Tromey <tom@tromey.com>
4109
4110 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4111 and TYPE_CODE_METHODPTR cases.
4112 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4113 (c_value_print_inner): Update.
4114 * valprint.c (generic_value_print_memberptr): New function, from
4115 c_value_print_memberptr.
4116 (generic_value_print): Use it. Call cplus_print_method_ptr.
4117
4118 2020-09-15 Tom Tromey <tromey@adacore.com>
4119
4120 * python/python-internal.h (PyInt_FromLong): Remove define.
4121 * python/py-value.c (convert_value_from_python): Use
4122 gdb_py_object_from_longest.
4123 * python/py-type.c (typy_get_code): Use
4124 gdb_py_object_from_longest.
4125 * python/py-symtab.c (salpy_get_line): Use
4126 gdb_py_object_from_longest.
4127 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4128 gdb_py_object_from_longest.
4129 * python/py-record.c (recpy_gap_reason_code): Use
4130 gdb_py_object_from_longest.
4131 * python/py-record-btrace.c (recpy_bt_insn_size)
4132 (recpy_bt_func_level, btpy_list_count): Use
4133 gdb_py_object_from_longest.
4134 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4135 gdb_py_object_from_longest. Fix error handling.
4136 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4137 gdb_py_object_from_longest.
4138 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4139 gdb_py_object_from_longest.
4140 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4141 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4142 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4143
4144 2020-09-15 Tom Tromey <tromey@adacore.com>
4145
4146 * python/python.c (gdbpy_parameter_value): Use
4147 gdb_py_object_from_ulongest.
4148
4149 2020-09-15 Tom Tromey <tromey@adacore.com>
4150
4151 * python/py-infevents.c (create_register_changed_event_object):
4152 Use gdb_py_object_from_longest.
4153 * python/py-exitedevent.c (create_exited_event_object): Use
4154 gdb_py_object_from_longest.
4155
4156 2020-09-15 Tom Tromey <tromey@adacore.com>
4157
4158 * python/python.c (gdbpy_parameter_value): Use
4159 gdb_py_object_from_longest.
4160 * python/py-type.c (convert_field, typy_range): Use
4161 gdb_py_object_from_longest.
4162 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4163 gdb_py_object_from_longest.
4164 * python/py-lazy-string.c (stpy_get_length): Use
4165 gdb_py_object_from_longest.
4166 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4167 gdb_py_object_from_longest.
4168 * python/py-infevents.c (create_memory_changed_event_object): Use
4169 gdb_py_object_from_longest.
4170 * python/py-inferior.c (infpy_get_num): Use
4171 gdb_py_object_from_longest.
4172 (infpy_get_pid): Likewise.
4173
4174 2020-09-15 Tom Tromey <tromey@adacore.com>
4175
4176 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4177 defines.
4178 * python/py-value.c (valpy_long): Use
4179 gdb_py_object_from_ulongest.
4180 * python/py-symtab.c (salpy_get_pc): Use
4181 gdb_py_object_from_ulongest.
4182 (salpy_get_last): Likewise.
4183 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4184 gdb_py_object_from_ulongest.
4185 * python/py-lazy-string.c (stpy_get_address): Use
4186 gdb_py_object_from_ulongest.
4187 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4188 * python/py-arch.c (archpy_disassemble): Use
4189 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4190 error handling.
4191
4192 2020-09-15 Tom Tromey <tromey@adacore.com>
4193
4194 * python/python-internal.h (gdb_py_long_from_longest): Remove
4195 defines.
4196 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4197 * python/py-type.c (convert_field, typy_get_sizeof): Use
4198 gdb_py_object_from_longest.
4199 * python/py-record-btrace.c (btpy_list_index): Use
4200 gdb_py_object_from_longest.
4201
4202 2020-09-15 Tom Tromey <tromey@adacore.com>
4203
4204 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4205 * python/py-record.c (recpy_element_number): Use
4206 gdb_py_object_from_longest.
4207 (recpy_gap_number): Likewise.
4208
4209 2020-09-15 Tom Tromey <tromey@adacore.com>
4210
4211 * top.c (ui::ui): Update.
4212 (highest_ui_num): Remove.
4213 * top.h (struct ui) <num>: Remove.
4214
4215 2020-09-15 Tom Tromey <tromey@adacore.com>
4216
4217 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4218 * ui-style.c (ansi_regex_text): Now array.
4219 * rust-exp.y (number_regex_text): Now array.
4220 * linespec.c (linespec_quote_characters): Now array.
4221 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4222 Now arrays.
4223
4224 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4225
4226 * debuginfod-support.c (debuginfod_client_deleter): New.
4227 (debuginfod_client_up): New.
4228 (debuginfod_init): Return debuginfod_client_up.
4229 (debuginfod_source_query): Adjust.
4230 (debuginfod_debuginfo_query): Adjust.
4231
4232 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * debuginfod-support.c (debuginfod_source_query): Use
4235 make_unique_xstrdup.
4236
4237 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4240 with `type::instance_flags`.
4241
4242 2020-09-14 Michael Mullin <masmullin@gmail.com>
4243
4244 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4245 Remove baton parameter.
4246
4247 2020-09-14 Pedro Alves <pedro@palves.net>
4248
4249 * Makefile.in (SELFTESTS_SRCS): Add
4250 unittests/enum-flags-selftests.c.
4251 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4252 btrace_function_flags instead of enum btrace_function_flag.
4253 * compile/compile-c-types.c (convert_qualified): Use
4254 enum_flags::raw.
4255 * compile/compile-cplus-symbols.c (convert_one_symbol)
4256 (convert_symbol_bmsym):
4257 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4258 (compile_cplus_convert_struct_or_union_methods)
4259 (compile_cplus_instance::convert_qualified_base):
4260 * go-exp.y (parse_string_or_char): Add cast to int.
4261 * unittests/enum-flags-selftests.c: New file.
4262 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4263 type to btrace_thread_flags from btrace_thread_flag.
4264 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4265 local's type to btrace_thread_flags from btrace_thread_flag. Add
4266 cast in DEBUG call.
4267
4268 2020-09-14 Pedro Alves <pedro@palves.net>
4269
4270 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4271 * gdbtypes.c (address_space_name_to_int): Rename to ...
4272 (address_space_name_to_type_instance_flags): ... this.
4273 (address_space_int_to_name): Rename to ...
4274 (address_space_type_instance_flags_to_name): ... this.
4275 * gdbtypes.h (address_space_name_to_int): Rename to ...
4276 (address_space_name_to_type_instance_flags): ... this.
4277 (address_space_int_to_name): Rename to ...
4278 (address_space_type_instance_flags_to_name): ... this.
4279 * type-stack.c (type_stack::insert): Adjust to rename.
4280 * type-stack.h (type_stack::insert): Likewise.
4281
4282 2020-09-14 Pedro Alves <pedro@palves.net>
4283 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * avr-tdep.c (avr_address_class_type_flags): Return
4286 type_instance_flags.
4287 (avr_address_class_type_flags_to_name): Take a
4288 type_instance_flags.
4289 (avr_address_class_name_to_type_flags): Return bool and take a
4290 type_instance_flags.
4291 * d-lang.c (build_d_types): Use type::set_instance_flags.
4292 * ft32-tdep.c (ft32_address_class_type_flags): Return
4293 type_instance_flags.
4294 (ft32_address_class_type_flags_to_name): Take a
4295 type_instance_flags.
4296 (ft32_address_class_name_to_type_flags): Return bool and take a
4297 type_instance_flags.
4298 (ft32_gdbarch_init): Use type::set_instance_flags.
4299 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4300 * gdbarch.h, gdbarch.c: Regenerate.
4301 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4302 (address_class_name_to_type_flags): Use type_instance_flags and
4303 bool.
4304 * gdbtypes.c (address_space_name_to_int)
4305 (address_space_int_to_name, make_qualified_type): Use
4306 type_instance_flags.
4307 (make_qualified_type): Use type_instance_flags and
4308 type::set_instance_flags.
4309 (make_type_with_address_space, make_cv_type, make_vector_type)
4310 (check_typedef): Use type_instance_flags.
4311 (recursive_dump_type): Cast type_instance_flags to unsigned for
4312 printing.
4313 (copy_type_recursive): Use type::set_instance_flags.
4314 (gdbtypes_post_init): Use type::set_instance_flags.
4315 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4316 <m_instance_flags>: ... this.
4317 <instance_flags, set_instance_flags>: New methods.
4318 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4319 (SET_TYPE_INSTANCE_FLAGS): New.
4320 (address_space_name_to_int, address_space_int_to_name)
4321 (make_type_with_address_space): Pass flags using
4322 type_instance_flags instead of int.
4323 * stabsread.c (cleanup_undefined_types_noname): Use
4324 type::set_instance_flags.
4325 * s390-tdep.c (s390_address_class_type_flags): Return
4326 type_instance_flags.
4327 (s390_address_class_type_flags_to_name): Take a
4328 type_instance_flags.
4329 (s390_address_class_name_to_type_flags): Return bool and take a
4330 type_instance_flags.
4331 * type-stack.c (type_stack::follow_types): Use
4332 type_instance_flags.
4333 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4334
4335 2020-09-14 Tom Tromey <tromey@adacore.com>
4336
4337 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4338 * x86-tdep.c (x86_is_thunk_register_name)
4339 (x86_in_indirect_branch_thunk): Update.
4340 * sparc64-tdep.c (sparc64_fpu_register_names)
4341 (sparc64_cp0_register_names, sparc64_register_names)
4342 (sparc64_pseudo_register_names): Now const.
4343 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4344 cp0_registers_num>: Now const.
4345 * sparc-tdep.c (sparc_core_register_names)
4346 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4347 (sparc32_pseudo_register_names): Now const.
4348 (validate_tdesc_registers): Update.
4349 * rust-lang.c (rust_extensions): Now const.
4350 * p-lang.c (p_extensions): Now const.
4351 * objc-lang.c (objc_extensions): Now const.
4352 * nto-tdep.c (nto_thread_state_str): Now const.
4353 * moxie-tdep.c (moxie_register_names): Now const.
4354 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4355 Now const.
4356 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4357 (mips_linux_reg_names): Now const.
4358 (mips_gdbarch_init): Update.
4359 * microblaze-tdep.c (microblaze_register_names): Now const.
4360 * m68k-tdep.c (m68k_register_names): Now const.
4361 * m32r-tdep.c (m32r_register_names): Now const.
4362 * ia64-tdep.c (ia64_register_names): Now const.
4363 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4364 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4365 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4366 ymm_avx512_register_names, pkeys_register_names>: Now const.
4367 * i386-tdep.c (i386_register_names, i386_zmm_names)
4368 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4369 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4370 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4371 * f-lang.c (f_extensions): Now const.
4372 * d-lang.c (d_extensions): Now const.
4373 * csky-tdep.c (csky_register_names): Now const.
4374 * charset.c (default_charset_names, charset_enum): Now const.
4375 (_initialize_charset): Update.
4376 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4377 const.
4378 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4379 (bsd_uthread_solib_loaded): Update.
4380 (bsd_uthread_state): Now const.
4381 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4382 (amd64_ymm_avx512_names, amd64_ymmh_names)
4383 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4384 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4385 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4386 (amd64_dword_names): Now const.
4387 * agent.c (can_use_agent_enum): Now const.
4388 * ada-tasks.c (task_states, long_task_states): Now const.
4389 * ada-lang.c (known_runtime_file_name_patterns)
4390 (known_auxiliary_function_name_patterns, attribute_names)
4391 (standard_exc, ada_extensions): Now const.
4392
4393 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4394
4395 * bcache.h (struct bcache) <bcache>: Remove constructor.
4396 <m_hash_function, m_compare_function>: Remove.
4397 <~bcache>: Make virtual.
4398 <compare>: Remove static method, introduce virtual method.
4399 <default_hash>: Remove.
4400 <hash>: New virtual method.
4401 * bcache.c (bcache::expand_hash_table): Update.
4402 (bcache::insert): Update.
4403 (bcache::hash): New.
4404 (bcache::compare): Update comment and parameter names.
4405 * gdbtypes.c (types_deeply_equal): Update.
4406 * psymtab.h (struct psymbol_bcache): New struct.
4407 (class psymtab_storage) <psymtab_storage>: Make default.
4408 <psymbol_cache>: Change type to psymbol_bcache.
4409 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4410 (psymbol_hash): Change to...
4411 (psymbol_bcache::hash): ... this.
4412 (psymbol_compare): Change to...
4413 (psymbol_bcache::compare): ... this.
4414
4415 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4418 checking for initial lwp.
4419
4420 2020-09-14 Tom Tromey <tromey@adacore.com>
4421
4422 * m68k-tdep.c (m68k_extract_return_value): Use
4423 pointer_result_regnum.
4424 (m68k_store_return_value): Likewise.
4425 (m68k_reg_struct_return_p): Handle vectors and arrays.
4426 (m68k_return_value): Handle arrays.
4427 (m68k_svr4_return_value): Fix single-element aggregate handling.
4428 Handle long double. Adjust for embedded ABI.
4429 (m68k_svr4_init_abi): Set pointer_result_regnum.
4430 (m68k_embedded_init_abi): New function.
4431 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4432 (m68k_osabi_sniffer): New function.
4433 (_initialize_m68k_tdep): Register osabi sniffer.
4434 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4435 member.
4436
4437 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4438
4439 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4440 with gdb::unique_xmalloc_ptr<char>.
4441
4442 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * xml-support.h (xml_fetch_another): Change type to be a
4445 function_view.
4446 (xml_process_xincludes): Remove baton parameter.
4447 (xml_fetch_content_from_file): Change baton parameter to
4448 dirname.
4449 * xml-support.c (struct xinclude_parsing_data)
4450 <xinclude_parsing_data>: Remove baton parameter.
4451 <fetcher_baton>: Remove.
4452 (xinclude_start_include): Adjust.
4453 (xml_process_xincludes): Adjust.
4454 (xml_fetch_content_from_file): Replace baton parameter with
4455 dirname.
4456 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4457 (xml_init_syscalls_info): Use a lambda.
4458 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4459 (file_read_description_xml): Use a lambda.
4460 (fetch_available_features_from_target): Change baton parameter
4461 to target_ops.
4462 (target_read_description_xml): Use a lambda.
4463 (target_fetch_description_xml): Use a lambda.
4464 (string_read_description_xml): Update.
4465
4466 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4467
4468 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4469 uses with type::endianity_is_not_default.
4470
4471 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (struct type) <endianity_is_not_default,
4474 set_endianity_is_not_default>: New methods.
4475 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4476 type::endianity_is_not_default, change all write call sites to
4477 use type::set_endianity_is_not_default.
4478
4479 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4482 uses with type::is_fixed_instance.
4483
4484 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * gdbtypes.h (struct type) <is_fixed_instance,
4487 set_is_fixed_instance>: New methods.
4488 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4489 write call sites to use type::set_is_fixed_instance.
4490
4491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4494 uses with type::is_gnu_ifunc.
4495
4496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4499 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4500 use type::set_is_gnu_ifunc.
4501
4502 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4505 uses with type::stub_is_supported.
4506
4507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4510 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4511 use type::set_stub_is_supported.
4512
4513 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4516 uses with type::is_vector.
4517
4518 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4521 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4522 use type::set_is_vector.
4523
4524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4527 uses with type::has_varargs.
4528
4529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4532 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4533 use type::set_has_varargs.
4534
4535 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4538 uses with type::is_prototyped.
4539
4540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4543 New methods.
4544 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4545 call sites to use type::set_is_prototyped.
4546
4547 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4550 uses with type::target_is_stub.
4551
4552 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4555 New methods.
4556 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4557 sites to use type::set_target_is_stub.
4558
4559 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (TYPE_STUB): Remove, replace all
4562 uses with type::is_stub.
4563
4564 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4567 (TYPE_STUB): Use type::is_stub, change all write call sites to
4568 use type::set_is_stub.
4569
4570 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4571
4572 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4573 type::has_no_signedness.
4574
4575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * gdbtypes.h (struct type) <has_no_signedness,
4578 set_has_no_signedness>: New methods.
4579 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4580 call sites to use type::set_has_no_signedness.
4581
4582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4585 type::is_unsigned.
4586
4587 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4590 methods.
4591 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4592 sites to use type::set_is_unsigned.
4593
4594 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4595 Adam Renquinha <arenquinha@cimeq.qc.ca>
4596
4597 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4598 pointer and stack frame offset when unwinding.
4599
4600 2020-09-13 Pedro Alves <pedro@palves.net>
4601
4602 * NEWS: Document "-break-insert --qualified".
4603 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4604
4605 2020-09-13 Pedro Alves <pedro@palves.net>
4606
4607 * linespec.c (classify_mtype, compare_msyms): Delete.
4608 (search_minsyms_for_name): Remove classification logic. Instead
4609 filter out trampoline symbols if we also found an external
4610 function of the same name.
4611
4612 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4613
4614 * NEWS: Create a new section for the next release branch.
4615 Rename the section of the current branch, now that it has
4616 been cut.
4617
4618 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4619
4620 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4621 * version.in: Bump version to 11.0.50.DATE-git.
4622
4623 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4624
4625 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4626
4627 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4628 Felix Willgerodt <Felix.Willgerodt@intel.com>
4629
4630 * gdbarch.sh: Added bfloat16 type.
4631 * gdbarch.c: Regenerated.
4632 * gdbarch.h: Regenerated.
4633 * gdbtypes.c (floatformats_bfloat16): New struct.
4634 (gdbtypes_post_init): Add builtin_bfloat16.
4635 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4636 (floatformats_bfloat16): New struct.
4637 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4638 (i386_ymm_type): Add field "v16_bfloat16"
4639 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4640 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4641 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4642 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4643 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4644 * features/i386/64bit-avx512.c: Regenerated.
4645 * features/i386/64bit-sse.xml: Add bfloat16 type.
4646 * features/i386/64bit-sse.c: Regenerated.
4647
4648 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4649
4650 * i386-tdep.c (i386_zmm_type): Fix field names.
4651 (i386_ymm_type): Fix field names.
4652
4653 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4654
4655 * breakpoint.c: Fix typo in the help message of the
4656 "set breakpoint condition-evaluation" command.
4657
4658 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4659
4660 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4661 * (nbsd_nat_target::pid_to_exec_file)
4662 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4663 (nbsd_nat_target::post_startup_inferior)
4664 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4665 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4666 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4667 * (nbsd_thread_lister): Remove.
4668
4669 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4670
4671 * fork-inferior.c (startup_inferior): Avoid double free.
4672
4673 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4674
4675 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4676 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4677
4678 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4679
4680 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4681 * netbsd-nat.c: Include <sys/ptrace.h>.
4682 * (netbsd_nat::enable_proc_events): Add.
4683
4684 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4685
4686 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4687 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4688 (netbsd_nat::for_each_thread): Add.
4689 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4690 "gdbsupport/common-debug.h".
4691 * (netbsd_nat::netbsd_thread_lister)
4692 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4693 (netbsd_nat::for_each_thread): Add.
4694
4695 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4696
4697 * netbsd-nat.h: Include <unistd.h>.
4698 * (netbsd_nat::pid_to_exec_file): Add.
4699 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4700 * (netbsd_nat::pid_to_exec_file) Add.
4701
4702 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4703
4704 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4705
4706 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4707
4708 * netbsd-nat.h: New file.
4709 * netbsd-nat.c: Likewise.
4710
4711 2020-09-09 Tom Tromey <tromey@adacore.com>
4712
4713 * ada-lang.c (remove_extra_symbols): Do not increment when
4714 removing an element
4715
4716 2020-09-08 Tom Tromey <tromey@adacore.com>
4717
4718 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4719
4720 2020-09-08 Tom Tromey <tromey@adacore.com>
4721
4722 PR win32/25302:
4723 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4724 (gdb_bfd_init_data): New function.
4725 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4726
4727 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4728
4729 * infrun.c (fetch_inferior_event): Use
4730 `switch_to_target_no_thread` to switch the target.
4731
4732 2020-09-06 Tom Tromey <tom@tromey.com>
4733
4734 * symfile.h (dwarf2_free_objfile): Don't declare.
4735
4736 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4737
4738 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4739 to match 16 byte real/complex type generated by Flang compiler.
4740
4741 2020-09-03 Tom de Vries <tdevries@suse.de>
4742
4743 PR breakpoint/26546
4744 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4745 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4746
4747 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4748
4749 * maint.c (index_digits): New function.
4750 (struct maint_print_section_data): Remove.
4751 (print_bfd_section_info): Remove print_data parameter, add arg
4752 and index_digits.
4753 (print_objfile_section_info): Likewise.
4754 (print_bfd_section_info_maybe_relocated): Likewise (plus
4755 objfile).
4756 (maintenance_info_sections): Adjust calls.
4757
4758 2020-09-02 Tom Tromey <tromey@adacore.com>
4759
4760 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4761 for null pointers.
4762 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4763
4764 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4765
4766 * bcache.h (struct bcache) <insert>: Change type of `added` to
4767 pointer to bool.
4768 * bcache.c (bcache::insert): Likewise.
4769 * gdbtypes.c (check_types_worklist): Adjust.
4770 * psymtab.c (add_psymbol_to_bcache): Adjust.
4771
4772 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4773
4774 * corelow.c (unordered_set): Include.
4775 (class core_target): Add field 'm_core_unavailable_mappings'.
4776 (core_target::build_file_mappings): Print only one warning
4777 per inaccessible file. Add unavailable/broken mappings
4778 to m_core_unavailable_mappings.
4779 (core_target::xfer_partial): Call...
4780 (core_target::xfer_memory_via_mappings): New method.
4781
4782 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4783
4784 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4785 type to bool.
4786
4787 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * dwarf2/read.c (struct field_info): Fix indentation.
4790
4791 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4794 ordering in comment.
4795 * frame.c (frame_id_eq): Fix indentation.
4796
4797 2020-08-31 Scott Linder <scott@scottlinder.com>
4798 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4801 inline frame ids in outer frame.
4802
4803 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4806 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4807 (outer_frame_id): Use FID_STACK_OUTER instead of
4808 FID_STACK_INVALID.
4809 (frame_id_p): Don't check for outer_frame_id.
4810
4811 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4814 regnum/frame in value. Call allocate_value_lazy.
4815 * frame.c (frame_unwind_register_value): Use
4816 val_print_not_saved.
4817
4818 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4819
4820 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4821
4822 2020-08-29 Pedro Alves <pedro@palves.net>
4823
4824 * progspace.c (print_program_space): Use all_inferiors. Switch to
4825 the inferior before calling target_pid_to_str.
4826
4827 2020-08-28 Tom Tromey <tom@tromey.com>
4828
4829 * xcoffread.c (xcoff_end_psymtab): Update comment.
4830 * dbxread.c (dbx_end_psymtab): Update comment.
4831
4832 2020-08-28 Tom de Vries <tdevries@suse.de>
4833
4834 PR breakpoint/26544
4835 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4836 event_location.
4837 (create_breakpoint): Same.
4838 (base_breakpoint_decode_location): Same.
4839 (bkpt_create_sals_from_location): Same.
4840 (bkpt_decode_location): Same.
4841 (bkpt_probe_create_sals_from_location): Same.
4842 (bkpt_probe_decode_location): Same.
4843 (tracepoint_create_sals_from_location): Same.
4844 (tracepoint_decode_location): Same.
4845 (tracepoint_probe_decode_location): Same.
4846 (strace_marker_create_sals_from_location): Same.
4847 (strace_marker_decode_location): Same.
4848 (create_sals_from_location_default): Same.
4849 (decode_location_default): Same.
4850 * breakpoint.h (struct breakpoint_ops): Same.
4851 (create_breakpoint): Same.
4852 * linespec.h (decode_line_full): Same.
4853 * linespec.c (decode_line_full): Same. Throw error if
4854 result.size () == 0.
4855
4856 2020-08-27 Pedro Alves <pedro@palves.net>
4857
4858 PR gdb/26524
4859 * breakpoint.c (until_break_fsm) <location_breakpoint,
4860 caller_breakpoint>: Delete fields.
4861 <breakpoints>: New field.
4862 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4863 two individual breakpoints.
4864 (until_break_fsm::should_stop): Loop over breakpoints in the
4865 breakpoint vector.
4866 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4867 vector.
4868 (until_break_command): Handle location expanding into multiple
4869 sals.
4870
4871 2020-08-27 Pedro Alves <pedro@palves.net>
4872
4873 PR gdb/26523
4874 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4875 bp_until breakpoints user-specified locations. Update intro
4876 comment.
4877
4878 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4881 gdb_bfd_sections): New.
4882 * maint.c (print_bfd_section_info): Change param type to
4883 maint_print_section_data.
4884 (print_objfile_section_info): Likewise.
4885 (print_bfd_section_info_maybe_relocated): Likewise.
4886 (maintenance_info_sections): Use gdb_bfd_sections.
4887
4888 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4889
4890 * MAINTAINERS: Add ARC target and maintainer.
4891
4892 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4893
4894 * configure.tgt: ARC support for GNU/Linux.
4895 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4896 * arc-linux-tdep.c: New file.
4897 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4898 * arc-tdep.c (arc_write_pc): Use it.
4899
4900 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4901
4902 * arc-tdep.c (arc_check_for_hardware_loop): New.
4903 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4904
4905 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4906
4907 * arc-tdep.h: Include "gdbarch.h".
4908
4909 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4910
4911 * arch/arc.h
4912 (arc_gdbarch_features): New class to stir the selection of target XML.
4913 (arc_create_target_description): Use FEATURES to choose XML target.
4914 (arc_lookup_target_description): Use arc_create_target_description
4915 to create _new_ target descriptions or return the already created
4916 ones if the FEATURES is the same.
4917 * arch/arc.c: Implementation of prototypes described above.
4918 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4919 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4920 * arc-tdep.c (*_feature_name): Make feature names consistent.
4921 (arc_register_feature): A new struct to hold information about
4922 registers of a particular target/feature.
4923 (arc_check_tdesc_feature): Check if XML provides registers in
4924 compliance with ARC_REGISTER_FEATURE structs.
4925 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4926 (determine_*_reg_feature_set): Which feature name to look for.
4927 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4928 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4929 to expected ISA enums to be used in arc_gdbarch_features structs.
4930 * features/Makefile (FEATURE_XMLFILES): Add new files.
4931 * gdb/features/arc/v1-aux.c: New file.
4932 * gdb/features/arc/v1-aux.xml: Likewise.
4933 * gdb/features/arc/v1-core.c: Likewise.
4934 * gdb/features/arc/v1-core.xml: Likewise.
4935 * gdb/features/arc/v2-aux.c: Likewise.
4936 * gdb/features/arc/v2-aux.xml: Likewise.
4937 * gdb/features/arc/v2-core.c: Likewise.
4938 * gdb/features/arc/v2-core.xml: Likewise.
4939 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4940
4941 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4942 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 PR m2/26372
4945 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4946 an assert. Remove single element array indexing pattern as the
4947 MULTI_SUBSCRIPT support will handle this case too.
4948
4949 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4950
4951 * value.h (valprint_check_validity): Move declaration from
4952 here...
4953 * valprint.h (valprint_check_validity): ... to here.
4954
4955 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * debug.h: New file.
4958 * debug.c (debug_prefixed_vprintf): New function.
4959 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4960 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4961
4962 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4963
4964 * infrun.h (infrun_debug_printf_1): New function declaration.
4965 (infrun_debug_printf): New macro.
4966 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4967 throughout.
4968 (infrun_debug_printf): New function.
4969 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4970 (handle_jit_event): Likewise.
4971
4972 2020-08-21 Mark Wielaard <mark@klomp.org>
4973
4974 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4975
4976 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * frame.c (enum class frame_id_status): New.
4979 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4980 (fprintf_frame): Update.
4981 (compute_frame_id): Set frame id status to "computing" on entry.
4982 Set it back to "not_computed" on failure and to "computed" on
4983 success.
4984 (get_frame_id): Assert the frame id is not being computed.
4985 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4986 (create_new_frame): Likewise.
4987 (frame_cleanup_after_sniffer): Update assert.
4988
4989 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * regcache.c (pid_ptid_regcache_map): New type.
4992 (target_ptid_regcache_map): Remove.
4993 (target_pid_ptid_regcache_map): New type.
4994 (regcaches): Change type to target_pid_ptid_regcache_map.
4995 (get_thread_arch_aspace_regcache): Update.
4996 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4997 case.
4998 (regcaches_size): Update.
4999 (regcache_count): Update.
5000 (registers_changed_ptid_target_pid_test): New.
5001 (_initialize_regcache): Register new test.
5002
5003 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * regcache.c (regcache_count): New.
5006 (struct regcache_test_data): New.
5007 (regcache_test_data_up): New.
5008 (populate_regcaches_for_test): New.
5009 (regcaches_test): Remove.
5010 (get_thread_arch_aspace_regcache_test): New.
5011 (registers_changed_ptid_all_test): New.
5012 (registers_changed_ptid_target_test): New.
5013 (registers_changed_ptid_target_ptid_test): New.
5014 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5015 (_initialize_regcache): Register new tests.
5016
5017 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5020 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5021 gdbarch and aspace parameter. Use current inferior's aspace.
5022 Validate regcache's arch value.
5023 (regcaches_test): Update.
5024
5025 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * regcache.c (regcaches_test): Call registers_changed.
5028
5029 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5030
5031 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5032
5033 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5034
5035 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5036 to find the end of prologue for flang compiled binaries.
5037 * arm-tdep.c (arm_skip_prologue): Likewise.
5038 * i386-tdep.c (i386_skip_prologue): Likewise.
5039 * producer.c (producer_is_llvm): New function.
5040 (producer_parsing_tests): Added new tests for clang/flang.
5041 * producer.h (producer_is_llvm): New declaration.
5042
5043 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * linux-nat.c (linux_nat_debug_printf): New function.
5046 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5047
5048 2020-08-18 Aaron Merey <amerey@redhat.com>
5049
5050 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5051 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5052 (CLIBS): Add DEBUGINFOD_LIBS.
5053
5054 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5055
5056 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5057 'gdbarch_num_regs'.
5058
5059 2020-08-17 Tom Tromey <tromey@adacore.com>
5060
5061 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5062 ada_get_decoded_value returns NULL.
5063
5064 2020-08-17 Tom Tromey <tromey@adacore.com>
5065
5066 * python/py-inferior.c (infpy_search_memory): Use
5067 gdb_py_object_from_ulongest.
5068 * python/py-infevents.c (create_inferior_call_event_object)
5069 (create_memory_changed_event_object): Use
5070 gdb_py_object_from_ulongest.
5071 * python/py-linetable.c (ltpy_entry_get_pc): Use
5072 gdb_py_object_from_ulongest.
5073
5074 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5075
5076 * loc.c (class symbol_needs_eval_context): Fix indentation.
5077
5078 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5079
5080 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5081 bool.
5082
5083 2020-08-17 Tom de Vries <tdevries@suse.de>
5084
5085 PR gdb/26393
5086 * gdbtypes.c (dump_dynamic_prop): New function.
5087 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5088
5089 2020-08-15 Tom de Vries <tdevries@suse.de>
5090
5091 PR backtrace/26390
5092 * stack.c (print_frame_args): Temporarily set the selected
5093 frame to FRAME while printing the frame's arguments.
5094
5095 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5096
5097 PR breakpoints/26385
5098 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5099 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5100
5101 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5102
5103 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5104 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5105 and >= to check return value instead of == -1 and != -1.
5106
5107 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 * utils.h (class gdb_argv) <as_array_view>: New method.
5110 * utils.c (gdb_argv_as_array_view_test): New.
5111 (_initialize_utils): Register selftest.
5112 * maint.c (maintenance_selftest): Use the new method.
5113
5114 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5115
5116 * target.h (supports_dumpcore, dumpcore): New
5117 function declarations.
5118 * target.c (supports_dumpcore, dumpcore): New
5119 functions.
5120 * target-delegates.c: Rebuild.
5121 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5122 and target_dumpcore ().
5123
5124 2020-08-13 Aaron Merey <amerey@redhat.com>
5125
5126 * debuginfod-support.c: Replace global variables with user_data.
5127
5128 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * maint.c (maintenance_selftest): Split args and pass array_view
5131 to run_tests.
5132
5133 2020-08-12 Luis Machado <luis.machado@linaro.org>
5134
5135 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5136 type's length.
5137 Use %s and pulongest to print the length.
5138
5139 2020-08-12 Pedro Alves <palves@redhat.com>
5140
5141 * NEWS: Move "Multi-target debugging support" item to the
5142 "Changes since GDB 9" section.
5143
5144 2020-08-12 Pedro Alves <palves@redhat.com>
5145
5146 PR gdb/26336
5147 * progspace.c (program_space::remove_objfile): Invalidate the
5148 frame cache.
5149
5150 2020-08-11 Tom de Vries <tdevries@suse.de>
5151
5152 * MAINTAINERS: Mark ms1 as deleted.
5153
5154 2020-08-10 Luis Machado <luis.machado@linaro.org>
5155
5156 PR gdb/26310
5157
5158 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5159 act accordingly.
5160 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5161 movz/str/stur/stp skipping behavior.
5162
5163 2020-08-10 Luis Machado <luis.machado@linaro.org>
5164
5165 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5166 struct user_sve_header instead of struct sve_context.
5167
5168 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * read.h (dwarf2_fetch_die_loc_sect_off,
5171 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5172 `void *` parameter with function_view.
5173 * read.c (dwarf2_fetch_die_loc_sect_off,
5174 dwarf2_fetch_die_loc_cu_off): Likewise.
5175 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5176 (per_cu_dwarf_call): Adjust.
5177 (get_frame_address_in_block_wrapper): Remove.
5178 (indirect_synthetic_pointer): Adjust.
5179 (get_ax_pc): Remove.
5180 (dwarf2_compile_expr_to_ax): Adjust.
5181
5182 2020-08-08 Tom de Vries <tdevries@suse.de>
5183
5184 PR build/26344
5185 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5186 constructor.
5187 * regcache.c (get_thread_arch_aspace_regcache): Same.
5188
5189 2020-08-07 Tom Tromey <tromey@adacore.com>
5190
5191 * ravenscar-thread.c
5192 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5193 New method.
5194 (ravenscar_thread_target::wait): Check
5195 runtime_initialized.
5196 (ravenscar_thread_target::prepare_to_store)
5197 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5198 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5199 (ravenscar_thread_target::stopped_by_watchpoint)
5200 (ravenscar_thread_target::stopped_data_address)
5201 (ravenscar_thread_target::core_of_thread): Use
5202 scoped_restore_current_thread and
5203 set_base_thread_from_ravenscar_task.
5204
5205 2020-08-07 Tom Tromey <tromey@adacore.com>
5206
5207 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5208
5209 2020-08-07 Tom Tromey <tromey@adacore.com>
5210
5211 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5212 update_inferior_ptid before update_thread_list.
5213 (temporarily_change_regcache_ptid): New class.
5214 (ravenscar_thread_target::fetch_registers)
5215 (ravenscar_thread_target::store_registers)
5216 (ravenscar_thread_target::prepare_to_store): Use base thread when
5217 forwarding operation.
5218
5219 2020-08-07 Tom Tromey <tromey@adacore.com>
5220
5221 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5222 "is_pid" case.
5223
5224 2020-08-07 Tom Tromey <tromey@adacore.com>
5225
5226 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5227 New methods.
5228 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5229 first.
5230 (ravenscar_thread_target::add_thread): Rename from
5231 ravenscar_add_thread.
5232 (ravenscar_thread_target::update_thread_list): Use a lambda.
5233 (ravenscar_thread_target::xfer_partial): New method.
5234
5235 2020-08-07 Tom Tromey <tromey@adacore.com>
5236
5237 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5238 gdb::function_view.
5239 (iterate_over_live_ada_tasks): Change type of argument.
5240 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5241 of argument.
5242
5243 2020-08-07 Tom Tromey <tromey@adacore.com>
5244
5245 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5246 Remove.
5247 (ravenscar_thread_target::extra_thread_info): Remove.
5248 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5249 defer to target beneath for non-Ravenscar threads.
5250
5251 2020-08-07 Tom Tromey <tromey@adacore.com>
5252
5253 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5254 get_base_thread_from_ravenscar_task>: Now methods.
5255 <m_cpu_map>: New member.
5256 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5257 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5258 (ravenscar_thread_target::task_is_currently_active): Update.
5259 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5260 Now a method.
5261 (ravenscar_thread_target::add_active_thread): Put initial thread
5262 into the m_cpu_map.
5263
5264 2020-08-07 Tom Tromey <tromey@adacore.com>
5265
5266 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5267 event_ptid.
5268
5269 2020-08-07 Tom Tromey <tromey@adacore.com>
5270
5271 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5272 runtime_initialized.
5273
5274 2020-08-07 Tom Tromey <tromey@adacore.com>
5275
5276 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5277 add_active_thread.
5278 (ravenscar_thread_target::add_active_thread): Now public.
5279 (ravenscar_inferior_created): Call add_active_thread after pushing
5280 the target.
5281
5282 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * regcache.c (ptid_regcache_map): New type.
5285 (target_ptid_regcache_map): New type.
5286 (regcaches): Change type to target_ptid_regcache_map.
5287 (get_thread_arch_aspace_regcache): Update to regcaches' new
5288 type.
5289 (regcache_thread_ptid_changed): Likewise.
5290 (registers_changed_ptid): Likewise.
5291 (regcaches_size): Likewise.
5292 (regcaches_test): Update.
5293 (regcache_thread_ptid_changed): Update.
5294 * regcache.h (regcache_up): New type.
5295 * gdbsupport/ptid.h (hash_ptid): New struct.
5296
5297 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5298
5299 * observable.h (thread_ptid_changed): Add parameter
5300 `process_stratum_target *`.
5301 * infrun.c (infrun_thread_ptid_changed): Add parameter
5302 `process_stratum_target *` and use it.
5303 (selftests): New namespace.
5304 (infrun_thread_ptid_changed): New function.
5305 (_initialize_infrun): Register selftest.
5306 * regcache.c (regcache_thread_ptid_changed): Add parameter
5307 `process_stratum_target *` and use it.
5308 (regcache_thread_ptid_changed): New function.
5309 (_initialize_regcache): Register selftest.
5310 * thread.c (thread_change_ptid): Pass target to
5311 thread_ptid_changed observable.
5312
5313 2020-08-06 Caroline Tice <cmtice@google.com>
5314
5315 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5316 (struct dwp_sections): Update field comments. Add loclists and
5317 rnglists fields.
5318 (struct virtual_v2_dwo_sections): Rename struct to
5319 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5320 size & offset fields for loclists and rnglists.
5321 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5322 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5323 skipping dummy type units.
5324 (create_dwp_hash_table): Update the large comment above the function to
5325 discuss Version 5 DWP files as well, with references. Update all the
5326 version checks in the function to check for version 5 as well. Add new
5327 section at the end to create dwp hash table for version 5.
5328 (create_dwp_v2_section): Rename function to
5329 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5330 Add V5 to error message text.
5331 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5332 into calls to create_dwp_v2_or_v5_section.
5333 (create_dwo_unit_in_dwp_v5): New function.
5334 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5335 check for version2; add else clause to handle version 5.
5336 (open_and_init_dwo_file): Add code to check dwarf version & only call
5337 create_debug_types_hash_table (with sections.types) if version is not 5;
5338 else call create_debug_type_hash_table, with sections.info.
5339 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5340 version 5.
5341 (dwarf2_locate_v5_dwp_sections): New function.
5342 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5343 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5344
5345 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * regcache.h (class regcache): Remove friend
5348 registers_changed_ptid.
5349 <regcache_thread_ptid_changed>: Remove.
5350 <regcaches>: Remove.
5351 * regcache.c (regcache::regcaches): Rename to...
5352 (regcaches): ... this. Make static.
5353 (get_thread_arch_aspace_regcache): Update.
5354 (regcache::regcache_thread_ptid_changed): Rename to...
5355 (regcache_thread_ptid_changed): ... this. Update.
5356 (class regcache_access): Remove.
5357 (regcaches_test): Update.
5358 (_initialize_regcache): Update.
5359 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5360 <forward_list>.
5361
5362 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5363
5364 * regcache.h (class regcache) <current_regcache>: Rename to...
5365 <regcaches>: ... this. Move doc here.
5366 * regcache.c (regcache::current_regcache) Rename to...
5367 (regcache::regcaches): ... this. Move doc to header.
5368 (get_thread_arch_aspace_regcache): Update.
5369 (regcache::regcache_thread_ptid_changed): Update.
5370 (registers_changed_ptid): Update.
5371 (class regcache_access) <current_regcache_size>: Rename to...
5372 <regcaches_size>: ... this.
5373 (current_regcache_test): Rename to...
5374 (regcaches_test): ... this.
5375 (_initialize_regcache): Update.
5376
5377 2020-08-06 Victor Collod <vcollod@nvidia.com>
5378
5379 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5380
5381 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5382
5383 * corelow.c (core_target::build_file_mappings): Don't output
5384 null pathname in warning.
5385
5386 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5387
5388 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5389 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5390 gdb.dwarf2/dw2-single-line-discriminators.exp,
5391 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5392
5393 2020-08-05 Tom Tromey <tromey@adacore.com>
5394
5395 PR rust/26197:
5396 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5397 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5398 Fix off-by-one and type size errors in ordinary case.
5399
5400 2020-08-05 Tom de Vries <tdevries@suse.de>
5401
5402 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5403 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5404
5405 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * frame.h (frame_id_p): Return bool.
5408 (frame_id_artificial_p): Return bool.
5409 (frame_id_eq): Return bool.
5410 (has_stack_frames): Return bool.
5411 (get_selected_frame): Fix typo in comment.
5412 (get_frame_pc_if_available): Return bool.
5413 (get_frame_address_in_block_if_available): Return bool.
5414 (get_frame_func_if_available): Return bool.
5415 (read_frame_register_unsigned): Return bool.
5416 (get_frame_register_bytes): Return bool.
5417 (safe_frame_unwind_memory): Return bool.
5418 (deprecated_frame_register_read): Return bool.
5419 (frame_unwinder_is): Return bool.
5420 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5421 bool.
5422 <this_id::p>: Likewise.
5423 <prev_p>: Likewise.
5424 (frame_stash_add): Return bool.
5425 (get_frame_id): Use bool.
5426 (frame_id_build_special) Use bool.
5427 (frame_id_build_unavailable_stack): Use bool.
5428 (frame_id_build): Use bool.
5429 (frame_id_p): Return bool, use true/false instead of 1/0.
5430 (frame_id_artificial_p): Likewise.
5431 (frame_id_eq): Likewise.
5432 (frame_id_inner): Likewise.
5433 (get_frame_func_if_available): Likewise.
5434 (read_frame_register_unsigned): Likewise.
5435 (deprecated_frame_register_read): Likewise.
5436 (get_frame_register_bytes): Likewise.
5437 (has_stack_frames): Likewise.
5438 (inside_main_func): Likewise.
5439 (inside_entry_func): Likewise.
5440 (get_frame_pc_if_available): Likewise.
5441 (get_frame_address_in_block_if_available): Likewise.
5442 (frame_unwinder_is): Likewise.
5443 (safe_frame_unwind_memory): Likewise.
5444 (frame_unwind_arch): Likewise.
5445
5446 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5447
5448 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5449 type to cached_copy_status.
5450 (fprintf_frame): Adjust.
5451 (get_frame_func_if_available): Adjust.
5452 (frame_cleanup_after_sniffer): Adjust.
5453
5454 2020-08-04 Mark Wielaard <mark@klomp.org>
5455
5456 * MAINTAINERS (Write After Approval): Update email address.
5457
5458 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5459
5460 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5461 dynamic_prop::const_val.
5462
5463 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5464
5465 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5466 dynamic_prop::kind.
5467
5468 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5469
5470 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5471
5472 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5473
5474 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5475
5476 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5477 Jose E. Marchesi <jose.marchesi@oracle.com>
5478
5479 * configure.tgt: Add entry for bpf-*-*.
5480 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5481 (ALLDEPFILES): Add bpf-tdep.c.
5482 * bpf-tdep.c: New file.
5483 * MAINTAINERS: Add bpf target and maintainer.
5484 * NEWS: Mention the support for the new target.
5485
5486 2020-08-04 Tom de Vries <tdevries@suse.de>
5487
5488 PR symtab/23270
5489 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5490 Error.
5491
5492 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5493
5494 * syscalls/freebsd.xml: Regenerate.
5495
5496 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5497
5498 * syscalls/update-freebsd.sh: Fix usage and year range.
5499
5500 2020-08-03 Tom de Vries <tdevries@suse.de>
5501
5502 PR symtab/26333
5503 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5504 DW_LNE_lo_user/DW_LNE_hi_user range.
5505
5506 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5507
5508 PR ada/26318
5509 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5510 kind.
5511
5512 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5513
5514 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5515
5516 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5517
5518 * breakpoint.c (set_breakpoint_condition): Update the condition
5519 expressions after checking that the input condition string parses
5520 successfully and does not contain junk at the end.
5521
5522 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5523
5524 * breakpoint.c (set_breakpoint_condition): Update the
5525 condition string after parsing the new condition successfully.
5526
5527 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5528
5529 * proc-api.c (_STRUCTURED_PROC): Don't define.
5530 * proc-events.c: Likewise.
5531 * proc-flags.c: Likewise.
5532 * proc-why.c: Likewise.
5533 * procfs.c: Likewise.
5534
5535 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5536 * configure, config.in: Regenerate.
5537
5538 2020-07-30 Tom de Vries <tdevries@suse.de>
5539
5540 PR build/26320
5541 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5542 m_red/m_green/m_blue in a union.
5543
5544 2020-07-29 Tom de Vries <tdevries@suse.de>
5545
5546 PR tdep/26280
5547 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5548
5549 2020-07-28 Tom Tromey <tromey@adacore.com>
5550
5551 PR symtab/26270:
5552 * symtab.h (find_pc_partial_function_sym): Declare.
5553 * cli/cli-cmds.c (disassemble_command): Use
5554 find_pc_partial_function_sym. Check asm_demangle.
5555 * blockframe.c (cache_pc_function_sym): New global.
5556 (cache_pc_function_name): Remove.
5557 (clear_pc_function_cache): Update.
5558 (find_pc_partial_function_sym): New function, from
5559 find_pc_partial_function.
5560 (find_pc_partial_function): Rewrite using
5561 find_pc_partial_function_sym.
5562
5563 2020-07-28 Tom Tromey <tromey@adacore.com>
5564
5565 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5566 help. Add usage.
5567
5568 2020-07-28 Tom Tromey <tromey@adacore.com>
5569
5570 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5571 <DW_OP_GNU_variable_value>: Cast to address type.
5572
5573 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5574
5575 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5576 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5577 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5578 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5579 (nbsd_get_siginfo_type): New.
5580 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5581 (_initialize_nbsd_tdep): New.
5582
5583 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5584
5585 PR binutils/26301
5586 * configure: Regenerated.
5587
5588 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5589
5590 PR binutils/26301
5591 * configure: Regenerated.
5592
5593 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * python/py-frame.c: Remove 'user-regs.h' include.
5596 (frapy_read_register): Rewrite to make use of
5597 gdbpy_parse_register_id.
5598 * python/py-registers.c (gdbpy_parse_register_id): New function,
5599 moved here from python/py-unwind.c. Updated the return type, and
5600 also accepts register descriptor objects.
5601 * python/py-unwind.c: Remove 'user-regs.h' include.
5602 (pyuw_parse_register_id): Moved to python/py-registers.c.
5603 (unwind_infopy_add_saved_register): Update to use
5604 gdbpy_parse_register_id.
5605 (pending_framepy_read_register): Likewise.
5606 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5607
5608 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5609
5610 * python/py-registers.c: Add 'user-regs.h' include.
5611 (register_descriptor_iter_find): New function.
5612 (register_descriptor_iterator_object_methods): New static global
5613 methods array.
5614 (register_descriptor_iterator_object_type): Add pointer to methods
5615 array.
5616
5617 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5618
5619 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5620 for all architectures on FreeBSD 11.3 and later.
5621
5622 2020-07-27 Tom Tromey <tromey@adacore.com>
5623
5624 * gcore.h (load_corefile): Don't declare.
5625
5626 2020-07-27 Tom de Vries <tdevries@suse.de>
5627
5628 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5629 * config.in: Regenerate.
5630 * configure: Regenerate.
5631
5632 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5633
5634 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5635 ws2tcpip.h. When checking whether socklen_t type is defined, use
5636 ws2tcpip.h if it is available and sys/socket.h isn't.
5637 * configure: Regenerate.
5638 * config.in: Regenerate.
5639
5640 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5641
5642 PR fortran/23051
5643 PR fortran/26139
5644 * valops.c (value_ind): Pass address to
5645 readjust_indirect_value_type.
5646 * value.c (readjust_indirect_value_type): Make parameter
5647 non-const, and add extra address parameter. Resolve original type
5648 before using it.
5649 * value.h (readjust_indirect_value_type): Update function
5650 signature and comment.
5651
5652 2020-07-25 Tom de Vries <tdevries@suse.de>
5653
5654 PR symtab/26243
5655 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5656 entries.
5657
5658 2020-07-24 Aaron Merey <amerey@redhat.com>
5659
5660 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5661 * configure: Rebuild.
5662
5663 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5664
5665 PR corefiles/26294
5666 * corelow.c (_initialize_corelow): Add period to help text
5667 for "maintenance print core-file-backed-mappings".
5668
5669 2020-07-23 Pedro Alves <pedro@palves.net>
5670
5671 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5672 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5673 meanwhile.
5674 * frame.c (frame_cache_generation, get_frame_cache_generation):
5675 New.
5676 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5677 (get_prev_frame_if_no_cycle): On exception, don't touch
5678 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5679 * frame.h (get_frame_cache_generation): Declare.
5680
5681 2020-07-23 Tom de Vries <tdevries@suse.de>
5682
5683 PR tui/26282
5684 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5685 New default constructor.
5686
5687 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5688
5689 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5690 exclude non-statement entries.
5691
5692 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5693
5694 * NEWS (New commands): Mention new command
5695 "maintenance print core-file-backed-mappings".
5696
5697 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5698
5699 * corelow.c (gdbcmd.h): Include.
5700 (core_target::info_proc_mappings): New method.
5701 (get_current_core_target): New function.
5702 (maintenance_print_core_file_backed_mappings): New function.
5703 (_initialize_corelow): Add core-file-backed-mappings to
5704 "maint print" commands.
5705
5706 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5707
5708 * linux-tdep.c (dump_note_entry_p): New function.
5709 (linux_dump_mapping_p_ftype): New typedef.
5710 (linux_find_memory_regions_full): Add new parameter,
5711 should_dump_mapping_p.
5712 (linux_find_memory_regions): Adjust call to
5713 linux_find_memory_regions_full.
5714 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5715 call to linux_find_memory_regions_full.
5716
5717 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5718
5719 * corelow.c (solist.h, unordered_map): Include.
5720 (class core_target): Add field m_core_file_mappings and
5721 method build_file_mappings.
5722 (core_target::core_target): Call build_file_mappings.
5723 (core_target::~core_target): Free memory associated with
5724 m_core_file_mappings.
5725 (core_target::build_file_mappings): New method.
5726 (core_target::xfer_partial): Use m_core_file_mappings
5727 for memory transfers.
5728 * linux-tdep.c (linux_read_core_file_mappings): New
5729 function.
5730 (linux_core_info_proc_mappings): Rewrite to use
5731 linux_read_core_file_mappings.
5732 (linux_init_abi): Register linux_read_core_file_mappings.
5733
5734 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5735
5736 * arch-utils.c (default_read_core_file_mappings): New function.
5737 * arch-utils.c (default_read_core_file_mappings): Declare.
5738 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5739 * gdbarch.h, gdbarch.c: Regenerate.
5740
5741 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5742
5743 PR corefiles/25631
5744 * corelow.c (core_target:xfer_partial): Revise
5745 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5746 case after first checking the stratum beneath the core
5747 target.
5748 (has_all_memory): Return true.
5749 * target.c (raw_memory_xfer_partial): Revise comment
5750 regarding use of has_all_memory.
5751
5752 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5753
5754 * exec.h (section_table_xfer_memory): Revise declaration,
5755 replacing section name parameter with an optional callback
5756 predicate.
5757 * exec.c (section_table_xfer_memory): Likewise.
5758 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5759 of section_table_xfer_memory.
5760
5761 2020-07-22 Tom Tromey <tromey@adacore.com>
5762
5763 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5764 lookup_symbol_search_name.
5765
5766 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5769 redundant local variable.
5770 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5771 reference, not pointer, update code accordingly.
5772
5773 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5774 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5775
5776 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5777 * jit.c (jit_breakpoint_re_set_internal): Use the
5778 `skip_jit_symbol_lookup` field.
5779
5780 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5781 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5782
5783 * jit.c (jit_read_descriptor): Define the descriptor address once,
5784 use twice.
5785 (jit_breakpoint_deleted): Move the declaration of the loop variable
5786 `iter` into the loop header.
5787 (jit_breakpoint_re_set_internal): Move the declaration of the local
5788 variable `objf_data` to the first point of definition.
5789 (jit_event_handler): Move the declaration of local variables
5790 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5791 Rename `objf` to `jited`.
5792
5793 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5796 Remove.
5797 * jit.c (get_jiter_objfile_data): Update.
5798
5799 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5800 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * jit.c (struct jit_program_space_data): Remove.
5803 (jit_program_space_key): Remove.
5804 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5805 stuff.
5806 (get_jit_program_space_data): Remove.
5807 (jit_breakpoint_deleted): Iterate on all of the program space's
5808 objfiles.
5809 (jit_inferior_init): Likewise.
5810 (jit_breakpoint_re_set_internal): Likewise. Also change return
5811 type to void.
5812 (jit_breakpoint_re_set): Pass current_program_space to
5813 jit_breakpoint_re_set_internal.
5814
5815 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5816
5817 * jit.h (struct jiter_objfile_data) <cached_code_address,
5818 jit_breakpoint>: Move to here from ...
5819 * jit.c (jit_program_space_data): ... here.
5820 (jiter_objfile_data::~jiter_objfile_data): Update.
5821 (jit_breakpoint_deleted): Update.
5822 (jit_breakpoint_re_set_internal): Update.
5823
5824 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5827 checks.
5828 (jit_read_descriptor): Remove NULL check.
5829 (jit_event_handler): Add an assertion.
5830
5831 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * jit.h (struct jit_objfile_data): Split into...
5834 (struct jiter_objfile_data): ... this ...
5835 (struct jited_objfile_data): ... and this.
5836 * objfiles.h (struct objfile) <jit_data>: Remove.
5837 <jiter_data, jited_data>: New fields.
5838 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5839 (jiter_objfile_data::~jiter_objfile_data): ... this.
5840 (get_jit_objfile_data): Rename to ...
5841 (get_jiter_objfile_data): ... this.
5842 (add_objfile_entry): Update.
5843 (jit_read_descriptor): Use get_jiter_objfile_data.
5844 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5845 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5846 (jit_inferior_exit_hook): Use objfile's jited_data field.
5847
5848 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * jit.h: Forward-declare `struct minimal_symbol`.
5851 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5852 constructor, destructor, and an objfile* field.
5853 * jit.c (jit_objfile_data): Remove.
5854 (struct jit_objfile_data): Migrate from here to jit.h.
5855 (jit_objfile_data::~jit_objfile_data): New destructor
5856 implementation with code moved from free_objfile_data.
5857 (free_objfile_data): Delete.
5858 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5859 (jit_find_objf_with_entry_addr): Ditto.
5860 (jit_inferior_exit_hook): Ditto.
5861 (_initialize_jit): Remove the call to
5862 register_objfile_data_with_cleanup.
5863 * objfiles.h (struct objfile) <jit_data>: New field.
5864
5865 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5866
5867 * jit.h: Forward-declare `struct objfile`.
5868 (jit_event_handler): Add a second parameter, the JITer objfile.
5869 * jit.c (jit_read_descriptor): Change the signature to take the
5870 JITer objfile as an argument instead of the jit_program_space_data.
5871 (jit_inferior_init): Update the call to jit_read_descriptor.
5872 (jit_event_handler): Use the new JITer objfile argument when calling
5873 jit_read_descriptor.
5874 * breakpoint.c (handle_jit_event): Update the call to
5875 jit_event_handler to pass the JITer objfile.
5876
5877 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5878
5879 * gdbarch.c: Regenerate.
5880 * gdbarch.h: Regenerate.
5881 * gdbarch.sh (handle_segmentation_fault): Remove method.
5882 * infrun.c (handle_segmentation_fault): Remove.
5883 (print_signal_received_reason): Remove call to
5884 handle_segmentation_fault.
5885
5886 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5887
5888 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5889 Rename to sparc64_linux_report_signal_info and add siggnal
5890 argument.
5891 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5892 instead of sparc64_linux_handle_segmentation_fault.
5893
5894 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5895
5896 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5897 i386_linux_report_signal_info instead of
5898 i386_linux_handle_segmentation_fault.
5899 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5900 to i386_linux_report_signal_info and add siggnal argument.
5901 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5902 of i386_linux_handle_segmentation_fault.
5903 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5904 to i386_linux_report_signal_info and add siggnal argument.
5905
5906 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5907
5908 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5909 hook if present.
5910
5911 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5912
5913 * gdbarch.c: Regenerate.
5914 * gdbarch.h: Regenerate.
5915 * gdbarch.sh (report_signal_info): New method.
5916 * infrun.c (print_signal_received_reason): Invoke gdbarch
5917 report_signal_info hook if present.
5918
5919 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 * python/py-registers.c : Add 'unordered_map' include.
5922 (gdbpy_new_reggroup): Renamed to...
5923 (gdbpy_get_reggroup): ...this. Update to only create register
5924 group descriptors when needed.
5925 (gdbpy_reggroup_iter_next): Update.
5926
5927 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * python/py-registers.c (gdbpy_register_object_data): New static
5930 global.
5931 (gdbpy_register_object_data_init): New function.
5932 (gdbpy_new_register_descriptor): Renamed to...
5933 (gdbpy_get_register_descriptor): ...this, and update to reuse
5934 existing register descriptors where possible.
5935 (gdbpy_register_descriptor_iter_next): Update.
5936 (gdbpy_initialize_registers): Register new gdbarch data.
5937
5938 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * linux-nat.c (stopped_pids): Make static.
5941
5942 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 PR ada/26235
5945 * gdbtypes.c (ada_discrete_type_low_bound,
5946 ada_discrete_type_high_bound): Handle undefined bounds.
5947
5948 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5949
5950 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5951 declaration.
5952 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5953 function.
5954
5955 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5956
5957 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5958 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5959 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5960 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5961 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5962 method.
5963
5964 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5965
5966 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5967 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5968 which are deprecated in Guile 3.0.
5969 * configure.ac (try_guile_versions): Add "guile-3.0".
5970 * configure (try_guile_versions): Regenerate.
5971 * NEWS: Update entry.
5972
5973 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5974 Doug Evans <dje@google.com>
5975
5976 PR gdb/21104
5977 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5978 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5979 USING_GUILE_BEFORE_2_2.
5980 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5981 Change type to 'scm_t_port_type *'.
5982 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5983 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5984 parameter and honor it. Update callers.
5985 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5986 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5987 functions.
5988 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5989 USING_GUILE_BEFORE_2_2.
5990 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5991 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5992 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5993 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5994 and 'SCM_PORT_TYPE'.
5995 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5996 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5997 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5998 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5999 [!USING_GUILE_BEFORE_2_2]: New functions.
6000 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6001 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6002 'gdbscm_memory_port_read'.
6003 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6004 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6005 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6006 function.
6007 (ioscm_init_memory_port): Remove.
6008 (ioscm_init_memory_port_stream): New function
6009 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6010 function.
6011 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6012 Return scm_from_uint (0).
6013 (gdbscm_set_memory_port_read_buffer_size_x)
6014 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6015 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6016 Return scm_from_uint (0).
6017 (gdbscm_set_memory_port_write_buffer_size_x)
6018 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6019 * configure.ac (try_guile_versions): Add "guile-2.2".
6020 * configure: Regenerate.
6021 * NEWS: Add entry.
6022
6023 2020-07-18 Tom Tromey <tom@tromey.com>
6024
6025 * linux-nat.c (linux_multi_process): Remove.
6026 (linux_nat_target::supports_multi_process): Return true.
6027
6028 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6029
6030 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6031 (riscv_lookup_target_description): Return pointer out of
6032 unique_ptr.
6033 * target-descriptions.c (allocate_target_description): Add
6034 comment.
6035 (target_desc_deleter::operator()): Likewise.
6036 * target-descriptions.h (struct target_desc_deleter): Moved to
6037 gdbsupport/tdesc.h.
6038 (target_desc_up): Likewise.
6039
6040 2020-07-17 Tom Tromey <tromey@adacore.com>
6041
6042 * linux-nat.c (linux_nat_target::supports_non_stop)
6043 (linux_nat_target::always_non_stop_p): Use "true".
6044 (linux_nat_target::supports_disable_randomization): Use "true" and
6045 "false".
6046
6047 2020-07-16 Caroline Tice <cmtice@google.com>
6048
6049 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6050 (RNGLIST_HEADER_SIZE64): New constant definition.
6051 (struct dwop_section_names): Add rnglists_dwo.
6052 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6053 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6054 (struct dwo_sections): Add rnglists field.
6055 (read_attribut_reprocess): Add tag parameter.
6056 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6057 (cu_debug_rnglists_section): New function (decl & definition).
6058 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6059 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6060 die whose range is being checked; get rnglist section from
6061 cu_debug_rnglists_section, to get from either objfile or dwo file as
6062 appropriate. Add cases for DW_RLE_base_addressx,
6063 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6064 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6065 test inside if-condition and updating complaint message.
6066 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6067 dwarf2_rnglists_process.
6068 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6069 dwarf2_ranges_process.
6070 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6071 need_ranges_base and update comment appropriately. Also pass die tag
6072 to dwarf2_ranges_read.
6073 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6074 need_ranges_base and update comment appropriately. Also pass die tag
6075 to dwarf2_ranges_process.
6076 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6077 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6078 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6079 need_ranges_base and update comment appropriately. Also pass die tag
6080 to read_attribute_reprocess and dwarf2_ranges_read.
6081 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6082 and update function comment appropriately.
6083 (read_loclist_index): Call read_loclists_rnglists_header instead of
6084 read_loclist_header.
6085 (read_rnglist_index): New function.
6086 (read_attribute_reprocess): Add tag parameter. Add code for
6087 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6088 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6089
6090 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6093 being resolved.
6094
6095 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * arch-utils.c (show_architecture): Update formatting of messages.
6098
6099 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * gdbtypes.h (struct type) <bounds>: Handle array and string
6102 types.
6103 * ada-lang.c (assign_aggregate): Use type::bounds on
6104 array/string type.
6105 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6106 * c-varobj.c (c_number_of_children): Likewise.
6107 (c_describe_child): Likewise.
6108 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6109 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6110 (f_type_print_base): Likewise.
6111 * f-valprint.c (f77_array_offset_tbl): Likewise.
6112 (f77_get_upperbound): Likewise.
6113 (f77_print_array_1): Likewise.
6114 * guile/scm-type.c (gdbscm_type_range): Likewise.
6115 * m2-typeprint.c (m2_array): Likewise.
6116 (m2_is_long_set_of_type): Likewise.
6117 * m2-valprint.c (get_long_set_bounds): Likewise.
6118 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6119 * python/py-type.c (typy_range): Likewise.
6120 * rust-lang.c (rust_internal_print_type): Likewise.
6121 * type-stack.c (type_stack::follow_types): Likewise.
6122 * valarith.c (value_subscripted_rvalue): Likewise.
6123 * valops.c (value_cast): Likewise.
6124
6125 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6126
6127 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6128 callers to use the equivalent accessor methods.
6129
6130 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6133 (struct type) <bit_stride>: New method.
6134 (TYPE_BIT_STRIDE): Remove.
6135 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6136
6137 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6140 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6141 callers to use the equivalent accessor methods instead.
6142
6143 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6144
6145 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6146 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6147 callers to use the equivalent accessor methods instead.
6148
6149 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6152 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6153 to use dynamic_prop::kind.
6154
6155 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6158 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6159 to get the bound property's kind and check against
6160 PROP_UNDEFINED.
6161
6162 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6165 all callers to use type::range_bounds followed by
6166 dynamic_prop::{low,high}.
6167
6168 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6169
6170 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6171 const_val, set_const_val, baton, set_locexpr, set_loclist,
6172 set_addr_offset, variant_parts, set_variant_parts,
6173 original_type, set_original_type>: New methods.
6174 <kind>: Rename to...
6175 <m_kind>: ... this. Update all users to use the new methods
6176 instead.
6177 <data>: Rename to...
6178 <m_data>: ... this. Update all users to use the new methods
6179 instead.
6180
6181 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * gdbtypes.c (get_discrete_bounds): Return failure if
6184 the range type's bounds are not both defined and constant
6185 values.
6186 (get_array_bounds): Update comment. Remove undefined bound check.
6187
6188 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6191 the type::bounds method directly.
6192
6193 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6196 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6197 are used to set the range type's bounds to use set_bounds.
6198
6199 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6200
6201 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6202
6203 2020-07-10 Pedro Alves <pedro@palves.net>
6204
6205 * gdbthread.h (inferior_ref): Define.
6206 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6207 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6208 * thread.c
6209 (scoped_restore_current_thread::restore):
6210 Adjust to gdb::ref_ptr.
6211 (scoped_restore_current_thread::~scoped_restore_current_thread):
6212 Remove manual decref handling.
6213 (scoped_restore_current_thread::scoped_restore_current_thread):
6214 Adjust to use
6215 inferior_ref::new_reference/thread_info_ref::new_reference.
6216 Incref the thread before calling get_frame_id instead of after.
6217 Let TARGET_CLOSE_ERROR propagate.
6218
6219 2020-07-10 Pedro Alves <pedro@palves.net>
6220
6221 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6222 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6223 NOT_AVAILABLE_ERROR.
6224 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6225 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6226
6227 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6228 Pedro Alves <pedro@palves.net>
6229
6230 PR gdb/26199
6231 * infrun.c (threads_are_resumed_pending_p): Delete.
6232 (do_target_wait): Remove threads_are_executing and
6233 threads_are_resumed_pending_p checks from the inferior_matches
6234 lambda. Update comments.
6235
6236 2020-07-10 Pedro Alves <pedro@palves.net>
6237
6238 PR gdb/26199
6239 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6240 executing threads.
6241
6242 2020-07-10 Pedro Alves <pedro@palves.net>
6243
6244 PR gdb/26199
6245 * infrun.c (handle_no_resumed): Handle multiple targets.
6246
6247 2020-07-10 Pedro Alves <pedro@palves.net>
6248
6249 PR gdb/26199
6250 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6251 target_is_async_p.
6252
6253 2020-07-10 Pedro Alves <pedro@palves.net>
6254
6255 PR gdb/26199
6256 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6257 threads, not all threads.
6258
6259 2020-07-10 Pedro Alves <pedro@palves.net>
6260
6261 PR gdb/26199
6262 * remote.c (remote_target::open_1): Pass remote target pointer as
6263 data to create_async_event_handler.
6264 (remote_async_inferior_event_handler): Mark async event handler
6265 before returning if the remote target still has either pending
6266 events or unacknowledged notifications.
6267
6268 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6269
6270 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6271 declaration.
6272 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6273 function.
6274
6275 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6276
6277 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6278 inferior_ptid.
6279
6280 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6281
6282 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6283 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6284 AT_FREEBSD_PS_STRINGS.
6285
6286 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6287
6288 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6289 of debugfile path on Windows.
6290
6291 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6292
6293 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6294 argument to 'data'.
6295
6296 2020-07-08 Tom Tromey <tromey@adacore.com>
6297
6298 * ada-lang.c (ada_exception_message_1): Use read_memory.
6299
6300 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 PR python/22748
6303 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6304 special handling for inline frames.
6305 * findvar.c (value_of_register_lazy): Skip inline frames when
6306 creating lazy register values.
6307 * frame.c (frame_id_computed_p): Delete definition.
6308 * frame.h (frame_id_computed_p): Delete declaration.
6309
6310 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6311
6312 * NEWS: Mention additions to Python API.
6313 * python/py-arch.c (archpy_register_groups): New function.
6314 (arch_object_methods): Add 'register_groups' method.
6315 * python/py-registers.c (reggroup_iterator_object): New struct.
6316 (reggroup_object): New struct.
6317 (gdbpy_new_reggroup): New function.
6318 (gdbpy_reggroup_to_string): New function.
6319 (gdbpy_reggroup_name): New function.
6320 (gdbpy_reggroup_iter): New function.
6321 (gdbpy_reggroup_iter_next): New function.
6322 (gdbpy_new_reggroup_iterator): New function
6323 (gdbpy_initialize_registers): Register new types.
6324 (reggroup_iterator_object_type): Define new Python type.
6325 (gdbpy_reggroup_getset): New static global.
6326 (reggroup_object_type): Define new Python type.
6327 * python/python-internal.h
6328
6329 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6332 * python/py-arch.c (archpy_registers): New function.
6333 (arch_object_methods): Add 'registers' method.
6334 * python/py-registers.c: New file.
6335 * python/python-internal.h
6336 (gdbpy_new_register_descriptor_iterator): Declare.
6337 (gdbpy_initialize_registers): Declare.
6338 * python/python.c (do_start_initialization): Call
6339 gdbpy_initialize_registers.
6340 * NEWS: Mention additions to the Python API.
6341
6342 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * NEWS: Mention new Python API method.
6345 * python/py-unwind.c (pending_framepy_architecture): New function.
6346 (pending_frame_object_methods): Add architecture method.
6347
6348 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * gdbarch.c: Regenerate.
6351 * gdbarch.h: Regenerate.
6352 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6353 (gdbarch_data): Use internal_error for the case where
6354 deprecated_set_gdbarch_data was originally needed.
6355 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6356 and use passed in obstack.
6357 (libunwind_frame_set_descr): Should no longer get back NULL from
6358 gdbarch_data.
6359 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6360 type.
6361 * user-regs.c (user_regs_init): Update parameters, and use passed
6362 in obstack.
6363 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6364 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6365
6366 2020-07-06 Tom de Vries <tdevries@suse.de>
6367
6368 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6369 End-Of-Sequence in lte_is_less_than.
6370 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6371 "gdb: Don't reorder line table entries too much when sorting".
6372
6373 2020-07-06 Tom de Vries <tdevries@suse.de>
6374
6375 PR tui/26205
6376 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6377
6378 2020-07-05 Tom de Vries <tdevries@suse.de>
6379
6380 PR build/26187
6381 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6382 std::uncaught_exceptions instead of deprecated
6383 std::uncaught_exception.
6384
6385 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * macroexp.h (macro_stringify): Return
6388 gdb::unique_xmalloc_ptr<char>.
6389 * macroexp.c (macro_stringify): Likewise.
6390 * macrotab.c (fixup_definition): Update.
6391
6392 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6395 (lex_one_token): Update.
6396 * macroexp.c (struct macro_buffer) <release>: Return
6397 gdb::unique_xmalloc_ptr<char>.
6398 (macro_stringify): Update.
6399 (macro_expand): Update.
6400 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6401 * macroexp.h (macro_expand_next): Likewise.
6402
6403 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * macroexp.h (macro_lookup_ftype): Remove.
6406 (macro_expand, macro_expand_once, macro_expand_next): Remove
6407 lookup function parameters, add scope parameter.
6408 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6409 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6410 * macroscope.h (standard_macro_lookup): Change parameter type
6411 to macro_scope.
6412 * macroscope.c (standard_macro_lookup): Likewise.
6413 * c-exp.y (lex_one_token): Update.
6414 * macrocmd.c (macro_expand_command): Likewise.
6415 (macro_expand_once_command): Likewise.
6416
6417 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6418
6419 * inf-loop.c (inferior_event_handler): Remove client_data param.
6420 * inf-loop.h (inferior_event_handler): Likewise.
6421 * infcmd.c (step_1): Adjust.
6422 * infrun.c (proceed): Adjust.
6423 (fetch_inferior_event): Remove client_data param.
6424 (infrun_async_inferior_event_handler): Adjust.
6425 * infrun.h (fetch_inferior_event): Remove `void *` param.
6426 * linux-nat.c (handle_target_event): Adjust.
6427 * record-btrace.c (record_btrace_handle_async_inferior_event):
6428 Adjust.
6429 * record-full.c (record_full_async_inferior_event_handler):
6430 Adjust.
6431 * remote.c (remote_async_inferior_event_handler): Adjust.
6432
6433 2020-07-01 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6436 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6437
6438 2020-07-01 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6441 tui_gen_win_info.
6442 (tui_win_info::make_window): Merge with
6443 tui_gen_win_info::make_window.
6444 (tui_win_info::make_visible): Move from tui_gen_win_info.
6445 * tui/tui-win.c (tui_win_info::max_width): Move from
6446 tui_gen_win_info.
6447 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6448 type.
6449 <window_factory>: Likewise.
6450 * tui/tui-layout.c (tui_win_info::resize): Move from
6451 tui_gen_win_info.
6452 (make_standard_window): Change return type.
6453 (get_locator_window, tui_get_window_by_name): Likewise.
6454 (tui_layout_window::apply): Remove a cast.
6455 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6456 (struct tui_win_info): Merge with tui_gen_win_info.
6457 (struct tui_gen_win_info): Remove.
6458
6459 2020-07-01 Tom Tromey <tom@tromey.com>
6460
6461 * tui/tui-stack.h (struct tui_locator_window): Derive from
6462 tui_win_info.
6463 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6464 <can_box>: New method.
6465
6466 2020-07-01 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6469
6470 2020-07-01 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-regs.c (tui_data_window::display_registers_from)
6473 (tui_data_window::display_registers_from)
6474 (tui_data_window::first_data_item_displayed)
6475 (tui_data_window::delete_data_content_windows): Update.
6476 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6477 Remove.
6478 (tui_data_window::check_register_values): Update.
6479 (tui_data_item_window::rerender): Add parameters. Update.
6480 (tui_data_item_window::refresh_window): Remove.
6481 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6482 virtual.
6483 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6484 tui_gen_win_info.
6485 <refresh_window, max_height, min_height>: Remove.
6486 <rerender>: Add parameters.
6487 <x, y, visible>: New members.
6488 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6489 <m_item_width>: New member.
6490
6491 2020-07-01 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-regs.c (tui_data_window::show_register_group)
6494 (tui_data_window::check_register_values): Update.
6495 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6496 from item_no.
6497
6498 2020-07-01 Tom Tromey <tom@tromey.com>
6499
6500 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6501 useless "if".
6502
6503 2020-07-01 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6506 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6507
6508 2020-07-01 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6511 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6512 (struct tui_line_or_address): Move from tui-data.h.
6513 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6514 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6515 (tui_cmd_window, tui_source_window_base, tui_source_window)
6516 (tui_disasm_window): Don't declare.
6517 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6518 to tui-winsource.h.
6519 (SINGLE_KEY): Move to tui-stack.c.
6520
6521 2020-07-01 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6524 std::string.
6525 * tui/tui-regs.c (class tab_expansion_file): New.
6526 (tab_expansion_file::write): New method.
6527 (tui_register_format): Change return type. Use
6528 tab_expansion_file.
6529 (tui_get_register, tui_data_window::display_registers_from)
6530 (tui_data_item_window::rerender): Update.
6531 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6532 * tui/tui-io.c (tui_expand_tabs): Remove.
6533
6534 2020-07-01 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6537
6538 2020-07-01 Fangrui Song <maskray@google.com>
6539
6540 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6541
6542 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6543
6544 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6545 forms for DW_AT_associated and DW_AT_allocated attributes,
6546 which is already checked in function attr_to_dynamic_prop.
6547
6548 2020-06-30 Tom Tromey <tromey@adacore.com>
6549
6550 * dwarf2/read.c (quirk_rust_enum): Correctly call
6551 alloc_rust_variant for default-less enum.
6552
6553 2020-06-30 Tom Tromey <tromey@adacore.com>
6554
6555 PR build/26183:
6556 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6557 gdb::to_string.
6558
6559 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6562 * gdbarch.h: Re-generate.
6563
6564 2020-06-28 Tom Tromey <tom@tromey.com>
6565
6566 * command.h (cmd_types): Remove.
6567 (cmd_type): Don't declare.
6568 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6569 typedef.
6570 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6571 * cli/cli-decode.c (cmd_type): Remove.
6572
6573 2020-06-27 Pedro Alves <palves@redhat.com>
6574
6575 * fork-child.c (prefork_hook): Adjust.
6576 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6577 Delete.
6578 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6579 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6580 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6581 Remove declarations.
6582 (struct inferior) <set_tty, tty>: New methods.
6583 (struct inferior) <terminal>: Rename to ...
6584 (struct inferior) <m_terminal>: ... this and make private.
6585 * main.c (captured_main_1): Adjust.
6586 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6587 (mi_cmd_inferior_tty_show): Adjust.
6588 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6589 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6590
6591 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6592
6593 * configure.ac: Add --enable-libctf: handle --disable-static
6594 properly.
6595 * acinclude.m4: sinclude ../config/enable.m4.
6596 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6597 (LIBCTF): Substitute in.
6598 (CTF_DEPS): New, likewise.
6599 (CLIBS): libctf needs symbols from libbfd: move earlier.
6600 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6601 flags.
6602 * ctfread.c: Surround in ENABLE_LIBCTF.
6603 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6604 * configure: Regenerate.
6605 * config.in: Likewise.
6606
6607 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6610
6611 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6612
6613 * inferior.h (struct inferior) <terminal>: Change type to
6614 gdb::unique_xmalloc_ptr<char>.
6615 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6616 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6617 field, adjust to unique pointer.
6618 (get_inferior_io_terminal): Adjust to unique pointer.
6619
6620 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6623 registers, not just the known core set of registers.
6624
6625 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6626
6627 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6628 fflags, frm, and fcsr registers.
6629 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6630 restore groups.
6631 (riscv_tdesc_unknown_reg): New function.
6632 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6633 tdesc_use_registers.
6634 * riscv-tdep.h (struct gdbarch_tdep): Add
6635 unknown_csrs_first_regnum, unknown_csrs_count,
6636 duplicate_fflags_regnum, duplicate_frm_regnum, and
6637 duplicate_fcsr_regnum fields.
6638
6639 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6642 callback, use the callback (when not null) to help number unknown
6643 registers.
6644 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6645 (tdesc_use_registers): Add extra parameter to declaration.
6646
6647 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6648
6649 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6650 in the file.
6651 (class riscv_pending_register_alias): Likewise.
6652 (riscv_register_feature::register_info): Change 'required_p' field
6653 to 'required', and change its type. Add 'check' member function.
6654 (riscv_register_feature::register_info::check): Define new member
6655 function.
6656 (riscv_xreg_feature): Change initialisation of 'required' field.
6657 (riscv_freg_feature): Likewise.
6658 (riscv_virtual_feature): Likewise.
6659 (riscv_csr_feature): Likewise.
6660 (riscv_check_tdesc_feature): Take extra parameter, the csr
6661 tdesc_feature, rewrite the function to use the new
6662 riscv_register_feature::register_info::check function.
6663 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6664
6665 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6666
6667 * features/Makefile: Remove all references to the deleted files
6668 below.
6669 * features/riscv/32bit-csr.c: Deleted.
6670 * features/riscv/32bit-csr.xml: Deleted.
6671 * features/riscv/64bit-csr.c: Deleted.
6672 * features/riscv/64bit-csr.xml: Deleted.
6673 * features/riscv/rebuild-csr-xml.sh: Deleted.
6674
6675 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6678 whitespace error for declaration of names member variable.
6679 (struct riscv_register_feature): Add new prefer_first_name member
6680 variable, and fix whitespace error in declaration of registers.
6681 (riscv_xreg_feature): Initialize prefer_first_name field.
6682 (riscv_freg_feature): Likewise.
6683 (riscv_virtual_feature): Likewise.
6684 (riscv_csr_feature): Likewise.
6685 (riscv_register_name): Expand on comments. Remove register name
6686 modifications for CSR and virtual registers.
6687
6688 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6691 errors.
6692
6693 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6696 riscv-opc.h.
6697 (class riscv_pending_register_alias): New class.
6698 (riscv_check_tdesc_feature): Take vector of pending aliases and
6699 populate it as appropriate.
6700 (riscv_setup_register_aliases): Delete.
6701 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6702 to riscv_check_tdesc_feature in all cases. Use the vector to
6703 create the register aliases.
6704
6705 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6706
6707 * sol2-tdep.c (sol2_static_transform_name): Remove.
6708 (sol2_init_abi): Don't register it.
6709 * gdbarch.sh (static_transform_name): Remove.
6710 * gdbarch.c, gdbarch.h: Regenerate.
6711
6712 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6713 gdbarch_static_transform_name.
6714 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6715 * stabsread.c (define_symbol) <'X'>: Remove.
6716 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6717 handling.
6718 <'V'>: Likewise.
6719 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6720 <'S'>: Remove call to gdbarch_static_transform_name.
6721
6722 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6723
6724 * procfs.c (procfs_pre_trace): New function.
6725 (procfs_target::create_inferior): Pass it to fork_inferior.
6726
6727 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6728
6729 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6730 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6731 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6732 sol2-tdep.o, sparc-sol2-tdep.o.
6733 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6734 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6735 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6736 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6737
6738 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6739
6740 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6741 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6742 Call sol2_init_abi.
6743 Remove calls to set_gdbarch_skip_solib_resolver,
6744 set_gdbarch_core_pid_to_str.
6745 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6746 (i386_sol2_static_transform_name): Remove.
6747 (i386_sol2_init_abi): Call sol2_init_abi.
6748 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6749 set_gdbarch_static_transform_name,
6750 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6751 Use sol2_sigtramp_p.
6752 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6753 (sol2_sigtramp_p): New function.
6754 (sol2_static_transform_name): New function.
6755 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6756 (sol2_init_abi): New function.
6757 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6758 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6759 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6760 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6761 (sparc_sol2_static_transform_name): Remove.
6762 (sparc32_sol2_init_abi): Call sol2_init_abi.
6763 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6764 set_gdbarch_static_transform_name,
6765 set_gdbarch_skip_solib_resolver,
6766 set_gdbarch_core_pid_to_str.
6767 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6768 (sparc_sol2_static_transform_name): Remove
6769 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6770 call sol2_sigtramp_p.
6771 (sparc64_sol2_init_abi): Call sol2_init_abi.
6772 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6773 set_gdbarch_static_transform_name,
6774 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6775
6776 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6777
6778 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6779 * exec.c (validate_exec_file): If from_tty, set both
6780 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6781 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6782 and from_tty, unconditionally ask a confirmation.
6783
6784 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * target-descriptions.c (tdesc_architecture_name): Protect against
6787 NULL pointer dereference.
6788 (maint_print_xml_tdesc_cmd): New function.
6789 (_initialize_target_descriptions): Register new 'maint print
6790 xml-tdesc' command and give it the filename completer.
6791 * NEWS: Mention new 'maint print xml-tdesc' command.
6792
6793 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * target-descriptions.c (class tdesc_compatible_info): New class.
6796 (struct target_desc): Change type of compatible vector.
6797 (tdesc_compatible_p): Update for change in type of
6798 target_desc::compatible.
6799 (tdesc_compatible_info_list): New function.
6800 (tdesc_compatible_info_arch_name): New function.
6801 (tdesc_add_compatible): Update for change in type of
6802 target_desc::compatible.
6803 (print_c_tdesc::visit_pre): Likewise.
6804
6805 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6806
6807 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6808 whitespace to underscore.
6809 (maint_print_c_tdesc_cmd): Use fake filename for target
6810 descriptions that came from the target.
6811 (_initialize_target_descriptions): Add filename command completion
6812 for 'maint print c-tdesc'.
6813
6814 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6815
6816 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6817 lines.
6818
6819 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6820
6821 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6822 lines.
6823 (dwarf2_find_location_expression): Likewise.
6824 (call_site_parameter_matches): Likewise.
6825 (dwarf2_compile_expr_to_ax): Likewise.
6826 (disassemble_dwarf_expression): Likewise.
6827 (loclist_describe_location): Likewise.
6828
6829 2020-06-23 Pedro Alves <palves@redhat.com>
6830
6831 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6832 progspace-and-thread.h. Include scoped-mock-context.h instead.
6833 (register_to_value_test): Use scoped_mock_context.
6834 * regcache.c: Include "scoped-mock-context.h".
6835 (cooked_read_test): Don't error out if a target is already pushed.
6836 Use scoped_mock_context. Adjust.
6837 * scoped-mock-context.h: New file.
6838
6839 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6842 initializer.
6843 (ada_language::is_string_type_p): New member function.
6844 * c-lang.c (c_language_data): Delete la_is_string_type_p
6845 initializer.
6846 (cplus_language_data): Likewise.
6847 (asm_language_data): Likewise.
6848 (minimal_language_data): Likewise.
6849 * d-lang.c (d_language_data): Likewise.
6850 * f-lang.c (f_is_string_type_p): Delete function, implementation
6851 moved to f_language::is_string_type_p.
6852 (f_language_data): Delete la_is_string_type_p initializer.
6853 (f_language::is_string_type_p): New member function,
6854 implementation from f_is_string_type_p.
6855 * go-lang.c (go_is_string_type_p): Delete function, implementation
6856 moved to go_language::is_string_type_p.
6857 (go_language_data): Delete la_is_string_type_p initializer.
6858 (go_language::is_string_type_p): New member function,
6859 implementation from go_is_string_type_p.
6860 * language.c (language_defn::is_string_type_p): Define new member
6861 function.
6862 (default_is_string_type_p): Make static, add comment copied from
6863 header file.
6864 (unknown_language_data): Delete la_is_string_type_p initializer.
6865 (unknown_language::is_string_type_p): New member function.
6866 (auto_language_data): Delete la_is_string_type_p initializer.
6867 (auto_language::is_string_type_p): New member function.
6868 * language.h (language_data): Delete la_is_string_type_p field.
6869 (language_defn::is_string_type_p): Declare new function.
6870 (default_is_string_type_p): Delete desclaration, move comment to
6871 definition.
6872 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6873 moved to m2_language::is_string_type_p.
6874 (m2_language_data): Delete la_is_string_type_p initializer.
6875 (m2_language::is_string_type_p): New member function,
6876 implementation from m2_is_string_type_p.
6877 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6878 initializer.
6879 * opencl-lang.c (opencl_language_data): Likewise.
6880 * p-lang.c (pascal_is_string_type_p): Delete function,
6881 implementation moved to pascal_language::is_string_type_p.
6882 (pascal_language_data): Delete la_is_string_type_p initializer.
6883 (pascal_language::is_string_type_p): New member function,
6884 implementation from pascal_is_string_type_p.
6885 * rust-lang.c (rust_is_string_type_p): Delete function,
6886 implementation moved to rust_language::is_string_type_p.
6887 (rust_language_data): Delete la_is_string_type_p initializer.
6888 (rust_language::is_string_type_p): New member function,
6889 implementation from rust_is_string_type_p.
6890 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6891 is_string_type_p.
6892
6893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * ada-lang.c (ada_language_data): Delete la_print_typedef
6896 initializer.
6897 (ada_language::print_typedef): New member function.
6898 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6899 (cplus_language_data): Likewise.
6900 (asm_language_data): Likewise.
6901 (minimal_language_data): Likewise.
6902 * d-lang.c (d_language_data): Likewise.
6903 * f-lang.c (f_language_data): Likewise.
6904 (f_language::print_typedef): New member function.
6905 * go-lang.c (go_language_data): Delete la_print_typedef
6906 initializer.
6907 * language.c (language_defn::print_typedef): Define member
6908 function.
6909 (unknown_language_data): Delete la_print_typedef initializer.
6910 (unknown_language::print_typedef): New member function.
6911 (auto_language_data): Delete la_print_typedef initializer.
6912 (auto_language::print_typedef): New member function.
6913 * language.h (language_data): Delete la_print_typedef field.
6914 (language_defn::print_typedef): Declare new member function.
6915 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6916 (default_print_typedef): Delete declaration.
6917 * m2-lang.c (m2_language_data): Delete la_print_typedef
6918 initializer.
6919 (m2_language::print_typedef): New member function.
6920 * objc-lang.c (objc_language_data): Delete la_print_typedef
6921 initializer.
6922 * opencl-lang.c (opencl_language_data): Likewise.
6923 * p-lang.c (pascal_language_data): Likewise.
6924 (pascal_language::print_typedef): New member function.
6925 * rust-lang.c (rust_print_typedef): Delete function,
6926 implementation moved to rust_language::print_typedef.
6927 (rust_language): Delete la_print_typedef initializer.
6928 (rust_language::print_typedef): New member function,
6929 implementation from rust_print_typedef.
6930 * typeprint.c (default_print_typedef): Delete.
6931
6932 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6935 (ada_language::printstr): New member function.
6936 * c-lang.c (c_language_data): Delete la_printstr initializer.
6937 (cplus_language_data): Likewise.
6938 (asm_language_data): Likewise.
6939 (minimal_language_data): Likewise.
6940 * d-lang.c (d_language_data): Likewise.
6941 * f-lang.c (f_printstr): Rename to f_language::printstr.
6942 (f_language_data): Delete la_printstr initializer.
6943 (f_language::printstr): New member function, implementation from
6944 f_printstr.
6945 * go-lang.c (go_language_data): Delete la_printstr initializer.
6946 * language.c (language_defn::printstr): Define new member
6947 function.
6948 (unk_lang_printstr): Delete.
6949 (unknown_language_data): Delete la_printstr initializer.
6950 (unknown_language::printstr): New member function.
6951 (auto_language_data): Delete la_printstr initializer.
6952 (auto_language::printstr): New member function.
6953 * language.h (language_data): Delete la_printstr field.
6954 (language_defn::printstr): Declare new member function.
6955 (LA_PRINT_STRING): Update call to printstr.
6956 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6957 (m2_language_data): Delete la_printstr initializer.
6958 (m2_language::printstr): New member function, implementation from
6959 m2_printstr.
6960 * objc-lang.c (objc_language_data): Delete la_printstr
6961 initializer.
6962 * opencl-lang.c (opencl_language_data): Likewise.
6963 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6964 (pascal_language_data): Delete la_printstr initializer.
6965 (pascal_language::printstr): New member function, implementation
6966 from pascal_printstr.
6967 * p-lang.h (pascal_printstr): Delete declaration.
6968 * rust-lang.c (rust_printstr): Update header comment.
6969 (rust_language_data): Delete la_printstr initializer.
6970 (rust_language::printstr): New member function.
6971
6972 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6975 (ada_language::printchar): New member function.
6976 * c-lang.c (c_language_data): Delete la_printchar initializer.
6977 (cplus_language_data): Likewise.
6978 (asm_language_data): Likewise.
6979 (minimal_language_data): Likewise.
6980 * d-lang.c (d_language_data): Likewise.
6981 * f-lang.c (f_printchar): Rename to f_language::printchar.
6982 (f_language_data): Delete la_printchar initializer.
6983 (f_language::printchar): New member function, implementation from
6984 f_printchar.
6985 * go-lang.c (go_language_data): Delete la_printchar initializer.
6986 * language.c (unk_lang_printchar): Delete.
6987 (language_defn::printchar): Define new member function.
6988 (unknown_language_data): Delete la_printchar initializer.
6989 (unknown_language::printchar): New member function.
6990 (auto_language_data): Delete la_printchar initializer.
6991 (auto_language::printchar): New member function.
6992 * language.h (language_data): Delete la_printchar field.
6993 (language_defn::printchar): Declare new member function.
6994 (LA_PRINT_CHAR): Update call to printchar.
6995 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6996 (m2_language::printchar): New member function.
6997 * objc-lang.c (objc_language_data): Delete la_printchar
6998 initializer.
6999 * opencl-lang.c (opencl_language_data): Likewise.
7000 * p-lang.c (pascal_language_data): Delete la_printchar
7001 initializer.
7002 (pascal_language::printchar): New member function.
7003 * rust-lang.c (rust_printchar): Rename to
7004 rust_language::printchar.
7005 (rust_language_data): Delete la_printchar initializer.
7006 (rust_language::printchar): New member function, implementation
7007 from rust_printchar.
7008
7009 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7012 (ada_language_data): Delete la_emitchar initializer.
7013 (ada_language::emitchar): New member function, implementation from
7014 emit_char.
7015 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7016 (cplus_language_data): Likewise.
7017 (asm_language_data): Likewise.
7018 (minimal_language_data): Likewise.
7019 * d-lang.c (d_language_data): Likewise.
7020 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7021 (f_language_data): Delete la_emitchar initializer.
7022 (f_language::emitchar): New member function, implementation from
7023 f_emit_char.
7024 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7025 * language.c (unk_lang_emit_char): Delete.
7026 (language_defn::emitchar): New member function definition.
7027 (unknown_language_data): Delete la_emitchar initializer.
7028 (unknown_language::emitchar): New member function.
7029 (auto_language_data): Delete la_emitchar initializer.
7030 (auto_language::emitchar): New member function.
7031 * language.h (language_data): Delete la_emitchar field.
7032 (language_defn::emitchar): New member field declaration.
7033 (LA_EMIT_CHAR): Update call to emitchar.
7034 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7035 (m2_language_data): Delete la_emitchar initializer.
7036 (m2_language::emitchar): New member function, implementation from
7037 m2_emit_char.
7038 * objc-lang.c (objc_language_data): Delete la_emitchar
7039 initializer.
7040 * opencl-lang.c (opencl_language_data): Likewise.
7041 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7042 (pascal_language_data): Delete la_emitchar initializer.
7043 (pascal_language::emitchar): New member function, implementation
7044 from pascal_emit_char.
7045 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7046 (rust_language_data): Delete la_emitchar initializer.
7047 (rust_language::emitchar): New member function, implementation
7048 from rust_emitchar.
7049
7050 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7053 (ada_language_data): Delete la_post_parser initializer.
7054 (ada_language::post_parser): New member function.
7055 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7056 (cplus_language_data): Likewise.
7057 (asm_language_data): Likewise.
7058 (minimal_language_data): Likewise.
7059 * d-lang.c (d_language_data): Likewise.
7060 * f-lang.c (f_language_data): Likewise.
7061 * go-lang.c (go_language_data): Likewise.
7062 * language.c (unknown_language_data): Likewise.
7063 (auto_language_data): Likewise.
7064 * language.h (language_data): Delete la_post_parser field.
7065 (language_defn::post_parser): New member function.
7066 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7067 * objc-lang.c (objc_language_data): Likewise.
7068 * opencl-lang.c (opencl_language_data): Likewise.
7069 * p-lang.c (pascal_language_data): Likewise.
7070 * parse.c (parse_exp_in_context): Update call to post_parser.
7071 (null_post_parser): Delete definition.
7072 * parser-defs.h (null_post_parser): Delete declaration.
7073 * rust-lang.c (rust_language_data): Delete la_post_parser
7074 initializer.
7075
7076 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * ada-lang.c (parse): Rename to ada_language::parser.
7079 (ada_language_data): Delete la_parser initializer.
7080 (ada_language::parser): New member function, implementation from
7081 parse.
7082 * c-lang.c (c_language_data): Delete la_parser initializer.
7083 (cplus_language_data): Likewise.
7084 (asm_language_data): Likewise.
7085 (minimal_language_data): Likewise.
7086 * d-lang.c (d_language_data): Likewise.
7087 (d_language::parser): New member function.
7088 * f-lang.c (f_language_data): Delete la_parser initializer.
7089 (f_language::parser): New member function.
7090 * go-lang.c (go_language_data): Delete la_parser initializer.
7091 (go_language::parser): New member function.
7092 * language.c (unk_lang_parser): Delete.
7093 (language_defn::parser): Define new member function.
7094 (unknown_language_data): Delete la_parser initializer.
7095 (unknown_language::parser): New member function.
7096 (auto_language_data): Delete la_parser initializer.
7097 (auto_language::parser): New member function.
7098 * language.h (language_data): Delete la_parser field.
7099 (language_defn::parser): Declare new member function.
7100 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7101 (m2_language::parser): New member function.
7102 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7103 * opencl-lang.c (opencl_language_data): Likewise.
7104 * p-lang.c (pascal_language_data): Likewise.
7105 (pascal_language::parser): New member function.
7106 * parse.c (parse_exp_in_context): Update call to parser.
7107 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7108 (rust_language::parser): New member function.
7109
7110 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * top.c (print_gdb_configuration): Print --with-python-libdir
7113 configuration value.
7114
7115 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7116
7117 * NEWS: Mention change to the alias command.
7118
7119 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120
7121 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7122 (alias_command_completer)
7123 (make_alias_options_def_group): New functions.
7124 (alias_opts, alias_option_defs): New struct and array.
7125 (alias_usage_error): Update usage.
7126 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7127 Use option framework.
7128 (_initialize_cli_cmds): Update alias command help.
7129 Update aliases command help.
7130 (show_user):
7131 Add NULL for new default_args lookup_cmd argument.
7132 (valid_command_p): Rename to validate_aliased_command.
7133 Add NULL for new default_args lookup_cmd argument. Verify that the
7134 aliased_command has no default args.
7135 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7136 (lookup_cmd_1, lookup_cmd): New argument default_args.
7137 (add_alias_cmd):
7138 Add NULL for new default_args lookup_cmd argument.
7139 (print_help_for_command): Show default args under the layout
7140 alias some_alias = some_aliased_cmd some_alias_default_arg.
7141 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7142 xfree default_args in destructor.
7143 * cli/cli-script.c (process_next_line, do_define_command):
7144 Add NULL for new default_args lookup_cmd argument.
7145 * command.h: Declare new default_args argument in lookup_cmd
7146 and lookup_cmd_1.
7147 * completer.c (complete_line_internal_1):
7148 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7149 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7150 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7151 Likewise.
7152 * infcmd.c (_initialize_infcmd): Likewise.
7153 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7154 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7155 * python/py-param.c (add_setshow_generic): Likewise.
7156 * remote.c (_initialize_remote): Likewise.
7157 * top.c (execute_command): Prepend default_args if command has some.
7158 (set_verbose):
7159 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7160 * tracepoint.c (validate_actionline, encode_actions_1):
7161 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7162
7163 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7164
7165 * jit.c (jit_read_descriptor): Use bool as the return type.
7166 (jit_breakpoint_re_set_internal): Use bool as the return type.
7167 Invert the return value logic; return true if the jit breakpoint
7168 has been successfully initialized.
7169 (jit_inferior_init): Update the call to
7170 jit_breakpoint_re_set_internal.
7171
7172 2020-06-22 Pedro Alves <palves@redhat.com>
7173
7174 PR gdb/25939
7175 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7176 Use the current inferior instead. Don't return
7177 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7178 wait again.
7179 * sol-thread.c (sol_thread_target::wait): Don't reference
7180 inferior_ptid.
7181 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7182 (sol_update_thread_list_callback): Use the current inferior's pid
7183 instead of inferior_ptid.
7184
7185 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7186
7187 * procfs.c: Cleanup many comments.
7188
7189 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7190 (AFTER_WATCHFLAG): Replace by value.
7191
7192 (MAIN_PROC_NAME_FORMAT): Inline ...
7193 (create_procinfo): ... here.
7194
7195 (procfs_debug_inferior): Remove SYS_exec handling.
7196 (syscall_is_exec): Likewise.
7197 (procfs_set_exec_trap): Likewise.
7198
7199 (syscall_is_lwp_exit): Inline in callers.
7200 (syscall_is_exit): Likewise.
7201 (syscall_is_exec): Likewise.
7202 (syscall_is_lwp_create): Likewise.
7203
7204 (invalidate_cache): Remove #if 0 code.
7205
7206 (make_signal_thread_runnable): Remove.
7207 (procfs_target::resume): Remove #if 0 code.
7208
7209 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7210
7211 PR gdb/25939
7212 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7213 call ...
7214 (procfs_target::create_inferior): ... here.
7215
7216 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7217
7218 * exec.c (validate_exec_file): Ensure the build-id is up to
7219 date by calling reopen_exec_file (that checks file timestamp
7220 to decide to re-read the file).
7221
7222 2020-06-18 Pedro Alves <palves@redhat.com>
7223
7224 PR gdb/25412
7225 * gdbthread.h (delete_thread, delete_thread_silent)
7226 (find_thread_ptid): Update comments.
7227 * thread.c (current_thread_): New global.
7228 (is_current_thread): Move higher, and reimplement.
7229 (inferior_thread): Reimplement.
7230 (set_thread_exited): Use bool. Add assertions.
7231 (add_thread_silent): Simplify thread-reuse handling by always
7232 calling delete_thread.
7233 (delete_thread): Remove intro comment.
7234 (find_thread_ptid): Skip exited threads.
7235 (switch_to_thread_no_regs): Write to current_thread_.
7236 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7237 INFERIOR_PTID. Clear current_thread_.
7238
7239 2020-06-18 Pedro Alves <palves@redhat.com>
7240
7241 * aix-thread.c (pd_update): Use switch_to_thread.
7242
7243 2020-06-18 Pedro Alves <palves@redhat.com>
7244
7245 * ravenscar-thread.c (ravenscar_thread_target): Update.
7246 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7247 (ravenscar_thread_target::add_active_thread): ... this. Don't
7248 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7249 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7250
7251 2020-06-18 Pedro Alves <palves@redhat.com>
7252
7253 * nat/windows-nat.c (current_windows_thread): Remove.
7254 * nat/windows-nat.h (current_windows_thread): Remove.
7255 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7256 Adjust.
7257 (display_selectors): Adjust to fetch the current
7258 windows_thread_info based on inferior_ptid.
7259 (fake_create_process): No longer write to current_windows_thread.
7260 (windows_nat_target::get_windows_debug_event):
7261 Don't set inferior_ptid or current_windows_thread.
7262 (windows_nat_target::wait): Adjust to not rely on
7263 current_windows_thread.
7264 (do_initial_windows_stuff): Now a method of windows_nat_target.
7265 Switch to the last_ptid thread.
7266 (windows_nat_target::attach): Adjust.
7267 (windows_nat_target::detach): Use switch_to_no_thread instead of
7268 writing to inferior_ptid directly.
7269 (windows_nat_target::create_inferior): Adjust.
7270
7271 2020-06-18 Pedro Alves <palves@redhat.com>
7272
7273 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7274
7275 2020-06-18 Pedro Alves <palves@redhat.com>
7276
7277 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7278 after creating it, instead of writing to inferior_ptid. Don't
7279 write to inferior_ptid.
7280
7281 2020-06-18 Pedro Alves <palves@redhat.com>
7282
7283 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7284
7285 2020-06-18 Pedro Alves <palves@redhat.com>
7286
7287 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7288 it, instead of writing to inferior_ptid.
7289
7290 2020-06-18 Pedro Alves <palves@redhat.com>
7291
7292 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7293 to inferior_ptid.
7294
7295 2020-06-18 Pedro Alves <palves@redhat.com>
7296
7297 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7298 instead of writing to inferior_ptid directly.
7299
7300 2020-06-18 Pedro Alves <palves@redhat.com>
7301
7302 * corelow.c (core_target::close): Use switch_to_no_thread instead
7303 of writing to inferior_ptid directly.
7304 (add_to_thread_list, core_target_open): Use switch_to_thread
7305 instead of writing to inferior_ptid directly.
7306
7307 2020-06-18 Pedro Alves <palves@redhat.com>
7308
7309 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7310 inferior_ptid.
7311 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7312 inferior_ptid.
7313 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7314 inferior_ptid directly.
7315 (darwin_nat_target::init_thread_list): Switch to thread, instead
7316 of writing to inferior_ptid.
7317 (darwin_nat_target::attach): Don't write to inferior_ptid.
7318 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7319
7320 2020-06-18 Pedro Alves <palves@redhat.com>
7321
7322 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7323 thread.
7324 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7325 Instead use switch_to_thread.
7326 (gnu_nat_target::detach): Use switch_to_no_thread
7327 instead of writing to inferior_ptid directly. Used passed-in
7328 inferior instead of looking up the inferior by pid.
7329
7330 2020-06-18 Pedro Alves <palves@redhat.com>
7331
7332 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7333 inferior_ptid.
7334
7335 2020-06-18 Pedro Alves <palves@redhat.com>
7336
7337 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7338 inferior_ptid.
7339 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7340 thread.
7341 (nto_procfs_target::detach): Avoid referencing
7342 inferior_ptid. Use switch_to_no_thread instead of writing to
7343 inferior_ptid directly.
7344 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7345 instead of writing to inferior_ptid directly.
7346 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7347 to thread.
7348
7349 2020-06-18 Pedro Alves <palves@redhat.com>
7350
7351 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7352 after creating it, instead of writing to inferior_ptid.
7353 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7354 to inferior_ptid directly.
7355 (gdbsim_target::wait): Don't write to inferior_ptid.
7356
7357 2020-06-18 Pedro Alves <palves@redhat.com>
7358
7359 * remote.c (remote_target::remote_notice_new_inferior): Use
7360 switch_to_thread instead of writing to inferior_ptid directly.
7361 (remote_target::add_current_inferior_and_thread): Use
7362 switch_to_no_thread instead of writing to inferior_ptid directly.
7363 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7364 and switch_to_thread instead of using set_current_inferior or
7365 writing to inferior_ptid directly.
7366
7367 2020-06-18 Pedro Alves <palves@redhat.com>
7368
7369 * tracectf.c (ctf_target_open): Switch to added thread instead of
7370 writing to inferior_ptid directly.
7371 (ctf_target::close): Use switch_to_no_thread instead of writing to
7372 inferior_ptid directly.
7373
7374 2020-06-18 Pedro Alves <palves@redhat.com>
7375
7376 * tracefile-tfile.c (tfile_target_open): Don't write to
7377 inferior_ptid directly, instead switch to added thread.
7378 (tfile_target::close): Use switch_to_no_thread instead of writing
7379 to inferior_ptid directly.
7380
7381 2020-06-18 Pedro Alves <palves@redhat.com>
7382
7383 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7384 (procfs_target::detach): Use switch_to_no_thread
7385 instead of writing to inferior_ptid directly.
7386 (do_attach): Change return type to void. Switch to the added
7387 thread.
7388 (procfs_target::create_inferior): Switch to the added thread.
7389 (procfs_do_thread_registers): Don't write to inferior_ptid.
7390
7391 2020-06-18 Pedro Alves <palves@redhat.com>
7392
7393 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7394 of writing to inferior_ptid.
7395 (scoped_restore_exited_inferior): Delete.
7396 (handle_vfork_child_exec_or_exit): Simplify using
7397 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7398 instead of writing to inferior_ptid.
7399 (THREAD_STOPPED_BY): Delete.
7400 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7401 (thread_stopped_by_hw_breakpoint): Delete.
7402 (save_waitstatus): Use
7403 scoped_restore_current_thread+switch_to_thread, and call
7404 target_stopped_by_watchpoint instead of
7405 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7406 instead of thread_stopped_by_sw_breakpoint, and
7407 target_stopped_by_hw_breakpoint instead of
7408 thread_stopped_by_hw_breakpoint.
7409 (handle_inferior_event)
7410 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7411 inferior_ptid directly, nor
7412 set_current_inferior/set_current_program_space. Use
7413 switch_to_thread / switch_to_inferior_no_thread instead.
7414
7415 2020-06-18 Pedro Alves <palves@redhat.com>
7416
7417 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7418 instead of writing to inferior_ptid.
7419
7420 2020-06-18 Pedro Alves <palves@redhat.com>
7421
7422 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7423 added thread.
7424 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7425 to the added thread.
7426 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7427 instead of writing to inferior_ptid.
7428
7429 2020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7432 (register_to_value_test): Mock a program_space too. Heap-allocate
7433 the address space. Don't write to inferior_ptid. Use
7434 switch_to_thread instead.
7435
7436 2020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7439 Delete.
7440 (find_signalled_thread()): New, factored out from
7441 linux_make_corefile_notes and adjusted to handle exited threads.
7442 (linux_make_corefile_notes): Adjust to use the new
7443 find_signalled_thread.
7444
7445 2020-06-18 Pedro Alves <palves@redhat.com>
7446
7447 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7448 of saving/restoring inferior_ptid.
7449
7450 2020-06-17 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7453 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7454 declare.
7455 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7456
7457 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7460 of partial symtabs.
7461
7462 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * regformats/reg-arm.dat: Remove.
7465 * regformats/reg-bfin.dat: Remove.
7466 * regformats/reg-cris.dat: Remove.
7467 * regformats/reg-crisv32.dat: Remove.
7468 * regformats/reg-m32r.dat: Remove.
7469 * regformats/reg-tilegx.dat: Remove.
7470 * regformats/reg-tilegx32.dat: Remove.
7471
7472 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * features/Makefile (WHICH): Remove arm files.
7475 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7476 * regformats/arm/arm-with-neon.dat: Remove.
7477 * regformats/arm/arm-with-vfpv2.dat: Remove.
7478 * regformats/arm/arm-with-vfpv3.dat: Remove.
7479
7480 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * features/Makefile (XMLTOC): Remove rx.xml.
7483
7484 2020-06-17 Pedro Alves <palves@redhat.com>
7485
7486 * gdbthread.h (thread_control_state) <trap_expected> Update
7487 comments.
7488
7489 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7490
7491 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7492 ada_language::lookup_symbol_nonlocal.
7493 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7494 (ada_language::lookup_symbol_nonlocal): New member function,
7495 implementation from ada_lookup_symbol_nonlocal.
7496 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7497 initializer.
7498 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7499 initializer.
7500 (cplus_language::lookup_symbol_nonlocal): New member function.
7501 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7502 (minimal_language_data) Likewise.
7503 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7504 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7505 initializer.
7506 (d_language::lookup_symbol_nonlocal): New member function.
7507 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7508 initializer.
7509 (f_language::lookup_symbol_nonlocal): New member function.
7510 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7511 initializer.
7512 * language.c (unknown_language_data): Likewise.
7513 (auto_language_data): Likewise.
7514 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7515 field.
7516 (language_defn::lookup_symbol_nonlocal): New member function.
7517 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7518 initializer.
7519 * objc-lang.c (objc_language_data): Likewise.
7520 * opencl-lang.c (opencl_language_data): Likewise.
7521 * p-lang.c (pascal_language_data): Likewise.
7522 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7523 rust_language::lookup_symbol_nonlocal.
7524 (rust_language_data): Delete la_lookup_symbol_nonlocal
7525 initializer.
7526 (rust_language::lookup_symbol_nonlocal): New member function,
7527 implementation from rust_lookup_symbol_nonlocal.
7528 * symtab.c (lookup_symbol_aux): Update call to
7529 lookup_symbol_nonlocal.
7530 (basic_lookup_symbol_nonlocal): Rename to...
7531 (language_defn::lookup_symbol_nonlocal): ...this, and update
7532 header comment. Remove language_defn parameter, and replace with
7533 uses of `this'.
7534 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7535
7536 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7537
7538 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7539 initializer.
7540 (ada_language::value_print_inner): New member function.
7541 * c-lang.c (c_language_data): Delete la_value_print_inner
7542 initializer.
7543 (cplus_language_data): Likewise.
7544 (asm_language_data): Likewise.
7545 (minimal_language_data): Likewise.
7546 * d-lang.c (d_language_data): Likewise.
7547 (d_language::value_print_inner): New member function.
7548 * f-lang.c (f_language_data): Delete la_value_print_inner
7549 initializer.
7550 (f_language::value_print_inner): New member function.
7551 * f-lang.h (f_value_print_innner): Rename to...
7552 (f_value_print_inner): ...this (note spelling of 'inner').
7553 * f-valprint.c (f_value_print_innner): Rename to...
7554 (f_value_print_inner): ...this (note spelling of 'inner').
7555 * go-lang.c (go_language_data): Delete la_value_print_inner
7556 initializer.
7557 (go_language::value_print_inner): New member function.
7558 * language.c (language_defn::value_print_inner): Define new member
7559 function.
7560 (unk_lang_value_print_inner): Delete.
7561 (unknown_language_data): Delete la_value_print_inner initializer.
7562 (unknown_language::value_print_inner): New member function.
7563 (auto_language_data): Delete la_value_print_inner initializer.
7564 (auto_language::value_print_inner): New member function.
7565 * language.h (language_data): Delete la_value_print_inner field.
7566 (language_defn::value_print_inner): Delcare new member function.
7567 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7568 initializer.
7569 (m2_language::value_print_inner): New member function.
7570 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7571 initializer.
7572 * opencl-lang.c (opencl_language_data): Likewise.
7573 * p-lang.c (pascal_language_data): Likewise.
7574 (pascal_language::value_print_inner): New member function.
7575 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7576 initializer.
7577 (rust_language::value_print_inner): New member function.
7578 * valprint.c (do_val_print): Update call to value_print_inner.
7579
7580 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7581
7582 * ada-lang.c (ada_language_data): Delete la_value_print
7583 initializer.
7584 (ada_language::value_print): New member function.
7585 * c-lang.c (c_language_data): Delete la_value_print initializer.
7586 (cplus_language_data): Likewise.
7587 (asm_language_data): Likewise.
7588 (minimal_language_data): Likewise.
7589 * d-lang.c (d_language_data): Likewise.
7590 * f-lang.c (f_language_data): Likewise.
7591 * go-lang.c (go_language_data): Likewise.
7592 * language.c (unk_lang_value_print): Delete.
7593 (language_defn::value_print): Define new member function.
7594 (unknown_language_data): Delete la_value_print initializer.
7595 (unknown_language::value_print): New member function.
7596 (auto_language_data): Delete la_value_print initializer.
7597 (auto_language::value_print): New member function.
7598 * language.h (language_data): Delete la_value_print field.
7599 (language_defn::value_print): Declare new member function.
7600 (LA_VALUE_PRINT): Update call to value_print.
7601 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7602 * objc-lang.c (objc_language_data): Likewise.
7603 * opencl-lang.c (opencl_language_data): Likewise.
7604 * p-lang.c (pascal_language_data): Likewise.
7605 (pascal_language::value_print): New member function.
7606 * rust-lang.c (rust_language_data): Delete la_value_print
7607 initializer.
7608
7609 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * ada-lang.c (ada_watch_location_expression): Rename to
7612 ada_language::watch_location_expression.
7613 (ada_language_data): Delete la_watch_location_expression
7614 initializer.
7615 (ada_language::watch_location_expression): New member function,
7616 implementation from ada_watch_location_expression.
7617 * breakpoint.c (watch_command_1): Update call to
7618 watch_location_expression.
7619 * c-lang.c (c_watch_location_expression): Rename to
7620 language_defn::watch_location_expression.
7621 (c_language_data): Delete la_watch_location_expression
7622 initializer.
7623 (cplus_language_data): Likewise.
7624 (asm_language_data): Likewise.
7625 (minimal_language_data): Likewise.
7626 * c-lang.h (c_watch_location_expression): Delete declaration.
7627 * d-lang.c (d_language_data): Delete la_watch_location_expression
7628 initializer.
7629 * f-lang.c (f_language_data): Likewise.
7630 * go-lang.c (go_language_data): Likewise.
7631 * language.c (language_defn::watch_location_expression): Member
7632 function implementation from c_watch_location_expression.
7633 (unknown_language_data): Delete la_watch_location_expression
7634 initializer.
7635 (auto_language_data): Likewise.
7636 * language.h (language_data): Delete la_watch_location_expression
7637 field.
7638 (language_defn::watch_location_expression): Declare new member
7639 function.
7640 * m2-lang.c (m2_language_data): Delete
7641 la_watch_location_expression initializer.
7642 * objc-lang.c (objc_language_data): Likewise.
7643 * opencl-lang.c (opencl_language_data): Likewise.
7644 * p-lang.c (pascal_language_data): Likewise.
7645 * rust-lang.c (rust_watch_location_expression): Rename to
7646 rust_language::watch_location_expression.
7647 (rust_language_data): Delete la_watch_location_expression
7648 initializer.
7649 (rust_language::watch_location_expression): New member function,
7650 implementation from rust_watch_location_expression.
7651
7652 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7655 ada_language::collect_symbol_completion_matches.
7656 (ada_language_data): Delete la_collect_symbol_completion_matches
7657 initializer.
7658 (ada_language::collect_symbol_completion_matches): New member
7659 function, implementation from
7660 ada_collect_symbol_completion_matches.
7661 * c-lang.c (c_language_data): Delete
7662 la_collect_symbol_completion_matches initializer.
7663 (cplus_language_data): Likewise.
7664 (asm_language_data): Likewise.
7665 (minimal_language_data): Likewise.
7666 * d-lang.c (d_language_data): Likewise.
7667 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7668 f_language::collect_symbol_completion_matches.
7669 (f_language_data): Delete la_collect_symbol_completion_matches
7670 initializer.
7671 (f_language::collect_symbol_completion_matches) New member
7672 function, implementation from f_collect_symbol_completion_matches.
7673 * go-lang.c (go_language_data): Delete
7674 la_collect_symbol_completion_matches initializer.
7675 * language.c (unknown_language_data): Likewise.
7676 (auto_language_data): Likewise.
7677 * language.h (language_data): Delete
7678 la_collect_symbol_completion_matches field.
7679 (language_defn::collect_symbol_completion_matches): New member
7680 function.
7681 * m2-lang.c (m2_language_data): Delete
7682 la_collect_symbol_completion_matches initializer.
7683 * objc-lang.c (objc_language_data): Likewise.
7684 * opencl-lang.c (opencl_language_data): Likewise.
7685 * p-lang.c (pascal_language_data): Likewise.
7686 * rust-lang.c (rust_language_data): Likewise.
7687 * symtab.c (default_collect_symbol_completion_matches): Delete.
7688 (collect_symbol_completion_matches): Update call to
7689 collect_symbol_completion_matches.
7690 (collect_symbol_completion_matches_type): Likewise.
7691 * symtab.h (default_collect_symbol_completion_matches): Delete
7692 declaration.
7693
7694 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7695
7696 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7697 (ada_language_data): Delete la_word_break_characters initializer.
7698 (ada_language::word_break_characters): New member function.
7699 * c-lang.c (c_language_data): Delete la_word_break_characters
7700 initializer.
7701 (cplus_language_data): Likewise.
7702 (asm_language_data): Likewise.
7703 (minimal_language_data): Likewise.
7704 * completer.c: Update global comment.
7705 (advance_to_expression_complete_word_point): Update call to
7706 word_break_characters.
7707 (complete_files_symbols): Likewise.
7708 (complete_line_internal_1): Likewise.
7709 (default_completer_handle_brkchars): Likewise.
7710 (skip_quoted_chars): Likewise.
7711 * d-lang.c (d_language_data): Delete la_word_break_characters
7712 initializer.
7713 * f-lang.c (f_word_break_characters): Delete.
7714 (f_language_data): Delete la_word_break_characters initializer.
7715 (f_language::word_break_characters): New member function.
7716 * go-lang.c (go_language_data): Delete la_word_break_characters
7717 initializer.
7718 * language.c (unknown_language_data): Likewise.
7719 (auto_language_data): Likewise.
7720 * language.h (default_word_break_characters): Move declaration to
7721 earlier in the file.
7722 (language_data): Delete la_word_break_characters field.
7723 (language_defn::word_break_characters): New member function.
7724 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7725 initializer.
7726 * objc-lang.c (objc_language_data): Likewise.
7727 * opencl-lang.c (opencl_language_data): Likewise.
7728 * p-lang.c (pascal_language_data): Likewise.
7729 * rust-lang.c (rust_language_data): Likewise.
7730
7731 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7734 (ada_language_data): Delete la_get_symbol_name_matcher
7735 initializer.
7736 (language_defn::get_symbol_name_matcher_inner): New member
7737 function.
7738 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7739 initializer.
7740 (cplus_language_data): Likewise.
7741 (cplus_language::get_symbol_name_matcher_inner): New member
7742 function.
7743 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7744 (minimal_language_data): Likewise.
7745 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7746 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7747 initializer.
7748 * dictionary.c (iter_match_first_hashed): Update call to
7749 get_symbol_name_matcher.
7750 (iter_match_next_hashed): Likewise.
7751 (iter_match_next_linear): Likewise.
7752 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7753 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7754 initializer.
7755 (f_language::get_symbol_name_matcher_inner): New member function.
7756 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7757 initializer.
7758 * language.c (default_symbol_name_matcher): Update header comment,
7759 make static.
7760 (language_defn::get_symbol_name_matcher): New definition.
7761 (language_defn::get_symbol_name_matcher_inner): Likewise.
7762 (get_symbol_name_matcher): Delete.
7763 (unknown_language_data): Delete la_get_symbol_name_matcher
7764 initializer.
7765 (auto_language_data): Likewise.
7766 * language.h (language_data): Delete la_get_symbol_name_matcher
7767 field.
7768 (language_defn::get_symbol_name_matcher): New member function.
7769 (language_defn::get_symbol_name_matcher_inner): Likewise.
7770 (default_symbol_name_matcher): Delete declaration.
7771 * linespec.c (find_methods): Update call to
7772 get_symbol_name_matcher.
7773 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7774 initializer.
7775 * minsyms.c (lookup_minimal_symbol): Update call to
7776 get_symbol_name_matcher.
7777 (iterate_over_minimal_symbols): Likewise.
7778 * objc-lang.c (objc_language_data): Delete
7779 la_get_symbol_name_matcher initializer.
7780 * opencl-lang.c (opencl_language_data): Likewise.
7781 * p-lang.c (pascal_language_data): Likewise.
7782 * psymtab.c (psymbol_name_matches): Update call to
7783 get_symbol_name_matcher.
7784 * rust-lang.c (rust_language_data): Delete
7785 la_get_symbol_name_matcher initializer.
7786 * symtab.c (symbol_matches_search_name): Update call to
7787 get_symbol_name_matcher.
7788 (compare_symbol_name): Likewise.
7789
7790 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7791
7792 * ada-lang.c (ada_language_data): Delete la_compute_program
7793 initializer.
7794 * c-lang.c (c_language_data): Likewise.
7795 (c_language::compute_program): New member function.
7796 (cplus_language_data): Delete la_compute_program initializer.
7797 (cplus_language::compute_program): New member function.
7798 (asm_language_data): Delete la_compute_program initializer.
7799 (minimal_language_data): Likewise.
7800 * c-lang.h (c_compute_program): Update comment.
7801 (cplus_compute_program): Likewise.
7802 * compile/compile-c-support.c (c_compute_program): Likewise.
7803 (cplus_compute_program): Likewise.
7804 * compile/compile.c (compile_to_object): Update call to
7805 la_compute_program.
7806 * d-lang.c (d_language_data): Delete la_compute_program
7807 initializer.
7808 * f-lang.c (f_language_data): Likewise.
7809 * go-lang.c (go_language_data): Likewise.
7810 * language.c (unknown_language_data): Likewise.
7811 (auto_language_data): Likewise.
7812 * language.h (language_data): Delete la_compute_program field.
7813 (language_defn::compute_program): New member function.
7814 * m2-lang.c (m2_language_data): Delete la_compute_program
7815 initializer.
7816 * objc-lang.c (objc_language_data): Likewise.
7817 * opencl-lang.c (opencl_language_data): Likewise.
7818 * p-lang.c (pascal_language_data): Likewise.
7819 * rust-lang.c (rust_language_data): Likewise.
7820
7821 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * ada-lang.c (ada_language_data) Delete
7824 la_class_name_from_physname initializer.
7825 * c-lang.c (c_language_data): Likewise.
7826 (cplus_language_data): Likewise.
7827 (cplus_language::class_name_from_physname): New member function.
7828 (asm_language_data): Delete la_class_name_from_physname
7829 initializer.
7830 (minimal_language_data): Likewise.
7831 * d-lang.c (d_language_data): Likewise.
7832 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7833 method on language_defn class.
7834 (guess_full_die_structure_name): Likewise.
7835 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7836 initializer.
7837 * go-lang.c (go_language_data): Likewise.
7838 * language.c (language_class_name_from_physname): Delete.
7839 (unk_lang_class_name): Delete.
7840 (unknown_language_data): Delete la_class_name_from_physname
7841 initializer.
7842 (auto_language_data): Likewise.
7843 * language.h (language_data): Delete la_class_name_from_physname
7844 field.
7845 (language_defn::class_name_from_physname): New function.
7846 (language_class_name_from_physname): Delete declaration.
7847 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7848 initializer.
7849 * objc-lang.c (objc_language_data): Likewise.
7850 * opencl-lang.c (opencl_language_data): Likewise.
7851 * p-lang.c (pascal_language_data): Likewise.
7852 * rust-lang.c (rust_language_data): Likewise.
7853
7854 2020-06-16 Tom Tromey <tom@tromey.com>
7855
7856 * tui/tui-data.h (STATUS_NAME): New macro.
7857 * tui/tui-layout.c (tui_remove_some_windows)
7858 (initialize_known_windows, tui_register_window)
7859 (tui_layout_split::remove_windows, initialize_layouts)
7860 (tui_new_layout_command): Don't use hard-coded window names.
7861
7862 2020-06-16 Tom Tromey <tom@tromey.com>
7863
7864 PR tui/25348:
7865 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7866 tui_initialize_readline. Only run once. Call rl_initialize.
7867 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7868 tui_initialize_readline.
7869 * tui/tui-io.c (tui_setup_io): Call
7870 tui_ensure_readline_initialized.
7871 * tui/tui-interp.c (tui_interp::init): Update.
7872
7873 2020-06-16 Tom Tromey <tom@tromey.com>
7874
7875 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7876 Also preserve the status window.
7877
7878 2020-06-16 Tom Tromey <tom@tromey.com>
7879
7880 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7881 where m_window==nullptr.
7882
7883 2020-06-15 Tom Tromey <tromey@adacore.com>
7884
7885 * windows-nat.c (windows_nat::handle_output_debug_string):
7886 Update.
7887 (windows_nat::handle_ms_vc_exception): Update.
7888 * target.h (target_read_string): Change API.
7889 * target.c (target_read_string): Change API.
7890 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7891 Update.
7892 * solib-frv.c (frv_current_sos): Update.
7893 * solib-dsbt.c (dsbt_current_sos): Update.
7894 * solib-darwin.c (darwin_current_sos): Update.
7895 * linux-thread-db.c (inferior_has_bug): Update.
7896 * expprint.c (print_subexp_standard): Update.
7897 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7898 (ada_exception_message_1): Update.
7899
7900 2020-06-15 Tom Tromey <tromey@adacore.com>
7901
7902 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7903
7904 2020-06-15 Tom Tromey <tromey@adacore.com>
7905
7906 * valprint.c (read_string): Update comment.
7907 * target.c (MIN): Remove.
7908 (target_read_string): Rewrite.
7909
7910 2020-06-15 Tom Tromey <tromey@adacore.com>
7911
7912 * corefile.c (read_memory_string): Remove.
7913 * ada-valprint.c (ada_value_print_ptr): Update.
7914 * ada-lang.h (ada_tag_name): Change return type.
7915 * ada-lang.c (type_from_tag): Update.
7916 (ada_tag_name_from_tsd): Change return type. Use
7917 target_read_string.
7918 (ada_tag_name): Likewise.
7919 * gdbcore.h (read_memory_string): Don't declare.
7920
7921 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7922
7923 * symtab.c (rbreak_command): Ignore Windows drive colon.
7924
7925 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * NEWS: Mention removed GDBserver host support.
7928
7929 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7930
7931 * features/riscv/rebuild-csr-xml.sh: Updated.
7932
7933 2020-06-11 Tom Tromey <tom@tromey.com>
7934
7935 PR gdb/18318:
7936 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7937
7938 2020-06-09 Jonny Grant <jg@jguk.org>
7939 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7940
7941 * main.c (captured_main_1): Don't print new line after help.
7942 (print_gdb_help): add mailing list and IRC channel information
7943 to --help. Add new lines between items in the footer. Remove
7944 quotes around bug url.
7945
7946 2020-06-11 Keith Seitz <keiths@redhat.com>
7947
7948 PR gdb/21356
7949 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7950 Resolve typedefs for type length calculations.
7951
7952 2020-06-10 Tom de Vries <tdevries@suse.de>
7953
7954 PR ada/24713
7955 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7956 (write_psymbols): Enable .gdb_index for ada.
7957 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7958 ada.
7959
7960 2020-06-10 Tom de Vries <tdevries@suse.de>
7961
7962 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7963 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7964 namei" instead of "const char *name" argument.
7965 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7966 dw2_symtab_iter_init.
7967
7968 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7969
7970 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7971 to use type::field and field::type instead.
7972
7973 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7974
7975 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7976 to use field::type instead.
7977
7978 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * gdbtypes.h (struct field) <type, set_type>: New methods.
7981 Rename `type` field to...
7982 <m_type>: ... this. Change references throughout to use type or
7983 set_type methods.
7984 (FIELD_TYPE): Use field::type. Change call sites that modify
7985 the field's type to use field::set_type instead.
7986
7987 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7990 to use type::index_type instead.
7991
7992 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7995 methods.
7996 (TYPE_INDEX_TYPE): Use type::index_type.
7997 * gdbtypes.c (create_array_type_with_stride): Likewise.
7998
7999 2020-06-07 Tom Tromey <tom@tromey.com>
8000
8001 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8002 parameter.
8003 (generic_value_print): Update.
8004
8005 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 Revert commit 982a38f60b0.
8008 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8009
8010 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8013 avoid use after free.
8014
8015 2020-06-05 Tom de Vries <tdevries@suse.de>
8016
8017 * NEWS: Fix typos.
8018
8019 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8020
8021 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8022 the per_bfd object.
8023 (dwarf2_read_debug_names): Likewise.
8024 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8025 object when re-using a per_bfd object with an index.
8026
8027 2020-06-03 Tom de Vries <tdevries@suse.de>
8028
8029 PR symtab/26046
8030 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8031 children for C++.
8032 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8033 DW_TAG_subprogram.
8034
8035 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * ada-lang.c (ada_language_data): Delete skip_trampoline
8038 initializer.
8039 * c-lang.c (c_language_data): Likewise.
8040 (cplus_language_data): Likewise.
8041 (cplus_language::skip_trampoline): New member function.
8042 (asm_language_data): Delete skip_trampoline initializer.
8043 (minimal_language_data): Likewise.
8044 * d-lang.c (d_language_data): Likewise.
8045 * f-lang.c (f_language_data): Likewise.
8046 * go-lang.c (go_language_data): Likewise.
8047 * language.c (unk_lang_trampoline): Delete function.
8048 (skip_language_trampoline): Update.
8049 (unknown_language_data): Delete skip_trampoline initializer.
8050 (auto_language_data): Likewise.
8051 * language.h (language_data): Delete skip_trampoline field.
8052 (language_defn::skip_trampoline): New function.
8053 * m2-lang.c (m2_language_data): Delete skip_trampoline
8054 initializer.
8055 * objc-lang.c (objc_skip_trampoline): Delete function, move
8056 implementation to objc_language::skip_trampoline.
8057 (objc_language_data): Delete skip_trampoline initializer.
8058 (objc_language::skip_trampoline): New member function with
8059 implementation from objc_skip_trampoline.
8060 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8061 initializer.
8062 * p-lang.c (pascal_language_data): Likewise.
8063 * rust-lang.c (rust_language_data): Likewise.
8064
8065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8066
8067 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8068 (ada_language::demangle): New member function.
8069 * c-lang.c (c_language_data): Delete la_demangle initializer.
8070 (cplus_language_data): Delete la_demangle initializer.
8071 (cplus_language::demangle): New member function.
8072 (asm_language_data): Delete la_demangle initializer.
8073 (minimal_language_data): Delete la_demangle initializer.
8074 * d-lang.c (d_language_data): Delete la_demangle initializer.
8075 (d_language::demangle): New member function.
8076 * f-lang.c (f_language_data): Delete la_demangle initializer.
8077 (f_language::demangle): New member function.
8078 * go-lang.c (go_language_data): Delete la_demangle initializer.
8079 (go_language::demangle): New member function.
8080 * language.c (language_demangle): Update.
8081 (unk_lang_demangle): Delete.
8082 (unknown_language_data): Delete la_demangle initializer.
8083 (unknown_language::demangle): New member function.
8084 (auto_language_data): Delete la_demangle initializer.
8085 (auto_language::demangle): New member function.
8086 * language.h (language_data): Delete la_demangle field.
8087 (language_defn::demangle): New function.
8088 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8089 * objc-lang.c (objc_language_data): Delete la_demangle
8090 initializer.
8091 (objc_language::demangle): New member function.
8092 * opencl-lang.c (opencl_language_data): Delete la_demangle
8093 initializer.
8094 * p-lang.c (pascal_language_data): Likewise.
8095 * rust-lang.c (rust_language_data): Likewise.
8096 (rust_language::demangle): New member function.
8097
8098 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * ada-lang.c (ada_language_data): Delete la_print_type
8101 initializer.
8102 (ada_language::print_type): New member function.
8103 * c-lang.c (c_language_data): Delete la_print_type initializer.
8104 (c_language::print_type): New member function.
8105 (cplus_language_data): Delete la_print_type initializer.
8106 (cplus_language::print_type): New member function.
8107 (asm_language_data): Delete la_print_type initializer.
8108 (asm_language::print_type): New member function.
8109 (minimal_language_data): Delete la_print_type initializer.
8110 (minimal_language::print_type): New member function.
8111 * d-lang.c (d_language_data): Delete la_print_type initializer.
8112 (d_language::print_type): New member function.
8113 * f-lang.c (f_language_data): Delete la_print_type initializer.
8114 (f_language::print_type): New member function.
8115 * go-lang.c (go_language_data): Delete la_print_type initializer.
8116 (go_language::print_type): New member function.
8117 * language.c (unk_lang_print_type): Delete.
8118 (unknown_language_data): Delete la_print_type initializer.
8119 (unknown_language::print_type): New member function.
8120 (auto_language_data): Delete la_print_type initializer.
8121 (auto_language::print_type): New member function.
8122 * language.h (language_data): Delete la_print_type field.
8123 (language_defn::print_type): New function.
8124 (LA_PRINT_TYPE): Update.
8125 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8126 (m2_language::print_type): New member function.
8127 * objc-lang.c (objc_language_data): Delete la_print_type
8128 initializer.
8129 (objc_language::print_type): New member function.
8130 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8131 to opencl_language::print_type.
8132 (opencl_language_data): Delete la_print_type initializer.
8133 (opencl_language::print_type): New member function, implementation
8134 from opencl_print_type.
8135 * p-lang.c (pascal_language_data): Delete la_print_type
8136 initializer.
8137 (pascal_language::print_type): New member function.
8138 * rust-lang.c (rust_print_type): Delete, implementation moved to
8139 rust_language::print_type.
8140 (rust_language_data): Delete la_print_type initializer.
8141 (rust_language::print_type): New member function, implementation
8142 from rust_print_type.
8143
8144 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8147 implementation moves to...
8148 (ada_language::sniff_from_mangled_name): ...here. Update return
8149 type.
8150 (ada_language_data): Delete la_sniff_from_mangled_name
8151 initializer.
8152 * c-lang.c (c_language_data): Likewise.
8153 (cplus_language_data): Likewise.
8154 (cplus_language::sniff_from_mangled_name): New member function,
8155 implementation taken from gdb_sniff_from_mangled_name.
8156 (asm_language_data): Delete la_sniff_from_mangled_name
8157 initializer.
8158 (minimal_language_data): Likewise.
8159 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8160 implementation moves to cplus_language::sniff_from_mangled_name.
8161 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8162 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8163 moves to...
8164 (d_language::sniff_from_mangled_name): ...here.
8165 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8166 * f-lang.c (f_language_data): Likewise.
8167 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8168 moves to...
8169 (go_language::sniff_from_mangled_name): ...here.
8170 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8171 * language.c (language_sniff_from_mangled_name): Delete.
8172 (unknown_language_data): Delete la_sniff_from_mangled_name
8173 initializer.
8174 (auto_language_data): Likewise.
8175 * language.h (language_data): Delete la_sniff_from_mangled_name
8176 field.
8177 (language_defn::sniff_from_mangled_name): New function.
8178 (language_sniff_from_mangled_name): Delete declaration.
8179 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8180 field.
8181 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8182 implementation moves to...
8183 (objc_language::sniff_from_mangled_name): ...here.
8184 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8185 * opencl-lang.c (opencl_language_data): Likewise.
8186 * p-lang.c (pascal_language_data): Likewise.
8187 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8188 implementation moves to...
8189 (rust_language::sniff_from_mangled_name): ...here.
8190 (rust_language_data): Delete la_sniff_from_mangled_name
8191 initializer.
8192 * symtab.c (symbol_find_demangled_name): Call
8193 sniff_from_mangled_name member function.
8194
8195 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8198 initializer.
8199 * c-lang.c (c_language_data): Likewise.
8200 (cplus_language_data): Likewise.
8201 (cplus_language::search_name_hash): New member function.
8202 (asm_language_data): Delete la_search_name_hash initializer.
8203 (minimal_language_data): Likewise.
8204 * d-lang.c (d_language_data): Likewise.
8205 * dictionary.c (default_search_name_hash): Rename to...
8206 (language_defn::search_name_hash): ...this.
8207 * f-lang.c (f_language_data): Likewise.
8208 (f_language::search_name_hash): New member function.
8209 * go-lang.c (go_language_data): Delete la_search_name_hash
8210 initializer.
8211 * language.c (unknown_language_data): Likewise.
8212 (auto_language_data): Likewise.
8213 * language.h (struct language_data): Delete la_search_name_hash
8214 field.
8215 (language_defn::search_name_hash): Declare new member function.
8216 (default_search_name_hash): Delete declaration.
8217 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8218 initializer.
8219 * objc-lang.c (objc_language_data): Likewise.
8220 * opencl-lang.c (opencl_language_data): Likewise.
8221 * p-lang.c (pascal_language_data): Likewise.
8222 * rust-lang.c (rust_language_data): Likewise.
8223 * symtab.c (search_name_hash): Update call.
8224
8225 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8226
8227 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8228 initializer.
8229 * c-lang.c (class compile_instance): Declare.
8230 (c_language_data): Delete la_get_compile_instance initializer.
8231 (c_language::get_compile_instance): New member function.
8232 (cplus_language_data): Delete la_get_compile_instance initializer.
8233 (cplus_language::get_compile_instance): New member function.
8234 (asm_language_data): Delete la_get_compile_instance initializer.
8235 (minimal_language_data): Likewise.
8236 * c-lang.h (c_get_compile_context): Update comment.
8237 (cplus_get_compile_context): Update comment.
8238 * compile/compile.c (compile_to_object): Update calls, don't rely
8239 on function pointer being NULL.
8240 * d-lang.c (d_language_data): Delete la_get_compile_instance
8241 initializer.
8242 * f-lang.c (f_language_data): Likewise.
8243 * go-lang.c (go_language_data): Likewise.
8244 * language.c (unknown_language_data): Likewise.
8245 (auto_language_data): Likewise.
8246 * language.h (language_data): Delete la_get_compile_instance field.
8247 (language_defn::get_compile_instance): New member function.
8248 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8249 initializer.
8250 * objc-lang.c (objc_language_data): Likewise.
8251 * opencl-lang.c (opencl_language_data): Likewise.
8252 * p-lang.c (pascal_language_data): Likewise.
8253 * rust-lang.c (rust_language_data): Likewise.
8254
8255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * ada-lang.c (ada_add_all_symbols): Update comment.
8258 (ada_iterate_over_symbols): Delete, move implementation to...
8259 (ada_language::iterate_over_symbols): ...here, a new member
8260 function, rewrite to use range based for loop.
8261 (ada_language_data): Delete la_iterate_over_symbols initializer.
8262 * c-lang.c (c_language_data): Likewise.
8263 (cplus_language_data): Likewise.
8264 (asm_language_data): Likewise.
8265 (minimal_language_data): Likewise.
8266 * d-lang.c (d_language_data): Likewise.
8267 * f-lang.c (f_language_data): Likewise.
8268 * go-lang.c (go_language_data): Likewise.
8269 * language.c (unknown_language_data): Likewise.
8270 (auto_language_data): Likewise.
8271 * language.h (language_data): Delete la_iterate_over_symbols field.
8272 (language_defn::iterate_over_symbols): New member function.
8273 (LA_ITERATE_OVER_SYMBOLS): Update.
8274 * linespec.c (iterate_over_all_matching_symtabs): Update.
8275 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8276 initializer.
8277 * objc-lang.c (objc_language_data): Likewise.
8278 * opencl-lang.c (opencl_language_data): Likewise.
8279 * p-lang.c (pascal_language_data): Likewise.
8280 * rust-lang.c (rust_language_data): Likewise.
8281
8282 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8283
8284 * ada-lang.c (ada_language_data): Delete
8285 la_lookup_transparent_type initializer.
8286 * c-lang.c (c_language_data): Likewise.
8287 (cplus_language_data): Likewise.
8288 (cplus_language::lookup_transparent_type): New member function.
8289 (asm_language_data): Delete la_lookup_transparent_type
8290 initializer.
8291 (minimal_language_data): Likewise.
8292 * d-lang.c (d_language_data): Likewise.
8293 * f-lang.c (f_language_data): Likewise.
8294 * go-lang.c (go_language_data): Likewise.
8295 * language.c (unknown_language_data): Likewise.
8296 (auto_language_data): Likewise.
8297 * language.h (struct language_data): Delete
8298 la_lookup_transparent_type field.
8299 (language_defn::lookup_transparent_type): New member function.
8300 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8301 initializer.
8302 * objc-lang.c (objc_language_data): Likewise.
8303 * opencl-lang.c (opencl_language_data): Likewise.
8304 * p-lang.c (pascal_language_data): Likewise.
8305 * rust-lang.c (rust_language_data): Likewise.
8306 * symtab.c (symbol_matches_domain): Update call.
8307
8308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8309
8310 * ada-lang.c (ada_language_arch_info): Delete function, move
8311 implementation to...
8312 (ada_language::language_arch_info): ...here, a new member
8313 function.
8314 (ada_language_data): Delete la_language_arch_info.
8315 * c-lang.c (c_language_data): Likewise.
8316 (c_language::language_arch_info): New member function.
8317 (cplus_language_arch_info): Delete function, move
8318 implementation to...
8319 (cplus_language::language_arch_info): ...here, a new member
8320 function.
8321 (cplus_language_data): Delete la_language_arch_info.
8322 (asm_language_data): Likewise.
8323 (asm_language::language_arch_info): New member function.
8324 (minimal_language_data): Delete la_language_arch_info.
8325 (minimal_language::language_arch_info): New member function.
8326 * d-lang.c (d_language_arch_info): Delete function, move
8327 implementation to...
8328 (d_language::language_arch_info): ...here, a new member
8329 function.
8330 (d_language_data): Delete la_language_arch_info.
8331 * f-lang.c (f_language_arch_info): Delete function, move
8332 implementation to...
8333 (f_language::language_arch_info): ...here, a new member
8334 function.
8335 (f_language_data): Delete la_language_arch_info.
8336 * go-lang.c (go_language_arch_info): Delete function, move
8337 implementation to...
8338 (go_language::language_arch_info): ...here, a new member
8339 function.
8340 (go_language_data): Delete la_language_arch_info.
8341 * language.c (unknown_language_data): Likewise.
8342 (unknown_language::language_arch_info): New member function.
8343 (auto_language_data): Delete la_language_arch_info.
8344 (auto_language::language_arch_info): New member function.
8345 (language_gdbarch_post_init): Update call to
8346 la_language_arch_info.
8347 * language.h (language_data): Delete la_language_arch_info
8348 function pointer.
8349 (language_defn::language_arch_info): New function.
8350 * m2-lang.c (m2_language_arch_info): Delete function, move
8351 implementation to...
8352 (m2_language::language_arch_info): ...here, a new member
8353 function.
8354 (m2_language_data): Delete la_language_arch_info.
8355 * objc-lang.c (objc_language_arch_info): Delete function, move
8356 implementation to...
8357 (objc_language::language_arch_info): ...here, a new member
8358 function.
8359 (objc_language_data): Delete la_language_arch_info.
8360 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8361 implementation to...
8362 (opencl_language::language_arch_info): ...here, a new member
8363 function.
8364 (opencl_language_data): Delete la_language_arch_info.
8365 * p-lang.c (pascal_language_arch_info): Delete function, move
8366 implementation to...
8367 (pascal_language::language_arch_info): ...here, a new member
8368 function.
8369 (pascal_language_data): Delete la_language_arch_info.
8370 * rust-lang.c (rust_language_arch_info): Delete function, move
8371 implementation to...
8372 (rust_language::language_arch_info): ...here, a new member
8373 function.
8374 (rust_language_data): Delete la_language_arch_info.
8375
8376 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8379 initializer.
8380 * c-lang.c (c_language_data): Likewise.
8381 (cplus_language_data): Likewise.
8382 (cplus_language::pass_by_reference_info): New method.
8383 (asm_language_data): Delete la_pass_by_reference initializer.
8384 (minimal_language_data): Likewise.
8385 * cp-abi.c (cp_pass_by_reference): Remove use of
8386 default_pass_by_reference.
8387 * d-lang.c (d_language_data): Likewise.
8388 * f-lang.c (f_language_data): Likewise.
8389 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8390 default_pass_by_reference.
8391 * go-lang.c (go_language_data): Likewise.
8392 * language.c (language_pass_by_reference): Update.
8393 (default_pass_by_reference): Delete.
8394 (unknown_language_data): Delete la_pass_by_reference
8395 initializer.
8396 (auto_language_data): Likewise.
8397 * language.h (struct language_data): Delete la_pass_by_reference
8398 field.
8399 (language_defn::pass_by_reference_info): New member function.
8400 (default_pass_by_reference): Delete declaration.
8401 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8402 initializer.
8403 * objc-lang.c (objc_language_data): Likewise.
8404 * opencl-lang.c (opencl_language_data): Likewise.
8405 * p-lang.c (pascal_language_data): Likewise.
8406 * rust-lang.c (rust_language_data): Likewise.
8407
8408 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * ada-lang.c (ada_read_var_value): Delete function, move
8411 implementation to...
8412 (ada_language::read_var_value): ...here.
8413 (ada_language_data): Delete la_read_var_value initializer.
8414 * c-lang.c (c_language_data): Likewise.
8415 (cplus_language_data): Likewise.
8416 (minimal_language_data): Likewise.
8417 * d-lang.c (d_language_data): Likewise.
8418 * f-lang.c (f_language_data): Likewise.
8419 * findvar.c (default_read_var_value): Rename to...
8420 (language_defn::read_var_value): ...this.
8421 * findvar.c (read_var_value): Update header comment, and change to
8422 call member function instead of function pointer.
8423 * go-lang.c (go_language_data): Likewise.
8424 * language.c (unknown_language_data): Delete la_read_var_value
8425 initializer.
8426 (auto_language_data): Likewise.
8427 * language.h (struct language_data): Delete la_read_var_value
8428 field.
8429 (language_defn::read_var_value): New member function.
8430 (default_read_var_value): Delete declaration.
8431 * m2-lang.c (m2_language_data): Delete la_read_var_value
8432 initializer.
8433 * objc-lang.c (objc_language_data): Likewise.
8434 * opencl-lang.c (opencl_language_data): Likewise.
8435 * p-lang.c (pascal_language_data): Likewise.
8436 * rust-lang.c (rust_language_data): Likewise.
8437 * value.h (default_read_var_value): Delete declaration.
8438
8439 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8440
8441 * ada-lang.c (ada_print_array_index): Delete function, move
8442 implementation to...
8443 (ada_language::print_array_index): ...here.
8444 (ada_language_data): Delete la_print_array_index initializer.
8445 * c-lang.c (c_language_data): Likewise.
8446 (cplus_language_data): Likewise.
8447 (minimal_language_data): Likewise.
8448 * d-lang.c (d_language_data): Likewise.
8449 * f-lang.c (f_language_data): Likewise.
8450 * go-lang.c (go_language_data): Likewise.
8451 * language.c (default_print_array_index): Delete function, move
8452 implementation to...
8453 (language_defn::print_array_index): ...here.
8454 (unknown_language_data): Delete la_print_array_index initializer.
8455 (auto_language_data): Likewise.
8456 * language.h (struct language_data): Delete la_print_array_index
8457 field.
8458 (language_defn::print_array_index): New member function.
8459 (LA_PRINT_ARRAY_INDEX): Update.
8460 (default_print_array_index): Delete declaration.
8461 * m2-lang.c (m2_language_data): Delete la_print_array_index
8462 initializer.
8463 * objc-lang.c (objc_language_data): Likewise.
8464 * opencl-lang.c (opencl_language_data): Likewise.
8465 * p-lang.c (pascal_language_data): Likewise.
8466 * rust-lang.c (rust_language_data): Likewise.
8467
8468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8469
8470 * gdb/ada-lang.c (ada_language_defn): Convert to...
8471 (ada_language_data): ...this.
8472 (class ada_language): New class.
8473 (ada_language_defn): New static global.
8474 * gdb/c-lang.c (c_language_defn): Convert to...
8475 (c_language_data): ...this.
8476 (class c_language): New class.
8477 (c_language_defn): New static global.
8478 (cplus_language_defn): Convert to...
8479 (cplus_language_data): ...this.
8480 (class cplus_language): New class.
8481 (cplus_language_defn): New static global.
8482 (asm_language_defn): Convert to...
8483 (asm_language_data): ...this.
8484 (class asm_language): New class.
8485 (asm_language_defn): New static global.
8486 (minimal_language_defn): Convert to...
8487 (minimal_language_data): ...this.
8488 (class minimal_language): New class.
8489 (minimal_language_defn): New static global.
8490 * gdb/d-lang.c (d_language_defn): Convert to...
8491 (d_language_data): ...this.
8492 (class d_language): New class.
8493 (d_language_defn): New static global.
8494 * gdb/f-lang.c (f_language_defn): Convert to...
8495 (f_language_data): ...this.
8496 (class f_language): New class.
8497 (f_language_defn): New static global.
8498 * gdb/go-lang.c (go_language_defn): Convert to...
8499 (go_language_data): ...this.
8500 (class go_language): New class.
8501 (go_language_defn): New static global.
8502 * gdb/language.c (unknown_language_defn): Remove declaration.
8503 (current_language): Initialize to nullptr, real initialization is
8504 moved to _initialize_language.
8505 (languages): Delete global.
8506 (language_defn::languages): Define.
8507 (set_language_command): Use language_defn::languages.
8508 (set_language): Likewise.
8509 (range_error): Likewise.
8510 (language_enum): Likewise.
8511 (language_def): Likewise.
8512 (add_set_language_command): Use language_def::languages for the
8513 language list, and language_def to lookup language pointers.
8514 (skip_language_trampoline): Use language_defn::languages.
8515 (unknown_language_defn): Convert to...
8516 (unknown_language_data): ...this.
8517 (class unknown_language): New class.
8518 (unknown_language_defn): New static global.
8519 (auto_language_defn): Convert to...
8520 (auto_language_data): ...this.
8521 (class auto_language): New class.
8522 (auto_language_defn): New static global.
8523 (language_gdbarch_post_init): Use language_defn::languages.
8524 (_initialize_language): Initialize current_language.
8525 * gdb/language.h (struct language_defn): Rename to...
8526 (struct language_data): ...this.
8527 (struct language_defn): New.
8528 (auto_language_defn): Delete.
8529 (unknown_language_defn): Delete.
8530 (minimal_language_defn): Delete.
8531 (ada_language_defn): Delete.
8532 (asm_language_defn): Delete.
8533 (c_language_defn): Delete.
8534 (cplus_language_defn): Delete.
8535 (d_language_defn): Delete.
8536 (f_language_defn): Delete.
8537 (go_language_defn): Delete.
8538 (m2_language_defn): Delete.
8539 (objc_language_defn): Delete.
8540 (opencl_language_defn): Delete.
8541 (pascal_language_defn): Delete.
8542 (rust_language_defn): Delete.
8543 * gdb/m2-lang.c (m2_language_defn): Convert to...
8544 (m2_language_data): ...this.
8545 (class m2_language): New class.
8546 (m2_language_defn): New static global.
8547 * gdb/objc-lang.c (objc_language_defn): Convert to...
8548 (objc_language_data): ...this.
8549 (class objc_language): New class.
8550 (objc_language_defn): New static global.
8551 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8552 (opencl_language_data): ...this.
8553 (class opencl_language): New class.
8554 (opencl_language_defn): New static global.
8555 * gdb/p-lang.c (pascal_language_defn): Convert to...
8556 (pascal_language_data): ...this.
8557 (class pascal_language): New class.
8558 (pascal_language_defn): New static global.
8559 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8560 language pointer, update comment format.
8561 * gdb/rust-lang.c (rust_language_defn): Convert to...
8562 (rust_language_data): ...this.
8563 (class rust_language): New class.
8564 (rust_language_defn): New static global.
8565
8566 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8569 member variable.
8570 <m_stmt_at_address>: New member variable.
8571 (lnp_state_machine::record_line): Don't record some lines, update
8572 tracking of is_stmt at the same address.
8573 (lnp_state_machine::lnp_state_machine): Initialise new member
8574 variables.
8575
8576 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8577
8578 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8579 "-include gnu-nat-mig.h".
8580 * gnu-nat-mig.h: New file.
8581 * gnu-nat.c: Include "gnu-nat-mig.h".
8582 (exc_server, msg_reply_server, notify_server,
8583 process_reply_server): Remove declarations.
8584
8585 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8586
8587 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8588 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8589 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8590 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8591 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8592 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8593 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8594 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8595 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8596 to gnu_nat_target class.
8597 * gnu-nat.c: Likewise.
8598 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8599 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8600 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8601 object.
8602 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8603 instead of `gnu_target'.
8604
8605 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8606
8607 * i386-gnu-tdep.c: Include "gdbcore.h"
8608 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8609 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8610 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8611 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8612 i386_gnu_sigcontext_addr): New functions
8613 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8614 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8615 tdep.
8616
8617 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8618
8619 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8620 before fork_inferior call. Avoid calling it if target_is_pushed returns
8621 true.
8622
8623 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8624
8625 * gnu-nat.h (gnu_target): New variable declaration.
8626 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8627 gnu_target.
8628 * gnu-nat.c (gnu_target): New variable.
8629 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8630 add_thread_silent, and add_thread calls.
8631 (gnu_nat_target::create_inferior): Pass gnu_target to
8632 add_thread_silent, thread_change_ptid call.
8633 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8634 call.
8635
8636 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8637
8638 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8639 (gnu_nat_target::find_memory_regions): Remove unused
8640 `old_address' variable.
8641
8642 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8643
8644 * gnu-nat.c: Include "gdbarch.h".
8645
8646 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8647
8648 * reply_mig_hack.awk (Error return): Cast function through
8649 void *, to bypass compiler function call check.
8650
8651 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8652
8653 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8654 $(srcdir)/reply_mig_hack.awk.
8655
8656 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8657
8658 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8659
8660 2020-05-30 Jonny Grant <jg@jguk.org>
8661
8662 * configure.ac (ACX_BUGURL): change bug URL to https.
8663
8664 2020-05-30 Pedro Alves <palves@redhat.com>
8665
8666 * cp-support.c (replace_typedefs_template): New.
8667 (replace_typedefs_qualified_name): Handle
8668 DEMANGLE_COMPONENT_TEMPLATE.
8669
8670 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8673 dwarf2/index-cache.h, dwarf2/index-write.c,
8674 dwarf2/index-write.h, dwarf2/line-header.c,
8675 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8676 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8677 variables and fields from `dwarf2_per_objfile` to just
8678 `per_objfile` throughout.
8679
8680 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8681
8682 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8683 <push_dwarf_reg_entry_value>: Add comment.
8684
8685 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8686 Keith Seitz <keiths@redhat.com>
8687
8688 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8689 instead of PyEval_ReleaseLock.
8690 (class gdbpy_gil): Move to earlier in file.
8691 (finalize_python): Set gdb_python_initialized.
8692 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8693 when not initialized.
8694
8695 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8698 <push_dwarf_reg_entry_value>: Remove assert. Override
8699 per_objfile with caller_per_objfile.
8700
8701 2020-05-28 Tom de Vries <tdevries@suse.de>
8702
8703 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8704 PR gold/15646 workaround to symbol kind "type".
8705
8706 2020-05-27 Tom Tromey <tromey@adacore.com>
8707
8708 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8709
8710 2020-05-27 Tom Tromey <tromey@adacore.com>
8711
8712 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8713 Use htab_find_with_hash.
8714 <add_abbrev>: Remove "abbrev_number" parameter.
8715 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8716 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8717 (hash_abbrev): Add comment.
8718 (abbrev_table::lookup_abbrev): Move to header file.
8719 (abbrev_table::read): Update.
8720
8721 2020-05-27 Tom Tromey <tromey@adacore.com>
8722
8723 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8724 method.
8725 <canonical_name>: New member.
8726 <raw_name>: Rename from "name".
8727 (partial_die_info): Initialize canonical_name.
8728 (scan_partial_symbols): Check raw_name.
8729 (partial_die_parent_scope, partial_die_full_name)
8730 (add_partial_symbol, add_partial_subprogram)
8731 (add_partial_enumeration, load_partial_dies): Use "name" method.
8732 (partial_die_info::name): New method.
8733 (partial_die_info::read, guess_partial_die_structure_name)
8734 (partial_die_info::fixup): Update.
8735
8736 2020-05-27 Tom Tromey <tromey@adacore.com>
8737
8738 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8739 <get_ref_die_offset>: Inline.
8740 <get_ref_die_offset_complaint>: New method.
8741 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8742 (attribute::get_ref_die_offset_complaint): Rename from
8743 get_ref_die_offset. Just issue complaint.
8744
8745 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8746
8747 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8748
8749 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8750
8751 * exec.c (exec_file_attach): Use errno value of first openp failure.
8752
8753 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8754
8755 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8756 Don't close thread handle.
8757
8758 2020-05-27 Tom Tromey <tom@tromey.com>
8759 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8762 shared_ptr.
8763 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8764 member.
8765 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8766 dwarf2_per_bfd_objfile_data_key>: New globals.
8767 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8768 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8769 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8770 shared.
8771 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8772 short-circuit when sharing.
8773 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8774 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8775
8776 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8779 to...
8780 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8781 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8782
8783 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8786 build_name_components, find_name_components_bounds>:
8787 Add per_objfile parameter.
8788 (struct mapped_index) <symbol_name_at>: Likewise.
8789 (struct mapped_debug_names): Remove constructor.
8790 <dwarf2_per_objfile>: Remove field.
8791 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8792 (mapped_index_base::find_name_components_bounds,
8793 mapped_index_base::build_name_components,
8794 dw2_expand_symtabs_matching_symbol): Likewise.
8795 (class mock_mapped_index) <symbol_name_at>: Likewise.
8796 (check_match): Likewise.
8797 (check_find_bounds_finds): Likewise.
8798 (test_mapped_index_find_name_component_bounds): Update.
8799 (CHECK_MATCH): Update.
8800 (dw2_expand_symtabs_matching): Update.
8801 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8802 per_objfile parameter.
8803 <find_vec_in_debug_names>: Likewise.
8804 <m_per_objfile>: New field.
8805 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8806 parameter.
8807 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8808 (dw2_debug_names_iterator::next): Update.
8809 (dw2_debug_names_lookup_symbol): Update.
8810 (dw2_debug_names_expand_symtabs_for_function): Update.
8811 (dw2_debug_names_map_matching_symbols): Update.
8812 (dw2_debug_names_expand_symtabs_matching): Update.
8813 (dwarf2_read_debug_names): Update.
8814
8815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8818 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8819 move to dwarf2_per_objfile.
8820 <read_in_chain>: Remove.
8821 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8822 remove_all_cus, age_comp_units>: New methods.
8823 <m_dwarf2_cus>: New member.
8824 (struct dwarf2_per_cu_data) <cu>: Remove.
8825 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8826 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8827 moved to methods of dwarf2_per_objfile.
8828 (dwarf2_clear_marks): Remove.
8829 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8830 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8831 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8832 (dwarf2_per_objfile::remove_all_cus): New.
8833 (class free_cached_comp_units) <~free_cached_comp_units>:
8834 Update.
8835 (load_cu): Update.
8836 (dw2_do_instantiate_symtab): Adjust.
8837 (fill_in_sig_entry_from_dwo_entry): Adjust.
8838 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8839 (cutu_reader::cutu_reader): Likewise.
8840 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8841 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8842 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8843 and dwarf2_per_objfile::age_comp_units.
8844 (load_partial_comp_unit): Update.
8845 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8846 (process_queue): Likewise.
8847 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8848 backlink.
8849 (dwarf2_read_addr_index): Likewise.
8850 (follow_die_offset): Likewise.
8851 (dwarf2_fetch_die_loc_sect_off): Likewise.
8852 (dwarf2_fetch_constant_bytes): Likewise.
8853 (dwarf2_fetch_die_type_sect_off): Likewise.
8854 (follow_die_sig_1): Likewise.
8855 (load_full_type_unit): Likewise.
8856 (read_signatured_type): Likewise.
8857 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8858 (dwarf2_cu::~dwarf2_cu): Remove.
8859 (dwarf2_per_objfile::get_cu): New.
8860 (dwarf2_per_objfile::set_cu): New.
8861 (age_cached_comp_units): Rename to...
8862 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8863 to std::unordered_map.
8864 (free_one_cached_comp_unit): Rename to...
8865 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8866 to std::unordered_map.
8867 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8868 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8869 a dwarf2_per_objfile in data.
8870 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8871 (dwarf2_clear_marks): Remove.
8872
8873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8876 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8877 (init_tu_and_read_dwo_dies): Likewise.
8878 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8879 (cutu_reader::cutu_reader): Likewise.
8880 (load_partial_comp_unit): Likewise.
8881 (process_psymtab_comp_unit): Update.
8882 (build_type_psymtabs_1): Update.
8883 (process_skeletonless_type_unit): Update.
8884 (load_full_comp_unit): Update.
8885 (find_partial_die): Update.
8886 (dwarf2_read_addr_index): Update.
8887 (read_signatured_type): Update.
8888
8889 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8890
8891 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8892 m_header_read_in>: New fields.
8893 <get_header>: New method.
8894 * dwarf2/read.c (per_cu_header_read_in): Remove.
8895 (dwarf2_per_cu_data::get_header): New.
8896 (dwarf2_per_cu_data::addr_size): Update.
8897 (dwarf2_per_cu_data::offset_size): Update.
8898 (dwarf2_per_cu_data::ref_addr_size): Update.
8899
8900 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8901
8902 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8903 (dw2_do_instantiate_symtab): Update.
8904 (queue_and_load_all_dwo_tus): Change parameter from
8905 dwarf2_per_cu_data to dwarf2_cu.
8906 (dwarf2_fetch_die_loc_sect_off): Update.
8907 (dwarf2_fetch_constant_bytes): Update.
8908 (dwarf2_fetch_die_type_sect_off): Update.
8909
8910 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8911
8912 * dwarf2/read.c (process_full_comp_unit,
8913 process_full_type_unit): Remove per_cu, per_objfile paramters.
8914 Add dwarf2_cu parameter.
8915 (process_queue): Update.
8916
8917 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8918
8919 * dwarf2/read.c (create_cu_from_index_list): Replace
8920 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8921 (create_cus_from_index_list): Likewise.
8922 (create_cus_from_index): Likewise.
8923 (create_signatured_type_table_from_index): Likewise.
8924 (create_cus_from_debug_names_list): Likewise.
8925 (create_cus_from_debug_names): Likewise.
8926 (dwarf2_read_gdb_index): Update.
8927 (dwarf2_read_debug_names): Update.
8928
8929 2020-05-27 Tom Tromey <tom@tromey.com>
8930 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * dwarf2/read.h (struct dwarf2_per_objfile)
8933 <get_type_for_signatured_type, set_type_for_signatured_type>:
8934 New methods.
8935 <m_type_map>: New member.
8936 (struct signatured_type) <type>: Remove.
8937 * dwarf2/read.c
8938 (dwarf2_per_objfile::get_type_for_signatured_type,
8939 dwarf2_per_objfile::set_type_for_signatured_type): New.
8940 (get_signatured_type): Use new methods.
8941
8942 2020-05-27 Tom Tromey <tom@tromey.com>
8943 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8946 (struct dwarf2_per_objfile) <type_units>: New member.
8947 <get_type_unit_group_unshareable>: New method.
8948 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8949 num_symtabs, symtabs>: Remove; move to
8950 type_unit_group_unshareable.
8951 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8952 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8953 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8954
8955 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8956
8957 * dwarf2/read.h (struct dwarf2_per_cu_data):
8958 <dwarf2_per_objfile>: Remove.
8959 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8960 dwarf2_per_objfile.
8961 (create_signatured_type_table_from_index): Likewise.
8962 (create_signatured_type_table_from_debug_names): Likewise.
8963 (create_debug_type_hash_table): Likewise.
8964 (fill_in_sig_entry_from_dwo_entry): Likewise.
8965 (create_type_unit_group): Likewise.
8966 (read_comp_units_from_section): Likewise.
8967 (create_cus_hash_table): Likewise.
8968
8969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8972 dwarf2_per_cu_data::dwarf2_per_objfile.
8973 (compute_compunit_symtab_includes): Likewise.
8974 (dwarf2_cu::start_symtab): Likewise.
8975
8976 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8977
8978 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8979 parameter.
8980 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8981 (read_namespace_alias): Update.
8982 (lookup_die_type): Update.
8983 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8984 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8985 Update.
8986 (disassemble_dwarf_expression): Update.
8987
8988 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8989
8990 * dwarf2/read.h (struct dwarf2_queue_item): Add
8991 dwarf2_per_objfile parameter, assign new parameter.
8992 <per_objfile>: New field.
8993 * dwarf2/read.c (free_one_cached_comp_unit): Add
8994 dwarf2_per_objfile parameter.
8995 (queue_comp_unit): Likewise.
8996 (dw2_do_instantiate_symtab): Update.
8997 (process_psymtab_comp_unit): Update.
8998 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8999 (process_imported_unit_die): Update.
9000 (queue_and_load_dwo_tu): Update.
9001 (follow_die_offset): Update.
9002 (follow_die_sig_1): Update.
9003
9004 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9007 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9008 (read_call_site_scope): Assign per_objfile.
9009 (dwarf2_per_cu_data::objfile): Remove.
9010 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9011 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9012 dwarf2_per_objfile parameter.
9013 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9014 dwarf2_per_objfile parameter.
9015 (dwarf_expr_reg_to_entry_parameter): Add output
9016 dwarf2_per_objfile parameter.
9017 (locexpr_get_frame_base): Update.
9018 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9019 <push_dwarf_reg_entry_value>: Update.
9020 <call_site_to_target_addr>: Update.
9021 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9022 parameter.
9023 (value_of_dwarf_reg_entry): Update.
9024 (rw_pieced_value): Update.
9025 (indirect_synthetic_pointer): Update.
9026 (dwarf2_evaluate_property): Update.
9027 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9028 parameter.
9029 (locexpr_read_variable): Update.
9030 (locexpr_get_symbol_read_needs): Update.
9031 (loclist_read_variable): Update.
9032
9033 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9036 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9037 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9038 parameter.
9039 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9040 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9041 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9042 parameter.
9043 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9044 sect_variable_value): Add dwarf2_per_objfile parameter.
9045 (class dwarf_evaluate_loc_desc) <dwarf_call,
9046 dwarf_variable_value>: Update.
9047 (fetch_const_value_from_synthetic_pointer): Add
9048 dwarf2_per_objfile parameter.
9049 (fetch_const_value_from_synthetic_pointer): Update.
9050 (coerced_pieced_ref): Update.
9051 (class symbol_needs_eval_context) <dwarf_call,
9052 dwarf_variable_value>: Update.
9053 (dwarf2_compile_expr_to_ax): Update.
9054
9055 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9058 parameter.
9059 (dwarf2_evaluate_loc_desc_full): Update.
9060
9061 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9062
9063 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9064 parameter.
9065 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9066 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9067 dwarf2_per_objfile parameter.
9068 (decode_debug_loc_dwo_addresses): Likewise.
9069 (dwarf2_find_location_expression): Update.
9070 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9071 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9072 parameter.
9073 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9074 parameter.
9075 (locexpr_describe_location_1): Likewise.
9076 (locexpr_describe_location): Update.
9077
9078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9081 Remove.
9082 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9083 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9084 (dwarf2_compile_property_to_c): Update.
9085 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9086 use text offset from objfile.
9087 (locexpr_tracepoint_var_ref): Update.
9088 (locexpr_generate_c_location): Update.
9089 (loclist_describe_location): Update.
9090 (loclist_tracepoint_var_ref): Update.
9091 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9092 dwarf2_per_objfile parameter.
9093 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9094 use text offset from objfile.
9095 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9096
9097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * dwarf2/expr.h (struct dwarf_expr_context)
9100 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9101 <offset>: Remove.
9102 <per_objfile>: New member.
9103 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9104 dwarf2_per_objfile parameter. Don't set offset, set
9105 per_objfile.
9106 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9107 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9108 a dwarf2_per_objfile object instead of an offset.
9109 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9110 constructor.
9111 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9112 to dwarf2_expr_executor constructor. Don't set offset.
9113 (dwarf2_fetch_cfa_info): Update.
9114 (struct dwarf2_frame_cache) <text_offset>: Remove.
9115 <per_objfile>: New field.
9116 (dwarf2_frame_cache): Update.
9117 (dwarf2_frame_prev_register): Update.
9118 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9119 <dwarf_evaluate_loc_desc>: Add constructor.
9120 (dwarf2_evaluate_loc_desc_full): Update.
9121 (dwarf2_locexpr_baton_eval): Update.
9122 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9123 Add constructor.
9124 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9125
9126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9129 addr_sized_int_type>: Move to dwarf2_cu.
9130 <int_type>: Move to dwarf2_per_objfile.
9131 (struct dwarf2_per_objfile) <int_type>: Move here.
9132 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9133 addr_sized_int_type>: Move here.
9134 (read_func_scope): Update.
9135 (read_array_type): Update.
9136 (read_tag_string_type): Update.
9137 (attr_to_dynamic_prop): Update.
9138 (dwarf2_per_cu_data::int_type): Rename to...
9139 (dwarf2_per_objfile::int_type): ... this.
9140 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9141 (dwarf2_cu::addr_sized_int_type): ... this.
9142 (read_subrange_type): Update.
9143 (dwarf2_per_cu_data::addr_type): Rename to...
9144 (dwarf2_cu::addr_type): ... this.
9145 (set_die_type): Update.
9146
9147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9150 data through per_cu->cu.
9151
9152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9155 dwarf2_per_cu_data parameter fo dwarf2_cu.
9156 (lookup_dwo_type_unit): Likewise.
9157 (read_cutu_die_from_dwo): Likewise.
9158 (lookup_dwo_unit): Likewise.
9159 (open_and_init_dwo_file): Likewise.
9160 (lookup_dwo_cutu): Likewise.
9161 (lookup_dwo_comp_unit): Likewise.
9162 (lookup_dwo_type_unit): Likewise.
9163 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9164 (cutu_reader::cutu_reader): Update.
9165
9166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9169 parameter.
9170 (process_full_type_unit): Likewise.
9171 (process_queue): Update.
9172
9173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/read.c (recursively_compute_inclusions): Add
9176 dwarf2_per_objfile parameter.
9177 (compute_compunit_symtab_includes): Likewise.
9178 (process_cu_includes): Update.
9179
9180 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9183 parameter.
9184 (create_type_unit_group): Update.
9185 (process_psymtab_comp_unit_reader): Update.
9186 (build_type_psymtabs_reader): Update.
9187
9188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9191 object through m_this_cu->cu.
9192
9193 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9194
9195 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9196 the info parameter.
9197 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9198
9199 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9200
9201 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9202 per_objfile parameter.
9203 (load_full_type_unit): Add per_objfile parameter.
9204 (read_signatured_type): Likewise.
9205 (load_full_comp_unit): Likewise.
9206 (load_cu): Likewise.
9207 (dw2_do_instantiate_symtab): Likewise.
9208 (dw2_get_file_names): Likewise.
9209 (dw2_map_symtabs_matching_filename): Update.
9210 (dw_expand_symtabs_matching_file_matcher): Update.
9211 (dw2_map_symbol_filenames): Update.
9212 (process_psymtab_comp_unit): Add per_objfile parameter.
9213 (build_type_psymtabs_1): Update.
9214 (process_skeletonless_type_unit): Update.
9215 (dwarf2_build_psymtabs_hard): Update.
9216 (load_partial_comp_unit): Add per_objfile parameter.
9217 (scan_partial_symbols): Update.
9218 (load_full_comp_unit): Add per_objfile parameter.
9219 (process_imported_unit_die): Update.
9220 (create_cus_hash_table): Update.
9221 (find_partial_die): Update.
9222 (dwarf2_read_addr_index): Update.
9223 (follow_die_offset): Update.
9224 (dwarf2_fetch_die_loc_sect_off): Update.
9225 (dwarf2_fetch_constant_bytes): Update.
9226 (dwarf2_fetch_die_type_sect_off): Update.
9227 (follow_die_sig_1): Update.
9228 (load_full_type_unit): Add per_objfile parameter.
9229 (read_signatured_type): Likewise.
9230
9231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9234 of objfile_name.
9235
9236 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9239 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9240 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9241 field.
9242 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9243 (create_cus_from_index): Update.
9244 (dwarf2_read_gdb_index): Update.
9245 (create_cus_from_debug_names): Update.
9246 (dwarf2_read_debug_names): Update.
9247 (get_abbrev_section_for_cu): Update.
9248 (create_all_comp_units): Update.
9249 (read_attribute_value): Update.
9250 (get_debug_line_section): Update.
9251 * dwarf2/index-cache.c (index_cache::store): Update.
9252 * dwarf2/index-write.c (save_gdb_index_command): Update.
9253 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9254
9255 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9256
9257 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9258 member.
9259 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9260 dwarf2_per_cu_data::per_bfd.
9261 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9262 (create_type_unit_group): Likewise.
9263 (queue_comp_unit): Remove reference to
9264 per_cu->dwarf2_per_objfile.
9265 (maybe_queue_comp_unit): Likewise.
9266 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9267 (create_cus_hash_table): Assign new field.
9268
9269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * dwarf2/read.c: Replace
9272 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9273 dwarf2_cu->per_objfile throughout.
9274
9275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9278 parameter, don't use per_cu->dwarf2_per_objfile.
9279 (dw2_instantiate_symtab): Likewise.
9280 (dw2_find_last_source_symtab): Update.
9281 (dw2_map_expand_apply): Update.
9282 (dw2_lookup_symbol): Update.
9283 (dw2_expand_symtabs_for_function): Update.
9284 (dw2_expand_all_symtabs): Update.
9285 (dw2_expand_symtabs_with_fullname): Update.
9286 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9287 don't use per_cu->dwarf2_per_objfile.
9288 (dw2_expand_marked_cus): Update.
9289 (dw2_find_pc_sect_compunit_symtab): Update.
9290 (dw2_debug_names_lookup_symbol): Update.
9291 (dw2_debug_names_expand_symtabs_for_function): Update.
9292 (dw2_debug_names_map_matching_symbols): Update.
9293 (dwarf2_psymtab::expand_psymtab): Update.
9294
9295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9298 <per_objfile>: New member.
9299 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9300 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9301 call to dwarf2_cu.
9302 (cutu_reader::cutu_reader): Update.
9303 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9304
9305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9308 struct dwarf2_per_objfile.
9309 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9310 dwarf2_per_bfd.
9311 * dwarf2/read.c (set_die_type): Update.
9312 (get_die_type_at_offset): Update.
9313
9314 2020-05-27 Tom Tromey <tom@tromey.com>
9315 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9318 method.
9319 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9320 get_symtab, set_symtab>: New methods.
9321 <m_symtabs>: New field.
9322 (struct dwarf2_psymtab): Derive from partial_symtab.
9323 <readin_p, get_compunit_symtab>: Declare methods.
9324 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9325 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9326 New methods.
9327 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9328 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9329 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9330 (dw2_symtab_iter_next, dw2_print_stats)
9331 (dw2_expand_symtabs_with_fullname)
9332 (dw2_expand_symtabs_matching_one)
9333 (dw_expand_symtabs_matching_file_matcher)
9334 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9335 (dw2_debug_names_iterator::next)
9336 (dw2_debug_names_map_matching_symbols)
9337 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9338 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9339 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9340 New methods.
9341 (get_compunit_symtab, process_full_comp_unit)
9342 (process_full_type_unit): Update.
9343 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9344
9345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9348 then introduce a new dwarf2_per_objfile type.
9349 <read_line_string>: Move to the new dwarf2_per_objfile type.
9350 <objfile>: Likewise.
9351 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9352 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9353 dwarf2_per_objfile->per_bfd.
9354 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9355 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9356 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9357 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9358 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9359 (dwarf2_per_objfile::locate_sections): Rename to...
9360 (dwarf2_per_bfd::locate_sections): ... this.
9361 (dwarf2_per_objfile::get_cutu): Rename to...
9362 (dwarf2_per_bfd::get_cutu): ... this.
9363 (dwarf2_per_objfile::get_cu): Rename to...
9364 (dwarf2_per_bfd::get_cu): ... this.
9365 (dwarf2_per_objfile::get_tu): Rename to...
9366 (dwarf2_per_bfd::get_tu): ... this.
9367 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9368 (dwarf2_per_bfd::allocate_per_cu): ... this.
9369 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9370 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9371 (get_gdb_index_contents_ftype): Change parameter from
9372 dwarf2_per_objfile to dwarf2_per_bfd.
9373 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9374 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9375
9376 2020-05-27 Tom Tromey <tom@tromey.com>
9377 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9380 (allocate_piece_closure): Set "per_objfile" member.
9381 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9382 (locexpr_describe_location, loclist_describe_location): Use new
9383 member.
9384 * dwarf2/read.c (read_call_site_scope)
9385 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9386 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9387 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9388 handle_data_member_location): Set per_objfile member.
9389 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9390 member.
9391 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9392
9393 2020-05-27 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9396 allocate_signatured_type>: Declare new methods.
9397 <m_num_psymtabs>: New member.
9398 (struct dwarf2_per_cu_data) <index>: New member.
9399 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9400 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9401 (create_cu_from_index_list): Use allocate_per_cu.
9402 (create_signatured_type_table_from_index)
9403 (create_signatured_type_table_from_debug_names)
9404 (create_debug_type_hash_table, add_type_unit)
9405 (read_comp_units_from_section): Use allocate_signatured_type.
9406
9407 2020-05-27 Tom Tromey <tom@tromey.com>
9408
9409 * psymtab.c (partial_map_expand_apply)
9410 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9411 (psym_lookup_global_symbol_language)
9412 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9413 (psym_print_stats, psym_expand_symtabs_for_function)
9414 (psym_map_symbol_filenames, psym_map_matching_symbols)
9415 (psym_expand_symtabs_matching)
9416 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9417 (maintenance_check_psymtabs): Update.
9418 * psympriv.h (struct partial_symtab) <readin_p,
9419 get_compunit_symtab>: Add objfile parameter.
9420 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9421 Likewise.
9422 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9423 get_compunit_symtab>: Likewise.
9424 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9425
9426 2020-05-27 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9429 member.
9430 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9431 (create_cu_from_index_list)
9432 (create_signatured_type_table_from_index)
9433 (create_signatured_type_table_from_debug_names)
9434 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9435 (dwarf2_create_include_psymtab)
9436 (create_debug_type_hash_table, add_type_unit)
9437 (create_type_unit_group, read_comp_units_from_section)
9438 (dwarf2_compute_name, create_cus_hash_table)
9439 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9440 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9441 obstack.
9442 (dw2_get_real_path): Likewise. Change argument to
9443 dwarf2_per_objfile.
9444
9445 2020-05-27 Luis Machado <luis.machado@linaro.org>
9446
9447 PR tdep/26000
9448 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9449 for ldrd (immediate).
9450
9451 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9452
9453 * command.h: Add comment giving the name of class_tui.
9454 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9455 create the fake command for the help for class_tui.
9456
9457 2020-05-26 Tom Tromey <tromey@adacore.com>
9458
9459 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9460 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9461 (val_atr): New function.
9462 (value_val_atr): Use it.
9463 * ada-valprint.c (print_optional_low_bound): Change low bound
9464 handling for enums.
9465 (val_print_packed_array_elements): Don't call discrete_position.
9466 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9467 discrete_position for enum types.
9468 * language.c (default_print_array_index): Change type.
9469 * language.h (struct language_defn) <la_print_array_index>: Add
9470 index_type parameter, change type of index_value.
9471 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9472 (default_print_array_index): Update.
9473 * valprint.c (maybe_print_array_index): Don't call
9474 value_from_longest. Update.
9475 (value_print_array_elements): Don't call discrete_position.
9476
9477 2020-05-26 Tom Tromey <tromey@adacore.com>
9478
9479 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9480 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9481
9482 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9483
9484 PR gdb/13519
9485 * avr-tdep.c (avr_integer_to_address): Return data or code
9486 address accordingly to the second 'type' argument of the
9487 function.
9488
9489 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9490
9491 * infcmd.c, inferior.h: (construct_inferior_arguments):
9492 Moved function from here to gdbsupport/common-inferior.{h,cc}
9493
9494 2020-05-23 Tom Tromey <tom@tromey.com>
9495
9496 Revert commit eca1f90c:
9497 * NEWS: Remove entry for completion styling.
9498 * completer.c (_rl_completion_prefix_display_length): Move
9499 declaration later.
9500 (gdb_fnprint): Revert.
9501 (gdb_display_match_list_1): Likewise.
9502 * cli/cli-style.c (completion_prefix_style)
9503 (completion_difference_style, completion_suffix_style): Remove.
9504 (_initialize_cli_style): Revert.
9505 * cli/cli-style.h (completion_prefix_style)
9506 (completion_difference_style, completion_suffix_style): Don't
9507 declare.
9508
9509 2020-05-24 Pedro Alves <palves@redhat.com>
9510
9511 * symtab.c (completion_list_add_name): Return boolean indication
9512 of whether the symbol matched.
9513 (completion_list_add_symbol): Don't try to remove C++ aliases if
9514 the symbol didn't match in the first place.
9515 * symtab.h (completion_list_add_name): Return bool.
9516
9517 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9518
9519 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9520 type::field.
9521
9522 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9523
9524 GDB 9.2 released.
9525
9526 2020-05-23 Tom Tromey <tom@tromey.com>
9527
9528 * NEWS: Add entry for completion styling.
9529 * completer.c (_rl_completion_prefix_display_length): Move
9530 declaration earlier.
9531 (gdb_fnprint): Use completion_style.
9532 (gdb_display_match_list_1): Likewise.
9533 * cli/cli-style.c (completion_prefix_style)
9534 (completion_difference_style, completion_suffix_style): New
9535 globals.
9536 (_initialize_cli_style): Register new globals.
9537 * cli/cli-style.h (completion_prefix_style)
9538 (completion_difference_style, completion_suffix_style): Declare.
9539
9540 2020-05-23 Pedro Alves <palves@redhat.com>
9541
9542 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9543 (parse_escape): Use ISDIGIT instead of isdigit.
9544 (puts_debug): Use gdb_isprint instead of isprint.
9545 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9546 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9547 ISSPACE instead of isspace.
9548 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9549 instead of isspace.
9550 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9551 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9552 instead of isxdigit and ISDIGIT instead of isdigit.
9553
9554 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * gdbtypes.h (struct type) <field>: New method.
9557 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9558 or type::field.
9559
9560 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9563 (TYPE_FIELDS): Use type::fields. Change all call sites that
9564 modify the propery to use type::set_fields instead.
9565
9566 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9569 type::num_fields instead.
9570
9571 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9574 methods.
9575 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9576 that modify the number of fields to use type::set_num_fields
9577 instead.
9578
9579 2020-05-22 Tom Tromey <tromey@adacore.com>
9580
9581 * compile/compile-object-load.h (munmap_list_free): Don't
9582 declare.
9583
9584 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * annotate.c (annotate_source_line): Update return type, add call
9587 to update current symtab and line.
9588 * annotate.h (annotate_source_line): Update return type, and
9589 extend header comment.
9590 * source.c (info_line_command): Check annotation_level before
9591 calling annotate_source_line.
9592 * stack.c (print_frame_info): If calling annotate_source_line
9593 returns true, then don't print any other source line information.
9594
9595 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9598
9599 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9600
9601 * coffread.c (patch_type): Remove NULL check before xfree.
9602 * corefile.c (set_gnutarget): Likewise.
9603 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9604 * exec.c (build_section_table): Likewise.
9605 * remote.c (remote_target::pass_signals): Likewise.
9606 * utils.c (n_spaces): Likewise.
9607 * cli/cli-script.c (document_command): Likewise.
9608 * i386-windows-tdep.c (core_process_module_section): Likewise.
9609 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9610
9611 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * symfile.c (reread_symbols): Clear objfile's section_offsets
9614 vector and section indices, re-compute them by calling
9615 sym_offsets.
9616
9617 2020-05-20 Tom Tromey <tromey@adacore.com>
9618
9619 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9620 (desc_one_bound, desc_index_type): Compute field name.
9621
9622 2020-05-20 Tom de Vries <tdevries@suse.de>
9623
9624 PR symtab/25833
9625 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9626
9627 2020-05-20 Alan Modra <amodra@gmail.com>
9628
9629 PR 25993
9630 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9631 bfd_set_filename.
9632 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9633 passed to bfd_set_filename.
9634 * symfile-mem.c (add_vsyscall_page): Likewise for string
9635 passed to symbol_file_add_from_memory.
9636 (symbol_file_add_from_memory): Make name param a const char* and
9637 don't strdup.
9638
9639 2020-05-20 Alan Modra <amodra@gmail.com>
9640
9641 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9642 rather than accessing bfd->filename directly.
9643 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9644 and use bfd_section_name.
9645 * dwarf2/frame.c (decode_frame_entry): Likewise.
9646 * exec.c (exec_set_section_address): Likewise.
9647 * solib-aix.c (solib_aix_bfd_open): Likewise.
9648 * stap-probe.c (get_stap_base_address): Likewise.
9649 * symfile.c (reread_symbols): Likewise.
9650
9651 2020-05-19 Tom Tromey <tromey@adacore.com>
9652
9653 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9654
9655 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9658
9659 2020-05-19 Pedro Alves <palves@redhat.com>
9660
9661 * NEWS (set exec-file-mismatch): Adjust entry.
9662 * exec.c: Include "build-id.h".
9663 (validate_exec_file): Try to match build IDs instead of filenames.
9664 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9665 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9666 and pass down 'warn_if_slow'.
9667 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9668 gdb_bfd_open_closure to pass it down.
9669 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9670
9671 2020-05-19 Pedro Alves <palves@redhat.com>
9672
9673 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9674 * target.c (target_fileio_open_1): Rename to target_fileio_open
9675 and make extern. Use bool.
9676 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9677 (target_fileio_read_alloc_1): Adjust.
9678 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9679 (target_fileio_open_warn_if_slow): Delete declaration.
9680
9681 2020-05-19 Pedro Alves <palves@redhat.com>
9682
9683 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9684 Adjust all callers.
9685
9686 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9687
9688 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9689 whether disp is negative.
9690
9691 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * symfile.h (struct symfile_segment_data)
9694 <~symfile_segment_data>: Remove.
9695 <segment_info>: Change to std::vector.
9696 * symfile.c (default_symfile_segments): Update.
9697 * elfread.c (elf_symfile_segments): Update.
9698
9699 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9702 <segments>: New.
9703 <segment_bases, segment_sizes>: Remove.
9704 * symfile.c (default_symfile_segments): Update.
9705 * elfread.c (elf_symfile_segments): Update.
9706 * remote.c (remote_target::get_offsets): Update.
9707 * solib-target.c (solib_target_relocate_section_addresses):
9708 Update.
9709
9710 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * symfile.h (struct symfile_segment_data): Initialize fields.
9713 <~symfile_segment_data>: Add.
9714 (symfile_segment_data_up): New.
9715 (struct sym_fns) <sym_segments>: Return a
9716 symfile_segment_data_up.
9717 (default_symfile_segments): Return a symfile_segment_data_up.
9718 (free_symfile_segment_data): Remove.
9719 (get_symfile_segment_data): Return a symfile_segment_data_up.
9720 * symfile.c (default_symfile_segments): Likewise.
9721 (get_symfile_segment_data): Likewise.
9722 (free_symfile_segment_data): Remove.
9723 (symfile_find_segment_sections): Update.
9724 * elfread.c (elf_symfile_segments): Return a
9725 symfile_segment_data_up.
9726 * remote.c (remote_target::get_offsets): Update.
9727 * solib-target.c (solib_target_relocate_section_addresses):
9728 Update.
9729 * symfile-debug.c (debug_sym_segments): Return a
9730 symfile_segment_data_up.
9731
9732 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9733
9734 PR build/25981
9735 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9736 Hardcode register numbers.
9737
9738 PR build/25981
9739 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9740 procfs_find_LDT_entry): Remove.
9741 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9742 procfs_find_LDT_entry): Remove.
9743 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9744 Remove.
9745
9746 2020-05-17 Pedro Alves <palves@redhat.com>
9747 Andrew Burgess <andrew.burgess@embecosm.com>
9748 Keno Fischer <keno@juliacomputing.com>
9749
9750 PR gdb/25741
9751 * breakpoint.c (build_target_condition_list): Update comments.
9752 (build_target_command_list): Update comments and skip matching
9753 locations.
9754 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9755 a separate function. Simplify "set breakpoint auto-hw off"
9756 handling.
9757 (insert_breakpoints): Update comment.
9758 (tracepoint_locations_match): New parameter. For breakpoints,
9759 compare location types too, if the caller wants to.
9760 (handle_automatic_hardware_breakpoints): New functions.
9761 (bp_location_is_less_than): Also sort by location type and
9762 hardware breakpoint length.
9763 (update_global_location_list): Handle "set breakpoint auto-hw on"
9764 here.
9765 (update_breakpoint_locations): Ask breakpoint_locations_match to
9766 ignore location types.
9767
9768 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9771 type::name instead.
9772
9773 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * gdbtypes.h (struct type) <name, set_name>: New methods.
9776 (TYPE_CODE): Use type::name. Change all call sites used to set
9777 the name to use type::set_name instead.
9778
9779 2020-05-16 Tom Tromey <tom@tromey.com>
9780
9781 * top.c (quit_force): Update.
9782 * infrun.c (handle_no_resumed): Update.
9783 * top.h (all_uis): New function.
9784 (ALL_UIS): Remove.
9785
9786 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9789
9790 2020-05-16 Pedro Alves <palves@redhat.com>
9791
9792 * ia64-linux-nat.c
9793 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9794 Declare method.
9795 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9796
9797 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9800 (sparc64_adi_info): Likewise.
9801
9802 2020-05-15 Tom Tromey <tom@tromey.com>
9803
9804 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9805 block_objfile.
9806 (lookup_objfile_from_block): Remove.
9807 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9808 (lookup_global_symbol): Use block_objfile.
9809 * symtab.h (lookup_objfile_from_block): Don't declare.
9810 * printcmd.c (clear_dangling_display_expressions): Use
9811 block_objfile.
9812 * parse.c (operator_check_standard): Use block_objfile.
9813
9814 2020-05-15 Tom Tromey <tom@tromey.com>
9815
9816 * language.c (language_alloc_type_symbol): Set
9817 SYMBOL_SECTION.
9818 * symtab.c (initialize_objfile_symbol): Remove.
9819 (allocate_symbol): Remove.
9820 (allocate_template_symbol): Remove.
9821 * dwarf2/read.c (fixup_go_packaging): Use "new".
9822 (new_symbol): Use "new".
9823 (read_variable): Don't call initialize_objfile_symbol. Use
9824 "new".
9825 (read_func_scope): Use "new".
9826 * xcoffread.c (process_xcoff_symbol): Don't call
9827 initialize_objfile_symbol.
9828 (SYMBOL_DUP): Remove.
9829 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9830 "new".
9831 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9832 (allocate_template_symbol): Don't declare.
9833 (struct symbol): Add copy constructor. Change defaults.
9834 * jit.c (finalize_symtab): Use "new".
9835 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9836 Use "new".
9837 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9838 (common_block_end): Use "new".
9839 * mdebugread.c (parse_symbol): Use "new".
9840 (new_symbol): Likewise.
9841
9842 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9843
9844 * NEWS: Mention changes to help and apropos.
9845
9846 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9847
9848 * command.h (enum command_class): Improve comments, document
9849 that class_alias is for user-defined aliases, give the class
9850 name for each class, remove unused class_xdb.
9851 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9852 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9853 by a precise class.
9854 * infcmd.c (_initialize_infcmd): Likewise.
9855 * reverse.c (_initialize_reverse): Likewise.
9856 * stack.c (_initialize_stack): Likewise.
9857 * symfile.c (_initialize_symfile): Likewise.
9858 * tracepoint.c (_initialize_tracepoint): Likewise.
9859
9860 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9861
9862 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9863 when their aliased command is traversed.
9864 (help_cmd): Add fput_command_names_styled call to
9865 output command name and aliases when command has an alias.
9866
9867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868
9869 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9870 * cli/cli-decode.c (help_cmd_list): Declare as static,
9871 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9872 a command together with the command.
9873 (fput_command_name_styled, fput_command_names_styled): New functions.
9874 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9875 fput_command_name_styled.
9876 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9877 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9878
9879 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9880
9881 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9882 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9883 * command.h (cmd_show_list): Likewise.
9884 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9885 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9886
9887 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9888
9889 * unittests/command-def-selftests.c (traverse_command_structure):
9890 Verify all commands of a list have the same prefix command and
9891 that only the top cmdlist commands have a null prefix.
9892
9893 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9894
9895 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9896 as prefix, not one of its aliases.
9897 (set_cmd_prefix): Remove.
9898 (do_add_cmd): Centralize the setting of the prefix of a command, when
9899 command is defined after its full chain of prefix commands.
9900 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9901 (add_setshow_cmd_full): Likewise.
9902 (update_prefix_field_of_prefixed_commands): New function.
9903 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9904 update_prefix_field_of_prefixed_commands.
9905 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9906 addresses of remote_set_cmdlist and remote_show_cmdlist given
9907 as argument, not the address of an argument.
9908 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9909 * gdb/remote.c (_initialize_remote): Likewise.
9910
9911 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9912
9913 * cli/cli-cmds.c (alias_command): Check for an existing alias
9914 using lookup_cmd_composition, as valid_command_p is too strict
9915 and forbids aliases that are the prefix of an existing alias
9916 or command.
9917 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9918 command is properly recognised as a valid command.
9919
9920 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9921
9922 * unittests/help-doc-selftests.c: Rename to
9923 unittests/command-def-selftests.c
9924 * unittests/command-def-selftests.c (help_doc_tests): Update some
9925 comments.
9926 (command_structure_tests, traverse_command_structure): New namespace
9927 and function.
9928 (command_structure_invariants_tests): New function.
9929 (_initialize_command_def_selftests) Renamed from
9930 _initialize_help_doc_selftests, register command_structure_invariants
9931 selftest.
9932
9933 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9934
9935 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9936 an alias of 'show'.
9937
9938 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9939
9940 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9941 ada_is_fixed_point_type. Update all callers.
9942 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9943 all callers.
9944 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9945 Update all callers.
9946 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9947 print_fixed_point_type. Update all callers.
9948 * ada-valprint.c (ada_value_print_num): Replace call to
9949 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9950
9951 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9952
9953 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9954 processors.
9955 (cpu_supports_bts): Add CV_AMD case.
9956
9957 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9958 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * infrun.c (stop_all_threads): Collect multiple wait events at
9961 each pass.
9962
9963 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9966 type::code instead.
9967
9968 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9969
9970 * gdbtypes.h (struct type) <code, set_code>: New methods.
9971 (TYPE_CODE): Use type::code. Change all call sites used to set
9972 the code to use type::set_code instead.
9973
9974 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9975 Tom de Vries <tdevries@suse.de>
9976 Pedro Alves <palves@redhat.com>
9977
9978 PR threads/25478
9979 * infrun.c (stop_all_threads): Do NOT ignore
9980 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9981 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9982 received.
9983 (handle_no_resumed): Remove code handling a live inferior with no
9984 threads.
9985 * remote.c (has_single_non_exited_thread): New.
9986 (remote_target::update_thread_list): Do not delete a thread if is
9987 the last thread of the process.
9988 * thread.c (thread_select): Call delete_exited_threads instead of
9989 prune_threads.
9990
9991 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9992
9993 * infrun.c (stop_all_threads): Enable/disable thread events of all
9994 targets. Move a debug message denoting the end of the function
9995 into the SCOPED_EXIT block.
9996
9997 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9998
9999 * process-stratum-target.h: Include <set>.
10000 (all_non_exited_process_targets, switch_to_target_no_thread): New
10001 function declarations.
10002 * process-stratum-target.c (all_non_exited_process_targets)
10003 (switch_to_target_no_thread): New function implementations.
10004
10005 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10006
10007 * infrun.c (handle_inferior_event): Extract out a piece of code
10008 into...
10009 (mark_non_executing_threads): ...this new function.
10010
10011 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10012
10013 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10014 use.
10015
10016 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10017
10018 * regcache.c (regcache_read_pc_protected): New function
10019 implementation that returns 0 if the PC cannot read via
10020 'regcache_read_pc'.
10021 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10022 instead of 'regcache_read_pc'.
10023 (keep_going_pass_signal): Ditto.
10024
10025 2020-05-13 Tom Tromey <tromey@adacore.com>
10026
10027 * ada-lang.c (align_value): Remove.
10028 (ada_template_to_fixed_record_type_1): Use align_up.
10029
10030 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10031
10032 * async-event.c: Update the copyright year.
10033 * async-event.h: Update the copyright year.
10034
10035 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * objfiles.h (is_addr_in_objfile,
10038 shared_objfile_contains_address_p): Return bool.
10039 * objfile.c (is_addr_in_objfile,
10040 shared_objfile_contains_address_p): Return bool.
10041
10042 2020-05-11 Tom Tromey <tromey@adacore.com>
10043
10044 * cli/cli-cmds.c (info_command): Restore.
10045 (_initialize_cli_cmds): Use add_prefix_command for "info".
10046 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10047
10048 2020-05-11 Tom Tromey <tromey@adacore.com>
10049
10050 * ada-lang.c (ada_value_primitive_field): Now public.
10051 * ada-lang.h (ada_value_primitive_field): Declare.
10052 * ada-valprint.c (print_field_values): Use
10053 ada_value_primitive_field for wrapper fields.
10054
10055 2020-05-11 Tom de Vries <tdevries@suse.de>
10056
10057 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10058 MODULE_DOMAIN.
10059
10060 2020-05-11 Tom de Vries <tdevries@suse.de>
10061
10062 PR symtab/25941
10063 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10064 with length 0, if not gdb-produced.
10065 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10066
10067 2020-05-09 Tom de Vries <tdevries@suse.de>
10068
10069 PR gdb/25955
10070 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10071 calculation.
10072
10073 2020-05-09 Tom Tromey <tom@tromey.com>
10074
10075 * top.c (server_command): Now bool.
10076 * top.h (server_command): Now bool.
10077
10078 2020-05-08 Tom Tromey <tromey@adacore.com>
10079
10080 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10081 already being processed.
10082
10083 2020-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * printcmd.c (struct display) <next>: Remove.
10086 <display>: New constructor.
10087 <exp_string>: Now a std::string.
10088 <enabled_p>: Now a bool.
10089 (display_number): Move definition earlier.
10090 (displays): Rename from display_chain. Now a std::vector.
10091 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10092 (display_command): Update.
10093 (do_one_display, disable_display)
10094 (enable_disable_display_command, do_enable_disable_display):
10095 Update.
10096 (free_display): Remove.
10097 (clear_displays): Rewrite.
10098 (delete_display): Update.
10099 (map_display_numbers): Use function_view. Remove "data"
10100 parameter. Update.
10101 (do_delete_display): Remove.
10102 (undisplay_command): Update.
10103 (do_one_display, do_displays, disable_display)
10104 (info_display_command): Update.
10105 (do_enable_disable_display): Remove.
10106 (enable_disable_display_command)
10107 (clear_dangling_display_expressions): Update.
10108
10109 2020-05-08 Tom Tromey <tom@tromey.com>
10110
10111 * symtab.c (set_symbol_cache_size)
10112 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10113 (maintenance_print_symbol_cache_statistics): Update.
10114 * symmisc.c (print_symbol_bcache_statistics)
10115 (print_objfile_statistics, maintenance_print_objfiles)
10116 (maintenance_info_symtabs, maintenance_check_symtabs)
10117 (maintenance_expand_symtabs, maintenance_info_line_tables):
10118 Update.
10119 * symfile-debug.c (set_debug_symfile): Update.
10120 * source.c (forget_cached_source_info): Update.
10121 * python/python.c (gdbpy_progspaces): Update.
10122 * psymtab.c (maintenance_info_psymtabs): Update.
10123 * probe.c (parse_probes): Update.
10124 * linespec.c (iterate_over_all_matching_symtabs)
10125 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10126 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10127 * exec.c (exec_target::close): Update.
10128 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10129 * breakpoint.c (print_one_breakpoint_location)
10130 (create_longjmp_master_breakpoint)
10131 (create_std_terminate_master_breakpoint): Update.
10132 * progspace.c (program_spaces): Now a std::vector.
10133 (maybe_new_address_space): Update.
10134 (add_program_space): Remove.
10135 (program_space::program_space): Update.
10136 (remove_program_space): Update.
10137 (number_of_program_spaces): Remove.
10138 (print_program_space, update_address_spaces): Update.
10139 * progspace.h (program_spaces): Change type.
10140 (ALL_PSPACES): Remove.
10141 (number_of_program_spaces): Don't declare.
10142 (struct program_space) <next>: Remove.
10143
10144 2020-05-08 Tom Tromey <tom@tromey.com>
10145
10146 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10147 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10148 (enable_break): Update.
10149 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10150 (frv_fdpic_find_canonical_descriptor): Update.
10151 (frv_fetch_objfile_link_map): Update.
10152 * progspace.c (program_space::free_all_objfiles): Update.
10153 (program_space::solibs): New method.
10154 * progspace.h (struct program_space) <solibs>: New method.
10155 * solist.h (master_so_list): Don't declare.
10156 (ALL_SO_LIBS): Remove.
10157 * solib.h (so_list_head): Remove.
10158 (update_solib_list): Update comment.
10159 * solib.c (master_so_list): Remove.
10160 (solib_used, update_solib_list, solib_add)
10161 (info_sharedlibrary_command, clear_solib)
10162 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10163
10164 2020-05-08 Tom Tromey <tom@tromey.com>
10165
10166 * extension.c (extension_languages): Now a std::array.
10167 (ALL_EXTENSION_LANGUAGES): Remove.
10168 (get_ext_lang_defn, get_ext_lang_of_file)
10169 (eval_ext_lang_from_control_command): Update.
10170 (finish_ext_lang_initialization)
10171 (auto_load_ext_lang_scripts_for_objfile)
10172 (ext_lang_type_printers::ext_lang_type_printers)
10173 (apply_ext_lang_type_printers)
10174 (ext_lang_type_printers::~ext_lang_type_printers)
10175 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10176 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10177 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10178 (get_matching_xmethod_workers, ext_lang_colorize)
10179 (ext_lang_before_prompt): Update.
10180 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10181
10182 2020-05-08 Tom Tromey <tom@tromey.com>
10183
10184 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10185 overload.
10186 <swap_string, m_string>: Remove.
10187 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10188 Update.
10189 * stabsread.c (define_symbol, read_type): Update.
10190 * linespec.c (find_linespec_symbols): Update.
10191 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10192 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10193 * dbxread.c (read_dbx_symtab): Update.
10194 * cp-support.h (cp_canonicalize_string_full)
10195 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10196 Return unique_xmalloc_ptr.
10197 * cp-support.c (inspect_type): Update.
10198 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10199 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10200 Likewise.
10201 * c-typeprint.c (print_name_maybe_canonical): Update.
10202 * break-catch-throw.c (check_status_exception_catchpoint):
10203 Update.
10204
10205 2020-05-08 Tom de Vries <tdevries@suse.de>
10206
10207 * infrun.c (follow_fork): Copy current_line and current_symtab to
10208 child thread.
10209
10210 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * async-event.c (struct async_signal_handler, struct
10213 async_event_handler): Reformat, remove typedef.
10214
10215 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10218 access thistype->main_type->dyn_prop_list directly.
10219
10220 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10223 (remove_dyn_prop): Remove. Update all users to use
10224 type::remove_dyn_prop.
10225 * gdbtypes.c (remove_dyn_prop): Rename to...
10226 (type::remove_dyn_prop): ... this.
10227
10228 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10229
10230 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10231 (add_dyn_prop): Remove. Update all users to use
10232 type::add_dyn_prop.
10233 * gdbtypes.c (add_dyn_prop): Rename to...
10234 (type::add_dyn_prop): ... this.
10235
10236 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10237
10238 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10239 (get_dyn_prop): Remove. Update all users to use
10240 type::dyn_prop.
10241 * gdbtypes.c (get_dyn_prop): Rename to...
10242 (type::dyn_prop): ... this.
10243
10244 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10247
10248 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10251 instruction, skip it if it's there.
10252
10253 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10256
10257 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10260 * gdbtypes.c (recursive_dump_type): Remove use of
10261 TYPE_INCOMPLETE.
10262
10263 2020-05-03 Tom Tromey <tom@tromey.com>
10264
10265 * breakpoint.c (catch_command, tcatch_command): Remove.
10266 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10267 add_show_prefix_cmd.
10268 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10269 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10270 Remove.
10271 (add_internal_problem_command): Use add_basic_prefix_cmd,
10272 add_show_prefix_cmd.
10273 * mips-tdep.c (set_mipsfpu_command): Remove.
10274 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10275 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10276 (_initialize_index_cache): Use add_basic_prefix_cmd.
10277 * memattr.c (dummy_cmd): Remove.
10278 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10279 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10280 (_initialize_tui_win): Use add_basic_prefix_cmd,
10281 add_show_prefix_cmd.
10282 * cli/cli-logging.c (set_logging_command): Remove.
10283 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10284 add_show_prefix_cmd.
10285 (show_logging_command): Remove.
10286 * target.c (target_command): Remove.
10287 (add_target): Use add_basic_prefix_cmd.
10288
10289 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10290
10291 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10292
10293 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10294
10295 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10296 info_command.
10297
10298 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10299
10300 * nbsd-nat.c (nbsd_enable_proc_events)
10301 (nbsd_nat_target::post_startup_inferior): Add.
10302 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10303 (nbsd_nat_target::update_thread_list): Rewrite.
10304 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10305 "PTRACE_LWP_CREATE".
10306 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10307
10308 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10309
10310 * stack.c (_initialize_stack): Remove duplicated creation
10311 of "frame" command and "f" alias.
10312
10313 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10314
10315 PR gdb/18706
10316 * gdbtypes.c (check_typedef): Calculate size of array of
10317 stubbed type.
10318
10319 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10320
10321 PR gdb/15559
10322 * i386-tdep.c (i386_push_dummy_call): Call
10323 i386_thiscall_push_dummy_call.
10324 (i386_thiscall_push_dummy_call): New function.
10325 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10326 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10327 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10328
10329 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * gdbarch.sh (do_read): Add shellcheck disable directive for
10332 warning SC2162.
10333
10334 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10337 "referenced but not assigned" warning.
10338
10339 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * gdbarch.sh: Remove code that sets fallbackdefault.
10342
10343 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbarch.sh: Use shell operators && and || instead of
10346 -a and -o.
10347
10348 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * gdbarch.sh: Use $(...) instead of `...`.
10351
10352 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * gdbarch.sh: Use double quotes around variables.
10355
10356 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * gdbarch.sh: Use %s with printf, instead of variables in the
10359 format string.
10360
10361 2020-04-29 Tom Tromey <tromey@adacore.com>
10362
10363 PR ada/25875:
10364 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10365 type fields here.
10366 (read_enumeration_type): Call
10367 update_enumeration_type_from_children later. Update comments.
10368 (process_enumeration_scope): Don't create type fields.
10369
10370 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10371
10372 * nbsd-tdep.c: Include "xml-syscall.h".
10373 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10374
10375 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10376
10377 * nbsd-nat.c: Include "sys/wait.h".
10378 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10379 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10380 (nbsd_nat_target::remove_exec_catchpoint)
10381 (nbsd_nat_target::set_syscall_catchpoint): Add.
10382 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10383 (nbsd_nat_target::insert_exec_catchpoint)
10384 (nbsd_nat_target::remove_exec_catchpoint)
10385 (nbsd_nat_target::set_syscall_catchpoint): Add.
10386 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10387 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10388 `nbsd_get_syscall_number'.
10389
10390 2020-04-29 Tom Tromey <tom@tromey.com>
10391
10392 * stack.c (print_block_frame_labels): Remove.
10393
10394 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10395
10396 PR gdb/17320
10397 * ada-valprint.c (val_print_packed_array_elements): Move array
10398 end bracket to new line.
10399 (ada_val_print_string): Remove extra spaces before first array
10400 element.
10401 * c-valprint.c (c_value_print_array): Likewise.
10402 * m2-valprint.c (m2_print_array_contents): Likewise.
10403 (m2_value_print_inner): Likewise.
10404 * p-valprint.c (pascal_value_print_inner): Likewise.
10405 * valprint.c (generic_val_print_array): Likewise.
10406 (value_print_array_elements): Move first array element and array
10407 end bracket to new line.
10408
10409 2020-04-29 Tom de Vries <tdevries@suse.de>
10410
10411 PR symtab/25889
10412 * linespec.c (find_method): Fix ix calculation.
10413
10414 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10415
10416 * syscalls/update-netbsd.sh: New file.
10417 * syscalls/netbsd.xml: Regenerate.
10418 * data-directory/Makefile.in: Register `netbsd.xml' in
10419 `SYSCALLS_FILES'.
10420
10421 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * syscalls/update-freebsd.sh: Add double quotes.
10424
10425 2020-04-28 Tom Tromey <tom@tromey.com>
10426
10427 * NEWS: Update.
10428 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10429 (cmdpy_init): Allow class_tui.
10430
10431 2020-04-28 Mark Williams <mark@myosotissp.com>
10432
10433 PR gdb/24480
10434 * dwarf2read.c: Add missing assingments to list_in_scope when
10435 start_symtab was already called.
10436
10437 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10438
10439 PR gdb/25881
10440 * dwarf2/read.c (offset_map_type): Use
10441 gdb:hash_enum<sect_offset> as hash function.
10442
10443 2020-04-28 Tom de Vries <tdevries@suse.de>
10444
10445 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10446 with DW_AT_signature.
10447
10448 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10449
10450 * configure.ac: Remove check for fs_base/gs_base in
10451 user_regs_struct.
10452 * configure: Re-generate.
10453 * config.in: Re-generate.
10454 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10455 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10456 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10457
10458 2020-04-27 Luis Machado <luis.machado@linaro.org>
10459
10460 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10461 problematic inline frame unwinding situation.
10462 * frame.c (frame_id_computed_p): New function.
10463 * frame.h (frame_id_computed_p): New prototype.
10464
10465 2020-04-26 Tom Tromey <tom@tromey.com>
10466
10467 * command.h (enum command_class) <class_pseudo>: Remove.
10468
10469 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10470
10471 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10472 and whitespace.
10473
10474 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10475
10476 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10477 `PT_GET_PROCESS_STATE' block.
10478
10479 2020-04-24 Tom Tromey <tom@tromey.com>
10480
10481 * symtab.h (symbol_get_demangled_name): Don't declare.
10482 * symtab.c (symbol_get_demangled_name): Remove.
10483 (general_symbol_info::natural_name)
10484 (general_symbol_info::demangled_name): Update.
10485
10486 2020-04-24 Tom Tromey <tom@tromey.com>
10487
10488 PR rust/25025:
10489 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10490
10491 2020-04-24 Tom Tromey <tom@tromey.com>
10492
10493 PR symtab/12707:
10494 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10495 exists.
10496 (new_symbol): Likewise.
10497 * compile/compile-object-load.c (get_out_value_type): Use
10498 symbol_matches_search_name.
10499
10500 2020-04-24 Tom Tromey <tom@tromey.com>
10501
10502 * dwarf2/read.c (add_partial_symbol): Do not call
10503 compute_and_set_names.
10504
10505 2020-04-24 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10508 overload.
10509
10510 2020-04-24 Tom Tromey <tom@tromey.com>
10511
10512 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10513 (add_psymbol_to_list): New overload. Make old overload call new
10514 one.
10515 * psympriv.h (add_psymbol_to_list): New overload.
10516
10517 2020-04-24 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/read.c (partial_die_info::read) <case
10520 DW_AT_linkage_name>: Use value_as_string.
10521 (dwarf2_string_attr): Use value_as_string.
10522 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10523 method.
10524 * dwarf2/attribute.c (attribute::value_as_string): New method.
10525
10526 2020-04-24 Tom Tromey <tom@tromey.com>
10527
10528 * symtab.c (general_symbol_info::natural_name)
10529 (general_symbol_info::demangled_name): Check for language_rust.
10530
10531 2020-04-24 Tom Tromey <tom@tromey.com>
10532
10533 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10534 (dwarf2_physname): ... from here.
10535 (partial_die_info::read): Add Rust "{" hack.
10536
10537 2020-04-24 Tom Tromey <tom@tromey.com>
10538
10539 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10540 method.
10541 (symbol_set_demangled_name): Don't declare.
10542 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10543 symbol_set_demangled_name.
10544 (general_symbol_info::set_language)
10545 (general_symbol_info::compute_and_set_names): Update.
10546 * minsyms.c (minimal_symbol_reader::install): Update.
10547 * dwarf2/read.c (new_symbol): Update.
10548
10549 2020-04-24 Tom Tromey <tromey@adacore.com>
10550
10551 PR python/23662:
10552 * python/py-type.c (convert_field): Handle
10553 FIELD_LOC_KIND_DWARF_BLOCK.
10554 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10555 (typy_get_dynamic): Nw function.
10556 (type_object_getset): Add "dynamic".
10557 * NEWS: Add entry.
10558
10559 2020-04-24 Tom Tromey <tromey@adacore.com>
10560
10561 * ada-typeprint.c (print_choices, print_variant_part)
10562 (print_record_field_types_dynamic): New functions.
10563 (print_record_field_types): Use print_record_field_types_dynamic.
10564
10565 2020-04-24 Tom Tromey <tromey@adacore.com>
10566
10567 * dwarf2/read.c (handle_data_member_location): New overload.
10568 (dwarf2_add_field): Use it.
10569 (decode_locdesc): Add "computed" parameter. Update comment.
10570 * gdbtypes.c (is_dynamic_type_internal): Also look for
10571 FIELD_LOC_KIND_DWARF_BLOCK.
10572 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10573 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10574 virtual base classes.
10575 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10576 FIELD_LOC_KIND_DWARF_BLOCK.
10577
10578 2020-04-24 Tom Tromey <tromey@adacore.com>
10579
10580 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10581 * gdbtypes.c (is_dynamic_type_internal): Check
10582 TYPE_HAS_DYNAMIC_LENGTH.
10583 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10584 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10585 New macros.
10586 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10587 constant.
10588
10589 2020-04-24 Tom Tromey <tromey@adacore.com>
10590
10591 * dwarf2/read.c (struct variant_field): Rewrite.
10592 (struct variant_part_builder): New.
10593 (struct nextfield): Remove "variant" field. Add "offset".
10594 (struct field_info): Add "current_variant_part" and
10595 "variant_parts".
10596 (alloc_discriminant_info): Remove.
10597 (alloc_rust_variant): New function.
10598 (quirk_rust_enum): Update.
10599 (dwarf2_add_field): Set "offset" member. Don't handle
10600 DW_TAG_variant_part.
10601 (offset_map_type): New typedef.
10602 (convert_variant_range, create_one_variant)
10603 (create_one_variant_part, create_variant_parts)
10604 (add_variant_property): New functions.
10605 (dwarf2_attach_fields_to_type): Call add_variant_property.
10606 (read_structure_type): Don't handle DW_TAG_variant_part.
10607 (handle_variant_part, handle_variant): New functions.
10608 (handle_struct_member_die): Use them.
10609 (process_structure_scope): Don't handle variant parts.
10610 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10611 (struct discriminant_info): Remove.
10612 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10613 (struct main_type) <flag_discriminated_union>: Remove.
10614 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10615 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10616 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10617 Update.
10618 * valops.c (value_union_variant): Remove.
10619 * value.h (value_union_variant): Don't declare.
10620
10621 2020-04-24 Tom Tromey <tromey@adacore.com>
10622
10623 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10624 (ada_value_primitive_packed_val): Update.
10625 * ada-valprint.c (ada_value_print_1): Update.
10626 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10627 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10628 just an address. Use evaluate_for_locexpr_baton.
10629 (dwarf2_evaluate_property): Update.
10630 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10631 array_view.
10632 * findvar.c (default_read_var_value): Update.
10633 * gdbtypes.c (compute_variant_fields_inner)
10634 (resolve_dynamic_type_internal): Update.
10635 (resolve_dynamic_type): Change type of valaddr parameter.
10636 * gdbtypes.h (resolve_dynamic_type): Update.
10637 * valarith.c (value_subscripted_rvalue): Update.
10638 * value.c (value_from_contents_and_address): Update.
10639
10640 2020-04-24 Tom Tromey <tromey@adacore.com>
10641
10642 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10643 "push_initial_value" parameter.
10644 (dwarf2_evaluate_property): Likewise.
10645 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10646
10647 2020-04-24 Tom Tromey <tromey@adacore.com>
10648
10649 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10650 (variant::matches, compute_variant_fields_recurse)
10651 (compute_variant_fields_inner, compute_variant_fields): New
10652 functions.
10653 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10654 Use resolved_type after type is made.
10655 (operator==): Add new cases.
10656 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10657 (struct discriminant_range, struct variant, struct variant_part):
10658 New.
10659 (union dynamic_prop_data) <variant_parts, original_type>: New
10660 members.
10661 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10662 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10663 constants.
10664 * value.c (unpack_bits_as_long): Now public.
10665 * value.h (unpack_bits_as_long): Declare.
10666
10667 2020-04-24 Tom Tromey <tromey@adacore.com>
10668
10669 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10670 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10671
10672 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10673
10674 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10675
10676 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10677
10678 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10679 (remove_fork_catchpoint, post_startup_inferior)
10680 (post_attach): Move...
10681 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10682 (remove_fork_catchpoint, post_startup_inferior)
10683 (post_attach): ...here.
10684 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10685 (remove_fork_catchpoint, post_startup_inferior)
10686 (post_attach): Move...
10687 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10688 (remove_fork_catchpoint, post_startup_inferior)
10689 (post_attach): ...here.
10690
10691 2020-04-24 Tom Tromey <tromey@adacore.com>
10692
10693 * nat/windows-nat.h (struct windows_thread_info)
10694 <pc_adjusted>: New member.
10695 * windows-nat.c (windows_fetch_one_register): Check
10696 pc_adjusted.
10697 (windows_nat_target::get_windows_debug_event)
10698 (windows_nat_target::wait): Set pc_adjusted.
10699
10700 2020-04-24 Tom de Vries <tdevries@suse.de>
10701
10702 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10703 Run gdb-add-index inside temp dir.
10704
10705 2020-04-23 Tom Tromey <tromey@adacore.com>
10706
10707 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10708 in loop.
10709
10710 2020-04-23 Luis Machado <luis.machado@linaro.org>
10711
10712 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10713 get_frame_register instead of gdbarch_unwind_pc.
10714
10715 2020-04-23 Tom de Vries <tdevries@suse.de>
10716
10717 * symtab.c (lookup_global_symbol): Prefer def over decl.
10718
10719 2020-04-23 Tom de Vries <tdevries@suse.de>
10720
10721 PR symtab/25807
10722 * block.c (best_symbol, better_symbol): Promote to external.
10723 * block.h (best_symbol, better_symbol): Declare.
10724 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10725 decl.
10726
10727 2020-04-23 Tom Tromey <tromey@adacore.com>
10728
10729 PR ada/25837:
10730 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10731 "const char *", not a "const std::string &".
10732 <name_and_matcher::operator==>: Update.
10733 * unittests/lookup_name_info-selftests.c: Change type of
10734 "result".
10735
10736 2020-04-23 Tom Tromey <tom@tromey.com>
10737
10738 * inferior.h (iterate_over_inferiors): Don't declare.
10739 * inferior.c (iterate_over_inferiors): Remove.
10740 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10741 Remove.
10742 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10743 use iterate_over_inferiors.
10744 (darwin_resume_inferior_it)
10745 (struct resume_inferior_threads_param)
10746 (darwin_resume_inferior_threads_it): Remove.
10747 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10748
10749 2020-04-23 Tom de Vries <tdevries@suse.de>
10750
10751 * blockframe.c (find_pc_partial_function): Use
10752 find_pc_sect_compunit_symtab rather than
10753 objfile->sf->qf->find_pc_sect_compunit_symtab.
10754
10755 2020-04-22 Tom de Vries <tdevries@suse.de>
10756
10757 PR symtab/25764
10758 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10759 in psymtabs.
10760
10761 2020-04-22 Tom de Vries <tdevries@suse.de>
10762
10763 PR symtab/25801
10764 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10765 symtabs.
10766
10767 2020-04-22 Tom de Vries <tdevries@suse.de>
10768
10769 PR symtab/25700
10770 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10771 CU if already created.
10772
10773 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10774
10775 * infrun.c (displaced_step_fixup): Switch to the event_thread
10776 before calling displaced_step_restore, not after.
10777
10778 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10779
10780 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10781 its inferior is not recorded by us.
10782 (record_btrace_target_open): Replace call to
10783 all_non_exited_threads () with call to current_inferior
10784 ()->non_exited_threads ().
10785 (record_btrace_target::stop_recording): Likewise.
10786 (record_btrace_target::close): Likewise.
10787 (record_btrace_target::wait): Likewise.
10788 (record_btrace_target::record_stop_replaying): Likewise.
10789
10790 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10791
10792 * btrace.c (btrace_enable): Throw an error on double enables and
10793 when enabling recording fails.
10794 (btrace_disable): Throw an error if the thread is not recorded.
10795
10796 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10797
10798 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10799 request if we do not have a thread_info.
10800
10801 2020-04-21 Tom de Vries <tdevries@suse.de>
10802
10803 PR gdb/25471
10804 * thread.c
10805 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10806 exception in get_frame_id.
10807
10808 2020-04-20 Tom Tromey <tromey@adacore.com>
10809
10810 * python/python.c (struct gdbpy_event): Mark move constructor as
10811 noexcept.
10812 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10813 constructor as noexcept.
10814 * completer.h (struct completion_result): Mark move constructor as
10815 noexcept.
10816 * completer.c (completion_result::completion_result): Use
10817 initialization style. Don't call reset_match_list.
10818
10819 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10820
10821 * MAINTAINERS (Write After Approval): Add myself.
10822
10823 2020-04-18 Tom Tromey <tom@tromey.com>
10824
10825 * windows-tdep.c (init_w32_command_list)
10826 (w32_prefix_command_valid): Restore.
10827 (_initialize_windows_tdep): Call init_w32_command_list.
10828
10829 2020-04-18 Tom Tromey <tom@tromey.com>
10830
10831 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10832 * value.c (value_fn_field): Update.
10833 * valops.c (find_function_in_inferior)
10834 (value_allocate_space_in_inferior): Update.
10835 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10836 Update.
10837 * tui/tui-source.c (tui_source_window::set_contents): Update.
10838 * symtab.c (lookup_global_or_static_symbol)
10839 (find_function_start_sal_1, skip_prologue_sal)
10840 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10841 * symmisc.c (dump_msymbols, dump_symtab_1)
10842 (maintenance_print_one_line_table): Update.
10843 * symfile.c (init_entry_point_info, section_is_mapped)
10844 (list_overlays_command, simple_read_overlay_table)
10845 (simple_overlay_update_1): Update.
10846 * stap-probe.c (handle_stap_probe): Update.
10847 * stabsread.c (dbx_init_float_type, define_symbol)
10848 (read_one_struct_field, read_enum_type, read_range_type): Update.
10849 * source.c (info_line_command): Update.
10850 * python/python.c (gdbpy_source_objfile_script)
10851 (gdbpy_execute_objfile_script): Update.
10852 * python/py-type.c (save_objfile_types): Update.
10853 * python/py-objfile.c (py_free_objfile): Update.
10854 * python/py-inferior.c (python_new_objfile): Update.
10855 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10856 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10857 (maintenance_check_psymtabs): Update.
10858 * printcmd.c (info_address_command): Update.
10859 * objfiles.h (struct objfile) <arch>: New method, from
10860 get_objfile_arch.
10861 (get_objfile_arch): Don't declare.
10862 * objfiles.c (get_objfile_arch): Remove.
10863 (filter_overlapping_sections): Update.
10864 * minsyms.c (msymbol_is_function): Update.
10865 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10866 (output_nondebug_symbol): Update.
10867 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10868 (mdebug_expand_psymtab): Update.
10869 * machoread.c (macho_add_oso_symfile): Update.
10870 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10871 Update.
10872 * linux-fork.c (checkpoint_command): Update.
10873 * linespec.c (convert_linespec_to_sals): Update.
10874 * jit.c (finalize_symtab): Update.
10875 * infrun.c (insert_exception_resume_from_probe): Update.
10876 * ia64-tdep.c (ia64_find_unwind_table): Update.
10877 * hppa-tdep.c (internalize_unwinds): Update.
10878 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10879 Update.
10880 * gcore.c (call_target_sbrk): Update.
10881 * elfread.c (record_minimal_symbol, elf_symtab_read)
10882 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10883 (elf_gnu_ifunc_resolve_by_got): Update.
10884 * dwarf2/read.c (create_addrmap_from_index)
10885 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10886 (read_debug_names_from_section)
10887 (process_psymtab_comp_unit_reader, add_partial_symbol)
10888 (add_partial_subprogram, process_full_comp_unit)
10889 (read_file_scope, read_func_scope, read_lexical_block_scope)
10890 (read_call_site_scope, dwarf2_ranges_read)
10891 (dwarf2_record_block_ranges, dwarf2_add_field)
10892 (mark_common_block_symbol_computed, read_tag_pointer_type)
10893 (read_tag_string_type, dwarf2_init_float_type)
10894 (dwarf2_init_complex_target_type, read_base_type)
10895 (partial_die_info::read, partial_die_info::read)
10896 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10897 (dwarf2_fetch_die_loc_sect_off): Update.
10898 * dwarf2/loc.c (dwarf2_find_location_expression)
10899 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10900 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10901 (dwarf2_loc_desc_get_symbol_read_needs)
10902 (locexpr_describe_location_piece, locexpr_describe_location_1)
10903 (loclist_describe_location): Update.
10904 * dwarf2/index-write.c (write_debug_names): Update.
10905 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10906 * dtrace-probe.c (dtrace_process_dof): Update.
10907 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10908 (process_one_symbol): Update.
10909 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10910 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10911 (coff_read_enum_type): Update.
10912 * cli/cli-cmds.c (edit_command, list_command): Update.
10913 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10914 * breakpoint.c (create_overlay_event_breakpoint)
10915 (create_longjmp_master_breakpoint)
10916 (create_std_terminate_master_breakpoint)
10917 (create_exception_master_breakpoint, get_sal_arch): Update.
10918 * block.c (block_gdbarch): Update.
10919 * annotate.c (annotate_source_line): Update.
10920
10921 2020-04-17 Tom Tromey <tromey@adacore.com>
10922
10923 * auto-load.c (show_auto_load_cmd): Remove.
10924 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10925 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10926 (maintenance_print_arc_command): Remove.
10927 * tui/tui-win.c (tui_command): Remove.
10928 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10929 * tui/tui-layout.c (tui_layout_command): Remove.
10930 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10931 * python/python.c (user_set_python, user_show_python): Remove.
10932 (_initialize_python): Use add_basic_prefix_cmd,
10933 add_show_prefix_cmd.
10934 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10935 (install_gdb_commands): Use add_basic_prefix_cmd,
10936 add_show_prefix_cmd.
10937 (info_guile_command): Remove.
10938 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10939 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10940 add_show_prefix_cmd.
10941 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10942 Remove do_set and do_show parameters.
10943 * cli/cli-style.c (set_style, show_style): Remove.
10944 (_initialize_cli_style): Use add_basic_prefix_cmd,
10945 add_show_prefix_cmd.
10946 (cli_style_option::add_setshow_commands): Remove do_set and
10947 do_show parameters.
10948 (cli_style_option::add_setshow_commands): Use
10949 add_basic_prefix_cmd, add_show_prefix_cmd.
10950 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10951 (set_style_name): Remove.
10952 * cli/cli-dump.c (dump_command, append_command): Remove.
10953 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10954 (tekhex_dump_command, binary_dump_command)
10955 (binary_append_command): Remove.
10956 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10957 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10958 (init_w32_command_list): Remove; move into ...
10959 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10960 * valprint.c (set_print, show_print, set_print_raw)
10961 (show_print_raw): Remove.
10962 (_initialize_valprint): Use add_basic_prefix_cmd,
10963 add_show_prefix_cmd.
10964 * typeprint.c (set_print_type, show_print_type): Remove.
10965 (_initialize_typeprint): Use add_basic_prefix_cmd,
10966 add_show_prefix_cmd.
10967 * record.c (set_record_command, show_record_command): Remove.
10968 (_initialize_record): Use add_basic_prefix_cmd,
10969 add_show_prefix_cmd.
10970 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10971 add_show_prefix_cmd.
10972 (info_command, show_command, set_debug, show_debug): Remove.
10973 * top.h (set_history, show_history): Don't declare.
10974 * top.c (set_history, show_history): Remove.
10975 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10976 (unset_tdesc_cmd): Remove.
10977 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10978 add_show_prefix_cmd.
10979 * symtab.c (info_module_command): Remove.
10980 (_initialize_symtab): Use add_basic_prefix_cmd.
10981 * symfile.c (overlay_command): Remove.
10982 (_initialize_symfile): Use add_basic_prefix_cmd.
10983 * sparc64-tdep.c (info_adi_command): Remove.
10984 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10985 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10986 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10987 add_show_prefix_cmd.
10988 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10989 (_initialize_serial): Use add_basic_prefix_cmd,
10990 add_show_prefix_cmd.
10991 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10992 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10993 add_show_prefix_cmd.
10994 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10995 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10996 add_show_prefix_cmd.
10997 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10998 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10999 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11000 add_show_prefix_cmd.
11001 * remote.c (remote_command, set_remote_cmd): Remove.
11002 (_initialize_remote): Use add_basic_prefix_cmd.
11003 * record-full.c (set_record_full_command)
11004 (show_record_full_command): Remove.
11005 (_initialize_record_full): Use add_basic_prefix_cmd,
11006 add_show_prefix_cmd.
11007 * record-btrace.c (cmd_set_record_btrace)
11008 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11009 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11010 (cmd_show_record_btrace_pt): Remove.
11011 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 * ravenscar-thread.c (set_ravenscar_command)
11014 (show_ravenscar_command): Remove.
11015 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11016 add_show_prefix_cmd.
11017 * mips-tdep.c (show_mips_command, set_mips_command)
11018 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11019 add_show_prefix_cmd.
11020 * maint.c (maintenance_command, maintenance_info_command)
11021 (maintenance_check_command, maintenance_print_command)
11022 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11023 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11024 add_show_prefix_cmd.
11025 (show_per_command_cmd): Remove.
11026 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11027 Remove.
11028 (maintenance_show_test_settings_cmd): Remove.
11029 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11030 add_show_prefix_cmd.
11031 * maint-test-options.c (maintenance_test_options_command):
11032 Remove.
11033 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11034 * macrocmd.c (macro_command): Remove
11035 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11036 * language.c (set_check, show_check): Remove.
11037 (_initialize_language): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 * infcmd.c (unset_command): Remove.
11040 (_initialize_infcmd): Use add_basic_prefix_cmd.
11041 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11042 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11043 add_show_prefix_cmd.
11044 * go32-nat.c (go32_info_dos_command): Remove.
11045 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11046 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11047 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11048 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11049 (_initialize_frame): Use add_basic_prefix_cmd,
11050 add_show_prefix_cmd.
11051 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11052 (_initialize_dcache): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 * cp-support.c (maint_cplus_command): Remove.
11055 (_initialize_cp_support): Use add_basic_prefix_cmd.
11056 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11057 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11058 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11059 add_basic_prefix_cmd, add_show_prefix_cmd.
11060 * breakpoint.c (save_command): Remove.
11061 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11062 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11063 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11064 add_show_prefix_cmd.
11065 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11066 (set_ada_command, show_ada_command): Remove.
11067 (_initialize_ada_language): Use add_basic_prefix_cmd,
11068 add_show_prefix_cmd.
11069 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11070
11071 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11072
11073 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11074 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11075
11076 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11077
11078 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11079 warning messages.
11080
11081 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11082
11083 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11084 import table is not at beginning of .idata section.
11085
11086 2020-04-16 Pedro Alves <palves@redhat.com>
11087
11088 * inferior.c (delete_inferior): Use delete operator directly
11089 instead of delete_program_space.
11090 * progspace.c (add_program_space): New, factored out from
11091 program_space::program_space.
11092 (remove_program_space): New, factored out from
11093 delete_program_space.
11094 (program_space::program_space): Remove intro comment. Rewrite.
11095 (program_space::~program_space): Remove intro comment. Call
11096 remove_program_space.
11097 (delete_program_space): Delete.
11098 * progspace.h (program_space::program_space): Make explicit. Move
11099 intro comment here, adjusted.
11100 (program_space::~program_space): Move intro comment here,
11101 adjusted.
11102 (delete_program_space): Remove.
11103
11104 2020-04-16 Tom Tromey <tromey@adacore.com>
11105
11106 * windows-nat.c (windows_nat::handle_access_violation): New
11107 function.
11108 * nat/windows-nat.h (handle_access_violation): Declare.
11109 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11110 windows-nat.c. Call handle_access_violation.
11111
11112 2020-04-16 Tom de Vries <tdevries@suse.de>
11113
11114 PR symtab/25791
11115 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11116 CUs without psymtab.
11117
11118 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11119
11120 * python/python.c (do_start_initialization): Don't call
11121 PyEval_InitThreads for Python 3.9 and beyond.
11122
11123 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11124
11125 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11126 thread functions.
11127 (obsd_nat_target::wait): Likewise.
11128
11129 2020-04-15 Tom Tromey <tromey@adacore.com>
11130
11131 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11132 (DEBUG_EXCEPT): Use debug_printf.
11133
11134 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11135
11136 * completer.c (class completion_tracker::completion_hash_entry)
11137 <hash_name>: New member function.
11138 (completion_tracker::discard_completions): New callback to hash a
11139 completion_hash_entry, pass this to htab_create_alloc.
11140
11141 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11142
11143 * windows-nat.c (windows_make_so): Warn rather than stopping with
11144 an error if realpath() fails.
11145
11146 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11147
11148 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11149 (nbsd_nat_target::info_proc): Add do_status.
11150
11151 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11152 Tom de Vries <tdevries@suse.de>
11153
11154 PR symtab/25718
11155 * psympriv.h (struct partial_symtab::read_symtab)
11156 (struct partial_symtab::expand_psymtab)
11157 (struct partial_symtab::read_dependencies): Update comments.
11158 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11159 read_symtab for includer.
11160 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11161 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11162 (struct dwarf2_include_psymtab::m_readin): Remove.
11163 (struct dwarf2_include_psymtab::includer): New member function.
11164 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11165
11166 2020-04-14 Tom de Vries <tdevries@suse.de>
11167
11168 PR symtab/25720
11169 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11170 with NULL symbol_matcher and lookup_name.
11171 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11172 and lookup_name.
11173 * dwarf2/read.c (dw2_expand_symtabs_matching)
11174 (dw2_debug_names_expand_symtabs_matching): Same.
11175 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11176 Make lookup_name a pointer. Update comment.
11177 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11178 lookup_name being a pointer.
11179 * symfile.c (expand_symtabs_matching): Same.
11180 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11181 * linespec.c (iterate_over_all_matching_symtabs): Same.
11182
11183 2020-04-13 Tom Tromey <tom@tromey.com>
11184
11185 * run-on-main-thread.c: Update include.
11186 * unittests/main-thread-selftests.c: Update include.
11187 * tui/tui-win.c: Update include.
11188 * tui/tui-io.c: Update include.
11189 * tui/tui-interp.c: Update include.
11190 * tui/tui-hooks.c: Update include.
11191 * top.h: Update include.
11192 * top.c: Update include.
11193 * ser-base.c: Update include.
11194 * remote.c: Update include.
11195 * remote-notif.c: Update include.
11196 * remote-fileio.c: Update include.
11197 * record-full.c: Update include.
11198 * record-btrace.c: Update include.
11199 * python/python.c: Update include.
11200 * posix-hdep.c: Update include.
11201 * mingw-hdep.c: Update include.
11202 * mi/mi-main.c: Update include.
11203 * mi/mi-interp.c: Update include.
11204 * main.c: Update include.
11205 * linux-nat.c: Update include.
11206 * interps.c: Update include.
11207 * infrun.c: Update include.
11208 * inf-loop.c: Update include.
11209 * event-top.c: Update include.
11210 * event-loop.c: Move to ../gdbsupport/.
11211 * event-loop.h: Move to ../gdbsupport/.
11212 * async-event.h: Update include.
11213 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11214
11215 2020-04-13 Tom Tromey <tom@tromey.com>
11216
11217 * tui/tui-win.c: Include async-event.h.
11218 * remote.c: Include async-event.h.
11219 * remote-notif.c: Include async-event.h.
11220 * record-full.c: Include async-event.h.
11221 * record-btrace.c: Include async-event.h.
11222 * infrun.c: Include async-event.h.
11223 * event-top.c: Include async-event.h.
11224 * event-loop.h: Move some declarations to async-event.h.
11225 * event-loop.c: Don't include ser-event.h or top.h. Move some
11226 code to async-event.c.
11227 * async-event.h: New file.
11228 * async-event.c: New file.
11229 * Makefile.in (COMMON_SFILES): Add async-event.c.
11230 (HFILES_NO_SRCDIR): Add async-event.h.
11231
11232 2020-04-13 Tom Tromey <tom@tromey.com>
11233
11234 * utils.c (flush_streams): New function.
11235 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11236
11237 2020-04-13 Tom Tromey <tom@tromey.com>
11238
11239 * event-loop.c (handle_file_event): Use warning, not
11240 printf_unfiltered.
11241
11242 2020-04-13 Tom Tromey <tom@tromey.com>
11243
11244 * event-loop.c: Include <chrono>.
11245
11246 2020-04-13 Tom Tromey <tom@tromey.com>
11247
11248 * gdb_select.h: Move to ../gdbsupport/.
11249 * event-loop.c: Update include path.
11250 * top.c: Update include path.
11251 * ser-base.c: Update include path.
11252 * ui-file.c: Update include path.
11253 * ser-tcp.c: Update include path.
11254 * guile/scm-ports.c: Update include path.
11255 * posix-hdep.c: Update include path.
11256 * ser-unix.c: Update include path.
11257 * gdb_usleep.c: Update include path.
11258 * mingw-hdep.c: Update include path.
11259 * inflow.c: Update include path.
11260 * infrun.c: Update include path.
11261 * event-top.c: Update include path.
11262
11263 2020-04-13 Tom Tromey <tom@tromey.com>
11264
11265 * configure: Rebuild.
11266 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11267
11268 2020-04-13 Tom Tromey <tom@tromey.com>
11269
11270 * event-loop.h (start_event_loop): Don't declare.
11271 * event-loop.c (start_event_loop): Move...
11272 * main.c (start_event_loop): ...here. Now static.
11273
11274 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11275
11276 * MAINTAINERS: Update my email address.
11277
11278 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11279
11280 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11281 IP_ALL.
11282
11283 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11284
11285 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11286 (nbsd_nat_target::info_proc): Add do_cmdline.
11287
11288 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11289
11290 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11291 (nbsd_nat_target::info_proc): Add do_cwd.
11292
11293 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11294
11295 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11296
11297 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11298
11299 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11300 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11301 (nbsd_nat_target::info_proc): New functions.
11302 * nbsd-nat.c (kinfo_get_vmmap): New function.
11303 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11304 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11305 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11306 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11307 functions.
11308 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11309 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11310 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11311 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11312 (KINFO_VME_FLAG_GROWS_DOWN): New.
11313
11314 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11315
11316 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11317 bit shift.
11318
11319 2020-04-10 Tom Tromey <tromey@adacore.com>
11320
11321 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11322
11323 2020-04-10 Tom Tromey <tromey@adacore.com>
11324
11325 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11326 separate debug files.
11327
11328 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11329
11330 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11331 Move to...
11332 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11333 ... here.
11334 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11335 Check for STATUS_WX86_BREAKPOINT.
11336 (windows_nat_target::wait): Same.
11337
11338 2020-04-10 Tom de Vries <tdevries@suse.de>
11339
11340 PR cli/25808
11341 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11342
11343 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11344
11345 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11346 (Write After Approval): Remove Tom de Vries.
11347
11348 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11349
11350 revert partially:
11351 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11352
11353 * buildsym.c (record_line): Fix undefined behavior and preserve
11354 lines at eof.
11355
11356 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11357
11358 * auxv.h (svr4_auxv_parse): New.
11359 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11360 and generic_auxv_parse.
11361 (svr4_auxv_parse): Add.
11362 * obsd-tdep.c: Include "auxv.h".
11363 (obsd_auxv_parse): Remove.
11364 (obsd_init_abi): Remove comment.
11365 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11366 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11367 * nbsd-tdep.c: Include "auxv.h".
11368 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11369
11370 2020-04-08 Tom Tromey <tromey@adacore.com>
11371
11372 * nat/windows-nat.h (last_wait_event): Don't declare.
11373 (wait_for_debug_event): Update comment.
11374 * nat/windows-nat.c (last_wait_event): Now static.
11375
11376 2020-04-08 Tom Tromey <tromey@adacore.com>
11377
11378 * windows-nat.c (wait_for_debug_event): Move to
11379 nat/windows-nat.c.
11380 * nat/windows-nat.h (wait_for_debug_event): Declare.
11381 * nat/windows-nat.c (wait_for_debug_event): Move from
11382 windows-nat.c. No longer static.
11383
11384 2020-04-08 Tom Tromey <tromey@adacore.com>
11385
11386 * windows-nat.c (get_windows_debug_event): Use
11387 fetch_pending_stop.
11388 * nat/windows-nat.h (fetch_pending_stop): Declare.
11389 * nat/windows-nat.c (fetch_pending_stop): New function.
11390
11391 2020-04-08 Tom Tromey <tromey@adacore.com>
11392
11393 * windows-nat.c (windows_continue): Use matching_pending_stop and
11394 continue_last_debug_event.
11395 * nat/windows-nat.h (matching_pending_stop)
11396 (continue_last_debug_event): Declare.
11397 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11398 (matching_pending_stop, continue_last_debug_event): New
11399 functions.
11400
11401 2020-04-08 Tom Tromey <tromey@adacore.com>
11402
11403 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11404 (handle_exception_result): Move to nat/windows-nat.h.
11405 (DEBUG_EXCEPTION_SIMPLE): Remove.
11406 (windows_nat::handle_ms_vc_exception): New function.
11407 (handle_exception): Move to nat/windows-nat.c.
11408 (get_windows_debug_event): Update.
11409 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11410 nat/windows-nat.c.
11411 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11412 (handle_exception_result): Move from windows-nat.c.
11413 (handle_exception): Declare.
11414 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11415 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11416 windows-nat.c.
11417
11418 2020-04-08 Tom Tromey <tromey@adacore.com>
11419
11420 * windows-nat.c (exception_count, event_count): Remove.
11421 (handle_exception, get_windows_debug_event)
11422 (do_initial_windows_stuff): Update.
11423
11424 2020-04-08 Tom Tromey <tromey@adacore.com>
11425
11426 * windows-nat.c (windows_nat::handle_load_dll)
11427 (windows_nat::handle_unload_dll): Rename. No longer static.
11428 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11429 Declare.
11430
11431 2020-04-08 Tom Tromey <tromey@adacore.com>
11432
11433 * complaints.h (stop_whining): Declare at top-level.
11434 (complaint): Don't declare stop_whining.
11435
11436 2020-04-08 Tom Tromey <tromey@adacore.com>
11437
11438 * windows-nat.c (windows_nat::handle_output_debug_string):
11439 Rename. No longer static.
11440 * nat/windows-nat.h (handle_output_debug_string): Declare.
11441
11442 2020-04-08 Tom Tromey <tromey@adacore.com>
11443
11444 * windows-nat.c (current_process_handle, current_process_id)
11445 (main_thread_id, last_sig, current_event, last_wait_event)
11446 (current_windows_thread, desired_stop_thread_id, pending_stops)
11447 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11448 (display_selectors, fake_create_process)
11449 (get_windows_debug_event): Update.
11450 * nat/windows-nat.h (current_process_handle, current_process_id)
11451 (main_thread_id, last_sig, current_event, last_wait_event)
11452 (current_windows_thread, desired_stop_thread_id, pending_stops)
11453 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11454 * nat/windows-nat.c (current_process_handle, current_process_id)
11455 (main_thread_id, last_sig, current_event, last_wait_event)
11456 (current_windows_thread, desired_stop_thread_id, pending_stops)
11457 (siginfo_er): New globals. Move from windows-nat.c.
11458
11459 2020-04-08 Tom Tromey <tromey@adacore.com>
11460
11461 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11462 (handle_load_dll): Update.
11463 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11464
11465 2020-04-08 Tom Tromey <tromey@adacore.com>
11466
11467 * windows-nat.c (enum thread_disposition_type): Move to
11468 nat/windows-nat.h.
11469 (windows_nat::thread_rec): Rename from thread_rec. No longer
11470 static.
11471 (windows_add_thread, windows_nat_target::fetch_registers)
11472 (windows_nat_target::store_registers, handle_exception)
11473 (windows_nat_target::resume, get_windows_debug_event)
11474 (windows_nat_target::get_tib_address)
11475 (windows_nat_target::thread_name)
11476 (windows_nat_target::thread_alive): Update.
11477 * nat/windows-nat.h (enum thread_disposition_type): Move from
11478 windows-nat.c.
11479 (thread_rec): Declare.
11480
11481 2020-04-08 Tom Tromey <tromey@adacore.com>
11482
11483 * windows-nat.c: Add "using namespace".
11484 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11485 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11486
11487 2020-04-08 Tom Tromey <tromey@adacore.com>
11488
11489 * nat/windows-nat.h (struct windows_thread_info): Declare
11490 destructor.
11491 * nat/windows-nat.c (~windows_thread_info): New.
11492
11493 2020-04-08 Tom Tromey <tromey@adacore.com>
11494
11495 PR gdb/22992
11496 * windows-nat.c (current_event): Update comment.
11497 (last_wait_event, desired_stop_thread_id): New globals.
11498 (struct pending_stop): New.
11499 (pending_stops): New global.
11500 (windows_nat_target) <stopped_by_sw_breakpoint>
11501 <supports_stopped_by_sw_breakpoint>: New methods.
11502 (windows_fetch_one_register): Add assertions. Adjust PC.
11503 (windows_continue): Handle pending stops. Suspend other threads
11504 when stepping. Use last_wait_event
11505 (wait_for_debug_event): New function.
11506 (get_windows_debug_event): Use wait_for_debug_event. Handle
11507 pending stops. Queue spurious stops.
11508 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11509 (windows_nat_target::kill): Use wait_for_debug_event.
11510 * nat/windows-nat.h (struct windows_thread_info)
11511 <stopped_at_software_breakpoint>: New field.
11512 * nat/windows-nat.c (windows_thread_info::resume): Clear
11513 stopped_at_software_breakpoint.
11514
11515 2020-04-08 Tom Tromey <tromey@adacore.com>
11516
11517 * windows-nat.c (enum thread_disposition_type): New.
11518 (thread_rec): Replace "get_context" parameter with "disposition";
11519 change type.
11520 (windows_add_thread, windows_nat_target::fetch_registers)
11521 (windows_nat_target::store_registers, handle_exception)
11522 (windows_nat_target::resume, get_windows_debug_event)
11523 (windows_nat_target::get_tib_address)
11524 (windows_nat_target::thread_name)
11525 (windows_nat_target::thread_alive): Update.
11526
11527 2020-04-08 Tom Tromey <tromey@adacore.com>
11528
11529 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11530 (windows_continue): Use windows_continue::resume.
11531 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11532 resume>: Declare new methods.
11533 * nat/windows-nat.c: New file.
11534 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11535
11536 2020-04-08 Tom Tromey <tromey@adacore.com>
11537
11538 * windows-nat.c (windows_add_thread, windows_delete_thread)
11539 (windows_nat_target::fetch_registers)
11540 (windows_nat_target::store_registers, fake_create_process)
11541 (windows_nat_target::resume, windows_nat_target::resume)
11542 (get_windows_debug_event, windows_nat_target::wait)
11543 (windows_nat_target::pid_to_str)
11544 (windows_nat_target::get_tib_address)
11545 (windows_nat_target::get_ada_task_ptid)
11546 (windows_nat_target::thread_name)
11547 (windows_nat_target::thread_alive): Use lwp, not tid.
11548
11549 2020-04-08 Tom Tromey <tromey@adacore.com>
11550
11551 * windows-nat.c (handle_exception)
11552 (windows_nat_target::thread_name): Update.
11553 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11554 <name>: Now unique_xmalloc_ptr.
11555
11556 2020-04-08 Tom Tromey <tromey@adacore.com>
11557
11558 * windows-nat.c (thread_rec)
11559 (windows_nat_target::fetch_registers): Update.
11560 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11561 Update comment.
11562 <debug_registers_changed, reload_context>: Now bool.
11563
11564 2020-04-08 Tom Tromey <tromey@adacore.com>
11565
11566 * windows-nat.c (windows_add_thread): Use new.
11567 (windows_init_thread_list, windows_delete_thread): Use delete.
11568 (get_windows_debug_event): Update.
11569 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11570 destructor, and initializers.
11571
11572 2020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 * windows-nat.c (struct windows_thread_info): Remove.
11575 * nat/windows-nat.h: New file.
11576
11577 2020-04-08 Tom Tromey <tromey@adacore.com>
11578
11579 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11580 (thread_rec, windows_add_thread, windows_delete_thread)
11581 (windows_continue): Update.
11582
11583 2020-04-08 Tom Tromey <tromey@adacore.com>
11584
11585 * windows-nat.c (struct windows_thread_info): Remove typedef.
11586 (thread_head): Remove.
11587 (thread_list): New global.
11588 (thread_rec, windows_add_thread, windows_init_thread_list)
11589 (windows_delete_thread, windows_continue): Update.
11590
11591 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11592
11593 * windows-tdep.h (windows_init_abi): Add comment.
11594 (cygwin_init_abi): New declaration.
11595 * windows-tdep.c: Split signal enumeration in two, one for
11596 Windows and one for Cygwin.
11597 (windows_gdb_signal_to_target): Only deal with signal of the
11598 Windows OS ABI.
11599 (cygwin_gdb_signal_to_target): New function.
11600 (windows_init_abi): Rename to windows_init_abi_common, don't set
11601 gdb_signal_to_target gdbarch method. Add new new function with
11602 this name.
11603 (cygwin_init_abi): New function.
11604 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11605 comment. Don't call windows_init_abi.
11606 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11607 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11608 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11609 i386_windows_init_abi_common, don't call windows_init_abi. Add
11610 a new function of this name.
11611 (i386_cygwin_init_abi): New function.
11612 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11613 OS ABI Cygwin.
11614
11615 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11616
11617 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11618 parameter.c.
11619 (dwarf2_read_gdb_index): Update.
11620
11621 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11622
11623 * nbsd-tdep.c: Include "objfiles.h".
11624 (nbsd_skip_solib_resolver): New.
11625 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11626
11627 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11628
11629 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11630 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11631 with DW_LLE_base_addressx are being emitted in DWARFv5.
11632 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11633 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11634 unsigned integer.
11635
11636 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11637
11638 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11639 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11640 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11641 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11642 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11643 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11644 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11645
11646
11647 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11648
11649 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11650 (read_loclist_index): New function definition.
11651 (lookup_loclist_base): New function definition.
11652 (read_loclist_header): New function definition.
11653 (dwarf2_cu): Add loclist_base and loclist_header field.
11654 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11655 (read_full_die_1): Read the value of DW_AT_loclists_base.
11656 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11657 (read_attribute_value): Handle DW_FORM_loclistx.
11658 (skip_one_die): Handle DW_FORM_loclistx.
11659 (loclist_header): New structure declaration.
11660 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11661
11662 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11665 constructor. Remove `addr` parameter from other constructor and
11666 add `per_cu` parameter.
11667 * dwarf2/read.c (create_partial_symtab): Update.
11668
11669 2020-04-07 Tom de Vries <tdevries@suse.de>
11670
11671 PR symtab/25796
11672 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11673 (partial_die_info::fixup): Inherit has_const_value.
11674
11675 2020-04-07 Tom de Vries <tdevries@suse.de>
11676
11677 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11678 symbols without address.
11679
11680 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11681
11682 * nbsd-nat.h (struct thread_info): Add forward declaration.
11683 (nbsd_nat_target::thread_alive): Add.
11684 (nbsd_nat_target::thread_name): Likewise.
11685 (nbsd_nat_target::update_thread_list): Likewise.
11686 (update_thread_list::post_attach): Likewise.
11687 (post_attach::pid_to_str): Likewise.
11688 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11689 (nbsd_thread_lister): Add.
11690 (nbsd_nat_target::thread_alive): Likewise.
11691 (nbsd_nat_target::thread_name): Likewise.
11692 (nbsd_add_threads): Likewise.
11693 (update_thread_list::post_attach): Likewise.
11694 (nbsd_nat_target::update_thread_list): Likewise.
11695 (post_attach::pid_to_str): Likewise.
11696
11697 2020-04-06 Tom Tromey <tromey@adacore.com>
11698
11699 * ada-valprint.c (print_variant_part): Extract the variant field.
11700 (print_field_values): Use the field as the outer value when
11701 recursing.
11702
11703 2020-04-06 Tom Tromey <tromey@adacore.com>
11704
11705 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11706 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11707 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11708 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11709 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11710
11711 2020-04-06 Tom Tromey <tromey@adacore.com>
11712
11713 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11714 TYPE_CODE_ERROR.
11715
11716 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11717
11718 * nbsd-tdep.c: Include "gdbarch.h".
11719 Define enum with NetBSD signal numbers.
11720 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11721 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11722 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11723 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11724 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11725 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11726 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11727 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11728 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11729 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11730 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11731 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11732
11733 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11734
11735 PR gdb/25325
11736 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11737
11738 2020-04-03 Tom Tromey <tromey@adacore.com>
11739
11740 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11741 Read constant block.
11742
11743 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11744
11745 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11746 (gdb_bfd_get_full_section_contents): New declaration.
11747 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11748 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11749 gdb_bfd_get_full_section_contents.
11750
11751 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11752
11753 * exec.c (build_section_table): Replace internal_error with
11754 gdb_assert.
11755 (section_table_xfer_memory_partial): Likewise.
11756 * mdebugread.c (parse_partial_symbols): Likewise.
11757 * psymtab.c (lookup_partial_symbol): Likewise.
11758 * utils.c (wrap_here): Likewise.
11759
11760 2020-04-02 Tom Tromey <tromey@adacore.com>
11761
11762 * f-lang.c (build_fortran_types): Use arch_type to initialize
11763 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11764
11765 2020-04-02 Tom Tromey <tromey@adacore.com>
11766
11767 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11768 of attributes.
11769
11770 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11771 Bernd Edlinger <bernd.edlinger@hotmail.de>
11772 Tom Tromey <tromey@adacore.com>
11773
11774 * buildsym.c (buildsym_compunit::record_line): Remove
11775 deduplication code.
11776
11777 2020-04-02 Tom de Vries <tdevries@suse.de>
11778
11779 PR ada/24671
11780 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11781
11782 2020-04-02 Tom de Vries <tdevries@suse.de>
11783
11784 * dwarf2/read.c (dwarf2_gdb_index_functions,
11785 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11786 NULL.
11787 * psymtab.c (psym_lookup_global_symbol_language): New function.
11788 (psym_functions): Init psym_lookup_global_symbol_language with
11789 psym_lookup_global_symbol_language.
11790 * symfile-debug.c (debug_sym_quick_functions): Init
11791 lookup_global_symbol_language with NULL.
11792 * symfile.c (set_initial_language): Remove fixme comment.
11793 * symfile.h (struct quick_symbol_functions): Add
11794 lookup_global_symbol_language.
11795 * symtab.c (find_quick_global_symbol_language): New function.
11796 (find_main_name): Use find_quick_global_symbol_language.
11797
11798 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11801
11802 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11803
11804 * buildsym.c (record_line): Fix undefined behavior and preserve
11805 lines at eof.
11806
11807 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11808
11809 * buildsym.c (record_line): Fix the resizing condition.
11810
11811 2020-04-01 Tom Tromey <tom@tromey.com>
11812
11813 * value.h (value_literal_complex): Add comment.
11814 * valops.c (value_literal_complex): Refer to value.h.
11815
11816 2020-04-01 Tom Tromey <tom@tromey.com>
11817
11818 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11819 (scalar_type): New rule, from typebase.
11820 (typebase): Use scalar_type. Recognize complex types.
11821 (field_name): Handle FLOAT_KEYWORD.
11822 (ident_tokens): Add _Complex and __complex__.
11823
11824 2020-04-01 Tom Tromey <tom@tromey.com>
11825
11826 PR exp/25299:
11827 * valarith.c (promotion_type, complex_binop): New functions.
11828 (scalar_binop): Handle complex numbers. Use promotion_type.
11829 (value_pos, value_neg, value_complement): Handle complex numbers.
11830
11831 2020-04-01 Tom Tromey <tom@tromey.com>
11832
11833 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11834 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11835 (parse_number): Handle complex numbers.
11836
11837 2020-04-01 Tom Tromey <tom@tromey.com>
11838
11839 * c-valprint.c (c_decorations): Change complex suffix to "i".
11840
11841 2020-04-01 Tom Tromey <tom@tromey.com>
11842
11843 * valprint.c (generic_value_print_complex): Use accessors.
11844 * value.h (value_real_part, value_imaginary_part): Declare.
11845 * valops.c (value_real_part, value_imaginary_part): New
11846 functions.
11847 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11848
11849 2020-04-01 Tom Tromey <tom@tromey.com>
11850
11851 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11852 (read_range_type): Update.
11853 * mdebugread.c (basic_type): Update.
11854 * go-lang.c (build_go_types): Use init_complex_type.
11855 * gdbtypes.h (struct main_type) <complex_type>: New member.
11856 (init_complex_type): Update.
11857 (arch_complex_type): Don't declare.
11858 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11859 Make name if none given. Use alloc_type_copy. Look for cached
11860 complex type.
11861 (arch_complex_type): Remove.
11862 (gdbtypes_post_init): Use init_complex_type.
11863 * f-lang.c (build_fortran_types): Use init_complex_type.
11864 * dwarf2/read.c (read_base_type): Update.
11865 * d-lang.c (build_d_types): Use init_complex_type.
11866 * ctfread.c (read_base_type): Update.
11867
11868 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11869
11870 * infrun.c (stop_all_threads): Update assertion, plus when
11871 stopping threads, take into account that we might be trying
11872 to stop an all-stop target.
11873 (stop_waiting): Call 'stop_all_threads' if there exists a
11874 non-stop target.
11875
11876 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11877
11878 * target.h (exists_non_stop_target): New function declaration.
11879 * target.c (exists_non_stop_target): New function.
11880
11881 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11882
11883 PR gdb/24789
11884 * eval.c (is_integral_or_integral_reference): New function.
11885 (evaluate_subexp_standard): Allow integer references in
11886 pointer arithmetic.
11887
11888 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11889
11890 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11891 check for no ptid in the stop reply when the target is non-stop.
11892
11893 2020-04-01 Tom Tromey <tromey@adacore.com>
11894
11895 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11896 "name" parameter to rvalue reference. Initialize m_name_holder.
11897 <lookup_name_info>: New overloads.
11898 <name>: Return gdb::string_view.
11899 <c_str>: New method.
11900 <make_ignore_params>: Update.
11901 <search_name_hash>: Update.
11902 <language_lookup_name>: Return const char *.
11903 <m_name>: Change type.
11904 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11905 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11906 (lookup_name_info::match_any): Update.
11907 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11908 Update.
11909 * minsyms.c (linkage_name_str): Update.
11910 * language.c (default_symbol_name_matcher): Update.
11911 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11912 Update.
11913 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11914 (ada_lookup_name_info::ada_lookup_name_info): Update.
11915 (literal_symbol_name_matcher): Update.
11916
11917 2020-04-01 Tom Tromey <tromey@adacore.com>
11918
11919 * psymtab.c (psymtab_search_name): Remove function.
11920 (psym_lookup_symbol): Create search name and lookup name here.
11921 (lookup_partial_symbol): Remove "name" parameter; add
11922 lookup_name.
11923 (psym_expand_symtabs_for_function): Update.
11924
11925 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11926
11927 PR tui/25597:
11928 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11929
11930 2020-03-31 Tom Tromey <tromey@adacore.com>
11931
11932 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11933 memcpy.
11934
11935 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11936
11937 * features/riscv/32bit-csr.xml: Regenerated.
11938 * features/riscv/64bit-csr.xml: Regenerated.
11939
11940 2020-03-30 Tom Tromey <tromey@adacore.com>
11941
11942 * ada-valprint.c (print_variant_part): Update.
11943 * ada-lang.h (ada_which_variant_applies): Update.
11944 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11945 outer_valaddr parameters; replace with "outer" value parameter.
11946 (to_fixed_variant_branch_type): Update.
11947
11948 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11949
11950 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11951 <list>. Remove inclusion of observable.h.
11952 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11953 (struct arch_lwp_info): New struct.
11954 (class ppc_linux_dreg_interface): New class.
11955 (struct ppc_linux_process_info): New struct.
11956 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11957 <low_new_clone, low_forget_process, low_prepare_to_resume>
11958 <copy_thread_dreg_state, mark_thread_stale>
11959 <mark_debug_registers_changed, register_hw_breakpoint>
11960 <clear_hw_breakpoint, register_wp, clear_wp>
11961 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11962 <num_memory_accesses, get_trigger_type>
11963 <create_watchpoint_request, hwdebug_point_cmp>
11964 <init_arch_lwp_info, get_arch_lwp_info>
11965 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11966 methods.
11967 <struct ptid_hash>: New inner struct.
11968 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11969 members.
11970 (saved_dabr_value, hwdebug_info, max_slots_number)
11971 (struct hw_break_tuple, struct thread_points, ppc_threads)
11972 (have_ptrace_hwdebug_interface)
11973 (hwdebug_find_thread_points_by_tid)
11974 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11975 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11976 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11977 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11978 use m_dreg_interface.
11979 (hwdebug_point_cmp): Change to...
11980 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11981 reference arguments instead of pointers.
11982 (ppc_linux_nat_target::ranged_break_num_registers): Use
11983 m_dreg_interface.
11984 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11985 m_dreg_interface. Call register_hw_breakpoint.
11986 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11987 m_dreg_interface. Call clear_hw_breakpoint.
11988 (get_trigger_type): Change to...
11989 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11990 comment.
11991 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11992 use m_dreg_interface. Call register_hw_breakpoint.
11993 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11994 use m_dreg_interface. Call clear_hw_breakpoint.
11995 (can_use_watchpoint_cond_accel): Change to...
11996 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11997 method. Update comment, use m_dreg_interface and
11998 m_process_info.
11999 (calculate_dvc): Change to...
12000 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12001 m_dreg_interface.
12002 (num_memory_accesses): Change to...
12003 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12004 (check_condition): Change to...
12005 (ppc_linux_nat_target::check_condition): ...this method.
12006 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12007 comment, use m_dreg_interface.
12008 (create_watchpoint_request): Change to...
12009 (ppc_linux_nat_target::create_watchpoint_request): ...this
12010 method. Use m_dreg_interface.
12011 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12012 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12013 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12014 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12015 (ppc_linux_nat_target::low_forget_process)
12016 (ppc_linux_nat_target::low_new_fork)
12017 (ppc_linux_nat_target::low_new_clone)
12018 (ppc_linux_nat_target::low_delete_thread)
12019 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12020 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12021 only call mark_thread_stale.
12022 (ppc_linux_thread_exit): Remove.
12023 (ppc_linux_nat_target::stopped_data_address): Change to...
12024 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12025 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12026 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12027 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12028 comment. Call low_stopped_data_address.
12029 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12030 m_dreg_interface.
12031 (ppc_linux_nat_target::masked_watch_num_registers): Use
12032 m_dreg_interface.
12033 (ppc_linux_nat_target::copy_thread_dreg_state)
12034 (ppc_linux_nat_target::mark_thread_stale)
12035 (ppc_linux_nat_target::mark_debug_registers_changed)
12036 (ppc_linux_nat_target::register_hw_breakpoint)
12037 (ppc_linux_nat_target::clear_hw_breakpoint)
12038 (ppc_linux_nat_target::register_wp)
12039 (ppc_linux_nat_target::clear_wp)
12040 (ppc_linux_nat_target::init_arch_lwp_info)
12041 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12042 (_initialize_ppc_linux_nat): Remove observer callback.
12043
12044 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12045
12046 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12047 (ppc_linux_nat_target::auxv_parse)
12048 (ppc_linux_nat_target::read_description)
12049 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12050 Move up.
12051
12052 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12053
12054 * linux-nat.h (low_new_clone): New method.
12055 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12056
12057 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12058
12059 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12060 (dbx_expand_psymtab): ... this.
12061 (start_psymtab): Update.
12062 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12063 (mdebug_expand_psymtab): ... this.
12064 (parse_partial_symbols): Update.
12065 (new_psymtab): Update.
12066 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12067 (xcoff_expand_psymtab): ... this.
12068 (xcoff_start_psymtab): Update.
12069
12070 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12071
12072 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12073 <expand_dependencies>: ... this.
12074 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12075 (partial_symtab::expand_dependencies): ... this.
12076 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12077 Update.
12078 (dwarf2_psymtab::expand_psymtab): Update.
12079 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12080 * mdebugread.c (psymtab_to_symtab_1): Update.
12081 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12082
12083 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12084
12085 * psympriv.h (discard_psymtab): Remove.
12086 * dbxread.c (dbx_end_psymtab): Update.
12087 * xcoffread.c (xcoff_end_psymtab): Update.
12088
12089 2020-03-28 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12092 comment.
12093
12094 2020-03-28 Tom Tromey <tom@tromey.com>
12095
12096 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12097
12098 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12099
12100 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12101
12102 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12103
12104 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12105
12106 2020-03-26 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12109 (mark_common_block_symbol_computed, read_tag_string_type)
12110 (attr_to_dynamic_prop, read_subrange_type): Update.
12111 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12112 to be methods on struct attribute.
12113 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12114 (read_call_site_scope, partial_die_info::read)
12115 (partial_die_info::read, lookup_die_type, follow_die_ref):
12116 Update.
12117 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12118 from dwarf2_get_ref_die_offset.
12119 (attribute::constant_value): New method, from
12120 dwarf2_get_attr_constant_value.
12121 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12122 Declare method.
12123 <constant_value>: New method.
12124
12125 2020-03-26 Tom Tromey <tom@tromey.com>
12126
12127 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12128 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12129 (dwarf_type_encoding_name): Move to stringify.c.
12130 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12131 * dwarf2/stringify.c: New file.
12132 * dwarf2/stringify.h: New file.
12133
12134 2020-03-26 Tom Tromey <tom@tromey.com>
12135
12136 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12137 Rewrite.
12138
12139 2020-03-26 Tom Tromey <tom@tromey.com>
12140
12141 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12142 methods.
12143 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12144 (lookup_ranges_base): Likewise.
12145 (read_cutu_die_from_dwo, read_full_die_1): Update.
12146
12147 2020-03-26 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2/read.c (read_import_statement, read_file_scope)
12150 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12151 (read_lexical_block_scope, read_call_site_scope)
12152 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12153 (handle_struct_member_die, process_structure_scope)
12154 (update_enumeration_type_from_children)
12155 (process_enumeration_scope, read_array_type, read_common_block)
12156 (read_namespace, read_module, read_subroutine_type): Update.
12157 (sibling_die): Remove.
12158
12159 2020-03-26 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12162 (build_type_psymtabs_reader, read_structure_type)
12163 (read_enumeration_type, read_full_die_1): Update.
12164 (dwarf2_attr_no_follow): Move to die.h.
12165 * dwarf2/die.h (struct die_info) <attr>: New method.
12166
12167 2020-03-26 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12170 <base_address>: Now an optional.
12171 (dwarf2_find_base_address, dwarf2_rnglists_process)
12172 (dwarf2_ranges_process, fill_in_loclist_baton)
12173 (dwarf2_symbol_mark_computed): Update.
12174
12175 2020-03-26 Tom Tromey <tom@tromey.com>
12176
12177 * dwarf2/read.c (struct die_info): Move to die.h.
12178 * dwarf2/die.h: New file.
12179
12180 2020-03-26 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12183 * dwarf2/read.c
12184 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12185 Move to line-header.c.
12186 (read_checked_initial_length_and_offset, read_formatted_entries):
12187 Likewise.
12188 (dwarf_decode_line_header): Split into two.
12189 * dwarf2/line-header.c
12190 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12191 Move from read.c.
12192 (read_checked_initial_length_and_offset, read_formatted_entries):
12193 Likewise.
12194 (dwarf_decode_line_header): New function, split from read.c.
12195
12196 2020-03-26 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12199 Declare method.
12200 * dwarf2/read.c (read_attribute_value): Update.
12201 (dwarf2_per_objfile::read_line_string): Rename from
12202 read_indirect_line_string.
12203 (read_formatted_entries): Update.
12204
12205 2020-03-26 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12208 variable.
12209
12210 2020-03-26 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12213 const.
12214 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12215 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12216 parameter const.
12217
12218 2020-03-26 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12221 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12222 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12223 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12224
12225 2020-03-26 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12228 file_names_size, file_full_name, file_file_name>: Use const.
12229 <file_name_at, file_names>: Add const overload.
12230 * dwarf2/line-header.c (line_header::file_file_name)
12231 (line_header::file_full_name): Update.
12232
12233 2020-03-26 Tom Tromey <tom@tromey.com>
12234
12235 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12236 (macro_start_file, consume_improper_spaces)
12237 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12238 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12239 (dwarf_decode_macros): Move to macro.c.
12240 * dwarf2/macro.c: New file.
12241 * dwarf2/macro.h: New file.
12242 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12243
12244 2020-03-26 Tom Tromey <tom@tromey.com>
12245
12246 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12247 method.
12248 * dwarf2/section.c: New method. From
12249 read_indirect_string_at_offset_from.
12250 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12251 (read_indirect_string_at_offset_from): Move to section.c.
12252 (read_indirect_string_at_offset): Rewrite.
12253 (read_indirect_line_string_at_offset): Remove.
12254 (read_indirect_string, read_indirect_line_string)
12255 (dwarf_decode_macro_bytes): Update.
12256
12257 2020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/section.h (struct dwarf2_section_info)
12260 <overload_complaint>: Declare.
12261 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12262 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12263 Rename from dwarf2_section_buffer_overflow_complaint.
12264 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12265 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12266
12267 2020-03-26 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12270 Declare.
12271 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12272 Move from read.c.
12273 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12274 to section.c.
12275
12276 2020-03-26 Tom Tromey <tom@tromey.com>
12277
12278 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12279
12280 2020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12283 "builder".
12284 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12285 parameter.
12286 (dwarf_decode_macros): Update.
12287
12288 2020-03-26 Tom Tromey <tom@tromey.com>
12289
12290 * dwarf2/read.c (read_attribute_value): Update.
12291 (read_indirect_string_from_dwz): Move to dwz.c; change into
12292 method.
12293 (dwarf_decode_macro_bytes): Update.
12294 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12295 * dwarf2/dwz.c: New file.
12296 * Makefile.in (COMMON_SFILES): Add dwz.c.
12297
12298 2020-03-26 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12301 * dwarf2/read.c: Add include.
12302 * dwarf2/index-write.c: Add include.
12303 * dwarf2/index-cache.c: Add include.
12304 * dwarf2/dwz.h: New file.
12305
12306 2020-03-25 Tom Tromey <tom@tromey.com>
12307
12308 * compile/compile-object-load.c (get_out_value_type): Mention
12309 correct symbol name in error message.
12310
12311 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12312
12313 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12314
12315 2020-03-25 Tom de Vries <tdevries@suse.de>
12316
12317 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12318 * symmisc.c (dump_symtab_1): Print user and includes fields.
12319 (maintenance_info_symtabs): Same.
12320
12321 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12322
12323 PR gdb/25534
12324 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12325 (riscv_regcache_cooked_write): New function.
12326 (riscv_push_dummy_call): Use new function.
12327 (riscv_return_value): Likewise.
12328
12329 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12330
12331 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12332 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12333 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12334 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12335 * infrun.c (follow_fork): Likewise.
12336 (follow_fork_inferior): Likewise.
12337 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12338 * linux-nat.h (class linux_nat_target): Likewise.
12339 * remote.c (class remote_target) <follow_fork>: Likewise.
12340 (remote_target::follow_fork): Likewise.
12341 * target-delegates.c: Re-generate.
12342 * target.c (default_follow_fork): Likewise.
12343 (target_follow_fork): Likewise.
12344 * target.h (struct target_ops) <follow_fork>: Likewise.
12345 (target_follow_fork): Likewise.
12346
12347 2020-03-24 Tom de Vries <tdevries@suse.de>
12348
12349 * psymtab.c (maintenance_info_psymtabs): Print user field.
12350
12351 2020-03-20 Tom Tromey <tromey@adacore.com>
12352
12353 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12354 const.
12355 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12356 const.
12357
12358 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12359
12360 * ptrace.m4: Don't check for ptrace declaration.
12361 * config.in: Re-generate.
12362 * configure: Re-generate.
12363 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12364 not defined.
12365
12366 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12367
12368 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12369 `PTRACE_TYPE_RET'.
12370 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12371 * sparc-nat.c (gdb_ptrace): Likewise.
12372 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12373
12374 2020-03-20 Tom Tromey <tromey@adacore.com>
12375
12376 * c-exp.y (lex_one_token): Fix assert.
12377
12378 2020-03-20 Tom Tromey <tromey@adacore.com>
12379
12380 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12381 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12382 strncpy call.
12383
12384 2020-03-20 Tom Tromey <tromey@adacore.com>
12385
12386 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12387
12388 2020-03-20 Tom Tromey <tromey@adacore.com>
12389
12390 * ada-valprint.c (print_variant_part): Remove parameters; switch
12391 to value-based API.
12392 (print_field_values): Likewise.
12393 (ada_val_print_struct_union): Likewise.
12394 (ada_value_print_1): Update.
12395
12396 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12397
12398 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12399 nbsd_nat_target instead of inf_ptrace_target.
12400 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12401 nbsd_nat_target.
12402
12403 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12404
12405 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12406 it to the ptrace call.
12407 * (store_registers): Likewise.
12408
12409 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12410
12411 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12412 it to the ptrace call.
12413 * (store_registers): Likewise.
12414
12415 2020-03-19 Luis Machado <luis.machado@linaro.org>
12416
12417 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12418 valid, fetch vg value from ptrace.
12419
12420 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12421 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12422 * inf-ptrace.c: Likewise.
12423 * (gdb_ptrace): Add.
12424 * (inf_ptrace_target::resume): Update.
12425 * (inf_ptrace_target::xfer_partial): Likewise.
12426 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12427 * (inf_ptrace_peek_poke): Update.
12428
12429 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12430
12431 * x86-bsd-nat.c (gdb_ptrace): New.
12432 * (x86bsd_dr_set): Add new argument `ptid'.
12433 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12434 x86bsd_dr_set_addr): Update.
12435
12436 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12437
12438 * remote.c (remote_target::process_stop_reply): Handle events for
12439 all threads differently.
12440
12441 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12442
12443 * completer.c (completion_tracker::remove_completion): Define new
12444 function.
12445 * completer.h (completion_tracker::remove_completion): Declare new
12446 function.
12447 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12448 when adding a C++ function symbol.
12449
12450 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * completer.c (completion_tracker::completion_hash_entry): Define
12453 new class.
12454 (advance_to_filename_complete_word_point): Call
12455 recompute_lowest_common_denominator.
12456 (completion_tracker::completion_tracker): Call discard_completions
12457 to setup the hash table.
12458 (completion_tracker::discard_completions): Allow for being called
12459 from the constructor, pass new equal function, and element deleter
12460 when constructing the hash table. Initialise new class member
12461 variables.
12462 (completion_tracker::maybe_add_completion): Remove use of
12463 m_entries_vec, and store more information into m_entries_hash.
12464 (completion_tracker::recompute_lcd_visitor): New function, most
12465 content taken from...
12466 (completion_tracker::recompute_lowest_common_denominator):
12467 ...here, this now just visits each item in the hash calling the
12468 above visitor.
12469 (completion_tracker::build_completion_result): Remove use of
12470 m_entries_vec, call recompute_lowest_common_denominator.
12471 * completer.h (completion_tracker::have_completions): Remove use
12472 of m_entries_vec.
12473 (completion_tracker::completion_hash_entry): Declare new class.
12474 (completion_tracker::recompute_lowest_common_denominator): Change
12475 function signature.
12476 (completion_tracker::recompute_lcd_visitor): Declare new function.
12477 (completion_tracker::m_entries_vec): Delete.
12478 (completion_tracker::m_entries_hash): Initialize to NULL.
12479 (completion_tracker::m_lowest_common_denominator_valid): New
12480 member variable.
12481 (completion_tracker::m_lowest_common_denominator_max_length): New
12482 member variable.
12483
12484 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12485
12486 * regformats/regdef.h: Put reg in gdb namespace.
12487
12488 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12489
12490 * i386-bsd-nat.c (gdb_ptrace): New.
12491 * (i386bsd_fetch_inferior_registers,
12492 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12493 * (i386bsd_fetch_inferior_registers,
12494 i386bsd_store_inferior_registers) Use gdb_ptrace.
12495
12496 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12497
12498 * amd64-bsd-nat.c (gdb_ptrace): New.
12499 * (amd64bsd_fetch_inferior_registers,
12500 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12501 * (amd64bsd_fetch_inferior_registers,
12502 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12503
12504 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12505
12506 * user-regs.c (user_reg::read): Rename to...
12507 (user_reg::xread): ...this.
12508 * (append_user_reg): Rename argument `read' to `xread'.
12509 * (user_reg_add_builtin): Likewise.
12510 * (user_reg_add): Likewise.
12511 * (value_of_user_reg): Likewise.
12512
12513 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12514
12515 * sparc-nat.c (gdb_ptrace): New.
12516 * sparc-nat.c (sparc_fetch_inferior_registers)
12517 (sparc_store_inferior_registers) Remove obsolete comment.
12518 * sparc-nat.c (sparc_fetch_inferior_registers)
12519 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12520 * sparc-nat.c (sparc_fetch_inferior_registers)
12521 (sparc_store_inferior_registers) Use gdb_ptrace.
12522
12523 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12524
12525 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12526 it to the ptrace call.
12527 * sh-nbsd-nat.c (store_registers): Likewise.
12528
12529 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12530
12531 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12532 nbsd_nat_target instead of inf_ptrace_target.
12533 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12534 nbsd_nat_target.
12535
12536 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12537
12538 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12539
12540 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12541
12542 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12543 <sys/sysctl.h>.
12544 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12545
12546 2020-03-17 Tom de Vries <tdevries@suse.de>
12547
12548 PR gdb/23710
12549 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12550 fields.
12551 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12552 fields.
12553 (process_imported_unit_die): Skip import of c++ CUs.
12554
12555 2020-03-16 Tom Tromey <tom@tromey.com>
12556
12557 * p-valprint.c (pascal_object_print_value): Initialize
12558 base_value.
12559
12560 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12561 Shahab Vahedi <shahab@synopsys.com>
12562
12563 * Makefile.in: Add arch/arc.o
12564 * configure.tgt: Likewise.
12565 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12566 (_initialize_arc_tdep): Don't initialize old target descriptions.
12567 (arc_read_description): New function to cache target descriptions.
12568 * arc-tdep.h (arc_read_description): Add proto type.
12569 * arch/arc.c: New file.
12570 * arch/arc.h: Likewise.
12571 * features/Makefile: Replace old target descriptions with new.
12572 * features/arc-arcompact.c: Remove.
12573 * features/arc-arcompact.xml: Likewise.
12574 * features/arc-v2.c: Likewise
12575 * features/arc-v2.xml: Likewise
12576 * features/arc/aux-arcompact.xml: New file.
12577 * features/arc/aux-v2.xml: Likewise.
12578 * features/arc/core-arcompact.xml: Likewise.
12579 * features/arc/core-v2.xml: Likewise.
12580 * features/arc/aux-arcompact.c: Generate.
12581 * features/arc/aux-v2.c: Likewise.
12582 * features/arc/core-arcompact.c: Likewise.
12583 * features/arc/core-v2.c: Likewise.
12584 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12585
12586 2020-03-16 Tom Tromey <tromey@adacore.com>
12587
12588 PR gdb/25663:
12589 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12590 putting value into bcache.
12591
12592 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12593
12594 PR gdb/21500
12595 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12596 to...
12597 (amd64_windows_init_abi_common): ... this. Don't set size of
12598 long type.
12599 (amd64_windows_init_abi): New function.
12600 (amd64_cygwin_init_abi): New function.
12601 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12602 the Cygwin OS ABI.
12603 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12604 comment.
12605
12606 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12607
12608 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12609 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12610 (pe_import_directory_entry): New struct type.
12611 (is_linked_with_cygwin_dll): New function.
12612 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12613 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12614 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12615
12616 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12617
12618 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12619 i386_cygwin_core_osabi_sniffer.
12620
12621 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12622
12623 * i386-cygwin-tdep.c: Rename to...
12624 * i386-windows-tdep.c: ... this.
12625 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12626 i386-windows-tdep.c.
12627 * configure.tgt: Likewise.
12628
12629 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12630
12631 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12632 * osabi.c (gdb_osabi_names): Add "Windows".
12633 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12634 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12635 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12636 i386_cygwin_osabi_sniffer.
12637 (_initialize_i386_cygwin_tdep): Register OS ABI
12638 GDB_OSABI_WINDOWS for i386.
12639 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12640 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12641 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12642 for x86-64.
12643 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12644 when the target matches '*-*-mingw*'.
12645
12646 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12647
12648 * defs.h (enum gdb_osabi): Move to...
12649 * osabi.h (enum gdb_osabi): ... here.
12650 * gdbarch.sh: Include osabi.h in gdbarch.h.
12651 * gdbarch.h: Re-generate.
12652
12653 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12656 function.
12657 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12658
12659 2020-03-14 Tom Tromey <tom@tromey.com>
12660
12661 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12662 for C++.
12663 (c_type_print_modifier): Likewise. Add "language" parameter.
12664 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12665 (c_type_print_base_1): Update.
12666 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12667 constants.
12668 * type-stack.c (type_stack::insert): Handle tp_atomic and
12669 tp_restrict.
12670 (type_stack::follow_type_instance_flags): Likewise.
12671 (type_stack::follow_types): Likewise. Merge type-following code.
12672 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12673 (space_identifier, cv_with_space_id)
12674 (const_or_volatile_or_space_identifier_noopt)
12675 (const_or_volatile_or_space_identifier): Remove.
12676 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12677 rules.
12678 (ptr_operator, typebase): Update.
12679 (enum token_flag) <FLAG_C>: New constant.
12680 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12681 "_Atomic".
12682 (lex_one_token): Handle FLAG_C.
12683
12684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12685
12686 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12687 it to the ptrace call.
12688 * m68k-bsd-nat.c (store_registers): Likewise.
12689
12690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12691
12692 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12693 gdb_byte *.
12694 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12695 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12696 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12697
12698 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12699
12700 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12701 nbsd_nat_target instead of inf_ptrace_target.
12702 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12703 nbsd_nat_target.
12704
12705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12706
12707 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12708 register_t.
12709
12710 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12711
12712 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12713 it to the ptrace call.
12714 * alpha-bsd-nat.c (store_registers): Likewise.
12715
12716 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12717
12718 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12719 includes.
12720 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12721 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12722 fill_fpregset): Likewise.
12723
12724 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12725
12726 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12727 nbsd_nat_target instead of inf_ptrace_target.
12728 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12729 nbsd_nat_target.
12730
12731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12732
12733 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12734 register_t.
12735
12736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12737
12738 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12739 it to the ptrace call.
12740 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12741 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12742 * arm-nbsd-nat.c (store_register): Likewise.
12743 * arm-nbsd-nat.c (store_regs): Likewise.
12744 * arm-nbsd-nat.c (store_fp_register): Likewise.
12745 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12746
12747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12748
12749 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12750 nbsd_nat_target instead of inf_ptrace_target.
12751 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12752 nbsd_nat_target.
12753
12754 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12755
12756 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12757 it to the ptrace call.
12758 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12759
12760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12761
12762 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12763 it to the ptrace call.
12764 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12765
12766 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12767
12768 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12769 gdb_byte *.
12770 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12771
12772 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12773
12774 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12775 instead of inf_ptrace_target.
12776 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12777 nbsd_nat_target.
12778
12779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12780
12781 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12782 register_t.
12783
12784 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12785
12786 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12787 register_t.
12788
12789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12790
12791 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12792 register_t.
12793
12794 2020-03-13 Tom Tromey <tom@tromey.com>
12795
12796 * value.h (val_print): Don't declare.
12797 * valprint.h (val_print_array_elements)
12798 (val_print_scalar_formatted, generic_val_print): Don't declare.
12799 * valprint.c (generic_val_print_array): Take a struct value.
12800 (generic_val_print_ptr, generic_val_print_memberptr)
12801 (generic_val_print_bool, generic_val_print_int)
12802 (generic_val_print_char, generic_val_print_complex)
12803 (generic_val_print): Remove.
12804 (generic_value_print): Update.
12805 (do_val_print): Remove unused parameters. Don't call
12806 la_val_print.
12807 (val_print): Remove.
12808 (common_val_print): Update. Don't call value_check_printable.
12809 (val_print_scalar_formatted, val_print_array_elements): Remove.
12810 * rust-lang.c (rust_val_print): Remove.
12811 (rust_language_defn): Update.
12812 * p-valprint.c (pascal_val_print): Remove.
12813 (pascal_value_print_inner): Update.
12814 (pascal_object_print_val_fields, pascal_object_print_val):
12815 Remove.
12816 (pascal_object_print_static_field): Update.
12817 * p-lang.h (pascal_val_print): Don't declare.
12818 * p-lang.c (pascal_language_defn): Update.
12819 * opencl-lang.c (opencl_language_defn): Update.
12820 * objc-lang.c (objc_language_defn): Update.
12821 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12822 * m2-lang.h (m2_val_print): Don't declare.
12823 * m2-lang.c (m2_language_defn): Update.
12824 * language.h (struct language_defn) <la_val_print>: Remove.
12825 * language.c (unk_lang_value_print_inner): Rename. Change
12826 argument types.
12827 (unknown_language_defn, auto_language_defn): Update.
12828 * go-valprint.c (go_val_print): Remove.
12829 * go-lang.h (go_val_print): Don't declare.
12830 * go-lang.c (go_language_defn): Update.
12831 * f-valprint.c (f_val_print): Remove.
12832 * f-lang.h (f_value_print): Don't declare.
12833 * f-lang.c (f_language_defn): Update.
12834 * d-valprint.c (d_val_print): Remove.
12835 * d-lang.h (d_value_print): Don't declare.
12836 * d-lang.c (d_language_defn): Update.
12837 * cp-valprint.c (cp_print_value_fields)
12838 (cp_print_value_fields_rtti, cp_print_value): Remove.
12839 (cp_print_static_field): Update.
12840 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12841 (c_val_print_struct, c_val_print_union, c_val_print_int)
12842 (c_val_print_memberptr, c_val_print): Remove.
12843 * c-lang.h (c_val_print_array, cp_print_value_fields)
12844 (cp_print_value_fields_rtti): Don't declare.
12845 * c-lang.c (c_language_defn, cplus_language_defn)
12846 (asm_language_defn, minimal_language_defn): Update.
12847 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12848 (ada_val_print_enum): Take a struct value.
12849 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12850 (ada_val_print): Remove.
12851 (ada_value_print_1): Update.
12852 (printable_val_type): Remove.
12853 * ada-lang.h (ada_val_print): Don't declare.
12854 * ada-lang.c (ada_language_defn): Update.
12855
12856 2020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * valprint.c (do_val_print): Update.
12859 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12860 a struct value.
12861 (value_to_value_object_no_release): Declare.
12862 * python/py-value.c (value_to_value_object_no_release): New
12863 function.
12864 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12865 struct value.
12866 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12867 function.
12868 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12869 a struct value.
12870 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12871 Declare.
12872 (gdbscm_apply_val_pretty_printer): Take a struct value.
12873 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12874 value.
12875 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12876 value.
12877 * extension-priv.h (struct extension_language_ops)
12878 <apply_val_pretty_printer>: Take a struct value.
12879 * cp-valprint.c (cp_print_value): Create a struct value.
12880 (cp_print_value): Update.
12881
12882 2020-03-13 Tom Tromey <tom@tromey.com>
12883
12884 * ada-valprint.c (print_field_values): Call common_val_print.
12885
12886 2020-03-13 Tom Tromey <tom@tromey.com>
12887
12888 * ada-valprint.c (val_print_packed_array_elements): Remove
12889 bitoffset and val parameters. Call common_val_print.
12890 (ada_val_print_string): Remove offset, address, and original_value
12891 parameters.
12892 (ada_val_print_array): Update.
12893 (ada_value_print_array): New function.
12894 (ada_value_print_1): Call it.
12895
12896 2020-03-13 Tom Tromey <tom@tromey.com>
12897
12898 * ada-valprint.c (ada_value_print): Use common_val_print.
12899
12900 2020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12903
12904 2020-03-13 Tom Tromey <tom@tromey.com>
12905
12906 * ada-valprint.c (ada_value_print_num): New function.
12907 (ada_value_print_1): Use it.
12908
12909 2020-03-13 Tom Tromey <tom@tromey.com>
12910
12911 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12912
12913 2020-03-13 Tom Tromey <tom@tromey.com>
12914
12915 * ada-valprint.c (ada_value_print_ptr): New function.
12916 (ada_value_print_1): Use it.
12917
12918 2020-03-13 Tom Tromey <tom@tromey.com>
12919
12920 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12921 call common_val_print.
12922 (ada_val_print_1): Update.
12923 (ada_value_print_1): New function.
12924 (ada_value_print_inner): Rewrite.
12925
12926 2020-03-13 Tom Tromey <tom@tromey.com>
12927
12928 * cp-valprint.c (cp_print_value_fields): Update.
12929 (cp_print_value): New function.
12930
12931 2020-03-13 Tom Tromey <tom@tromey.com>
12932
12933 * m2-valprint.c (m2_value_print_inner): Use
12934 cp_print_value_fields.
12935 * cp-valprint.c (cp_print_value_fields): New function.
12936 * c-valprint.c (c_value_print_struct): New function.
12937 (c_value_print_inner): Use c_value_print_struct.
12938 * c-lang.h (cp_print_value_fields): Declare.
12939
12940 2020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * c-valprint.c (c_value_print_array): New function.
12943 (c_value_print_inner): Use it.
12944
12945 2020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * c-valprint.c (c_value_print_memberptr): New function.
12948 (c_value_print_inner): Use it.
12949
12950 2020-03-13 Tom Tromey <tom@tromey.com>
12951
12952 * c-valprint.c (c_value_print_int): New function.
12953 (c_value_print_inner): Use it.
12954
12955 2020-03-13 Tom Tromey <tom@tromey.com>
12956
12957 * c-valprint.c (c_value_print_ptr): New function.
12958 (c_value_print_inner): Use it.
12959
12960 2020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * c-valprint.c (c_value_print_inner): Rewrite.
12963
12964 2020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * valprint.c (generic_value_print_complex): New function.
12967 (generic_value_print): Use it.
12968
12969 2020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * valprint.c (generic_val_print_float): Don't call
12972 val_print_scalar_formatted.
12973 (generic_val_print, generic_value_print): Update.
12974
12975 2020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * valprint.c (generic_value_print_char): New function
12978 (generic_value_print): Use it.
12979
12980 2020-03-13 Tom Tromey <tom@tromey.com>
12981
12982 * valprint.c (generic_value_print_int): New function.
12983 (generic_value_print): Use it.
12984
12985 2020-03-13 Tom Tromey <tom@tromey.com>
12986
12987 * valprint.c (generic_value_print_bool): New function.
12988 (generic_value_print): Use it.
12989
12990 2020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * valprint.c (generic_val_print_func): Simplify.
12993 (generic_val_print, generic_value_print): Update.
12994
12995 2020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * valprint.c (generic_val_print_flags): Remove.
12998 (generic_val_print, generic_value_print): Update.
12999 (val_print_type_code_flags): Add original_value parameter.
13000
13001 2020-03-13 Tom Tromey <tom@tromey.com>
13002
13003 * valprint.c (generic_val_print): Update.
13004 (generic_value_print): Update.
13005 * valprint.c (generic_val_print_enum): Don't call
13006 val_print_scalar_formatted.
13007
13008 2020-03-13 Tom Tromey <tom@tromey.com>
13009
13010 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13011 * valprint.c (generic_value_print_ptr): New function.
13012
13013 2020-03-13 Tom Tromey <tom@tromey.com>
13014
13015 * valprint.c (generic_value_print): Rewrite.
13016
13017 2020-03-13 Tom Tromey <tom@tromey.com>
13018
13019 * p-valprint.c (pascal_object_print_value_fields)
13020 (pascal_object_print_value): New functions.
13021
13022 2020-03-13 Tom Tromey <tom@tromey.com>
13023
13024 * p-valprint.c (pascal_value_print_inner): Rewrite.
13025
13026 2020-03-13 Tom Tromey <tom@tromey.com>
13027
13028 * f-valprint.c (f_value_print_innner): Rewrite.
13029
13030 2020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * m2-valprint.c (m2_print_unbounded_array): New overload.
13033 (m2_print_unbounded_array): Update.
13034 (m2_print_array_contents): Take a struct value.
13035 (m2_value_print_inner): Rewrite.
13036
13037 2020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13040 (d_value_print_inner): New function.
13041 * d-lang.h (d_value_print_inner): Declare.
13042 * d-lang.c (d_language_defn): Use d_value_print_inner.
13043
13044 2020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * go-valprint.c (go_value_print_inner): New function.
13047 * go-lang.h (go_value_print_inner): Declare.
13048 * go-lang.c (go_language_defn): Use go_value_print_inner.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13053 API.
13054 (rust_val_print): Rewrite.
13055 (rust_value_print_inner): New function, from rust_val_print.
13056 (rust_language_defn): Use rust_value_print_inner.
13057
13058 2020-03-13 Tom Tromey <tom@tromey.com>
13059
13060 * ada-valprint.c (ada_value_print_inner): New function.
13061 * ada-lang.h (ada_value_print_inner): Declare.
13062 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * f-valprint.c (f_value_print_innner): New function.
13067 * f-lang.h (f_value_print_innner): Declare.
13068 * f-lang.c (f_language_defn): Use f_value_print_innner.
13069
13070 2020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * p-valprint.c (pascal_value_print_inner): New function.
13073 * p-lang.h (pascal_value_print_inner): Declare.
13074 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13075
13076 2020-03-13 Tom Tromey <tom@tromey.com>
13077
13078 * m2-valprint.c (m2_value_print_inner): New function.
13079 * m2-lang.h (m2_value_print_inner): Declare.
13080 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13081
13082 2020-03-13 Tom Tromey <tom@tromey.com>
13083
13084 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13085 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13086 * c-valprint.c (c_value_print_inner): New function.
13087 * c-lang.h (c_value_print_inner): Declare.
13088 * c-lang.c (c_language_defn, cplus_language_defn)
13089 (asm_language_defn, minimal_language_defn): Use
13090 c_value_print_inner.
13091
13092 2020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * p-valprint.c (pascal_object_print_value_fields): Now static.
13095 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13096
13097 2020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * c-valprint.c (c_val_print_array): Simplify.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * valprint.c (value_print_array_elements): New function.
13104 * valprint.h (value_print_array_elements): Declare.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13109 * mips-tdep.c (mips_print_register): Use
13110 value_print_scalar_formatted.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * valprint.h (value_print_scalar_formatted): Declare.
13115 * valprint.c (value_print_scalar_formatted): New function.
13116
13117 2020-03-13 Tom Tromey <tom@tromey.com>
13118
13119 * valprint.h (generic_value_print): Declare.
13120 * valprint.c (generic_value_print): New function.
13121
13122 2020-03-13 Tom Tromey <tom@tromey.com>
13123
13124 * valprint.c (do_val_print): Call la_value_print_inner, if
13125 available.
13126 * rust-lang.c (rust_language_defn): Update.
13127 * p-lang.c (pascal_language_defn): Update.
13128 * opencl-lang.c (opencl_language_defn): Update.
13129 * objc-lang.c (objc_language_defn): Update.
13130 * m2-lang.c (m2_language_defn): Update.
13131 * language.h (struct language_defn) <la_value_print_inner>: New
13132 member.
13133 * language.c (unknown_language_defn, auto_language_defn): Update.
13134 * go-lang.c (go_language_defn): Update.
13135 * f-lang.c (f_language_defn): Update.
13136 * d-lang.c (d_language_defn): Update.
13137 * c-lang.c (c_language_defn, cplus_language_defn)
13138 (asm_language_defn, minimal_language_defn): Update.
13139 * ada-lang.c (ada_language_defn): Update.
13140
13141 2020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * c-valprint.c (c_value_print): Use common_val_print.
13144
13145 2020-03-13 Tom Tromey <tom@tromey.com>
13146
13147 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13148
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * f-valprint.c (f77_print_array_1, f_val_print): Use
13152 common_val_print.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * riscv-tdep.c (riscv_print_one_register_info): Use
13157 common_val_print.
13158
13159 2020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * mi/mi-main.c (output_register): Use common_val_print.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * infcmd.c (default_print_one_register_info): Use
13166 common_val_print.
13167
13168 2020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * valprint.h (common_val_print_checked): Declare.
13171 * valprint.c (common_val_print_checked): New function.
13172 * stack.c (print_frame_arg): Use common_val_print_checked.
13173
13174 2020-03-13 Tom Tromey <tom@tromey.com>
13175
13176 * valprint.c (do_val_print): New function, from val_print.
13177 (val_print): Use do_val_print.
13178 (common_val_print): Use do_val_print.
13179
13180 2020-03-13 Tom Tromey <tom@tromey.com>
13181
13182 * valprint.c (value_print): Use scoped_value_mark.
13183
13184 2020-03-13 Tom de Vries <tdevries@suse.de>
13185
13186 PR symtab/25646
13187 * psymtab.c (partial_symtab::partial_symtab): Don't set
13188 globals_offset and statics_offset. Push element onto
13189 current_global_psymbols and current_static_psymbols stacks.
13190 (concat): New function.
13191 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13192 element from current_global_psymbols and current_static_psymbols
13193 stacks. Concat popped elements to global_psymbols and
13194 static_symbols.
13195 (add_psymbol_to_list): Use current_global_psymbols and
13196 current_static_psymbols stacks.
13197 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13198 current_static_psymbols fields.
13199
13200 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13201
13202 * corelow.c (sniff_core_bfd): Remove.
13203 (class core_target) <m_core_vec>: Remove.
13204 (core_target::core_target): Update.
13205 (core_file_fns): Remove.
13206 (deprecated_add_core_fns): Remove.
13207 (default_core_sniffer): Remove.
13208 (sniff_core_bfd): Remove.
13209 (default_check_format): Remove.
13210 (gdb_check_format): Remove.
13211 (core_target_open): Update.
13212 (core_target::get_core_register_section): Update.
13213 (get_core_registers_cb): Update.
13214 (core_target::fetch_registers): Update.
13215 * gdbcore.h (struct core_fns): Remove.
13216 (deprecated_add_core_fns): Remove.
13217 (default_core_sniffer): Remove.
13218 (default_check_format): Remove.
13219
13220 2020-03-12 Tom Tromey <tom@tromey.com>
13221
13222 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13223 CORE_ADDR.
13224 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13225
13226 2020-03-12 Tom Tromey <tom@tromey.com>
13227
13228 * remote.c (remote_target::download_tracepoint)
13229 (remote_target::enable_tracepoint)
13230 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13231 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13232 sprintf_vma.
13233
13234 2020-03-12 Tom Tromey <tom@tromey.com>
13235
13236 * symfile-mem.c: Update CORE_ADDR size assert.
13237
13238 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * selftest.m4: Move to gdbsupport/.
13241 * acinclude.m4: Update path to selftest.m4.
13242
13243 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13244
13245 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13246 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13247 gdbarch-selfselftests.c and selftest-arch.c.
13248 (SUBDIR_UNITTESTS_OBS): Rename to...
13249 (SELFTESTS_OBS): ... this.
13250 (COMMON_SFILES): Remove disasm-selftests.c and
13251 gdbarch-selftests.c.
13252 * configure.ac: Don't add selftest-arch.{c,o} to
13253 CONFIG_{SRCS,OBS}.
13254 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13255 preprocessor conditions.
13256
13257 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * configure.ac: Don't source bfd/development.sh.
13260 * selftest.m4: Modify comment.
13261 * configure: Re-generate.
13262
13263 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13264
13265 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13266 not "true" or "false".
13267 * configure: Re-generate.
13268
13269 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13270
13271 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13272 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13273 renamed to arm_nbsd_supply_gregset.
13274 (fetch_register): Update to call arm_nbsd_supply_gregset.
13275 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13276 (arm_netbsd_nat_target::fetch_registers): Update.
13277 (fetch_elfcore_registers): Removed.
13278 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13279 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13280 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13281 not require NetBSD system headers.
13282 (arm_nbsd_regset): New struct.
13283 (arm_nbsd_iterate_over_regset_sections): New function.
13284 (arm_netbsd_init_abi_common): Updated to call
13285 set_gdbarch_iterate_over_regset_sections.
13286 * arm-nbsd-tdep.h: New file.
13287
13288 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13289
13290 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13291 recursion.
13292
13293 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13294
13295 * configure: Re-generate.
13296
13297 2020-03-11 Tom Tromey <tromey@adacore.com>
13298
13299 * ada-typeprint.c (print_choices): Fix comment.
13300
13301 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13302
13303 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13304 previous item in the list, when the list has no items.
13305
13306 2020-03-11 Tom de Vries <tdevries@suse.de>
13307
13308 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13309 PROP_LOCLIST handling code.
13310
13311 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13312
13313 * buildsym-legacy.c (record_line): Pass extra parameter to
13314 record_line.
13315 * buildsym.c (buildsym_compunit::record_line): Take an extra
13316 parameter, reduce duplication in the line table, and record the
13317 is_stmt flag in the line table.
13318 * buildsym.h (buildsym_compunit::record_line): Add extra
13319 parameter.
13320 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13321 non-statement lines.
13322 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13323 this to the symtab builder.
13324 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13325 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13326 through to dwarf_record_line_1.
13327 * infrun.c (process_event_stop_test): When stepping, don't stop at
13328 a non-statement instruction, and only refresh the step info when
13329 we land in the middle of a line's range. Also add an extra
13330 comment.
13331 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13332 field.
13333 * record-btrace.c (btrace_find_line_range): Only record lines
13334 marked as is-statement.
13335 * stack.c (frame_show_address): Show the frame address if we are
13336 in a non-statement sal.
13337 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13338 (maintenance_print_one_line_table): Print a header for the is_stmt
13339 column, and include is_stmt information in the output.
13340 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13341 preference to non-statements.
13342 (find_pcs_for_symtab_line): Prefer is-statement entries.
13343 (find_line_common): Likewise.
13344 * symtab.h (struct linetable_entry): Add is_stmt field.
13345 (struct symtab_and_line): Likewise.
13346 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13347 arranging the line table.
13348
13349 2020-03-07 Tom de Vries <tdevries@suse.de>
13350
13351 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13352 DIE.
13353
13354 2020-03-07 Tom Tromey <tom@tromey.com>
13355
13356 * valops.c (value_literal_complex): Remove obsolete comment.
13357 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13358 comment.
13359
13360 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13361
13362 * infrun.h: Forward-declare thread_info.
13363 (set_step_info): Add thread_info parameter, add doc.
13364 * infrun.c (set_step_info): Add thread_info parameter, move doc
13365 to header.
13366 * infrun.c (process_event_stop_test): Pass thread to
13367 set_step_info call.
13368 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13369 set_step_info.
13370 (prepare_one_step): Add thread_info parameter, pass it to
13371 set_step_frame and prepare_one_step (recursive) call.
13372 (step_1): Pass thread to prepare_one_step call.
13373 (step_command_fsm::should_stop): Pass thread to
13374 prepare_one_step.
13375 (until_next_fsm): Pass thread to set_step_frame call.
13376 (finish_command): Pass thread to set_step_info call.
13377
13378 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13379
13380 * windows-tdep.c (windows_solib_create_inferior_hook):
13381 Check if inferior is running.
13382
13383 2020-03-06 Tom de Vries <tdevries@suse.de>
13384
13385 * NEWS: Fix "the the".
13386 * ctfread.c: Same.
13387
13388 2020-03-06 Tom de Vries <tdevries@suse.de>
13389
13390 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13391
13392 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13393
13394 * .dir-locals.el: Add a comment referencing the other copies of
13395 this file.
13396
13397 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13398
13399 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13400 psargs.
13401
13402 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13403
13404 * .gitattributes: New file.
13405
13406 2020-03-04 Tom Tromey <tom@tromey.com>
13407
13408 * symmisc.c (print_symbol_bcache_statistics)
13409 (print_objfile_statistics): Update.
13410 * symfile.c (allocate_symtab): Use intern.
13411 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13412 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13413 macro_cache>: Remove.
13414 <string_cache>: New member.
13415 (struct objfile) <intern>: New methods.
13416 * elfread.c (elf_symtab_read): Use intern.
13417 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13418 (dwarf2_compute_name, dwarf2_physname)
13419 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13420 names.
13421 (guess_partial_die_structure_name): Update.
13422 (partial_die_info::fixup): Intern name.
13423 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13424 name.
13425 (dwarf2_name): Intern name. Update.
13426 * buildsym.c (buildsym_compunit::get_macro_table): Use
13427 string_cache.
13428
13429 2020-03-04 Tom Tromey <tom@tromey.com>
13430
13431 * jit.c (bfd_open_from_target_memory): Make "target" const.
13432 * corefile.c (gnutarget): Now const.
13433 * gdbcore.h (gnutarget): Now const.
13434
13435 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13436
13437 * NEWS: Mention support for WOW64 processes.
13438 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13439 (amd64_windows_segment_register_p): Remove static.
13440 (_initialize_amd64_windows_nat): Update.
13441 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13442 * i386-windows-nat.c (context_offset): Update.
13443 (i386_mappings): Rename and remove static.
13444 (i386_windows_segment_register_p): Remove static.
13445 (_initialize_i386_windows_nat): Update.
13446 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13447 (STATUS_WX86_SINGLE_STEP): New macro.
13448 (EnumProcessModulesEx): New macro.
13449 (Wow64SuspendThread): New macro.
13450 (Wow64GetThreadContext): New macro.
13451 (Wow64SetThreadContext): New macro.
13452 (Wow64GetThreadSelectorEntry): New macro.
13453 (windows_set_context_register_offsets): Add static.
13454 (windows_set_segment_register_p): Likewise.
13455 (windows_add_thread): Adapt for WOW64 processes.
13456 (windows_fetch_one_register): Likewise.
13457 (windows_nat_target::fetch_registers): Likewise.
13458 (windows_store_one_register): Likewise.
13459 (display_selector): Likewise.
13460 (display_selectors): Likewise.
13461 (handle_exception): Likewise.
13462 (windows_continue): Likewise.
13463 (windows_nat_target::resume): Likewise.
13464 (windows_add_all_dlls): Likewise.
13465 (do_initial_windows_stuff): Likewise.
13466 (windows_nat_target::attach): Likewise.
13467 (windows_get_exec_module_filename): Likewise.
13468 (windows_nat_target::create_inferior): Likewise.
13469 (windows_xfer_siginfo): Likewise.
13470 (_initialize_loadable): Initialize Wow64SuspendThread,
13471 Wow64GetThreadContext, Wow64SetThreadContext,
13472 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13473 * windows-nat.h (windows_set_context_register_offsets):
13474 Remove declaration.
13475 (windows_set_segment_register_p): Likewise.
13476 (i386_windows_segment_register_p): Add declaration.
13477 (amd64_windows_segment_register_p): Likewise.
13478
13479 2020-03-04 Luis Machado <luis.machado@linaro.org>
13480
13481 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13482 in "info registers" for AArch64/ARM.
13483
13484 The change caused "info registers" to not print GPR's.
13485
13486 gdb/ChangeLog:
13487
13488 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13489
13490 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13491 when reg->group is empty and reggroup is not.
13492
13493 2020-03-03 Tom Tromey <tromey@adacore.com>
13494
13495 * dwarf2/frame.c (struct dwarf2_frame_cache)
13496 <checked_tailcall_bottom, entry_cfa_sp_offset,
13497 entry_cfa_sp_offset_p>: Remove members.
13498 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13499 (dwarf2_frame_prev_register): Don't call
13500 dwarf2_tailcall_sniffer_first.
13501 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13502 * frame-unwind.c (add_unwinder): New fuction.
13503 (frame_unwind_init): Use it. Add tailcall unwinder.
13504
13505 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13506 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13507
13508 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13509 value should be printed as true.
13510
13511 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13512
13513 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13514 (windows_init_abi): Set and use windows_so_ops.
13515
13516 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13517
13518 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13519 when verifying if dealing with a convenience variable.
13520
13521 2020-03-03 Luis Machado <luis.machado@linaro.org>
13522
13523 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13524
13525 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13526
13527 * infrun.c (gdbarch_supports_displaced_stepping): New.
13528 (use_displaced_stepping): Break up conditions in smaller pieces.
13529 Use gdbarch_supports_displaced_stepping.
13530 (displaced_step_prepare_throw): Use
13531 gdbarch_supports_displaced_stepping.
13532
13533 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * NEWS: Mention new behaviour of the history filename.
13536 * top.c (write_history_p): Add comment.
13537 (show_write_history_p): Add header comment, give a different
13538 message when history writing is on, but the history filename is
13539 empty.
13540 (history_filename): Add comment.
13541 (history_filename_empty): New function.
13542 (show_history_filename): Add header comment, give a different
13543 message when the filename is empty.
13544 (init_history): Compare history_filename against nullptr, and only
13545 read history if the filename is not empty.
13546 (set_history_filename): Add header comment, and only make
13547 non-empty filenames absolute.
13548 (init_main): Make the filename argument to 'set history filename'
13549 optional.
13550
13551 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13552
13553 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13554 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13555 (fetch_fp_register): Update.
13556 (fetch_fp_regs): Update.
13557 (store_fp_register): Update.
13558 (store_fp_regs): Update.
13559 (arm_netbsd_nat_target::read_description): New function.
13560 (fetch_elfcore_registers): Update.
13561
13562 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13563
13564 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13565 general_thread if the stop reply is missing a thread-id.
13566 (remote_target::process_stop_reply): Use the first non-exited
13567 thread if the target didn't pass a thread-id.
13568 * infrun.c (do_target_wait): Move call to
13569 switch_to_inferior_no_thread to ....
13570 (do_target_wait_1): ... here.
13571
13572 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13573
13574 * debuginfod-support.c: Include defs.h first.
13575
13576 2020-02-28 Tom de Vries <tdevries@suse.de>
13577
13578 * symfile.c (set_initial_language): Use default language for lookup.
13579
13580 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13581
13582 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13583 reader variable, pass `this` to read_cutu_die_from_dwo.
13584
13585 2020-02-27 Aaron Merey <amerey@redhat.com>
13586
13587 * source.c (open_source_file): Check for nullptr when computing
13588 srcpath.
13589
13590 2020-02-27 Tom Tromey <tromey@adacore.com>
13591
13592 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13593 member.
13594 (dwarf2_add_field): Don't update nfields.
13595 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13596
13597 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13598
13599 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13600 abs.
13601
13602 2020-02-26 Tom Tromey <tom@tromey.com>
13603
13604 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13605 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13606 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13607 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13608 per_cu_data.
13609
13610 2020-02-26 Tom Tromey <tom@tromey.com>
13611
13612 * dwarf2/index-write.c (psym_index_map): Change type.
13613 (add_address_entry_worker, write_one_signatured_type)
13614 (recursively_count_psymbols, recursively_write_psymbols)
13615 (class debug_names, psyms_seen_size, write_gdbindex)
13616 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13617
13618 2020-02-26 Aaron Merey <amerey@redhat.com>
13619
13620 * Makefile.in: Handle optional debuginfod support.
13621 * NEWS: Update.
13622 * README: Add --with-debuginfod summary.
13623 * config.in: Regenerate.
13624 * configure: Regenerate.
13625 * configure.ac: Handle optional debuginfod support.
13626 * debuginfod-support.c: debuginfod helper functions.
13627 * debuginfod-support.h: Ditto.
13628 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13629 summary.
13630 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13631 when a dwz file cannot be found.
13632 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13633 debuginfo file cannot be found.
13634 * source.c (open_source_file): Query debuginfod servers when a
13635 source file cannot be found.
13636 * top.c (print_gdb_configuration): Include
13637 --{with,without}-debuginfod in the output.
13638
13639 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13640
13641 * thread.c (thr_try_catch_cmd): Print thread name.
13642
13643 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13644
13645 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13646 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13647 dwarf2_fetch_die_type_sect_off): Move to...
13648 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13649 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13650 dwarf2_fetch_die_type_sect_off): ... here.
13651 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13652 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13653 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13654
13655 2020-02-26 Tom de Vries <tdevries@suse.de>
13656
13657 PR gdb/25603
13658 * symfile.c (set_initial_language): Exit-early if
13659 language_mode == language_mode_manual.
13660
13661 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13662
13663 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13664 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13665 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13666
13667 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * gdbtypes.c (create_array_type_with_stride): Handle negative
13670 array strides.
13671 * valarith.c (value_subscripted_rvalue): Likewise.
13672
13673 2020-02-25 Luis Machado <luis.machado@linaro.org>
13674
13675 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13676
13677 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13678
13679 * loc.h (dwarf2_get_die_type): Move to...
13680 * read.h (dwarf2_get_die_type): ... here.
13681 * read.c (dwarf2_get_die_type): Move doc to header.
13682
13683 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13684
13685 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13686 'gnulib/Makefile.in' to the list.
13687
13688 2020-02-24 Tom Tromey <tom@tromey.com>
13689
13690 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13691 Remove.
13692 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13693 XOBNEWVEC.
13694
13695 2020-02-24 Tom Tromey <tom@tromey.com>
13696
13697 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13698 New method.
13699 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13700 (dw2_do_instantiate_symtab, dw2_get_file_names)
13701 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13702
13703 2020-02-24 Tom Tromey <tom@tromey.com>
13704
13705 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13706 make_scoped_restore.
13707 (dwarf2_psymtab::read_symtab): Don't clear
13708 reading_partial_symbols.
13709
13710 2020-02-24 Tom de Vries <tdevries@suse.de>
13711
13712 PR gdb/25592
13713 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13714
13715 2020-02-24 Tom de Vries <tdevries@suse.de>
13716
13717 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13718 commands layout next/prev/regs.
13719
13720 2020-02-22 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13723 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13724
13725 2020-02-22 Tom Tromey <tom@tromey.com>
13726
13727 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13728
13729 2020-02-22 Tom Tromey <tom@tromey.com>
13730
13731 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13732 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13733 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13734 * tui/tui.c (_initialize_tui): Add usage text.
13735
13736 2020-02-22 Tom Tromey <tom@tromey.com>
13737
13738 * tui/tui-win.c (tui_set_focus_command)
13739 (tui_set_win_height_command): Use error_no_arg.
13740 (_initialize_tui_win): Update help text.
13741 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13742
13743 2020-02-22 Tom Tromey <tom@tromey.com>
13744
13745 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13746 * tui/tui-disasm.h (struct tui_disasm_window)
13747 <display_start_addr>: Declare.
13748 * tui/tui-source.h (struct tui_source_window)
13749 <display_start_addr>: Declare.
13750 * tui/tui-winsource.h (struct tui_source_window_base)
13751 <show_source_line, display_start_addr>: New methods.
13752 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13753 Rename and move to protected section.
13754 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13755 (tui_source_window_base::do_erase_source_content): Update.
13756 (tui_source_window_base::show_source_line): Now a method.
13757 (tui_source_window_base::show_source_content)
13758 (tui_source_window_base::tui_source_window_base)
13759 (tui_source_window_base::rerender)
13760 (tui_source_window_base::refill)
13761 (tui_source_window_base::do_scroll_horizontal)
13762 (tui_source_window_base::set_is_exec_point_at)
13763 (tui_source_window_base::update_breakpoint_info)
13764 (tui_source_window_base::update_exec_info): Update.
13765 * tui/tui-source.c (tui_source_window::set_contents)
13766 (tui_source_window::showing_source_p)
13767 (tui_source_window::do_scroll_vertical)
13768 (tui_source_window::location_matches_p)
13769 (tui_source_window::line_is_displayed): Update.
13770 (tui_source_window::display_start_addr): New method.
13771 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13772 (tui_disasm_window::do_scroll_vertical)
13773 (tui_disasm_window::location_matches_p): Update.
13774 (tui_disasm_window::display_start_addr): New method.
13775
13776 2020-02-22 Tom Tromey <tom@tromey.com>
13777
13778 * NEWS: Add entry for gdb.register_window_type.
13779 * tui/tui-layout.h (window_factory): New typedef.
13780 (tui_register_window): Declare.
13781 * tui/tui-layout.c (saved_tui_windows): New global.
13782 (tui_apply_current_layout): Use it.
13783 (tui_register_window): New function.
13784 * python/python.c (do_start_initialization): Call
13785 gdbpy_initialize_tui.
13786 (python_GdbMethods): Add "register_window_type" function.
13787 * python/python-internal.h (gdbpy_register_tui_window)
13788 (gdbpy_initialize_tui): Declare.
13789 * python/py-tui.c: New file.
13790 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13791
13792 2020-02-22 Tom Tromey <tom@tromey.com>
13793
13794 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13795
13796 2020-02-22 Tom Tromey <tom@tromey.com>
13797
13798 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13799 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13800 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13801 (tui_set_win_focus_to): Move from tui-win.c.
13802
13803 2020-02-22 Tom Tromey <tom@tromey.com>
13804
13805 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13806 functions.
13807 (known_window_types): New global.
13808 (tui_get_window_by_name): Reimplement.
13809 (initialize_known_windows): New function.
13810 (validate_window_name): Rewrite.
13811 (_initialize_tui_layout): Call initialize_known_windows.
13812
13813 2020-02-22 Tom Tromey <tom@tromey.com>
13814
13815 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13816 Remove constants.
13817 * tui/tui-winsource.h (struct tui_source_window_base)
13818 <tui_source_window_base>: Remove parameter.
13819 * tui/tui-winsource.c
13820 (tui_source_window_base::tui_source_window_base): Remove
13821 parameter.
13822 (tui_source_window_base::refill): Update.
13823 * tui/tui-stack.h (struct tui_locator_window)
13824 <tui_locator_window>: Update.
13825 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13826 Default the constructor.
13827 * tui/tui-regs.h (struct tui_data_item_window)
13828 <tui_data_item_window>: Default the constructor.
13829 (struct tui_data_window) <tui_data_window>: Likewise.
13830 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13831 Default the constructor.
13832 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13833 Default the constructor.
13834 <type>: Remove.
13835 (struct tui_win_info) <tui_win_info>: Default the constructor.
13836 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13837 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13838 Default the constructor.
13839
13840 2020-02-22 Tom Tromey <tom@tromey.com>
13841
13842 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13843 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13844 * tui/tui-win.c (tui_resize_all): Don't call
13845 tui_delete_invisible_windows.
13846 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13847 done.
13848 (tui_set_layout): Update.
13849 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13850 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13851 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13852
13853 2020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13856 correctly.
13857
13858 2020-02-22 Tom Tromey <tom@tromey.com>
13859
13860 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13861
13862 2020-02-22 Tom Tromey <tom@tromey.com>
13863
13864 * tui/tui-winsource.h (struct tui_source_window_iterator)
13865 <inner_iterator>: New etytypedef.
13866 <tui_source_window_iterator>: Take "end" parameter.
13867 <tui_source_window_iterator>: Take iterator.
13868 <operator*, advance>: Update.
13869 <m_iter>: Change type.
13870 <m_end>: New field.
13871 (struct tui_source_windows) <begin, end>: Update.
13872 * tui/tui-layout.c (tui_windows): New global.
13873 (tui_apply_current_layout): Clear tui_windows.
13874 (tui_layout_window::apply): Update tui_windows.
13875 * tui/tui-data.h (tui_windows): Declare.
13876 (all_tui_windows): Now inline function.
13877 (class tui_window_iterator, struct all_tui_windows): Remove.
13878
13879 2020-02-22 Tom Tromey <tom@tromey.com>
13880
13881 PR tui/17850:
13882 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13883 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13884 "height" argument.
13885 (class tui_layout_window) <get_sizes>: Likewise.
13886 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13887 argument.
13888 <get_sizes>: Add "height" argument.
13889 <m_vertical>: New field.
13890 * tui/tui-layout.c (tui_layout_split::clone): Update.
13891 (tui_layout_split::get_sizes): Add "height" argument.
13892 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13893 (tui_new_layout_command): Parse "-horizontal".
13894 (_initialize_tui_layout): Update help string.
13895 (tui_layout_split::specification): Add "-horizontal" when needed.
13896 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13897 argument.
13898 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13899 New methods.
13900
13901 2020-02-22 Tom Tromey <tom@tromey.com>
13902
13903 * tui/tui-layout.h (enum tui_adjust_result): New.
13904 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13905 (class tui_layout_window) <adjust_size>: Return
13906 tui_adjust_result. Rewrite.
13907 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13908 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13909
13910 2020-02-22 Tom Tromey <tom@tromey.com>
13911
13912 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13913 parameter and return types.
13914 (class tui_layout_base) <specification>: Add "depth".
13915 (class tui_layout_window) <specification>: Add "depth".
13916 (class tui_layout_split) <specification>: Add "depth".
13917 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13918 and return types.
13919 (tui_new_layout_command): Parse sub-layouts.
13920 (_initialize_tui_layout): Update help string.
13921 (tui_layout_window::specification): Add "depth".
13922 (add_layout_command): Update.
13923
13924 2020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * NEWS: Add "tui new-layout" item.
13927 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13928 Add new-layout command to help text.
13929 (validate_window_name): New function.
13930 (tui_new_layout_command): New function.
13931 (_initialize_tui_layout): Register "new-layout".
13932 (tui_layout_window::specification): New method.
13933 (tui_layout_window::specification): New method.
13934 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13935 method.
13936 (class tui_layout_window) <specification>: New method.
13937 (class tui_layout_split) <specification>: New method.
13938
13939 2020-02-22 Tom Tromey <tom@tromey.com>
13940
13941 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13942 * tui/tui-win.c (window_name_completer): Update comment.
13943 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13944 Declare method.
13945 (class tui_layout_window) <replace_window>: Likewise.
13946 (class tui_layout_split) <replace_window>: Likewise.
13947 (tui_set_layout): Don't declare.
13948 (tui_set_initial_layout): Declare function.
13949 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13950 (asm_regs_layout): New globals.
13951 (tui_current_layout, show_layout): Remove.
13952 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13953 (find_layout, tui_apply_layout): New function.
13954 (layout_completer): Remove.
13955 (tui_next_layout): Reimplement.
13956 (tui_next_layout_command): New function.
13957 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13958 (tui_regs_layout): Reimplement.
13959 (tui_regs_layout_command): New function.
13960 (extract_display_start_addr): Rewrite.
13961 (next_layout, prev_layout): Remove.
13962 (tui_layout_window::replace_window): New method.
13963 (tui_layout_split::replace_window): New method.
13964 (destroy_layout): New function.
13965 (layout_list): New global.
13966 (add_layout_command): New function.
13967 (initialize_layouts): Update.
13968 (tui_layout_command): New function.
13969 (_initialize_tui_layout): Install "layout" commands.
13970 * tui/tui-data.h (enum tui_layout_type): Remove.
13971 (tui_current_layout): Don't declare.
13972
13973 2020-02-22 Tom Tromey <tom@tromey.com>
13974
13975 * tui/tui-regs.c (tui_reg_layout): Remove.
13976 (tui_reg_command): Use tui_regs_layout.
13977 * tui/tui-layout.h (tui_reg_command): Declare.
13978 * tui/tui-layout.c (tui_reg_command): New function.
13979
13980 2020-02-22 Tom Tromey <tom@tromey.com>
13981
13982 * tui/tui.c (tui_rl_delete_other_windows): Call
13983 tui_remove_some_windows.
13984 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13985 Declare method.
13986 (class tui_layout_window) <remove_windows>: New method.
13987 (class tui_layout_split) <remove_windows>: Declare.
13988 (tui_remove_some_windows): Declare.
13989 * tui/tui-layout.c (tui_remove_some_windows): New function.
13990 (tui_layout_split::remove_windows): New method.
13991
13992 2020-02-22 Tom Tromey <tom@tromey.com>
13993
13994 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13995 * tui/tui-layout.h (tui_next_layout): Declare.
13996 * tui/tui-layout.c (tui_next_layout): New function.
13997
13998 2020-02-22 Tom Tromey <tom@tromey.com>
13999
14000 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14001 correct coordinates.
14002
14003 2020-02-22 Tom Tromey <tom@tromey.com>
14004
14005 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14006 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14007 DATA_WIN case.
14008
14009 2020-02-22 Tom Tromey <tom@tromey.com>
14010
14011 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14012 TUI_DISASM_WIN, not tui_win_list.
14013
14014 2020-02-22 Tom Tromey <tom@tromey.com>
14015
14016 * valprint.c (generic_val_print_enum_1)
14017 (val_print_type_code_flags): Style member names.
14018 * rust-lang.c (val_print_struct, rust_print_enum)
14019 (rust_print_struct_def, rust_internal_print_type): Style member
14020 names.
14021 * p-valprint.c (pascal_object_print_value_fields): Style member
14022 names. Only call fprintf_symbol_filtered for static members.
14023 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14024 * f-valprint.c (f_val_print): Style member names.
14025 * f-typeprint.c (f_type_print_base): Style member names.
14026 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14027 call fprintf_symbol_filtered for static members.
14028 (cp_print_class_member): Style member names.
14029 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14030 member names.
14031 * ada-valprint.c (ada_print_scalar): Style enum names.
14032 (ada_val_print_enum): Likewise.
14033 * ada-typeprint.c (print_enum_type): Style enum names.
14034
14035 2020-02-21 Tom Tromey <tom@tromey.com>
14036
14037 * psympriv.h (struct partial_symtab): Update comment.
14038
14039 2020-02-21 Tom Tromey <tromey@adacore.com>
14040
14041 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14042 type is CORE_ADDR.
14043
14044 2020-02-21 Tom de Vries <tdevries@suse.de>
14045
14046 PR gdb/25534
14047 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14048 if dependencies[i]->user != NULL.
14049
14050 2020-02-21 Ali Tamur <tamur@google.com>
14051
14052 * dwarf2/read.c (dwarf2_name): Add null check.
14053
14054 2020-02-20 Tom Tromey <tom@tromey.com>
14055
14056 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14057 ">=", in binary search.
14058 (dwarf2_find_containing_comp_unit): New overload.
14059 (run_test): New self-test.
14060 (_initialize_dwarf2_read): Register new test.
14061
14062 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14063
14064 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14065 * riscv-tdep.h: Likewise.
14066 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14067 rv32-only CSR.
14068 * features/riscv/64bit-csr.xml: Regenerated.
14069
14070 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14071 Tom Tromey <tom@tromey.com>
14072
14073 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14074 of 'fputc_unfiltered'.
14075 (putchar_unfiltered): Call 'fputc_unfiltered'.
14076 (fputc_unfiltered): Call 'fputs_unfiltered'.
14077
14078 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14079
14080 * config.in: Regenerate.
14081 * configure: Regenerate.
14082 * configure.ac: Add --with-python-libdir option.
14083 * main.c: Use WITH_PYTHON_LIBDIR.
14084
14085 2020-02-19 Tom Tromey <tom@tromey.com>
14086
14087 * symtab.c (general_symbol_info::compute_and_set_names): Use
14088 obstack_strndup. Simplify call to symbol_set_demangled_name.
14089
14090 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14091
14092 * dwarf2/read.c (allocate_signatured_type_table,
14093 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14094 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14095 Remove objfile parameter, update all callers.
14096
14097 2020-02-19 Doug Evans <dje@google.com>
14098
14099 PR rust/25535
14100 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14101 rust_enum_variant calculation.
14102
14103 2020-02-19 Tom Tromey <tromey@adacore.com>
14104
14105 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14106
14107 2020-02-19 Tom Tromey <tromey@adacore.com>
14108
14109 * ada-lang.c (cache_symbol): Use obstack_strdup.
14110
14111 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14112
14113 * configure: Regenerate.
14114
14115 2020-02-19 Tom Tromey <tromey@adacore.com>
14116
14117 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14118 NULL check.
14119
14120 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14121
14122 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14123
14124 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14125
14126 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14127 if GDBSERVER is not defined.
14128 (riscv_tdesc_cache): Likewise, also store const target_desc.
14129 (STATIC_IN_GDB): Define.
14130 (riscv_create_target_description): Update declaration with
14131 STATIC_IN_GDB.
14132 (riscv_lookup_target_description): New function, only define if
14133 GDBSERVER is not defined.
14134 * arch/riscv.h (riscv_create_target_description): Declare only
14135 when GDBSERVER is defined.
14136 (riscv_lookup_target_description): New declaration when GDBSERVER
14137 is not defined.
14138 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14139 (riscv_linux_read_features): ...this, and return
14140 riscv_gdbarch_features instead of target_desc.
14141 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14142 (riscv_linux_read_description): Rename to...
14143 (riscv_linux_read_features): ...this.
14144 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14145 Update to use riscv_gdbarch_features and
14146 riscv_lookup_target_description.
14147 * riscv-tdep.c (riscv_find_default_target_description): Use
14148 riscv_lookup_target_description instead of
14149 riscv_create_target_description.
14150
14151 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * valprint.c (generic_val_print_enum_1): When printing a flag
14154 enum with value 0 and there is no enumerator with value 0, print
14155 just "0" instead of "(unknown: 0x0)".
14156
14157 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * valprint.c (generic_val_print_enum_1): Print unknown part of
14160 flag enum in hex.
14161
14162 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14163
14164 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14165 flag enums to contain duplicate enumerators.
14166 * valprint.c (generic_val_print_enum_1): Update comment.
14167
14168 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14169
14170 * dwarf2/read.c: Include "count-one-bits.h".
14171 (update_enumeration_type_from_children): If an enumerator has
14172 multiple bits set, don't treat the enumeration as a "flag enum".
14173 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14174 of flag enums have 0 or 1 bit set.
14175
14176 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14177
14178 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14179 conversion.
14180 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14181 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14182 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14183 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14184 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14185
14186 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14187
14188 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14189
14190 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14191
14192 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14193 displaced_step_closure_up.
14194 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14195 (struct displaced_step_closure_up):
14196 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14197 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14198 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14199 Likewise.
14200 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14201 * gdbarch.c, gdbarch.h: Re-generate.
14202 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14203 displaced_step_closure_up.
14204 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14205 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14206 * infrun.h (displaced_step_closure_up): New type alias.
14207 (struct displaced_step_inferior_state) <step_closure>: Change
14208 type to displaced_step_closure_up.
14209 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14210 displaced_step_closure_up.
14211 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14212
14213 2020-02-14 Tom Tromey <tom@tromey.com>
14214
14215 * minidebug.c (gnu_debug_key): New global.
14216 (find_separate_debug_file_in_section): Use it.
14217
14218 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14219
14220 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14221 std::unique_ptr.
14222 * gdbarch.c: Re-generate.
14223 * gdbarch.h: Re-generate.
14224 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14225 change.
14226 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14227 type to std::unique_ptr.
14228 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14229 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14230 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14231 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14232 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14233 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14234 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14235 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14236 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14237
14238 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14239
14240 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14241 std::unique_ptr.
14242 (displaced_step_clear): Rename to...
14243 (displaced_step_reset): ... this. Just call displaced->reset ().
14244 (displaced_step_clear_cleanup): Rename to...
14245 (displaced_step_reset_cleanup): ... this.
14246 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14247 (displaced_step_fixup): Likewise.
14248 (resume_1): Likewise.
14249 (handle_inferior_event): Restore child's memory before calling
14250 displaced_step_fixup on the parent.
14251 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14252 to std::unique_ptr.
14253 <step_closure>: Change type to std::unique_ptr.
14254
14255 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14256
14257 * arm-tdep.c: Include count-one-bits.h.
14258 (cleanup_block_store_pc): Use count_one_bits.
14259 (cleanup_block_load_pc): Use count_one_bits.
14260 (arm_copy_block_xfer): Use count_one_bits.
14261 (thumb2_copy_block_xfer): Use count_one_bits.
14262 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14263 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14264 (thumb_get_next_pcs_raw): Use count_one_bits.
14265 (arm_get_next_pcs_raw): Use count_one_bits_l.
14266 * arch/arm.c (bitcount): Remove.
14267 * arch/arm.h (bitcount): Remove.
14268
14269 2020-02-14 Tom Tromey <tromey@adacore.com>
14270
14271 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14272 Update.
14273 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14274 * dwarf2/loc.c (call_site_find_chain_1): Return
14275 unique_xmalloc_ptr.
14276 (call_site_find_chain): Likewise.
14277
14278 2020-02-14 Richard Biener <rguenther@suse.de>
14279
14280 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14281 on expression with division operators.
14282
14283 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14284
14285 * MAINTAINERS (Write After Approval): Adding myself.
14286
14287 2020-02-12 Tom Tromey <tom@tromey.com>
14288
14289 * event-loop.c (event_data, gdb_event, event_handler_func):
14290 Remove.
14291
14292 2020-02-12 Tom Tromey <tom@tromey.com>
14293
14294 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14295 (dwarf2_frame_objfile_data): Add comment.
14296 (find_comp_unit, set_comp_unit): New functions.
14297 (dwarf2_frame_find_fde): Use find_comp_unit.
14298 (dwarf2_build_frame_info): Use set_comp_unit.
14299
14300 2020-02-12 Tom Tromey <tom@tromey.com>
14301
14302 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14303 (comp_unit): Don't initialize objfile.
14304 (execute_cfa_program): Add text_offset parameter.
14305 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14306 (dwarf2_frame_cache): Update.
14307 (dwarf2_build_frame_info): Don't set "objfile" member.
14308
14309 2020-02-12 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14312 (decode_frame_entry): Likewise.
14313 (dwarf2_build_frame_info): Update.
14314
14315 2020-02-12 Tom Tromey <tom@tromey.com>
14316
14317 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14318 (decode_frame_entry_1): Use the comp_unit obstack.
14319
14320 2020-02-12 Tom Tromey <tom@tromey.com>
14321
14322 * dwarf2/frame.c (struct comp_unit): Add initializers and
14323 constructor.
14324 (dwarf2_frame_objfile_data): Store a comp_unit.
14325 (dwarf2_frame_find_fde): Update.
14326 (dwarf2_build_frame_info): Use "new".
14327
14328 2020-02-12 Tom Tromey <tom@tromey.com>
14329
14330 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14331 (dwarf2_fde_table): Typedef for std::vector.
14332 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14333 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14334 (decode_frame_entry): Update.
14335 (dwarf2_build_frame_info): Use "new".
14336
14337 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14338
14339 * arm-tdep.c (arm_gdbarch_init): Update.
14340 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14341 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14342 have_neon, is_m>: Change to bool.
14343
14344 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14345
14346 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14347
14348 2020-02-12 Tom Tromey <tom@tromey.com>
14349
14350 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14351
14352 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14353
14354 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14355 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14356
14357 2020-02-11 Tom Tromey <tom@tromey.com>
14358
14359 * psymtab.h: Update comment.
14360
14361 2020-02-11 Tom Tromey <tom@tromey.com>
14362
14363 * gdb_obstack.h (struct auto_obstack): Use
14364 DISABLE_COPY_AND_ASSIGN.
14365
14366 2020-02-11 Tom Tromey <tom@tromey.com>
14367
14368 * dwarf2/frame.h (struct objfile): Don't forward declare.
14369
14370 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14371
14372 * cris-tdep.c (cris_supply_gregset): Change signature to match
14373 what struct regset expects.
14374 (cris_regset): New struct.
14375 (fetch_core_registers): Remove.
14376 (cris_iterate_over_regset_sections): New function.
14377 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14378 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14379
14380 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14381
14382 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14383 registers.
14384
14385 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14386
14387 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14388
14389 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14390
14391 * configure: Re-generate.
14392
14393 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14394
14395 * configure: Re-generate.
14396
14397 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14398
14399 * acinclude: Update warning.m4 path.
14400 * warning.m4: Move to gdbsupport.
14401
14402 2020-02-11 Tom Tromey <tromey@adacore.com>
14403
14404 * remote.c (remote_console_output): Update.
14405 * printcmd.c (printf_command): Update.
14406 * event-loop.c (gdb_wait_for_event): Update.
14407 * linux-nat.c (sigchld_handler): Update.
14408 * remote-sim.c (gdb_os_write_stdout): Update.
14409 (gdb_os_flush_stdout): Update.
14410 (gdb_os_flush_stderr): Update.
14411 (gdb_os_write_stderr): Update.
14412 * exceptions.c (print_exception): Update.
14413 * remote-fileio.c (remote_fileio_func_read): Update.
14414 (remote_fileio_func_write): Update.
14415 * tui/tui.c (tui_enable): Update.
14416 * tui/tui-interp.c (tui_interp::init): Update.
14417 * utils.c (init_page_info): Update.
14418 (putchar_unfiltered, fputc_unfiltered): Update.
14419 (gdb_flush): Update.
14420 (emit_style_escape): Update.
14421 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14422 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14423 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14424 (stderr_file::write): Update.
14425 (stderr_file::puts): Update.
14426 * ui-file.h (ui_file_isatty, ui_file_write)
14427 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14428 (ui_file_puts): Don't declare.
14429
14430 2020-02-10 Tom de Vries <tdevries@suse.de>
14431
14432 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14433 sentinel to char *.
14434
14435 2020-02-09 Tom de Vries <tdevries@suse.de>
14436
14437 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14438 filename if it matches "<artificial>".
14439
14440 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14441
14442 * windows-tdep.c (struct enum_value_name): New struct.
14443 (create_enum): New function.
14444 (windows_get_siginfo_type): Create and use enum types.
14445
14446 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14447
14448 * NEWS: Mention $_siginfo support for Windows.
14449 * windows-nat.c (handle_exception): Set siginfo_er.
14450 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14451 (windows_xfer_siginfo): New function.
14452 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14453 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14454 (init_windows_gdbarch_data): New function.
14455 (get_windows_gdbarch_data): New function.
14456 (windows_get_siginfo_type): New function.
14457 (windows_init_abi): Register windows_get_siginfo_type.
14458 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14459
14460 2020-02-08 Tom Tromey <tom@tromey.com>
14461
14462 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14463 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14464 <keep>: Declare method.
14465 <m_keep>: Remove member.
14466 <~cutu_reader>: Remove.
14467 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14468 (cutu_reader::cutu_reader): Update.
14469 (cutu_reader::keep): Rename from ~cutu_reader.
14470 (process_psymtab_comp_unit, build_type_psymtabs_1)
14471 (process_skeletonless_type_unit, load_partial_comp_unit)
14472 (load_full_comp_unit, dwarf2_read_addr_index)
14473 (read_signatured_type): Update.
14474
14475 2020-02-08 Tom Tromey <tom@tromey.com>
14476
14477 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14478 "want_partial_unit" parameter.
14479 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14480 Inline check for DW_TAG_partial_unit.
14481 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14482
14483 2020-02-08 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14486 read.c.
14487 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14488 read.c.
14489
14490 2020-02-08 Tom Tromey <tom@tromey.com>
14491
14492 * dwarf2/read.c (read_address): Move to comp-unit.c.
14493 (dwarf2_rnglists_process, dwarf2_ranges_process)
14494 (read_attribute_value, dwarf_decode_lines_1)
14495 (var_decode_location, decode_locdesc): Update.
14496 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14497 read.c. Remove "cu" parameter.
14498 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14499 method.
14500
14501 2020-02-08 Tom Tromey <tom@tromey.com>
14502
14503 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14504 (read_indirect_line_string): Update.
14505 * dwarf2/comp-unit.c (read_offset): Remove.
14506 (read_comp_unit_head): Update.
14507 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14508 method.
14509 (read_offset): Don't declare.
14510
14511 2020-02-08 Tom Tromey <tom@tromey.com>
14512
14513 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14514 * dwarf2/read.c (struct comp_unit_head): Move to
14515 dwarf2/comp-unit.h.
14516 (enum class rcuh_kind): Move to comp-unit.h.
14517 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14518 (read_comp_unit_head, error_check_comp_unit_head)
14519 (read_and_check_comp_unit_head): Move to comp-unit.c.
14520 (read_offset, dwarf_unit_type_name): Likewise.
14521 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14522 (cutu_reader::cutu_reader, read_call_site_scope)
14523 (find_partial_die, follow_die_offset): Update.
14524 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14525
14526 2020-02-08 Tom Tromey <tom@tromey.com>
14527
14528 * dwarf2/read.c (read_offset_1): Move to leb.c.
14529 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14530 (dwarf_decode_macro_bytes): Update.
14531 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14532 * dwarf2/leb.h (read_offset): Declare.
14533
14534 2020-02-08 Tom Tromey <tom@tromey.com>
14535
14536 * dwarf2/read.c (dwarf2_section_size): Remove.
14537 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14538 Update.
14539 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14540
14541 2020-02-08 Tom Tromey <tom@tromey.com>
14542
14543 * dwarf2/read.c (read_initial_length): Move to leb.c.
14544 * dwarf2/leb.h (read_initial_length): Declare.
14545 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14546 handle_nonstd parameter.
14547 * dwarf2/frame.c (read_initial_length): Remove.
14548 (decode_frame_entry_1): Update.
14549
14550 2020-02-08 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2/loc.c (dwarf2_find_location_expression)
14553 (dwarf_evaluate_loc_desc::get_tls_address)
14554 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14555 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14556 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14557 (dwarf2_compile_property_to_c)
14558 (dwarf2_loc_desc_get_symbol_read_needs)
14559 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14560 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14561 (loclist_describe_location, loclist_tracepoint_var_ref)
14562 (loclist_generate_c_location): Update.
14563 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14564 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14565 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14566 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14567 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14568 (dwarf2_per_cu_data::addr_size)
14569 (dwarf2_per_cu_data::ref_addr_size)
14570 (dwarf2_per_cu_data::text_offset)
14571 (dwarf2_per_cu_data::addr_type): Now methods.
14572 (per_cu_header_read_in): Make per_cu "const".
14573 (dwarf2_version): Remove.
14574 (dwarf2_per_cu_data::int_type): Now a method.
14575 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14576 (set_die_type, read_array_type, read_subrange_index_type)
14577 (read_tag_string_type, read_subrange_type): Update.
14578 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14579 offset_size, ref_addr_size, text_offset, addr_type, version,
14580 objfile, int_type, addr_sized_int_type>: Declare methods.
14581
14582 2020-02-08 Tom Tromey <tom@tromey.com>
14583
14584 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14585 Move earlier.
14586
14587 2020-02-08 Tom Tromey <tom@tromey.com>
14588
14589 * dwarf2/read.h (dwarf_line_debug): Declare.
14590 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14591 * dwarf2/read.c: Move line_header code to new files.
14592 (dwarf_line_debug): No longer static.
14593 * dwarf2/line-header.c: New file.
14594 * dwarf2/line-header.h: New file.
14595
14596 2020-02-08 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.c (struct line_header) <file_full_name,
14599 file_file_name>: Return unique_xmalloc_ptr.
14600 (line_header::file_file_name): Update.
14601 (line_header::file_full_name): Update.
14602 (dw2_get_file_names_reader): Update.
14603 (macro_start_file): Update.
14604
14605 2020-02-08 Tom Tromey <tom@tromey.com>
14606
14607 * dwarf2/read.c (struct line_header) <file_full_name,
14608 file_file_name>: Declare methods.
14609 (dw2_get_file_names_reader): Update.
14610 (file_file_name): Now a method.
14611 (file_full_name): Likewise.
14612 (macro_start_file): Update.
14613
14614 2020-02-08 Tom Tromey <tom@tromey.com>
14615
14616 * dwarf2/read.c (dwarf_always_disassemble)
14617 (show_dwarf_always_disassemble): Move to loc.c.
14618 (_initialize_dwarf2_read): Move "always-disassemble" registration
14619 to loc.c.
14620 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14621 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14622 static.
14623 (show_dwarf_always_disassemble): Move from read.c.
14624 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14625
14626 2020-02-08 Tom Tromey <tom@tromey.com>
14627
14628 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14629 (create_quick_file_names_table): Return htab_up.
14630 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14631 Update.
14632 * dwarf2/read.h (struct dwarf2_per_objfile)
14633 <quick_file_names_table>: Now htab_up.
14634
14635 2020-02-08 Tom Tromey <tom@tromey.com>
14636
14637 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14638
14639 2020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14642 Rewrite.
14643 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14644 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14645 (abbrev_table::abbrev_table): No longer inline.
14646 (ABBREV_HASH_SIZE): Remove.
14647 (abbrev_table::m_abbrevs): Now an htab_up.
14648
14649 2020-02-08 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14652 (cutu_reader): Update.
14653 (build_type_psymtabs_1): Update.
14654 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14655 (abbrev_table::alloc_abbrev): Update.
14656 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14657 (abbrev_table::read): New static method, renamed from
14658 abbrev_table_read_table.
14659 (abbrev_table::alloc_abbrev)
14660 (abbrev_table::add_abbrev): Now private.
14661 (abbrev_table::abbrev_table): Now private.
14662 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14663
14664 2020-02-08 Tom Tromey <tom@tromey.com>
14665
14666 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14667 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14668 htab_up.
14669
14670 2020-02-08 Tom Tromey <tom@tromey.com>
14671
14672 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14673 htab_up.
14674 (lookup_dwo_unit_in_dwp): Update.
14675 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14676 on obstack.
14677
14678 2020-02-08 Tom Tromey <tom@tromey.com>
14679
14680 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14681 obstack.
14682
14683 2020-02-08 Tom Tromey <tom@tromey.com>
14684
14685 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14686 line_header_hash.
14687 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14688 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14689 Change type to htab_up.
14690
14691 2020-02-08 Tom Tromey <tom@tromey.com>
14692
14693 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14694 htab_up. Don't allocate on obstack.
14695 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14696 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14697 Change type to htab_up.
14698
14699 2020-02-08 Tom Tromey <tom@tromey.com>
14700
14701 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14702 Change type to htab_up.
14703 * dwarf2/read.c (create_signatured_type_table_from_index)
14704 (create_signatured_type_table_from_debug_names)
14705 (create_all_type_units, add_type_unit)
14706 (lookup_dwo_signatured_type, lookup_signatured_type)
14707 (process_skeletonless_type_unit): Update.
14708 (create_debug_type_hash_table, create_debug_types_hash_table):
14709 Change type of types_htab.
14710 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14711 htab_up. Don't allocate on obstack.
14712 (create_cus_hash_table): Change type of cus_htab parameter.
14713 (struct dwo_file) <cus, tus>: Now htab_up.
14714 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14715 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14716 (queue_and_load_all_dwo_tus): Update.
14717 * dwarf2/index-write.c (write_gdbindex): Update.
14718 (write_debug_names): Update.
14719
14720 2020-02-08 Tom Tromey <tom@tromey.com>
14721
14722 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14723 dwarf2/read.c. Remove "next" member. Add constructor ntad
14724 destructor.
14725 (struct dwarf2_per_objfile) <queue>: New member.
14726 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14727 dwarf2/read.h.
14728 (dwarf2_queue, dwarf2_queue_tail): Remove.
14729 (class dwarf2_queue_guard): Add parameter to constructor. Use
14730 DISABLE_COPY_AND_ASSIGN.
14731 <m_per_objfile>: New member.
14732 <~dwarf2_queue_guard>: Rewrite.
14733 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14734 Update.
14735 (~dwarf2_queue_item): New.
14736
14737 2020-02-08 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2/read.c (struct die_info) <has_children>: New member.
14740 (dw2_get_file_names_reader): Remove has_children.
14741 (dw2_get_file_names): Update.
14742 (read_cutu_die_from_dwo): Remove has_children.
14743 (cutu_reader::init_tu_and_read_dwo_dies)
14744 (cutu_reader::cutu_reader): Update.
14745 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14746 Remove has_children.
14747 (build_type_psymtabs_1, process_skeletonless_type_unit)
14748 (load_partial_comp_unit, load_full_comp_unit): Update.
14749 (create_dwo_cu_reader): Remove has_children.
14750 (create_cus_hash_table, read_die_and_children): Update.
14751 (read_full_die_1,read_full_die): Remove has_children.
14752 (read_signatured_type): Update.
14753 (class cutu_reader) <has_children>: Remove.
14754
14755 2020-02-08 Tom Tromey <tom@tromey.com>
14756
14757 * dwarf2/expr.c: Rename from dwarf2expr.c.
14758 * dwarf2/expr.h: Rename from dwarf2expr.h.
14759 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14760 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14761 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14762 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14763 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14764 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14765 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14766 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14767 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14768 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14769 * dwarf2/loc.c: Rename from dwarf2loc.c.
14770 * dwarf2/loc.h: Rename from dwarf2loc.h.
14771 * dwarf2/read.c: Rename from dwarf2read.c.
14772 * dwarf2/read.h: Rename from dwarf2read.h.
14773 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14774 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14775 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14776 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14777 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14778 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14779 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14780 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14781 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14782 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14783 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14784 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14785 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14786 Update.
14787 * Makefile.in (COMMON_SFILES): Update.
14788 (HFILES_NO_SRCDIR): Update.
14789
14790 2020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14793 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14794
14795 2020-02-08 Tom Tromey <tom@tromey.com>
14796
14797 * dwarf2read.h (struct die_info): Don't declare.
14798
14799 2020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2read.h (die_info_ptr): Remove typedef.
14802
14803 2020-02-08 Tom Tromey <tom@tromey.com>
14804
14805 * dwarf2read.c (read_call_site_scope)
14806 (handle_data_member_location, dwarf2_add_member_fn)
14807 (mark_common_block_symbol_computed, read_common_block)
14808 (attr_to_dynamic_prop, partial_die_info::read)
14809 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14810 (dwarf2_symbol_mark_computed, set_die_type): Update.
14811 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14812 method.
14813 (attr_form_is_block): Don't declare.
14814 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14815
14816 2020-02-08 Tom Tromey <tom@tromey.com>
14817
14818 * dwarf2read.c (dwarf2_find_base_address, )
14819 (read_call_site_scope, rust_containing_type)
14820 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14821 (handle_data_member_location, dwarf2_add_member_fn)
14822 (get_alignment, read_structure_type, process_structure_scope)
14823 (mark_common_block_symbol_computed, read_common_block)
14824 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14825 (partial_die_info::read, read_attribute_value, new_symbol)
14826 (lookup_die_type, dwarf2_get_ref_die_offset)
14827 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14828 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14829 (dwarf2_symbol_mark_computed): Update.
14830 * dwarf2/attribute.h (struct attribute) <value_as_address,
14831 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14832 methods.
14833 (value_as_address, attr_form_is_section_offset)
14834 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14835 * dwarf2/attribute.c (attribute::value_as_address)
14836 (attribute::form_is_section_offset, attribute::form_is_constant)
14837 (attribute::form_is_ref): Now methods.
14838
14839 2020-02-08 Tom Tromey <tom@tromey.com>
14840
14841 * dwarf2read.c (struct attribute, DW_STRING)
14842 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14843 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14844 (attr_form_is_block, attr_form_is_section_offset)
14845 (attr_form_is_constant, attr_form_is_ref): Move.
14846 * dwarf2/attribute.h: New file.
14847 * dwarf2/attribute.c: New file, from dwarf2read.c.
14848 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14849
14850 2020-02-08 Tom Tromey <tom@tromey.com>
14851
14852 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14853 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14854 Move.
14855 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14856 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14857 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14858 abbrev.c.
14859 * dwarf2/abbrev.h: New file.
14860 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14861 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14862
14863 2020-02-08 Tom Tromey <tom@tromey.com>
14864
14865 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14866 (dwarf2_section_size, dwarf2_get_section_info)
14867 (create_signatured_type_table_from_debug_names)
14868 (create_addrmap_from_aranges, read_debug_names_from_section)
14869 (get_gdb_index_contents_from_section, read_comp_unit_head)
14870 (error_check_comp_unit_head, read_abbrev_offset)
14871 (create_debug_type_hash_table, init_cu_die_reader)
14872 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14873 (read_comp_units_from_section, create_cus_hash_table)
14874 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14875 (create_dwp_v2_section, dwarf2_rnglists_process)
14876 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14877 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14878 (read_indirect_string_from_dwz, read_addr_index_1)
14879 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14880 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14881 (fill_in_loclist_baton): Update.
14882 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14883 get_containing_section, get_bfd_owner, get_bfd_section,
14884 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14885 (dwarf2_read_section, get_section_name, get_section_file_name)
14886 (get_containing_section, get_section_bfd_owner)
14887 (get_section_bfd_section, get_section_name, get_section_file_name)
14888 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14889 declare.
14890 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14891 (dwarf2_section_info::get_bfd_owner)
14892 (dwarf2_section_info::get_bfd_section)
14893 (dwarf2_section_info::get_name)
14894 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14895 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14896 (dwarf2_section_info::read): Now methods.
14897 * dwarf-index-write.c (class debug_names): Update.
14898
14899 2020-02-08 Tom Tromey <tom@tromey.com>
14900
14901 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14902 Move to dwarf2/section.h.
14903 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14904 (get_section_bfd_section, get_section_name)
14905 (get_section_file_name, get_section_id, get_section_flags)
14906 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14907 dwarf2/section.c.
14908 * dwarf2/section.h: New file.
14909 * dwarf2/section.c: New file, from dwarf2read.c.
14910 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14911
14912 2020-02-08 Tom Tromey <tom@tromey.com>
14913
14914 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14915 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14916 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14917 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14918 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14919 * dwarf2/leb.h: New file, from dwarf2read.c.
14920 * dwarf2/leb.c: New file, from dwarf2read.c.
14921 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14922 Remove.
14923 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14924 (COMMON_SFILES): Add dwarf2/leb.c.
14925
14926 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14927
14928 GDB 9.1 released.
14929
14930 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14931
14932 PR gdb/25190:
14933 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14934 * gdb/remote.c (remote_console_output): Update.
14935 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14936 (ui_file_puts): ...this.
14937 * gdb/ui-file.h (ui_file_puts): Add declaration.
14938 * gdb/utils.c (emit_style_escape): Update.
14939 (flush_wrap_buffer): Update.
14940 (fputs_maybe_filtered): Update.
14941 (fputs_unfiltered): Add function.
14942
14943 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14944
14945 * gdb/event-loop.c (gdb_wait_for_event): Update.
14946 * gdb/printcmd.c (printf_command): Update.
14947 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14948 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14949 (gdb_os_flush_stderr): Update.
14950 * gdb/remote.c (remote_console_output): Update.
14951 * gdb/ui-file.c (gdb_flush): Rename to...
14952 (ui_file_flush): ...this.
14953 (stderr_file::write): Update.
14954 (stderr_file::puts): Update.
14955 * gdb/ui-file.h (gdb_flush): Rename to...
14956 (ui_file_flush): ...this.
14957 * gdb/utils.c (gdb_flush): Add function.
14958 * gdb/utils.h (gdb_flush): Add declaration.
14959
14960 2020-02-07 Tom Tromey <tromey@adacore.com>
14961
14962 PR breakpoints/24915:
14963 * source.c (find_and_open_source): Do not check basenames_may_differ.
14964
14965 2020-02-07 Tom Tromey <tom@tromey.com>
14966
14967 * README: Update gdbserver documentation.
14968 * gdbserver: Move to top level.
14969 * configure.tgt (build_gdbserver): Remove.
14970 * configure.ac: Remove --enable-gdbserver.
14971 * configure: Rebuild.
14972 * Makefile.in (distclean): Don't mention gdbserver.
14973
14974 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14975
14976 * source-cache.c (source_cache::ensure): Surround
14977 get_plain_source_lines with a try/catch.
14978 (source_cache::get_line_charpos): Get rid of try/catch
14979 and only check for the return value of "ensure".
14980 * tui/tui-source.c (tui_source_window::set_contents):
14981 Simplify "nlines" calculation.
14982
14983 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14984
14985 * MAINTAINERS (Write After Approval): Add myself.
14986
14987 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14988
14989 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14990 function call.
14991
14992 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14993
14994 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14995
14996 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14997
14998 * nat/riscv-linux-tdesc.h: New file.
14999 * nat/riscv-linux-tdesc.c: New file, taking code from...
15000 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15001 ... here.
15002 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15003 NATDEPFILES.
15004
15005 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15006
15007 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15008 we don't set the fake simulator ptid to the null_ptid.
15009
15010 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15011
15012 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15013 * gdbthread.h (class thread_info) <resumed>: Likewise.
15014 * infrun.c (resume_1): Likewise.
15015 (proceed): Likewise.
15016 (infrun_thread_stop_requested): Likewise.
15017 (stop_all_threads): Likewise.
15018 (handle_inferior_event): Likewise.
15019 (restart_threads): Likewise.
15020 (finish_step_over): Likewise.
15021 (keep_going_stepped_thread): Likewise.
15022 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15023 (linux_handle_extended_wait): Likewise.
15024 * record-btrace.c (get_thread_current_frame_id): Likewise.
15025 * record-full.c (record_full_wait_1): Likewise.
15026 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15027 * target.c (target_resume): Likewise.
15028 * thread.c (set_running_thread): Likewise.
15029
15030 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15031
15032 * f-valprint.c (f77_print_array_1): Changed datatype of index
15033 variable to LONGEST from int to enable it to contain bound
15034 values correctly.
15035
15036 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15037
15038 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15039 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15040 offsets according to FLEN determined.
15041 (riscv_linux_nat_target::read_description): Determine FLEN
15042 dynamically.
15043 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15044 according to FLEN determined.
15045 (riscv_linux_nat_target::store_registers): Likewise.
15046
15047 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15048
15049 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15050 when reg->group is empty and reggroup is not.
15051
15052 2020-01-31 Tom Tromey <tromey@adacore.com>
15053
15054 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15055 Call beneath target's mourn_inferior after unpushing.
15056
15057 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15058
15059 PR tui/9765
15060 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15061 have enough lines to fill the screen, still return the lowest
15062 address we found.
15063
15064 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15065
15066 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15067 '-', '<', and '>' commands.
15068
15069 2020-01-29 Pedro Alves <palves@redhat.com>
15070 Sergio Durigan Junior <sergiodj@redhat.com>
15071
15072 * infcmd.c (construct_inferior_arguments): Assert that
15073 'argc' is greater than 0.
15074
15075 2020-01-29 Luis Machado <luis.machado@linaro.org>
15076
15077 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15078 (BRK_INSN_MASK): Define to 0xd4200000.
15079 (aarch64_program_breakpoint_here_p): New function.
15080 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15081 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15082 breakpoint.c.
15083 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15084 breakpoint.h
15085 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15086 call gdbarch_program_breakpoint_here_p.
15087 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15088 default_program_breakpoint_here_p, changed return type to bool and
15089 simplified.
15090 * breakpoint.h (program_breakpoint_here): Moved prototype to
15091 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15092 return type to bool.
15093 * gdbarch.c: Regenerate.
15094 * gdbarch.h: Regenerate.
15095 * gdbarch.sh (program_breakpoint_here_p): New method.
15096 * infrun.c (handle_signal_stop): Call
15097 gdbarch_program_breakpoint_here_p.
15098
15099 2020-01-26 Tom Tromey <tom@tromey.com>
15100
15101 * ctfread.c (struct ctf_fp_info): Reindent.
15102 (_initialize_ctfread): Remove.
15103
15104 2020-01-26 Tom Tromey <tom@tromey.com>
15105
15106 * psymtab.c (partial_map_expand_apply)
15107 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15108 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15109 (psym_print_stats, psym_expand_symtabs_for_function)
15110 (psym_map_symbol_filenames, psym_map_matching_symbols)
15111 (psym_expand_symtabs_matching)
15112 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15113 (maintenance_check_psymtabs): Use new methods.
15114 * psympriv.h (struct partial_symtab) <readin_p,
15115 get_compunit_symtab>: New methods.
15116 <readin, compunit_symtab>: Remove members.
15117 (struct standard_psymtab): New.
15118 (struct legacy_psymtab): Derive from standard_psymtab.
15119 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15120 standard_psymtab.
15121 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15122
15123 2020-01-26 Tom Tromey <tom@tromey.com>
15124
15125 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15126 read_dependencies. Add assert.
15127 * psymtab.c (partial_symtab::read_dependencies): New method.
15128 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15129 method.
15130 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15131 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15132 read_dependencies.
15133 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15134 Add assert.
15135
15136 2020-01-26 Tom Tromey <tom@tromey.com>
15137
15138 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15139 Call expand_psymtab.
15140 (xcoff_read_symtab): Call expand_psymtab.
15141 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15142 legacy_expand_psymtab.
15143 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15144 method.
15145 (struct legacy_psymtab) <expand_psymtab>: Implement.
15146 <legacy_expand_psymtab>: New member.
15147 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15148 (parse_partial_symbols): Set legacy_expand_psymtab.
15149 (psymtab_to_symtab_1): Change argument order. Call
15150 expand_psymtab.
15151 (new_psymtab): Set legacy_expand_psymtab.
15152 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15153 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15154 expand_psymtab.
15155 (dwarf2_psymtab::expand_psymtab): Rename from
15156 psymtab_to_symtab_1. Call expand_psymtab.
15157 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15158 (dbx_end_psymtab): Likewise.
15159 (dbx_psymtab_to_symtab_1): Change argument order. Call
15160 expand_psymtab.
15161 (dbx_read_symtab): Call expand_psymtab.
15162 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15163 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15164 (ctf_psymtab::read_symtab): Call expand_psymtab.
15165
15166 2020-01-26 Tom Tromey <tom@tromey.com>
15167
15168 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15169 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15170 messages.
15171 * mdebugread.c (mdebug_read_symtab): Remove prints.
15172 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15173 assert.
15174 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15175
15176 2020-01-26 Tom Tromey <tom@tromey.com>
15177
15178 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15179 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15180 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15181 legacy_symtab.
15182 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15183 * psymtab.c (psymtab_to_symtab): Call method.
15184 (dump_psymtab): Update.
15185 * psympriv.h (struct partial_symtab): Add virtual destructor.
15186 <read_symtab>: New method.
15187 (struct legacy_symtab): New.
15188 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15189 (struct pst_map) <pst>: Now a legacy_psymtab.
15190 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15191 (new_psymtab): Use legacy_psymtab.
15192 * dwarf2read.h (struct dwarf2_psymtab): New.
15193 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15194 * dwarf2read.c (dwarf2_create_include_psymtab)
15195 (dwarf2_build_include_psymtabs, create_type_unit_group)
15196 (create_partial_symtab, process_psymtab_comp_unit_reader)
15197 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15198 (set_partial_user): Use dwarf2_psymtab.
15199 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15200 (psymtab_to_symtab_1, process_full_comp_unit)
15201 (process_full_type_unit, dwarf2_ranges_read)
15202 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15203 (dwarf_decode_lines): Use dwarf2_psymtab.
15204 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15205 (add_address_entry_worker, write_one_signatured_type)
15206 (recursively_count_psymbols, recursively_write_psymbols)
15207 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15208 (write_debug_names): Likewise.
15209 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15210 <pst>: Now a legacy_psymtab.
15211 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15212 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15213 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15214 * ctfread.c (struct ctf_psymtab): New.
15215 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15216 ctf_psymtab.
15217 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15218 (create_partial_symtab): Return a ctf_psymtab.
15219 (scan_partial_symbols): Update.
15220
15221 2020-01-26 Tom Tromey <tom@tromey.com>
15222
15223 * xcoffread.c (xcoff_start_psymtab): Use new.
15224 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15225 renamed from start_psymtab_common.
15226 * psympriv.h (struct partial_symtab): Add new constructor.
15227 (start_psymtab_common): Don't declare.
15228 * mdebugread.c (parse_partial_symbols): Use new.
15229 * dwarf2read.c (create_partial_symtab): Use new.
15230 * dbxread.c (start_psymtab): Use new.
15231 * ctfread.c (create_partial_symtab): Use new.
15232
15233 2020-01-26 Tom Tromey <tom@tromey.com>
15234
15235 * xcoffread.c (xcoff_end_psymtab): Use new.
15236 * psymtab.c (start_psymtab_common): Use new.
15237 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15238 Update.
15239 * psympriv.h (struct partial_symtab): Add parameters to
15240 constructor. Don't inline.
15241 (allocate_psymtab): Don't declare.
15242 * mdebugread.c (new_psymtab): Use new.
15243 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15244 * dbxread.c (dbx_end_psymtab): Use new.
15245
15246 2020-01-26 Tom Tromey <tom@tromey.com>
15247
15248 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15249 allocate_psymtab. Update documentation.
15250 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15251 allocate_psymtab. Do not use new.
15252 (allocate_psymtab): Use new. Update.
15253
15254 2020-01-26 Tom Tromey <tom@tromey.com>
15255
15256 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15257 * psymtab.c (psym_print_stats): Update.
15258 * psympriv.h (struct partial_symtab) <readin,
15259 psymtabs_addrmap_supported, anonymous>: Now bool.
15260 * mdebugread.c (psymtab_to_symtab_1): Update.
15261 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15262 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15263 (process_full_comp_unit, process_full_type_unit): Update.
15264 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15265 * ctfread.c (psymtab_to_symtab): Update.
15266
15267 2020-01-26 Tom Tromey <tom@tromey.com>
15268
15269 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15270 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15271 * psymtab.c (psymtab_storage): Delete psymtabs.
15272 (psymtab_storage::allocate_psymtab): Use new.
15273 (psymtab_storage::discard_psymtab): Use delete.
15274 * psympriv.h (struct partial_symtab): Add constructor and
15275 initializers.
15276
15277 2020-01-26 Tom Tromey <tom@tromey.com>
15278
15279 * machoread.c: Do not include psympriv.h.
15280
15281 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15282
15283 * NEWS: Mention the new option and the set/show commands.
15284
15285 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15286
15287 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15288 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15289 (validate_exec_file): New variables, enums, functions.
15290 (exec_file_locate_attach, print_section_info): Style the filenames.
15291 (_initialize_exec): Install show_exec_file_mismatch_command and
15292 set_exec_file_mismatch_command.
15293 * gdbcore.h (validate_exec_file): Declare.
15294 * infcmd.c (attach_command): Call validate_exec_file.
15295 * remote.c ( remote_target::remote_add_inferior): Likewise.
15296
15297 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15298
15299 * frame.c (find_frame_sal): Move call to get_next_frame into more
15300 inner scope.
15301 * inline-frame.c (inilne_state) <inline_state>: Update argument
15302 types.
15303 (inilne_state) <skipped_symbol>: Rename to...
15304 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15305 (skip_inline_frames): Build vector of skipped symbols and use this
15306 to reate the inline_state.
15307 (inline_skipped_symbol): Add a comment and some assertions, fetch
15308 skipped symbol from the list.
15309
15310 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15311
15312 * buildsym.c (lte_is_less_than): Delete.
15313 (buildsym_compunit::end_symtab_with_blockvector): Create local
15314 lambda function to sort line table entries, and use
15315 std::stable_sort instead of std::sort.
15316 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15317 markers when looking for a previous line.
15318
15319 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15320
15321 * dwarf2read.c (lnp_state_machine::record_line): Include
15322 end_sequence parameter in debug print out. Record the line if we
15323 are at an end_sequence marker even if it's not the start of a
15324 statement.
15325 * symmisc.c (maintenance_print_one_line_table): Print end of
15326 sequence markers with 'END' not '0'.
15327
15328 2020-01-24 Pedro Alves <palves@redhat.com>
15329
15330 PR gdb/25410
15331 * thread.c (scoped_restore_current_thread::restore): Use
15332 switch_to_inferior_no_thread.
15333 * exec.c: Include "progspace-and-thread.h".
15334 (add_target_sections, remove_target_sections):
15335 scoped_restore_current_pspace_and_thread instead of
15336 scoped_restore_current_thread.
15337 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15338 and aspace to the inferior before calling clone_program_space.
15339 Remove stale comment.
15340
15341 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15342
15343 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15344 (arm_netbsd_nat_target::fetch_registers): ...this.
15345 (arm_nbsd_nat_target::store_registers): Rename to...
15346 (arm_netbsd_nat_target::store_registers): ...this.
15347
15348 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15349
15350 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15351 register_t.
15352
15353 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15354
15355 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15356 Update comment.
15357 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15358 Likewise.
15359 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15360 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15361 the correct replacement (iterate_over_regset_sections).
15362 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15363 Update comment.
15364
15365 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15366
15367 PR gdb/23718
15368 * gdb/python/python.c (execute_gdb_command): Call
15369 async_enable_stdin in catch block.
15370
15371 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15372
15373 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15374 SWITCH_THRU_ALL_UIS.
15375
15376 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15377
15378 PR tui/9765
15379 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15380 comment, add extra parameter, and update to store previous symbol
15381 when appropriate.
15382 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15383 add extra parameter.
15384 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15385 remove unneeded parameter, add try/catch around gdb_print_insn,
15386 rewrite to add items to asm_lines vector.
15387 (tui_find_backward_disassembly_start_address): New function.
15388 (tui_find_disassembly_address): Updated throughout.
15389 (tui_disasm_window::set_contents): Update for changes to
15390 tui_disassemble.
15391 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15392 number of lines to scroll.
15393
15394 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15395
15396 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15397 (SECT_OFF_DATA): Likewise.
15398 (SECT_OFF_RODATA): Likewise.
15399 (SECT_OFF_TEXT): Likewise.
15400 (SECT_OFF_BSS): Likewise.
15401 (struct objfile) <text_section_offset, data_section_offset>: New
15402 methods.
15403 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15404 objfile::text_section_offset.
15405 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15406 * coffread.c (coff_symtab_read): Likewise.
15407 (enter_linenos): Likewise.
15408 (process_coff_symbol): Likewise.
15409 * ctfread.c (get_objfile_text_range): Likewise.
15410 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15411 Use objfile::data_section_offset.
15412 * dwarf2-frame.c (execute_cfa_program): Use
15413 objfile::text_section_offset.
15414 (dwarf2_frame_find_fde): Likewise.
15415 * dwarf2read.c (create_addrmap_from_index): Likewise.
15416 (create_addrmap_from_aranges): Likewise.
15417 (dw2_find_pc_sect_compunit_symtab): Likewise.
15418 (process_psymtab_comp_unit_reader): Likewise.
15419 (add_partial_symbol): Likewise.
15420 (add_partial_subprogram): Likewise.
15421 (process_full_comp_unit): Likewise.
15422 (read_file_scope): Likewise.
15423 (read_func_scope): Likewise.
15424 (read_lexical_block_scope): Likewise.
15425 (read_call_site_scope): Likewise.
15426 (dwarf2_rnglists_process): Likewise.
15427 (dwarf2_ranges_process): Likewise.
15428 (dwarf2_ranges_read): Likewise.
15429 (dwarf_decode_lines_1): Likewise.
15430 (new_symbol): Likewise.
15431 (dwarf2_fetch_die_loc_sect_off): Likewise.
15432 (dwarf2_per_cu_text_offset): Likewise.
15433 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15434 * hppa-tdep.c (read_unwind_info): Likewise.
15435 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15436 * psympriv.h (struct partial_symtab): Likewise.
15437 * psymtab.c (find_pc_sect_psymtab): Likewise.
15438 * solib-svr4.c (enable_break): Likewise.
15439 * stap-probe.c (relocate_address): Use
15440 objfile::data_section_offset.
15441 * xcoffread.c (enter_line_range): Use
15442 objfile::text_section_offset.
15443 (read_xcoff_symtab): Likewise.
15444
15445 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15446
15447 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15448 declaration to narrower scopes.
15449
15450 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15451
15452 * darwin-nat.h (struct darwin_exception_msg, enum
15453 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15454 Move up.
15455 (class darwin_nat_target) <wait_1, check_new_threads,
15456 decode_exception_message, decode_message, stop_inferior,
15457 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15458 * darwin-nat.c (darwin_check_new_threads): Rename to...
15459 (darwin_nat_target::check_new_threads): ... this.
15460 (darwin_suspend_inferior_it): Remove.
15461 (darwin_decode_exception_message): Rename to...
15462 (darwin_nat_target::decode_exception_message): ... this.
15463 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15464 (darwin_decode_message): Rename to...
15465 (darwin_nat_target::decode_message): ... this.
15466 (cancel_breakpoint): Rename to...
15467 (darwin_nat_target::cancel_breakpoint): ... this.
15468 (darwin_wait): Rename to...
15469 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15470 instead of iterate_over_inferiors.
15471 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15472 (darwin_stop_inferior): Rename to...
15473 (darwin_nat_target::stop_inferior): ... this.
15474 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15475 (darwin_init_thread_list): Rename to...
15476 (darwin_nat_target::init_thread_list): ... this.
15477 (darwin_ptrace_him): Rename to...
15478 (darwin_nat_target::ptrace_him): ... this.
15479 (darwin_nat_target::create_inferior): Pass lambda function to
15480 fork_inferior.
15481 (darwin_nat_target::detach): Call stop_inferior instead of
15482 darwin_stop_inferior.
15483 * fork-inferior.h (fork_inferior): Change init_trace_fun
15484 parameter to gdb::function_view.
15485 * fork-inferior.c (fork_inferior): Likewise.
15486
15487 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15488
15489 * i386-cygwin-tdep.c (core_process_module_section): Update.
15490 * windows-nat.c (struct lm_info_windows): Add text_offset.
15491 (windows_xfer_shared_libraries): Update.
15492 * windows-tdep.c (windows_xfer_shared_library):
15493 Add text_offset_cached argument.
15494 * windows-tdep.h (windows_xfer_shared_library): Update.
15495
15496 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15497
15498 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15499
15500 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15501
15502 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15503 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15504 replace with range-based for.
15505 (gdbsim_interrupt_inferior): Remove.
15506 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15507 with a range-based for. Inline code from
15508 gdbsim_interrupt_inferior.
15509
15510 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15511
15512 * infrun.c (proceed): Fix indentation.
15513
15514 2020-01-21 Tom Tromey <tromey@adacore.com>
15515
15516 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15517 * python/python.c (python_extension_ops): Update.
15518 (gdbpy_colorize): New function.
15519 * python/lib/gdb/__init__.py (colorize): New function.
15520 * extension.h (ext_lang_colorize): Declare.
15521 * extension.c (ext_lang_colorize): New function.
15522 * extension-priv.h (struct extension_language_ops) <colorize>: New
15523 member.
15524 * cli/cli-style.c (_initialize_cli_style): Update help text.
15525
15526 2020-01-21 Luis Machado <luis.machado@linaro.org>
15527
15528 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15529 <cond>: Change type to bool.
15530 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15531 (aarch64_displaced_step_cb): Likewise.
15532 (aarch64_displaced_step_tb): Likewise.
15533
15534 2020-01-21 Luis Machado <luis.machado@linaro.org>
15535
15536 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15537 output.
15538
15539 2020-01-21 Luis Machado <luis.machado@linaro.org>
15540
15541 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15542 <pc_adjust>: Adjust the documentation.
15543 (aarch64_displaced_step_fixup): Check if PC really moved before
15544 adjusting it.
15545
15546 2020-01-19 Tom Tromey <tom@tromey.com>
15547
15548 * disasm.c (~gdb_disassembler): New destructor.
15549 (gdb_buffered_insn_length): Call disassemble_free_target.
15550 * disasm.h (class gdb_disassembler): Declare destructor. Use
15551 DISABLE_COPY_AND_ASSIGN.
15552
15553 2020-01-19 Tom Tromey <tom@tromey.com>
15554
15555 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15556 (die_reader_func_ftype): Remove.
15557 (cutu_reader): New class.
15558 (dw2_get_file_names_reader): Remove "data" parameter.
15559 (dw2_get_file_names): Use cutu_reader.
15560 (create_debug_type_hash_table): Update.
15561 (read_cutu_die_from_dwo): Update comment.
15562 (lookup_dwo_unit): Add dwo_name parameter.
15563 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15564 die_reader_func_ftype and data parameters.
15565 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15566 Remove die_reader_func_ftype and data parameters.
15567 (~cutu_reader): New; from init_cutu_and_read_dies.
15568 (cutu_reader::cutu_reader): Rename from
15569 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15570 and data parameters.
15571 (init_cutu_and_read_dies_simple): Remove.
15572 (struct process_psymtab_comp_unit_data): Remove.
15573 (process_psymtab_comp_unit_reader): Remove data parameter; add
15574 want_partial_unit and pretend_language parameters.
15575 (process_psymtab_comp_unit): Use cutu_reader.
15576 (build_type_psymtabs_reader): Remove data parameter.
15577 (build_type_psymtabs_1): Use cutu_reader.
15578 (process_skeletonless_type_unit): Likewise.
15579 (load_partial_comp_unit_reader): Remove.
15580 (load_partial_comp_unit): Use cutu_reader.
15581 (load_full_comp_unit_reader): Remove.
15582 (load_full_comp_unit): Use cutu_reader.
15583 (struct create_dwo_cu_data): Remove.
15584 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15585 dwo_unit parameters.
15586 (create_cus_hash_table): Use cutu_reader.
15587 (struct dwarf2_read_addr_index_data): Remove.
15588 (dwarf2_read_addr_index_reader): Remove.
15589 (dwarf2_read_addr_index): Use cutu_reader.
15590 (read_signatured_type_reader): Remove.
15591 (read_signatured_type): Use cutu_reader.
15592
15593 2020-01-19 Tom Tromey <tom@tromey.com>
15594
15595 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15596 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15597 (tui_wrefresh): Declare.
15598 * tui/tui-wingeneral.c (suppress_output): New global.
15599 (tui_suppress_output, ~tui_suppress_output): New constructor and
15600 destructor.
15601 (tui_wrefresh): New function.
15602 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15603 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15604 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15605 method.
15606 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15607 tui_wrefresh.
15608 (tui_data_window::no_refresh): New method.
15609 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15610 (tui_reg_command): Use tui_suppress_output
15611 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15612 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15613 method.
15614 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15615
15616 2020-01-19 Tom Tromey <tom@tromey.com>
15617
15618 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15619 Handle case where symtab is null.
15620
15621 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15622
15623 * linux-fork.c (one_fork_p): Simplify.
15624
15625 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15626
15627 * top.c (struct qt_args): Remove.
15628 (kill_or_detach): Change return type to void, replace `void *`
15629 parameter with a proper one.
15630 (print_inferior_quit_action): Likewise.
15631 (quit_confirm): Use range-based for loop to iterate over inferiors.
15632 (quit_force): Likewise.
15633
15634 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15635
15636 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15637 `void *` parameter with proper parameters.
15638 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15639 (print_one_inferior): Change return type to void, replace `void *`
15640 parameter with proper parameters.
15641 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15642 inferiors.
15643 (get_other_inferior): Remove.
15644 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15645 inferiors.
15646
15647 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15648
15649 * mi/mi-interp.c (report_initial_inferior): Remove.
15650 (mi_interp::init): Use range-based for to iterate over inferiors.
15651
15652 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15653
15654 * python/py-inferior.c (build_inferior_list): Remove.
15655 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15656
15657 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15658
15659 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15660 (btrace_stitch_trace): Likewise.
15661 * charset.c (intermediate_encoding): Likewise (vaild).
15662 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15663 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15664 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15665
15666 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15667
15668 * windows-tdep.c (windows_get_tlb_type):
15669 Add rtl_user_process_parameters type.
15670
15671 2020-01-16 Pedro Alves <palves@redhat.com>
15672 Norbert Lange <nolange79@gmail.com>
15673
15674 PR build/24805
15675 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15676 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15677 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15678 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15679 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15680 (ps_plog): Redeclare exported functions with default visibility.
15681
15682 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15683
15684 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15685 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15686
15687 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15688
15689 * infcmd.c (post_create_inferior): Use get_thread_regcache
15690 instead of get_current_regcache.
15691
15692 2020-01-14 Tom Tromey <tom@tromey.com>
15693
15694 PR symtab/12535:
15695 * python/python.c (gdbpy_decode_line): Treat empty string the same
15696 as no argument.
15697
15698 2020-01-14 Tom Tromey <tom@tromey.com>
15699
15700 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15701
15702 2020-01-14 Tom Tromey <tom@tromey.com>
15703
15704 * nat/linux-btrace.c: Don't include <config.h>.
15705 * nat/linux-ptrace.c: Don't include <config.h>.
15706 * nat/x86-linux-dregs.c: Don't include <config.h>.
15707
15708 2020-01-14 Tom Tromey <tom@tromey.com>
15709
15710 * configure: Rebuild.
15711 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15712
15713 2020-01-14 Tom Tromey <tom@tromey.com>
15714
15715 * nat/x86-linux-dregs.c: Include configh.h.
15716 * nat/linux-ptrace.c: Include configh.h.
15717 * nat/linux-btrace.c: Include configh.h.
15718 * defs.h: Include config.h, bfd.h.
15719 * configure.ac: Don't source common.host.
15720 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15721 * configure: Rebuild.
15722 * acinclude.m4: Update path.
15723 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15724 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15725 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15726 (CLIBS): Add LIBSUPPORT.
15727 (CDEPS): Likewise.
15728 (COMMON_SFILES): Remove gdbsupport files.
15729 (HFILES_NO_SRCDIR): Likewise.
15730 (stamp-version): Update path to create-version.sh.
15731 (ALLDEPFILES): Remove gdbsupport files.
15732
15733 2020-01-14 Tom Tromey <tom@tromey.com>
15734
15735 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15736 USE_WIN32API when needed.
15737 * configure.ac (USE_WIN32API): Don't define.
15738 (WIN32LIBS): Use WIN32APILIBS.
15739 * configure: Rebuild.
15740
15741 2020-01-14 Tom Tromey <tom@tromey.com>
15742
15743 * configure: Rebuild.
15744 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15745
15746 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15747
15748 * skip.c (skip_function_command): Make skip w/o arguments use the
15749 name of the inlined function if pc is inside any inlined function.
15750
15751 2020-01-14 Luis Machado <luis.machado@linaro.org>
15752
15753 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15754 * infrun.c (resume_1): Likewise.
15755 (handle_inferior_event): Remove stale comment.
15756 * linux-nat.c (linux_nat_target::resume): Update comments.
15757 (save_stop_reason): Likewise.
15758 (linux_nat_filter_event): Likewise.
15759 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15760
15761 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15762
15763 * elfread.c (record_minimal_symbol): Set section index to 0 for
15764 non-allocatable sections.
15765
15766
15767 2020-01-13 Ali Tamur <tamur@google.com>
15768
15769 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15770 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15771 to gdb::optional. Update comments.
15772 (dwo_file): Update comments.
15773 (read_attribute): Update API to take an additional out parameter,
15774 need_reprocess. This is used to mark attributes that need other
15775 attributes (e.g. str_offsets_base) for correct computation which may not
15776 have been read yet.
15777 (read_attribute_reprocess): New function declaration.
15778 (read_addr_index): Likewise.
15779 (read_dwo_str_index): Likewise.
15780 (read_stub_str_index): Likewise.
15781 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15782 (lookup_addr_base): New function definition.
15783 (lookup_ranges_base): Likewise.
15784 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15785 lookup_ranges_base.
15786 (init_cutu_and_read_dies): Update comments.
15787 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15788 unit. This is used to inherit parent's str_offsets_base and addr_base.
15789 Update comments.
15790 (init_cutu_and_read_dies_simple): Reflect API changes.
15791 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15792 (create_cus_hash_table): Change API to take parent compile unit.
15793 Reflect API changes.
15794 (open_and_init_dwo_file): Reflect API changes.
15795 (dwarf2_get_pc_bounds): Update comments.
15796 (dwarf2_record_block_ranges): Likewise.
15797 (read_full_die_1): Change implementation to reprocess attributes that
15798 need str_offsets_base and addr_base.
15799 (partial_die_info::read): Likewise.
15800 (read_attribute_reprocess): New function definition.
15801 (read_attribute_value): Change API to take an additional out parameter,
15802 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15803 when a non-dwo compile unit has index based attributes.
15804 (read_attribute): Reflect API changes.
15805 (read_addr_index_1): Reflect API changes. Update comments.
15806 (dwarf2_read_addr_index_data): Reflect API changes.
15807 (dwarf2_read_addr_index): Likewise.
15808 (read_str_index): Change API and implementation. This becomes a helper
15809 to be used by the new string index related methods. Update error
15810 message and comments.
15811 (read_dwo_str_index): New function definition.
15812 (read_stub_str_index): Likewise.
15813 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15814 * symfile.h (dwarf2_debug_sections): Likewise.
15815 * xcoffread.c (dwarf2_debug_sections): Likewise.
15816
15817 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15818
15819 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15820 core_reg_sect type to gdb_byte *.
15821 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15822 * cris-tdep.c (fetch_core_registers): Likewise.
15823 * corelow.c (core_target::get_core_register_section): Change
15824 type of `contents` to gdb::byte_vector.
15825
15826 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15827
15828 * tui/tui-wingeneral.c (box_win): Position the title in the center
15829 of the border.
15830
15831 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15832
15833 * corelow.c (core_target::get_core_register_section): Use
15834 std::vector instead of alloca.
15835
15836 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15837
15838 * warning.m4: Add -Wmissing-declarations to build_warnings.
15839 * configure: Re-generate.
15840
15841 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15842
15843 * python/python.c (init__gdb_module): Add declaration.
15844
15845 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15846
15847 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15848 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15849 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15850 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15851 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15852 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15853 * ada-exp.y (_initialize_ada_exp): Add declaration.
15854 * ada-lang.c (_initialize_ada_language): Add declaration.
15855 * ada-tasks.c (_initialize_tasks): Add declaration.
15856 * agent.c (_initialize_agent): Add declaration.
15857 * aix-thread.c (_initialize_aix_thread): Add declaration.
15858 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15859 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15860 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15861 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15862 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15863 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15864 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15865 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15866 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15867 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15868 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15869 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15870 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15871 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15872 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15873 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15874 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15875 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15876 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15877 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15878 * annotate.c (_initialize_annotate): Add declaration.
15879 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15880 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15881 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15882 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15883 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15884 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15885 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15886 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15887 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15888 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15889 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15890 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15891 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15892 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15893 * auto-load.c (_initialize_auto_load): Add declaration.
15894 * auxv.c (_initialize_auxv): Add declaration.
15895 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15896 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15897 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15898 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15899 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15900 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15901 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15902 * breakpoint.c (_initialize_breakpoint): Add declaration.
15903 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15904 * btrace.c (_initialize_btrace): Add declaration.
15905 * charset.c (_initialize_charset): Add declaration.
15906 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15907 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15908 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15909 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15910 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15911 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15912 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15913 * coffread.c (_initialize_coffread): Add declaration.
15914 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15915 * compile/compile.c (_initialize_compile): Add declaration.
15916 * complaints.c (_initialize_complaints): Add declaration.
15917 * completer.c (_initialize_completer): Add declaration.
15918 * copying.c (_initialize_copying): Add declaration.
15919 * corefile.c (_initialize_core): Add declaration.
15920 * corelow.c (_initialize_corelow): Add declaration.
15921 * cp-abi.c (_initialize_cp_abi): Add declaration.
15922 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15923 * cp-support.c (_initialize_cp_support): Add declaration.
15924 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15925 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15926 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15927 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15928 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15929 * ctfread.c (_initialize_ctfread): Add declaration.
15930 * d-lang.c (_initialize_d_language): Add declaration.
15931 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15932 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15933 * dbxread.c (_initialize_dbxread): Add declaration.
15934 * dcache.c (_initialize_dcache): Add declaration.
15935 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15936 * disasm.c (_initialize_disasm): Add declaration.
15937 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15938 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15939 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15940 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15941 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15942 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15943 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15944 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15945 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15946 * elfread.c (_initialize_elfread): Add declaration.
15947 * exec.c (_initialize_exec): Add declaration.
15948 * extension.c (_initialize_extension): Add declaration.
15949 * f-lang.c (_initialize_f_language): Add declaration.
15950 * f-valprint.c (_initialize_f_valprint): Add declaration.
15951 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15952 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15953 * filesystem.c (_initialize_filesystem): Add declaration.
15954 * findcmd.c (_initialize_mem_search): Add declaration.
15955 * findvar.c (_initialize_findvar): Add declaration.
15956 * fork-child.c (_initialize_fork_child): Add declaration.
15957 * frame-base.c (_initialize_frame_base): Add declaration.
15958 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15959 * frame.c (_initialize_frame): Add declaration.
15960 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15961 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15962 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15963 * gcore.c (_initialize_gcore): Add declaration.
15964 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15965 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15966 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15967 * gdbarch.c (_initialize_gdbarch): Add declaration.
15968 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15969 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15970 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15971 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15972 * go-lang.c (_initialize_go_language): Add declaration.
15973 * go32-nat.c (_initialize_go32_nat): Add declaration.
15974 * guile/guile.c (_initialize_guile): Add declaration.
15975 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15976 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15977 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15978 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15979 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15980 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15981 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15982 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15983 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15984 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15985 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15986 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15987 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15988 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15989 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15990 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15991 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15992 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15993 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15994 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15995 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15996 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15997 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15998 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15999 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16000 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16001 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16002 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16003 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16004 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16005 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16006 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16007 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16008 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16009 * infcall.c (_initialize_infcall): Add declaration.
16010 * infcmd.c (_initialize_infcmd): Add declaration.
16011 * inflow.c (_initialize_inflow): Add declaration.
16012 * infrun.c (_initialize_infrun): Add declaration.
16013 * interps.c (_initialize_interpreter): Add declaration.
16014 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16015 * jit.c (_initialize_jit): Add declaration.
16016 * language.c (_initialize_language): Add declaration.
16017 * linux-fork.c (_initialize_linux_fork): Add declaration.
16018 * linux-nat.c (_initialize_linux_nat): Add declaration.
16019 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16020 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16021 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16022 * m2-lang.c (_initialize_m2_language): Add declaration.
16023 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16024 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16025 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16026 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16027 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16028 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16029 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16030 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16031 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16032 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16033 * machoread.c (_initialize_machoread): Add declaration.
16034 * macrocmd.c (_initialize_macrocmd): Add declaration.
16035 * macroscope.c (_initialize_macroscope): Add declaration.
16036 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16037 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16038 * maint.c (_initialize_maint_cmds): Add declaration.
16039 * mdebugread.c (_initialize_mdebugread): Add declaration.
16040 * memattr.c (_initialize_mem): Add declaration.
16041 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16042 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16043 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16044 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16045 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16046 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16047 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16048 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16049 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16050 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16051 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16052 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16053 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16054 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16055 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16056 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16057 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16058 * mipsread.c (_initialize_mipsread): Add declaration.
16059 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16060 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16061 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16062 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16063 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16064 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16065 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16066 * nto-procfs.c (_initialize_procfs): Add declaration.
16067 * objc-lang.c (_initialize_objc_language): Add declaration.
16068 * observable.c (_initialize_observer): Add declaration.
16069 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16070 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16071 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16072 * osabi.c (_initialize_gdb_osabi): Add declaration.
16073 * osdata.c (_initialize_osdata): Add declaration.
16074 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16075 * parse.c (_initialize_parse): Add declaration.
16076 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16077 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16078 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16079 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16080 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16081 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16082 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16083 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16084 * printcmd.c (_initialize_printcmd): Add declaration.
16085 * probe.c (_initialize_probe): Add declaration.
16086 * proc-api.c (_initialize_proc_api): Add declaration.
16087 * proc-events.c (_initialize_proc_events): Add declaration.
16088 * proc-service.c (_initialize_proc_service): Add declaration.
16089 * procfs.c (_initialize_procfs): Add declaration.
16090 * producer.c (_initialize_producer): Add declaration.
16091 * psymtab.c (_initialize_psymtab): Add declaration.
16092 * python/python.c (_initialize_python): Add declaration.
16093 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16094 * record-btrace.c (_initialize_record_btrace): Add declaration.
16095 * record-full.c (_initialize_record_full): Add declaration.
16096 * record.c (_initialize_record): Add declaration.
16097 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16098 * regcache.c (_initialize_regcache): Add declaration.
16099 * reggroups.c (_initialize_reggroup): Add declaration.
16100 * remote-notif.c (_initialize_notif): Add declaration.
16101 * remote-sim.c (_initialize_remote_sim): Add declaration.
16102 * remote.c (_initialize_remote): Add declaration.
16103 * reverse.c (_initialize_reverse): Add declaration.
16104 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16105 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16106 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16107 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16108 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16109 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16110 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16111 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16112 Add declaration.
16113 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16114 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16115 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16116 * rust-exp.y (_initialize_rust_exp): Add declaration.
16117 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16118 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16119 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16120 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16121 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16122 * score-tdep.c (_initialize_score_tdep): Add declaration.
16123 * ser-go32.c (_initialize_ser_dos): Add declaration.
16124 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16125 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16126 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16127 * ser-uds.c (_initialize_ser_socket): Add declaration.
16128 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16129 * serial.c (_initialize_serial): Add declaration.
16130 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16131 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16132 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16133 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16134 * skip.c (_initialize_step_skip): Add declaration.
16135 * sol-thread.c (_initialize_sol_thread): Add declaration.
16136 * solib-aix.c (_initialize_solib_aix): Add declaration.
16137 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16138 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16139 * solib-frv.c (_initialize_frv_solib): Add declaration.
16140 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16141 * solib-target.c (_initialize_solib_target): Add declaration.
16142 * solib.c (_initialize_solib): Add declaration.
16143 * source-cache.c (_initialize_source_cache): Add declaration.
16144 * source.c (_initialize_source): Add declaration.
16145 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16146 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16147 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16148 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16149 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16150 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16151 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16152 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16153 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16154 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16155 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16156 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16157 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16158 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16159 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16160 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16161 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16162 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16163 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16164 * stabsread.c (_initialize_stabsread): Add declaration.
16165 * stack.c (_initialize_stack): Add declaration.
16166 * stap-probe.c (_initialize_stap_probe): Add declaration.
16167 * std-regs.c (_initialize_frame_reg): Add declaration.
16168 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16169 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16170 * symfile.c (_initialize_symfile): Add declaration.
16171 * symmisc.c (_initialize_symmisc): Add declaration.
16172 * symtab.c (_initialize_symtab): Add declaration.
16173 * target.c (_initialize_target): Add declaration.
16174 * target-connection.c (_initialize_target_connection): Add
16175 declaration.
16176 * target-dcache.c (_initialize_target_dcache): Add declaration.
16177 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16178 * thread.c (_initialize_thread): Add declaration.
16179 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16180 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16181 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16182 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16183 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16184 * tracectf.c (_initialize_ctf): Add declaration.
16185 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16186 * tracefile.c (_initialize_tracefile): Add declaration.
16187 * tracepoint.c (_initialize_tracepoint): Add declaration.
16188 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16189 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16190 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16191 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16192 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16193 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16194 * tui/tui.c (_initialize_tui): Add declaration.
16195 * typeprint.c (_initialize_typeprint): Add declaration.
16196 * ui-style.c (_initialize_ui_style): Add declaration.
16197 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16198 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16199 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16200 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16201 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16202 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16203 * unittests/filtered_iterator-selftests.c
16204 (_initialize_filtered_iterator_selftests): Add declaration.
16205 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16206 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16207 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16208 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16209 * unittests/main-thread-selftests.c
16210 (_initialize_main_thread_selftests): Add declaration.
16211 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16212 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16213 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16214 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16215 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16216 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16217 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16218 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16219 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16220 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16221 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16222 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16223 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16224 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16225 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16226 declaration.
16227 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16228 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16229 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16230 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16231 * user-regs.c (_initialize_user_regs): Add declaration.
16232 * utils.c (_initialize_utils): Add declaration.
16233 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16234 * valops.c (_initialize_valops): Add declaration.
16235 * valprint.c (_initialize_valprint): Add declaration.
16236 * value.c (_initialize_values): Add declaration.
16237 * varobj.c (_initialize_varobj): Add declaration.
16238 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16239 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16240 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16241 * windows-nat.c (_initialize_windows_nat): Add declaration.
16242 (_initialize_check_for_gdb_ini): Add declaration.
16243 (_initialize_loadable): Add declaration.
16244 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16245 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16246 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16247 * xcoffread.c (_initialize_xcoffread): Add declaration.
16248 * xml-support.c (_initialize_xml_support): Add declaration.
16249 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16250 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16251 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16252 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16253
16254 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16255
16256 * regformats/regdat.sh: Generate declaration for init function.
16257
16258 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16259
16260 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16261 up.
16262 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16263 close_one_inferior>: New methods.
16264 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16265 pass down target to find_inferior_pid.
16266 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16267 Pass down target to find_inferior_ptid.
16268 (gdbsim_target::create_inferior): Pass down target to
16269 add_thread_silent.
16270 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16271 target down to find_inferior_ptid and switch_to_thread.
16272 (gdbsim_target::close): Update to call close_one_inferior.
16273 (struct resume_data): Remove.
16274 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16275 directly, rather than through a void pointer.
16276 (gdbsim_target::resume): Update to call resume_one_inferior.
16277
16278 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16279
16280 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16281
16282 2020-01-12 Pedro Alves <palves@redhat.com>
16283
16284 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16285 directly for the current inferior instead of
16286 discard_all_inferiors.
16287 (discard_all_inferiors): Delete.
16288
16289 2020-01-11 Tom Tromey <tom@tromey.com>
16290
16291 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16292 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16293 deprecated_safe_get_selected_frame.
16294
16295 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16296
16297 * inferior.c (print_inferior): Switch inferior before printing it.
16298
16299 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16300 Pedro Alves <palves@redhat.com>
16301
16302 * progspace-and-thread.c (switch_to_program_space_and_thread):
16303 Assert there's an inferior for PSPACE. Use
16304 switch_to_inferior_no_thread to switch the inferior too.
16305 * progspace.c (program_space::~program_space): Call
16306 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16307 (program_space::free_all_objfiles): Don't call clear_symtab_users
16308 here.
16309 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16310
16311 2020-01-10 Pedro Alves <palves@redhat.com>
16312
16313 * NEWS: Mention multi-target debugging, "info connections", and
16314 "add-inferior -no-connection".
16315
16316 2020-01-10 Pedro Alves <palves@redhat.com>
16317
16318 * infrun.c: Include "target-connection.h".
16319 (check_multi_target_resumption): New.
16320 (proceed): Call it.
16321 * target-connection.c (make_target_connection_string): Make
16322 extern.
16323 * target-connection.h (make_target_connection_string): Declare.
16324
16325 2020-01-10 Pedro Alves <palves@redhat.com>
16326
16327 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16328 * inferior.c (uiout_field_connection): New function.
16329 (print_inferior): Add new "connection-id" column.
16330 (add_inferior_command): Show connection number/string of added
16331 inferior.
16332 * process-stratum-target.h
16333 (process_stratum_target::connection_string): New virtual method.
16334 (process_stratum_target::connection_number): New field.
16335 * remote.c (remote_target::connection_string): New override.
16336 * target-connection.c: New file.
16337 * target-connection.h: New file.
16338 * target.c (decref_target): Remove process_stratum targets from
16339 the connection list.
16340 (target_stack::push): Add process_stratum targets to the
16341 connection list.
16342
16343 2020-01-10 Pedro Alves <palves@redhat.com>
16344
16345 Revert:
16346 2016-04-12 Pedro Alves <palves@redhat.com>
16347 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16348 Remove references to name.
16349 * serial.h (struct serial) <name>: Delete.
16350
16351 2020-01-10 Pedro Alves <palves@redhat.com>
16352
16353 * gdbarch-selftests.c (register_to_value_test): Remove "target
16354 already pushed" check.
16355
16356 2020-01-10 Pedro Alves <palves@redhat.com>
16357 John Baldwin <jhb@FreeBSD.org>
16358
16359 * aarch64-linux-nat.c
16360 (aarch64_linux_nat_target::thread_architecture): Adjust.
16361 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16362 (task_command_1): Likewise.
16363 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16364 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16365 (aix_thread_target::store_registers)
16366 (aix_thread_target::thread_alive): Adjust.
16367 * amd64-fbsd-tdep.c: Include "inferior.h".
16368 (amd64fbsd_get_thread_local_address): Pass down target.
16369 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16370 thread's gdbarch instead of target_gdbarch.
16371 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16372 get_last_target_status.
16373 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16374 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16375 inferiors.
16376 (update_inserted_breakpoint_locations): Skip if inferiors with no
16377 execution.
16378 (update_global_location_list): When handling moribund locations,
16379 find representative inferior for location's pspace, and use thread
16380 count of its process_stratum target.
16381 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16382 * bsd-uthread.c (bsd_uthread_target::wait): Use
16383 as_process_stratum_target and adjust thread_change_ptid and
16384 add_thread calls.
16385 (bsd_uthread_target::update_thread_list): Use
16386 as_process_stratum_target and adjust find_thread_ptid,
16387 thread_change_ptid and add_thread calls.
16388 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16389 find_thread_ptid call.
16390 * corelow.c (add_to_thread_list): Adjust add_thread call.
16391 (core_target_open): Adjust add_thread_silent and thread_count
16392 calls.
16393 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16394 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16395 * event-top.c (async_disconnect): Pop targets from all inferiors.
16396 * exec.c (add_target_sections): Push exec target on all inferiors
16397 sharing the program space.
16398 (remove_target_sections): Remove the exec target from all
16399 inferiors sharing the program space.
16400 (exec_on_vfork): New.
16401 * exec.h (exec_on_vfork): Declare.
16402 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16403 Pass it down.
16404 (fbsd_nat_target::update_thread_list): Adjust.
16405 (fbsd_nat_target::resume): Adjust.
16406 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16407 down.
16408 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16409 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16410 get_thread_arch_regcache call.
16411 * fork-child.c (gdb_startup_inferior): Pass target down to
16412 startup_inferior and set_executing.
16413 * gdbthread.h (struct process_stratum_target): Forward declare.
16414 (add_thread, add_thread_silent, add_thread_with_info)
16415 (in_thread_list): Add process_stratum_target parameter.
16416 (find_thread_ptid(inferior*, ptid_t)): New overload.
16417 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16418 parameter.
16419 (all_threads()): Delete overload.
16420 (all_threads, all_non_exited_threads): Add process_stratum_target
16421 parameter.
16422 (all_threads_safe): Use brace initialization.
16423 (thread_count): Add process_stratum_target parameter.
16424 (set_resumed, set_running, set_stop_requested, set_executing)
16425 (threads_are_executing, finish_thread_state): Add
16426 process_stratum_target parameter.
16427 (switch_to_thread): Use is_current_thread.
16428 * i386-fbsd-tdep.c: Include "inferior.h".
16429 (i386fbsd_get_thread_local_address): Pass down target.
16430 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16431 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16432 have_inferiors check.
16433 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16434 (inf_ptrace_target::attach): Adjust.
16435 * infcall.c (run_inferior_call): Adjust.
16436 * infcmd.c (run_command_1): Pass target to
16437 scoped_finish_thread_state.
16438 (proceed_thread_callback): Skip inferiors with no execution.
16439 (continue_command): Rename 'all_threads' local to avoid hiding
16440 'all_threads' function. Adjust get_last_target_status call.
16441 (prepare_one_step): Adjust set_running call.
16442 (signal_command): Use user_visible_resume_target. Compare thread
16443 pointers instead of inferior_ptid.
16444 (info_program_command): Adjust to pass down target.
16445 (attach_command): Mark target's 'thread_executing' flag.
16446 (stop_current_target_threads_ns): New, factored out from ...
16447 (interrupt_target_1): ... this. Switch inferior before making
16448 target calls.
16449 * inferior-iter.h
16450 (struct all_inferiors_iterator, struct all_inferiors_range)
16451 (struct all_inferiors_safe_range)
16452 (struct all_non_exited_inferiors_range): Filter on
16453 process_stratum_target too. Remove explicit.
16454 * inferior.c (inferior::inferior): Push dummy target on target
16455 stack.
16456 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16457 Add process_stratum_target parameter, and pass it down.
16458 (have_live_inferiors): Adjust.
16459 (switch_to_inferior_and_push_target): New.
16460 (add_inferior_command, clone_inferior_command): Handle
16461 "-no-connection" parameter. Use
16462 switch_to_inferior_and_push_target.
16463 (_initialize_inferior): Mention "-no-connection" option in
16464 the help of "add-inferior" and "clone-inferior" commands.
16465 * inferior.h: Include "process-stratum-target.h".
16466 (interrupt_target_1): Use bool.
16467 (struct inferior) <push_target, unpush_target, target_is_pushed,
16468 find_target_beneath, top_target, process_target, target_at,
16469 m_stack>: New.
16470 (discard_all_inferiors): Delete.
16471 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16472 (all_inferiors, all_non_exited_inferiors): Add
16473 process_stratum_target parameter.
16474 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16475 (target_last_proc_target): New global.
16476 (follow_fork_inferior): Push target on new inferior. Pass target
16477 to add_thread_silent. Call exec_on_vfork. Handle target's
16478 reference count.
16479 (follow_fork): Adjust get_last_target_status call. Also consider
16480 target.
16481 (follow_exec): Push target on new inferior.
16482 (struct execution_control_state) <target>: New field.
16483 (user_visible_resume_target): New.
16484 (do_target_resume): Call target_async.
16485 (resume_1): Set target's threads_executing flag. Consider resume
16486 target.
16487 (commit_resume_all_targets): New.
16488 (proceed): Also consider resume target. Skip threads of inferiors
16489 with no execution. Commit resumtion in all targets.
16490 (start_remote): Pass current inferior to wait_for_inferior.
16491 (infrun_thread_stop_requested): Consider target as well. Pass
16492 thread_info pointer to clear_inline_frame_state instead of ptid.
16493 (infrun_thread_thread_exit): Consider target as well.
16494 (random_pending_event_thread): New inferior parameter. Use it.
16495 (do_target_wait): Rename to ...
16496 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16497 down.
16498 (threads_are_resumed_pending_p, do_target_wait): New.
16499 (prepare_for_detach): Adjust calls.
16500 (wait_for_inferior): New inferior parameter. Handle it. Use
16501 do_target_wait_1 instead of do_target_wait.
16502 (fetch_inferior_event): Adjust. Switch to representative
16503 inferior. Pass target down.
16504 (set_last_target_status): Add process_stratum_target parameter.
16505 Save target in global.
16506 (get_last_target_status): Add process_stratum_target parameter and
16507 handle it.
16508 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16509 (context_switch): Check inferior_ptid == null_ptid before calling
16510 inferior_thread().
16511 (get_inferior_stop_soon): Pass down target.
16512 (wait_one): Rename to ...
16513 (poll_one_curr_target): ... this.
16514 (struct wait_one_event): New.
16515 (wait_one): New.
16516 (stop_all_threads): Adjust.
16517 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16518 event's target.
16519 (switch_back_to_stepped_thread): Also consider target.
16520 (print_stop_event): Update.
16521 (normal_stop): Update. Also consider the resume target.
16522 * infrun.h (wait_for_inferior): Remove declaration.
16523 (user_visible_resume_target): New declaration.
16524 (get_last_target_status, set_last_target_status): New
16525 process_stratum_target parameter.
16526 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16527 process_stratum_target parameter, and use it.
16528 (clear_inline_frame_state (thread_info*)): New.
16529 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16530 process_stratum_target parameter.
16531 (clear_inline_frame_state (thread_info*)): Declare.
16532 * linux-fork.c (delete_checkpoint_command): Pass target down to
16533 find_thread_ptid.
16534 (checkpoint_command): Adjust.
16535 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16536 instead of just tweaking inferior_ptid.
16537 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16538 (exit_lwp): Pass target down to find_thread_ptid.
16539 (attach_proc_task_lwp_callback): Pass target down to
16540 add_thread/set_running/set_executing.
16541 (linux_nat_target::attach): Pass target down to
16542 thread_change_ptid.
16543 (get_detach_signal): Pass target down to find_thread_ptid.
16544 Consider last target status's target.
16545 (linux_resume_one_lwp_throw, resume_lwp)
16546 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16547 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16548 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16549 (linux_nat_target::async_wait_fd): New.
16550 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16551 target down.
16552 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16553 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16554 * linux-thread-db.c (struct thread_db_info::process_target): New
16555 field.
16556 (add_thread_db_info): Save target.
16557 (get_thread_db_info): New process_stratum_target parameter. Also
16558 match target.
16559 (delete_thread_db_info): New process_stratum_target parameter.
16560 Also match target.
16561 (thread_from_lwp): Adjust to pass down target.
16562 (thread_db_notice_clone): Pass down target.
16563 (check_thread_db_callback): Pass down target.
16564 (try_thread_db_load_1): Always push the thread_db target.
16565 (try_thread_db_load, record_thread): Pass target down.
16566 (thread_db_target::detach): Pass target down. Always unpush the
16567 thread_db target.
16568 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16569 target down. Always unpush the thread_db target.
16570 (find_new_threads_callback, thread_db_find_new_threads_2)
16571 (thread_db_target::update_thread_list): Pass target down.
16572 (thread_db_target::pid_to_str): Pass current inferior down.
16573 (thread_db_target::get_thread_local_address): Pass target down.
16574 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16575 target down.
16576 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16577 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16578 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16579 (procfs_init_inferior): Rename to ...
16580 (procfs_target::procfs_init_inferior): ... this and adjust.
16581 (procfs_target::create_inferior, procfs_notice_thread)
16582 (procfs_do_thread_registers): Adjust.
16583 * ppc-fbsd-tdep.c: Include "inferior.h".
16584 (ppcfbsd_get_thread_local_address): Pass down target.
16585 * proc-service.c (ps_xfer_memory): Switch current inferior and
16586 program space as well.
16587 (get_ps_regcache): Pass target down.
16588 * process-stratum-target.c
16589 (process_stratum_target::thread_address_space)
16590 (process_stratum_target::thread_architecture): Pass target down.
16591 * process-stratum-target.h
16592 (process_stratum_target::threads_executing): New field.
16593 (as_process_stratum_target): New.
16594 * ravenscar-thread.c
16595 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16596 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16597 down.
16598 * record-btrace.c (record_btrace_target::info_record): Adjust.
16599 (record_btrace_target::record_method)
16600 (record_btrace_target::record_is_replaying)
16601 (record_btrace_target::fetch_registers)
16602 (get_thread_current_frame_id, record_btrace_target::resume)
16603 (record_btrace_target::wait, record_btrace_target::stop): Pass
16604 target down.
16605 * record-full.c (record_full_wait_1): Switch to event thread.
16606 Pass target down.
16607 * regcache.c (regcache::regcache)
16608 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16609 process_stratum_target parameter and handle it.
16610 (current_thread_target): New global.
16611 (get_thread_regcache): Add process_stratum_target parameter and
16612 handle it. Switch inferior before calling target method.
16613 (get_thread_regcache): Pass target down.
16614 (get_thread_regcache_for_ptid): Pass target down.
16615 (registers_changed_ptid): Add process_stratum_target parameter and
16616 handle it.
16617 (registers_changed_thread, registers_changed): Pass target down.
16618 (test_get_thread_arch_aspace_regcache): New.
16619 (current_regcache_test): Define a couple local test_target_ops
16620 instances and use them for testing.
16621 (readwrite_regcache): Pass process_stratum_target parameter.
16622 (cooked_read_test, cooked_write_test): Pass mock_target down.
16623 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16624 (get_thread_arch_aspace_regcache): Add process_stratum_target
16625 parameter.
16626 (regcache::target): New method.
16627 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16628 (regcache::registers_changed_ptid): Add process_stratum_target
16629 parameter.
16630 (regcache::m_target): New field.
16631 (registers_changed_ptid): Add process_stratum_target parameter.
16632 * remote.c (remote_state::supports_vCont_probed): New field.
16633 (remote_target::async_wait_fd): New method.
16634 (remote_unpush_and_throw): Add remote_target parameter.
16635 (get_current_remote_target): Adjust.
16636 (remote_target::remote_add_inferior): Push target.
16637 (remote_target::remote_add_thread)
16638 (remote_target::remote_notice_new_inferior)
16639 (get_remote_thread_info): Pass target down.
16640 (remote_target::update_thread_list): Skip threads of inferiors
16641 bound to other targets. (remote_target::close): Don't discard
16642 inferiors. (remote_target::add_current_inferior_and_thread)
16643 (remote_target::process_initial_stop_replies)
16644 (remote_target::start_remote)
16645 (remote_target::remote_serial_quit_handler): Pass down target.
16646 (remote_target::remote_unpush_target): New remote_target
16647 parameter. Unpush the target from all inferiors.
16648 (remote_target::remote_unpush_and_throw): New remote_target
16649 parameter. Pass it down.
16650 (remote_target::open_1): Check whether the current inferior has
16651 execution instead of checking whether any inferior is live. Pass
16652 target down.
16653 (remote_target::remote_detach_1): Pass down target. Use
16654 remote_unpush_target.
16655 (extended_remote_target::attach): Pass down target.
16656 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16657 (remote_target::append_resumption): Pass down target.
16658 (remote_target::append_pending_thread_resumptions)
16659 (remote_target::remote_resume_with_hc, remote_target::resume)
16660 (remote_target::commit_resume): Pass down target.
16661 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16662 (remote_target::interrupt_query)
16663 (remote_target::remove_new_fork_children)
16664 (remote_target::check_pending_events_prevent_wildcard_vcont)
16665 (remote_target::remote_parse_stop_reply)
16666 (remote_target::process_stop_reply): Pass down target.
16667 (first_remote_resumed_thread): New remote_target parameter. Pass
16668 it down.
16669 (remote_target::wait_as): Pass down target.
16670 (unpush_and_perror): New remote_target parameter. Pass it down.
16671 (remote_target::readchar, remote_target::remote_serial_write)
16672 (remote_target::getpkt_or_notif_sane_1)
16673 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16674 down target.
16675 (remote_target::mourn_inferior): Pass down target. Use
16676 remote_unpush_target.
16677 (remote_target::core_of_thread)
16678 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16679 (remote_target::pid_to_exec_file)
16680 (remote_target::thread_handle_to_thread_info): Pass down target.
16681 (remote_target::async_wait_fd): New.
16682 * riscv-fbsd-tdep.c: Include "inferior.h".
16683 (riscv_fbsd_get_thread_local_address): Pass down target.
16684 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16685 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16686 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16687 Adjust.
16688 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16689 * solib-svr4.c (enable_break): Pass down target.
16690 * spu-multiarch.c (parse_spufs_run): Pass down target.
16691 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16692 * target-delegates.c: Regenerate.
16693 * target.c (g_target_stack): Delete.
16694 (current_top_target): Return the current inferior's top target.
16695 (target_has_execution_1): Refer to the passed-in inferior's top
16696 target.
16697 (target_supports_terminal_ours): Check whether the initial
16698 inferior was already created.
16699 (decref_target): New.
16700 (target_stack::push): Incref/decref the target.
16701 (push_target, push_target, unpush_target): Adjust.
16702 (target_stack::unpush): Defref target.
16703 (target_is_pushed): Return bool. Adjust to refer to the current
16704 inferior's target stack.
16705 (dispose_inferior): Delete, and inline parts ...
16706 (target_preopen): ... here. Only dispose of the current inferior.
16707 (target_detach): Hold strong target reference while detaching.
16708 Pass target down.
16709 (target_thread_name): Add assertion.
16710 (target_resume): Pass down target.
16711 (target_ops::beneath, find_target_at): Adjust to refer to the
16712 current inferior's target stack.
16713 (get_dummy_target): New.
16714 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16715 has a thread running.
16716 (initialize_targets): Rename to ...
16717 (_initialize_target): ... this.
16718 * target.h: Include "gdbsupport/refcounted-object.h".
16719 (struct target_ops): Inherit refcounted_object.
16720 (target_ops::shortname, target_ops::longname): Make const.
16721 (target_ops::async_wait_fd): New method.
16722 (decref_target): Declare.
16723 (struct target_ops_ref_policy): New.
16724 (target_ops_ref): New typedef.
16725 (get_dummy_target): Declare function.
16726 (target_is_pushed): Return bool.
16727 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16728 (all_matching_threads_iterator::all_matching_threads_iterator):
16729 Handle filter target.
16730 * thread-iter.h (struct all_matching_threads_iterator, struct
16731 all_matching_threads_range, class all_non_exited_threads_range):
16732 Filter by target too. Remove explicit.
16733 * thread.c (threads_executing): Delete.
16734 (inferior_thread): Pass down current inferior.
16735 (clear_thread_inferior_resources): Pass down thread pointer
16736 instead of ptid_t.
16737 (add_thread_silent, add_thread_with_info, add_thread): Add
16738 process_stratum_target parameter. Use it for thread and inferior
16739 searches.
16740 (is_current_thread): New.
16741 (thread_info::deletable): Use it.
16742 (find_thread_ptid, thread_count, in_thread_list)
16743 (thread_change_ptid, set_resumed, set_running): New
16744 process_stratum_target parameter. Pass it down.
16745 (set_executing): New process_stratum_target parameter. Pass it
16746 down. Adjust reference to 'threads_executing'.
16747 (threads_are_executing): New process_stratum_target parameter.
16748 Adjust reference to 'threads_executing'.
16749 (set_stop_requested, finish_thread_state): New
16750 process_stratum_target parameter. Pass it down.
16751 (switch_to_thread): Also match inferior.
16752 (switch_to_thread): New process_stratum_target parameter. Pass it
16753 down.
16754 (update_threads_executing): Reimplement.
16755 * top.c (quit_force): Pop targets from all inferior.
16756 (gdb_init): Don't call initialize_targets.
16757 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16758 Declare.
16759 (windows_add_thread, windows_delete_thread): Adjust.
16760 (get_windows_debug_event): Rename to ...
16761 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16762 * tracefile-tfile.c (tfile_target_open): Pass down target.
16763 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16764 Forward declare.
16765 (switch_to_thread): Add process_stratum_target parameter.
16766 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16767 parameter. Use it.
16768 (mi_on_resume): Pass target down.
16769 * nat/fork-inferior.c (startup_inferior): Add
16770 process_stratum_target parameter. Pass it down.
16771 * nat/fork-inferior.h (startup_inferior): Add
16772 process_stratum_target parameter.
16773 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16774
16775 2020-01-10 Pedro Alves <palves@redhat.com>
16776
16777 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16778 directly. Instead find the first thread in the thread list and
16779 use switch_to_thread.
16780
16781 2020-01-10 Pedro Alves <palves@redhat.com>
16782
16783 * remote.c (remote_target::remote_add_inferior): Don't bind a
16784 process to the current inferior if the current inferior is already
16785 bound to a process.
16786
16787 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16788 Pedro Alves <palves@redhat.com>
16789
16790 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16791 If no process is specified, return null_ptid instead of
16792 inferior_ptid.
16793 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16794 TARGET_WAITKIND_SIGNALLED with no pid.
16795
16796 2020-01-10 Pedro Alves <palves@redhat.com>
16797
16798 * remote.c (first_remote_resumed_thread): New.
16799 (remote_target::wait_as): Use it as default event_ptid instead of
16800 inferior_ptid.
16801
16802 2020-01-10 Pedro Alves <palves@redhat.com>
16803
16804 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16805
16806 2020-01-10 Pedro Alves <palves@redhat.com>
16807
16808 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16809 not -1.
16810
16811 2020-01-10 Pedro Alves <palves@redhat.com>
16812
16813 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16814 ptid to get_last_target_status.
16815 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16816 ptid to get_last_target_status.
16817 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16818 get_last_target_status.
16819 (info_program_command): Don't pass a target_waitstatus to
16820 get_last_target_status.
16821 * infrun.c (init_wait_for_inferior): Use
16822 nullify_last_target_wait_ptid.
16823 (get_last_target_status): Handle nullptr arguments.
16824 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16825 (print_stop_event): Don't pass a ptid to get_last_target_status.
16826 (normal_stop): Don't pass a ptid to get_last_target_status.
16827 * infrun.h (get_last_target_status, set_last_target_status): Move
16828 comments here and update.
16829 (nullify_last_target_wait_ptid): Declare.
16830 * linux-fork.c (fork_load_infrun_state): Remove local extern
16831 declaration of nullify_last_target_wait_ptid.
16832 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16833 to get_last_target_status.
16834
16835 2020-01-10 Pedro Alves <palves@redhat.com>
16836
16837 * gdbthread.h (scoped_restore_current_thread)
16838 <dont_restore, restore, m_dont_restore>: Declare.
16839 * thread.c (thread_alive): Add assertion. Return bool.
16840 (switch_to_thread_if_alive): New.
16841 (prune_threads): Switch inferior/thread.
16842 (print_thread_info_1): Switch thread before calling target methods.
16843 (scoped_restore_current_thread::restore): New, factored out from
16844 ...
16845 (scoped_restore_current_thread::~scoped_restore_current_thread):
16846 ... this.
16847 (scoped_restore_current_thread::scoped_restore_current_thread):
16848 Add assertion.
16849 (thread_apply_all_command, thread_select): Use
16850 switch_to_thread_if_alive.
16851 * infrun.c (proceed, restart_threads, handle_signal_stop)
16852 (switch_back_to_stepped_thread): Switch current thread before
16853 calling target methods.
16854
16855 2020-01-10 Pedro Alves <palves@redhat.com>
16856
16857 * inferior.c (switch_to_inferior_no_thread): New function,
16858 factored out from ...
16859 (inferior_command): ... here.
16860 * inferior.h (switch_to_inferior_no_thread): Declare.
16861 * mi/mi-main.c (run_one_inferior): Use
16862 switch_to_inferior_no_thread.
16863
16864 2020-01-10 Pedro Alves <palves@redhat.com>
16865
16866 * infcmd.c (kill_command): Remove dead code.
16867
16868 2020-01-10 Pedro Alves <palves@redhat.com>
16869
16870 * remote.c (remote_target::mourn_inferior): No longer check
16871 whether the target is running.
16872
16873 2020-01-10 Pedro Alves <palves@redhat.com>
16874
16875 * corelow.c (core_target::has_execution): Change parameter type to
16876 inferior pointer.
16877 * inferior.c (number_of_live_inferiors): Use
16878 inferior::has_execution instead of target_has_execution_1.
16879 * inferior.h (inferior::has_execution): New.
16880 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16881 inferior::has_execution instead of target_has_execution_1.
16882 * process-stratum-target.c
16883 (process_stratum_target::has_execution): Change parameter type to
16884 inferior pointer. Check the inferior's PID instead of
16885 inferior_ptid.
16886 * process-stratum-target.h
16887 (process_stratum_target::has_execution): Change parameter type to
16888 inferior pointer.
16889 * record-full.c (record_full_core_target::has_execution): Change
16890 parameter type to inferior pointer.
16891 * target.c (target_has_execution_1): Change parameter type to
16892 inferior pointer.
16893 (target_has_execution_current): Adjust.
16894 * target.h (target_ops::has_execution): Change parameter type to
16895 inferior pointer.
16896 (target_has_execution_1): Change parameter type to inferior
16897 pointer. Change return type to bool.
16898 * tracefile.h (tracefile_target::has_execution): Change parameter
16899 type to inferior pointer.
16900
16901 2020-01-10 Pedro Alves <palves@redhat.com>
16902
16903 * exceptions.c (print_flush): Remove current_top_target() check.
16904
16905 2020-01-10 Pedro Alves <palves@redhat.com>
16906
16907 * remote.c (show_remote_exec_file): Show the current inferior's
16908 exec-file instead of the command variable's value.
16909
16910 2020-01-10 Pedro Alves <palves@redhat.com>
16911
16912 * record-full.c (record_full_resume_ptid): New global.
16913 (record_full_target::resume): Set it.
16914 (record_full_wait_1): Use record_full_resume_ptid instead of
16915 inferior_ptid.
16916
16917 2020-01-10 Pedro Alves <palves@redhat.com>
16918
16919 * gdbthread.h (scoped_restore_current_thread)
16920 <dont_restore, restore, m_dont_restore>: Declare.
16921 * thread.c (thread_alive): Add assertion. Return bool.
16922 (switch_to_thread_if_alive): New.
16923 (prune_threads): Switch inferior/thread.
16924 (print_thread_info_1): Switch thread before calling target methods.
16925 (scoped_restore_current_thread::restore): New, factored out from
16926 ...
16927 (scoped_restore_current_thread::~scoped_restore_current_thread):
16928 ... this.
16929 (scoped_restore_current_thread::scoped_restore_current_thread):
16930 Add assertion.
16931 (thread_apply_all_command, thread_select): Use
16932 switch_to_thread_if_alive.
16933
16934 2020-01-10 George Barrett <bob@bob131.so>
16935
16936 * stap-probe.c (stap_modify_semaphore): Don't check for null
16937 semaphores.
16938 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16939 for null semaphores.
16940
16941 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16942
16943 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16944 all source windows, and maintain horizontal scroll status while
16945 doing so.
16946
16947 2020-01-09 Tom Tromey <tom@tromey.com>
16948
16949 PR tui/18932:
16950 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16951 update_source_window, not print_source_lines.
16952
16953 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16954
16955 * tui/tui.c (tui_enable): Register tui hooks after calling
16956 tui_display_main.
16957
16958 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16959
16960 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16961
16962 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16963
16964 * thread.c (print_thread_info_1): Fix indentation.
16965
16966 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16967
16968 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16969 unique_xmalloc_ptr outside the if to always free the demangled name.
16970
16971 2020-01-08 Tom Tromey <tromey@adacore.com>
16972
16973 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16974 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16975 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16976 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16977 Remove.
16978 (section_offsets): New typedef.
16979 * symtab.c (fixup_section, get_msymbol_address): Update.
16980 * symmisc.c (dump_msymbols): Update.
16981 * symfile.h (relative_addr_info_to_section_offsets)
16982 (symfile_map_offsets_to_segments): Update.
16983 * symfile.c (build_section_addr_info_from_objfile)
16984 (init_objfile_sect_indices): Update.
16985 (struct place_section_arg): Change type of "offsets".
16986 (place_section): Update.
16987 (relative_addr_info_to_section_offsets): Change type of
16988 "section_offsets". Remove "num_sections" parameter.
16989 (default_symfile_offsets, syms_from_objfile_1)
16990 (set_objfile_default_section_offset): Update.
16991 (reread_symbols): No need to preserve section offsets by hand.
16992 (symfile_map_offsets_to_segments): Change type of "offsets".
16993 * stap-probe.c (relocate_address): Update.
16994 * stabsread.h (process_one_symbol): Update.
16995 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16996 (solib_target_relocate_section_addresses): Update.
16997 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16998 Update.
16999 * solib-frv.c (frv_relocate_main_executable): Update.
17000 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17001 * solib-aix.c (solib_aix_get_section_offsets): Change return
17002 type.
17003 (solib_aix_solib_create_inferior_hook): Update.
17004 * remote.c (remote_target::get_offsets): Update.
17005 * psymtab.c (find_pc_sect_psymtab): Update.
17006 * psympriv.h (struct partial_symbol) <address, text_low,
17007 text_high>: Update.
17008 * objfiles.h (obj_section_offset): Update.
17009 (struct objfile) <section_offsets>: Change type.
17010 <num_sections>: Remove.
17011 (objfile_relocate): Update.
17012 * objfiles.c (entry_point_address_query): Update
17013 (relocate_one_symbol): Change type of "section_offsets".
17014 (objfile_relocate1, objfile_relocate1): Change type of
17015 "new_offsets".
17016 (objfile_rebase1): Update.
17017 * mipsread.c (mipscoff_symfile_read): Update.
17018 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17019 parameter.
17020 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17021 (parse_external, psymtab_to_symtab_1): Update.
17022 * machoread.c (macho_symfile_offsets): Update.
17023 * ia64-tdep.c (ia64_find_unwind_table): Update.
17024 * hppa-tdep.c (read_unwind_info): Update.
17025 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17026 * dwarf2read.c (create_addrmap_from_index)
17027 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17028 (process_psymtab_comp_unit_reader, add_partial_symbol)
17029 (add_partial_subprogram, process_full_comp_unit)
17030 (read_file_scope, read_func_scope, read_lexical_block_scope)
17031 (read_call_site_scope, dwarf2_rnglists_process)
17032 (dwarf2_ranges_process, dwarf2_ranges_read)
17033 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17034 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17035 Update.
17036 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17037 Update.
17038 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17039 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17040 (process_one_symbol): Change type of "section_offsets".
17041 * ctfread.c (get_objfile_text_range): Update.
17042 * coffread.c (coff_symtab_read, enter_linenos)
17043 (process_coff_symbol): Update.
17044 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17045 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17046
17047 2020-01-08 Tom Tromey <tromey@adacore.com>
17048
17049 * dwarf2read.c (parse_macro_definition): Use std::string.
17050 (parse_macro_definition): Likewise.
17051
17052 2020-01-08 Tom Tromey <tromey@adacore.com>
17053
17054 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17055 (ATTR_ALLOC_CHUNK): Remove.
17056
17057 2020-01-08 Tom Tromey <tromey@adacore.com>
17058
17059 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17060
17061 2020-01-08 Tom Tromey <tromey@adacore.com>
17062
17063 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17064 (dwarf2_compute_name, open_dwo_file): Likewise.
17065 (process_enumeration_scope): Use std::vector.
17066 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17067 (partial_die_info::fixup, dwarf2_start_subfile)
17068 (guess_full_die_structure_name, dwarf2_name): Likewise.
17069 (determine_prefix): Update.
17070 (guess_full_die_structure_name): Make return type const.
17071 (partial_die_full_name): Return unique_xmalloc_ptr.
17072 (DW_FIELD_ALLOC_CHUNK): Remove.
17073
17074 2020-01-07 Tom Tromey <tromey@adacore.com>
17075
17076 PR build/24937:
17077 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17078
17079 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17080
17081 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17082
17083 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17084
17085 * stack.c (print_frame_info): Move disassemble_next_line code
17086 inside source_print block.
17087
17088 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17089
17090 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17091 gdb/signals.h, as we are now using native signal symbols.
17092
17093 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17094
17095 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17096 overflow by an early check of content vs threshold.
17097 * tui/tui-source.c (tui_source_window::line_is_displayed):
17098 Likewise.
17099
17100 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17101
17102 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17103
17104 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17105
17106 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17107 export table if no section contains it's RVA.
17108
17109 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17110
17111 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17112
17113 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17114
17115 * source.c (print_source_lines_base): Set last_line_listed.
17116
17117 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17118
17119 * tui/tui-disasm.c: Remove trailing spaces.
17120
17121 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17122 Pedro Alves <palves@redhat.com>
17123
17124 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17125 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17126 (windows_gdb_signal_to_target): New function, uses the above
17127 enumeration to convert GDB internal signal codes to equivalent
17128 Windows codes.
17129 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17130 * windows-nat.c: Include "gdb_wait.h".
17131 (get_windows_debug_event): Extract the fatal exception from the
17132 exit status and convert to the equivalent Posix signal number.
17133 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17134 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17135 * gdbsupport/gdb_wait.c: New file, implements
17136 windows_status_to_termsig.
17137 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17138 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17139
17140 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17141
17142 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17143 show_layout.
17144
17145 2020-01-05 Luis Machado <luis.machado@linaro.org>
17146
17147 * aarch64-linux-nat.c
17148 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17149 and bfd_mach_aarch64.
17150
17151 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17152
17153 * ui-file.c (stdio_file::can_emit_style_escape)
17154 (tee_file::can_emit_style_escape): Ensure style is used also on
17155 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17156 to gdb_stdout.
17157 * main.c (set_gdb_data_directory): Use file style to output the
17158 warning that the given pathname is not a directory.
17159 * top.c (show_history_filename, gdb_safe_append_history)
17160 (show_gdb_datadir): Use file style.
17161
17162 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17163
17164 * solib-target.c (struct lm_info_target):
17165 Change offsets to be a unique_xmalloc_ptr.
17166 (solib_target_relocate_section_addresses): Update.
17167
17168 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17169
17170 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17171
17172 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17173
17174 * MAINTAINERS (Write After Approval): Add myself.
17175
17176 2020-01-02 Luis Machado <luis.machado@linaro.org>
17177
17178 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17179 Cell BE architecture.
17180 * target.h (struct target_ops) <thread_architecture>: Likewise.
17181
17182 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17183
17184 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17185
17186 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17187
17188 * MAINTAINERS (Write After Approval): Add myself.
17189
17190 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17191
17192 * gdbarch.sh: Update copyright year range of generated files.
17193
17194 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17195
17196 Update copyright year range in all GDB files.
17197
17198 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17199
17200 * copyright.py: Convert to Python 3.
17201
17202 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17203
17204 * copyright.py: Adapt after move of gnulib directory from gdb
17205 directory to toplevel directory.
17206
17207 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17208
17209 * copyright.py (main): Exit if run from the wrong directory.
17210
17211 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17212
17213 * top.c (print_gdb_version): Change copyright year to 2020.
17214
17215 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17216
17217 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17218
17219 For older changes see ChangeLog-2019.
17220 \f
17221 Local Variables:
17222 mode: change-log
17223 left-margin: 8
17224 fill-column: 74
17225 version-control: never
17226 coding: utf-8
17227 End:
This page took 0.405991 seconds and 5 git commands to generate.