gdb: fix unittests/gmp-utils-selftests.c build on solaris
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
4 Pass 2.0 to pow.
5 (gdb_mpz_write_all_from_small): Likewise.
6
7 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
10 of abs.
11
12 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
13
14 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
15 ctf_arc_open_by_name.
16
17 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
18
19 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
20 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
21
22 2020-11-20 Pedro Alves <pedro@palves.net>
23
24 * language.c (language_arch_info::lookup_primitive_type): Use
25 gdb::function_view instead of gdb::function.
26 (template language_lookup_primitive_type): Rename to ...
27 (language_lookup_primitive_type_1): ... this, and make static.
28 (language_lookup_primitive_type(const struct language_defn *,
29 struct gdbarch *, const char *): Make non-template.
30 (language_lookup_primitive_type(const struct language_defn *,
31 struct gdbarch *, std::function<bool (struct type *)>): Make
32 non-template and use gdb::function_view.
33 * language.h (language_arch_info::lookup_primitive_type): Use
34 gdb::function_view instead of std::function.
35 (language_lookup_primitive_type): No longer template.
36 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
37 lambda instead of a std::function.
38
39 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
40
41 PR tdep/26916
42 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
43 and STOCFH.
44
45 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
48
49 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
52 in `loop_cb` parameter.
53 * gdbarch.c: Re-generate.
54 * gdbarch.h: Re-generate.
55 * arch-utils.c (default_read_core_file_mappings): Remove `other`
56 parameter.
57 * arch-utils.h (default_read_core_file_mappings): Likewise.
58 * corelow.c (core_target::build_file_mappings): Likewise.
59 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
60 (linux_core_info_proc_mappings): Likewise.
61
62 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
65 * NEWS: Mention new options.
66 * f-array-walker.h: New file.
67 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
68 (repack_array_slices): New static global.
69 (show_repack_array_slices): New function.
70 (fortran_array_slicing_debug): New static global.
71 (show_fortran_array_slicing_debug): New function.
72 (value_f90_subarray): Delete.
73 (skip_undetermined_arglist): Delete.
74 (class fortran_array_repacker_base_impl): New class.
75 (class fortran_lazy_array_repacker_impl): New class.
76 (class fortran_array_repacker_impl): New class.
77 (fortran_value_subarray): Complete rewrite.
78 (set_fortran_list): New static global.
79 (show_fortran_list): Likewise.
80 (_initialize_f_language): Register new commands.
81 (fortran_adjust_dynamic_array_base_address_hack): New function.
82 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
83 Declare.
84 * f-valprint.c: Include 'f-array-walker.h'.
85 (class fortran_array_printer_impl): New class.
86 (f77_print_array_1): Delete.
87 (f77_print_array): Delete.
88 (fortran_print_array): New.
89 (f_value_print_inner): Update to call fortran_print_array.
90 * gdbtypes.c: Include 'f-lang.h'.
91 (resolve_dynamic_type_internal): Call
92 fortran_adjust_dynamic_array_base_address_hack.
93
94 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * breakpoint.c (struct watch_options): New struct.
97 (watch_option_defs): New static global.
98 (make_watch_options_def_group): New function.
99 (watch_maybe_just_location): Convert option parsing.
100 (watch_command_completer): New function.
101 (_initialize_breakpoint): Build help text using options mechanism.
102
103 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
106 (watch_command_1): Update parameter types. Convert locals to
107 bool.
108 (watch_command_wrapper): Change parameter type.
109 (watch_maybe_just_location): Change locals to bool.
110 (rwatch_command_wrapper): Update parameter type.
111 (awatch_command_wrapper): Update parameter type.
112 * breakpoint.h (watch_command_wrapper): Change parameter type.
113 (rwatch_command_wrapper): Update parameter type.
114 (awatch_command_wrapper): Update parameter type.
115 * eval.c (fetch_subexp_value): Change parameter type.
116 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
117 'false' not '0'.
118 * value.h (fetch_subexp_value): Change parameter type in
119 declaration.
120
121 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
124 skip_spaces.
125
126 2020-11-18 Keith Seitz <keiths@redhat.com>
127
128 * linux-tdep.c (dump_note_entry_p): Return true instead of
129 checking `filename'.
130
131 2020-11-18 Tom de Vries <tdevries@suse.de>
132
133 * debuginfod-support.c (debuginfod_source_query)
134 (debuginfod_debuginfo_query): Also do early exit if
135 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
136
137 2020-11-18 Tom de Vries <tdevries@suse.de>
138
139 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
140 warning.
141
142 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * gdbtypes.h (get_array_bounds): Return bool, adjust some
145 callers. Move doc here.
146 * gdbtypes.c (get_array_bounds): Return bool
147
148 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
151 assert.
152 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
153 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
154 case to the default.
155
156 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * printcmd.c: Include 'safe-ctype.c'.
159 (skip_over_slash_fmt): New function.
160 (print_command_completer): Call skip_over_slash_fmt.
161 (display_and_x_command_completer): New function.
162 (_initialize_printcmd): Add command completion for 'x' and
163 'display'.
164
165 2020-11-16 Pedro Alves <pedro@palves.net>
166
167 * frame.c (get_prev_frame): Move get_frame_id call from here ...
168 (get_prev_frame_always_1): ... to here.
169 * inline-frame.c (inline_frame_this_id): Mention
170 get_prev_frame_always_1 in comment.
171
172 2020-11-15 Joel Brobecker <brobecker@adacore.com>
173
174 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
175 handling.
176 (value_less): Add fixed-point handling.
177
178 2020-11-15 Joel Brobecker <brobecker@adacore.com>
179
180 * eval.c (binop_promote): Add fixed-point type handling.
181 * valarith.c (fixed_point_binop): New function.
182 (scalar_binop): Add fixed-point type handling.
183 (value_neg): Add fixed-point type handling.
184 * valops.c (value_cast_to_fixed_point): New function.
185 (value_cast): Add fixed-point type handling.
186
187 2020-11-15 Joel Brobecker <brobecker@adacore.com>
188
189 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
190 range types.
191 * c-typeprint.c (c_type_print_varspec_prefix)
192 (c_type_print_varspec_suffix, c_type_print_base_1): Add
193 TYPE_CODE_FIXED_POINT handling.
194 * p-typeprint.c (pascal_type_print_varspec_prefix)
195 (pascal_type_print_varspec_suffix): Likewise.
196 * typeprint.c (print_type_fixed_point): New function.
197 * typeprint.h (print_type_fixed_point): Add declaration.
198
199 2020-11-15 Joel Brobecker <brobecker@adacore.com>
200
201 * printcmd.c (print_scalar_formatted): Add fixed-point type
202 handling when options->format is set.
203
204 2020-11-15 Joel Brobecker <brobecker@adacore.com>
205
206 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
207 * dwarf2/read.c (get_dwarf2_rational_constant)
208 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
209 (has_zero_over_zero_small_attribute): New functions.
210 read_base_type, set_die_type): Add fixed-point type handling.
211 * gdb-gdb.py.in: Add fixed-point type handling.
212 * gdbtypes.c: #include "gmp-utils.h".
213 (create_range_type, set_type_code): Add fixed-point type handling.
214 (init_fixed_point_type): New function.
215 (is_integral_type, is_scalar_type): Add fixed-point type handling.
216 (print_fixed_point_type_info): New function.
217 (recursive_dump_type, copy_type_recursive): Add fixed-point type
218 handling.
219 (fixed_point_type_storage): New typedef.
220 (fixed_point_objfile_key): New static global.
221 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
222 (fixed_point_type_base_type, fixed_point_scaling_factor): New
223 functions.
224 * gdbtypes.h: #include "gmp-utils.h".
225 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
226 (union type_specific) <fixed_point_info>: New field.
227 (struct fixed_point_type_info): New struct.
228 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
229 (init_fixed_point_type, is_fixed_point_type)
230 (fixed_point_type_base_type, fixed_point_scaling_factor)
231 (allocate_fixed_point_type_info): Add declarations.
232 * valprint.c (generic_val_print_fixed_point): New function.
233 (generic_value_print): Add fixed-point type handling.
234 * value.c (value_as_address, unpack_long): Add fixed-point type
235 handling.
236
237 2020-11-15 Joel Brobecker <brobecker@adacore.com>
238
239 * utils.h (uinteger_pow): Add declaration.
240 * utils.c (uinteger_pow): Moved here (without changes)...
241 * valarith.c (uinteger_pow): ... from here.
242
243 2020-11-15 Joel Brobecker <brobecker@adacore.com>
244
245 * gmp-utils.h, gmp-utils.c: New file.
246 * unittests/gmp-utils-selftests.c: New file.
247 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
248 unittests/gmp-utils-selftests.c.
249 (COMMON_SFILES) Add gmp-utils.c.
250 (HFILES_NO_SRCDIR): Add gmp-utils.h.
251
252 2020-11-15 Joel Brobecker <brobecker@adacore.com>
253
254 * configure.ac: Generate an error if a usable GMP library
255 could not be found.
256 * configure: Regenerate.
257
258 2020-11-15 Joel Brobecker <brobecker@adacore.com>
259
260 * configure.ac: Add support for --with-libgmp-prefix.
261 * Makefile.in (LIBGMP): New variable.
262 (CLIBS): Include $(LIBGMP).
263 * configure, config.in: Regenerate
264
265 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 PR cli/26879
268 * f-exp.y (COMPLETE): New token.
269 (exp): Two new rules for tab-completion.
270 (saw_name_at_eof): New static global.
271 (last_was_structop): Likewise.
272 (yylex): Set new variables, and return COMPLETE token at the end
273 of the input stream in some cases.
274
275 2020-11-14 Tom Tromey <tom@tromey.com>
276
277 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
278
279 2020-11-14 Tom Tromey <tom@tromey.com>
280
281 * opencl-lang.c (opencl_component_ref): Make "comps" const.
282
283 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
286
287 2020-11-13 Tom Tromey <tom@tromey.com>
288
289 * c-lang.c (convert_ucn, convert_octal, convert_hex)
290 (convert_escape, parse_one_string): Constify.
291
292 2020-11-13 Keith Seitz <keiths@redhat.com>
293
294 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
295 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
296 outside of ELF segments" warning for debugin
297
298 2020-11-13 Keith Seitz <keiths@redhat.com>
299
300 PR gdb/23034
301 * elfread.c (elf_symfile_segments): Output a BFD file name
302 for the "Loadable section ... outside of ELF segments" warning.
303
304 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
305
306 PR gdb/26835
307 * arm-tdep.c (class arm_instruction_reader): New.
308 (target_arm_instruction_reader): New.
309 (arm_analyze_prologue): Add instruction reader parameter and use
310 it. Use arm_expand_immediate.
311 (class target_arm_instruction_reader): Adjust.
312 (arm_skip_prologue): Adjust.
313 (arm_expand_immediate): New.
314 (arm_scan_prologue): Adjust.
315 (arm_analyze_prologue_test): New.
316 (class test_arm_instruction_reader): New.
317
318 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * f-lang.c (fortran_argument_convert): Add declaration. Add
321 header comment, taken from f-lang.h. Make static.
322 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
323 (fortran_argument_convert): Delete declaration.
324
325 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * ada-exp.y (find_primitive_type): Make parameter const.
328 * ada-lang.c (enum ada_primitive_types): Delete.
329 (ada_language::language_arch_info): Update.
330 * c-lang.c (enum c_primitive_types): Delete.
331 (c_language_arch_info): Update.
332 (enum cplus_primitive_types): Delete.
333 (cplus_language::language_arch_info): Update.
334 * d-lang.c (enum d_primitive_types): Delete.
335 (d_language::language_arch_info): Update.
336 * f-lang.c (enum f_primitive_types): Delete.
337 (f_language::language_arch_info): Update.
338 * go-lang.c (enum go_primitive_types): Delete.
339 (go_language::language_arch_info): Update.
340 * language.c (auto_or_unknown_language::language_arch_info):
341 Update.
342 (language_gdbarch_post_init): Use obstack_new, use array indexing.
343 (language_string_char_type): Add header comment, call function in
344 language_arch_info.
345 (language_bool_type): Likewise
346 (language_arch_info::bool_type): Define.
347 (language_lookup_primitive_type_1): Delete.
348 (language_lookup_primitive_type): Rewrite as a templated function
349 to call function in language_arch_info, then instantiate twice.
350 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
351 (language_arch_info::lookup_primitive_type_and_symbol): Define.
352 (language_arch_info::lookup_primitive_type): Define twice with
353 different signatures.
354 (language_arch_info::lookup_primitive_type_as_symbol): Define.
355 (language_lookup_primitive_type_as_symbol): Rewrite to call a
356 member function in language_arch_info.
357 * language.h (language_arch_info): Complete rewrite.
358 (language_lookup_primitive_type): Make templated.
359 * m2-lang.c (enum m2_primitive_types): Delete.
360 (m2_language::language_arch_info): Update.
361 * opencl-lang.c (OCL_P_TYPE): Delete.
362 (enum opencl_primitive_types): Delete.
363 (opencl_type_data): Delete.
364 (builtin_opencl_type): Delete.
365 (lookup_opencl_vector_type): Update.
366 (opencl_language::language_arch_info): Update, lots of content
367 moved from...
368 (build_opencl_types): ...here. This function is now deleted.
369 (_initialize_opencl_language): Delete.
370 * p-lang.c (enum pascal_primitive_types): Delete.
371 (pascal_language::language_arch_info): Update.
372 * rust-lang.c (enum rust_primitive_types): Delete.
373 (rust_language::language_arch_info): Update.
374
375 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
378 dwarf2_queue_guard.
379
380 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
381
382 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
383 comment.
384
385 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * dwarf2/read.c (dwarf_read_debug_printf,
388 dwarf_read_debug_printf_v): New macros, use throughout the file.
389
390 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
391
392 * arc-linux-tdep.c (collect_register): Populate "eret" by
393 "pc" value from the regcache when asked for "pc" value.
394
395 2020-11-12 Tom Tromey <tom@tromey.com>
396
397 PR rust/26799:
398 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
399 exist.
400
401 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * features/Makefile (XMLTOC): Add rx.xml.
404 (FEATURE_XMLFILES): Remove rx.xml.
405 (FEATURE_CFILES rule): Pass '-single-feature' flag.
406 * features/rx.c: Regenerate.
407 * features/rx.xml: Wrap in `target` tags, and reindent.
408 * target-descriptions.c (struct maint_print_c_tdesc_options): New
409 structure.
410 (maint_print_c_tdesc_opt_def): New typedef.
411 (maint_print_c_tdesc_opt_defs): New static global.
412 (make_maint_print_c_tdesc_options_def_group): New function.
413 (maint_print_c_tdesc_cmd): Make use of command line flags, only
414 print single feature C file for target descriptions containing a
415 single feature.
416 (maint_print_c_tdesc_cmd_completer): New function.
417 (_initialize_target_descriptions): Update call to register command
418 completer, and include command line flag in help text.
419
420 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
423 numbers.
424 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
425 enum values.
426
427 2020-11-10 Tom Tromey <tom@tromey.com>
428
429 * value.h (internalvar_name): Update.
430 * value.c (internalvar_name): Make return type const.
431
432 2020-11-10 Tom Tromey <tom@tromey.com>
433
434 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
435 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
436 const.
437
438 2020-11-10 Tom Tromey <tom@tromey.com>
439
440 * objc-lang.h (value_nsstring): Update.
441 * objc-lang.c (value_nsstring): Make "ptr" const.
442
443 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * expprint.c (print_subexp_funcall): Increment expression position
446 after reading argument count.
447 * f-lang.c (print_subexp_f): Skip over opcode before calling
448 common function.
449 (dump_subexp_body_f): Likewise.
450
451 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
452
453 PR python/26832
454 * configure: Regenerate.
455 * configure.ac: Check for python modules ctypes instead of
456 itertools.
457
458 2020-11-06 Pedro Alves <pedro@palves.net>
459
460 * macroexp.c (struct macro_buffer): Split in two classes. Add
461 uses adjusted.
462 (struct shared_macro_buffer): New, factored out from struct
463 macro_buffer.
464 (struct growable_macro_buffer): New, factored out from struct
465 macro_buffer.
466 (set_token, get_comment, get_identifier, get_pp_number)
467 (get_character_constant, get_string_literal, get_punctuator)
468 (get_next_token_for_substitution): Constify parameters.
469 (substitute_args): Constify locals.
470
471 2020-11-05 Tom Tromey <tom@tromey.com>
472
473 * dwarf2/read.c (read_cutu_die_from_dwo)
474 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
475 (build_type_psymtabs_1): Update.
476 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
477 parameter.
478 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
479 Don't read section. Add assert.
480
481 2020-11-04 Tom Tromey <tromey@adacore.com>
482
483 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
484
485 2020-11-04 Tom Tromey <tromey@adacore.com>
486
487 * ada-typeprint.c (ada_print_type): Handle __T types.
488
489 2020-11-04 Tom Tromey <tromey@adacore.com>
490
491 * dwarf2/read.c (add_partial_symbol, process_die):
492 Handle DW_TAG_array_type.
493 (is_type_tag_for_partial): Add "lang" parameter.
494 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
495
496 2020-11-04 Tom Tromey <tromey@adacore.com>
497
498 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
499
500 2020-11-04 Tom Tromey <tromey@adacore.com>
501
502 * dwarf2/read.c (read_array_type): Only apply stride to innermost
503 array.
504
505 2020-11-04 Tom Tromey <tromey@adacore.com>
506
507 * gdbtypes.c (update_static_array_size): Handle bit stride.
508
509 2020-11-04 Tom Tromey <tromey@adacore.com>
510
511 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
512
513 2020-11-04 Tom Tromey <tromey@adacore.com>
514
515 * ada-lang.c (ada_is_any_packed_array_type): New function.
516 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
517
518 2020-11-04 Tom Tromey <tromey@adacore.com>
519
520 * dwarf2/read.c (recognize_bound_expression)
521 (quirk_ada_thick_pointer): New functions.
522 (read_array_type): Call quirk_ada_thick_pointer.
523 (set_die_type): Add "skip_data_location" parameter.
524 (quirk_ada_thick_pointer): New function.
525 (process_structure_scope): Call quirk_ada_thick_pointer.
526 * ada-lang.c (ada_is_unconstrained_packed_array_type)
527 (decode_packed_array_bitsize): Handle thick pointers without
528 parallel types.
529 (ada_is_gnat_encoded_packed_array_type): Rename from
530 ada_is_packed_array_type.
531 (ada_is_constrained_packed_array_type): Update.
532 * ada-valprint.c (ada_val_print_gnat_array): Remove.
533 (ada_value_print_1): Use ada_get_decoded_value.
534
535 2020-11-04 Tom Tromey <tromey@adacore.com>
536
537 * ada-lang.c (recursively_update_array_bitsize): New function.
538 (decode_constrained_packed_array_type): Call it.
539
540 2020-11-04 Tom Tromey <tromey@adacore.com>
541
542 * ada-lang.c (to_fixed_array_type): Error if
543 decode_constrained_packed_array_type returns NULL.
544
545 2020-11-04 Tom Tromey <tromey@adacore.com>
546
547 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
548
549 2020-11-02 Tom Tromey <tromey@adacore.com>
550
551 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
552 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
553 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
554 * amd64-ravenscar-thread.c: New file.
555 * amd64-ravenscar-thread.h: New file.
556 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
557 * configure.tgt (amd64_tobjs): Add ravenscar objects.
558
559 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * main.c (execute_cmdargs): New function.
562 (captured_main_1): Make use of execute_cmdargs.
563
564 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * NEWS: Mention changes to config file search path.
567 * main.c
568
569 2020-11-02 Tom Tromey <tromey@adacore.com>
570
571 * python/python.c: Consolidate two HAVE_PYTHON blocks.
572 (python_GdbModuleDef): Move earlier. Now static.
573 (do_start_initialization): Consolidate some IS_PY3K blocks.
574
575 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
576
577 * aarch64-linux-tdep.c: Fix indentation.
578 * aarch64-ravenscar-thread.c: Fix indentation.
579 * aarch64-tdep.c: Fix indentation.
580 * aarch64-tdep.h: Fix indentation.
581 * ada-lang.c: Fix indentation.
582 * ada-lang.h: Fix indentation.
583 * ada-tasks.c: Fix indentation.
584 * ada-typeprint.c: Fix indentation.
585 * ada-valprint.c: Fix indentation.
586 * ada-varobj.c: Fix indentation.
587 * addrmap.c: Fix indentation.
588 * addrmap.h: Fix indentation.
589 * agent.c: Fix indentation.
590 * aix-thread.c: Fix indentation.
591 * alpha-bsd-nat.c: Fix indentation.
592 * alpha-linux-tdep.c: Fix indentation.
593 * alpha-mdebug-tdep.c: Fix indentation.
594 * alpha-nbsd-tdep.c: Fix indentation.
595 * alpha-obsd-tdep.c: Fix indentation.
596 * alpha-tdep.c: Fix indentation.
597 * amd64-bsd-nat.c: Fix indentation.
598 * amd64-darwin-tdep.c: Fix indentation.
599 * amd64-linux-nat.c: Fix indentation.
600 * amd64-linux-tdep.c: Fix indentation.
601 * amd64-nat.c: Fix indentation.
602 * amd64-obsd-tdep.c: Fix indentation.
603 * amd64-tdep.c: Fix indentation.
604 * amd64-windows-tdep.c: Fix indentation.
605 * annotate.c: Fix indentation.
606 * arc-tdep.c: Fix indentation.
607 * arch-utils.c: Fix indentation.
608 * arch/arm-get-next-pcs.c: Fix indentation.
609 * arch/arm.c: Fix indentation.
610 * arm-linux-nat.c: Fix indentation.
611 * arm-linux-tdep.c: Fix indentation.
612 * arm-nbsd-tdep.c: Fix indentation.
613 * arm-pikeos-tdep.c: Fix indentation.
614 * arm-tdep.c: Fix indentation.
615 * arm-tdep.h: Fix indentation.
616 * arm-wince-tdep.c: Fix indentation.
617 * auto-load.c: Fix indentation.
618 * auxv.c: Fix indentation.
619 * avr-tdep.c: Fix indentation.
620 * ax-gdb.c: Fix indentation.
621 * ax-general.c: Fix indentation.
622 * bfin-linux-tdep.c: Fix indentation.
623 * block.c: Fix indentation.
624 * block.h: Fix indentation.
625 * blockframe.c: Fix indentation.
626 * bpf-tdep.c: Fix indentation.
627 * break-catch-sig.c: Fix indentation.
628 * break-catch-syscall.c: Fix indentation.
629 * break-catch-throw.c: Fix indentation.
630 * breakpoint.c: Fix indentation.
631 * breakpoint.h: Fix indentation.
632 * bsd-uthread.c: Fix indentation.
633 * btrace.c: Fix indentation.
634 * build-id.c: Fix indentation.
635 * buildsym-legacy.h: Fix indentation.
636 * buildsym.c: Fix indentation.
637 * c-typeprint.c: Fix indentation.
638 * c-valprint.c: Fix indentation.
639 * c-varobj.c: Fix indentation.
640 * charset.c: Fix indentation.
641 * cli/cli-cmds.c: Fix indentation.
642 * cli/cli-decode.c: Fix indentation.
643 * cli/cli-decode.h: Fix indentation.
644 * cli/cli-script.c: Fix indentation.
645 * cli/cli-setshow.c: Fix indentation.
646 * coff-pe-read.c: Fix indentation.
647 * coffread.c: Fix indentation.
648 * compile/compile-cplus-types.c: Fix indentation.
649 * compile/compile-object-load.c: Fix indentation.
650 * compile/compile-object-run.c: Fix indentation.
651 * completer.c: Fix indentation.
652 * corefile.c: Fix indentation.
653 * corelow.c: Fix indentation.
654 * cp-abi.h: Fix indentation.
655 * cp-namespace.c: Fix indentation.
656 * cp-support.c: Fix indentation.
657 * cp-valprint.c: Fix indentation.
658 * cris-linux-tdep.c: Fix indentation.
659 * cris-tdep.c: Fix indentation.
660 * darwin-nat-info.c: Fix indentation.
661 * darwin-nat.c: Fix indentation.
662 * darwin-nat.h: Fix indentation.
663 * dbxread.c: Fix indentation.
664 * dcache.c: Fix indentation.
665 * disasm.c: Fix indentation.
666 * dtrace-probe.c: Fix indentation.
667 * dwarf2/abbrev.c: Fix indentation.
668 * dwarf2/attribute.c: Fix indentation.
669 * dwarf2/expr.c: Fix indentation.
670 * dwarf2/frame.c: Fix indentation.
671 * dwarf2/index-cache.c: Fix indentation.
672 * dwarf2/index-write.c: Fix indentation.
673 * dwarf2/line-header.c: Fix indentation.
674 * dwarf2/loc.c: Fix indentation.
675 * dwarf2/macro.c: Fix indentation.
676 * dwarf2/read.c: Fix indentation.
677 * dwarf2/read.h: Fix indentation.
678 * elfread.c: Fix indentation.
679 * eval.c: Fix indentation.
680 * event-top.c: Fix indentation.
681 * exec.c: Fix indentation.
682 * exec.h: Fix indentation.
683 * expprint.c: Fix indentation.
684 * f-lang.c: Fix indentation.
685 * f-typeprint.c: Fix indentation.
686 * f-valprint.c: Fix indentation.
687 * fbsd-nat.c: Fix indentation.
688 * fbsd-tdep.c: Fix indentation.
689 * findvar.c: Fix indentation.
690 * fork-child.c: Fix indentation.
691 * frame-unwind.c: Fix indentation.
692 * frame-unwind.h: Fix indentation.
693 * frame.c: Fix indentation.
694 * frv-linux-tdep.c: Fix indentation.
695 * frv-tdep.c: Fix indentation.
696 * frv-tdep.h: Fix indentation.
697 * ft32-tdep.c: Fix indentation.
698 * gcore.c: Fix indentation.
699 * gdb_bfd.c: Fix indentation.
700 * gdbarch.sh: Fix indentation.
701 * gdbarch.c: Re-generate
702 * gdbarch.h: Re-generate.
703 * gdbcore.h: Fix indentation.
704 * gdbthread.h: Fix indentation.
705 * gdbtypes.c: Fix indentation.
706 * gdbtypes.h: Fix indentation.
707 * glibc-tdep.c: Fix indentation.
708 * gnu-nat.c: Fix indentation.
709 * gnu-nat.h: Fix indentation.
710 * gnu-v2-abi.c: Fix indentation.
711 * gnu-v3-abi.c: Fix indentation.
712 * go32-nat.c: Fix indentation.
713 * guile/guile-internal.h: Fix indentation.
714 * guile/scm-cmd.c: Fix indentation.
715 * guile/scm-frame.c: Fix indentation.
716 * guile/scm-iterator.c: Fix indentation.
717 * guile/scm-math.c: Fix indentation.
718 * guile/scm-ports.c: Fix indentation.
719 * guile/scm-pretty-print.c: Fix indentation.
720 * guile/scm-value.c: Fix indentation.
721 * h8300-tdep.c: Fix indentation.
722 * hppa-linux-nat.c: Fix indentation.
723 * hppa-linux-tdep.c: Fix indentation.
724 * hppa-nbsd-nat.c: Fix indentation.
725 * hppa-nbsd-tdep.c: Fix indentation.
726 * hppa-obsd-nat.c: Fix indentation.
727 * hppa-tdep.c: Fix indentation.
728 * hppa-tdep.h: Fix indentation.
729 * i386-bsd-nat.c: Fix indentation.
730 * i386-darwin-nat.c: Fix indentation.
731 * i386-darwin-tdep.c: Fix indentation.
732 * i386-dicos-tdep.c: Fix indentation.
733 * i386-gnu-nat.c: Fix indentation.
734 * i386-linux-nat.c: Fix indentation.
735 * i386-linux-tdep.c: Fix indentation.
736 * i386-nto-tdep.c: Fix indentation.
737 * i386-obsd-tdep.c: Fix indentation.
738 * i386-sol2-nat.c: Fix indentation.
739 * i386-tdep.c: Fix indentation.
740 * i386-tdep.h: Fix indentation.
741 * i386-windows-tdep.c: Fix indentation.
742 * i387-tdep.c: Fix indentation.
743 * i387-tdep.h: Fix indentation.
744 * ia64-libunwind-tdep.c: Fix indentation.
745 * ia64-libunwind-tdep.h: Fix indentation.
746 * ia64-linux-nat.c: Fix indentation.
747 * ia64-linux-tdep.c: Fix indentation.
748 * ia64-tdep.c: Fix indentation.
749 * ia64-tdep.h: Fix indentation.
750 * ia64-vms-tdep.c: Fix indentation.
751 * infcall.c: Fix indentation.
752 * infcmd.c: Fix indentation.
753 * inferior.c: Fix indentation.
754 * infrun.c: Fix indentation.
755 * iq2000-tdep.c: Fix indentation.
756 * language.c: Fix indentation.
757 * linespec.c: Fix indentation.
758 * linux-fork.c: Fix indentation.
759 * linux-nat.c: Fix indentation.
760 * linux-tdep.c: Fix indentation.
761 * linux-thread-db.c: Fix indentation.
762 * lm32-tdep.c: Fix indentation.
763 * m2-lang.c: Fix indentation.
764 * m2-typeprint.c: Fix indentation.
765 * m2-valprint.c: Fix indentation.
766 * m32c-tdep.c: Fix indentation.
767 * m32r-linux-tdep.c: Fix indentation.
768 * m32r-tdep.c: Fix indentation.
769 * m68hc11-tdep.c: Fix indentation.
770 * m68k-bsd-nat.c: Fix indentation.
771 * m68k-linux-nat.c: Fix indentation.
772 * m68k-linux-tdep.c: Fix indentation.
773 * m68k-tdep.c: Fix indentation.
774 * machoread.c: Fix indentation.
775 * macrocmd.c: Fix indentation.
776 * macroexp.c: Fix indentation.
777 * macroscope.c: Fix indentation.
778 * macrotab.c: Fix indentation.
779 * macrotab.h: Fix indentation.
780 * main.c: Fix indentation.
781 * mdebugread.c: Fix indentation.
782 * mep-tdep.c: Fix indentation.
783 * mi/mi-cmd-catch.c: Fix indentation.
784 * mi/mi-cmd-disas.c: Fix indentation.
785 * mi/mi-cmd-env.c: Fix indentation.
786 * mi/mi-cmd-stack.c: Fix indentation.
787 * mi/mi-cmd-var.c: Fix indentation.
788 * mi/mi-cmds.c: Fix indentation.
789 * mi/mi-main.c: Fix indentation.
790 * mi/mi-parse.c: Fix indentation.
791 * microblaze-tdep.c: Fix indentation.
792 * minidebug.c: Fix indentation.
793 * minsyms.c: Fix indentation.
794 * mips-linux-nat.c: Fix indentation.
795 * mips-linux-tdep.c: Fix indentation.
796 * mips-nbsd-tdep.c: Fix indentation.
797 * mips-tdep.c: Fix indentation.
798 * mn10300-linux-tdep.c: Fix indentation.
799 * mn10300-tdep.c: Fix indentation.
800 * moxie-tdep.c: Fix indentation.
801 * msp430-tdep.c: Fix indentation.
802 * namespace.h: Fix indentation.
803 * nat/fork-inferior.c: Fix indentation.
804 * nat/gdb_ptrace.h: Fix indentation.
805 * nat/linux-namespaces.c: Fix indentation.
806 * nat/linux-osdata.c: Fix indentation.
807 * nat/netbsd-nat.c: Fix indentation.
808 * nat/x86-dregs.c: Fix indentation.
809 * nbsd-nat.c: Fix indentation.
810 * nbsd-tdep.c: Fix indentation.
811 * nios2-linux-tdep.c: Fix indentation.
812 * nios2-tdep.c: Fix indentation.
813 * nto-procfs.c: Fix indentation.
814 * nto-tdep.c: Fix indentation.
815 * objfiles.c: Fix indentation.
816 * objfiles.h: Fix indentation.
817 * opencl-lang.c: Fix indentation.
818 * or1k-tdep.c: Fix indentation.
819 * osabi.c: Fix indentation.
820 * osabi.h: Fix indentation.
821 * osdata.c: Fix indentation.
822 * p-lang.c: Fix indentation.
823 * p-typeprint.c: Fix indentation.
824 * p-valprint.c: Fix indentation.
825 * parse.c: Fix indentation.
826 * ppc-linux-nat.c: Fix indentation.
827 * ppc-linux-tdep.c: Fix indentation.
828 * ppc-nbsd-nat.c: Fix indentation.
829 * ppc-nbsd-tdep.c: Fix indentation.
830 * ppc-obsd-nat.c: Fix indentation.
831 * ppc-ravenscar-thread.c: Fix indentation.
832 * ppc-sysv-tdep.c: Fix indentation.
833 * ppc64-tdep.c: Fix indentation.
834 * printcmd.c: Fix indentation.
835 * proc-api.c: Fix indentation.
836 * producer.c: Fix indentation.
837 * producer.h: Fix indentation.
838 * prologue-value.c: Fix indentation.
839 * prologue-value.h: Fix indentation.
840 * psymtab.c: Fix indentation.
841 * python/py-arch.c: Fix indentation.
842 * python/py-bpevent.c: Fix indentation.
843 * python/py-event.c: Fix indentation.
844 * python/py-event.h: Fix indentation.
845 * python/py-finishbreakpoint.c: Fix indentation.
846 * python/py-frame.c: Fix indentation.
847 * python/py-framefilter.c: Fix indentation.
848 * python/py-inferior.c: Fix indentation.
849 * python/py-infthread.c: Fix indentation.
850 * python/py-objfile.c: Fix indentation.
851 * python/py-prettyprint.c: Fix indentation.
852 * python/py-registers.c: Fix indentation.
853 * python/py-signalevent.c: Fix indentation.
854 * python/py-stopevent.c: Fix indentation.
855 * python/py-stopevent.h: Fix indentation.
856 * python/py-threadevent.c: Fix indentation.
857 * python/py-tui.c: Fix indentation.
858 * python/py-unwind.c: Fix indentation.
859 * python/py-value.c: Fix indentation.
860 * python/py-xmethods.c: Fix indentation.
861 * python/python-internal.h: Fix indentation.
862 * python/python.c: Fix indentation.
863 * ravenscar-thread.c: Fix indentation.
864 * record-btrace.c: Fix indentation.
865 * record-full.c: Fix indentation.
866 * record.c: Fix indentation.
867 * reggroups.c: Fix indentation.
868 * regset.h: Fix indentation.
869 * remote-fileio.c: Fix indentation.
870 * remote.c: Fix indentation.
871 * reverse.c: Fix indentation.
872 * riscv-linux-tdep.c: Fix indentation.
873 * riscv-ravenscar-thread.c: Fix indentation.
874 * riscv-tdep.c: Fix indentation.
875 * rl78-tdep.c: Fix indentation.
876 * rs6000-aix-tdep.c: Fix indentation.
877 * rs6000-lynx178-tdep.c: Fix indentation.
878 * rs6000-nat.c: Fix indentation.
879 * rs6000-tdep.c: Fix indentation.
880 * rust-lang.c: Fix indentation.
881 * rx-tdep.c: Fix indentation.
882 * s12z-tdep.c: Fix indentation.
883 * s390-linux-tdep.c: Fix indentation.
884 * score-tdep.c: Fix indentation.
885 * ser-base.c: Fix indentation.
886 * ser-mingw.c: Fix indentation.
887 * ser-uds.c: Fix indentation.
888 * ser-unix.c: Fix indentation.
889 * serial.c: Fix indentation.
890 * sh-linux-tdep.c: Fix indentation.
891 * sh-nbsd-tdep.c: Fix indentation.
892 * sh-tdep.c: Fix indentation.
893 * skip.c: Fix indentation.
894 * sol-thread.c: Fix indentation.
895 * solib-aix.c: Fix indentation.
896 * solib-darwin.c: Fix indentation.
897 * solib-frv.c: Fix indentation.
898 * solib-svr4.c: Fix indentation.
899 * solib.c: Fix indentation.
900 * source.c: Fix indentation.
901 * sparc-linux-tdep.c: Fix indentation.
902 * sparc-nbsd-tdep.c: Fix indentation.
903 * sparc-obsd-tdep.c: Fix indentation.
904 * sparc-ravenscar-thread.c: Fix indentation.
905 * sparc-tdep.c: Fix indentation.
906 * sparc64-linux-tdep.c: Fix indentation.
907 * sparc64-nbsd-tdep.c: Fix indentation.
908 * sparc64-obsd-tdep.c: Fix indentation.
909 * sparc64-tdep.c: Fix indentation.
910 * stabsread.c: Fix indentation.
911 * stack.c: Fix indentation.
912 * stap-probe.c: Fix indentation.
913 * stubs/ia64vms-stub.c: Fix indentation.
914 * stubs/m32r-stub.c: Fix indentation.
915 * stubs/m68k-stub.c: Fix indentation.
916 * stubs/sh-stub.c: Fix indentation.
917 * stubs/sparc-stub.c: Fix indentation.
918 * symfile-mem.c: Fix indentation.
919 * symfile.c: Fix indentation.
920 * symfile.h: Fix indentation.
921 * symmisc.c: Fix indentation.
922 * symtab.c: Fix indentation.
923 * symtab.h: Fix indentation.
924 * target-float.c: Fix indentation.
925 * target.c: Fix indentation.
926 * target.h: Fix indentation.
927 * tic6x-tdep.c: Fix indentation.
928 * tilegx-linux-tdep.c: Fix indentation.
929 * tilegx-tdep.c: Fix indentation.
930 * top.c: Fix indentation.
931 * tracefile-tfile.c: Fix indentation.
932 * tracepoint.c: Fix indentation.
933 * tui/tui-disasm.c: Fix indentation.
934 * tui/tui-io.c: Fix indentation.
935 * tui/tui-regs.c: Fix indentation.
936 * tui/tui-stack.c: Fix indentation.
937 * tui/tui-win.c: Fix indentation.
938 * tui/tui-winsource.c: Fix indentation.
939 * tui/tui.c: Fix indentation.
940 * typeprint.c: Fix indentation.
941 * ui-out.h: Fix indentation.
942 * unittests/copy_bitwise-selftests.c: Fix indentation.
943 * unittests/memory-map-selftests.c: Fix indentation.
944 * utils.c: Fix indentation.
945 * v850-tdep.c: Fix indentation.
946 * valarith.c: Fix indentation.
947 * valops.c: Fix indentation.
948 * valprint.c: Fix indentation.
949 * valprint.h: Fix indentation.
950 * value.c: Fix indentation.
951 * value.h: Fix indentation.
952 * varobj.c: Fix indentation.
953 * vax-tdep.c: Fix indentation.
954 * windows-nat.c: Fix indentation.
955 * windows-tdep.c: Fix indentation.
956 * xcoffread.c: Fix indentation.
957 * xml-syscall.c: Fix indentation.
958 * xml-tdesc.c: Fix indentation.
959 * xstormy16-tdep.c: Fix indentation.
960 * xtensa-config.c: Fix indentation.
961 * xtensa-linux-nat.c: Fix indentation.
962 * xtensa-linux-tdep.c: Fix indentation.
963 * xtensa-tdep.c: Fix indentation.
964
965 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
966 Craig Blackmore <craig.blackmore@embecosm.com>
967
968 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
969 as an unsigned value.
970
971 2020-11-01 Tom Tromey <tom@tromey.com>
972
973 * dbxread.c (dbx_end_psymtab): Update.
974 * dwarf2/read.c (process_psymtab_comp_unit_reader)
975 (build_type_psymtabs_reader): Update.
976 * xcoffread.c (xcoff_end_psymtab): Update.
977 * ctfread.c (scan_partial_symbols): Update.
978 * psymtab.c (sort_pst_symbols): Remove.
979 (partial_symtab::end): Rename from end_psymtab_common. Inline
980 sort_pst_symbols.
981 * psympriv.h (struct partial_symtab) <end>: New method.
982 (end_psymtab_common): Don't declare.
983
984 2020-11-01 Tom Tromey <tom@tromey.com>
985
986 * symmisc.c (count_psyms): New function.
987 (print_objfile_statistics): Use it.
988 * psymtab.c (append_psymbol_to_list): Remove.
989 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
990 * objfiles.h (struct objstats) <n_psyms>: Remove.
991
992 2020-11-01 Tom Tromey <tom@tromey.com>
993
994 * dbxread.c (dbx_end_psymtab): Update.
995 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
996 (build_type_psymtabs_reader): Update.
997 * xcoffread.c (xcoff_end_psymtab): Update.
998 * ctfread.c (scan_partial_symbols): Update.
999 * psympriv.h (end_psymtab_common): Update.
1000 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1001 (sort_pst_symbols): Likewise.
1002
1003 2020-11-01 Tom Tromey <tom@tromey.com>
1004
1005 * dbxread.c (dbx_symfile_read): Update.
1006 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1007 * xcoffread.c (xcoff_initial_scan): Update.
1008 * psympriv.h (init_psymbol_list): Don't declare.
1009 * psymtab.c (init_psymbol_list): Remove.
1010
1011 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1012
1013 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1014 gnat_encoded_fixed_type_info. Update all callers.
1015
1016 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1019 line too long.
1020
1021 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1022
1023 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1024 cast_from_fixed. Update all callers.
1025 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1026 Update all callers.
1027 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1028 Update all callers.
1029 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1030 ada_scaling_factor.
1031 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1032 to print_gnat_encoded_fixed_point_type.
1033 * ada-valprint.c: Likewise.
1034
1035 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1036
1037 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1038 (debug_prefixed_printf): Add check of debug_displaced flag.
1039 * linux-nat.c (linux_nat_debug_printf): Add check of
1040 debug_linux_nat flag.
1041
1042 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1043
1044 * infrun.c (infrun_debug_printf_1): Remove.
1045 (displaced_debug_printf_1): Remove.
1046 (stop_all_threads): Use debug_prefixed_printf.
1047 * infrun.h (infrun_debug_printf_1): Remove.
1048 (infrun_debug_printf): Use debug_prefixed_printf.
1049 (displaced_debug_printf_1): Remove.
1050 (displaced_debug_printf): Use debug_prefixed_printf.
1051 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1052 (linux_nat_debug_printf): Use debug_prefixed_printf.
1053
1054 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1055
1056 * configure: Re-generate.
1057 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1058 AC_LANG_PROGRAM.
1059
1060 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * configure: Re-generate.
1063
1064 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * configure: Re-generate.
1067
1068 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * configure: Re-generate.
1071
1072 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * configure: Re-generate.
1075
1076 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * acinclude.m4: Modernize.
1079 * configure: Re-generate.
1080
1081 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1082
1083 * configure.ac: Modernize.
1084 * configure: Re-generate.
1085
1086 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1089 * configure: Re-generate.
1090 * configure.ac: Remove AM_PROG_CC_STDC.
1091
1092 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1095 AC_CANONICAL_SYSTEM.
1096 * configure: Re-generate.
1097
1098 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * infrun.h (displaced_debug_printf): New macro. Replace
1101 displaced debug prints throughout to use it.
1102 (displaced_debug_printf_1): New declaration.
1103 (displaced_step_dump_bytes): Return string, remove ui_file
1104 parameter, update all callers.
1105 * infrun.c (displaced_debug_printf_1): New function.
1106 (displaced_step_dump_bytes): Return string, remove ui_file
1107 parameter
1108
1109 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1112
1113 2020-10-30 Tom Tromey <tromey@adacore.com>
1114
1115 * Makefile.in (stamp-init): Depend on config.status.
1116
1117 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1118
1119 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1120
1121 2020-10-30 Pedro Alves <pedro@palves.net>
1122
1123 * thread.c (lookup_selected_frame): Move ...
1124 * frame.c (lookup_selected_frame): ... here.
1125
1126 2020-10-30 Pedro Alves <pedro@palves.net>
1127
1128 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1129 * frame.c
1130 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1131 Use save_selected_frame. Save language as well.
1132 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1133 Use restore_selected_frame, and restore language as well.
1134 (selected_frame_id, selected_frame_level): New.
1135 (selected_frame): Update comments.
1136 (save_selected_frame, restore_selected_frame): New.
1137 (get_selected_frame): Use lookup_selected_frame.
1138 (get_selected_frame_if_set): Delete.
1139 (select_frame): Record selected_frame_level and selected_frame_id.
1140 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1141 fields.
1142 (get_selected_frame): Make 'message' parameter optional.
1143 (get_selected_frame_if_set): Delete declaration.
1144 (select_frame): Update comments.
1145 (save_selected_frame, restore_selected_frame)
1146 (lookup_selected_frame): Declare.
1147 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1148 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1149 New field.
1150 (save_infcall_control_state): Use save_selected_frame.
1151 (restore_selected_frame): Delete.
1152 (restore_infcall_control_state): Use restore_selected_frame.
1153 * stack.c (select_frame_command_core, frame_command_core): Use
1154 get_selected_frame.
1155 * thread.c (restore_selected_frame): Rename to ...
1156 (lookup_selected_frame): ... this and make extern. Select the
1157 current frame if the frame level is -1.
1158 (scoped_restore_current_thread::restore): Also restore the
1159 language.
1160 (scoped_restore_current_thread::~scoped_restore_current_thread):
1161 Don't try/catch.
1162 (scoped_restore_current_thread::scoped_restore_current_thread):
1163 Save the language as well. Use save_selected_frame.
1164
1165 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1168 documentation.
1169 * gdbarch.h: Re-generate.
1170
1171 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1174 parameter.
1175 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1176 Likewise.
1177 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1178 Likewise.
1179 * arch-utils.c (default_displaced_step_hw_singlestep):
1180 Likewise.
1181 * arch-utils.h (default_displaced_step_hw_singlestep):
1182 Likewise.
1183 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1184 Likewise.
1185 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1186 Likewise.
1187 * gdbarch.c: Re-generate.
1188 * gdbarch.h: Re-generate.
1189 * infrun.c (resume_1): Adjust.
1190
1191 2020-10-29 Tom Tromey <tom@tromey.com>
1192
1193 * progspace.c (program_space::~program_space): Don't call
1194 exec_close.
1195
1196 2020-10-29 Tom Tromey <tom@tromey.com>
1197
1198 * exec.c (exec_target::close): Don't change current program
1199 space.
1200
1201 2020-10-29 Tom Tromey <tom@tromey.com>
1202
1203 * symfile.c (add_symbol_file_command): Update.
1204 * exec.c (program_space::add_target_sections): Rename.
1205 * symfile-mem.c (symbol_file_add_from_memory): Update.
1206 * progspace.h (struct program_space) <add_target_sections>:
1207 Declare new overload.
1208 * exec.h (add_target_sections_of_objfile): Don't declare.
1209
1210 2020-10-29 Tom Tromey <tom@tromey.com>
1211
1212 * solib.c (solib_map_sections): Update.
1213 * exec.c (program_space::add_target_sections): Now a method.
1214 (exec_file_attach): Update.
1215 * exec.h (add_target_sections): Don't declare.
1216 * progspace.h (struct program_space) <add_target_sections>:
1217 Declare.
1218
1219 2020-10-29 Tom Tromey <tom@tromey.com>
1220
1221 * progspace.h (struct program_space) <remove_target_sections>:
1222 Declare.
1223 * exec.c (program_space::remove_target_sections): Now a method.
1224 * exec.h (remove_target_sections): Don't declare.
1225
1226 2020-10-29 Tom Tromey <tom@tromey.com>
1227
1228 * inferior.c (delete_inferior): Update.
1229 * progspace.c (program_space::empty): Rename from
1230 program_space_empty_p. Return bool.
1231 * progspace.h (struct program_space) <empty>: New method.
1232 (program_space_empty_p): Don't declare.
1233
1234 2020-10-29 Tom Tromey <tom@tromey.com>
1235
1236 * progspace.c (program_space::~program_space): Don't call
1237 clear_program_space_solib_cache.
1238 (program_space::clear_solib_cache): Rename from
1239 clear_solib_cache.
1240 * solib.c (handle_solib_event): Update.
1241 * progspace.h (struct program_space) <clear_solib_cache>: New
1242 method.
1243 (clear_program_space_solib_cache): Don't declare.
1244
1245 2020-10-29 Tom Tromey <tom@tromey.com>
1246
1247 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1248 * target.c (info_target_command): Update.
1249 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1250 (symbol_file_clear, reread_symbols): Update.
1251 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1252 * stabsread.c (scan_file_globals): Update.
1253 * solib.c (update_solib_list): Update.
1254 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1255 (svr4_fetch_objfile_link_map, enable_break)
1256 (svr4_relocate_main_executable)
1257 (svr4_iterate_over_objfiles_in_search_order): Update.
1258 * solib-frv.c (lm_base, enable_break)
1259 (frv_relocate_main_executable): Update.
1260 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1261 (frv_fetch_objfile_link_map): Update.
1262 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1263 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1264 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1265 * remote.c (remote_target::get_offsets): Update.
1266 (remote_target::start_remote)
1267 (extended_remote_target::post_attach): Update.
1268 * objfiles.c (entry_point_address_query): Update.
1269 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1270 * minsyms.c (get_symbol_leading_char): Update.
1271 * frame.c (inside_main_func): Update.
1272 * progspace.h (symfile_objfile): Remove macro.
1273
1274 2020-10-29 Tom Tromey <tom@tromey.com>
1275
1276 * exec.c (exec_file_attach): Update.
1277 * progspace.c (program_space::exec_close): Update.
1278 * progspace.h (struct program_space) <ebfd>: Now a
1279 gdb_bfd_ref_ptr.
1280 <set_exec_bfd>: Change argument type.
1281 <exec_bfd>: Update.
1282
1283 2020-10-29 Tom Tromey <tom@tromey.com>
1284
1285 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1286 * symfile.c (reread_symbols): Update.
1287 * symfile-mem.c (add_symbol_file_from_memory_command)
1288 (add_vsyscall_page): Update.
1289 * source-cache.c (source_cache::get_plain_source_lines): Update.
1290 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1291 (svr4_current_sos_direct, svr4_exec_displacement)
1292 (svr4_relocate_main_executable): Update.
1293 (svr4_iterate_over_objfiles_in_search_order): Update.
1294 * solib-frv.c (enable_break2, enable_break): Update.
1295 * solib-dsbt.c (lm_base, enable_break): Update.
1296 * solib-darwin.c (find_program_interpreter)
1297 (darwin_solib_create_inferior_hook): Update.
1298 * sol-thread.c (rw_common, ps_pdmodel): Update.
1299 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1300 * remote.c (compare_sections_command)
1301 (remote_target::trace_set_readonly_regions): Update.
1302 * remote-sim.c (get_sim_inferior_data)
1303 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1304 (gdbsim_target_open, gdbsim_target::files_info): Update.
1305 * exec.h (exec_bfd): Remove macro.
1306 * progspace.c (initialize_progspace): Update.
1307 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1308 Update.
1309 * nto-procfs.c (nto_procfs_target::post_attach)
1310 (nto_procfs_target::create_inferior): Update.
1311 * maint.c (maintenance_info_sections): Update.
1312 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1313 Update.
1314 * infcmd.c (post_create_inferior): Update.
1315 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1316 (objfile_find_memory_regions): Update.
1317 * exec.c (validate_exec_file, exec_file_attach)
1318 (exec_read_partial_read_only, print_section_info): Update.
1319 * corelow.c (core_target_open): Update.
1320 * corefile.c (reopen_exec_file, validate_files): Update.
1321 * arm-tdep.c (gdb_print_insn_arm): Update.
1322 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1323 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1324 methods.
1325
1326 2020-10-29 Tom Tromey <tom@tromey.com>
1327
1328 * progspace.h (current_target_sections): Remove macro.
1329 * solib-svr4.c (scan_dyntag): Update.
1330 * solib-dsbt.c (scan_dyntag): Update.
1331 * exec.c (exec_target::close): Update.
1332 (add_target_sections, add_target_sections_of_objfile)
1333 (remove_target_sections, exec_target::get_section_table)
1334 (exec_target::files_info, set_section_command)
1335 (exec_set_section_address, exec_target::has_memory)
1336 (exec_target::has_memory): Update.
1337
1338 2020-10-29 Tom Tromey <tom@tromey.com>
1339
1340 * source-cache.c (source_cache::get_plain_source_lines): Use
1341 current_program_space.
1342 * corefile.c (reopen_exec_file): Use current_program_space.
1343 * exec.c (exec_file_attach): Use current_program_space.
1344 * exec.h (exec_bfd_mtime): Remove.
1345
1346 2020-10-29 Tom Tromey <tom@tromey.com>
1347
1348 * gcore.c (default_gcore_mach): Remove.
1349 (create_gcore_bfd): Update.
1350
1351 2020-10-29 Tom Tromey <tom@tromey.com>
1352
1353 * progspace.c (program_space::exec_close): New method, from
1354 exec_close in exec.c.
1355 * exec.c (exec_close): Move to progspace.c.
1356 (exec_target::close, exec_file_attach): Update.
1357 * progspace.h (struct program_space) <exec_close>: Declare
1358 method.
1359
1360 2020-10-29 Tom Tromey <tom@tromey.com>
1361
1362 * progspace.h (struct program_space) <exec_filename>: Rename from
1363 pspace_exec_filename. Now a unique_xmalloc_ptr.
1364 * inferior.c (print_selected_inferior): Update.
1365 (print_inferior): Update.
1366 * mi/mi-main.c (print_one_inferior): Update.
1367 * exec.h (exec_filename): Remove macro.
1368 * corefile.c (get_exec_file): Update.
1369 * exec.c (exec_close): Update.
1370 (exec_file_attach): Update.
1371 * progspace.c (clone_program_space): Update.
1372 (print_program_space): Update.
1373
1374 2020-10-29 Tom Tromey <tom@tromey.com>
1375
1376 * target-section.h (struct target_section): Add constructor.
1377 * exec.c (build_section_table, add_target_sections_of_objfile):
1378 Update.
1379 * corelow.c (core_target::build_file_mappings): Update.
1380
1381 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1382
1383 PR gdb/19318
1384 * inferior.c (detach_inferior_command): Restore the current thread.
1385 (kill_inferior_command): Ditto.
1386
1387 2020-10-28 Tom de Vries <tdevries@suse.de>
1388
1389 PR symtab/26772
1390 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1391 map, check it in the "best match" loop.
1392
1393 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * m32c-tdep.c: Remove unused includes.
1396
1397 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * xtensa-tdep.c: Remove includes.
1400
1401 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402
1403 * breakpoint.c (struct condition_command_opts): New struct.
1404 (condition_command_option_defs): New static global.
1405 (make_condition_command_options_def_group): New function.
1406 (condition_completer): Update to consider the '-force' flag.
1407 (condition_command): Use gdb::option for the '-force' flag.
1408
1409 2020-10-27 Tom de Vries <tdevries@suse.de>
1410
1411 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1412 symbols in section check.
1413
1414 2020-10-27 Tom de Vries <tdevries@suse.de>
1415
1416 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1417
1418 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1419
1420 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1421 * breakpoint.c: Update the help text of the 'condition' and 'break'
1422 commands.
1423 (set_breakpoint_condition): Take a new bool parameter
1424 to control whether condition definition should be forced even when
1425 the condition expression is invalid in all of the current locations.
1426 (condition_command): Update the call to 'set_breakpoint_condition'.
1427 (find_condition_and_thread): Take the "-force-condition" flag into
1428 account.
1429 * linespec.c (linespec_keywords): Add "-force-condition" as an
1430 element.
1431 (FORCE_KEYWORD_INDEX): New #define.
1432 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1433 as a keyword.
1434 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1435 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1436 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1437 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1438
1439 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440
1441 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1442 * breakpoint.c (set_breakpoint_location_condition): New function.
1443 (set_breakpoint_condition): Disable a breakpoint location if parsing
1444 the condition string gives an error.
1445 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1446 (build_target_condition_list): Ditto.
1447 (build_target_command_list): Ditto.
1448 (build_bpstat_chain): Ditto.
1449 (print_one_breakpoint_location): Ditto.
1450 (print_one_breakpoint): Ditto.
1451 (breakpoint_1): Ditto.
1452 (bp_location::bp_location): Ditto.
1453 (locations_are_equal): Ditto.
1454 (update_breakpoint_locations): Ditto.
1455 (enable_disable_bp_num_loc): Ditto.
1456 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1457 (find_condition_and_thread_for_sals): New static function.
1458 (create_breakpoint): Call find_condition_and_thread_for_sals.
1459 (location_to_sals): Call find_condition_and_thread_for_sals instead
1460 of find_condition_and_thread.
1461
1462 2020-10-26 Tom de Vries <tdevries@suse.de>
1463
1464 * dwarf2/read.c (process_full_comp_unit): Call
1465 dwarf2_find_base_address.
1466
1467 2020-10-26 Tom Tromey <tromey@adacore.com>
1468
1469 * gdbtypes.c (create_range_type): Revert previous patch. Add
1470 comment.
1471
1472 2020-10-26 Pedro Alves <pedro@palves.net>
1473
1474 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1475 (my_waitpid): Use gdb::handle_eintr.
1476
1477 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * acinclude.m4: Update ptrace.m4 path.
1480 * ptrace.m4: Moved to gdbsupport.
1481
1482 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1485 instead of target_gdbarch.
1486
1487 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * jit.c (jit_reader_load_command): Pass current inferior.
1490 (jit_inferior_init): Change parameter type to inferior, use it.
1491 (jit_inferior_created): Remove.
1492 (jit_inferior_created_hook): Pass inferior parameter down.
1493 (_initialize_jit): Use jit_inferior_created_hook instead of
1494 jit_inferior_created.
1495 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1496 * infrun.c (follow_exec): Pass inferior to
1497 jit_inferior_created_hook.
1498
1499 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1502 parameter and use it.
1503 (thread_db_inferior_created): Pass inferior argument.
1504
1505 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1506
1507 * aix-thread.c (aix_thread_inferior_created): Add inferior
1508 parameter.
1509 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1510 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1511 * jit.c (jit_inferior_created): Likewise.
1512 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1513 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1514 * observable.h (inferior_created): Likewise.
1515 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1516 * symfile-mem.c (add_vsyscall_page): Likewise.
1517 * infcmd.c (post_create_inferior): Pass inferior argument.
1518
1519 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1520
1521 GDB 10.1 released.
1522
1523 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1524
1525 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1526 to ada_check_typedef.
1527
1528 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * f-exp.y (f_parse): Rename to...
1531 (f_language::parser): ...this.
1532 * f-lang.c (f_get_encoding): Rename to...
1533 (f_language::get_encoding): ...this.
1534 (f_op_print_tab): Rename to...
1535 (f_language::op_print_tab): ...this.
1536 (exp_descriptor_f): Rename to...
1537 (f_language::exp_descriptor_tab): ...this.
1538 (class f_language): Moved to f-lang.h.
1539 (f_language::language_arch_info): New function, moved out of class
1540 declaration.
1541 (f_language::search_name_hash): Likewise.
1542 (f_language::lookup_symbol_nonlocal): Likewise.
1543 (f_language::get_symbol_name_matcher_inner): Likewise.
1544 * f-lang.h: Add 'valprint.h' include.
1545 (class f_language): Moved here from f-lang.c.
1546 * f-typeprint.c (f_type_print_args): Delete commented out
1547 declaration.
1548 (f_print_typedef): Rename to...
1549 (f_language::print_typedef): ...this.
1550 (f_print_type): Rename to...
1551 (f_language::print_type): ...this.
1552 (f_type_print_varspec_prefix): Delete declaration and rename to...
1553 (f_language::f_type_print_varspec_prefix): ...this.
1554 (f_type_print_varspec_suffix): Delete declaration and rename to...
1555 (f_language::f_type_print_varspec_suffix): ...this.
1556 (f_type_print_base): Delete declaration and rename to...
1557 (f_language::f_type_print_base): ...this.
1558 * f-valprint.c (f_value_print_inner): Rename to...
1559 (f_language::value_print_inner): ...this.
1560 * parse.c: Delete 'f-lang.h' include.
1561
1562 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * language.h (language_defn::print_type): Add variable names in
1565 declaration, and update header comment.
1566
1567 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * ada-lang.c (ada_language::demangle): Rename to...
1570 (ada_language::demangle_symbol): ...this.
1571 * c-lang.c (cplus_language::demangle): Rename to...
1572 (cplus_language::demangle_symbol): ...this.
1573 * d-lang.c (d_language::demangle): Rename to...
1574 (d_language::demangle_symbol): ...this.
1575 * f-lang.c (f_language::demangle): Rename to...
1576 (f_language::demangle_symbol): ...this.
1577 * go-lang.c (go_language::demangle): Rename to...
1578 (go_language::demangle_symbol): ...this.
1579 * language.c (language_demangle): Update call to demangle_symbol.
1580 (auto_or_unknown_language::demangle): Rename to...
1581 (auto_or_unknown_language::demangle_symbol): ...this.
1582 * language.h (language_defn::demangle): Rename to...
1583 (language_defn::demangle_symbol): ...this.
1584 * objc-lang.c (objc_language::demangle): Rename to...
1585 (objc_language::demangle_symbol): ...this.
1586 * rust-lang.c (rust_language::demangle): Rename to...
1587 (rust_language::demangle_symbol): ...this.
1588
1589 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1592 (iterate_over_file_blocks): Replace use of macro with the macros
1593 definition.
1594
1595 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1598 * valprint.c (maybe_print_array_index): Replace use of macro with
1599 the macros definition.
1600
1601 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * ada-lang.c (ada_language::print_array_index): Call value_print
1604 directly.
1605 * language.c (language_defn::print_array_index): Likewise.
1606 * language.h (LA_VALUE_PRINT): Delete.
1607 * valprint.c (value_print): Call value_print on the
1608 current_language directly.
1609
1610 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * language.h (LA_PRINT_TYPEDEF): Delete.
1613 * typeprint.c (typedef_print): Call print_typedef directly on the
1614 current_language object.
1615
1616 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * m2-exp.y (m2_parse): Rename to...
1619 (m2_language::parser): ...this. Update function signature.
1620 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1621 (m2_op_print): Rename to...
1622 (m2_language::op_print_tab): ...this, and make const.
1623 (exp_descriptor_modula2): Rename to...
1624 (m2_language::exp_descriptor_modula2): ...this.
1625 (class m2_language): Move to m2-lang.h.
1626 (m2_language::language_arch_info): New function, moved out of
1627 class declaration.
1628 (m2_language::printchar): New function, body from m2_printchar.
1629 (m2_language::printstr): New function, moved out of class
1630 declaration.
1631 (m2_language::emitchar): Likewise.
1632 * m2-lang.h (m2_parse): Delete declaration.
1633 (m2_print_typedef): Delete declaration.
1634 (m2_value_print_inner): Delete declaration.
1635 (class m2_language): Class declaration moved from m2-lang.c,
1636 larger functions are left in m2-lang.c.
1637 * m2-typeprint.c (m2_print_typedef): Rename to...
1638 (m2_language::print_typedef): ...this, and update function
1639 signature.
1640 * m2-valprint.c (m2_value_print_inner): Rename to...
1641 (m2_language::value_print_inner): ...this, replace use of
1642 LA_PRINT_STRING with a direct call to printstr member function,
1643 and update recursive call.
1644
1645 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * language.c (default_is_string_type_p): Delete, implementation
1648 moved into auto_or_unknown_language::is_string_type_p.
1649 (unk_op_print_tab): Moved into
1650 auto_or_unknown_language::opcode_print_table.
1651 (unknown_language_arch_info): Delete, implementation moved into
1652 auto_or_unknown_language::language_arch_info.
1653 (class auto_or_unknown_language): New class, member functions
1654 copied from unknown_language class, with some updates.
1655 (class unknown_language): Most member functions moved into
1656 auto_or_unknown_language class. Inherit from
1657 auto_or_unknown_language class.
1658 (class auto_language): Inherit from auto_or_unknown_language.
1659 Delete most member functions.
1660
1661 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1662
1663 * stabsread.c (read_member_functions): Remove gdb_assert.
1664
1665 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1666
1667 * gdbtypes.c (init_complex_type): Check target type name.
1668
1669 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * target-debug.h (target_debug_print_struct_target_ops_p):
1672 Remove.
1673 (target_debug_print_async_callback_ftype_p): Remove.
1674 (target_debug_print_struct_trace_state_variable_p): Remove.
1675 (target_debug_print_struct_traceframe_info_p): Remove.
1676 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1677 (target_debug_print_enum_btrace_format): Remove.
1678 (target_debug_print_enum_info_proc_what): Remove.
1679 (target_debug_print_thread_info_pp): Remove.
1680
1681 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1682
1683 * target.h (struct target_ops) <make_corefile_notes>:
1684 Change return type to unique pointer.
1685 * target.c (dummy_make_corefile_notes): Likewise.
1686 * exec.c (struct exec_target) <make_corefile_notes>:
1687 Likewise.
1688 (exec_target::make_corefile_notes): Likewise.
1689 * procfs.c (class procfs_target) <make_corefile_notes>:
1690 Likewise.
1691 (procfs_do_thread_registers): Adjust to unique pointer.
1692 (struct procfs_corefile_thread_data): Add constructor.
1693 <note_data>: Change type to unique pointer.
1694 (procfs_corefile_thread_callback): Adjust to unique pointer.
1695 (procfs_target::make_corefile_notes): Change return type to
1696 unique pointer.
1697 * target-delegates.c: Re-generate.
1698 * gcore.c (write_gcore_file_1): Adjust.
1699 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1700 New.
1701
1702 2020-10-22 Tom de Vries <tdevries@suse.de>
1703
1704 * block.c (find_block_in_blockvector): Make sure the returned block
1705 contains pc.
1706
1707 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 PR gdb/26693
1710 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1711 parameter.
1712 (load_cu): Pass existing CU.
1713 (process_imported_unit_die): Likewise.
1714 (follow_die_offset): Likewise.
1715
1716 2020-10-22 Luis Machado <luis.machado@linaro.org>
1717
1718 * corelow.c (core_target::xfer_partial): Also check for an empty
1719 m_core_unavailable_mappings vector.
1720
1721 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1724 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1725 * f-exp.y (arglist): Allow for a series of subranges.
1726 (subrange): Add cases for subranges with strides.
1727 * f-lang.c (value_f90_subarray): Catch use of array strides and
1728 throw an error.
1729 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1730
1731 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * expprint.c (print_subexp_standard): Change enum range_type to
1734 range_flag and rename variables to match.
1735 (dump_subexp_body_standard): Likewise.
1736 * expression.h (enum range_type): Rename to...
1737 (enum range_flag): ...this.
1738 (range_types): Rename to...
1739 (range_flags): ...this.
1740 * f-lang.c (value_f90_subarray): Change enum range_type to
1741 range_flag and rename variables to match.
1742 * parse.c (operator_length_standard): Likewise.
1743 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1744 range_type to range_flag.
1745 * rust-lang.c (rust_evaluate_funcall): Likewise.
1746 (rust_range): Likewise.
1747 (rust_compute_range): Likewise.
1748 (rust_subscript): Likewise.
1749
1750 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * expprint.c (print_subexp_standard): Update to reflect changes to
1753 enum range_type.
1754 (dump_subexp_body_standard): Likewise.
1755 * expression.h (enum range_type): Convert to a bit field enum, and
1756 make the enum unsigned.
1757 * f-exp.y (subrange): Update to reflect changes to enum
1758 range_type.
1759 * f-lang.c (value_f90_subarray): Likewise.
1760 * parse.c (operator_length_standard): Likewise.
1761 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1762 * rust-lang.c (rust_range): Likewise.
1763 (rust_compute_range): Likewise.
1764 (rust_subscript): Likewise.
1765
1766 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1769 (displaced_step_in_progress): Fix comment.
1770
1771 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1772
1773 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1774 * gdbarch.c: Re-generate.
1775 * gdbarch.h: Re-generate.
1776 * gcore.c (write_gcore_file_1): Adjust.
1777 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1778 constructor.
1779 <note_data>: Change type to unique pointer.
1780 <abort_iteration>: Change type to bool.
1781 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1782 (fbsd_collect_thread_registers): Return void, adjust.
1783 (struct fbsd_corefile_thread_data): Add construtor.
1784 <note_data>: Change type to unique pointer.
1785 (fbsd_corefile_thread): Adjust.
1786 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1787 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1788 to unique pointer, adjust.
1789 (struct linux_collect_regset_section_cb_data): Add constructor.
1790 <note_data>: Change type to unique pointer.
1791 <abort_iteration>: Change type to bool.
1792 (linux_collect_thread_registers): Return void, adjust.
1793 (struct linux_corefile_thread_data): Add constructor.
1794 <note_data>: Change type to unique pointer.
1795 (linux_corefile_thread): Adjust.
1796 (linux_make_corefile_notes): Return unique pointer, adjust.
1797
1798 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1799
1800 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1801 * gdbarch.c: Re-generate.
1802 * gdbarch.h: Re-generate.
1803 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1804 bool.
1805 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1806 Likewise.
1807 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1808 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1809 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1810 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1811
1812 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * gdbarch.sh: Make generated predicates return bool.
1815 * gdbarch.c: Re-generate.
1816 * gdbarch.h: Re-generate.
1817
1818 2020-10-20 Tom Tromey <tom@tromey.com>
1819
1820 * varobj-iter.h (struct varobj_item): Remove typedef.
1821
1822 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * infrun.c (currently_stepping): Change int to bool
1825 (maybe_software_singlestep): Likewise.
1826 (show_stop_on_solib_events): Likewise.
1827 (stepping_past_nonsteppable_watchpoint): Likewise.
1828 (displaced_step_in_progress_any_inferior): Likewise.
1829 (displaced_step_in_progress_thread): Likewise.
1830 (keep_going_stepped_thread): Likewise.
1831 (thread_still_needs_step_over): Likewise.
1832 (start_step_over): Likewise.
1833 (do_target_resume): Likewise.
1834 (resume_1): Likewise.
1835 (clear_proceed_status): Likewise.
1836 (thread_still_needs_step_over_bp): Likewise.
1837 (proceed): Likewise.
1838 (switch_back_to_stepped_thread): Likewise.
1839 (adjust_pc_after_break): Likewise.
1840 (stepped_in_from): Likewise.
1841 (handle_stop_requested): Likewise.
1842 (handle_syscall_event): Likewise.
1843 (handle_no_resumed): Likewise.
1844 (handle_inferior_event): Likewise.
1845 (finish_step_over): Likewise.
1846 (handle_signal_stop): Likewise.
1847 (process_event_stop_test): Likewise.
1848
1849 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * infrun.c (get_displaced_stepping_state): Fix comment.
1852
1853 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1854
1855 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1856
1857 2020-10-19 Tom Tromey <tromey@adacore.com>
1858
1859 PR tui/26719
1860 * tui/tui-winsource.h (struct tui_source_window_base)
1861 <refresh_window>: Rename from refresh_pad.
1862 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1863 Rename from refresh_pad.
1864 (tui_source_window_base::show_source_content)
1865 (tui_source_window_base::do_scroll_horizontal): Update.
1866
1867 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868
1869 * thread.c (_initialize_thread): Fine-tune the help text of
1870 'info threads'.
1871
1872 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1873
1874 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1875
1876 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1877
1878 * breakpoint.c (handle_jit_event): Add an argument, change how
1879 `jit_event_handler` is called.
1880
1881 2020-10-17 Tom Tromey <tom@tromey.com>
1882
1883 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1884 (scan_xcoff_symtab): Update.
1885 * psymtab.h (class psymtab_storage) <global_psymbols,
1886 static_psymbols, current_global_psymbols,
1887 current_static_psymbols>: Remove.
1888 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1889 (match_partial_symbol, lookup_partial_symbol): Update.
1890 (print_partial_symbols): Change parameters.
1891 (dump_psymtab, recursively_search_psymtabs)
1892 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1893 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1894 (concat): Remove.
1895 (end_psymtab_common): Simplify.
1896 (append_psymbol_to_list): Change parameters.
1897 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1898 (init_psymbol_list): Simplify.
1899 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1900 * psympriv.h (struct partial_symtab) <empty>: New method.
1901 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1902 Remove.
1903 <global_psymbols, static_psymbols>: New members.
1904 <add_psymbol>: New methods.
1905 (add_psymbol_to_list): Don't declare.
1906 (psymbol_placement): Move earlier.
1907 * mdebugread.c (parse_partial_symbols): Update.
1908 (handle_psymbol_enumerators): Change parameters.
1909 (mdebug_expand_psymtab): Update.
1910 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1911 (add_partial_symbol): Update.
1912 * dwarf2/index-write.c (write_psymbols): Change parameters.
1913 (write_one_signatured_type): Update.
1914 (recursively_count_psymbols): Update.
1915 (recursively_write_psymbols): Update.
1916 (class debug_names) <recursively_write_psymbols>: Update.
1917 <write_psymbols>: Change parameters.
1918 <write_one_signatured_type>: Update.
1919 * dbxread.c (read_dbx_symtab): Update.
1920 (dbx_end_psymtab): Use partial_symtab::empty.
1921 * ctfread.c (struct ctf_context) <pst>: New member.
1922 (create_partial_symtab): Set it.
1923 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1924 (scan_partial_symbols): Use the psymtab's context. Update.
1925
1926 2020-10-17 Tom Tromey <tom@tromey.com>
1927
1928 * valprint.c (generic_value_print): Remove comment.
1929 * m2-valprint.c (m2_value_print_inner): Remove comment.
1930 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1931 type.
1932
1933 2020-10-17 Tom de Vries <tdevries@suse.de>
1934
1935 PR symtab/26317
1936 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1937 symbol main.
1938
1939 2020-10-14 Tom de Vries <tdevries@suse.de>
1940
1941 PR gdb/26733
1942 * solib.c (solib_contains_address_p): Handle
1943 'solib->sections == nullptr'.
1944
1945 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 PR gdb/26642
1948 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1949 target can't do async.
1950 * target.c (target_wait): Assert that we don't pass
1951 TARGET_WNOHANG to a target that can't async.
1952
1953 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1954
1955 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1956 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1957 * alpha-bsd-nat.c: Adjust include.
1958 * alpha-bsd-tdep.h: Adjust comment.
1959 * alpha-nbsd-tdep.c: Rename to ...
1960 * alpha-netbsd-tdep.c: ... this, adjust include.
1961 * amd64-nbsd-nat.c: Rename to ...
1962 * amd64-netbsd-nat.c: ... this, adjust include.
1963 * amd64-nbsd-tdep.c: Rename to ...
1964 * amd64-netbsd-tdep.c: ... this, adjust include.
1965 * amd64-tdep.h: Adjust include.
1966 * arm-nbsd-nat.c: Rename to ...
1967 * arm-netbsd-nat.c: ... this, adjust include.
1968 * arm-nbsd-tdep.c: Rename to ...
1969 * arm-netbsd-tdep.c: ... this, adjust include.
1970 * arm-nbsd-tdep.h: Rename to ...
1971 * arm-netbsd-tdep.h: ... this, adjust include.
1972 * configure.nat: Adjust file lists.
1973 * configure.tgt: Likewise.
1974 * hppa-nbsd-nat.c: Rename to ...
1975 * hppa-netbsd-nat.c: ... this, adjust include.
1976 * hppa-nbsd-tdep.c: Rename to ...
1977 * hppa-netbsd-tdep.c: ... this, adjust include.
1978 * i386-nbsd-nat.c: Rename to ...
1979 * i386-netbsd-nat.c: ... this, adjust include.
1980 * i386-nbsd-tdep.c: Rename to ...
1981 * i386-netbsd-tdep.c: ... this, adjust include.
1982 * m68k-bsd-nat.c: Adjust include.
1983 * mips-nbsd-nat.c: Rename to ...
1984 * mips-netbsd-nat.c: ... this, adjust include.
1985 * mips-nbsd-tdep.c: Rename to ...
1986 * mips-netbsd-tdep.c: ... this, adjust include.
1987 * mips-nbsd-tdep.h: Rename to ...
1988 * mips-netbsd-tdep.h: ... this.
1989 * nbsd-nat.c: Rename to ...
1990 * netbsd-nat.c: ... this, adjust include.
1991 * nbsd-nat.h: Rename to ...
1992 * netbsd-nat.h: ... this, adjust include.
1993 * nbsd-tdep.c: Rename to ...
1994 * netbsd-tdep.c: ... this, adjust include.
1995 * nbsd-tdep.h: Rename to ...
1996 * netbsd-tdep.h: ... this.
1997 * ppc-nbsd-nat.c: Rename to ...
1998 * ppc-netbsd-nat.c: ... this, adjust include.
1999 * ppc-nbsd-tdep.c: Rename to ...
2000 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2001 * ppc-nbsd-tdep.h: Rename to ...
2002 * ppc-netbsd-tdep.h: ... this.
2003 * sh-nbsd-nat.c: Rename to ...
2004 * sh-netbsd-nat.c: ... this, adjust include.
2005 * sh-nbsd-tdep.c: Rename to ...
2006 * sh-netbsd-tdep.c: ... this, adjust include.
2007 * sparc-nbsd-nat.c: Rename to ...
2008 * sparc-netbsd-nat.c: ... this.
2009 * sparc-nbsd-tdep.c: Rename to ...
2010 * sparc-netbsd-tdep.c: ... this, adjust include.
2011 * sparc64-nbsd-nat.c: Rename to ...
2012 * sparc64-netbsd-nat.c: ... this.
2013 * sparc64-nbsd-tdep.c: Rename to ...
2014 * sparc64-netbsd-tdep.c: ... this, adjust include.
2015 * sparc64-tdep.h: Adjust comment.
2016 * vax-bsd-nat.c: Adjust include.
2017 * vax-nbsd-tdep.c: Rename to ...
2018 * vax-netbsd-tdep.c: ... this, adjust include.
2019
2020 2020-10-12 Tom Tromey <tom@tromey.com>
2021
2022 * target.h (struct target_ops) <get_section_table>: Update.
2023 (target_get_section_table): Update.
2024 * target.c (target_get_section_table, target_section_by_addr)
2025 (memory_xfer_partial_1): Update.
2026 * target-section.h (target_section_table): Now an alias.
2027 * target-delegates.c: Rebuild.
2028 * target-debug.h (target_debug_print_target_section_table_p):
2029 Rename from target_debug_print_struct_target_section_table_p.
2030 * symfile.c (build_section_addr_info_from_section_table): Update.
2031 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2032 * solib-svr4.c (scan_dyntag): Update.
2033 * solib-dsbt.c (scan_dyntag): Update.
2034 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2035 Update.
2036 * record-full.c (record_full_core_target::xfer_partial): Update.
2037 * progspace.h (struct program_space) <target_sections>: Update.
2038 * exec.h (print_section_info): Update.
2039 * exec.c (exec_target::close, build_section_table)
2040 (add_target_sections, add_target_sections_of_objfile)
2041 (remove_target_sections, exec_on_vfork)
2042 (section_table_available_memory)
2043 (section_table_xfer_memory_partial)
2044 (exec_target::get_section_table, exec_target::xfer_partial)
2045 (print_section_info, set_section_command)
2046 (exec_set_section_address, exec_target::has_memory): Update.
2047 * corelow.c (core_target::build_file_mappings)
2048 (core_target::xfer_partial, core_target::info_proc_mappings)
2049 (core_target::info_proc_mappings): Update.
2050 * bfd-target.c (class target_bfd): Update
2051
2052 2020-10-12 Tom Tromey <tom@tromey.com>
2053
2054 * progspace.c (program_space::~program_space): Don't call
2055 clear_section_table.
2056 * exec.h (clear_section_table): Don't declare.
2057 * exec.c (exec_target::close): Update.
2058 (clear_section_table): Remove.
2059
2060 2020-10-12 Tom Tromey <tom@tromey.com>
2061
2062 * exec.c (add_target_sections_of_objfile): Simplify.
2063
2064 2020-10-12 Tom Tromey <tom@tromey.com>
2065
2066 * solib.c (solib_map_sections): Update.
2067 * record-full.c (record_full_core_open_1): Update.
2068 * exec.h (build_section_table): Return a target_section_table.
2069 * exec.c (exec_file_attach): Update.
2070 (build_section_table): Return a target_section_table.
2071 * corelow.c (core_target::core_target): Update.
2072 * bfd-target.c (target_bfd::target_bfd): Update.
2073
2074 2020-10-12 Tom Tromey <tom@tromey.com>
2075
2076 * target.c (target_section_by_addr, memory_xfer_partial_1):
2077 Update.
2078 * target-section.h (struct target_section_table): Use
2079 std::vector.
2080 * symfile.h (build_section_addr_info_from_section_table): Take a
2081 target_section_table.
2082 * symfile.c (build_section_addr_info_from_section_table): Take a
2083 target_section_table.
2084 * solist.h (struct so_list) <sections>: Change type.
2085 <sections_end>: Remove.
2086 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2087 (solib_contains_address_p): Update.
2088 * solib-svr4.c (scan_dyntag): Update.
2089 * solib-dsbt.c (scan_dyntag): Update.
2090 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2091 Update.
2092 * record-full.c (record_full_core_start, record_full_core_end):
2093 Remove.
2094 (record_full_core_sections): New global.
2095 (record_full_core_open_1, record_full_core_target::xfer_partial):
2096 Update.
2097 * exec.h (build_section_table, section_table_xfer_memory_partial)
2098 (add_target_sections): Take a target_section_table.
2099 * exec.c (exec_file_attach, clear_section_table): Update.
2100 (resize_section_table): Remove.
2101 (build_section_table, add_target_sections): Take a
2102 target_section_table.
2103 (add_target_sections_of_objfile, remove_target_sections)
2104 (exec_on_vfork): Update.
2105 (section_table_available_memory): Take a target_section_table.
2106 (section_table_read_available_memory): Update.
2107 (section_table_xfer_memory_partial): Take a target_section_table.
2108 (print_section_info, set_section_command)
2109 (exec_set_section_address, exec_target::has_memory): Update.
2110 * corelow.c (class core_target) <m_core_section_table,
2111 m_core_file_mappings>: Remove braces.
2112 <~core_target>: Remove.
2113 (core_target::core_target): Update.
2114 (core_target::~core_target): Remove.
2115 (core_target::build_file_mappings)
2116 (core_target::xfer_memory_via_mappings)
2117 (core_target::xfer_partial, core_target::info_proc_mappings):
2118 Update.
2119 * bfd-target.c (target_bfd::xfer_partial): Update.
2120 (target_bfd::target_bfd): Update.
2121 (target_bfd::~target_bfd): Remove.
2122
2123 2020-10-12 Tom Tromey <tom@tromey.com>
2124
2125 * target.h (struct target_section, struct target_section_table):
2126 Move to target-section.h.
2127 * target-section.h: New file.
2128
2129 2020-10-12 Pedro Alves <pedro@palves.net>
2130
2131 PR exp/26602
2132 * valops.c (struct struct_field_searcher): New.
2133 (update_search_result): Rename to ...
2134 (struct_field_searcher::update_result): ... this. Simplify
2135 prototype. Record all found fields.
2136 (do_search_struct_field): Rename to ...
2137 (struct_field_searcher::search): ... this. Simplify prototype.
2138 Maintain stack of visited baseclass path. Call update_result for
2139 fields too. Keep searching fields in baseclasses instead of
2140 stopping at the first found field.
2141 (search_struct_field): Use struct_field_searcher. When looking
2142 for fields, report ambiguous access attempts.
2143
2144 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * frame.c (inside_main_func): Check full symbols as well as
2147 minimal symbols.
2148
2149 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2150
2151 * ada-lang.c (advance_wild_match): Rewrite the function's
2152 description. Change the type of target0, t0 and t1 to char.
2153
2154 2020-10-09 Tom Tromey <tromey@adacore.com>
2155
2156 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2157
2158 2020-10-09 Tom Tromey <tromey@adacore.com>
2159
2160 * ada-lang.h (ada_encode): Return std::string.
2161 * ada-lang.c (ada_encode_1): Return std::string.
2162 (ada_encode): Likewise.
2163 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2164 Update.
2165 * ada-exp.y (block_lookup, write_var_or_type): Update.
2166
2167 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2168
2169 PR exp/26714
2170 * printcmd.c (print_formatted): Handle void results as
2171 unformatted prints.
2172
2173 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * arch/aarch32.c (aarch32_create_target_description): Release the
2176 target_desc_up as late as possible.
2177 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2178 * arch/amd64.c (amd64_create_target_description): Likewise.
2179 * arch/arc.c (arc_create_target_description): Return a
2180 target_desc_up, don't release it.
2181 * arch/arc.h (arc_create_target_description): Update declaration.
2182 (arc_lookup_target_description): Move target_desc_up into the
2183 cache, and return a borrowed pointer.
2184 * arch/arm.c (arm_create_target_description): Release the
2185 target_desc_up as late as possible.
2186 * arch/i386.c (i386_create_target_description): Likewise.
2187 * arch/riscv.h (riscv_create_target_description): Update
2188 declaration to match definition.
2189 * arch/tic6x.c (tic6x_create_target_description): Release the
2190 target_desc_up as late as possible.
2191
2192 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2195 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2196
2197 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2198
2199 * source.c (directory_command): Notify observers that "directories"
2200 parameter has changed.
2201
2202 2020-10-08 Tom Tromey <tom@tromey.com>
2203
2204 * cli/cli-cmds.c (print_disassembly): Style function name and
2205 addresses. Add _() wrappers.
2206
2207 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2208
2209 * NEWS: Mention ARC support in GDBserver.
2210
2211 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * arch/aarch32.c (aarch32_create_target_description): Release
2214 unique_ptr returned from allocate_target_description.
2215 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2216 * arch/amd64.c (amd64_create_target_description): Likewise.
2217 * arch/arc.c (arc_create_target_description): Likewise.
2218 * arch/arm.c (arm_create_target_description): Likewise.
2219 * arch/i386.c (i386_create_target_description): Likewise.
2220 * arch/riscv.c (riscv_create_target_description): Update return
2221 type. Handle allocate_target_description returning a unique_ptr.
2222 (riscv_lookup_target_description): Update to handle unique_ptr.
2223 * arch/tic6x.c (tic6x_create_target_description): Release
2224 unique_ptr returned from allocate_target_description.
2225 * features/microblaze-with-stack-protect.c: Regenerate.
2226 * features/microblaze.c: Regenerate.
2227 * features/mips-dsp-linux.c: Regenerate.
2228 * features/mips-linux.c: Regenerate.
2229 * features/mips64-dsp-linux.c: Regenerate.
2230 * features/mips64-linux.c: Regenerate.
2231 * features/nds32.c: Regenerate.
2232 * features/nios2.c: Regenerate.
2233 * features/or1k.c: Regenerate.
2234 * features/rs6000/powerpc-32.c: Regenerate.
2235 * features/rs6000/powerpc-32l.c: Regenerate.
2236 * features/rs6000/powerpc-403.c: Regenerate.
2237 * features/rs6000/powerpc-403gc.c: Regenerate.
2238 * features/rs6000/powerpc-405.c: Regenerate.
2239 * features/rs6000/powerpc-505.c: Regenerate.
2240 * features/rs6000/powerpc-601.c: Regenerate.
2241 * features/rs6000/powerpc-602.c: Regenerate.
2242 * features/rs6000/powerpc-603.c: Regenerate.
2243 * features/rs6000/powerpc-604.c: Regenerate.
2244 * features/rs6000/powerpc-64.c: Regenerate.
2245 * features/rs6000/powerpc-64l.c: Regenerate.
2246 * features/rs6000/powerpc-7400.c: Regenerate.
2247 * features/rs6000/powerpc-750.c: Regenerate.
2248 * features/rs6000/powerpc-860.c: Regenerate.
2249 * features/rs6000/powerpc-altivec32.c: Regenerate.
2250 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2251 * features/rs6000/powerpc-altivec64.c: Regenerate.
2252 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2253 * features/rs6000/powerpc-e500.c: Regenerate.
2254 * features/rs6000/powerpc-e500l.c: Regenerate.
2255 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2256 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2257 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2258 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2259 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2260 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2261 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2262 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2263 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2264 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2265 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2266 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2267 * features/rs6000/powerpc-vsx32.c: Regenerate.
2268 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2269 * features/rs6000/powerpc-vsx64.c: Regenerate.
2270 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2271 * features/rs6000/rs6000.c: Regenerate.
2272 * features/rx.c: Regenerate.
2273 * features/s390-gs-linux64.c: Regenerate.
2274 * features/s390-linux32.c: Regenerate.
2275 * features/s390-linux32v1.c: Regenerate.
2276 * features/s390-linux32v2.c: Regenerate.
2277 * features/s390-linux64.c: Regenerate.
2278 * features/s390-linux64v1.c: Regenerate.
2279 * features/s390-linux64v2.c: Regenerate.
2280 * features/s390-te-linux64.c: Regenerate.
2281 * features/s390-tevx-linux64.c: Regenerate.
2282 * features/s390-vx-linux64.c: Regenerate.
2283 * features/s390x-gs-linux64.c: Regenerate.
2284 * features/s390x-linux64.c: Regenerate.
2285 * features/s390x-linux64v1.c: Regenerate.
2286 * features/s390x-linux64v2.c: Regenerate.
2287 * features/s390x-te-linux64.c: Regenerate.
2288 * features/s390x-tevx-linux64.c: Regenerate.
2289 * features/s390x-vx-linux64.c: Regenerate.
2290 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2291 from allocate_target_description.
2292 * target-descriptions.c (allocate_target_description): Update
2293 return type.
2294 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2295 allocate_target_description.
2296
2297 2020-10-07 Tom Tromey <tromey@adacore.com>
2298
2299 * unittests/search-memory-selftests.c: New file.
2300 * Makefile.in (SELFTESTS_SRCS): Add
2301 unittests/search-memory-selftests.c.
2302
2303 2020-10-07 Tom Tromey <tromey@adacore.com>
2304
2305 PR gdb/16930:
2306 * findcmd.c (_initialize_mem_search): Mention that the range is
2307 inclusive.
2308
2309 2020-10-07 Tom Tromey <tromey@adacore.com>
2310
2311 * target.h (simple_search_memory): Don't declare.
2312 * target.c (simple_search_memory): Move to gdbsupport.
2313 (default_search_memory): Update.
2314 * remote.c (remote_target::search_memory): Update.
2315
2316 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * Makefile.in (COMPILE): Add CXXFLAGS.
2319 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2320 (check-headers): Add CXXFLAGS.
2321
2322 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2323
2324 * arc-linux-tdep.h: New file.
2325 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2326 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2327 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2328 arc_linux_gregset, arc_linux_v2_regset,
2329 arc_linux_iterate_over_regset_sections,
2330 arc_linux_core_read_description): Implement.
2331 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2332 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2333 (arc_gdbarch_features_create): Add.
2334 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2335
2336 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2337
2338 * arch/arc.h: Rename "arc_gdbarch_features" to
2339 "arc_arch_features".
2340 * arc-tdep.h: Likewise.
2341 * arc-tdep.c: Likewise.
2342
2343 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2344
2345 * infcmd.c (attach_command): Remove the redundant call to
2346 `clear_proceed_status`.
2347
2348 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2349
2350 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2351
2352 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2353
2354 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2355 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2356 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2357
2358 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2361 (_initialize_break_catch_sig): Don't allocate array.
2362
2363 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * symtab.c (find_pc_line): Return unmapped addresses when the
2366 requested address is also unmapped.
2367
2368 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2371 tui/tui-out.h.
2372
2373 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2376 type::is_vector instead of TYPE_VECTOR.
2377
2378 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * auto-load.c (auto_load_objfile_script_1): Don't use
2381 debugfile_holder as temporary variable when stripping drive
2382 letter.
2383
2384 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2385
2386 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2387 Add TYPE_CODE_COMPLEX.
2388 (amd64_windows_return_value): Fix types returned via XMM0.
2389
2390 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2391
2392 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2393 AArch64/ARM maintainers.
2394
2395 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * NEWS: Mention set/show debug event-loop.
2398
2399 2020-10-02 Tom Tromey <tromey@adacore.com>
2400
2401 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2402 REG_EXTENDED.
2403
2404 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2407 * procfs.c (procfs_inferior_created): Remove.
2408 (_initialize_procfs): Don't register procfs_inferior_created.
2409
2410 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * async-event.c (invoke_async_signal_handlers): Add debug
2413 print.
2414 (check_async_event_handlers): Likewise.
2415 * event-top.c (show_debug_event_loop): New function.
2416 (_initialize_event_top): Register "set debug event-loop"
2417 setting.
2418
2419 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2422 * debug.h: Remove.
2423 * infrun.c: Include gdbsupport/common-debug.h.
2424 * linux-nat.c: Likewise.
2425
2426 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2427
2428 * async-event.h (create_async_signal_handler): Add name
2429 parameter.
2430 (create_async_event_handler): Likewise.
2431 * async-event.c (struct async_signal_handler) <name>: New field.
2432 (struct async_event_handler) <name>: New field.
2433 (create_async_signal_handler): Assign name.
2434 (create_async_event_handler): Assign name.
2435 * event-top.c (async_init_signals): Pass name when creating
2436 handler.
2437 * infrun.c (_initialize_infrun): Likewise.
2438 * record-btrace.c (record_btrace_push_target): Likewise.
2439 * record-full.c (record_full_open): Likewise.
2440 * remote-notif.c (remote_notif_state_allocate): Likewise.
2441 * remote.c (remote_target::open_1): Likewise.
2442 * tui/tui-win.c (tui_initialize_win): Likewise.
2443
2444 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * async-event.c (initialize_async_signal_handlers): Pass name to
2447 add_file_handler
2448 * event-top.c (ui_register_input_event_handler): Likewise.
2449 * linux-nat.c (linux_nat_target::async): Likewise.
2450 * run-on-main-thread.c (_initialize_run_on_main_thread):
2451 Likewise
2452 * ser-base.c (reschedule): Likewise.
2453 (ser_base_async): Likewise.
2454 * tui/tui-io.c: Likewise.
2455 * top.h (struct ui) <num>: New field.
2456 * top.c (highest_ui_num): New variable.
2457 (ui::ui): Initialize num.
2458
2459 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * observable.h <inferior_created>: Remove parameters. Update all
2462 listeners.
2463 * inferior.h (post_create_inferior): Remove target parameter.
2464 Update all callers.
2465
2466 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2467
2468 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2469 and DW_MACRO_undef_strx.
2470 (dwarf_decode_macros): Likewise
2471 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2472 which is the value of DW_AT_str_offsets_base.
2473 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2474 str_offsets_base.
2475
2476 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2477
2478 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2479
2480 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2481
2482 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2483 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2484
2485 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2486
2487 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2488
2489 2020-09-30 Tom de Vries <tdevries@suse.de>
2490
2491 PR symtab/26683
2492 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2493
2494 2020-09-30 Tom Tromey <tromey@adacore.com>
2495
2496 * dwarf2/read.c (handle_variant): Use constant_value.
2497
2498 2020-09-29 Tom Tromey <tom@tromey.com>
2499
2500 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2501 (read_file_scope, dwarf2_get_pc_bounds)
2502 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2503 (read_structure_type, handle_struct_member_die)
2504 (read_enumeration_type, read_array_type, read_set_type)
2505 (read_tag_pointer_type, read_tag_reference_type)
2506 (read_subroutine_type, read_base_type, read_subrange_type)
2507 (read_full_die_1, partial_die_info::read)
2508 (partial_die_info::read, by, new_symbol)
2509 (dwarf2_const_value_data, dwarf2_const_value_attr)
2510 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2511 (prepare_one_comp_unit): Update.
2512 * dwarf2/attribute.h (DW_UNSND): Remove.
2513
2514 2020-09-29 Tom Tromey <tom@tromey.com>
2515
2516 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2517 (read_subroutine_type, partial_die_info::read)
2518 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2519 (dwarf2_add_member_fn): Update.
2520 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2521 * dwarf2/attribute.c (attribute::as_boolean): New method.
2522
2523 2020-09-29 Tom Tromey <tom@tromey.com>
2524
2525 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2526 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2527 method.
2528 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2529
2530 2020-09-29 Tom Tromey <tom@tromey.com>
2531
2532 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2533 the attribute's form.
2534
2535 2020-09-29 Tom Tromey <tom@tromey.com>
2536
2537 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2538 (dwarf2_add_member_fn): Update.
2539 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2540 * dwarf2/attribute.c (attribute::defaulted): New method, from
2541 is_valid_DW_AT_defaulted.
2542
2543 2020-09-29 Tom Tromey <tom@tromey.com>
2544
2545 * dwarf2/read.c (dw2_get_file_names_reader)
2546 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2547 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2548 (dwarf2_symbol_mark_computed): Use as_unsigned.
2549 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2550 method.
2551 <form_is_section_offset>: Update comment.
2552
2553 2020-09-29 Tom Tromey <tom@tromey.com>
2554
2555 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2556 dwarf2_default_access_attribute. Look up attribute.
2557 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2558 Update.
2559
2560 2020-09-29 Tom Tromey <tom@tromey.com>
2561
2562 * dwarf2/read.c (skip_one_die): Update.
2563 (read_full_die_1): Change how reprocessing is done.
2564 (partial_die_info::read): Update.
2565 (read_attribute_value): Remove need_reprocess parameter.
2566 (read_attribute): Likewise.
2567 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2568 New method.
2569
2570 2020-09-29 Tom Tromey <tom@tromey.com>
2571
2572 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2573 (dwarf2_const_value_attr, dump_die_shallow)
2574 (dwarf2_fetch_constant_bytes): Update.
2575 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2576 comment.
2577 <set_address>: New method.
2578 (DW_ADDR): Remove.
2579 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2580 (attribute::as_string, attribute::as_address): Add assert.
2581
2582 2020-09-29 Tom Tromey <tom@tromey.com>
2583
2584 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2585 (read_attribute_reprocess, read_attribute_value): Update.
2586 (read_attribute): Clear requires_reprocessing.
2587 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2588 form_requires_reprocessing>: New methods.
2589 <string_init>: Clear requires_reprocessing.
2590 <set_unsigned_reprocess>: New method.
2591 <name>: Shrink by one bit.
2592 <requires_reprocessing>: New member.
2593 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2594 method.
2595
2596 2020-09-29 Tom Tromey <tom@tromey.com>
2597
2598 * dwarf2/read.c (read_attribute_value): Update.
2599 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2600 set_unsigned>: New methods.
2601 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2602
2603 2020-09-29 Tom Tromey <tom@tromey.com>
2604
2605 * dwarf2/read.c (get_alignment, read_array_order)
2606 (read_attribute_value, dwarf2_const_value_attr)
2607 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2608 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2609 New methods.
2610 (DW_SND): Remove.
2611
2612 2020-09-29 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2615 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2616 Update.
2617 * dwarf2/attribute.h (struct attribute) <as_signature,
2618 set_signature>: New methods.
2619 (DW_SIGNATURE): Remove.
2620
2621 2020-09-29 Tom Tromey <tom@tromey.com>
2622
2623 * dwarf2/read.c (read_call_site_scope)
2624 (handle_data_member_location, dwarf2_add_member_fn)
2625 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2626 (partial_die_info::read, read_attribute_value)
2627 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2628 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2629 (dwarf2_symbol_mark_computed): Update.
2630 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2631 methods.
2632 (DW_BLOCK): Remove.
2633 * dwarf2/attribute.c (attribute::form_is_block): Add
2634 DW_FORM_data16.
2635
2636 2020-09-29 Tom Tromey <tom@tromey.com>
2637
2638 * dwarf2/read.c (read_cutu_die_from_dwo)
2639 (read_attribute_reprocess, read_attribute_value, read_attribute)
2640 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2641 (dwarf2_fetch_constant_bytes): Update.
2642 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2643 <set_string_noncanonical, set_string_canonical>: New methods.
2644 <string_is_canonical>: Update comment.
2645 <canonical_string_p>: Add assert.
2646 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2647 * dwarf2/attribute.c (attribute::form_is_string): New method.
2648 (attribute::string): Use it.
2649
2650 2020-09-29 Tom Tromey <tom@tromey.com>
2651
2652 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2653 (dump_die_shallow): Use canonical_string_p.
2654 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2655 method.
2656
2657 2020-09-29 Tom Tromey <tom@tromey.com>
2658
2659 * dwarf2/read.c (partial_die_info::read)
2660 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2661 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2662 attribute::as_string.
2663
2664 2020-09-29 Tom Tromey <tom@tromey.com>
2665
2666 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2667 DW_ADDR.
2668 (attribute::string): Don't use DW_STRING.
2669 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2670 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2671
2672 2020-09-29 Tom Tromey <tom@tromey.com>
2673
2674 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2675 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2676 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2677 * dwarf2/attribute.h (struct attribute): Rename methods.
2678 * dwarf2/attribute.c (attribute::as_address): Rename from
2679 value_as_address.
2680 (attribute::as_string): Rename from value_as_string.
2681
2682 2020-09-29 Tom Tromey <tom@tromey.com>
2683
2684 * dwarf2/read.c (partial_die_info::read) <case
2685 DW_AT_linkage_name>: Use value_as_string.
2686 (dwarf2_string_attr): Use value_as_string.
2687 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2688 method.
2689 * dwarf2/attribute.c (attribute::value_as_string): New method.
2690
2691 2020-09-29 Pedro Alves <pedro@palves.net>
2692
2693 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2694 defined before using '#pragma GCC diagnostic' instead of checking
2695 __clang__.
2696
2697 2020-09-28 Tom Tromey <tom@tromey.com>
2698
2699 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2700 (handle_signal_stop): Update.
2701 * procfs.c (procfs_target::insert_watchpoint): Update.
2702 * target.h (target_have_steppable_watchpoint): Now a function.
2703
2704 2020-09-28 Tom Tromey <tom@tromey.com>
2705
2706 * infrun.c (set_schedlock_func): Update.
2707 * target.h (target_can_lock_scheduler): Now a function.
2708
2709 2020-09-28 Tom Tromey <tom@tromey.com>
2710
2711 * inferior.h (class inferior) <has_execution>: Update.
2712 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2713 * valops.c (find_function_in_inferior)
2714 (value_allocate_space_in_inferior): Update.
2715 * top.c (kill_or_detach): Update.
2716 * target.c (target_preopen, set_target_permissions): Update.
2717 (target_has_execution_current): Remove.
2718 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2719 Update.
2720 * solib.c (update_solib_list, reload_shared_libraries): Update.
2721 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2722 * solib-dsbt.c (enable_break): Update.
2723 * score-tdep.c (score7_fetch_inst): Update.
2724 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2725 Update.
2726 * remote.c (remote_target::start_remote)
2727 (remote_target::remote_check_symbols, remote_target::open_1)
2728 (remote_target::remote_detach_1, remote_target::verify_memory)
2729 (remote_target::xfer_partial, remote_target::read_description)
2730 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2731 * record-full.c (record_full_open_1): Update.
2732 * record-btrace.c (record_btrace_target_open): Update.
2733 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2734 (value_nsstring): Update.
2735 * linux-thread-db.c (add_thread_db_info)
2736 (thread_db_find_new_threads_silently, check_thread_db_callback)
2737 (try_thread_db_load_1, record_thread): Update.
2738 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2739 Update.
2740 * linux-fork.c (checkpoint_command): Update.
2741 * infrun.c (set_non_stop, set_observer_mode)
2742 (check_multi_target_resumption, for_each_just_stopped_thread)
2743 (maybe_remove_breakpoints, normal_stop)
2744 (class infcall_suspend_state): Update.
2745 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2746 (info_program_command, attach_command): Update.
2747 * infcall.c (call_function_by_hand_dummy): Update.
2748 * inf-loop.c (inferior_event_handler): Update.
2749 * gcore.c (gcore_command, derive_heap_segment): Update.
2750 * exec.c (exec_file_command): Update.
2751 * eval.c (evaluate_subexp): Update.
2752 * compile/compile.c (compile_to_object): Update.
2753 * cli/cli-dump.c (restore_command): Update.
2754 * breakpoint.c (update_watchpoint)
2755 (update_inserted_breakpoint_locations)
2756 (insert_breakpoint_locations, get_bpstat_thread): Update.
2757 * target.h (target_has_execution): Remove macro.
2758 (target_has_execution_current): Don't declare.
2759 (target_has_execution): Rename from target_has_execution_1. Add
2760 argument default.
2761
2762 2020-09-28 Tom Tromey <tom@tromey.com>
2763
2764 * mi/mi-main.c (exec_reverse_continue)
2765 (mi_cmd_list_target_features): Update.
2766 * infrun.c (set_exec_direction_func): Update.
2767 * target.c (default_execution_direction): Update.
2768 * reverse.c (exec_reverse_once): Update.
2769 * target.h (target_can_execute_reverse): Now a function.
2770
2771 2020-09-28 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-regs.c (tui_get_register)
2774 (tui_data_window::show_registers): Update.
2775 * thread.c (scoped_restore_current_thread::restore)
2776 (scoped_restore_current_thread::scoped_restore_current_thread):
2777 Update.
2778 * regcache-dump.c (regcache_print): Update.
2779 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2780 Update.
2781 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2782 * mep-tdep.c (current_me_module, current_options): Update.
2783 * linux-thread-db.c (thread_db_load): Update.
2784 * infcmd.c (registers_info, info_vector_command)
2785 (info_float_command): Update.
2786 * ia64-tdep.c (ia64_frame_prev_register)
2787 (ia64_sigtramp_frame_prev_register): Update.
2788 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2789 * gcore.c (derive_stack_segment): Update.
2790 * frame.c (get_current_frame, has_stack_frames): Update.
2791 * findvar.c (language_defn::read_var_value): Update.
2792 * arm-tdep.c (arm_pc_is_thumb): Update.
2793 * target.c (target_has_registers): Rename from
2794 target_has_registers_1.
2795 * target.h (target_has_registers): Remove macro.
2796 (target_has_registers): Rename from target_has_registers_1.
2797
2798 2020-09-28 Tom Tromey <tom@tromey.com>
2799
2800 * windows-tdep.c (tlb_make_value): Update.
2801 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2802 * thread.c (scoped_restore_current_thread::restore)
2803 (scoped_restore_current_thread::scoped_restore_current_thread)
2804 (thread_command): Update.
2805 * stack.c (backtrace_command_1, frame_apply_level_command)
2806 (frame_apply_all_command, frame_apply_command): Update.
2807 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2808 Update.
2809 * gcore.c (derive_stack_segment): Update.
2810 * frame.c (get_current_frame, has_stack_frames): Update.
2811 * auxv.c (info_auxv_command): Update.
2812 * ada-tasks.c (ada_build_task_list): Update.
2813 * target.c (target_has_stack): Rename from target_has_stack_1.
2814 * target.h (target_has_stack): Remove macro.
2815 (target_has_stack): Rename from target_has_stack_1.
2816
2817 2020-09-28 Tom Tromey <tom@tromey.com>
2818
2819 * target.c (target_has_memory): Rename from target_has_memory_1.
2820 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2821 * thread.c (scoped_restore_current_thread::restore)
2822 (scoped_restore_current_thread::scoped_restore_current_thread):
2823 Update.
2824 * frame.c (get_current_frame, has_stack_frames): Update.
2825 * target.h (target_has_memory): Remove macro.
2826 (target_has_memory): Rename from target_has_memory_1.
2827
2828 2020-09-28 Tom Tromey <tom@tromey.com>
2829
2830 * target.c (target_has_all_memory_1): Remove.
2831 * target.h (target_has_all_memory): Remove define.
2832 (target_has_all_memory_1): Don't declare.
2833
2834 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * ser-base.c: Adjust comments formatting.
2837
2838 2020-09-27 Tom Tromey <tom@tromey.com>
2839
2840 PR tui/25342:
2841 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2842
2843 2020-09-27 Tom Tromey <tom@tromey.com>
2844
2845 PR tui/25342:
2846 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2847
2848 2020-09-27 Tom Tromey <tom@tromey.com>
2849
2850 * unittests/tui-selftests.c: Update.
2851 * tui/tui-winsource.h (struct tui_source_window_base)
2852 <extra_margin, show_line_number, refresh_pad>: New methods.
2853 <m_max_length, m_pad>: New members.
2854 (tui_copy_source_line): Update.
2855 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2856 first_col, line_width, ndigits parameters. Add length.
2857 (tui_source_window_base::show_source_line): Write to pad. Line
2858 number now 0-based.
2859 (tui_source_window_base::refresh_pad): New method.
2860 (tui_source_window_base::show_source_content): Write to pad. Call
2861 refresh_pad.
2862 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2863 not refill.
2864 (tui_source_window_base::update_exec_info): Call
2865 show_line_number.
2866 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2867 method.
2868 <m_digits>: New member.
2869 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2870 and m_max_length.
2871 (tui_source_window::show_line_number): New method.
2872 * tui/tui-io.h (tui_puts): Fix comment.
2873 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2874 m_max_length.
2875
2876 2020-09-27 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-winsource.c
2879 (tui_source_window_base::set_is_exec_point_at): Don't call
2880 show_source_line.
2881
2882 2020-09-27 Tom Tromey <tom@tromey.com>
2883
2884 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2885 method.
2886 <erase>: Update.
2887 <cursor_x, cursor_y>: Remove.
2888 <m_inner_window>: New member.
2889 (tui_py_window::rerender): Create inner window.
2890 (tui_py_window::output): Write to inner window.
2891
2892 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2893
2894 PR python/26586
2895 * cli/cli-script.c (execute_control_commands): don't set
2896 instream to nullptr here as this breaks the from_tty argument
2897 to gdb.execute in Python.
2898 (execute_user_command): set instream to nullptr here instead.
2899
2900 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * infrun.h (infrun_debug_printf): Fix formatting.
2903 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2904
2905 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2906
2907 * compile/compile-object-load.h (struct munmap_list): Add
2908 explicitly-defined move constructor.
2909
2910 2020-09-24 Tom Tromey <tromey@adacore.com>
2911
2912 PR tui/26638:
2913 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2914 method.
2915 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2916 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2917 (tui_prev_win): Rewrite.
2918
2919 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2920
2921 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2922 in WOW64 processes as SIGINT.
2923 * nat/windows-nat.h: Make wow64_process a shared variable.
2924 * windows-nat.c: Remove static wow64_process variable.
2925
2926 2020-09-23 Tom Tromey <tom@tromey.com>
2927
2928 PR symtab/25470:
2929 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2930 offset and bit size.
2931 * printcmd.c (print_scalar_formatted): Handle zero-length
2932 integer.
2933 (print_scalar_formatted): Use bit_size_differs_p.
2934 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2935 constant.
2936 (union type_specific): <int_stuff>: New member.
2937 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2938 methods.
2939 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2940 TYPE_SPECIFIC_FIELD.
2941 (recursive_dump_type, copy_type_recursive): Update.
2942 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2943 DW_AT_data_bit_offset.
2944
2945 2020-09-23 Tom Tromey <tom@tromey.com>
2946
2947 * utils.h (class gdb_argv): Add move operators.
2948 <append>: New methods.
2949 * compile/compile.c (build_argc_argv): Remove.
2950 (compile_args_argc): Remove.
2951 (compile_args_argv): Change type.
2952 (set_compile_args): Simplify.
2953 (append_args): Remove.
2954 (filter_args): Remove argcp parameter.
2955 (get_args): Return gdb_argv. Simplify.
2956 (compile_to_object): Update.
2957
2958 2020-09-23 Tom Tromey <tom@tromey.com>
2959
2960 * compile/compile-object-run.c (do_module_cleanup)
2961 <~do_module_cleanup> :Remove.
2962 (do_module_cleanup): Update.
2963 * compile/compile-object-load.h (struct munmap_list): Add move
2964 assignment operator.
2965 <source_file>: Now a std::string.
2966 <munmap_list>: Rename. No longer a pointer.
2967 * compile/compile-object-load.c (struct setup_sections_data): Add
2968 constructor.
2969 <setup_one_section>: Declare.
2970 <munmap_list>: Move earlier.
2971 <m_bfd>: New member.
2972 <m_last_size, m_last_section_first, m_last_prot,
2973 m_last_max_alignment>: Rename, add initializers where needed.
2974 (setup_sections_data::setup_one_section): Rename from
2975 setup_sections. Update.
2976 (compile_object_load): Update. Don't use bfd_map_over_sections.
2977
2978 2020-09-23 Tom Tromey <tom@tromey.com>
2979
2980 * compile/compile-object-run.c (struct do_module_cleanup): Add
2981 parameters to constructor. Update destructor.
2982 <source_file, scope, scope_data, out_value_type, out_value_addr,
2983 munmap_list_head, objfile_name_string>: Remove.
2984 <module>: New member.
2985 (do_module_cleanup): Update.
2986 (compile_object_run): Update.
2987
2988 2020-09-23 Tom Tromey <tom@tromey.com>
2989
2990 * compile/compile.c (eval_compile_command): Update.
2991 * compile/compile-object-run.h (compile_object_run): Take a
2992 compile_module_up.
2993 * compile/compile-object-run.c (compile_object_run): Take a
2994 compile_module_up.
2995 * compile/compile-object-load.h (struct compile_module): Add
2996 constructor, destructor.
2997 (compile_module_up): New typedef.
2998 (compile_object_load): Return compile_object_up.
2999 * compile/compile-object-load.c (compile_object_load): Return
3000 compile_module_up.
3001
3002 2020-09-23 Tom Tromey <tom@tromey.com>
3003
3004 * compile/compile-object-run.c (struct do_module_cleanup): Add
3005 constructor, destructor.
3006 <objfile_name_string>: Don't use struct hack.
3007 (do_module_cleanup): Use delete.
3008 (compile_object_run): Use new.
3009
3010 2020-09-23 Tom Tromey <tom@tromey.com>
3011
3012 * compile/compile-cplus-types.c
3013 (compile_cplus_convert_struct_or_union): Use std::vector.
3014 (compile_cplus_convert_func): Likewise.
3015 * compile/compile-c-types.c (convert_func): Use std::vector.
3016
3017 2020-09-21 Tom Tromey <tromey@adacore.com>
3018
3019 * sparc-tdep.c (sparc32_skip_prologue): Use
3020 skip_prologue_using_sal.
3021
3022 2020-09-19 Tom Tromey <tom@tromey.com>
3023
3024 * symfile.c (add_section_size_callback): Remove.
3025 (load_one_section): Rename from load_section_callback. Change
3026 parameters.
3027 (generic_load): Use foreach.
3028
3029 2020-09-19 Tom Tromey <tom@tromey.com>
3030
3031 * exec.c (add_to_section_table): Remove.
3032 (build_section_table): Use foreach.
3033
3034 2020-09-19 Tom Tromey <tom@tromey.com>
3035
3036 * elfread.c (elf_locate_sections): Change parameters.
3037 (elf_symfile_read): Use foreach.
3038
3039 2020-09-19 Tom Tromey <tom@tromey.com>
3040
3041 * cli/cli-dump.c (struct callback_data): Remove.
3042 (restore_one_section): Rename from restore_section_callback.
3043 Change parameters.
3044 (restore_binary_file): Change parameters.
3045 (restore_command): Use foreach.
3046
3047 2020-09-19 Tom Tromey <tom@tromey.com>
3048
3049 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3050 (gcore_copy_callback): Likewise.
3051 (gcore_memory_sections): Use foreach.
3052
3053 2020-09-19 Tom Tromey <tom@tromey.com>
3054
3055 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3056 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3057 parameters.
3058 (generic_elf_osabi_sniffer): Use foreach.
3059 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3060 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3061
3062 2020-09-19 Tom Tromey <tom@tromey.com>
3063
3064 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3065 (dwarf2_get_dwz_file): Use foreach.
3066 (dwarf2_locate_dwo_sections): Change parameters.
3067 (open_and_init_dwo_file): Use foreach.
3068 (dwarf2_locate_common_dwp_sections): Change parameters.
3069 (open_and_init_dwp_file): Use foreach.
3070
3071 2020-09-19 Tom Tromey <tom@tromey.com>
3072
3073 * symfile.h: (find_lowest_section): Don't declare.
3074 * symfile.c (find_lowest_section): Now static. Change
3075 parameters.
3076 (struct place_section_arg): Remove.
3077 (place_section): Change parameters.
3078 (addr_info_make_relative): Use foreach.
3079 (symfile_dummy_outputs): Remove.
3080 (default_symfile_relocate): Use foreach.
3081
3082 2020-09-19 Tom Tromey <tom@tromey.com>
3083
3084 * objfiles.c (add_to_objfile_sections): Rename from
3085 add_to_objfile_sections_full.
3086 (add_to_objfile_sections): Remove.
3087 (build_objfile_section_table): Use foreach.
3088
3089 2020-09-19 Tom Tromey <tom@tromey.com>
3090
3091 * stap-probe.c (get_stap_base_address_1): Remove.
3092 (get_stap_base_address): Use foreach.
3093
3094 2020-09-19 Tom Tromey <tom@tromey.com>
3095
3096 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3097 parameters.
3098 (gdb_bfd_close_or_warn): Use foreach.
3099
3100 2020-09-19 Tom Tromey <tom@tromey.com>
3101
3102 * corelow.c (add_to_thread_list): Change parameters.
3103 (core_target_open): Use foreach.
3104
3105 2020-09-19 Tom Tromey <tom@tromey.com>
3106
3107 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3108 existing function.
3109
3110 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3113 for arrays.
3114
3115 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * eval.c: Remove 'f-lang.h' include.
3118 (value_f90_subarray): Moved to f-lang.c.
3119 (eval_call): Renamed to...
3120 (evaluate_subexp_do_call): ...this, is no longer static, header
3121 comment moved into header file.
3122 (evaluate_funcall): Update call to eval_call.
3123 (skip_undetermined_arglist): Moved to f-lang.c.
3124 (fortran_value_subarray): Likewise.
3125 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3126 moved to evaluate_subexp_f.
3127 (calc_f77_array_dims): Moved to f-lang.c
3128 * expprint.c (print_subexp_funcall): New function.
3129 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3130 moved to print_subexp_f, OP_FUNCALL uses new function.
3131 (dump_subexp_body_funcall): New function.
3132 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3133 moved to dump_subexp_f, OP_FUNCALL uses new function.
3134 * expression.h (evaluate_subexp_do_call): Declare.
3135 * f-lang.c (value_f90_subarray): Moved from eval.c.
3136 (skip_undetermined_arglist): Likewise.
3137 (calc_f77_array_dims): Likewise.
3138 (fortran_value_subarray): Likewise.
3139 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3140 (operator_length_f): Likewise.
3141 (print_subexp_f): Likewise.
3142 (dump_subexp_body_f): Likewise.
3143 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3144 declaration of this operation to here.
3145 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3146 support moved to operator_length_f.
3147 * parser-defs.h (dump_subexp_body_funcall): Declare.
3148 (print_subexp_funcall): Declare.
3149 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3150 fortran-operator.def.
3151
3152 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * eval.c (fortran_value_subarray): New function, content is taken
3155 from...
3156 (evaluate_subexp_standard): ...here, in two places. Now arrays
3157 and strings both call the new function.
3158 (calc_f77_array_dims): Add header comment, handle strings.
3159
3160 2020-09-18 Victor Collod <vcollod@nvidia.com>
3161
3162 PR gdb/26635
3163 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3164 (i386_analyze_prologue): Call i386_skip_endbr.
3165
3166 2020-09-18 Tom Tromey <tromey@adacore.com>
3167
3168 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3169 (windows_nat_target::wait): Update.
3170 * target/wait.h (enum target_wait_flag): New. Use
3171 DEF_ENUM_FLAGS_TYPE.
3172 * target/target.h (target_wait): Change type of options.
3173 * target.h (target_options_to_string, default_target_wait):
3174 Update.
3175 (struct target_ops) <wait>: Change type of options.
3176 * target.c (target_wait, default_target_wait, do_option): Change
3177 type of "options".
3178 (target_options_to_string): Likewise.
3179 * target-delegates.c: Rebuild.
3180 * target-debug.h (target_debug_print_target_wait_flags): Rename
3181 from target_debug_print_options.
3182 * sol-thread.c (class sol_thread_target) <wait>: Update.
3183 (sol_thread_target::wait): Update.
3184 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3185 (rs6000_nat_target::wait): Update.
3186 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3187 Update.
3188 (remote_target::wait_ns, remote_target::wait_as): Change type of
3189 "options".
3190 (remote_target::wait): Update.
3191 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3192 (gdbsim_target::wait): Update.
3193 * record-full.c (class record_full_base_target) <wait>: Update.
3194 (record_full_wait_1): Change type of "options".
3195 (record_full_base_target::wait): Update.
3196 * record-btrace.c (class record_btrace_target) <wait>: Update.
3197 (record_btrace_target::wait): Update.
3198 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3199 Update.
3200 (ravenscar_thread_target::wait): Update.
3201 * procfs.c (class procfs_target) <wait>: Update.
3202 (procfs_target::wait): Update.
3203 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3204 * obsd-nat.c (obsd_nat_target::wait): Update.
3205 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3206 (nto_procfs_target::wait): Update.
3207 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3208 * nbsd-nat.c (nbsd_wait): Change type of "options".
3209 (nbsd_nat_target::wait): Update.
3210 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3211 (thread_db_target::wait): Update.
3212 * linux-nat.h (class linux_nat_target) <wait>: Update.
3213 * linux-nat.c (linux_nat_target::wait): Update.
3214 (linux_nat_wait_1): Update.
3215 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3216 "options".
3217 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3218 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3219 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3220 (go32_nat_target::wait): Update.
3221 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3222 * gnu-nat.c (gnu_nat_target::wait): Update.
3223 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3224 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3225 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3226 * darwin-nat.c (darwin_nat_target::wait): Update.
3227 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3228 (bsd_uthread_target::wait): Update.
3229 * aix-thread.c (class aix_thread_target) <wait>: Update.
3230 (aix_thread_target::wait): Update.
3231
3232 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * compile/compile-object-run.c (create_copied_type_recursive): New
3235 function.
3236 (compile_object_run): Use new function.
3237
3238 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3239
3240 * NEWS: Mention x86_64 Cygwin core file support.
3241
3242 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3243
3244 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3245 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3246
3247 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3248
3249 * windows-tdep.h: Add prototypes.
3250 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3251 (i386_windows_core_pid_to_str): Move and rename ...
3252 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3253 (windows_core_pid_to_str): ... and here.
3254 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3255
3256 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3257 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3258 (amd64_windows_init_abi_common): ... and register.
3259
3260 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3261
3262 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3263 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3264
3265 2020-09-18 Pedro Alves <pedro@palves.net>
3266
3267 PR gdb/26631
3268 * thread.c (thread_find_command): Switch inferior before calling
3269 target methods.
3270
3271 2020-09-17 Tom Tromey <tromey@adacore.com>
3272
3273 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3274 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3275 (tdesc_arch_data_up): New typedef.
3276 (tdesc_use_registers, tdesc_data_alloc): Update.
3277 (tdesc_data_cleanup): Don't declare.
3278 * target-descriptions.c (tdesc_data_alloc): Return a
3279 tdesc_arch_data_up.
3280 (tdesc_arch_data_deleter::operator()): Rename from
3281 tdesc_data_cleanup. Change argument type.
3282 (tdesc_use_registers): Change early_data to an rvalue reference.
3283 (tdesc_use_registers): Don't use delete.
3284 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3285 * s390-tdep.c (s390_gdbarch_init): Update.
3286 * rx-tdep.c (rx_gdbarch_init): Update.
3287 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3288 * riscv-tdep.c (riscv_gdbarch_init): Update.
3289 * or1k-tdep.c (or1k_gdbarch_init): Update.
3290 * nios2-tdep.c (nios2_gdbarch_init): Update.
3291 * nds32-tdep.c (nds32_gdbarch_init): Update.
3292 * mips-tdep.c (mips_gdbarch_init): Update.
3293 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3294 * m68k-tdep.c (m68k_gdbarch_init): Update.
3295 * i386-tdep.c (i386_gdbarch_init): Update.
3296 * arm-tdep.c (arm_gdbarch_init): Update.
3297 * arc-tdep.c (arc_tdesc_init): Update.
3298 (arc_gdbarch_init): Update.
3299 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3300
3301 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3302
3303 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3304 for WOW64 processes.
3305
3306 2020-09-17 Tom Tromey <tom@tromey.com>
3307
3308 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3309
3310 2020-09-17 Tom Tromey <tom@tromey.com>
3311
3312 * value.c (preserve_values): Update.
3313 * python/py-type.c (save_objfile_types): Update.
3314 * guile/scm-type.c (save_objfile_types): Update.
3315 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3316 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3317 * compile/compile-object-run.c (compile_object_run): Update.
3318
3319 2020-09-17 Tom Tromey <tom@tromey.com>
3320
3321 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3322 Remove.
3323 <m_table>: Now htab_up.
3324 * typeprint.c (typedef_hash_table::recursively_update)
3325 (typedef_hash_table::add_template_parameters)
3326 (typedef_hash_table::typedef_hash_table): Update.
3327 (typedef_hash_table::~typedef_hash_table): Remove.
3328 (typedef_hash_table::typedef_hash_table)
3329 (typedef_hash_table::find_global_typedef)
3330 (typedef_hash_table::find_typedef): Update.
3331
3332 2020-09-17 Tom Tromey <tom@tromey.com>
3333
3334 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3335
3336 2020-09-17 Tom Tromey <tom@tromey.com>
3337
3338 * linespec.c (class decode_compound_collector)
3339 <~decode_compound_collector>: Remove.
3340 <m_unique_syms>: Now htab_up.
3341 (decode_compound_collector::operator ()): Update.
3342 (class symtab_collector) <~symtab_collector>: Remove.
3343 <m_symtab_table>: Now htab_up.
3344 (symtab_collector::operator ()): Update.
3345
3346 2020-09-17 Tom Tromey <tom@tromey.com>
3347
3348 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3349 (filename_seen_cache::clear): Update.
3350 (~filename_seen_cache): Remove.
3351 (filename_seen_cache::seen): Update.
3352 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3353 htab_up.
3354 <~filename_seen_cache>: Remove.
3355 <traverse>: Update.
3356
3357 2020-09-17 Tom Tromey <tom@tromey.com>
3358
3359 * completer.c (completion_tracker::discard_completions)
3360 (completion_tracker::~completion_tracker)
3361 (completion_tracker::maybe_add_completion)
3362 (completion_tracker::remove_completion)
3363 (completion_tracker::recompute_lowest_common_denominator)
3364 (completion_tracker::build_completion_result): Update.
3365 * completer.h (class completion_tracker) <have_completions>:
3366 Update.
3367 <m_entries_hash>: Now htab_up.
3368
3369 2020-09-17 Tom Tromey <tom@tromey.com>
3370
3371 * breakpoint.c (ambiguous_names_p): Use htab_up.
3372
3373 2020-09-17 Tom Tromey <tom@tromey.com>
3374
3375 * auto-load.c (struct auto_load_pspace_info)
3376 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3377 <loaded_script_files, loaded_script_texts>: Change type to
3378 htab_up.
3379 (~auto_load_pspace_info) Remove.
3380 (init_loaded_scripts_info, maybe_add_script_file)
3381 (maybe_add_script_text, auto_load_info_scripts): Update.
3382
3383 2020-09-17 Tom Tromey <tromey@adacore.com>
3384
3385 * c-exp.y (name_obstack): Now static.
3386
3387 2020-09-17 Chungyi Chi <demonic@csie.io>
3388
3389 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3390
3391 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3394 (add_solib_catchpoint): Likewise.
3395 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3396 to bool.
3397 (add_solib_catchpoint): Change int parameter/variable to bool.
3398 (catch_load_or_unload): Likewise.
3399 (init_catchpoint): Likewise.
3400 (create_fork_vfork_event_catchpoint): Likewise.
3401 (catch_fork_command_1): Likewise.
3402 (catch_exec_command_1): Likewise.
3403
3404 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3407 Change instance_flags to m_instance_flags.
3408
3409 2020-09-16 Tom Tromey <tromey@adacore.com>
3410
3411 PR gdb/26598:
3412 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3413
3414 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3415
3416 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3417 PL_FLAG_EXEC.
3418 (fbsd_nat_target::insert_exec_catchpoint)
3419 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3420 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3421 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3422
3423 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3424
3425 * configure.ac: Remove check for kinfo_getvmmap().
3426 * configure, config.in: Regenerate.
3427 * fbsd-nat.c (fbsd_read_mapping): Remove
3428 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3429 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3430 kinfo_get_vmmap() are always present.
3431
3432 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3433
3434 * fbsd-nat.c: Always include support for
3435 TARGET_OBJECT_SIGNAL_INFO.
3436
3437 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3438
3439 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3440 sysctl and remove procfs fallback.
3441
3442 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3443
3444 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3445 * fbsd-nat.h: Likewise.
3446
3447 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3448
3449 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3450 argument.
3451
3452 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * ada-lang.c (ada_language_data): Delete.
3455 (ada_language): Remove references to ada_language_data.
3456 * c-lang.c (c_language_data): Delete.
3457 (c_language): Remove references to c_language_data.
3458 (cplus_language_data): Delete.
3459 (cplus_language): Remove references to cplus_language_data.
3460 (asm_language_data): Delete.
3461 (asm_language): Remove references to asm_language_data.
3462 (minimal_language_data): Delete.
3463 (minimal_language): Remove references to minimal_language_data.
3464 * d-lang.c (d_language_data): Delete.
3465 (d_language): Remove references to d_language_data.
3466 * f-lang.c (f_language_data): Delete.
3467 (f_language): Remove references to f_language_data.
3468 * go-lang.c (go_language_data): Delete.
3469 (go_language): Remove references to go_language_data.
3470 * language.c (unknown_language_data): Delete.
3471 (unknown_language): Remove references to unknown_language_data.
3472 (auto_language_data): Delete.
3473 (auto_language): Remove references to auto_language_data.
3474 * language.h (language_data): Delete struct.
3475 (language_defn): No longer inherit from language_data.
3476 * m2-lang.c (m2_language_data): Delete.
3477 (m2_language): Remove references to m2_language_data.
3478 * objc-lang.c (objc_language_data): Delete.
3479 (objc_language): Remove references to objc_language_data.
3480 * opencl-lang.c (opencl_language_data): Delete.
3481 (opencl_language): Remove references to opencl_language_data.
3482 * p-lang.c (pascal_language_data): Delete.
3483 (pascal_language): Remove references to pascal_language_data.
3484 * rust-lang.c (rust_language_data): Delete.
3485 (rust_language): Remove references to rust_language_data.
3486
3487 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3490 initializer.
3491 (ada_language::opcode_print_table): New member function.
3492 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3493 (c_language::opcode_print_table): New member function.
3494 (cplus_language_data): Remove la_op_print_tab initializer.
3495 (cplus_language::opcode_print_table): New member function.
3496 (asm_language_data): Remove la_op_print_tab initializer.
3497 (asm_language::opcode_print_table): New member function.
3498 (minimal_language_data): Remove la_op_print_tab initializer.
3499 (minimal_language::opcode_print_table): New member function.
3500 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3501 (d_language::opcode_print_table): New member function.
3502 * expprint.c (print_subexp_standard): Update call to
3503 opcode_print_table.
3504 (op_string): Likewise.
3505 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3506 (f_language::opcode_print_table): New member function.
3507 * go-lang.c (go_language_data): Remove la_op_print_tab
3508 initializer.
3509 (go_language::opcode_print_table): New member function.
3510 * language.c (unknown_language_data): Remove la_op_print_tab
3511 initializer.
3512 (unknown_language::opcode_print_table): New member function.
3513 (auto_language_data): Remove la_op_print_tab initializer.
3514 (auto_language::opcode_print_table): New member function.
3515 * language.h (language_data): Remove la_op_print_tab field.
3516 (language_defn::opcode_print_table): Declare new member function.
3517 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3518 initializer.
3519 (m2_language::opcode_print_table): New member function.
3520 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3521 initializer.
3522 (objc_language::opcode_print_table): New member function.
3523 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3524 initializer.
3525 (opencl_language::opcode_print_table): New member function.
3526 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3527 initializer.
3528 (pascal_language::opcode_print_table): New member function.
3529 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3530 initializer.
3531 (rust_language::opcode_print_table): New member function.
3532
3533 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3534
3535 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3536 (ada_language::expression_ops): New member function.
3537 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3538 (c_language::expression_ops): New member function.
3539 (cplus_language_data): Remove la_exp_desc initializer.
3540 (cplus_language::expression_ops): New member function.
3541 (asm_language_data): Remove la_exp_desc initializer.
3542 (asm_language::expression_ops): New member function.
3543 (minimal_language_data): Remove la_exp_desc initializer.
3544 (minimal_language::expression_ops): New member function.
3545 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3546 (d_language::expression_ops): New member function.
3547 * eval.c (evaluate_subexp): Update call to expression_ops.
3548 * expprint.c (print_subexp): Likewise.
3549 (op_name): Likewise.
3550 (dump_subexp_body): Likewise.
3551 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3552 (f_language::expression_ops): New member function.
3553 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3554 (go_language::expression_ops): New member function.
3555 * language.c (language_defn::expression_ops): New function.
3556 (unknown_language_data): Remove la_exp_desc initializer.
3557 (auto_language_data): Likewise.
3558 * language.h (language_data): Remove la_exp_desc field.
3559 (language_defn::expression_ops): Declare new member function.
3560 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3561 (m2_language::expression_ops): New member function.
3562 * objc-lang.c (objc_language_data): Remove la_exp_desc
3563 initializer.
3564 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3565 initializer.
3566 (opencl_language::expression_ops): New member function.
3567 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3568 * parse.c (operator_length): Update call to expression_ops.
3569 (exp_iterate): Likewise.
3570 * rust-lang.c (rust_language_data): Remove la_exp_desc
3571 initializer.
3572 (ruse_language::expression_ops): New member function.
3573
3574 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3575
3576 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3577 initializer.
3578 (ada_language::varobj_ops): New member function.
3579 * c-lang.c (c_language_data): Remove la_varobj_ops
3580 initializer.
3581 (cplus_language_data): Likewise.
3582 (cplus_language::varobj_ops): New member function.
3583 (asm_language_data): Remove la_varobj_ops initializer.
3584 (minimal_language_data): Likewise.
3585 * d-lang.c (d_language_data): Likewise.
3586 * f-lang.c (f_language_data): Likewise.
3587 * go-lang.c (go_language_data): Likewise.
3588 * language.c (language_defn::varobj_ops): New function.
3589 (unknown_language_data): Remove la_varobj_ops
3590 initializer.
3591 (auto_language_data): Likewise.
3592 * language.h (language_data): Remove la_varobj_ops field.
3593 (language_defn::varobj_ops): Declare new member function.
3594 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3595 * objc-lang.c (objc_language_data): Likewise.
3596 * opencl-lang.c (opencl_language_data): Likewise.
3597 * p-lang.c (pascal_language_data): Likewise.
3598 * rust-lang.c (rust_language_data): Likewise.
3599 * varobj.c (varobj_create): Update call to varobj_ops.
3600 * varobj.h (default_varobj_ops): Delete define.
3601
3602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3605 initializer.
3606 * c-lang.c (c_language_data): Likewise.
3607 (c_language::macro_expansion): New member function.
3608 (cplus_language_data): Likewise.
3609 (cplus_language::macro_expansion): New member function.
3610 (asm_language_data): Likewise.
3611 (asm_language::macro_expansion): New member function.
3612 (minimal_language_data): Likewise.
3613 (minimal_language::macro_expansion): New member function.
3614 * d-lang.c (d_language_data): Remove la_macro_expansion
3615 initializer.
3616 * f-lang.c (f_language_data): Likewise.
3617 * go-lang.c (go_language_data): Likewise.
3618 * language.c (unknown_language_data): Likewise.
3619 (auto_language_data): Likewise.
3620 * language.h (language_data): Remove la_macro_expansion field.
3621 (language_defn::macro_expansion): New member function.
3622 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3623 initializer.
3624 * objc-lang.c (objc_language_data): Likewise.
3625 (objc_language::macro_expansion): New member function.
3626 * opencl-lang.c (opencl_language_data): Likewise.
3627 (opencl_language::macro_expansion): New member function.
3628 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3629 initializer.
3630 * rust-lang.c (rust_language_data): Likewise.
3631 * symtab.c (default_collect_symbol_completion_matches_break_on):
3632 Update call to macro_expansion.
3633
3634 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3635
3636 * ada-lang.c (ada_language_data): Remove la_array_ordering
3637 initializer.
3638 * c-lang.c (c_language_data): Likewise.
3639 (cplus_language_data): Likewise.
3640 (asm_language_data): Likewise.
3641 (minimal_language_data): Likewise.
3642 * d-lang.c (d_language_data): Likewise.
3643 * dwarf2/read.c (read_array_order): Update for call to
3644 array_ordering.
3645 * f-lang.c (f_language_data): Remove la_array_ordering
3646 initializer.
3647 (f_language::array_ordering): New member function.
3648 * go-lang.c (go_language_data): Remove la_array_ordering
3649 initializer.
3650 * language.c (unknown_language_data): Likewise.
3651 (auto_language_data): Likewise.
3652 * language.h (language_data): Delete la_array_ordering field.
3653 (language_defn::array_ordering): New member function.
3654 * m2-lang.c (m2_language_data): Remove la_array_ordering
3655 initializer.
3656 * objc-lang.c (objc_language_data): Likewise.
3657 * opencl-lang.c (opencl_language_data): Likewise.
3658 * p-lang.c (pascal_language_data): Likewise.
3659 * rust-lang.c (rust_language_data): Likewise.
3660
3661 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3664 initializer.
3665 * c-lang.c (c_language_data): Likewise.
3666 (cplus_language_data): Likewise.
3667 (asm_language_data): Likewise.
3668 (minimal_language_data): Likewise.
3669 * d-lang.c (d_language_data): Likewise.
3670 * f-lang.c (f_language_data): Likewise.
3671 (f_language::case_sensitivity): New member function.
3672 * go-lang.c (go_language_data): Remove la_case_sensitivity
3673 initializer.
3674 * language.c (enum case_mode): Moved here from language.h.
3675 (case_mode): Make static.
3676 (show_case_command): Update for case_sensitivity being a method.
3677 (set_case_command): Likewise.
3678 (set_range_case): Likewise.
3679 (unknown_language_data): Remove la_case_sensitivity initializer.
3680 (auto_language_data): Likewise.
3681 * language.h (case_mode): Delete, move enum declaration to
3682 language.c.
3683 (language_data): Delete la_case_sensitivity field.
3684 (language_defn::case_sensitivity): New member function.
3685 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3686 initializer.
3687 * objc-lang.c (objc_language_data): Likewise.
3688 * opencl-lang.c (opencl_language_data): Likewise.
3689 * p-lang.c (pascal_language_data): Likewise.
3690 * rust-lang.c (rust_language_data): Likewise.
3691
3692 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3693
3694 * ada-lang.c (ada_language_data): Remove la_range_check
3695 initializer.
3696 * c-lang.c (c_language_data): Likewise.
3697 (cplus_language_data): Likewise.
3698 (asm_language_data): Likewise.
3699 (minimal_language_data): Likewise.
3700 * d-lang.c (d_language_data): Likewise.
3701 * f-lang.c (f_language_data): Likewise.
3702 (f_language::range_checking_on_by_default): New member function.
3703 * go-lang.c (go_language_data): Remove la_range_check initializer.
3704 * language.c (enum range_mode): Moved here from language.h.
3705 (range_mode): Made static.
3706 (show_range_command): Update to use
3707 range_checking_on_by_default.
3708 (set_range_command): Likewise.
3709 (set_range_case): Likewise.
3710 (unknown_language_data): Remove la_range_check initializer.
3711 (auto_language_data): Likewise.
3712 * language.h (range_mode): Delete. Enum definition moved to
3713 language.c.
3714 (language_data): Remove la_range_check field.
3715 (language_defn::range_checking_on_by_default): New member
3716 function.
3717 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3718 (m2_language::range_checking_on_by_default): New member function.
3719 * objc-lang.c (objc_language_data): Remove la_range_check
3720 initializer.
3721 * opencl-lang.c (opencl_language_data): Likewise.
3722 * p-lang.c (pascal_language_data): Likewise.
3723 (pascal_language::range_checking_on_by_default): New member
3724 function.
3725 * rust-lang.c (rust_language_data): Remove la_range_check
3726 initializer.
3727 (rust_language::range_checking_on_by_default): New member
3728 function.
3729
3730 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * dwarf2/read.c (dwarf2_physname): Remove special case for
3733 language_go.
3734 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3735 member function.
3736
3737 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * ada-lang.c (ada_language_data): Remove
3740 la_store_sym_names_in_linkage_form_p initializer.
3741 (ada_language::store_sym_names_in_linkage_form_p): New member
3742 function.
3743 * c-lang.c (c_language_data): Remove
3744 la_store_sym_names_in_linkage_form_p initializer.
3745 (c_language::store_sym_names_in_linkage_form_p): New member
3746 function.
3747 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3748 initializer.
3749 (asm_language_data): Likewise.
3750 (asm_language::store_sym_names_in_linkage_form_p): New member
3751 function.
3752 (minimal_language_data): Remove
3753 la_store_sym_names_in_linkage_form_p initializer.
3754 (minimal_language::store_sym_names_in_linkage_form_p): New member
3755 function.
3756 * d-lang.c (d_language_data): Remove
3757 la_store_sym_names_in_linkage_form_p initializer.
3758 * dwarf2/read.c (dwarf2_physname): Update call to
3759 store_sym_names_in_linkage_form_p.
3760 * f-lang.c (f_language_data): Remove
3761 la_store_sym_names_in_linkage_form_p initializer.
3762 * go-lang.c (go_language_data): Remove
3763 la_store_sym_names_in_linkage_form_p initializer.
3764 * language.c (unknown_language_data): Remove
3765 la_store_sym_names_in_linkage_form_p initializer.
3766 (unknown_language::store_sym_names_in_linkage_form_p): New member
3767 function.
3768 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3769 initializer.
3770 (auto_language::store_sym_names_in_linkage_form_p): New member
3771 function.
3772 * language.h (language_data): Remove
3773 la_store_sym_names_in_linkage_form_p member variable.
3774 (language_defn::store_sym_names_in_linkage_form_p): New member
3775 function.
3776 * m2-lang.c (m2_language_data): Remove
3777 la_store_sym_names_in_linkage_form_p initializer.
3778 * objc-lang.c (objc_language_data): Likewise.
3779 * opencl-lang.c (opencl_language_data): Likewise.
3780 * p-lang.c (pascal_language_data): Likewise.
3781 * rust-lang.c (rust_language_data): Likewise.
3782
3783 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * ada-lang.c (ada_language_data): Remove string_lower_bound
3786 initializer.
3787 * c-lang.c (c_language_data): Likewise.
3788 (cplus_language_data): Likewise.
3789 (asm_language_data): Likewise.
3790 (minimal_language_data): Likewise.
3791 * d-lang.c (d_language_data): Likewise.
3792 * f-lang.c (f_language_data): Likewise.
3793 * go-lang.c (go_language_data): Likewise.
3794 * language.c (unknown_language_data): Likewise.
3795 (auto_language_data): Likewise.
3796 * language.h (language_data): Remove string_lower_bound field.
3797 (language_defn::string_lower_bound): New member function.
3798 * m2-lang.c (m2_language_data): Remove string_lower_bound
3799 initializer.
3800 (m2_language::string_lower_bound): New member function.
3801 * objc-lang.c (objc_language_data): Remove string_lower_bound
3802 initializer.
3803 * opencl-lang.c (opencl_language_data): Likewise.
3804 * p-lang.c (pascal_language_data): Likewise.
3805 * rust-lang.c (rust_language_data): Likewise.
3806 * valops.c (value_cstring): Update call to string_lower_bound.
3807 (value_string): Likewise.
3808 * value.c (allocate_repeated_value): Likewise.
3809
3810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * valops.c (value_repeat): Fix incorrect argument name in comment.
3813
3814 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3815
3816 * ada-lang.c (ada_language_data): Remove c_style_arrays
3817 initializer.
3818 (ada_language::c_style_arrays_p): New member fuction.
3819 * c-lang.c (c_language_data): Remove c_style_arrays
3820 initializer.
3821 (cplus_language_data): Likewise.
3822 (asm_language_data): Likewise.
3823 (minimal_language_data): Likewise.
3824 * d-lang.c (d_language_data): Likewise.
3825 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3826 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3827 (f_language::c_style_arrays_p): New member function.
3828 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3829 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3830 * language.c (unknown_language_data): Remove c_style_arrays
3831 initializer.
3832 (auto_language_data): Likewise.
3833 * language.h (language_data): Remove c_style_arrays field.
3834 (language_defn::c_style_arrays_p): New member function.
3835 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3836 (m2_language::c_style_arrays_p): New member function.
3837 * objc-lang.c (objc_language_data): Remove c_style_arrays
3838 initializer.
3839 * opencl-lang.c (opencl_language_data): Likewise.
3840 * p-lang.c (pascal_language_data): Likewise.
3841 * rust-lang.c (rust_language_data): Likewise.
3842 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3843 and update local variable to a bool.
3844 * valops.c (value_cast): Update call to c_style_arrays_p.
3845 (value_array): Likewise.
3846 * value.c (coerce_array): Likewise.
3847
3848 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * ada-lang.c (ada_language_data): Remove la_language initializer.
3851 * c-lang.c (c_language_data): Likewise.
3852 (cplus_language_data): Likewise.
3853 (asm_language_data): Likewise.
3854 (minimal_language_data): Likewise.
3855 * d-lang.c (d_language_data): Likewise.
3856 * f-lang.c (f_language_data): Likewise.
3857 * go-lang.c (go_language_data): Likewise.
3858 * language.c (unknown_language_data): Likewise.
3859 (auto_language_data): Likewise.
3860 * language.h (language_data): Remove la_language field.
3861 (language_defn::language_defn): Initialise la_language field.
3862 (language_defn::la_language): New member variable.
3863 * m2-lang.c (m2_language_data): Remove la_language field.
3864 * objc-lang.c (objc_language_data): Likewise.
3865 * opencl-lang.c (opencl_language_data): Likewise.
3866 * p-lang.c (pascal_language_data): Likewise.
3867 * rust-lang.c (rust_language_data): Likewise.
3868
3869 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * ada-lang.c (ada_extensions): Delete, moved into
3872 ada_language::filename_extensions.
3873 (ada_language_data): Remove la_filename_extensions initializer.
3874 (ada_language::filename_extensions): New member function.
3875 * c-lang.c (c_extensions): Delete, moved into
3876 c_language::filename_extensions.
3877 (c_language_data): Remove la_filename_extensions initializer.
3878 (c_language::filename_extensions): New member function.
3879 (cplus_extensions): Delete, moved into
3880 cplus_language::filename_extensions.
3881 (cplus_language_data): Remove la_filename_extensions initializer.
3882 (cplus_language::filename_extensions): New member function.
3883 (asm_extensions): Delete, moved into
3884 asm_language::filename_extensions.
3885 (asm_language_data): Remove la_filename_extensions initializer.
3886 (asm_language::filename_extensions): New member function.
3887 (minimal_language_data): Remove la_filename_extensions
3888 initializer.
3889 * d-lang.c (d_extensions): Delete, moved into
3890 d_language::filename_extensions.
3891 (d_language_data): Remove la_filename_extensions initializer.
3892 (d_language::filename_extensions): New member function.
3893 * f-lang.c (f_extensions): Delete, moved into
3894 f_language::filename_extensions.
3895 (f_language_data): Remove la_filename_extensions initializer.
3896 (f_language::filename_extensions): New member function.
3897 * go-lang.c (go_language_data): Remove la_filename_extensions
3898 initializer.
3899 * language.c (add_set_language_command): Update now that
3900 filename_extensions returns a vector.
3901 (unknown_language_data): Remove la_filename_extensions
3902 initializer.
3903 (auto_language_data): Likewise.
3904 * language.h (language_data): Remove la_filename_extensions field.
3905 (language_defn::filename_extensions): New member function.
3906 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3907 initializer.
3908 * objc-lang.c (objc_extensions): Delete, moved into
3909 objc_language::filename_extensions.
3910 (objc_language_data): Remove la_filename_extensions initializer.
3911 (objc_language::filename_extensions): New member function.
3912 * opencl-lang.c (opencl_language_data): Remove
3913 la_filename_extensions initializer.
3914 * p-lang.c (pascal_extensions): Delete, moved into
3915 pascal_language::filename_extensions.
3916 (pascal_language_data): Remove la_filename_extensions initializer.
3917 (pascal_language::filename_extensions): New member function.
3918 * rust-lang.c (rust_extensions): Delete, moved into
3919 rust_language::filename_extensions.
3920 (rust_language_data): Remove la_filename_extensions initializer.
3921 (rust_language::filename_extensions): New member function.
3922 * symfile.c (add_filename_language): Add new assert.
3923
3924 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * ada-lang.c (ada_language_data): Remove la_name and
3927 la_natural_name initializers.
3928 (ada_language::name): New member function.
3929 (ada_language::natural_name): New member function.
3930 * c-lang.c (c_language_data): Remove la_name and
3931 la_natural_name initializers.
3932 (c_language::name): New member function.
3933 (c_language::natural_name): New member function.
3934 (cplus_language_data): Remove la_name and
3935 la_natural_name initializers.
3936 (cplus_language::name): New member function.
3937 (cplus_language::natural_name): New member function.
3938 (asm_language_data): Remove la_name and
3939 la_natural_name initializers.
3940 (asm_language::name): New member function.
3941 (asm_language::natural_name): New member function.
3942 (minimal_language_data): Remove la_name and
3943 la_natural_name initializers.
3944 (minimal_language::name): New member function.
3945 (minimal_language::natural_name): New member function.
3946 * compile/compile.c (compile_to_object): Update call to
3947 lanugage_defn::name.
3948 * d-lang.c (d_language_data): Remove la_name and
3949 la_natural_name initializers.
3950 (d_language::name): New member function.
3951 (d_language::natural_name): New member function.
3952 * expprint.c (print_subexp_standard): Update call to
3953 language_defn::name.
3954 (dump_raw_expression): Likewise
3955 (dump_prefix_expression): Likewise.
3956 * f-lang.c (f_language_data): Remove la_name and
3957 la_natural_name initializers.
3958 (f_language::name): New member function.
3959 (f_language::natural_name): New member function.
3960 * go-lang.c (go_language_data): Remove la_name and
3961 la_natural_name initializers.
3962 (go_language::name): New member function.
3963 (go_language::natural_name): New member function.
3964 * language.c (show_language_command): Update call to
3965 language_defn::name.
3966 (set_language_command): Likewise.
3967 (language_enum): Likewise.
3968 (language_str): Likewise.
3969 (add_set_language_command): Likewise, use
3970 language_defn::natural_name in the doc string.
3971 (unknown_language_data): Remove la_name and
3972 la_natural_name initializers.
3973 (unknown_language::name): New member function.
3974 (unknown_language::natural_name): New member function.
3975 (auto_language_data): Remove la_name and
3976 la_natural_name initializers.
3977 (auto_language::name): New member function.
3978 (auto_language::natural_name): New member function.
3979 (language_lookup_primitive_type_as_symbol): Update call to
3980 language_defn::name.
3981 * language.h (language_data): Remove la_name and la_natural_name
3982 member variables.
3983 (language_defn::name): New member function.
3984 (language_defn::natural_name): New member function.
3985 * m2-lang.c (m2_language_data): Remove la_name and
3986 la_natural_name initializers.
3987 (m2_language::name): New member function.
3988 (m2_language::natural_name): New member function.
3989 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3990 language_defn::natural_name.
3991 * objc-lang.c (objc_language_data): Remove la_name and
3992 la_natural_name initializers.
3993 (objc_language::name): New member function.
3994 (objc_language::natural_name): New member function.
3995 * opencl-lang.c (opencl_language_data): Remove la_name and
3996 la_natural_name initializers.
3997 (opencl_language::name): New member function.
3998 (opencl_language::natural_name): New member function.
3999 * p-lang.c (pascal_language_data): Remove la_name and
4000 la_natural_name initializers.
4001 (pascal_language::name): New member function.
4002 (pascal_language::natural_name): New member function.
4003 * rust-lang.c (rust_language_data): Remove la_name and
4004 la_natural_name initializers.
4005 (rust_language::name): New member function.
4006 (rust_language::natural_name): New member function.
4007 * symtab.c (lookup_language_this): Update call to
4008 language_defn::name.
4009
4010 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4011
4012 * ada-lang.c (ada_language_data): Remove la_name_of_this
4013 initializer.
4014 * ax-gdb.c (gen_expr): Update call to name_of_this.
4015 * c-exp.y (classify_name): Likewise.
4016 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4017 (cplus_language_data): Likewise.
4018 (cplus_language::name_of_this): New member function.
4019 (asm_language_data): Remove la_name_of_this initializer.
4020 (minimal_language_data): Likewise.
4021 * d-lang.c (d_language_data): Likewise.
4022 (d_language::name_of_this): New member function.
4023 * expprint.c (print_subexp_standard): Update call to name_of_this.
4024 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4025 * go-lang.c (go_language_data): Likewise.
4026 * language.c (unknown_language_data): Likewise.
4027 (unknown_language::name_of_this): New member function.
4028 (auto_language_data): Remove la_name_of_this initializer.
4029 (auto_language::name_of_this): New member function.
4030 * language.h (language_data): Delete la_name_of_this member
4031 variable.
4032 (language_defn::name_of_this): New member function.
4033 * m2-lang.c (m2_language_data): Remove la_name_of_this
4034 initializer.
4035 * objc-lang.c (objc_language_data): Likewise.
4036 (objc_language::name_of_this): New member function.
4037 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4038 initializer.
4039 * p-lang.c (pascal_language_data): Likewise.
4040 (pascal_language::name_of_this): New member function.
4041 * rust-lang.c (rust_language_data): Remove la_name_of_this
4042 initializer.
4043 * symtab.c (lookup_language_this): Update call to name_of_this.
4044 (lookup_symbol_aux): Likewise.
4045 * valops.c (value_of_this): Likewise.
4046
4047 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (ada_language_data): Remove
4050 la_struct_too_deep_ellipsis initializer.
4051 (ada_language::struct_too_deep_ellipsis): New member function.
4052 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4053 initializer.
4054 (cplus_language_data): Likewise.
4055 (asm_language_data): Likewise.
4056 (minimal_language_data): Likewise.
4057 * cp-valprint.c (cp_print_value): Update call to
4058 struct_too_deep_ellipsis.
4059 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4060 initializer.
4061 * f-lang.c (f_language_data): Likewise.
4062 (f_language::struct_too_deep_ellipsis): New member function.
4063 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4064 initializer.
4065 * language.c (unknown_language_data): Likewise.
4066 (auto_language_data): Likewise.
4067 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4068 member variable.
4069 (language_defn::struct_too_deep_ellipsis): New member function.
4070 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4071 initializer.Q
4072 * objc-lang.c (objc_language_data): Likewise.
4073 * opencl-lang.c (opencl_language_data): Likewise.
4074 * p-lang.c (pascal_language_data): Likewise.
4075 * rust-lang.c (rust_language_data): Likewise.
4076 * valprint.c (val_print_check_max_depth): Update call to
4077 struct_too_deep_ellipsis.
4078
4079 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4080
4081 * MAINTAINERS (Write After Approval): Add myself.
4082
4083 2020-09-15 Tom Tromey <tom@tromey.com>
4084
4085 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4086 Remove.
4087
4088 2020-09-15 Tom Tromey <tom@tromey.com>
4089
4090 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4091 and TYPE_CODE_METHODPTR cases.
4092 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4093 (c_value_print_inner): Update.
4094 * valprint.c (generic_value_print_memberptr): New function, from
4095 c_value_print_memberptr.
4096 (generic_value_print): Use it. Call cplus_print_method_ptr.
4097
4098 2020-09-15 Tom Tromey <tromey@adacore.com>
4099
4100 * python/python-internal.h (PyInt_FromLong): Remove define.
4101 * python/py-value.c (convert_value_from_python): Use
4102 gdb_py_object_from_longest.
4103 * python/py-type.c (typy_get_code): Use
4104 gdb_py_object_from_longest.
4105 * python/py-symtab.c (salpy_get_line): Use
4106 gdb_py_object_from_longest.
4107 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4108 gdb_py_object_from_longest.
4109 * python/py-record.c (recpy_gap_reason_code): Use
4110 gdb_py_object_from_longest.
4111 * python/py-record-btrace.c (recpy_bt_insn_size)
4112 (recpy_bt_func_level, btpy_list_count): Use
4113 gdb_py_object_from_longest.
4114 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4115 gdb_py_object_from_longest. Fix error handling.
4116 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4117 gdb_py_object_from_longest.
4118 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4119 gdb_py_object_from_longest.
4120 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4121 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4122 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4123
4124 2020-09-15 Tom Tromey <tromey@adacore.com>
4125
4126 * python/python.c (gdbpy_parameter_value): Use
4127 gdb_py_object_from_ulongest.
4128
4129 2020-09-15 Tom Tromey <tromey@adacore.com>
4130
4131 * python/py-infevents.c (create_register_changed_event_object):
4132 Use gdb_py_object_from_longest.
4133 * python/py-exitedevent.c (create_exited_event_object): Use
4134 gdb_py_object_from_longest.
4135
4136 2020-09-15 Tom Tromey <tromey@adacore.com>
4137
4138 * python/python.c (gdbpy_parameter_value): Use
4139 gdb_py_object_from_longest.
4140 * python/py-type.c (convert_field, typy_range): Use
4141 gdb_py_object_from_longest.
4142 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4143 gdb_py_object_from_longest.
4144 * python/py-lazy-string.c (stpy_get_length): Use
4145 gdb_py_object_from_longest.
4146 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4147 gdb_py_object_from_longest.
4148 * python/py-infevents.c (create_memory_changed_event_object): Use
4149 gdb_py_object_from_longest.
4150 * python/py-inferior.c (infpy_get_num): Use
4151 gdb_py_object_from_longest.
4152 (infpy_get_pid): Likewise.
4153
4154 2020-09-15 Tom Tromey <tromey@adacore.com>
4155
4156 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4157 defines.
4158 * python/py-value.c (valpy_long): Use
4159 gdb_py_object_from_ulongest.
4160 * python/py-symtab.c (salpy_get_pc): Use
4161 gdb_py_object_from_ulongest.
4162 (salpy_get_last): Likewise.
4163 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4164 gdb_py_object_from_ulongest.
4165 * python/py-lazy-string.c (stpy_get_address): Use
4166 gdb_py_object_from_ulongest.
4167 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4168 * python/py-arch.c (archpy_disassemble): Use
4169 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4170 error handling.
4171
4172 2020-09-15 Tom Tromey <tromey@adacore.com>
4173
4174 * python/python-internal.h (gdb_py_long_from_longest): Remove
4175 defines.
4176 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4177 * python/py-type.c (convert_field, typy_get_sizeof): Use
4178 gdb_py_object_from_longest.
4179 * python/py-record-btrace.c (btpy_list_index): Use
4180 gdb_py_object_from_longest.
4181
4182 2020-09-15 Tom Tromey <tromey@adacore.com>
4183
4184 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4185 * python/py-record.c (recpy_element_number): Use
4186 gdb_py_object_from_longest.
4187 (recpy_gap_number): Likewise.
4188
4189 2020-09-15 Tom Tromey <tromey@adacore.com>
4190
4191 * top.c (ui::ui): Update.
4192 (highest_ui_num): Remove.
4193 * top.h (struct ui) <num>: Remove.
4194
4195 2020-09-15 Tom Tromey <tromey@adacore.com>
4196
4197 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4198 * ui-style.c (ansi_regex_text): Now array.
4199 * rust-exp.y (number_regex_text): Now array.
4200 * linespec.c (linespec_quote_characters): Now array.
4201 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4202 Now arrays.
4203
4204 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * debuginfod-support.c (debuginfod_client_deleter): New.
4207 (debuginfod_client_up): New.
4208 (debuginfod_init): Return debuginfod_client_up.
4209 (debuginfod_source_query): Adjust.
4210 (debuginfod_debuginfo_query): Adjust.
4211
4212 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * debuginfod-support.c (debuginfod_source_query): Use
4215 make_unique_xstrdup.
4216
4217 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4220 with `type::instance_flags`.
4221
4222 2020-09-14 Michael Mullin <masmullin@gmail.com>
4223
4224 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4225 Remove baton parameter.
4226
4227 2020-09-14 Pedro Alves <pedro@palves.net>
4228
4229 * Makefile.in (SELFTESTS_SRCS): Add
4230 unittests/enum-flags-selftests.c.
4231 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4232 btrace_function_flags instead of enum btrace_function_flag.
4233 * compile/compile-c-types.c (convert_qualified): Use
4234 enum_flags::raw.
4235 * compile/compile-cplus-symbols.c (convert_one_symbol)
4236 (convert_symbol_bmsym):
4237 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4238 (compile_cplus_convert_struct_or_union_methods)
4239 (compile_cplus_instance::convert_qualified_base):
4240 * go-exp.y (parse_string_or_char): Add cast to int.
4241 * unittests/enum-flags-selftests.c: New file.
4242 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4243 type to btrace_thread_flags from btrace_thread_flag.
4244 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4245 local's type to btrace_thread_flags from btrace_thread_flag. Add
4246 cast in DEBUG call.
4247
4248 2020-09-14 Pedro Alves <pedro@palves.net>
4249
4250 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4251 * gdbtypes.c (address_space_name_to_int): Rename to ...
4252 (address_space_name_to_type_instance_flags): ... this.
4253 (address_space_int_to_name): Rename to ...
4254 (address_space_type_instance_flags_to_name): ... this.
4255 * gdbtypes.h (address_space_name_to_int): Rename to ...
4256 (address_space_name_to_type_instance_flags): ... this.
4257 (address_space_int_to_name): Rename to ...
4258 (address_space_type_instance_flags_to_name): ... this.
4259 * type-stack.c (type_stack::insert): Adjust to rename.
4260 * type-stack.h (type_stack::insert): Likewise.
4261
4262 2020-09-14 Pedro Alves <pedro@palves.net>
4263 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * avr-tdep.c (avr_address_class_type_flags): Return
4266 type_instance_flags.
4267 (avr_address_class_type_flags_to_name): Take a
4268 type_instance_flags.
4269 (avr_address_class_name_to_type_flags): Return bool and take a
4270 type_instance_flags.
4271 * d-lang.c (build_d_types): Use type::set_instance_flags.
4272 * ft32-tdep.c (ft32_address_class_type_flags): Return
4273 type_instance_flags.
4274 (ft32_address_class_type_flags_to_name): Take a
4275 type_instance_flags.
4276 (ft32_address_class_name_to_type_flags): Return bool and take a
4277 type_instance_flags.
4278 (ft32_gdbarch_init): Use type::set_instance_flags.
4279 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4280 * gdbarch.h, gdbarch.c: Regenerate.
4281 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4282 (address_class_name_to_type_flags): Use type_instance_flags and
4283 bool.
4284 * gdbtypes.c (address_space_name_to_int)
4285 (address_space_int_to_name, make_qualified_type): Use
4286 type_instance_flags.
4287 (make_qualified_type): Use type_instance_flags and
4288 type::set_instance_flags.
4289 (make_type_with_address_space, make_cv_type, make_vector_type)
4290 (check_typedef): Use type_instance_flags.
4291 (recursive_dump_type): Cast type_instance_flags to unsigned for
4292 printing.
4293 (copy_type_recursive): Use type::set_instance_flags.
4294 (gdbtypes_post_init): Use type::set_instance_flags.
4295 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4296 <m_instance_flags>: ... this.
4297 <instance_flags, set_instance_flags>: New methods.
4298 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4299 (SET_TYPE_INSTANCE_FLAGS): New.
4300 (address_space_name_to_int, address_space_int_to_name)
4301 (make_type_with_address_space): Pass flags using
4302 type_instance_flags instead of int.
4303 * stabsread.c (cleanup_undefined_types_noname): Use
4304 type::set_instance_flags.
4305 * s390-tdep.c (s390_address_class_type_flags): Return
4306 type_instance_flags.
4307 (s390_address_class_type_flags_to_name): Take a
4308 type_instance_flags.
4309 (s390_address_class_name_to_type_flags): Return bool and take a
4310 type_instance_flags.
4311 * type-stack.c (type_stack::follow_types): Use
4312 type_instance_flags.
4313 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4314
4315 2020-09-14 Tom Tromey <tromey@adacore.com>
4316
4317 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4318 * x86-tdep.c (x86_is_thunk_register_name)
4319 (x86_in_indirect_branch_thunk): Update.
4320 * sparc64-tdep.c (sparc64_fpu_register_names)
4321 (sparc64_cp0_register_names, sparc64_register_names)
4322 (sparc64_pseudo_register_names): Now const.
4323 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4324 cp0_registers_num>: Now const.
4325 * sparc-tdep.c (sparc_core_register_names)
4326 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4327 (sparc32_pseudo_register_names): Now const.
4328 (validate_tdesc_registers): Update.
4329 * rust-lang.c (rust_extensions): Now const.
4330 * p-lang.c (p_extensions): Now const.
4331 * objc-lang.c (objc_extensions): Now const.
4332 * nto-tdep.c (nto_thread_state_str): Now const.
4333 * moxie-tdep.c (moxie_register_names): Now const.
4334 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4335 Now const.
4336 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4337 (mips_linux_reg_names): Now const.
4338 (mips_gdbarch_init): Update.
4339 * microblaze-tdep.c (microblaze_register_names): Now const.
4340 * m68k-tdep.c (m68k_register_names): Now const.
4341 * m32r-tdep.c (m32r_register_names): Now const.
4342 * ia64-tdep.c (ia64_register_names): Now const.
4343 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4344 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4345 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4346 ymm_avx512_register_names, pkeys_register_names>: Now const.
4347 * i386-tdep.c (i386_register_names, i386_zmm_names)
4348 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4349 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4350 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4351 * f-lang.c (f_extensions): Now const.
4352 * d-lang.c (d_extensions): Now const.
4353 * csky-tdep.c (csky_register_names): Now const.
4354 * charset.c (default_charset_names, charset_enum): Now const.
4355 (_initialize_charset): Update.
4356 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4357 const.
4358 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4359 (bsd_uthread_solib_loaded): Update.
4360 (bsd_uthread_state): Now const.
4361 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4362 (amd64_ymm_avx512_names, amd64_ymmh_names)
4363 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4364 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4365 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4366 (amd64_dword_names): Now const.
4367 * agent.c (can_use_agent_enum): Now const.
4368 * ada-tasks.c (task_states, long_task_states): Now const.
4369 * ada-lang.c (known_runtime_file_name_patterns)
4370 (known_auxiliary_function_name_patterns, attribute_names)
4371 (standard_exc, ada_extensions): Now const.
4372
4373 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * bcache.h (struct bcache) <bcache>: Remove constructor.
4376 <m_hash_function, m_compare_function>: Remove.
4377 <~bcache>: Make virtual.
4378 <compare>: Remove static method, introduce virtual method.
4379 <default_hash>: Remove.
4380 <hash>: New virtual method.
4381 * bcache.c (bcache::expand_hash_table): Update.
4382 (bcache::insert): Update.
4383 (bcache::hash): New.
4384 (bcache::compare): Update comment and parameter names.
4385 * gdbtypes.c (types_deeply_equal): Update.
4386 * psymtab.h (struct psymbol_bcache): New struct.
4387 (class psymtab_storage) <psymtab_storage>: Make default.
4388 <psymbol_cache>: Change type to psymbol_bcache.
4389 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4390 (psymbol_hash): Change to...
4391 (psymbol_bcache::hash): ... this.
4392 (psymbol_compare): Change to...
4393 (psymbol_bcache::compare): ... this.
4394
4395 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4398 checking for initial lwp.
4399
4400 2020-09-14 Tom Tromey <tromey@adacore.com>
4401
4402 * m68k-tdep.c (m68k_extract_return_value): Use
4403 pointer_result_regnum.
4404 (m68k_store_return_value): Likewise.
4405 (m68k_reg_struct_return_p): Handle vectors and arrays.
4406 (m68k_return_value): Handle arrays.
4407 (m68k_svr4_return_value): Fix single-element aggregate handling.
4408 Handle long double. Adjust for embedded ABI.
4409 (m68k_svr4_init_abi): Set pointer_result_regnum.
4410 (m68k_embedded_init_abi): New function.
4411 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4412 (m68k_osabi_sniffer): New function.
4413 (_initialize_m68k_tdep): Register osabi sniffer.
4414 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4415 member.
4416
4417 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4418
4419 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4420 with gdb::unique_xmalloc_ptr<char>.
4421
4422 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4423
4424 * xml-support.h (xml_fetch_another): Change type to be a
4425 function_view.
4426 (xml_process_xincludes): Remove baton parameter.
4427 (xml_fetch_content_from_file): Change baton parameter to
4428 dirname.
4429 * xml-support.c (struct xinclude_parsing_data)
4430 <xinclude_parsing_data>: Remove baton parameter.
4431 <fetcher_baton>: Remove.
4432 (xinclude_start_include): Adjust.
4433 (xml_process_xincludes): Adjust.
4434 (xml_fetch_content_from_file): Replace baton parameter with
4435 dirname.
4436 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4437 (xml_init_syscalls_info): Use a lambda.
4438 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4439 (file_read_description_xml): Use a lambda.
4440 (fetch_available_features_from_target): Change baton parameter
4441 to target_ops.
4442 (target_read_description_xml): Use a lambda.
4443 (target_fetch_description_xml): Use a lambda.
4444 (string_read_description_xml): Update.
4445
4446 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4447
4448 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4449 uses with type::endianity_is_not_default.
4450
4451 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * gdbtypes.h (struct type) <endianity_is_not_default,
4454 set_endianity_is_not_default>: New methods.
4455 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4456 type::endianity_is_not_default, change all write call sites to
4457 use type::set_endianity_is_not_default.
4458
4459 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4462 uses with type::is_fixed_instance.
4463
4464 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * gdbtypes.h (struct type) <is_fixed_instance,
4467 set_is_fixed_instance>: New methods.
4468 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4469 write call sites to use type::set_is_fixed_instance.
4470
4471 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4474 uses with type::is_gnu_ifunc.
4475
4476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4479 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4480 use type::set_is_gnu_ifunc.
4481
4482 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4485 uses with type::stub_is_supported.
4486
4487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4490 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4491 use type::set_stub_is_supported.
4492
4493 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4496 uses with type::is_vector.
4497
4498 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4501 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4502 use type::set_is_vector.
4503
4504 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4507 uses with type::has_varargs.
4508
4509 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4512 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4513 use type::set_has_varargs.
4514
4515 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4518 uses with type::is_prototyped.
4519
4520 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4523 New methods.
4524 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4525 call sites to use type::set_is_prototyped.
4526
4527 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4530 uses with type::target_is_stub.
4531
4532 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4535 New methods.
4536 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4537 sites to use type::set_target_is_stub.
4538
4539 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * gdbtypes.h (TYPE_STUB): Remove, replace all
4542 uses with type::is_stub.
4543
4544 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4547 (TYPE_STUB): Use type::is_stub, change all write call sites to
4548 use type::set_is_stub.
4549
4550 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4553 type::has_no_signedness.
4554
4555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * gdbtypes.h (struct type) <has_no_signedness,
4558 set_has_no_signedness>: New methods.
4559 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4560 call sites to use type::set_has_no_signedness.
4561
4562 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4565 type::is_unsigned.
4566
4567 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4570 methods.
4571 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4572 sites to use type::set_is_unsigned.
4573
4574 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4575 Adam Renquinha <arenquinha@cimeq.qc.ca>
4576
4577 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4578 pointer and stack frame offset when unwinding.
4579
4580 2020-09-13 Pedro Alves <pedro@palves.net>
4581
4582 * NEWS: Document "-break-insert --qualified".
4583 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4584
4585 2020-09-13 Pedro Alves <pedro@palves.net>
4586
4587 * linespec.c (classify_mtype, compare_msyms): Delete.
4588 (search_minsyms_for_name): Remove classification logic. Instead
4589 filter out trampoline symbols if we also found an external
4590 function of the same name.
4591
4592 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4593
4594 * NEWS: Create a new section for the next release branch.
4595 Rename the section of the current branch, now that it has
4596 been cut.
4597
4598 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4599
4600 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4601 * version.in: Bump version to 11.0.50.DATE-git.
4602
4603 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4604
4605 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4606
4607 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4608 Felix Willgerodt <Felix.Willgerodt@intel.com>
4609
4610 * gdbarch.sh: Added bfloat16 type.
4611 * gdbarch.c: Regenerated.
4612 * gdbarch.h: Regenerated.
4613 * gdbtypes.c (floatformats_bfloat16): New struct.
4614 (gdbtypes_post_init): Add builtin_bfloat16.
4615 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4616 (floatformats_bfloat16): New struct.
4617 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4618 (i386_ymm_type): Add field "v16_bfloat16"
4619 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4620 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4621 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4622 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4623 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4624 * features/i386/64bit-avx512.c: Regenerated.
4625 * features/i386/64bit-sse.xml: Add bfloat16 type.
4626 * features/i386/64bit-sse.c: Regenerated.
4627
4628 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4629
4630 * i386-tdep.c (i386_zmm_type): Fix field names.
4631 (i386_ymm_type): Fix field names.
4632
4633 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4634
4635 * breakpoint.c: Fix typo in the help message of the
4636 "set breakpoint condition-evaluation" command.
4637
4638 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4639
4640 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4641 * (nbsd_nat_target::pid_to_exec_file)
4642 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4643 (nbsd_nat_target::post_startup_inferior)
4644 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4645 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4646 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4647 * (nbsd_thread_lister): Remove.
4648
4649 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4650
4651 * fork-inferior.c (startup_inferior): Avoid double free.
4652
4653 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4654
4655 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4656 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4657
4658 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4659
4660 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4661 * netbsd-nat.c: Include <sys/ptrace.h>.
4662 * (netbsd_nat::enable_proc_events): Add.
4663
4664 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4665
4666 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4667 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4668 (netbsd_nat::for_each_thread): Add.
4669 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4670 "gdbsupport/common-debug.h".
4671 * (netbsd_nat::netbsd_thread_lister)
4672 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4673 (netbsd_nat::for_each_thread): Add.
4674
4675 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4676
4677 * netbsd-nat.h: Include <unistd.h>.
4678 * (netbsd_nat::pid_to_exec_file): Add.
4679 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4680 * (netbsd_nat::pid_to_exec_file) Add.
4681
4682 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4683
4684 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4685
4686 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4687
4688 * netbsd-nat.h: New file.
4689 * netbsd-nat.c: Likewise.
4690
4691 2020-09-09 Tom Tromey <tromey@adacore.com>
4692
4693 * ada-lang.c (remove_extra_symbols): Do not increment when
4694 removing an element
4695
4696 2020-09-08 Tom Tromey <tromey@adacore.com>
4697
4698 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4699
4700 2020-09-08 Tom Tromey <tromey@adacore.com>
4701
4702 PR win32/25302:
4703 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4704 (gdb_bfd_init_data): New function.
4705 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4706
4707 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4708
4709 * infrun.c (fetch_inferior_event): Use
4710 `switch_to_target_no_thread` to switch the target.
4711
4712 2020-09-06 Tom Tromey <tom@tromey.com>
4713
4714 * symfile.h (dwarf2_free_objfile): Don't declare.
4715
4716 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4717
4718 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4719 to match 16 byte real/complex type generated by Flang compiler.
4720
4721 2020-09-03 Tom de Vries <tdevries@suse.de>
4722
4723 PR breakpoint/26546
4724 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4725 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4726
4727 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * maint.c (index_digits): New function.
4730 (struct maint_print_section_data): Remove.
4731 (print_bfd_section_info): Remove print_data parameter, add arg
4732 and index_digits.
4733 (print_objfile_section_info): Likewise.
4734 (print_bfd_section_info_maybe_relocated): Likewise (plus
4735 objfile).
4736 (maintenance_info_sections): Adjust calls.
4737
4738 2020-09-02 Tom Tromey <tromey@adacore.com>
4739
4740 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4741 for null pointers.
4742 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4743
4744 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4745
4746 * bcache.h (struct bcache) <insert>: Change type of `added` to
4747 pointer to bool.
4748 * bcache.c (bcache::insert): Likewise.
4749 * gdbtypes.c (check_types_worklist): Adjust.
4750 * psymtab.c (add_psymbol_to_bcache): Adjust.
4751
4752 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4753
4754 * corelow.c (unordered_set): Include.
4755 (class core_target): Add field 'm_core_unavailable_mappings'.
4756 (core_target::build_file_mappings): Print only one warning
4757 per inaccessible file. Add unavailable/broken mappings
4758 to m_core_unavailable_mappings.
4759 (core_target::xfer_partial): Call...
4760 (core_target::xfer_memory_via_mappings): New method.
4761
4762 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4763
4764 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4765 type to bool.
4766
4767 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4768
4769 * dwarf2/read.c (struct field_info): Fix indentation.
4770
4771 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4774 ordering in comment.
4775 * frame.c (frame_id_eq): Fix indentation.
4776
4777 2020-08-31 Scott Linder <scott@scottlinder.com>
4778 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4781 inline frame ids in outer frame.
4782
4783 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4786 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4787 (outer_frame_id): Use FID_STACK_OUTER instead of
4788 FID_STACK_INVALID.
4789 (frame_id_p): Don't check for outer_frame_id.
4790
4791 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4794 regnum/frame in value. Call allocate_value_lazy.
4795 * frame.c (frame_unwind_register_value): Use
4796 val_print_not_saved.
4797
4798 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4801
4802 2020-08-29 Pedro Alves <pedro@palves.net>
4803
4804 * progspace.c (print_program_space): Use all_inferiors. Switch to
4805 the inferior before calling target_pid_to_str.
4806
4807 2020-08-28 Tom Tromey <tom@tromey.com>
4808
4809 * xcoffread.c (xcoff_end_psymtab): Update comment.
4810 * dbxread.c (dbx_end_psymtab): Update comment.
4811
4812 2020-08-28 Tom de Vries <tdevries@suse.de>
4813
4814 PR breakpoint/26544
4815 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4816 event_location.
4817 (create_breakpoint): Same.
4818 (base_breakpoint_decode_location): Same.
4819 (bkpt_create_sals_from_location): Same.
4820 (bkpt_decode_location): Same.
4821 (bkpt_probe_create_sals_from_location): Same.
4822 (bkpt_probe_decode_location): Same.
4823 (tracepoint_create_sals_from_location): Same.
4824 (tracepoint_decode_location): Same.
4825 (tracepoint_probe_decode_location): Same.
4826 (strace_marker_create_sals_from_location): Same.
4827 (strace_marker_decode_location): Same.
4828 (create_sals_from_location_default): Same.
4829 (decode_location_default): Same.
4830 * breakpoint.h (struct breakpoint_ops): Same.
4831 (create_breakpoint): Same.
4832 * linespec.h (decode_line_full): Same.
4833 * linespec.c (decode_line_full): Same. Throw error if
4834 result.size () == 0.
4835
4836 2020-08-27 Pedro Alves <pedro@palves.net>
4837
4838 PR gdb/26524
4839 * breakpoint.c (until_break_fsm) <location_breakpoint,
4840 caller_breakpoint>: Delete fields.
4841 <breakpoints>: New field.
4842 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4843 two individual breakpoints.
4844 (until_break_fsm::should_stop): Loop over breakpoints in the
4845 breakpoint vector.
4846 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4847 vector.
4848 (until_break_command): Handle location expanding into multiple
4849 sals.
4850
4851 2020-08-27 Pedro Alves <pedro@palves.net>
4852
4853 PR gdb/26523
4854 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4855 bp_until breakpoints user-specified locations. Update intro
4856 comment.
4857
4858 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4861 gdb_bfd_sections): New.
4862 * maint.c (print_bfd_section_info): Change param type to
4863 maint_print_section_data.
4864 (print_objfile_section_info): Likewise.
4865 (print_bfd_section_info_maybe_relocated): Likewise.
4866 (maintenance_info_sections): Use gdb_bfd_sections.
4867
4868 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4869
4870 * MAINTAINERS: Add ARC target and maintainer.
4871
4872 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4873
4874 * configure.tgt: ARC support for GNU/Linux.
4875 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4876 * arc-linux-tdep.c: New file.
4877 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4878 * arc-tdep.c (arc_write_pc): Use it.
4879
4880 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4881
4882 * arc-tdep.c (arc_check_for_hardware_loop): New.
4883 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4884
4885 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4886
4887 * arc-tdep.h: Include "gdbarch.h".
4888
4889 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4890
4891 * arch/arc.h
4892 (arc_gdbarch_features): New class to stir the selection of target XML.
4893 (arc_create_target_description): Use FEATURES to choose XML target.
4894 (arc_lookup_target_description): Use arc_create_target_description
4895 to create _new_ target descriptions or return the already created
4896 ones if the FEATURES is the same.
4897 * arch/arc.c: Implementation of prototypes described above.
4898 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4899 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4900 * arc-tdep.c (*_feature_name): Make feature names consistent.
4901 (arc_register_feature): A new struct to hold information about
4902 registers of a particular target/feature.
4903 (arc_check_tdesc_feature): Check if XML provides registers in
4904 compliance with ARC_REGISTER_FEATURE structs.
4905 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4906 (determine_*_reg_feature_set): Which feature name to look for.
4907 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4908 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4909 to expected ISA enums to be used in arc_gdbarch_features structs.
4910 * features/Makefile (FEATURE_XMLFILES): Add new files.
4911 * gdb/features/arc/v1-aux.c: New file.
4912 * gdb/features/arc/v1-aux.xml: Likewise.
4913 * gdb/features/arc/v1-core.c: Likewise.
4914 * gdb/features/arc/v1-core.xml: Likewise.
4915 * gdb/features/arc/v2-aux.c: Likewise.
4916 * gdb/features/arc/v2-aux.xml: Likewise.
4917 * gdb/features/arc/v2-core.c: Likewise.
4918 * gdb/features/arc/v2-core.xml: Likewise.
4919 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4920
4921 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4922 Andrew Burgess <andrew.burgess@embecosm.com>
4923
4924 PR m2/26372
4925 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4926 an assert. Remove single element array indexing pattern as the
4927 MULTI_SUBSCRIPT support will handle this case too.
4928
4929 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4930
4931 * value.h (valprint_check_validity): Move declaration from
4932 here...
4933 * valprint.h (valprint_check_validity): ... to here.
4934
4935 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * debug.h: New file.
4938 * debug.c (debug_prefixed_vprintf): New function.
4939 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4940 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4941
4942 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * infrun.h (infrun_debug_printf_1): New function declaration.
4945 (infrun_debug_printf): New macro.
4946 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4947 throughout.
4948 (infrun_debug_printf): New function.
4949 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4950 (handle_jit_event): Likewise.
4951
4952 2020-08-21 Mark Wielaard <mark@klomp.org>
4953
4954 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4955
4956 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * frame.c (enum class frame_id_status): New.
4959 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4960 (fprintf_frame): Update.
4961 (compute_frame_id): Set frame id status to "computing" on entry.
4962 Set it back to "not_computed" on failure and to "computed" on
4963 success.
4964 (get_frame_id): Assert the frame id is not being computed.
4965 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4966 (create_new_frame): Likewise.
4967 (frame_cleanup_after_sniffer): Update assert.
4968
4969 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 * regcache.c (pid_ptid_regcache_map): New type.
4972 (target_ptid_regcache_map): Remove.
4973 (target_pid_ptid_regcache_map): New type.
4974 (regcaches): Change type to target_pid_ptid_regcache_map.
4975 (get_thread_arch_aspace_regcache): Update.
4976 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4977 case.
4978 (regcaches_size): Update.
4979 (regcache_count): Update.
4980 (registers_changed_ptid_target_pid_test): New.
4981 (_initialize_regcache): Register new test.
4982
4983 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * regcache.c (regcache_count): New.
4986 (struct regcache_test_data): New.
4987 (regcache_test_data_up): New.
4988 (populate_regcaches_for_test): New.
4989 (regcaches_test): Remove.
4990 (get_thread_arch_aspace_regcache_test): New.
4991 (registers_changed_ptid_all_test): New.
4992 (registers_changed_ptid_target_test): New.
4993 (registers_changed_ptid_target_ptid_test): New.
4994 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4995 (_initialize_regcache): Register new tests.
4996
4997 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5000 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5001 gdbarch and aspace parameter. Use current inferior's aspace.
5002 Validate regcache's arch value.
5003 (regcaches_test): Update.
5004
5005 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5006
5007 * regcache.c (regcaches_test): Call registers_changed.
5008
5009 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5010
5011 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5012
5013 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5014
5015 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5016 to find the end of prologue for flang compiled binaries.
5017 * arm-tdep.c (arm_skip_prologue): Likewise.
5018 * i386-tdep.c (i386_skip_prologue): Likewise.
5019 * producer.c (producer_is_llvm): New function.
5020 (producer_parsing_tests): Added new tests for clang/flang.
5021 * producer.h (producer_is_llvm): New declaration.
5022
5023 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * linux-nat.c (linux_nat_debug_printf): New function.
5026 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5027
5028 2020-08-18 Aaron Merey <amerey@redhat.com>
5029
5030 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5031 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5032 (CLIBS): Add DEBUGINFOD_LIBS.
5033
5034 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5035
5036 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5037 'gdbarch_num_regs'.
5038
5039 2020-08-17 Tom Tromey <tromey@adacore.com>
5040
5041 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5042 ada_get_decoded_value returns NULL.
5043
5044 2020-08-17 Tom Tromey <tromey@adacore.com>
5045
5046 * python/py-inferior.c (infpy_search_memory): Use
5047 gdb_py_object_from_ulongest.
5048 * python/py-infevents.c (create_inferior_call_event_object)
5049 (create_memory_changed_event_object): Use
5050 gdb_py_object_from_ulongest.
5051 * python/py-linetable.c (ltpy_entry_get_pc): Use
5052 gdb_py_object_from_ulongest.
5053
5054 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * loc.c (class symbol_needs_eval_context): Fix indentation.
5057
5058 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5061 bool.
5062
5063 2020-08-17 Tom de Vries <tdevries@suse.de>
5064
5065 PR gdb/26393
5066 * gdbtypes.c (dump_dynamic_prop): New function.
5067 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5068
5069 2020-08-15 Tom de Vries <tdevries@suse.de>
5070
5071 PR backtrace/26390
5072 * stack.c (print_frame_args): Temporarily set the selected
5073 frame to FRAME while printing the frame's arguments.
5074
5075 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5076
5077 PR breakpoints/26385
5078 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5079 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5080
5081 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5082
5083 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5084 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5085 and >= to check return value instead of == -1 and != -1.
5086
5087 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * utils.h (class gdb_argv) <as_array_view>: New method.
5090 * utils.c (gdb_argv_as_array_view_test): New.
5091 (_initialize_utils): Register selftest.
5092 * maint.c (maintenance_selftest): Use the new method.
5093
5094 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5095
5096 * target.h (supports_dumpcore, dumpcore): New
5097 function declarations.
5098 * target.c (supports_dumpcore, dumpcore): New
5099 functions.
5100 * target-delegates.c: Rebuild.
5101 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5102 and target_dumpcore ().
5103
5104 2020-08-13 Aaron Merey <amerey@redhat.com>
5105
5106 * debuginfod-support.c: Replace global variables with user_data.
5107
5108 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * maint.c (maintenance_selftest): Split args and pass array_view
5111 to run_tests.
5112
5113 2020-08-12 Luis Machado <luis.machado@linaro.org>
5114
5115 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5116 type's length.
5117 Use %s and pulongest to print the length.
5118
5119 2020-08-12 Pedro Alves <palves@redhat.com>
5120
5121 * NEWS: Move "Multi-target debugging support" item to the
5122 "Changes since GDB 9" section.
5123
5124 2020-08-12 Pedro Alves <palves@redhat.com>
5125
5126 PR gdb/26336
5127 * progspace.c (program_space::remove_objfile): Invalidate the
5128 frame cache.
5129
5130 2020-08-11 Tom de Vries <tdevries@suse.de>
5131
5132 * MAINTAINERS: Mark ms1 as deleted.
5133
5134 2020-08-10 Luis Machado <luis.machado@linaro.org>
5135
5136 PR gdb/26310
5137
5138 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5139 act accordingly.
5140 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5141 movz/str/stur/stp skipping behavior.
5142
5143 2020-08-10 Luis Machado <luis.machado@linaro.org>
5144
5145 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5146 struct user_sve_header instead of struct sve_context.
5147
5148 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * read.h (dwarf2_fetch_die_loc_sect_off,
5151 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5152 `void *` parameter with function_view.
5153 * read.c (dwarf2_fetch_die_loc_sect_off,
5154 dwarf2_fetch_die_loc_cu_off): Likewise.
5155 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5156 (per_cu_dwarf_call): Adjust.
5157 (get_frame_address_in_block_wrapper): Remove.
5158 (indirect_synthetic_pointer): Adjust.
5159 (get_ax_pc): Remove.
5160 (dwarf2_compile_expr_to_ax): Adjust.
5161
5162 2020-08-08 Tom de Vries <tdevries@suse.de>
5163
5164 PR build/26344
5165 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5166 constructor.
5167 * regcache.c (get_thread_arch_aspace_regcache): Same.
5168
5169 2020-08-07 Tom Tromey <tromey@adacore.com>
5170
5171 * ravenscar-thread.c
5172 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5173 New method.
5174 (ravenscar_thread_target::wait): Check
5175 runtime_initialized.
5176 (ravenscar_thread_target::prepare_to_store)
5177 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5178 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5179 (ravenscar_thread_target::stopped_by_watchpoint)
5180 (ravenscar_thread_target::stopped_data_address)
5181 (ravenscar_thread_target::core_of_thread): Use
5182 scoped_restore_current_thread and
5183 set_base_thread_from_ravenscar_task.
5184
5185 2020-08-07 Tom Tromey <tromey@adacore.com>
5186
5187 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5188
5189 2020-08-07 Tom Tromey <tromey@adacore.com>
5190
5191 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5192 update_inferior_ptid before update_thread_list.
5193 (temporarily_change_regcache_ptid): New class.
5194 (ravenscar_thread_target::fetch_registers)
5195 (ravenscar_thread_target::store_registers)
5196 (ravenscar_thread_target::prepare_to_store): Use base thread when
5197 forwarding operation.
5198
5199 2020-08-07 Tom Tromey <tromey@adacore.com>
5200
5201 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5202 "is_pid" case.
5203
5204 2020-08-07 Tom Tromey <tromey@adacore.com>
5205
5206 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5207 New methods.
5208 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5209 first.
5210 (ravenscar_thread_target::add_thread): Rename from
5211 ravenscar_add_thread.
5212 (ravenscar_thread_target::update_thread_list): Use a lambda.
5213 (ravenscar_thread_target::xfer_partial): New method.
5214
5215 2020-08-07 Tom Tromey <tromey@adacore.com>
5216
5217 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5218 gdb::function_view.
5219 (iterate_over_live_ada_tasks): Change type of argument.
5220 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5221 of argument.
5222
5223 2020-08-07 Tom Tromey <tromey@adacore.com>
5224
5225 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5226 Remove.
5227 (ravenscar_thread_target::extra_thread_info): Remove.
5228 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5229 defer to target beneath for non-Ravenscar threads.
5230
5231 2020-08-07 Tom Tromey <tromey@adacore.com>
5232
5233 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5234 get_base_thread_from_ravenscar_task>: Now methods.
5235 <m_cpu_map>: New member.
5236 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5237 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5238 (ravenscar_thread_target::task_is_currently_active): Update.
5239 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5240 Now a method.
5241 (ravenscar_thread_target::add_active_thread): Put initial thread
5242 into the m_cpu_map.
5243
5244 2020-08-07 Tom Tromey <tromey@adacore.com>
5245
5246 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5247 event_ptid.
5248
5249 2020-08-07 Tom Tromey <tromey@adacore.com>
5250
5251 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5252 runtime_initialized.
5253
5254 2020-08-07 Tom Tromey <tromey@adacore.com>
5255
5256 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5257 add_active_thread.
5258 (ravenscar_thread_target::add_active_thread): Now public.
5259 (ravenscar_inferior_created): Call add_active_thread after pushing
5260 the target.
5261
5262 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5263
5264 * regcache.c (ptid_regcache_map): New type.
5265 (target_ptid_regcache_map): New type.
5266 (regcaches): Change type to target_ptid_regcache_map.
5267 (get_thread_arch_aspace_regcache): Update to regcaches' new
5268 type.
5269 (regcache_thread_ptid_changed): Likewise.
5270 (registers_changed_ptid): Likewise.
5271 (regcaches_size): Likewise.
5272 (regcaches_test): Update.
5273 (regcache_thread_ptid_changed): Update.
5274 * regcache.h (regcache_up): New type.
5275 * gdbsupport/ptid.h (hash_ptid): New struct.
5276
5277 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * observable.h (thread_ptid_changed): Add parameter
5280 `process_stratum_target *`.
5281 * infrun.c (infrun_thread_ptid_changed): Add parameter
5282 `process_stratum_target *` and use it.
5283 (selftests): New namespace.
5284 (infrun_thread_ptid_changed): New function.
5285 (_initialize_infrun): Register selftest.
5286 * regcache.c (regcache_thread_ptid_changed): Add parameter
5287 `process_stratum_target *` and use it.
5288 (regcache_thread_ptid_changed): New function.
5289 (_initialize_regcache): Register selftest.
5290 * thread.c (thread_change_ptid): Pass target to
5291 thread_ptid_changed observable.
5292
5293 2020-08-06 Caroline Tice <cmtice@google.com>
5294
5295 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5296 (struct dwp_sections): Update field comments. Add loclists and
5297 rnglists fields.
5298 (struct virtual_v2_dwo_sections): Rename struct to
5299 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5300 size & offset fields for loclists and rnglists.
5301 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5302 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5303 skipping dummy type units.
5304 (create_dwp_hash_table): Update the large comment above the function to
5305 discuss Version 5 DWP files as well, with references. Update all the
5306 version checks in the function to check for version 5 as well. Add new
5307 section at the end to create dwp hash table for version 5.
5308 (create_dwp_v2_section): Rename function to
5309 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5310 Add V5 to error message text.
5311 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5312 into calls to create_dwp_v2_or_v5_section.
5313 (create_dwo_unit_in_dwp_v5): New function.
5314 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5315 check for version2; add else clause to handle version 5.
5316 (open_and_init_dwo_file): Add code to check dwarf version & only call
5317 create_debug_types_hash_table (with sections.types) if version is not 5;
5318 else call create_debug_type_hash_table, with sections.info.
5319 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5320 version 5.
5321 (dwarf2_locate_v5_dwp_sections): New function.
5322 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5323 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5324
5325 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * regcache.h (class regcache): Remove friend
5328 registers_changed_ptid.
5329 <regcache_thread_ptid_changed>: Remove.
5330 <regcaches>: Remove.
5331 * regcache.c (regcache::regcaches): Rename to...
5332 (regcaches): ... this. Make static.
5333 (get_thread_arch_aspace_regcache): Update.
5334 (regcache::regcache_thread_ptid_changed): Rename to...
5335 (regcache_thread_ptid_changed): ... this. Update.
5336 (class regcache_access): Remove.
5337 (regcaches_test): Update.
5338 (_initialize_regcache): Update.
5339 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5340 <forward_list>.
5341
5342 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * regcache.h (class regcache) <current_regcache>: Rename to...
5345 <regcaches>: ... this. Move doc here.
5346 * regcache.c (regcache::current_regcache) Rename to...
5347 (regcache::regcaches): ... this. Move doc to header.
5348 (get_thread_arch_aspace_regcache): Update.
5349 (regcache::regcache_thread_ptid_changed): Update.
5350 (registers_changed_ptid): Update.
5351 (class regcache_access) <current_regcache_size>: Rename to...
5352 <regcaches_size>: ... this.
5353 (current_regcache_test): Rename to...
5354 (regcaches_test): ... this.
5355 (_initialize_regcache): Update.
5356
5357 2020-08-06 Victor Collod <vcollod@nvidia.com>
5358
5359 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5360
5361 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5362
5363 * corelow.c (core_target::build_file_mappings): Don't output
5364 null pathname in warning.
5365
5366 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5369 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5370 gdb.dwarf2/dw2-single-line-discriminators.exp,
5371 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5372
5373 2020-08-05 Tom Tromey <tromey@adacore.com>
5374
5375 PR rust/26197:
5376 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5377 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5378 Fix off-by-one and type size errors in ordinary case.
5379
5380 2020-08-05 Tom de Vries <tdevries@suse.de>
5381
5382 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5383 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5384
5385 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * frame.h (frame_id_p): Return bool.
5388 (frame_id_artificial_p): Return bool.
5389 (frame_id_eq): Return bool.
5390 (has_stack_frames): Return bool.
5391 (get_selected_frame): Fix typo in comment.
5392 (get_frame_pc_if_available): Return bool.
5393 (get_frame_address_in_block_if_available): Return bool.
5394 (get_frame_func_if_available): Return bool.
5395 (read_frame_register_unsigned): Return bool.
5396 (get_frame_register_bytes): Return bool.
5397 (safe_frame_unwind_memory): Return bool.
5398 (deprecated_frame_register_read): Return bool.
5399 (frame_unwinder_is): Return bool.
5400 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5401 bool.
5402 <this_id::p>: Likewise.
5403 <prev_p>: Likewise.
5404 (frame_stash_add): Return bool.
5405 (get_frame_id): Use bool.
5406 (frame_id_build_special) Use bool.
5407 (frame_id_build_unavailable_stack): Use bool.
5408 (frame_id_build): Use bool.
5409 (frame_id_p): Return bool, use true/false instead of 1/0.
5410 (frame_id_artificial_p): Likewise.
5411 (frame_id_eq): Likewise.
5412 (frame_id_inner): Likewise.
5413 (get_frame_func_if_available): Likewise.
5414 (read_frame_register_unsigned): Likewise.
5415 (deprecated_frame_register_read): Likewise.
5416 (get_frame_register_bytes): Likewise.
5417 (has_stack_frames): Likewise.
5418 (inside_main_func): Likewise.
5419 (inside_entry_func): Likewise.
5420 (get_frame_pc_if_available): Likewise.
5421 (get_frame_address_in_block_if_available): Likewise.
5422 (frame_unwinder_is): Likewise.
5423 (safe_frame_unwind_memory): Likewise.
5424 (frame_unwind_arch): Likewise.
5425
5426 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5429 type to cached_copy_status.
5430 (fprintf_frame): Adjust.
5431 (get_frame_func_if_available): Adjust.
5432 (frame_cleanup_after_sniffer): Adjust.
5433
5434 2020-08-04 Mark Wielaard <mark@klomp.org>
5435
5436 * MAINTAINERS (Write After Approval): Update email address.
5437
5438 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5439
5440 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5441 dynamic_prop::const_val.
5442
5443 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5444
5445 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5446 dynamic_prop::kind.
5447
5448 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5451
5452 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5453
5454 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5455
5456 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5457 Jose E. Marchesi <jose.marchesi@oracle.com>
5458
5459 * configure.tgt: Add entry for bpf-*-*.
5460 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5461 (ALLDEPFILES): Add bpf-tdep.c.
5462 * bpf-tdep.c: New file.
5463 * MAINTAINERS: Add bpf target and maintainer.
5464 * NEWS: Mention the support for the new target.
5465
5466 2020-08-04 Tom de Vries <tdevries@suse.de>
5467
5468 PR symtab/23270
5469 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5470 Error.
5471
5472 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5473
5474 * syscalls/freebsd.xml: Regenerate.
5475
5476 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5477
5478 * syscalls/update-freebsd.sh: Fix usage and year range.
5479
5480 2020-08-03 Tom de Vries <tdevries@suse.de>
5481
5482 PR symtab/26333
5483 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5484 DW_LNE_lo_user/DW_LNE_hi_user range.
5485
5486 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5487
5488 PR ada/26318
5489 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5490 kind.
5491
5492 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5493
5494 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5495
5496 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * breakpoint.c (set_breakpoint_condition): Update the condition
5499 expressions after checking that the input condition string parses
5500 successfully and does not contain junk at the end.
5501
5502 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5503
5504 * breakpoint.c (set_breakpoint_condition): Update the
5505 condition string after parsing the new condition successfully.
5506
5507 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5508
5509 * proc-api.c (_STRUCTURED_PROC): Don't define.
5510 * proc-events.c: Likewise.
5511 * proc-flags.c: Likewise.
5512 * proc-why.c: Likewise.
5513 * procfs.c: Likewise.
5514
5515 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5516 * configure, config.in: Regenerate.
5517
5518 2020-07-30 Tom de Vries <tdevries@suse.de>
5519
5520 PR build/26320
5521 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5522 m_red/m_green/m_blue in a union.
5523
5524 2020-07-29 Tom de Vries <tdevries@suse.de>
5525
5526 PR tdep/26280
5527 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5528
5529 2020-07-28 Tom Tromey <tromey@adacore.com>
5530
5531 PR symtab/26270:
5532 * symtab.h (find_pc_partial_function_sym): Declare.
5533 * cli/cli-cmds.c (disassemble_command): Use
5534 find_pc_partial_function_sym. Check asm_demangle.
5535 * blockframe.c (cache_pc_function_sym): New global.
5536 (cache_pc_function_name): Remove.
5537 (clear_pc_function_cache): Update.
5538 (find_pc_partial_function_sym): New function, from
5539 find_pc_partial_function.
5540 (find_pc_partial_function): Rewrite using
5541 find_pc_partial_function_sym.
5542
5543 2020-07-28 Tom Tromey <tromey@adacore.com>
5544
5545 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5546 help. Add usage.
5547
5548 2020-07-28 Tom Tromey <tromey@adacore.com>
5549
5550 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5551 <DW_OP_GNU_variable_value>: Cast to address type.
5552
5553 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5554
5555 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5556 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5557 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5558 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5559 (nbsd_get_siginfo_type): New.
5560 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5561 (_initialize_nbsd_tdep): New.
5562
5563 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5564
5565 PR binutils/26301
5566 * configure: Regenerated.
5567
5568 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5569
5570 PR binutils/26301
5571 * configure: Regenerated.
5572
5573 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * python/py-frame.c: Remove 'user-regs.h' include.
5576 (frapy_read_register): Rewrite to make use of
5577 gdbpy_parse_register_id.
5578 * python/py-registers.c (gdbpy_parse_register_id): New function,
5579 moved here from python/py-unwind.c. Updated the return type, and
5580 also accepts register descriptor objects.
5581 * python/py-unwind.c: Remove 'user-regs.h' include.
5582 (pyuw_parse_register_id): Moved to python/py-registers.c.
5583 (unwind_infopy_add_saved_register): Update to use
5584 gdbpy_parse_register_id.
5585 (pending_framepy_read_register): Likewise.
5586 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5587
5588 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * python/py-registers.c: Add 'user-regs.h' include.
5591 (register_descriptor_iter_find): New function.
5592 (register_descriptor_iterator_object_methods): New static global
5593 methods array.
5594 (register_descriptor_iterator_object_type): Add pointer to methods
5595 array.
5596
5597 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5598
5599 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5600 for all architectures on FreeBSD 11.3 and later.
5601
5602 2020-07-27 Tom Tromey <tromey@adacore.com>
5603
5604 * gcore.h (load_corefile): Don't declare.
5605
5606 2020-07-27 Tom de Vries <tdevries@suse.de>
5607
5608 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5609 * config.in: Regenerate.
5610 * configure: Regenerate.
5611
5612 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5613
5614 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5615 ws2tcpip.h. When checking whether socklen_t type is defined, use
5616 ws2tcpip.h if it is available and sys/socket.h isn't.
5617 * configure: Regenerate.
5618 * config.in: Regenerate.
5619
5620 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 PR fortran/23051
5623 PR fortran/26139
5624 * valops.c (value_ind): Pass address to
5625 readjust_indirect_value_type.
5626 * value.c (readjust_indirect_value_type): Make parameter
5627 non-const, and add extra address parameter. Resolve original type
5628 before using it.
5629 * value.h (readjust_indirect_value_type): Update function
5630 signature and comment.
5631
5632 2020-07-25 Tom de Vries <tdevries@suse.de>
5633
5634 PR symtab/26243
5635 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5636 entries.
5637
5638 2020-07-24 Aaron Merey <amerey@redhat.com>
5639
5640 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5641 * configure: Rebuild.
5642
5643 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5644
5645 PR corefiles/26294
5646 * corelow.c (_initialize_corelow): Add period to help text
5647 for "maintenance print core-file-backed-mappings".
5648
5649 2020-07-23 Pedro Alves <pedro@palves.net>
5650
5651 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5652 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5653 meanwhile.
5654 * frame.c (frame_cache_generation, get_frame_cache_generation):
5655 New.
5656 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5657 (get_prev_frame_if_no_cycle): On exception, don't touch
5658 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5659 * frame.h (get_frame_cache_generation): Declare.
5660
5661 2020-07-23 Tom de Vries <tdevries@suse.de>
5662
5663 PR tui/26282
5664 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5665 New default constructor.
5666
5667 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5670 exclude non-statement entries.
5671
5672 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5673
5674 * NEWS (New commands): Mention new command
5675 "maintenance print core-file-backed-mappings".
5676
5677 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5678
5679 * corelow.c (gdbcmd.h): Include.
5680 (core_target::info_proc_mappings): New method.
5681 (get_current_core_target): New function.
5682 (maintenance_print_core_file_backed_mappings): New function.
5683 (_initialize_corelow): Add core-file-backed-mappings to
5684 "maint print" commands.
5685
5686 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5687
5688 * linux-tdep.c (dump_note_entry_p): New function.
5689 (linux_dump_mapping_p_ftype): New typedef.
5690 (linux_find_memory_regions_full): Add new parameter,
5691 should_dump_mapping_p.
5692 (linux_find_memory_regions): Adjust call to
5693 linux_find_memory_regions_full.
5694 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5695 call to linux_find_memory_regions_full.
5696
5697 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5698
5699 * corelow.c (solist.h, unordered_map): Include.
5700 (class core_target): Add field m_core_file_mappings and
5701 method build_file_mappings.
5702 (core_target::core_target): Call build_file_mappings.
5703 (core_target::~core_target): Free memory associated with
5704 m_core_file_mappings.
5705 (core_target::build_file_mappings): New method.
5706 (core_target::xfer_partial): Use m_core_file_mappings
5707 for memory transfers.
5708 * linux-tdep.c (linux_read_core_file_mappings): New
5709 function.
5710 (linux_core_info_proc_mappings): Rewrite to use
5711 linux_read_core_file_mappings.
5712 (linux_init_abi): Register linux_read_core_file_mappings.
5713
5714 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5715
5716 * arch-utils.c (default_read_core_file_mappings): New function.
5717 * arch-utils.c (default_read_core_file_mappings): Declare.
5718 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5719 * gdbarch.h, gdbarch.c: Regenerate.
5720
5721 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5722
5723 PR corefiles/25631
5724 * corelow.c (core_target:xfer_partial): Revise
5725 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5726 case after first checking the stratum beneath the core
5727 target.
5728 (has_all_memory): Return true.
5729 * target.c (raw_memory_xfer_partial): Revise comment
5730 regarding use of has_all_memory.
5731
5732 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5733
5734 * exec.h (section_table_xfer_memory): Revise declaration,
5735 replacing section name parameter with an optional callback
5736 predicate.
5737 * exec.c (section_table_xfer_memory): Likewise.
5738 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5739 of section_table_xfer_memory.
5740
5741 2020-07-22 Tom Tromey <tromey@adacore.com>
5742
5743 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5744 lookup_symbol_search_name.
5745
5746 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5749 redundant local variable.
5750 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5751 reference, not pointer, update code accordingly.
5752
5753 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5754 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5755
5756 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5757 * jit.c (jit_breakpoint_re_set_internal): Use the
5758 `skip_jit_symbol_lookup` field.
5759
5760 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5761 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5762
5763 * jit.c (jit_read_descriptor): Define the descriptor address once,
5764 use twice.
5765 (jit_breakpoint_deleted): Move the declaration of the loop variable
5766 `iter` into the loop header.
5767 (jit_breakpoint_re_set_internal): Move the declaration of the local
5768 variable `objf_data` to the first point of definition.
5769 (jit_event_handler): Move the declaration of local variables
5770 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5771 Rename `objf` to `jited`.
5772
5773 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5774
5775 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5776 Remove.
5777 * jit.c (get_jiter_objfile_data): Update.
5778
5779 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5780 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * jit.c (struct jit_program_space_data): Remove.
5783 (jit_program_space_key): Remove.
5784 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5785 stuff.
5786 (get_jit_program_space_data): Remove.
5787 (jit_breakpoint_deleted): Iterate on all of the program space's
5788 objfiles.
5789 (jit_inferior_init): Likewise.
5790 (jit_breakpoint_re_set_internal): Likewise. Also change return
5791 type to void.
5792 (jit_breakpoint_re_set): Pass current_program_space to
5793 jit_breakpoint_re_set_internal.
5794
5795 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * jit.h (struct jiter_objfile_data) <cached_code_address,
5798 jit_breakpoint>: Move to here from ...
5799 * jit.c (jit_program_space_data): ... here.
5800 (jiter_objfile_data::~jiter_objfile_data): Update.
5801 (jit_breakpoint_deleted): Update.
5802 (jit_breakpoint_re_set_internal): Update.
5803
5804 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5807 checks.
5808 (jit_read_descriptor): Remove NULL check.
5809 (jit_event_handler): Add an assertion.
5810
5811 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * jit.h (struct jit_objfile_data): Split into...
5814 (struct jiter_objfile_data): ... this ...
5815 (struct jited_objfile_data): ... and this.
5816 * objfiles.h (struct objfile) <jit_data>: Remove.
5817 <jiter_data, jited_data>: New fields.
5818 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5819 (jiter_objfile_data::~jiter_objfile_data): ... this.
5820 (get_jit_objfile_data): Rename to ...
5821 (get_jiter_objfile_data): ... this.
5822 (add_objfile_entry): Update.
5823 (jit_read_descriptor): Use get_jiter_objfile_data.
5824 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5825 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5826 (jit_inferior_exit_hook): Use objfile's jited_data field.
5827
5828 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * jit.h: Forward-declare `struct minimal_symbol`.
5831 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5832 constructor, destructor, and an objfile* field.
5833 * jit.c (jit_objfile_data): Remove.
5834 (struct jit_objfile_data): Migrate from here to jit.h.
5835 (jit_objfile_data::~jit_objfile_data): New destructor
5836 implementation with code moved from free_objfile_data.
5837 (free_objfile_data): Delete.
5838 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5839 (jit_find_objf_with_entry_addr): Ditto.
5840 (jit_inferior_exit_hook): Ditto.
5841 (_initialize_jit): Remove the call to
5842 register_objfile_data_with_cleanup.
5843 * objfiles.h (struct objfile) <jit_data>: New field.
5844
5845 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5846
5847 * jit.h: Forward-declare `struct objfile`.
5848 (jit_event_handler): Add a second parameter, the JITer objfile.
5849 * jit.c (jit_read_descriptor): Change the signature to take the
5850 JITer objfile as an argument instead of the jit_program_space_data.
5851 (jit_inferior_init): Update the call to jit_read_descriptor.
5852 (jit_event_handler): Use the new JITer objfile argument when calling
5853 jit_read_descriptor.
5854 * breakpoint.c (handle_jit_event): Update the call to
5855 jit_event_handler to pass the JITer objfile.
5856
5857 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5858
5859 * gdbarch.c: Regenerate.
5860 * gdbarch.h: Regenerate.
5861 * gdbarch.sh (handle_segmentation_fault): Remove method.
5862 * infrun.c (handle_segmentation_fault): Remove.
5863 (print_signal_received_reason): Remove call to
5864 handle_segmentation_fault.
5865
5866 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5867
5868 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5869 Rename to sparc64_linux_report_signal_info and add siggnal
5870 argument.
5871 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5872 instead of sparc64_linux_handle_segmentation_fault.
5873
5874 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5875
5876 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5877 i386_linux_report_signal_info instead of
5878 i386_linux_handle_segmentation_fault.
5879 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5880 to i386_linux_report_signal_info and add siggnal argument.
5881 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5882 of i386_linux_handle_segmentation_fault.
5883 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5884 to i386_linux_report_signal_info and add siggnal argument.
5885
5886 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5887
5888 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5889 hook if present.
5890
5891 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5892
5893 * gdbarch.c: Regenerate.
5894 * gdbarch.h: Regenerate.
5895 * gdbarch.sh (report_signal_info): New method.
5896 * infrun.c (print_signal_received_reason): Invoke gdbarch
5897 report_signal_info hook if present.
5898
5899 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * python/py-registers.c : Add 'unordered_map' include.
5902 (gdbpy_new_reggroup): Renamed to...
5903 (gdbpy_get_reggroup): ...this. Update to only create register
5904 group descriptors when needed.
5905 (gdbpy_reggroup_iter_next): Update.
5906
5907 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5908
5909 * python/py-registers.c (gdbpy_register_object_data): New static
5910 global.
5911 (gdbpy_register_object_data_init): New function.
5912 (gdbpy_new_register_descriptor): Renamed to...
5913 (gdbpy_get_register_descriptor): ...this, and update to reuse
5914 existing register descriptors where possible.
5915 (gdbpy_register_descriptor_iter_next): Update.
5916 (gdbpy_initialize_registers): Register new gdbarch data.
5917
5918 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5919
5920 * linux-nat.c (stopped_pids): Make static.
5921
5922 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 PR ada/26235
5925 * gdbtypes.c (ada_discrete_type_low_bound,
5926 ada_discrete_type_high_bound): Handle undefined bounds.
5927
5928 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5929
5930 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5931 declaration.
5932 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5933 function.
5934
5935 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5936
5937 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5938 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5939 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5940 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5941 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5942 method.
5943
5944 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5945
5946 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5947 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5948 which are deprecated in Guile 3.0.
5949 * configure.ac (try_guile_versions): Add "guile-3.0".
5950 * configure (try_guile_versions): Regenerate.
5951 * NEWS: Update entry.
5952
5953 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5954 Doug Evans <dje@google.com>
5955
5956 PR gdb/21104
5957 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5958 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5959 USING_GUILE_BEFORE_2_2.
5960 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5961 Change type to 'scm_t_port_type *'.
5962 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5963 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5964 parameter and honor it. Update callers.
5965 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5966 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5967 functions.
5968 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5969 USING_GUILE_BEFORE_2_2.
5970 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5971 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5972 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5973 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5974 and 'SCM_PORT_TYPE'.
5975 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5976 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5977 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5978 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5979 [!USING_GUILE_BEFORE_2_2]: New functions.
5980 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5981 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5982 'gdbscm_memory_port_read'.
5983 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5984 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5985 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5986 function.
5987 (ioscm_init_memory_port): Remove.
5988 (ioscm_init_memory_port_stream): New function
5989 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5990 function.
5991 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5992 Return scm_from_uint (0).
5993 (gdbscm_set_memory_port_read_buffer_size_x)
5994 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5995 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5996 Return scm_from_uint (0).
5997 (gdbscm_set_memory_port_write_buffer_size_x)
5998 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5999 * configure.ac (try_guile_versions): Add "guile-2.2".
6000 * configure: Regenerate.
6001 * NEWS: Add entry.
6002
6003 2020-07-18 Tom Tromey <tom@tromey.com>
6004
6005 * linux-nat.c (linux_multi_process): Remove.
6006 (linux_nat_target::supports_multi_process): Return true.
6007
6008 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6009
6010 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6011 (riscv_lookup_target_description): Return pointer out of
6012 unique_ptr.
6013 * target-descriptions.c (allocate_target_description): Add
6014 comment.
6015 (target_desc_deleter::operator()): Likewise.
6016 * target-descriptions.h (struct target_desc_deleter): Moved to
6017 gdbsupport/tdesc.h.
6018 (target_desc_up): Likewise.
6019
6020 2020-07-17 Tom Tromey <tromey@adacore.com>
6021
6022 * linux-nat.c (linux_nat_target::supports_non_stop)
6023 (linux_nat_target::always_non_stop_p): Use "true".
6024 (linux_nat_target::supports_disable_randomization): Use "true" and
6025 "false".
6026
6027 2020-07-16 Caroline Tice <cmtice@google.com>
6028
6029 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6030 (RNGLIST_HEADER_SIZE64): New constant definition.
6031 (struct dwop_section_names): Add rnglists_dwo.
6032 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6033 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6034 (struct dwo_sections): Add rnglists field.
6035 (read_attribut_reprocess): Add tag parameter.
6036 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6037 (cu_debug_rnglists_section): New function (decl & definition).
6038 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6039 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6040 die whose range is being checked; get rnglist section from
6041 cu_debug_rnglists_section, to get from either objfile or dwo file as
6042 appropriate. Add cases for DW_RLE_base_addressx,
6043 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6044 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6045 test inside if-condition and updating complaint message.
6046 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6047 dwarf2_rnglists_process.
6048 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6049 dwarf2_ranges_process.
6050 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6051 need_ranges_base and update comment appropriately. Also pass die tag
6052 to dwarf2_ranges_read.
6053 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6054 need_ranges_base and update comment appropriately. Also pass die tag
6055 to dwarf2_ranges_process.
6056 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6057 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6058 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6059 need_ranges_base and update comment appropriately. Also pass die tag
6060 to read_attribute_reprocess and dwarf2_ranges_read.
6061 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6062 and update function comment appropriately.
6063 (read_loclist_index): Call read_loclists_rnglists_header instead of
6064 read_loclist_header.
6065 (read_rnglist_index): New function.
6066 (read_attribute_reprocess): Add tag parameter. Add code for
6067 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6068 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6069
6070 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6071
6072 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6073 being resolved.
6074
6075 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * arch-utils.c (show_architecture): Update formatting of messages.
6078
6079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * gdbtypes.h (struct type) <bounds>: Handle array and string
6082 types.
6083 * ada-lang.c (assign_aggregate): Use type::bounds on
6084 array/string type.
6085 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6086 * c-varobj.c (c_number_of_children): Likewise.
6087 (c_describe_child): Likewise.
6088 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6089 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6090 (f_type_print_base): Likewise.
6091 * f-valprint.c (f77_array_offset_tbl): Likewise.
6092 (f77_get_upperbound): Likewise.
6093 (f77_print_array_1): Likewise.
6094 * guile/scm-type.c (gdbscm_type_range): Likewise.
6095 * m2-typeprint.c (m2_array): Likewise.
6096 (m2_is_long_set_of_type): Likewise.
6097 * m2-valprint.c (get_long_set_bounds): Likewise.
6098 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6099 * python/py-type.c (typy_range): Likewise.
6100 * rust-lang.c (rust_internal_print_type): Likewise.
6101 * type-stack.c (type_stack::follow_types): Likewise.
6102 * valarith.c (value_subscripted_rvalue): Likewise.
6103 * valops.c (value_cast): Likewise.
6104
6105 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6108 callers to use the equivalent accessor methods.
6109
6110 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6113 (struct type) <bit_stride>: New method.
6114 (TYPE_BIT_STRIDE): Remove.
6115 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6116
6117 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6120 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6121 callers to use the equivalent accessor methods instead.
6122
6123 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6126 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6127 callers to use the equivalent accessor methods instead.
6128
6129 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6132 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6133 to use dynamic_prop::kind.
6134
6135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6138 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6139 to get the bound property's kind and check against
6140 PROP_UNDEFINED.
6141
6142 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6143
6144 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6145 all callers to use type::range_bounds followed by
6146 dynamic_prop::{low,high}.
6147
6148 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6151 const_val, set_const_val, baton, set_locexpr, set_loclist,
6152 set_addr_offset, variant_parts, set_variant_parts,
6153 original_type, set_original_type>: New methods.
6154 <kind>: Rename to...
6155 <m_kind>: ... this. Update all users to use the new methods
6156 instead.
6157 <data>: Rename to...
6158 <m_data>: ... this. Update all users to use the new methods
6159 instead.
6160
6161 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.c (get_discrete_bounds): Return failure if
6164 the range type's bounds are not both defined and constant
6165 values.
6166 (get_array_bounds): Update comment. Remove undefined bound check.
6167
6168 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6169
6170 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6171 the type::bounds method directly.
6172
6173 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6174
6175 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6176 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6177 are used to set the range type's bounds to use set_bounds.
6178
6179 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6180
6181 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6182
6183 2020-07-10 Pedro Alves <pedro@palves.net>
6184
6185 * gdbthread.h (inferior_ref): Define.
6186 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6187 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6188 * thread.c
6189 (scoped_restore_current_thread::restore):
6190 Adjust to gdb::ref_ptr.
6191 (scoped_restore_current_thread::~scoped_restore_current_thread):
6192 Remove manual decref handling.
6193 (scoped_restore_current_thread::scoped_restore_current_thread):
6194 Adjust to use
6195 inferior_ref::new_reference/thread_info_ref::new_reference.
6196 Incref the thread before calling get_frame_id instead of after.
6197 Let TARGET_CLOSE_ERROR propagate.
6198
6199 2020-07-10 Pedro Alves <pedro@palves.net>
6200
6201 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6202 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6203 NOT_AVAILABLE_ERROR.
6204 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6205 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6206
6207 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6208 Pedro Alves <pedro@palves.net>
6209
6210 PR gdb/26199
6211 * infrun.c (threads_are_resumed_pending_p): Delete.
6212 (do_target_wait): Remove threads_are_executing and
6213 threads_are_resumed_pending_p checks from the inferior_matches
6214 lambda. Update comments.
6215
6216 2020-07-10 Pedro Alves <pedro@palves.net>
6217
6218 PR gdb/26199
6219 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6220 executing threads.
6221
6222 2020-07-10 Pedro Alves <pedro@palves.net>
6223
6224 PR gdb/26199
6225 * infrun.c (handle_no_resumed): Handle multiple targets.
6226
6227 2020-07-10 Pedro Alves <pedro@palves.net>
6228
6229 PR gdb/26199
6230 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6231 target_is_async_p.
6232
6233 2020-07-10 Pedro Alves <pedro@palves.net>
6234
6235 PR gdb/26199
6236 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6237 threads, not all threads.
6238
6239 2020-07-10 Pedro Alves <pedro@palves.net>
6240
6241 PR gdb/26199
6242 * remote.c (remote_target::open_1): Pass remote target pointer as
6243 data to create_async_event_handler.
6244 (remote_async_inferior_event_handler): Mark async event handler
6245 before returning if the remote target still has either pending
6246 events or unacknowledged notifications.
6247
6248 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6249
6250 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6251 declaration.
6252 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6253 function.
6254
6255 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6256
6257 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6258 inferior_ptid.
6259
6260 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6261
6262 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6263 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6264 AT_FREEBSD_PS_STRINGS.
6265
6266 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6267
6268 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6269 of debugfile path on Windows.
6270
6271 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6272
6273 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6274 argument to 'data'.
6275
6276 2020-07-08 Tom Tromey <tromey@adacore.com>
6277
6278 * ada-lang.c (ada_exception_message_1): Use read_memory.
6279
6280 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6281
6282 PR python/22748
6283 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6284 special handling for inline frames.
6285 * findvar.c (value_of_register_lazy): Skip inline frames when
6286 creating lazy register values.
6287 * frame.c (frame_id_computed_p): Delete definition.
6288 * frame.h (frame_id_computed_p): Delete declaration.
6289
6290 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6291
6292 * NEWS: Mention additions to Python API.
6293 * python/py-arch.c (archpy_register_groups): New function.
6294 (arch_object_methods): Add 'register_groups' method.
6295 * python/py-registers.c (reggroup_iterator_object): New struct.
6296 (reggroup_object): New struct.
6297 (gdbpy_new_reggroup): New function.
6298 (gdbpy_reggroup_to_string): New function.
6299 (gdbpy_reggroup_name): New function.
6300 (gdbpy_reggroup_iter): New function.
6301 (gdbpy_reggroup_iter_next): New function.
6302 (gdbpy_new_reggroup_iterator): New function
6303 (gdbpy_initialize_registers): Register new types.
6304 (reggroup_iterator_object_type): Define new Python type.
6305 (gdbpy_reggroup_getset): New static global.
6306 (reggroup_object_type): Define new Python type.
6307 * python/python-internal.h
6308
6309 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6312 * python/py-arch.c (archpy_registers): New function.
6313 (arch_object_methods): Add 'registers' method.
6314 * python/py-registers.c: New file.
6315 * python/python-internal.h
6316 (gdbpy_new_register_descriptor_iterator): Declare.
6317 (gdbpy_initialize_registers): Declare.
6318 * python/python.c (do_start_initialization): Call
6319 gdbpy_initialize_registers.
6320 * NEWS: Mention additions to the Python API.
6321
6322 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * NEWS: Mention new Python API method.
6325 * python/py-unwind.c (pending_framepy_architecture): New function.
6326 (pending_frame_object_methods): Add architecture method.
6327
6328 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 * gdbarch.c: Regenerate.
6331 * gdbarch.h: Regenerate.
6332 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6333 (gdbarch_data): Use internal_error for the case where
6334 deprecated_set_gdbarch_data was originally needed.
6335 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6336 and use passed in obstack.
6337 (libunwind_frame_set_descr): Should no longer get back NULL from
6338 gdbarch_data.
6339 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6340 type.
6341 * user-regs.c (user_regs_init): Update parameters, and use passed
6342 in obstack.
6343 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6344 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6345
6346 2020-07-06 Tom de Vries <tdevries@suse.de>
6347
6348 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6349 End-Of-Sequence in lte_is_less_than.
6350 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6351 "gdb: Don't reorder line table entries too much when sorting".
6352
6353 2020-07-06 Tom de Vries <tdevries@suse.de>
6354
6355 PR tui/26205
6356 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6357
6358 2020-07-05 Tom de Vries <tdevries@suse.de>
6359
6360 PR build/26187
6361 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6362 std::uncaught_exceptions instead of deprecated
6363 std::uncaught_exception.
6364
6365 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * macroexp.h (macro_stringify): Return
6368 gdb::unique_xmalloc_ptr<char>.
6369 * macroexp.c (macro_stringify): Likewise.
6370 * macrotab.c (fixup_definition): Update.
6371
6372 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6373
6374 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6375 (lex_one_token): Update.
6376 * macroexp.c (struct macro_buffer) <release>: Return
6377 gdb::unique_xmalloc_ptr<char>.
6378 (macro_stringify): Update.
6379 (macro_expand): Update.
6380 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6381 * macroexp.h (macro_expand_next): Likewise.
6382
6383 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * macroexp.h (macro_lookup_ftype): Remove.
6386 (macro_expand, macro_expand_once, macro_expand_next): Remove
6387 lookup function parameters, add scope parameter.
6388 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6389 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6390 * macroscope.h (standard_macro_lookup): Change parameter type
6391 to macro_scope.
6392 * macroscope.c (standard_macro_lookup): Likewise.
6393 * c-exp.y (lex_one_token): Update.
6394 * macrocmd.c (macro_expand_command): Likewise.
6395 (macro_expand_once_command): Likewise.
6396
6397 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * inf-loop.c (inferior_event_handler): Remove client_data param.
6400 * inf-loop.h (inferior_event_handler): Likewise.
6401 * infcmd.c (step_1): Adjust.
6402 * infrun.c (proceed): Adjust.
6403 (fetch_inferior_event): Remove client_data param.
6404 (infrun_async_inferior_event_handler): Adjust.
6405 * infrun.h (fetch_inferior_event): Remove `void *` param.
6406 * linux-nat.c (handle_target_event): Adjust.
6407 * record-btrace.c (record_btrace_handle_async_inferior_event):
6408 Adjust.
6409 * record-full.c (record_full_async_inferior_event_handler):
6410 Adjust.
6411 * remote.c (remote_async_inferior_event_handler): Adjust.
6412
6413 2020-07-01 Tom Tromey <tom@tromey.com>
6414
6415 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6416 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6417
6418 2020-07-01 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6421 tui_gen_win_info.
6422 (tui_win_info::make_window): Merge with
6423 tui_gen_win_info::make_window.
6424 (tui_win_info::make_visible): Move from tui_gen_win_info.
6425 * tui/tui-win.c (tui_win_info::max_width): Move from
6426 tui_gen_win_info.
6427 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6428 type.
6429 <window_factory>: Likewise.
6430 * tui/tui-layout.c (tui_win_info::resize): Move from
6431 tui_gen_win_info.
6432 (make_standard_window): Change return type.
6433 (get_locator_window, tui_get_window_by_name): Likewise.
6434 (tui_layout_window::apply): Remove a cast.
6435 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6436 (struct tui_win_info): Merge with tui_gen_win_info.
6437 (struct tui_gen_win_info): Remove.
6438
6439 2020-07-01 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-stack.h (struct tui_locator_window): Derive from
6442 tui_win_info.
6443 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6444 <can_box>: New method.
6445
6446 2020-07-01 Tom Tromey <tom@tromey.com>
6447
6448 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6449
6450 2020-07-01 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-regs.c (tui_data_window::display_registers_from)
6453 (tui_data_window::display_registers_from)
6454 (tui_data_window::first_data_item_displayed)
6455 (tui_data_window::delete_data_content_windows): Update.
6456 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6457 Remove.
6458 (tui_data_window::check_register_values): Update.
6459 (tui_data_item_window::rerender): Add parameters. Update.
6460 (tui_data_item_window::refresh_window): Remove.
6461 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6462 virtual.
6463 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6464 tui_gen_win_info.
6465 <refresh_window, max_height, min_height>: Remove.
6466 <rerender>: Add parameters.
6467 <x, y, visible>: New members.
6468 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6469 <m_item_width>: New member.
6470
6471 2020-07-01 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-regs.c (tui_data_window::show_register_group)
6474 (tui_data_window::check_register_values): Update.
6475 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6476 from item_no.
6477
6478 2020-07-01 Tom Tromey <tom@tromey.com>
6479
6480 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6481 useless "if".
6482
6483 2020-07-01 Tom Tromey <tom@tromey.com>
6484
6485 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6486 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6487
6488 2020-07-01 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6491 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6492 (struct tui_line_or_address): Move from tui-data.h.
6493 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6494 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6495 (tui_cmd_window, tui_source_window_base, tui_source_window)
6496 (tui_disasm_window): Don't declare.
6497 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6498 to tui-winsource.h.
6499 (SINGLE_KEY): Move to tui-stack.c.
6500
6501 2020-07-01 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6504 std::string.
6505 * tui/tui-regs.c (class tab_expansion_file): New.
6506 (tab_expansion_file::write): New method.
6507 (tui_register_format): Change return type. Use
6508 tab_expansion_file.
6509 (tui_get_register, tui_data_window::display_registers_from)
6510 (tui_data_item_window::rerender): Update.
6511 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6512 * tui/tui-io.c (tui_expand_tabs): Remove.
6513
6514 2020-07-01 Tom Tromey <tom@tromey.com>
6515
6516 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6517
6518 2020-07-01 Fangrui Song <maskray@google.com>
6519
6520 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6521
6522 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6523
6524 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6525 forms for DW_AT_associated and DW_AT_allocated attributes,
6526 which is already checked in function attr_to_dynamic_prop.
6527
6528 2020-06-30 Tom Tromey <tromey@adacore.com>
6529
6530 * dwarf2/read.c (quirk_rust_enum): Correctly call
6531 alloc_rust_variant for default-less enum.
6532
6533 2020-06-30 Tom Tromey <tromey@adacore.com>
6534
6535 PR build/26183:
6536 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6537 gdb::to_string.
6538
6539 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6540
6541 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6542 * gdbarch.h: Re-generate.
6543
6544 2020-06-28 Tom Tromey <tom@tromey.com>
6545
6546 * command.h (cmd_types): Remove.
6547 (cmd_type): Don't declare.
6548 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6549 typedef.
6550 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6551 * cli/cli-decode.c (cmd_type): Remove.
6552
6553 2020-06-27 Pedro Alves <palves@redhat.com>
6554
6555 * fork-child.c (prefork_hook): Adjust.
6556 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6557 Delete.
6558 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6559 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6560 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6561 Remove declarations.
6562 (struct inferior) <set_tty, tty>: New methods.
6563 (struct inferior) <terminal>: Rename to ...
6564 (struct inferior) <m_terminal>: ... this and make private.
6565 * main.c (captured_main_1): Adjust.
6566 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6567 (mi_cmd_inferior_tty_show): Adjust.
6568 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6569 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6570
6571 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6572
6573 * configure.ac: Add --enable-libctf: handle --disable-static
6574 properly.
6575 * acinclude.m4: sinclude ../config/enable.m4.
6576 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6577 (LIBCTF): Substitute in.
6578 (CTF_DEPS): New, likewise.
6579 (CLIBS): libctf needs symbols from libbfd: move earlier.
6580 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6581 flags.
6582 * ctfread.c: Surround in ENABLE_LIBCTF.
6583 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6584 * configure: Regenerate.
6585 * config.in: Likewise.
6586
6587 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6590
6591 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * inferior.h (struct inferior) <terminal>: Change type to
6594 gdb::unique_xmalloc_ptr<char>.
6595 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6596 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6597 field, adjust to unique pointer.
6598 (get_inferior_io_terminal): Adjust to unique pointer.
6599
6600 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6601
6602 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6603 registers, not just the known core set of registers.
6604
6605 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6606
6607 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6608 fflags, frm, and fcsr registers.
6609 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6610 restore groups.
6611 (riscv_tdesc_unknown_reg): New function.
6612 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6613 tdesc_use_registers.
6614 * riscv-tdep.h (struct gdbarch_tdep): Add
6615 unknown_csrs_first_regnum, unknown_csrs_count,
6616 duplicate_fflags_regnum, duplicate_frm_regnum, and
6617 duplicate_fcsr_regnum fields.
6618
6619 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6622 callback, use the callback (when not null) to help number unknown
6623 registers.
6624 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6625 (tdesc_use_registers): Add extra parameter to declaration.
6626
6627 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6628
6629 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6630 in the file.
6631 (class riscv_pending_register_alias): Likewise.
6632 (riscv_register_feature::register_info): Change 'required_p' field
6633 to 'required', and change its type. Add 'check' member function.
6634 (riscv_register_feature::register_info::check): Define new member
6635 function.
6636 (riscv_xreg_feature): Change initialisation of 'required' field.
6637 (riscv_freg_feature): Likewise.
6638 (riscv_virtual_feature): Likewise.
6639 (riscv_csr_feature): Likewise.
6640 (riscv_check_tdesc_feature): Take extra parameter, the csr
6641 tdesc_feature, rewrite the function to use the new
6642 riscv_register_feature::register_info::check function.
6643 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6644
6645 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6646
6647 * features/Makefile: Remove all references to the deleted files
6648 below.
6649 * features/riscv/32bit-csr.c: Deleted.
6650 * features/riscv/32bit-csr.xml: Deleted.
6651 * features/riscv/64bit-csr.c: Deleted.
6652 * features/riscv/64bit-csr.xml: Deleted.
6653 * features/riscv/rebuild-csr-xml.sh: Deleted.
6654
6655 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6658 whitespace error for declaration of names member variable.
6659 (struct riscv_register_feature): Add new prefer_first_name member
6660 variable, and fix whitespace error in declaration of registers.
6661 (riscv_xreg_feature): Initialize prefer_first_name field.
6662 (riscv_freg_feature): Likewise.
6663 (riscv_virtual_feature): Likewise.
6664 (riscv_csr_feature): Likewise.
6665 (riscv_register_name): Expand on comments. Remove register name
6666 modifications for CSR and virtual registers.
6667
6668 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6669
6670 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6671 errors.
6672
6673 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6674
6675 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6676 riscv-opc.h.
6677 (class riscv_pending_register_alias): New class.
6678 (riscv_check_tdesc_feature): Take vector of pending aliases and
6679 populate it as appropriate.
6680 (riscv_setup_register_aliases): Delete.
6681 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6682 to riscv_check_tdesc_feature in all cases. Use the vector to
6683 create the register aliases.
6684
6685 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6686
6687 * sol2-tdep.c (sol2_static_transform_name): Remove.
6688 (sol2_init_abi): Don't register it.
6689 * gdbarch.sh (static_transform_name): Remove.
6690 * gdbarch.c, gdbarch.h: Regenerate.
6691
6692 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6693 gdbarch_static_transform_name.
6694 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6695 * stabsread.c (define_symbol) <'X'>: Remove.
6696 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6697 handling.
6698 <'V'>: Likewise.
6699 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6700 <'S'>: Remove call to gdbarch_static_transform_name.
6701
6702 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6703
6704 * procfs.c (procfs_pre_trace): New function.
6705 (procfs_target::create_inferior): Pass it to fork_inferior.
6706
6707 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6708
6709 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6710 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6711 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6712 sol2-tdep.o, sparc-sol2-tdep.o.
6713 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6714 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6715 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6716 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6717
6718 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6719
6720 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6721 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6722 Call sol2_init_abi.
6723 Remove calls to set_gdbarch_skip_solib_resolver,
6724 set_gdbarch_core_pid_to_str.
6725 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6726 (i386_sol2_static_transform_name): Remove.
6727 (i386_sol2_init_abi): Call sol2_init_abi.
6728 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6729 set_gdbarch_static_transform_name,
6730 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6731 Use sol2_sigtramp_p.
6732 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6733 (sol2_sigtramp_p): New function.
6734 (sol2_static_transform_name): New function.
6735 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6736 (sol2_init_abi): New function.
6737 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6738 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6739 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6740 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6741 (sparc_sol2_static_transform_name): Remove.
6742 (sparc32_sol2_init_abi): Call sol2_init_abi.
6743 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6744 set_gdbarch_static_transform_name,
6745 set_gdbarch_skip_solib_resolver,
6746 set_gdbarch_core_pid_to_str.
6747 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6748 (sparc_sol2_static_transform_name): Remove
6749 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6750 call sol2_sigtramp_p.
6751 (sparc64_sol2_init_abi): Call sol2_init_abi.
6752 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6753 set_gdbarch_static_transform_name,
6754 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6755
6756 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6757
6758 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6759 * exec.c (validate_exec_file): If from_tty, set both
6760 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6761 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6762 and from_tty, unconditionally ask a confirmation.
6763
6764 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * target-descriptions.c (tdesc_architecture_name): Protect against
6767 NULL pointer dereference.
6768 (maint_print_xml_tdesc_cmd): New function.
6769 (_initialize_target_descriptions): Register new 'maint print
6770 xml-tdesc' command and give it the filename completer.
6771 * NEWS: Mention new 'maint print xml-tdesc' command.
6772
6773 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * target-descriptions.c (class tdesc_compatible_info): New class.
6776 (struct target_desc): Change type of compatible vector.
6777 (tdesc_compatible_p): Update for change in type of
6778 target_desc::compatible.
6779 (tdesc_compatible_info_list): New function.
6780 (tdesc_compatible_info_arch_name): New function.
6781 (tdesc_add_compatible): Update for change in type of
6782 target_desc::compatible.
6783 (print_c_tdesc::visit_pre): Likewise.
6784
6785 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6786
6787 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6788 whitespace to underscore.
6789 (maint_print_c_tdesc_cmd): Use fake filename for target
6790 descriptions that came from the target.
6791 (_initialize_target_descriptions): Add filename command completion
6792 for 'maint print c-tdesc'.
6793
6794 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6797 lines.
6798
6799 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6800
6801 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6802 lines.
6803 (dwarf2_find_location_expression): Likewise.
6804 (call_site_parameter_matches): Likewise.
6805 (dwarf2_compile_expr_to_ax): Likewise.
6806 (disassemble_dwarf_expression): Likewise.
6807 (loclist_describe_location): Likewise.
6808
6809 2020-06-23 Pedro Alves <palves@redhat.com>
6810
6811 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6812 progspace-and-thread.h. Include scoped-mock-context.h instead.
6813 (register_to_value_test): Use scoped_mock_context.
6814 * regcache.c: Include "scoped-mock-context.h".
6815 (cooked_read_test): Don't error out if a target is already pushed.
6816 Use scoped_mock_context. Adjust.
6817 * scoped-mock-context.h: New file.
6818
6819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6822 initializer.
6823 (ada_language::is_string_type_p): New member function.
6824 * c-lang.c (c_language_data): Delete la_is_string_type_p
6825 initializer.
6826 (cplus_language_data): Likewise.
6827 (asm_language_data): Likewise.
6828 (minimal_language_data): Likewise.
6829 * d-lang.c (d_language_data): Likewise.
6830 * f-lang.c (f_is_string_type_p): Delete function, implementation
6831 moved to f_language::is_string_type_p.
6832 (f_language_data): Delete la_is_string_type_p initializer.
6833 (f_language::is_string_type_p): New member function,
6834 implementation from f_is_string_type_p.
6835 * go-lang.c (go_is_string_type_p): Delete function, implementation
6836 moved to go_language::is_string_type_p.
6837 (go_language_data): Delete la_is_string_type_p initializer.
6838 (go_language::is_string_type_p): New member function,
6839 implementation from go_is_string_type_p.
6840 * language.c (language_defn::is_string_type_p): Define new member
6841 function.
6842 (default_is_string_type_p): Make static, add comment copied from
6843 header file.
6844 (unknown_language_data): Delete la_is_string_type_p initializer.
6845 (unknown_language::is_string_type_p): New member function.
6846 (auto_language_data): Delete la_is_string_type_p initializer.
6847 (auto_language::is_string_type_p): New member function.
6848 * language.h (language_data): Delete la_is_string_type_p field.
6849 (language_defn::is_string_type_p): Declare new function.
6850 (default_is_string_type_p): Delete desclaration, move comment to
6851 definition.
6852 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6853 moved to m2_language::is_string_type_p.
6854 (m2_language_data): Delete la_is_string_type_p initializer.
6855 (m2_language::is_string_type_p): New member function,
6856 implementation from m2_is_string_type_p.
6857 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6858 initializer.
6859 * opencl-lang.c (opencl_language_data): Likewise.
6860 * p-lang.c (pascal_is_string_type_p): Delete function,
6861 implementation moved to pascal_language::is_string_type_p.
6862 (pascal_language_data): Delete la_is_string_type_p initializer.
6863 (pascal_language::is_string_type_p): New member function,
6864 implementation from pascal_is_string_type_p.
6865 * rust-lang.c (rust_is_string_type_p): Delete function,
6866 implementation moved to rust_language::is_string_type_p.
6867 (rust_language_data): Delete la_is_string_type_p initializer.
6868 (rust_language::is_string_type_p): New member function,
6869 implementation from rust_is_string_type_p.
6870 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6871 is_string_type_p.
6872
6873 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6874
6875 * ada-lang.c (ada_language_data): Delete la_print_typedef
6876 initializer.
6877 (ada_language::print_typedef): New member function.
6878 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6879 (cplus_language_data): Likewise.
6880 (asm_language_data): Likewise.
6881 (minimal_language_data): Likewise.
6882 * d-lang.c (d_language_data): Likewise.
6883 * f-lang.c (f_language_data): Likewise.
6884 (f_language::print_typedef): New member function.
6885 * go-lang.c (go_language_data): Delete la_print_typedef
6886 initializer.
6887 * language.c (language_defn::print_typedef): Define member
6888 function.
6889 (unknown_language_data): Delete la_print_typedef initializer.
6890 (unknown_language::print_typedef): New member function.
6891 (auto_language_data): Delete la_print_typedef initializer.
6892 (auto_language::print_typedef): New member function.
6893 * language.h (language_data): Delete la_print_typedef field.
6894 (language_defn::print_typedef): Declare new member function.
6895 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6896 (default_print_typedef): Delete declaration.
6897 * m2-lang.c (m2_language_data): Delete la_print_typedef
6898 initializer.
6899 (m2_language::print_typedef): New member function.
6900 * objc-lang.c (objc_language_data): Delete la_print_typedef
6901 initializer.
6902 * opencl-lang.c (opencl_language_data): Likewise.
6903 * p-lang.c (pascal_language_data): Likewise.
6904 (pascal_language::print_typedef): New member function.
6905 * rust-lang.c (rust_print_typedef): Delete function,
6906 implementation moved to rust_language::print_typedef.
6907 (rust_language): Delete la_print_typedef initializer.
6908 (rust_language::print_typedef): New member function,
6909 implementation from rust_print_typedef.
6910 * typeprint.c (default_print_typedef): Delete.
6911
6912 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6913
6914 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6915 (ada_language::printstr): New member function.
6916 * c-lang.c (c_language_data): Delete la_printstr initializer.
6917 (cplus_language_data): Likewise.
6918 (asm_language_data): Likewise.
6919 (minimal_language_data): Likewise.
6920 * d-lang.c (d_language_data): Likewise.
6921 * f-lang.c (f_printstr): Rename to f_language::printstr.
6922 (f_language_data): Delete la_printstr initializer.
6923 (f_language::printstr): New member function, implementation from
6924 f_printstr.
6925 * go-lang.c (go_language_data): Delete la_printstr initializer.
6926 * language.c (language_defn::printstr): Define new member
6927 function.
6928 (unk_lang_printstr): Delete.
6929 (unknown_language_data): Delete la_printstr initializer.
6930 (unknown_language::printstr): New member function.
6931 (auto_language_data): Delete la_printstr initializer.
6932 (auto_language::printstr): New member function.
6933 * language.h (language_data): Delete la_printstr field.
6934 (language_defn::printstr): Declare new member function.
6935 (LA_PRINT_STRING): Update call to printstr.
6936 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6937 (m2_language_data): Delete la_printstr initializer.
6938 (m2_language::printstr): New member function, implementation from
6939 m2_printstr.
6940 * objc-lang.c (objc_language_data): Delete la_printstr
6941 initializer.
6942 * opencl-lang.c (opencl_language_data): Likewise.
6943 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6944 (pascal_language_data): Delete la_printstr initializer.
6945 (pascal_language::printstr): New member function, implementation
6946 from pascal_printstr.
6947 * p-lang.h (pascal_printstr): Delete declaration.
6948 * rust-lang.c (rust_printstr): Update header comment.
6949 (rust_language_data): Delete la_printstr initializer.
6950 (rust_language::printstr): New member function.
6951
6952 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6955 (ada_language::printchar): New member function.
6956 * c-lang.c (c_language_data): Delete la_printchar initializer.
6957 (cplus_language_data): Likewise.
6958 (asm_language_data): Likewise.
6959 (minimal_language_data): Likewise.
6960 * d-lang.c (d_language_data): Likewise.
6961 * f-lang.c (f_printchar): Rename to f_language::printchar.
6962 (f_language_data): Delete la_printchar initializer.
6963 (f_language::printchar): New member function, implementation from
6964 f_printchar.
6965 * go-lang.c (go_language_data): Delete la_printchar initializer.
6966 * language.c (unk_lang_printchar): Delete.
6967 (language_defn::printchar): Define new member function.
6968 (unknown_language_data): Delete la_printchar initializer.
6969 (unknown_language::printchar): New member function.
6970 (auto_language_data): Delete la_printchar initializer.
6971 (auto_language::printchar): New member function.
6972 * language.h (language_data): Delete la_printchar field.
6973 (language_defn::printchar): Declare new member function.
6974 (LA_PRINT_CHAR): Update call to printchar.
6975 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6976 (m2_language::printchar): New member function.
6977 * objc-lang.c (objc_language_data): Delete la_printchar
6978 initializer.
6979 * opencl-lang.c (opencl_language_data): Likewise.
6980 * p-lang.c (pascal_language_data): Delete la_printchar
6981 initializer.
6982 (pascal_language::printchar): New member function.
6983 * rust-lang.c (rust_printchar): Rename to
6984 rust_language::printchar.
6985 (rust_language_data): Delete la_printchar initializer.
6986 (rust_language::printchar): New member function, implementation
6987 from rust_printchar.
6988
6989 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6990
6991 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6992 (ada_language_data): Delete la_emitchar initializer.
6993 (ada_language::emitchar): New member function, implementation from
6994 emit_char.
6995 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6996 (cplus_language_data): Likewise.
6997 (asm_language_data): Likewise.
6998 (minimal_language_data): Likewise.
6999 * d-lang.c (d_language_data): Likewise.
7000 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7001 (f_language_data): Delete la_emitchar initializer.
7002 (f_language::emitchar): New member function, implementation from
7003 f_emit_char.
7004 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7005 * language.c (unk_lang_emit_char): Delete.
7006 (language_defn::emitchar): New member function definition.
7007 (unknown_language_data): Delete la_emitchar initializer.
7008 (unknown_language::emitchar): New member function.
7009 (auto_language_data): Delete la_emitchar initializer.
7010 (auto_language::emitchar): New member function.
7011 * language.h (language_data): Delete la_emitchar field.
7012 (language_defn::emitchar): New member field declaration.
7013 (LA_EMIT_CHAR): Update call to emitchar.
7014 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7015 (m2_language_data): Delete la_emitchar initializer.
7016 (m2_language::emitchar): New member function, implementation from
7017 m2_emit_char.
7018 * objc-lang.c (objc_language_data): Delete la_emitchar
7019 initializer.
7020 * opencl-lang.c (opencl_language_data): Likewise.
7021 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7022 (pascal_language_data): Delete la_emitchar initializer.
7023 (pascal_language::emitchar): New member function, implementation
7024 from pascal_emit_char.
7025 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7026 (rust_language_data): Delete la_emitchar initializer.
7027 (rust_language::emitchar): New member function, implementation
7028 from rust_emitchar.
7029
7030 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7033 (ada_language_data): Delete la_post_parser initializer.
7034 (ada_language::post_parser): New member function.
7035 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7036 (cplus_language_data): Likewise.
7037 (asm_language_data): Likewise.
7038 (minimal_language_data): Likewise.
7039 * d-lang.c (d_language_data): Likewise.
7040 * f-lang.c (f_language_data): Likewise.
7041 * go-lang.c (go_language_data): Likewise.
7042 * language.c (unknown_language_data): Likewise.
7043 (auto_language_data): Likewise.
7044 * language.h (language_data): Delete la_post_parser field.
7045 (language_defn::post_parser): New member function.
7046 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7047 * objc-lang.c (objc_language_data): Likewise.
7048 * opencl-lang.c (opencl_language_data): Likewise.
7049 * p-lang.c (pascal_language_data): Likewise.
7050 * parse.c (parse_exp_in_context): Update call to post_parser.
7051 (null_post_parser): Delete definition.
7052 * parser-defs.h (null_post_parser): Delete declaration.
7053 * rust-lang.c (rust_language_data): Delete la_post_parser
7054 initializer.
7055
7056 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * ada-lang.c (parse): Rename to ada_language::parser.
7059 (ada_language_data): Delete la_parser initializer.
7060 (ada_language::parser): New member function, implementation from
7061 parse.
7062 * c-lang.c (c_language_data): Delete la_parser initializer.
7063 (cplus_language_data): Likewise.
7064 (asm_language_data): Likewise.
7065 (minimal_language_data): Likewise.
7066 * d-lang.c (d_language_data): Likewise.
7067 (d_language::parser): New member function.
7068 * f-lang.c (f_language_data): Delete la_parser initializer.
7069 (f_language::parser): New member function.
7070 * go-lang.c (go_language_data): Delete la_parser initializer.
7071 (go_language::parser): New member function.
7072 * language.c (unk_lang_parser): Delete.
7073 (language_defn::parser): Define new member function.
7074 (unknown_language_data): Delete la_parser initializer.
7075 (unknown_language::parser): New member function.
7076 (auto_language_data): Delete la_parser initializer.
7077 (auto_language::parser): New member function.
7078 * language.h (language_data): Delete la_parser field.
7079 (language_defn::parser): Declare new member function.
7080 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7081 (m2_language::parser): New member function.
7082 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7083 * opencl-lang.c (opencl_language_data): Likewise.
7084 * p-lang.c (pascal_language_data): Likewise.
7085 (pascal_language::parser): New member function.
7086 * parse.c (parse_exp_in_context): Update call to parser.
7087 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7088 (rust_language::parser): New member function.
7089
7090 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * top.c (print_gdb_configuration): Print --with-python-libdir
7093 configuration value.
7094
7095 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7096
7097 * NEWS: Mention change to the alias command.
7098
7099 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7100
7101 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7102 (alias_command_completer)
7103 (make_alias_options_def_group): New functions.
7104 (alias_opts, alias_option_defs): New struct and array.
7105 (alias_usage_error): Update usage.
7106 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7107 Use option framework.
7108 (_initialize_cli_cmds): Update alias command help.
7109 Update aliases command help.
7110 (show_user):
7111 Add NULL for new default_args lookup_cmd argument.
7112 (valid_command_p): Rename to validate_aliased_command.
7113 Add NULL for new default_args lookup_cmd argument. Verify that the
7114 aliased_command has no default args.
7115 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7116 (lookup_cmd_1, lookup_cmd): New argument default_args.
7117 (add_alias_cmd):
7118 Add NULL for new default_args lookup_cmd argument.
7119 (print_help_for_command): Show default args under the layout
7120 alias some_alias = some_aliased_cmd some_alias_default_arg.
7121 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7122 xfree default_args in destructor.
7123 * cli/cli-script.c (process_next_line, do_define_command):
7124 Add NULL for new default_args lookup_cmd argument.
7125 * command.h: Declare new default_args argument in lookup_cmd
7126 and lookup_cmd_1.
7127 * completer.c (complete_line_internal_1):
7128 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7129 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7130 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7131 Likewise.
7132 * infcmd.c (_initialize_infcmd): Likewise.
7133 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7134 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7135 * python/py-param.c (add_setshow_generic): Likewise.
7136 * remote.c (_initialize_remote): Likewise.
7137 * top.c (execute_command): Prepend default_args if command has some.
7138 (set_verbose):
7139 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7140 * tracepoint.c (validate_actionline, encode_actions_1):
7141 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7142
7143 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7144
7145 * jit.c (jit_read_descriptor): Use bool as the return type.
7146 (jit_breakpoint_re_set_internal): Use bool as the return type.
7147 Invert the return value logic; return true if the jit breakpoint
7148 has been successfully initialized.
7149 (jit_inferior_init): Update the call to
7150 jit_breakpoint_re_set_internal.
7151
7152 2020-06-22 Pedro Alves <palves@redhat.com>
7153
7154 PR gdb/25939
7155 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7156 Use the current inferior instead. Don't return
7157 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7158 wait again.
7159 * sol-thread.c (sol_thread_target::wait): Don't reference
7160 inferior_ptid.
7161 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7162 (sol_update_thread_list_callback): Use the current inferior's pid
7163 instead of inferior_ptid.
7164
7165 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7166
7167 * procfs.c: Cleanup many comments.
7168
7169 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7170 (AFTER_WATCHFLAG): Replace by value.
7171
7172 (MAIN_PROC_NAME_FORMAT): Inline ...
7173 (create_procinfo): ... here.
7174
7175 (procfs_debug_inferior): Remove SYS_exec handling.
7176 (syscall_is_exec): Likewise.
7177 (procfs_set_exec_trap): Likewise.
7178
7179 (syscall_is_lwp_exit): Inline in callers.
7180 (syscall_is_exit): Likewise.
7181 (syscall_is_exec): Likewise.
7182 (syscall_is_lwp_create): Likewise.
7183
7184 (invalidate_cache): Remove #if 0 code.
7185
7186 (make_signal_thread_runnable): Remove.
7187 (procfs_target::resume): Remove #if 0 code.
7188
7189 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7190
7191 PR gdb/25939
7192 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7193 call ...
7194 (procfs_target::create_inferior): ... here.
7195
7196 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7197
7198 * exec.c (validate_exec_file): Ensure the build-id is up to
7199 date by calling reopen_exec_file (that checks file timestamp
7200 to decide to re-read the file).
7201
7202 2020-06-18 Pedro Alves <palves@redhat.com>
7203
7204 PR gdb/25412
7205 * gdbthread.h (delete_thread, delete_thread_silent)
7206 (find_thread_ptid): Update comments.
7207 * thread.c (current_thread_): New global.
7208 (is_current_thread): Move higher, and reimplement.
7209 (inferior_thread): Reimplement.
7210 (set_thread_exited): Use bool. Add assertions.
7211 (add_thread_silent): Simplify thread-reuse handling by always
7212 calling delete_thread.
7213 (delete_thread): Remove intro comment.
7214 (find_thread_ptid): Skip exited threads.
7215 (switch_to_thread_no_regs): Write to current_thread_.
7216 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7217 INFERIOR_PTID. Clear current_thread_.
7218
7219 2020-06-18 Pedro Alves <palves@redhat.com>
7220
7221 * aix-thread.c (pd_update): Use switch_to_thread.
7222
7223 2020-06-18 Pedro Alves <palves@redhat.com>
7224
7225 * ravenscar-thread.c (ravenscar_thread_target): Update.
7226 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7227 (ravenscar_thread_target::add_active_thread): ... this. Don't
7228 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7229 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7230
7231 2020-06-18 Pedro Alves <palves@redhat.com>
7232
7233 * nat/windows-nat.c (current_windows_thread): Remove.
7234 * nat/windows-nat.h (current_windows_thread): Remove.
7235 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7236 Adjust.
7237 (display_selectors): Adjust to fetch the current
7238 windows_thread_info based on inferior_ptid.
7239 (fake_create_process): No longer write to current_windows_thread.
7240 (windows_nat_target::get_windows_debug_event):
7241 Don't set inferior_ptid or current_windows_thread.
7242 (windows_nat_target::wait): Adjust to not rely on
7243 current_windows_thread.
7244 (do_initial_windows_stuff): Now a method of windows_nat_target.
7245 Switch to the last_ptid thread.
7246 (windows_nat_target::attach): Adjust.
7247 (windows_nat_target::detach): Use switch_to_no_thread instead of
7248 writing to inferior_ptid directly.
7249 (windows_nat_target::create_inferior): Adjust.
7250
7251 2020-06-18 Pedro Alves <palves@redhat.com>
7252
7253 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7254
7255 2020-06-18 Pedro Alves <palves@redhat.com>
7256
7257 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7258 after creating it, instead of writing to inferior_ptid. Don't
7259 write to inferior_ptid.
7260
7261 2020-06-18 Pedro Alves <palves@redhat.com>
7262
7263 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7264
7265 2020-06-18 Pedro Alves <palves@redhat.com>
7266
7267 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7268 it, instead of writing to inferior_ptid.
7269
7270 2020-06-18 Pedro Alves <palves@redhat.com>
7271
7272 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7273 to inferior_ptid.
7274
7275 2020-06-18 Pedro Alves <palves@redhat.com>
7276
7277 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7278 instead of writing to inferior_ptid directly.
7279
7280 2020-06-18 Pedro Alves <palves@redhat.com>
7281
7282 * corelow.c (core_target::close): Use switch_to_no_thread instead
7283 of writing to inferior_ptid directly.
7284 (add_to_thread_list, core_target_open): Use switch_to_thread
7285 instead of writing to inferior_ptid directly.
7286
7287 2020-06-18 Pedro Alves <palves@redhat.com>
7288
7289 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7290 inferior_ptid.
7291 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7292 inferior_ptid.
7293 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7294 inferior_ptid directly.
7295 (darwin_nat_target::init_thread_list): Switch to thread, instead
7296 of writing to inferior_ptid.
7297 (darwin_nat_target::attach): Don't write to inferior_ptid.
7298 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7299
7300 2020-06-18 Pedro Alves <palves@redhat.com>
7301
7302 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7303 thread.
7304 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7305 Instead use switch_to_thread.
7306 (gnu_nat_target::detach): Use switch_to_no_thread
7307 instead of writing to inferior_ptid directly. Used passed-in
7308 inferior instead of looking up the inferior by pid.
7309
7310 2020-06-18 Pedro Alves <palves@redhat.com>
7311
7312 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7313 inferior_ptid.
7314
7315 2020-06-18 Pedro Alves <palves@redhat.com>
7316
7317 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7318 inferior_ptid.
7319 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7320 thread.
7321 (nto_procfs_target::detach): Avoid referencing
7322 inferior_ptid. Use switch_to_no_thread instead of writing to
7323 inferior_ptid directly.
7324 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7325 instead of writing to inferior_ptid directly.
7326 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7327 to thread.
7328
7329 2020-06-18 Pedro Alves <palves@redhat.com>
7330
7331 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7332 after creating it, instead of writing to inferior_ptid.
7333 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7334 to inferior_ptid directly.
7335 (gdbsim_target::wait): Don't write to inferior_ptid.
7336
7337 2020-06-18 Pedro Alves <palves@redhat.com>
7338
7339 * remote.c (remote_target::remote_notice_new_inferior): Use
7340 switch_to_thread instead of writing to inferior_ptid directly.
7341 (remote_target::add_current_inferior_and_thread): Use
7342 switch_to_no_thread instead of writing to inferior_ptid directly.
7343 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7344 and switch_to_thread instead of using set_current_inferior or
7345 writing to inferior_ptid directly.
7346
7347 2020-06-18 Pedro Alves <palves@redhat.com>
7348
7349 * tracectf.c (ctf_target_open): Switch to added thread instead of
7350 writing to inferior_ptid directly.
7351 (ctf_target::close): Use switch_to_no_thread instead of writing to
7352 inferior_ptid directly.
7353
7354 2020-06-18 Pedro Alves <palves@redhat.com>
7355
7356 * tracefile-tfile.c (tfile_target_open): Don't write to
7357 inferior_ptid directly, instead switch to added thread.
7358 (tfile_target::close): Use switch_to_no_thread instead of writing
7359 to inferior_ptid directly.
7360
7361 2020-06-18 Pedro Alves <palves@redhat.com>
7362
7363 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7364 (procfs_target::detach): Use switch_to_no_thread
7365 instead of writing to inferior_ptid directly.
7366 (do_attach): Change return type to void. Switch to the added
7367 thread.
7368 (procfs_target::create_inferior): Switch to the added thread.
7369 (procfs_do_thread_registers): Don't write to inferior_ptid.
7370
7371 2020-06-18 Pedro Alves <palves@redhat.com>
7372
7373 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7374 of writing to inferior_ptid.
7375 (scoped_restore_exited_inferior): Delete.
7376 (handle_vfork_child_exec_or_exit): Simplify using
7377 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7378 instead of writing to inferior_ptid.
7379 (THREAD_STOPPED_BY): Delete.
7380 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7381 (thread_stopped_by_hw_breakpoint): Delete.
7382 (save_waitstatus): Use
7383 scoped_restore_current_thread+switch_to_thread, and call
7384 target_stopped_by_watchpoint instead of
7385 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7386 instead of thread_stopped_by_sw_breakpoint, and
7387 target_stopped_by_hw_breakpoint instead of
7388 thread_stopped_by_hw_breakpoint.
7389 (handle_inferior_event)
7390 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7391 inferior_ptid directly, nor
7392 set_current_inferior/set_current_program_space. Use
7393 switch_to_thread / switch_to_inferior_no_thread instead.
7394
7395 2020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7398 instead of writing to inferior_ptid.
7399
7400 2020-06-18 Pedro Alves <palves@redhat.com>
7401
7402 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7403 added thread.
7404 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7405 to the added thread.
7406 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7407 instead of writing to inferior_ptid.
7408
7409 2020-06-18 Pedro Alves <palves@redhat.com>
7410
7411 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7412 (register_to_value_test): Mock a program_space too. Heap-allocate
7413 the address space. Don't write to inferior_ptid. Use
7414 switch_to_thread instead.
7415
7416 2020-06-18 Pedro Alves <palves@redhat.com>
7417
7418 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7419 Delete.
7420 (find_signalled_thread()): New, factored out from
7421 linux_make_corefile_notes and adjusted to handle exited threads.
7422 (linux_make_corefile_notes): Adjust to use the new
7423 find_signalled_thread.
7424
7425 2020-06-18 Pedro Alves <palves@redhat.com>
7426
7427 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7428 of saving/restoring inferior_ptid.
7429
7430 2020-06-17 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7433 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7434 declare.
7435 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7436
7437 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7438
7439 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7440 of partial symtabs.
7441
7442 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7443
7444 * regformats/reg-arm.dat: Remove.
7445 * regformats/reg-bfin.dat: Remove.
7446 * regformats/reg-cris.dat: Remove.
7447 * regformats/reg-crisv32.dat: Remove.
7448 * regformats/reg-m32r.dat: Remove.
7449 * regformats/reg-tilegx.dat: Remove.
7450 * regformats/reg-tilegx32.dat: Remove.
7451
7452 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7453
7454 * features/Makefile (WHICH): Remove arm files.
7455 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7456 * regformats/arm/arm-with-neon.dat: Remove.
7457 * regformats/arm/arm-with-vfpv2.dat: Remove.
7458 * regformats/arm/arm-with-vfpv3.dat: Remove.
7459
7460 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7461
7462 * features/Makefile (XMLTOC): Remove rx.xml.
7463
7464 2020-06-17 Pedro Alves <palves@redhat.com>
7465
7466 * gdbthread.h (thread_control_state) <trap_expected> Update
7467 comments.
7468
7469 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7470
7471 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7472 ada_language::lookup_symbol_nonlocal.
7473 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7474 (ada_language::lookup_symbol_nonlocal): New member function,
7475 implementation from ada_lookup_symbol_nonlocal.
7476 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7477 initializer.
7478 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7479 initializer.
7480 (cplus_language::lookup_symbol_nonlocal): New member function.
7481 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7482 (minimal_language_data) Likewise.
7483 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7484 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7485 initializer.
7486 (d_language::lookup_symbol_nonlocal): New member function.
7487 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7488 initializer.
7489 (f_language::lookup_symbol_nonlocal): New member function.
7490 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7491 initializer.
7492 * language.c (unknown_language_data): Likewise.
7493 (auto_language_data): Likewise.
7494 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7495 field.
7496 (language_defn::lookup_symbol_nonlocal): New member function.
7497 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7498 initializer.
7499 * objc-lang.c (objc_language_data): Likewise.
7500 * opencl-lang.c (opencl_language_data): Likewise.
7501 * p-lang.c (pascal_language_data): Likewise.
7502 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7503 rust_language::lookup_symbol_nonlocal.
7504 (rust_language_data): Delete la_lookup_symbol_nonlocal
7505 initializer.
7506 (rust_language::lookup_symbol_nonlocal): New member function,
7507 implementation from rust_lookup_symbol_nonlocal.
7508 * symtab.c (lookup_symbol_aux): Update call to
7509 lookup_symbol_nonlocal.
7510 (basic_lookup_symbol_nonlocal): Rename to...
7511 (language_defn::lookup_symbol_nonlocal): ...this, and update
7512 header comment. Remove language_defn parameter, and replace with
7513 uses of `this'.
7514 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7515
7516 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7519 initializer.
7520 (ada_language::value_print_inner): New member function.
7521 * c-lang.c (c_language_data): Delete la_value_print_inner
7522 initializer.
7523 (cplus_language_data): Likewise.
7524 (asm_language_data): Likewise.
7525 (minimal_language_data): Likewise.
7526 * d-lang.c (d_language_data): Likewise.
7527 (d_language::value_print_inner): New member function.
7528 * f-lang.c (f_language_data): Delete la_value_print_inner
7529 initializer.
7530 (f_language::value_print_inner): New member function.
7531 * f-lang.h (f_value_print_innner): Rename to...
7532 (f_value_print_inner): ...this (note spelling of 'inner').
7533 * f-valprint.c (f_value_print_innner): Rename to...
7534 (f_value_print_inner): ...this (note spelling of 'inner').
7535 * go-lang.c (go_language_data): Delete la_value_print_inner
7536 initializer.
7537 (go_language::value_print_inner): New member function.
7538 * language.c (language_defn::value_print_inner): Define new member
7539 function.
7540 (unk_lang_value_print_inner): Delete.
7541 (unknown_language_data): Delete la_value_print_inner initializer.
7542 (unknown_language::value_print_inner): New member function.
7543 (auto_language_data): Delete la_value_print_inner initializer.
7544 (auto_language::value_print_inner): New member function.
7545 * language.h (language_data): Delete la_value_print_inner field.
7546 (language_defn::value_print_inner): Delcare new member function.
7547 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7548 initializer.
7549 (m2_language::value_print_inner): New member function.
7550 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7551 initializer.
7552 * opencl-lang.c (opencl_language_data): Likewise.
7553 * p-lang.c (pascal_language_data): Likewise.
7554 (pascal_language::value_print_inner): New member function.
7555 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7556 initializer.
7557 (rust_language::value_print_inner): New member function.
7558 * valprint.c (do_val_print): Update call to value_print_inner.
7559
7560 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7561
7562 * ada-lang.c (ada_language_data): Delete la_value_print
7563 initializer.
7564 (ada_language::value_print): New member function.
7565 * c-lang.c (c_language_data): Delete la_value_print initializer.
7566 (cplus_language_data): Likewise.
7567 (asm_language_data): Likewise.
7568 (minimal_language_data): Likewise.
7569 * d-lang.c (d_language_data): Likewise.
7570 * f-lang.c (f_language_data): Likewise.
7571 * go-lang.c (go_language_data): Likewise.
7572 * language.c (unk_lang_value_print): Delete.
7573 (language_defn::value_print): Define new member function.
7574 (unknown_language_data): Delete la_value_print initializer.
7575 (unknown_language::value_print): New member function.
7576 (auto_language_data): Delete la_value_print initializer.
7577 (auto_language::value_print): New member function.
7578 * language.h (language_data): Delete la_value_print field.
7579 (language_defn::value_print): Declare new member function.
7580 (LA_VALUE_PRINT): Update call to value_print.
7581 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7582 * objc-lang.c (objc_language_data): Likewise.
7583 * opencl-lang.c (opencl_language_data): Likewise.
7584 * p-lang.c (pascal_language_data): Likewise.
7585 (pascal_language::value_print): New member function.
7586 * rust-lang.c (rust_language_data): Delete la_value_print
7587 initializer.
7588
7589 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7590
7591 * ada-lang.c (ada_watch_location_expression): Rename to
7592 ada_language::watch_location_expression.
7593 (ada_language_data): Delete la_watch_location_expression
7594 initializer.
7595 (ada_language::watch_location_expression): New member function,
7596 implementation from ada_watch_location_expression.
7597 * breakpoint.c (watch_command_1): Update call to
7598 watch_location_expression.
7599 * c-lang.c (c_watch_location_expression): Rename to
7600 language_defn::watch_location_expression.
7601 (c_language_data): Delete la_watch_location_expression
7602 initializer.
7603 (cplus_language_data): Likewise.
7604 (asm_language_data): Likewise.
7605 (minimal_language_data): Likewise.
7606 * c-lang.h (c_watch_location_expression): Delete declaration.
7607 * d-lang.c (d_language_data): Delete la_watch_location_expression
7608 initializer.
7609 * f-lang.c (f_language_data): Likewise.
7610 * go-lang.c (go_language_data): Likewise.
7611 * language.c (language_defn::watch_location_expression): Member
7612 function implementation from c_watch_location_expression.
7613 (unknown_language_data): Delete la_watch_location_expression
7614 initializer.
7615 (auto_language_data): Likewise.
7616 * language.h (language_data): Delete la_watch_location_expression
7617 field.
7618 (language_defn::watch_location_expression): Declare new member
7619 function.
7620 * m2-lang.c (m2_language_data): Delete
7621 la_watch_location_expression initializer.
7622 * objc-lang.c (objc_language_data): Likewise.
7623 * opencl-lang.c (opencl_language_data): Likewise.
7624 * p-lang.c (pascal_language_data): Likewise.
7625 * rust-lang.c (rust_watch_location_expression): Rename to
7626 rust_language::watch_location_expression.
7627 (rust_language_data): Delete la_watch_location_expression
7628 initializer.
7629 (rust_language::watch_location_expression): New member function,
7630 implementation from rust_watch_location_expression.
7631
7632 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7635 ada_language::collect_symbol_completion_matches.
7636 (ada_language_data): Delete la_collect_symbol_completion_matches
7637 initializer.
7638 (ada_language::collect_symbol_completion_matches): New member
7639 function, implementation from
7640 ada_collect_symbol_completion_matches.
7641 * c-lang.c (c_language_data): Delete
7642 la_collect_symbol_completion_matches initializer.
7643 (cplus_language_data): Likewise.
7644 (asm_language_data): Likewise.
7645 (minimal_language_data): Likewise.
7646 * d-lang.c (d_language_data): Likewise.
7647 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7648 f_language::collect_symbol_completion_matches.
7649 (f_language_data): Delete la_collect_symbol_completion_matches
7650 initializer.
7651 (f_language::collect_symbol_completion_matches) New member
7652 function, implementation from f_collect_symbol_completion_matches.
7653 * go-lang.c (go_language_data): Delete
7654 la_collect_symbol_completion_matches initializer.
7655 * language.c (unknown_language_data): Likewise.
7656 (auto_language_data): Likewise.
7657 * language.h (language_data): Delete
7658 la_collect_symbol_completion_matches field.
7659 (language_defn::collect_symbol_completion_matches): New member
7660 function.
7661 * m2-lang.c (m2_language_data): Delete
7662 la_collect_symbol_completion_matches initializer.
7663 * objc-lang.c (objc_language_data): Likewise.
7664 * opencl-lang.c (opencl_language_data): Likewise.
7665 * p-lang.c (pascal_language_data): Likewise.
7666 * rust-lang.c (rust_language_data): Likewise.
7667 * symtab.c (default_collect_symbol_completion_matches): Delete.
7668 (collect_symbol_completion_matches): Update call to
7669 collect_symbol_completion_matches.
7670 (collect_symbol_completion_matches_type): Likewise.
7671 * symtab.h (default_collect_symbol_completion_matches): Delete
7672 declaration.
7673
7674 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7675
7676 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7677 (ada_language_data): Delete la_word_break_characters initializer.
7678 (ada_language::word_break_characters): New member function.
7679 * c-lang.c (c_language_data): Delete la_word_break_characters
7680 initializer.
7681 (cplus_language_data): Likewise.
7682 (asm_language_data): Likewise.
7683 (minimal_language_data): Likewise.
7684 * completer.c: Update global comment.
7685 (advance_to_expression_complete_word_point): Update call to
7686 word_break_characters.
7687 (complete_files_symbols): Likewise.
7688 (complete_line_internal_1): Likewise.
7689 (default_completer_handle_brkchars): Likewise.
7690 (skip_quoted_chars): Likewise.
7691 * d-lang.c (d_language_data): Delete la_word_break_characters
7692 initializer.
7693 * f-lang.c (f_word_break_characters): Delete.
7694 (f_language_data): Delete la_word_break_characters initializer.
7695 (f_language::word_break_characters): New member function.
7696 * go-lang.c (go_language_data): Delete la_word_break_characters
7697 initializer.
7698 * language.c (unknown_language_data): Likewise.
7699 (auto_language_data): Likewise.
7700 * language.h (default_word_break_characters): Move declaration to
7701 earlier in the file.
7702 (language_data): Delete la_word_break_characters field.
7703 (language_defn::word_break_characters): New member function.
7704 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7705 initializer.
7706 * objc-lang.c (objc_language_data): Likewise.
7707 * opencl-lang.c (opencl_language_data): Likewise.
7708 * p-lang.c (pascal_language_data): Likewise.
7709 * rust-lang.c (rust_language_data): Likewise.
7710
7711 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7714 (ada_language_data): Delete la_get_symbol_name_matcher
7715 initializer.
7716 (language_defn::get_symbol_name_matcher_inner): New member
7717 function.
7718 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7719 initializer.
7720 (cplus_language_data): Likewise.
7721 (cplus_language::get_symbol_name_matcher_inner): New member
7722 function.
7723 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7724 (minimal_language_data): Likewise.
7725 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7726 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7727 initializer.
7728 * dictionary.c (iter_match_first_hashed): Update call to
7729 get_symbol_name_matcher.
7730 (iter_match_next_hashed): Likewise.
7731 (iter_match_next_linear): Likewise.
7732 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7733 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7734 initializer.
7735 (f_language::get_symbol_name_matcher_inner): New member function.
7736 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7737 initializer.
7738 * language.c (default_symbol_name_matcher): Update header comment,
7739 make static.
7740 (language_defn::get_symbol_name_matcher): New definition.
7741 (language_defn::get_symbol_name_matcher_inner): Likewise.
7742 (get_symbol_name_matcher): Delete.
7743 (unknown_language_data): Delete la_get_symbol_name_matcher
7744 initializer.
7745 (auto_language_data): Likewise.
7746 * language.h (language_data): Delete la_get_symbol_name_matcher
7747 field.
7748 (language_defn::get_symbol_name_matcher): New member function.
7749 (language_defn::get_symbol_name_matcher_inner): Likewise.
7750 (default_symbol_name_matcher): Delete declaration.
7751 * linespec.c (find_methods): Update call to
7752 get_symbol_name_matcher.
7753 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7754 initializer.
7755 * minsyms.c (lookup_minimal_symbol): Update call to
7756 get_symbol_name_matcher.
7757 (iterate_over_minimal_symbols): Likewise.
7758 * objc-lang.c (objc_language_data): Delete
7759 la_get_symbol_name_matcher initializer.
7760 * opencl-lang.c (opencl_language_data): Likewise.
7761 * p-lang.c (pascal_language_data): Likewise.
7762 * psymtab.c (psymbol_name_matches): Update call to
7763 get_symbol_name_matcher.
7764 * rust-lang.c (rust_language_data): Delete
7765 la_get_symbol_name_matcher initializer.
7766 * symtab.c (symbol_matches_search_name): Update call to
7767 get_symbol_name_matcher.
7768 (compare_symbol_name): Likewise.
7769
7770 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 * ada-lang.c (ada_language_data): Delete la_compute_program
7773 initializer.
7774 * c-lang.c (c_language_data): Likewise.
7775 (c_language::compute_program): New member function.
7776 (cplus_language_data): Delete la_compute_program initializer.
7777 (cplus_language::compute_program): New member function.
7778 (asm_language_data): Delete la_compute_program initializer.
7779 (minimal_language_data): Likewise.
7780 * c-lang.h (c_compute_program): Update comment.
7781 (cplus_compute_program): Likewise.
7782 * compile/compile-c-support.c (c_compute_program): Likewise.
7783 (cplus_compute_program): Likewise.
7784 * compile/compile.c (compile_to_object): Update call to
7785 la_compute_program.
7786 * d-lang.c (d_language_data): Delete la_compute_program
7787 initializer.
7788 * f-lang.c (f_language_data): Likewise.
7789 * go-lang.c (go_language_data): Likewise.
7790 * language.c (unknown_language_data): Likewise.
7791 (auto_language_data): Likewise.
7792 * language.h (language_data): Delete la_compute_program field.
7793 (language_defn::compute_program): New member function.
7794 * m2-lang.c (m2_language_data): Delete la_compute_program
7795 initializer.
7796 * objc-lang.c (objc_language_data): Likewise.
7797 * opencl-lang.c (opencl_language_data): Likewise.
7798 * p-lang.c (pascal_language_data): Likewise.
7799 * rust-lang.c (rust_language_data): Likewise.
7800
7801 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * ada-lang.c (ada_language_data) Delete
7804 la_class_name_from_physname initializer.
7805 * c-lang.c (c_language_data): Likewise.
7806 (cplus_language_data): Likewise.
7807 (cplus_language::class_name_from_physname): New member function.
7808 (asm_language_data): Delete la_class_name_from_physname
7809 initializer.
7810 (minimal_language_data): Likewise.
7811 * d-lang.c (d_language_data): Likewise.
7812 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7813 method on language_defn class.
7814 (guess_full_die_structure_name): Likewise.
7815 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7816 initializer.
7817 * go-lang.c (go_language_data): Likewise.
7818 * language.c (language_class_name_from_physname): Delete.
7819 (unk_lang_class_name): Delete.
7820 (unknown_language_data): Delete la_class_name_from_physname
7821 initializer.
7822 (auto_language_data): Likewise.
7823 * language.h (language_data): Delete la_class_name_from_physname
7824 field.
7825 (language_defn::class_name_from_physname): New function.
7826 (language_class_name_from_physname): Delete declaration.
7827 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7828 initializer.
7829 * objc-lang.c (objc_language_data): Likewise.
7830 * opencl-lang.c (opencl_language_data): Likewise.
7831 * p-lang.c (pascal_language_data): Likewise.
7832 * rust-lang.c (rust_language_data): Likewise.
7833
7834 2020-06-16 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-data.h (STATUS_NAME): New macro.
7837 * tui/tui-layout.c (tui_remove_some_windows)
7838 (initialize_known_windows, tui_register_window)
7839 (tui_layout_split::remove_windows, initialize_layouts)
7840 (tui_new_layout_command): Don't use hard-coded window names.
7841
7842 2020-06-16 Tom Tromey <tom@tromey.com>
7843
7844 PR tui/25348:
7845 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7846 tui_initialize_readline. Only run once. Call rl_initialize.
7847 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7848 tui_initialize_readline.
7849 * tui/tui-io.c (tui_setup_io): Call
7850 tui_ensure_readline_initialized.
7851 * tui/tui-interp.c (tui_interp::init): Update.
7852
7853 2020-06-16 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7856 Also preserve the status window.
7857
7858 2020-06-16 Tom Tromey <tom@tromey.com>
7859
7860 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7861 where m_window==nullptr.
7862
7863 2020-06-15 Tom Tromey <tromey@adacore.com>
7864
7865 * windows-nat.c (windows_nat::handle_output_debug_string):
7866 Update.
7867 (windows_nat::handle_ms_vc_exception): Update.
7868 * target.h (target_read_string): Change API.
7869 * target.c (target_read_string): Change API.
7870 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7871 Update.
7872 * solib-frv.c (frv_current_sos): Update.
7873 * solib-dsbt.c (dsbt_current_sos): Update.
7874 * solib-darwin.c (darwin_current_sos): Update.
7875 * linux-thread-db.c (inferior_has_bug): Update.
7876 * expprint.c (print_subexp_standard): Update.
7877 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7878 (ada_exception_message_1): Update.
7879
7880 2020-06-15 Tom Tromey <tromey@adacore.com>
7881
7882 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7883
7884 2020-06-15 Tom Tromey <tromey@adacore.com>
7885
7886 * valprint.c (read_string): Update comment.
7887 * target.c (MIN): Remove.
7888 (target_read_string): Rewrite.
7889
7890 2020-06-15 Tom Tromey <tromey@adacore.com>
7891
7892 * corefile.c (read_memory_string): Remove.
7893 * ada-valprint.c (ada_value_print_ptr): Update.
7894 * ada-lang.h (ada_tag_name): Change return type.
7895 * ada-lang.c (type_from_tag): Update.
7896 (ada_tag_name_from_tsd): Change return type. Use
7897 target_read_string.
7898 (ada_tag_name): Likewise.
7899 * gdbcore.h (read_memory_string): Don't declare.
7900
7901 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7902
7903 * symtab.c (rbreak_command): Ignore Windows drive colon.
7904
7905 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * NEWS: Mention removed GDBserver host support.
7908
7909 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7910
7911 * features/riscv/rebuild-csr-xml.sh: Updated.
7912
7913 2020-06-11 Tom Tromey <tom@tromey.com>
7914
7915 PR gdb/18318:
7916 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7917
7918 2020-06-09 Jonny Grant <jg@jguk.org>
7919 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7920
7921 * main.c (captured_main_1): Don't print new line after help.
7922 (print_gdb_help): add mailing list and IRC channel information
7923 to --help. Add new lines between items in the footer. Remove
7924 quotes around bug url.
7925
7926 2020-06-11 Keith Seitz <keiths@redhat.com>
7927
7928 PR gdb/21356
7929 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7930 Resolve typedefs for type length calculations.
7931
7932 2020-06-10 Tom de Vries <tdevries@suse.de>
7933
7934 PR ada/24713
7935 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7936 (write_psymbols): Enable .gdb_index for ada.
7937 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7938 ada.
7939
7940 2020-06-10 Tom de Vries <tdevries@suse.de>
7941
7942 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7943 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7944 namei" instead of "const char *name" argument.
7945 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7946 dw2_symtab_iter_init.
7947
7948 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7949
7950 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7951 to use type::field and field::type instead.
7952
7953 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7956 to use field::type instead.
7957
7958 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7959
7960 * gdbtypes.h (struct field) <type, set_type>: New methods.
7961 Rename `type` field to...
7962 <m_type>: ... this. Change references throughout to use type or
7963 set_type methods.
7964 (FIELD_TYPE): Use field::type. Change call sites that modify
7965 the field's type to use field::set_type instead.
7966
7967 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7970 to use type::index_type instead.
7971
7972 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7975 methods.
7976 (TYPE_INDEX_TYPE): Use type::index_type.
7977 * gdbtypes.c (create_array_type_with_stride): Likewise.
7978
7979 2020-06-07 Tom Tromey <tom@tromey.com>
7980
7981 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7982 parameter.
7983 (generic_value_print): Update.
7984
7985 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 Revert commit 982a38f60b0.
7988 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7989
7990 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7993 avoid use after free.
7994
7995 2020-06-05 Tom de Vries <tdevries@suse.de>
7996
7997 * NEWS: Fix typos.
7998
7999 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8002 the per_bfd object.
8003 (dwarf2_read_debug_names): Likewise.
8004 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8005 object when re-using a per_bfd object with an index.
8006
8007 2020-06-03 Tom de Vries <tdevries@suse.de>
8008
8009 PR symtab/26046
8010 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8011 children for C++.
8012 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8013 DW_TAG_subprogram.
8014
8015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * ada-lang.c (ada_language_data): Delete skip_trampoline
8018 initializer.
8019 * c-lang.c (c_language_data): Likewise.
8020 (cplus_language_data): Likewise.
8021 (cplus_language::skip_trampoline): New member function.
8022 (asm_language_data): Delete skip_trampoline initializer.
8023 (minimal_language_data): Likewise.
8024 * d-lang.c (d_language_data): Likewise.
8025 * f-lang.c (f_language_data): Likewise.
8026 * go-lang.c (go_language_data): Likewise.
8027 * language.c (unk_lang_trampoline): Delete function.
8028 (skip_language_trampoline): Update.
8029 (unknown_language_data): Delete skip_trampoline initializer.
8030 (auto_language_data): Likewise.
8031 * language.h (language_data): Delete skip_trampoline field.
8032 (language_defn::skip_trampoline): New function.
8033 * m2-lang.c (m2_language_data): Delete skip_trampoline
8034 initializer.
8035 * objc-lang.c (objc_skip_trampoline): Delete function, move
8036 implementation to objc_language::skip_trampoline.
8037 (objc_language_data): Delete skip_trampoline initializer.
8038 (objc_language::skip_trampoline): New member function with
8039 implementation from objc_skip_trampoline.
8040 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8041 initializer.
8042 * p-lang.c (pascal_language_data): Likewise.
8043 * rust-lang.c (rust_language_data): Likewise.
8044
8045 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8048 (ada_language::demangle): New member function.
8049 * c-lang.c (c_language_data): Delete la_demangle initializer.
8050 (cplus_language_data): Delete la_demangle initializer.
8051 (cplus_language::demangle): New member function.
8052 (asm_language_data): Delete la_demangle initializer.
8053 (minimal_language_data): Delete la_demangle initializer.
8054 * d-lang.c (d_language_data): Delete la_demangle initializer.
8055 (d_language::demangle): New member function.
8056 * f-lang.c (f_language_data): Delete la_demangle initializer.
8057 (f_language::demangle): New member function.
8058 * go-lang.c (go_language_data): Delete la_demangle initializer.
8059 (go_language::demangle): New member function.
8060 * language.c (language_demangle): Update.
8061 (unk_lang_demangle): Delete.
8062 (unknown_language_data): Delete la_demangle initializer.
8063 (unknown_language::demangle): New member function.
8064 (auto_language_data): Delete la_demangle initializer.
8065 (auto_language::demangle): New member function.
8066 * language.h (language_data): Delete la_demangle field.
8067 (language_defn::demangle): New function.
8068 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8069 * objc-lang.c (objc_language_data): Delete la_demangle
8070 initializer.
8071 (objc_language::demangle): New member function.
8072 * opencl-lang.c (opencl_language_data): Delete la_demangle
8073 initializer.
8074 * p-lang.c (pascal_language_data): Likewise.
8075 * rust-lang.c (rust_language_data): Likewise.
8076 (rust_language::demangle): New member function.
8077
8078 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8079
8080 * ada-lang.c (ada_language_data): Delete la_print_type
8081 initializer.
8082 (ada_language::print_type): New member function.
8083 * c-lang.c (c_language_data): Delete la_print_type initializer.
8084 (c_language::print_type): New member function.
8085 (cplus_language_data): Delete la_print_type initializer.
8086 (cplus_language::print_type): New member function.
8087 (asm_language_data): Delete la_print_type initializer.
8088 (asm_language::print_type): New member function.
8089 (minimal_language_data): Delete la_print_type initializer.
8090 (minimal_language::print_type): New member function.
8091 * d-lang.c (d_language_data): Delete la_print_type initializer.
8092 (d_language::print_type): New member function.
8093 * f-lang.c (f_language_data): Delete la_print_type initializer.
8094 (f_language::print_type): New member function.
8095 * go-lang.c (go_language_data): Delete la_print_type initializer.
8096 (go_language::print_type): New member function.
8097 * language.c (unk_lang_print_type): Delete.
8098 (unknown_language_data): Delete la_print_type initializer.
8099 (unknown_language::print_type): New member function.
8100 (auto_language_data): Delete la_print_type initializer.
8101 (auto_language::print_type): New member function.
8102 * language.h (language_data): Delete la_print_type field.
8103 (language_defn::print_type): New function.
8104 (LA_PRINT_TYPE): Update.
8105 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8106 (m2_language::print_type): New member function.
8107 * objc-lang.c (objc_language_data): Delete la_print_type
8108 initializer.
8109 (objc_language::print_type): New member function.
8110 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8111 to opencl_language::print_type.
8112 (opencl_language_data): Delete la_print_type initializer.
8113 (opencl_language::print_type): New member function, implementation
8114 from opencl_print_type.
8115 * p-lang.c (pascal_language_data): Delete la_print_type
8116 initializer.
8117 (pascal_language::print_type): New member function.
8118 * rust-lang.c (rust_print_type): Delete, implementation moved to
8119 rust_language::print_type.
8120 (rust_language_data): Delete la_print_type initializer.
8121 (rust_language::print_type): New member function, implementation
8122 from rust_print_type.
8123
8124 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8127 implementation moves to...
8128 (ada_language::sniff_from_mangled_name): ...here. Update return
8129 type.
8130 (ada_language_data): Delete la_sniff_from_mangled_name
8131 initializer.
8132 * c-lang.c (c_language_data): Likewise.
8133 (cplus_language_data): Likewise.
8134 (cplus_language::sniff_from_mangled_name): New member function,
8135 implementation taken from gdb_sniff_from_mangled_name.
8136 (asm_language_data): Delete la_sniff_from_mangled_name
8137 initializer.
8138 (minimal_language_data): Likewise.
8139 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8140 implementation moves to cplus_language::sniff_from_mangled_name.
8141 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8142 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8143 moves to...
8144 (d_language::sniff_from_mangled_name): ...here.
8145 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8146 * f-lang.c (f_language_data): Likewise.
8147 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8148 moves to...
8149 (go_language::sniff_from_mangled_name): ...here.
8150 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8151 * language.c (language_sniff_from_mangled_name): Delete.
8152 (unknown_language_data): Delete la_sniff_from_mangled_name
8153 initializer.
8154 (auto_language_data): Likewise.
8155 * language.h (language_data): Delete la_sniff_from_mangled_name
8156 field.
8157 (language_defn::sniff_from_mangled_name): New function.
8158 (language_sniff_from_mangled_name): Delete declaration.
8159 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8160 field.
8161 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8162 implementation moves to...
8163 (objc_language::sniff_from_mangled_name): ...here.
8164 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8165 * opencl-lang.c (opencl_language_data): Likewise.
8166 * p-lang.c (pascal_language_data): Likewise.
8167 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8168 implementation moves to...
8169 (rust_language::sniff_from_mangled_name): ...here.
8170 (rust_language_data): Delete la_sniff_from_mangled_name
8171 initializer.
8172 * symtab.c (symbol_find_demangled_name): Call
8173 sniff_from_mangled_name member function.
8174
8175 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8176
8177 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8178 initializer.
8179 * c-lang.c (c_language_data): Likewise.
8180 (cplus_language_data): Likewise.
8181 (cplus_language::search_name_hash): New member function.
8182 (asm_language_data): Delete la_search_name_hash initializer.
8183 (minimal_language_data): Likewise.
8184 * d-lang.c (d_language_data): Likewise.
8185 * dictionary.c (default_search_name_hash): Rename to...
8186 (language_defn::search_name_hash): ...this.
8187 * f-lang.c (f_language_data): Likewise.
8188 (f_language::search_name_hash): New member function.
8189 * go-lang.c (go_language_data): Delete la_search_name_hash
8190 initializer.
8191 * language.c (unknown_language_data): Likewise.
8192 (auto_language_data): Likewise.
8193 * language.h (struct language_data): Delete la_search_name_hash
8194 field.
8195 (language_defn::search_name_hash): Declare new member function.
8196 (default_search_name_hash): Delete declaration.
8197 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8198 initializer.
8199 * objc-lang.c (objc_language_data): Likewise.
8200 * opencl-lang.c (opencl_language_data): Likewise.
8201 * p-lang.c (pascal_language_data): Likewise.
8202 * rust-lang.c (rust_language_data): Likewise.
8203 * symtab.c (search_name_hash): Update call.
8204
8205 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8208 initializer.
8209 * c-lang.c (class compile_instance): Declare.
8210 (c_language_data): Delete la_get_compile_instance initializer.
8211 (c_language::get_compile_instance): New member function.
8212 (cplus_language_data): Delete la_get_compile_instance initializer.
8213 (cplus_language::get_compile_instance): New member function.
8214 (asm_language_data): Delete la_get_compile_instance initializer.
8215 (minimal_language_data): Likewise.
8216 * c-lang.h (c_get_compile_context): Update comment.
8217 (cplus_get_compile_context): Update comment.
8218 * compile/compile.c (compile_to_object): Update calls, don't rely
8219 on function pointer being NULL.
8220 * d-lang.c (d_language_data): Delete la_get_compile_instance
8221 initializer.
8222 * f-lang.c (f_language_data): Likewise.
8223 * go-lang.c (go_language_data): Likewise.
8224 * language.c (unknown_language_data): Likewise.
8225 (auto_language_data): Likewise.
8226 * language.h (language_data): Delete la_get_compile_instance field.
8227 (language_defn::get_compile_instance): New member function.
8228 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8229 initializer.
8230 * objc-lang.c (objc_language_data): Likewise.
8231 * opencl-lang.c (opencl_language_data): Likewise.
8232 * p-lang.c (pascal_language_data): Likewise.
8233 * rust-lang.c (rust_language_data): Likewise.
8234
8235 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8236
8237 * ada-lang.c (ada_add_all_symbols): Update comment.
8238 (ada_iterate_over_symbols): Delete, move implementation to...
8239 (ada_language::iterate_over_symbols): ...here, a new member
8240 function, rewrite to use range based for loop.
8241 (ada_language_data): Delete la_iterate_over_symbols initializer.
8242 * c-lang.c (c_language_data): Likewise.
8243 (cplus_language_data): Likewise.
8244 (asm_language_data): Likewise.
8245 (minimal_language_data): Likewise.
8246 * d-lang.c (d_language_data): Likewise.
8247 * f-lang.c (f_language_data): Likewise.
8248 * go-lang.c (go_language_data): Likewise.
8249 * language.c (unknown_language_data): Likewise.
8250 (auto_language_data): Likewise.
8251 * language.h (language_data): Delete la_iterate_over_symbols field.
8252 (language_defn::iterate_over_symbols): New member function.
8253 (LA_ITERATE_OVER_SYMBOLS): Update.
8254 * linespec.c (iterate_over_all_matching_symtabs): Update.
8255 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8256 initializer.
8257 * objc-lang.c (objc_language_data): Likewise.
8258 * opencl-lang.c (opencl_language_data): Likewise.
8259 * p-lang.c (pascal_language_data): Likewise.
8260 * rust-lang.c (rust_language_data): Likewise.
8261
8262 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * ada-lang.c (ada_language_data): Delete
8265 la_lookup_transparent_type initializer.
8266 * c-lang.c (c_language_data): Likewise.
8267 (cplus_language_data): Likewise.
8268 (cplus_language::lookup_transparent_type): New member function.
8269 (asm_language_data): Delete la_lookup_transparent_type
8270 initializer.
8271 (minimal_language_data): Likewise.
8272 * d-lang.c (d_language_data): Likewise.
8273 * f-lang.c (f_language_data): Likewise.
8274 * go-lang.c (go_language_data): Likewise.
8275 * language.c (unknown_language_data): Likewise.
8276 (auto_language_data): Likewise.
8277 * language.h (struct language_data): Delete
8278 la_lookup_transparent_type field.
8279 (language_defn::lookup_transparent_type): New member function.
8280 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8281 initializer.
8282 * objc-lang.c (objc_language_data): Likewise.
8283 * opencl-lang.c (opencl_language_data): Likewise.
8284 * p-lang.c (pascal_language_data): Likewise.
8285 * rust-lang.c (rust_language_data): Likewise.
8286 * symtab.c (symbol_matches_domain): Update call.
8287
8288 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * ada-lang.c (ada_language_arch_info): Delete function, move
8291 implementation to...
8292 (ada_language::language_arch_info): ...here, a new member
8293 function.
8294 (ada_language_data): Delete la_language_arch_info.
8295 * c-lang.c (c_language_data): Likewise.
8296 (c_language::language_arch_info): New member function.
8297 (cplus_language_arch_info): Delete function, move
8298 implementation to...
8299 (cplus_language::language_arch_info): ...here, a new member
8300 function.
8301 (cplus_language_data): Delete la_language_arch_info.
8302 (asm_language_data): Likewise.
8303 (asm_language::language_arch_info): New member function.
8304 (minimal_language_data): Delete la_language_arch_info.
8305 (minimal_language::language_arch_info): New member function.
8306 * d-lang.c (d_language_arch_info): Delete function, move
8307 implementation to...
8308 (d_language::language_arch_info): ...here, a new member
8309 function.
8310 (d_language_data): Delete la_language_arch_info.
8311 * f-lang.c (f_language_arch_info): Delete function, move
8312 implementation to...
8313 (f_language::language_arch_info): ...here, a new member
8314 function.
8315 (f_language_data): Delete la_language_arch_info.
8316 * go-lang.c (go_language_arch_info): Delete function, move
8317 implementation to...
8318 (go_language::language_arch_info): ...here, a new member
8319 function.
8320 (go_language_data): Delete la_language_arch_info.
8321 * language.c (unknown_language_data): Likewise.
8322 (unknown_language::language_arch_info): New member function.
8323 (auto_language_data): Delete la_language_arch_info.
8324 (auto_language::language_arch_info): New member function.
8325 (language_gdbarch_post_init): Update call to
8326 la_language_arch_info.
8327 * language.h (language_data): Delete la_language_arch_info
8328 function pointer.
8329 (language_defn::language_arch_info): New function.
8330 * m2-lang.c (m2_language_arch_info): Delete function, move
8331 implementation to...
8332 (m2_language::language_arch_info): ...here, a new member
8333 function.
8334 (m2_language_data): Delete la_language_arch_info.
8335 * objc-lang.c (objc_language_arch_info): Delete function, move
8336 implementation to...
8337 (objc_language::language_arch_info): ...here, a new member
8338 function.
8339 (objc_language_data): Delete la_language_arch_info.
8340 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8341 implementation to...
8342 (opencl_language::language_arch_info): ...here, a new member
8343 function.
8344 (opencl_language_data): Delete la_language_arch_info.
8345 * p-lang.c (pascal_language_arch_info): Delete function, move
8346 implementation to...
8347 (pascal_language::language_arch_info): ...here, a new member
8348 function.
8349 (pascal_language_data): Delete la_language_arch_info.
8350 * rust-lang.c (rust_language_arch_info): Delete function, move
8351 implementation to...
8352 (rust_language::language_arch_info): ...here, a new member
8353 function.
8354 (rust_language_data): Delete la_language_arch_info.
8355
8356 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8357
8358 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8359 initializer.
8360 * c-lang.c (c_language_data): Likewise.
8361 (cplus_language_data): Likewise.
8362 (cplus_language::pass_by_reference_info): New method.
8363 (asm_language_data): Delete la_pass_by_reference initializer.
8364 (minimal_language_data): Likewise.
8365 * cp-abi.c (cp_pass_by_reference): Remove use of
8366 default_pass_by_reference.
8367 * d-lang.c (d_language_data): Likewise.
8368 * f-lang.c (f_language_data): Likewise.
8369 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8370 default_pass_by_reference.
8371 * go-lang.c (go_language_data): Likewise.
8372 * language.c (language_pass_by_reference): Update.
8373 (default_pass_by_reference): Delete.
8374 (unknown_language_data): Delete la_pass_by_reference
8375 initializer.
8376 (auto_language_data): Likewise.
8377 * language.h (struct language_data): Delete la_pass_by_reference
8378 field.
8379 (language_defn::pass_by_reference_info): New member function.
8380 (default_pass_by_reference): Delete declaration.
8381 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8382 initializer.
8383 * objc-lang.c (objc_language_data): Likewise.
8384 * opencl-lang.c (opencl_language_data): Likewise.
8385 * p-lang.c (pascal_language_data): Likewise.
8386 * rust-lang.c (rust_language_data): Likewise.
8387
8388 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8389
8390 * ada-lang.c (ada_read_var_value): Delete function, move
8391 implementation to...
8392 (ada_language::read_var_value): ...here.
8393 (ada_language_data): Delete la_read_var_value initializer.
8394 * c-lang.c (c_language_data): Likewise.
8395 (cplus_language_data): Likewise.
8396 (minimal_language_data): Likewise.
8397 * d-lang.c (d_language_data): Likewise.
8398 * f-lang.c (f_language_data): Likewise.
8399 * findvar.c (default_read_var_value): Rename to...
8400 (language_defn::read_var_value): ...this.
8401 * findvar.c (read_var_value): Update header comment, and change to
8402 call member function instead of function pointer.
8403 * go-lang.c (go_language_data): Likewise.
8404 * language.c (unknown_language_data): Delete la_read_var_value
8405 initializer.
8406 (auto_language_data): Likewise.
8407 * language.h (struct language_data): Delete la_read_var_value
8408 field.
8409 (language_defn::read_var_value): New member function.
8410 (default_read_var_value): Delete declaration.
8411 * m2-lang.c (m2_language_data): Delete la_read_var_value
8412 initializer.
8413 * objc-lang.c (objc_language_data): Likewise.
8414 * opencl-lang.c (opencl_language_data): Likewise.
8415 * p-lang.c (pascal_language_data): Likewise.
8416 * rust-lang.c (rust_language_data): Likewise.
8417 * value.h (default_read_var_value): Delete declaration.
8418
8419 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (ada_print_array_index): Delete function, move
8422 implementation to...
8423 (ada_language::print_array_index): ...here.
8424 (ada_language_data): Delete la_print_array_index initializer.
8425 * c-lang.c (c_language_data): Likewise.
8426 (cplus_language_data): Likewise.
8427 (minimal_language_data): Likewise.
8428 * d-lang.c (d_language_data): Likewise.
8429 * f-lang.c (f_language_data): Likewise.
8430 * go-lang.c (go_language_data): Likewise.
8431 * language.c (default_print_array_index): Delete function, move
8432 implementation to...
8433 (language_defn::print_array_index): ...here.
8434 (unknown_language_data): Delete la_print_array_index initializer.
8435 (auto_language_data): Likewise.
8436 * language.h (struct language_data): Delete la_print_array_index
8437 field.
8438 (language_defn::print_array_index): New member function.
8439 (LA_PRINT_ARRAY_INDEX): Update.
8440 (default_print_array_index): Delete declaration.
8441 * m2-lang.c (m2_language_data): Delete la_print_array_index
8442 initializer.
8443 * objc-lang.c (objc_language_data): Likewise.
8444 * opencl-lang.c (opencl_language_data): Likewise.
8445 * p-lang.c (pascal_language_data): Likewise.
8446 * rust-lang.c (rust_language_data): Likewise.
8447
8448 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8449
8450 * gdb/ada-lang.c (ada_language_defn): Convert to...
8451 (ada_language_data): ...this.
8452 (class ada_language): New class.
8453 (ada_language_defn): New static global.
8454 * gdb/c-lang.c (c_language_defn): Convert to...
8455 (c_language_data): ...this.
8456 (class c_language): New class.
8457 (c_language_defn): New static global.
8458 (cplus_language_defn): Convert to...
8459 (cplus_language_data): ...this.
8460 (class cplus_language): New class.
8461 (cplus_language_defn): New static global.
8462 (asm_language_defn): Convert to...
8463 (asm_language_data): ...this.
8464 (class asm_language): New class.
8465 (asm_language_defn): New static global.
8466 (minimal_language_defn): Convert to...
8467 (minimal_language_data): ...this.
8468 (class minimal_language): New class.
8469 (minimal_language_defn): New static global.
8470 * gdb/d-lang.c (d_language_defn): Convert to...
8471 (d_language_data): ...this.
8472 (class d_language): New class.
8473 (d_language_defn): New static global.
8474 * gdb/f-lang.c (f_language_defn): Convert to...
8475 (f_language_data): ...this.
8476 (class f_language): New class.
8477 (f_language_defn): New static global.
8478 * gdb/go-lang.c (go_language_defn): Convert to...
8479 (go_language_data): ...this.
8480 (class go_language): New class.
8481 (go_language_defn): New static global.
8482 * gdb/language.c (unknown_language_defn): Remove declaration.
8483 (current_language): Initialize to nullptr, real initialization is
8484 moved to _initialize_language.
8485 (languages): Delete global.
8486 (language_defn::languages): Define.
8487 (set_language_command): Use language_defn::languages.
8488 (set_language): Likewise.
8489 (range_error): Likewise.
8490 (language_enum): Likewise.
8491 (language_def): Likewise.
8492 (add_set_language_command): Use language_def::languages for the
8493 language list, and language_def to lookup language pointers.
8494 (skip_language_trampoline): Use language_defn::languages.
8495 (unknown_language_defn): Convert to...
8496 (unknown_language_data): ...this.
8497 (class unknown_language): New class.
8498 (unknown_language_defn): New static global.
8499 (auto_language_defn): Convert to...
8500 (auto_language_data): ...this.
8501 (class auto_language): New class.
8502 (auto_language_defn): New static global.
8503 (language_gdbarch_post_init): Use language_defn::languages.
8504 (_initialize_language): Initialize current_language.
8505 * gdb/language.h (struct language_defn): Rename to...
8506 (struct language_data): ...this.
8507 (struct language_defn): New.
8508 (auto_language_defn): Delete.
8509 (unknown_language_defn): Delete.
8510 (minimal_language_defn): Delete.
8511 (ada_language_defn): Delete.
8512 (asm_language_defn): Delete.
8513 (c_language_defn): Delete.
8514 (cplus_language_defn): Delete.
8515 (d_language_defn): Delete.
8516 (f_language_defn): Delete.
8517 (go_language_defn): Delete.
8518 (m2_language_defn): Delete.
8519 (objc_language_defn): Delete.
8520 (opencl_language_defn): Delete.
8521 (pascal_language_defn): Delete.
8522 (rust_language_defn): Delete.
8523 * gdb/m2-lang.c (m2_language_defn): Convert to...
8524 (m2_language_data): ...this.
8525 (class m2_language): New class.
8526 (m2_language_defn): New static global.
8527 * gdb/objc-lang.c (objc_language_defn): Convert to...
8528 (objc_language_data): ...this.
8529 (class objc_language): New class.
8530 (objc_language_defn): New static global.
8531 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8532 (opencl_language_data): ...this.
8533 (class opencl_language): New class.
8534 (opencl_language_defn): New static global.
8535 * gdb/p-lang.c (pascal_language_defn): Convert to...
8536 (pascal_language_data): ...this.
8537 (class pascal_language): New class.
8538 (pascal_language_defn): New static global.
8539 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8540 language pointer, update comment format.
8541 * gdb/rust-lang.c (rust_language_defn): Convert to...
8542 (rust_language_data): ...this.
8543 (class rust_language): New class.
8544 (rust_language_defn): New static global.
8545
8546 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8549 member variable.
8550 <m_stmt_at_address>: New member variable.
8551 (lnp_state_machine::record_line): Don't record some lines, update
8552 tracking of is_stmt at the same address.
8553 (lnp_state_machine::lnp_state_machine): Initialise new member
8554 variables.
8555
8556 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8557
8558 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8559 "-include gnu-nat-mig.h".
8560 * gnu-nat-mig.h: New file.
8561 * gnu-nat.c: Include "gnu-nat-mig.h".
8562 (exc_server, msg_reply_server, notify_server,
8563 process_reply_server): Remove declarations.
8564
8565 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8566
8567 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8568 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8569 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8570 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8571 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8572 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8573 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8574 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8575 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8576 to gnu_nat_target class.
8577 * gnu-nat.c: Likewise.
8578 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8579 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8580 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8581 object.
8582 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8583 instead of `gnu_target'.
8584
8585 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8586
8587 * i386-gnu-tdep.c: Include "gdbcore.h"
8588 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8589 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8590 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8591 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8592 i386_gnu_sigcontext_addr): New functions
8593 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8594 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8595 tdep.
8596
8597 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8598
8599 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8600 before fork_inferior call. Avoid calling it if target_is_pushed returns
8601 true.
8602
8603 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8604
8605 * gnu-nat.h (gnu_target): New variable declaration.
8606 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8607 gnu_target.
8608 * gnu-nat.c (gnu_target): New variable.
8609 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8610 add_thread_silent, and add_thread calls.
8611 (gnu_nat_target::create_inferior): Pass gnu_target to
8612 add_thread_silent, thread_change_ptid call.
8613 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8614 call.
8615
8616 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8617
8618 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8619 (gnu_nat_target::find_memory_regions): Remove unused
8620 `old_address' variable.
8621
8622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8623
8624 * gnu-nat.c: Include "gdbarch.h".
8625
8626 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8627
8628 * reply_mig_hack.awk (Error return): Cast function through
8629 void *, to bypass compiler function call check.
8630
8631 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8632
8633 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8634 $(srcdir)/reply_mig_hack.awk.
8635
8636 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8637
8638 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8639
8640 2020-05-30 Jonny Grant <jg@jguk.org>
8641
8642 * configure.ac (ACX_BUGURL): change bug URL to https.
8643
8644 2020-05-30 Pedro Alves <palves@redhat.com>
8645
8646 * cp-support.c (replace_typedefs_template): New.
8647 (replace_typedefs_qualified_name): Handle
8648 DEMANGLE_COMPONENT_TEMPLATE.
8649
8650 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8651
8652 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8653 dwarf2/index-cache.h, dwarf2/index-write.c,
8654 dwarf2/index-write.h, dwarf2/line-header.c,
8655 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8656 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8657 variables and fields from `dwarf2_per_objfile` to just
8658 `per_objfile` throughout.
8659
8660 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8661
8662 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8663 <push_dwarf_reg_entry_value>: Add comment.
8664
8665 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8666 Keith Seitz <keiths@redhat.com>
8667
8668 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8669 instead of PyEval_ReleaseLock.
8670 (class gdbpy_gil): Move to earlier in file.
8671 (finalize_python): Set gdb_python_initialized.
8672 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8673 when not initialized.
8674
8675 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8678 <push_dwarf_reg_entry_value>: Remove assert. Override
8679 per_objfile with caller_per_objfile.
8680
8681 2020-05-28 Tom de Vries <tdevries@suse.de>
8682
8683 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8684 PR gold/15646 workaround to symbol kind "type".
8685
8686 2020-05-27 Tom Tromey <tromey@adacore.com>
8687
8688 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8689
8690 2020-05-27 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8693 Use htab_find_with_hash.
8694 <add_abbrev>: Remove "abbrev_number" parameter.
8695 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8696 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8697 (hash_abbrev): Add comment.
8698 (abbrev_table::lookup_abbrev): Move to header file.
8699 (abbrev_table::read): Update.
8700
8701 2020-05-27 Tom Tromey <tromey@adacore.com>
8702
8703 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8704 method.
8705 <canonical_name>: New member.
8706 <raw_name>: Rename from "name".
8707 (partial_die_info): Initialize canonical_name.
8708 (scan_partial_symbols): Check raw_name.
8709 (partial_die_parent_scope, partial_die_full_name)
8710 (add_partial_symbol, add_partial_subprogram)
8711 (add_partial_enumeration, load_partial_dies): Use "name" method.
8712 (partial_die_info::name): New method.
8713 (partial_die_info::read, guess_partial_die_structure_name)
8714 (partial_die_info::fixup): Update.
8715
8716 2020-05-27 Tom Tromey <tromey@adacore.com>
8717
8718 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8719 <get_ref_die_offset>: Inline.
8720 <get_ref_die_offset_complaint>: New method.
8721 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8722 (attribute::get_ref_die_offset_complaint): Rename from
8723 get_ref_die_offset. Just issue complaint.
8724
8725 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8726
8727 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8728
8729 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8730
8731 * exec.c (exec_file_attach): Use errno value of first openp failure.
8732
8733 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8734
8735 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8736 Don't close thread handle.
8737
8738 2020-05-27 Tom Tromey <tom@tromey.com>
8739 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8742 shared_ptr.
8743 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8744 member.
8745 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8746 dwarf2_per_bfd_objfile_data_key>: New globals.
8747 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8748 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8749 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8750 shared.
8751 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8752 short-circuit when sharing.
8753 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8754 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8755
8756 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8759 to...
8760 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8761 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8762
8763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8766 build_name_components, find_name_components_bounds>:
8767 Add per_objfile parameter.
8768 (struct mapped_index) <symbol_name_at>: Likewise.
8769 (struct mapped_debug_names): Remove constructor.
8770 <dwarf2_per_objfile>: Remove field.
8771 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8772 (mapped_index_base::find_name_components_bounds,
8773 mapped_index_base::build_name_components,
8774 dw2_expand_symtabs_matching_symbol): Likewise.
8775 (class mock_mapped_index) <symbol_name_at>: Likewise.
8776 (check_match): Likewise.
8777 (check_find_bounds_finds): Likewise.
8778 (test_mapped_index_find_name_component_bounds): Update.
8779 (CHECK_MATCH): Update.
8780 (dw2_expand_symtabs_matching): Update.
8781 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8782 per_objfile parameter.
8783 <find_vec_in_debug_names>: Likewise.
8784 <m_per_objfile>: New field.
8785 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8786 parameter.
8787 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8788 (dw2_debug_names_iterator::next): Update.
8789 (dw2_debug_names_lookup_symbol): Update.
8790 (dw2_debug_names_expand_symtabs_for_function): Update.
8791 (dw2_debug_names_map_matching_symbols): Update.
8792 (dw2_debug_names_expand_symtabs_matching): Update.
8793 (dwarf2_read_debug_names): Update.
8794
8795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8796
8797 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8798 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8799 move to dwarf2_per_objfile.
8800 <read_in_chain>: Remove.
8801 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8802 remove_all_cus, age_comp_units>: New methods.
8803 <m_dwarf2_cus>: New member.
8804 (struct dwarf2_per_cu_data) <cu>: Remove.
8805 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8806 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8807 moved to methods of dwarf2_per_objfile.
8808 (dwarf2_clear_marks): Remove.
8809 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8810 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8811 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8812 (dwarf2_per_objfile::remove_all_cus): New.
8813 (class free_cached_comp_units) <~free_cached_comp_units>:
8814 Update.
8815 (load_cu): Update.
8816 (dw2_do_instantiate_symtab): Adjust.
8817 (fill_in_sig_entry_from_dwo_entry): Adjust.
8818 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8819 (cutu_reader::cutu_reader): Likewise.
8820 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8821 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8822 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8823 and dwarf2_per_objfile::age_comp_units.
8824 (load_partial_comp_unit): Update.
8825 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8826 (process_queue): Likewise.
8827 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8828 backlink.
8829 (dwarf2_read_addr_index): Likewise.
8830 (follow_die_offset): Likewise.
8831 (dwarf2_fetch_die_loc_sect_off): Likewise.
8832 (dwarf2_fetch_constant_bytes): Likewise.
8833 (dwarf2_fetch_die_type_sect_off): Likewise.
8834 (follow_die_sig_1): Likewise.
8835 (load_full_type_unit): Likewise.
8836 (read_signatured_type): Likewise.
8837 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8838 (dwarf2_cu::~dwarf2_cu): Remove.
8839 (dwarf2_per_objfile::get_cu): New.
8840 (dwarf2_per_objfile::set_cu): New.
8841 (age_cached_comp_units): Rename to...
8842 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8843 to std::unordered_map.
8844 (free_one_cached_comp_unit): Rename to...
8845 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8846 to std::unordered_map.
8847 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8848 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8849 a dwarf2_per_objfile in data.
8850 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8851 (dwarf2_clear_marks): Remove.
8852
8853 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8856 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8857 (init_tu_and_read_dwo_dies): Likewise.
8858 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8859 (cutu_reader::cutu_reader): Likewise.
8860 (load_partial_comp_unit): Likewise.
8861 (process_psymtab_comp_unit): Update.
8862 (build_type_psymtabs_1): Update.
8863 (process_skeletonless_type_unit): Update.
8864 (load_full_comp_unit): Update.
8865 (find_partial_die): Update.
8866 (dwarf2_read_addr_index): Update.
8867 (read_signatured_type): Update.
8868
8869 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8870
8871 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8872 m_header_read_in>: New fields.
8873 <get_header>: New method.
8874 * dwarf2/read.c (per_cu_header_read_in): Remove.
8875 (dwarf2_per_cu_data::get_header): New.
8876 (dwarf2_per_cu_data::addr_size): Update.
8877 (dwarf2_per_cu_data::offset_size): Update.
8878 (dwarf2_per_cu_data::ref_addr_size): Update.
8879
8880 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8881
8882 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8883 (dw2_do_instantiate_symtab): Update.
8884 (queue_and_load_all_dwo_tus): Change parameter from
8885 dwarf2_per_cu_data to dwarf2_cu.
8886 (dwarf2_fetch_die_loc_sect_off): Update.
8887 (dwarf2_fetch_constant_bytes): Update.
8888 (dwarf2_fetch_die_type_sect_off): Update.
8889
8890 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8891
8892 * dwarf2/read.c (process_full_comp_unit,
8893 process_full_type_unit): Remove per_cu, per_objfile paramters.
8894 Add dwarf2_cu parameter.
8895 (process_queue): Update.
8896
8897 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8898
8899 * dwarf2/read.c (create_cu_from_index_list): Replace
8900 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8901 (create_cus_from_index_list): Likewise.
8902 (create_cus_from_index): Likewise.
8903 (create_signatured_type_table_from_index): Likewise.
8904 (create_cus_from_debug_names_list): Likewise.
8905 (create_cus_from_debug_names): Likewise.
8906 (dwarf2_read_gdb_index): Update.
8907 (dwarf2_read_debug_names): Update.
8908
8909 2020-05-27 Tom Tromey <tom@tromey.com>
8910 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * dwarf2/read.h (struct dwarf2_per_objfile)
8913 <get_type_for_signatured_type, set_type_for_signatured_type>:
8914 New methods.
8915 <m_type_map>: New member.
8916 (struct signatured_type) <type>: Remove.
8917 * dwarf2/read.c
8918 (dwarf2_per_objfile::get_type_for_signatured_type,
8919 dwarf2_per_objfile::set_type_for_signatured_type): New.
8920 (get_signatured_type): Use new methods.
8921
8922 2020-05-27 Tom Tromey <tom@tromey.com>
8923 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8926 (struct dwarf2_per_objfile) <type_units>: New member.
8927 <get_type_unit_group_unshareable>: New method.
8928 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8929 num_symtabs, symtabs>: Remove; move to
8930 type_unit_group_unshareable.
8931 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8932 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8933 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8934
8935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * dwarf2/read.h (struct dwarf2_per_cu_data):
8938 <dwarf2_per_objfile>: Remove.
8939 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8940 dwarf2_per_objfile.
8941 (create_signatured_type_table_from_index): Likewise.
8942 (create_signatured_type_table_from_debug_names): Likewise.
8943 (create_debug_type_hash_table): Likewise.
8944 (fill_in_sig_entry_from_dwo_entry): Likewise.
8945 (create_type_unit_group): Likewise.
8946 (read_comp_units_from_section): Likewise.
8947 (create_cus_hash_table): Likewise.
8948
8949 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8950
8951 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8952 dwarf2_per_cu_data::dwarf2_per_objfile.
8953 (compute_compunit_symtab_includes): Likewise.
8954 (dwarf2_cu::start_symtab): Likewise.
8955
8956 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8957
8958 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8959 parameter.
8960 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8961 (read_namespace_alias): Update.
8962 (lookup_die_type): Update.
8963 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8964 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8965 Update.
8966 (disassemble_dwarf_expression): Update.
8967
8968 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * dwarf2/read.h (struct dwarf2_queue_item): Add
8971 dwarf2_per_objfile parameter, assign new parameter.
8972 <per_objfile>: New field.
8973 * dwarf2/read.c (free_one_cached_comp_unit): Add
8974 dwarf2_per_objfile parameter.
8975 (queue_comp_unit): Likewise.
8976 (dw2_do_instantiate_symtab): Update.
8977 (process_psymtab_comp_unit): Update.
8978 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8979 (process_imported_unit_die): Update.
8980 (queue_and_load_dwo_tu): Update.
8981 (follow_die_offset): Update.
8982 (follow_die_sig_1): Update.
8983
8984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8987 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8988 (read_call_site_scope): Assign per_objfile.
8989 (dwarf2_per_cu_data::objfile): Remove.
8990 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8991 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8992 dwarf2_per_objfile parameter.
8993 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8994 dwarf2_per_objfile parameter.
8995 (dwarf_expr_reg_to_entry_parameter): Add output
8996 dwarf2_per_objfile parameter.
8997 (locexpr_get_frame_base): Update.
8998 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8999 <push_dwarf_reg_entry_value>: Update.
9000 <call_site_to_target_addr>: Update.
9001 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9002 parameter.
9003 (value_of_dwarf_reg_entry): Update.
9004 (rw_pieced_value): Update.
9005 (indirect_synthetic_pointer): Update.
9006 (dwarf2_evaluate_property): Update.
9007 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9008 parameter.
9009 (locexpr_read_variable): Update.
9010 (locexpr_get_symbol_read_needs): Update.
9011 (loclist_read_variable): Update.
9012
9013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9016 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9017 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9018 parameter.
9019 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9020 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9021 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9022 parameter.
9023 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9024 sect_variable_value): Add dwarf2_per_objfile parameter.
9025 (class dwarf_evaluate_loc_desc) <dwarf_call,
9026 dwarf_variable_value>: Update.
9027 (fetch_const_value_from_synthetic_pointer): Add
9028 dwarf2_per_objfile parameter.
9029 (fetch_const_value_from_synthetic_pointer): Update.
9030 (coerced_pieced_ref): Update.
9031 (class symbol_needs_eval_context) <dwarf_call,
9032 dwarf_variable_value>: Update.
9033 (dwarf2_compile_expr_to_ax): Update.
9034
9035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9038 parameter.
9039 (dwarf2_evaluate_loc_desc_full): Update.
9040
9041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9044 parameter.
9045 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9046 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9047 dwarf2_per_objfile parameter.
9048 (decode_debug_loc_dwo_addresses): Likewise.
9049 (dwarf2_find_location_expression): Update.
9050 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9051 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9052 parameter.
9053 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9054 parameter.
9055 (locexpr_describe_location_1): Likewise.
9056 (locexpr_describe_location): Update.
9057
9058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9061 Remove.
9062 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9063 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9064 (dwarf2_compile_property_to_c): Update.
9065 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9066 use text offset from objfile.
9067 (locexpr_tracepoint_var_ref): Update.
9068 (locexpr_generate_c_location): Update.
9069 (loclist_describe_location): Update.
9070 (loclist_tracepoint_var_ref): Update.
9071 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9072 dwarf2_per_objfile parameter.
9073 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9074 use text offset from objfile.
9075 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9076
9077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * dwarf2/expr.h (struct dwarf_expr_context)
9080 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9081 <offset>: Remove.
9082 <per_objfile>: New member.
9083 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9084 dwarf2_per_objfile parameter. Don't set offset, set
9085 per_objfile.
9086 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9087 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9088 a dwarf2_per_objfile object instead of an offset.
9089 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9090 constructor.
9091 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9092 to dwarf2_expr_executor constructor. Don't set offset.
9093 (dwarf2_fetch_cfa_info): Update.
9094 (struct dwarf2_frame_cache) <text_offset>: Remove.
9095 <per_objfile>: New field.
9096 (dwarf2_frame_cache): Update.
9097 (dwarf2_frame_prev_register): Update.
9098 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9099 <dwarf_evaluate_loc_desc>: Add constructor.
9100 (dwarf2_evaluate_loc_desc_full): Update.
9101 (dwarf2_locexpr_baton_eval): Update.
9102 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9103 Add constructor.
9104 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9105
9106 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9109 addr_sized_int_type>: Move to dwarf2_cu.
9110 <int_type>: Move to dwarf2_per_objfile.
9111 (struct dwarf2_per_objfile) <int_type>: Move here.
9112 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9113 addr_sized_int_type>: Move here.
9114 (read_func_scope): Update.
9115 (read_array_type): Update.
9116 (read_tag_string_type): Update.
9117 (attr_to_dynamic_prop): Update.
9118 (dwarf2_per_cu_data::int_type): Rename to...
9119 (dwarf2_per_objfile::int_type): ... this.
9120 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9121 (dwarf2_cu::addr_sized_int_type): ... this.
9122 (read_subrange_type): Update.
9123 (dwarf2_per_cu_data::addr_type): Rename to...
9124 (dwarf2_cu::addr_type): ... this.
9125 (set_die_type): Update.
9126
9127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9130 data through per_cu->cu.
9131
9132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9135 dwarf2_per_cu_data parameter fo dwarf2_cu.
9136 (lookup_dwo_type_unit): Likewise.
9137 (read_cutu_die_from_dwo): Likewise.
9138 (lookup_dwo_unit): Likewise.
9139 (open_and_init_dwo_file): Likewise.
9140 (lookup_dwo_cutu): Likewise.
9141 (lookup_dwo_comp_unit): Likewise.
9142 (lookup_dwo_type_unit): Likewise.
9143 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9144 (cutu_reader::cutu_reader): Update.
9145
9146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9147
9148 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9149 parameter.
9150 (process_full_type_unit): Likewise.
9151 (process_queue): Update.
9152
9153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * dwarf2/read.c (recursively_compute_inclusions): Add
9156 dwarf2_per_objfile parameter.
9157 (compute_compunit_symtab_includes): Likewise.
9158 (process_cu_includes): Update.
9159
9160 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9163 parameter.
9164 (create_type_unit_group): Update.
9165 (process_psymtab_comp_unit_reader): Update.
9166 (build_type_psymtabs_reader): Update.
9167
9168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9171 object through m_this_cu->cu.
9172
9173 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9174
9175 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9176 the info parameter.
9177 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9178
9179 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9180
9181 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9182 per_objfile parameter.
9183 (load_full_type_unit): Add per_objfile parameter.
9184 (read_signatured_type): Likewise.
9185 (load_full_comp_unit): Likewise.
9186 (load_cu): Likewise.
9187 (dw2_do_instantiate_symtab): Likewise.
9188 (dw2_get_file_names): Likewise.
9189 (dw2_map_symtabs_matching_filename): Update.
9190 (dw_expand_symtabs_matching_file_matcher): Update.
9191 (dw2_map_symbol_filenames): Update.
9192 (process_psymtab_comp_unit): Add per_objfile parameter.
9193 (build_type_psymtabs_1): Update.
9194 (process_skeletonless_type_unit): Update.
9195 (dwarf2_build_psymtabs_hard): Update.
9196 (load_partial_comp_unit): Add per_objfile parameter.
9197 (scan_partial_symbols): Update.
9198 (load_full_comp_unit): Add per_objfile parameter.
9199 (process_imported_unit_die): Update.
9200 (create_cus_hash_table): Update.
9201 (find_partial_die): Update.
9202 (dwarf2_read_addr_index): Update.
9203 (follow_die_offset): Update.
9204 (dwarf2_fetch_die_loc_sect_off): Update.
9205 (dwarf2_fetch_constant_bytes): Update.
9206 (dwarf2_fetch_die_type_sect_off): Update.
9207 (follow_die_sig_1): Update.
9208 (load_full_type_unit): Add per_objfile parameter.
9209 (read_signatured_type): Likewise.
9210
9211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9214 of objfile_name.
9215
9216 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9217
9218 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9219 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9220 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9221 field.
9222 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9223 (create_cus_from_index): Update.
9224 (dwarf2_read_gdb_index): Update.
9225 (create_cus_from_debug_names): Update.
9226 (dwarf2_read_debug_names): Update.
9227 (get_abbrev_section_for_cu): Update.
9228 (create_all_comp_units): Update.
9229 (read_attribute_value): Update.
9230 (get_debug_line_section): Update.
9231 * dwarf2/index-cache.c (index_cache::store): Update.
9232 * dwarf2/index-write.c (save_gdb_index_command): Update.
9233 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9234
9235 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9236
9237 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9238 member.
9239 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9240 dwarf2_per_cu_data::per_bfd.
9241 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9242 (create_type_unit_group): Likewise.
9243 (queue_comp_unit): Remove reference to
9244 per_cu->dwarf2_per_objfile.
9245 (maybe_queue_comp_unit): Likewise.
9246 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9247 (create_cus_hash_table): Assign new field.
9248
9249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * dwarf2/read.c: Replace
9252 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9253 dwarf2_cu->per_objfile throughout.
9254
9255 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9258 parameter, don't use per_cu->dwarf2_per_objfile.
9259 (dw2_instantiate_symtab): Likewise.
9260 (dw2_find_last_source_symtab): Update.
9261 (dw2_map_expand_apply): Update.
9262 (dw2_lookup_symbol): Update.
9263 (dw2_expand_symtabs_for_function): Update.
9264 (dw2_expand_all_symtabs): Update.
9265 (dw2_expand_symtabs_with_fullname): Update.
9266 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9267 don't use per_cu->dwarf2_per_objfile.
9268 (dw2_expand_marked_cus): Update.
9269 (dw2_find_pc_sect_compunit_symtab): Update.
9270 (dw2_debug_names_lookup_symbol): Update.
9271 (dw2_debug_names_expand_symtabs_for_function): Update.
9272 (dw2_debug_names_map_matching_symbols): Update.
9273 (dwarf2_psymtab::expand_psymtab): Update.
9274
9275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9278 <per_objfile>: New member.
9279 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9280 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9281 call to dwarf2_cu.
9282 (cutu_reader::cutu_reader): Update.
9283 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9284
9285 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9288 struct dwarf2_per_objfile.
9289 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9290 dwarf2_per_bfd.
9291 * dwarf2/read.c (set_die_type): Update.
9292 (get_die_type_at_offset): Update.
9293
9294 2020-05-27 Tom Tromey <tom@tromey.com>
9295 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9298 method.
9299 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9300 get_symtab, set_symtab>: New methods.
9301 <m_symtabs>: New field.
9302 (struct dwarf2_psymtab): Derive from partial_symtab.
9303 <readin_p, get_compunit_symtab>: Declare methods.
9304 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9305 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9306 New methods.
9307 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9308 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9309 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9310 (dw2_symtab_iter_next, dw2_print_stats)
9311 (dw2_expand_symtabs_with_fullname)
9312 (dw2_expand_symtabs_matching_one)
9313 (dw_expand_symtabs_matching_file_matcher)
9314 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9315 (dw2_debug_names_iterator::next)
9316 (dw2_debug_names_map_matching_symbols)
9317 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9318 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9319 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9320 New methods.
9321 (get_compunit_symtab, process_full_comp_unit)
9322 (process_full_type_unit): Update.
9323 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9324
9325 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9326
9327 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9328 then introduce a new dwarf2_per_objfile type.
9329 <read_line_string>: Move to the new dwarf2_per_objfile type.
9330 <objfile>: Likewise.
9331 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9332 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9333 dwarf2_per_objfile->per_bfd.
9334 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9335 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9336 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9337 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9338 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9339 (dwarf2_per_objfile::locate_sections): Rename to...
9340 (dwarf2_per_bfd::locate_sections): ... this.
9341 (dwarf2_per_objfile::get_cutu): Rename to...
9342 (dwarf2_per_bfd::get_cutu): ... this.
9343 (dwarf2_per_objfile::get_cu): Rename to...
9344 (dwarf2_per_bfd::get_cu): ... this.
9345 (dwarf2_per_objfile::get_tu): Rename to...
9346 (dwarf2_per_bfd::get_tu): ... this.
9347 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9348 (dwarf2_per_bfd::allocate_per_cu): ... this.
9349 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9350 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9351 (get_gdb_index_contents_ftype): Change parameter from
9352 dwarf2_per_objfile to dwarf2_per_bfd.
9353 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9354 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9355
9356 2020-05-27 Tom Tromey <tom@tromey.com>
9357 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9360 (allocate_piece_closure): Set "per_objfile" member.
9361 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9362 (locexpr_describe_location, loclist_describe_location): Use new
9363 member.
9364 * dwarf2/read.c (read_call_site_scope)
9365 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9366 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9367 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9368 handle_data_member_location): Set per_objfile member.
9369 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9370 member.
9371 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9372
9373 2020-05-27 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9376 allocate_signatured_type>: Declare new methods.
9377 <m_num_psymtabs>: New member.
9378 (struct dwarf2_per_cu_data) <index>: New member.
9379 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9380 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9381 (create_cu_from_index_list): Use allocate_per_cu.
9382 (create_signatured_type_table_from_index)
9383 (create_signatured_type_table_from_debug_names)
9384 (create_debug_type_hash_table, add_type_unit)
9385 (read_comp_units_from_section): Use allocate_signatured_type.
9386
9387 2020-05-27 Tom Tromey <tom@tromey.com>
9388
9389 * psymtab.c (partial_map_expand_apply)
9390 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9391 (psym_lookup_global_symbol_language)
9392 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9393 (psym_print_stats, psym_expand_symtabs_for_function)
9394 (psym_map_symbol_filenames, psym_map_matching_symbols)
9395 (psym_expand_symtabs_matching)
9396 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9397 (maintenance_check_psymtabs): Update.
9398 * psympriv.h (struct partial_symtab) <readin_p,
9399 get_compunit_symtab>: Add objfile parameter.
9400 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9401 Likewise.
9402 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9403 get_compunit_symtab>: Likewise.
9404 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9405
9406 2020-05-27 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9409 member.
9410 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9411 (create_cu_from_index_list)
9412 (create_signatured_type_table_from_index)
9413 (create_signatured_type_table_from_debug_names)
9414 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9415 (dwarf2_create_include_psymtab)
9416 (create_debug_type_hash_table, add_type_unit)
9417 (create_type_unit_group, read_comp_units_from_section)
9418 (dwarf2_compute_name, create_cus_hash_table)
9419 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9420 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9421 obstack.
9422 (dw2_get_real_path): Likewise. Change argument to
9423 dwarf2_per_objfile.
9424
9425 2020-05-27 Luis Machado <luis.machado@linaro.org>
9426
9427 PR tdep/26000
9428 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9429 for ldrd (immediate).
9430
9431 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9432
9433 * command.h: Add comment giving the name of class_tui.
9434 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9435 create the fake command for the help for class_tui.
9436
9437 2020-05-26 Tom Tromey <tromey@adacore.com>
9438
9439 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9440 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9441 (val_atr): New function.
9442 (value_val_atr): Use it.
9443 * ada-valprint.c (print_optional_low_bound): Change low bound
9444 handling for enums.
9445 (val_print_packed_array_elements): Don't call discrete_position.
9446 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9447 discrete_position for enum types.
9448 * language.c (default_print_array_index): Change type.
9449 * language.h (struct language_defn) <la_print_array_index>: Add
9450 index_type parameter, change type of index_value.
9451 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9452 (default_print_array_index): Update.
9453 * valprint.c (maybe_print_array_index): Don't call
9454 value_from_longest. Update.
9455 (value_print_array_elements): Don't call discrete_position.
9456
9457 2020-05-26 Tom Tromey <tromey@adacore.com>
9458
9459 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9460 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9461
9462 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9463
9464 PR gdb/13519
9465 * avr-tdep.c (avr_integer_to_address): Return data or code
9466 address accordingly to the second 'type' argument of the
9467 function.
9468
9469 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9470
9471 * infcmd.c, inferior.h: (construct_inferior_arguments):
9472 Moved function from here to gdbsupport/common-inferior.{h,cc}
9473
9474 2020-05-23 Tom Tromey <tom@tromey.com>
9475
9476 Revert commit eca1f90c:
9477 * NEWS: Remove entry for completion styling.
9478 * completer.c (_rl_completion_prefix_display_length): Move
9479 declaration later.
9480 (gdb_fnprint): Revert.
9481 (gdb_display_match_list_1): Likewise.
9482 * cli/cli-style.c (completion_prefix_style)
9483 (completion_difference_style, completion_suffix_style): Remove.
9484 (_initialize_cli_style): Revert.
9485 * cli/cli-style.h (completion_prefix_style)
9486 (completion_difference_style, completion_suffix_style): Don't
9487 declare.
9488
9489 2020-05-24 Pedro Alves <palves@redhat.com>
9490
9491 * symtab.c (completion_list_add_name): Return boolean indication
9492 of whether the symbol matched.
9493 (completion_list_add_symbol): Don't try to remove C++ aliases if
9494 the symbol didn't match in the first place.
9495 * symtab.h (completion_list_add_name): Return bool.
9496
9497 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9498
9499 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9500 type::field.
9501
9502 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9503
9504 GDB 9.2 released.
9505
9506 2020-05-23 Tom Tromey <tom@tromey.com>
9507
9508 * NEWS: Add entry for completion styling.
9509 * completer.c (_rl_completion_prefix_display_length): Move
9510 declaration earlier.
9511 (gdb_fnprint): Use completion_style.
9512 (gdb_display_match_list_1): Likewise.
9513 * cli/cli-style.c (completion_prefix_style)
9514 (completion_difference_style, completion_suffix_style): New
9515 globals.
9516 (_initialize_cli_style): Register new globals.
9517 * cli/cli-style.h (completion_prefix_style)
9518 (completion_difference_style, completion_suffix_style): Declare.
9519
9520 2020-05-23 Pedro Alves <palves@redhat.com>
9521
9522 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9523 (parse_escape): Use ISDIGIT instead of isdigit.
9524 (puts_debug): Use gdb_isprint instead of isprint.
9525 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9526 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9527 ISSPACE instead of isspace.
9528 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9529 instead of isspace.
9530 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9531 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9532 instead of isxdigit and ISDIGIT instead of isdigit.
9533
9534 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * gdbtypes.h (struct type) <field>: New method.
9537 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9538 or type::field.
9539
9540 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9543 (TYPE_FIELDS): Use type::fields. Change all call sites that
9544 modify the propery to use type::set_fields instead.
9545
9546 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9549 type::num_fields instead.
9550
9551 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9554 methods.
9555 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9556 that modify the number of fields to use type::set_num_fields
9557 instead.
9558
9559 2020-05-22 Tom Tromey <tromey@adacore.com>
9560
9561 * compile/compile-object-load.h (munmap_list_free): Don't
9562 declare.
9563
9564 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9565
9566 * annotate.c (annotate_source_line): Update return type, add call
9567 to update current symtab and line.
9568 * annotate.h (annotate_source_line): Update return type, and
9569 extend header comment.
9570 * source.c (info_line_command): Check annotation_level before
9571 calling annotate_source_line.
9572 * stack.c (print_frame_info): If calling annotate_source_line
9573 returns true, then don't print any other source line information.
9574
9575 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9576
9577 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9578
9579 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * coffread.c (patch_type): Remove NULL check before xfree.
9582 * corefile.c (set_gnutarget): Likewise.
9583 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9584 * exec.c (build_section_table): Likewise.
9585 * remote.c (remote_target::pass_signals): Likewise.
9586 * utils.c (n_spaces): Likewise.
9587 * cli/cli-script.c (document_command): Likewise.
9588 * i386-windows-tdep.c (core_process_module_section): Likewise.
9589 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9590
9591 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * symfile.c (reread_symbols): Clear objfile's section_offsets
9594 vector and section indices, re-compute them by calling
9595 sym_offsets.
9596
9597 2020-05-20 Tom Tromey <tromey@adacore.com>
9598
9599 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9600 (desc_one_bound, desc_index_type): Compute field name.
9601
9602 2020-05-20 Tom de Vries <tdevries@suse.de>
9603
9604 PR symtab/25833
9605 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9606
9607 2020-05-20 Alan Modra <amodra@gmail.com>
9608
9609 PR 25993
9610 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9611 bfd_set_filename.
9612 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9613 passed to bfd_set_filename.
9614 * symfile-mem.c (add_vsyscall_page): Likewise for string
9615 passed to symbol_file_add_from_memory.
9616 (symbol_file_add_from_memory): Make name param a const char* and
9617 don't strdup.
9618
9619 2020-05-20 Alan Modra <amodra@gmail.com>
9620
9621 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9622 rather than accessing bfd->filename directly.
9623 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9624 and use bfd_section_name.
9625 * dwarf2/frame.c (decode_frame_entry): Likewise.
9626 * exec.c (exec_set_section_address): Likewise.
9627 * solib-aix.c (solib_aix_bfd_open): Likewise.
9628 * stap-probe.c (get_stap_base_address): Likewise.
9629 * symfile.c (reread_symbols): Likewise.
9630
9631 2020-05-19 Tom Tromey <tromey@adacore.com>
9632
9633 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9634
9635 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9638
9639 2020-05-19 Pedro Alves <palves@redhat.com>
9640
9641 * NEWS (set exec-file-mismatch): Adjust entry.
9642 * exec.c: Include "build-id.h".
9643 (validate_exec_file): Try to match build IDs instead of filenames.
9644 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9645 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9646 and pass down 'warn_if_slow'.
9647 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9648 gdb_bfd_open_closure to pass it down.
9649 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9650
9651 2020-05-19 Pedro Alves <palves@redhat.com>
9652
9653 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9654 * target.c (target_fileio_open_1): Rename to target_fileio_open
9655 and make extern. Use bool.
9656 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9657 (target_fileio_read_alloc_1): Adjust.
9658 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9659 (target_fileio_open_warn_if_slow): Delete declaration.
9660
9661 2020-05-19 Pedro Alves <palves@redhat.com>
9662
9663 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9664 Adjust all callers.
9665
9666 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9667
9668 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9669 whether disp is negative.
9670
9671 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * symfile.h (struct symfile_segment_data)
9674 <~symfile_segment_data>: Remove.
9675 <segment_info>: Change to std::vector.
9676 * symfile.c (default_symfile_segments): Update.
9677 * elfread.c (elf_symfile_segments): Update.
9678
9679 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9682 <segments>: New.
9683 <segment_bases, segment_sizes>: Remove.
9684 * symfile.c (default_symfile_segments): Update.
9685 * elfread.c (elf_symfile_segments): Update.
9686 * remote.c (remote_target::get_offsets): Update.
9687 * solib-target.c (solib_target_relocate_section_addresses):
9688 Update.
9689
9690 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * symfile.h (struct symfile_segment_data): Initialize fields.
9693 <~symfile_segment_data>: Add.
9694 (symfile_segment_data_up): New.
9695 (struct sym_fns) <sym_segments>: Return a
9696 symfile_segment_data_up.
9697 (default_symfile_segments): Return a symfile_segment_data_up.
9698 (free_symfile_segment_data): Remove.
9699 (get_symfile_segment_data): Return a symfile_segment_data_up.
9700 * symfile.c (default_symfile_segments): Likewise.
9701 (get_symfile_segment_data): Likewise.
9702 (free_symfile_segment_data): Remove.
9703 (symfile_find_segment_sections): Update.
9704 * elfread.c (elf_symfile_segments): Return a
9705 symfile_segment_data_up.
9706 * remote.c (remote_target::get_offsets): Update.
9707 * solib-target.c (solib_target_relocate_section_addresses):
9708 Update.
9709 * symfile-debug.c (debug_sym_segments): Return a
9710 symfile_segment_data_up.
9711
9712 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9713
9714 PR build/25981
9715 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9716 Hardcode register numbers.
9717
9718 PR build/25981
9719 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9720 procfs_find_LDT_entry): Remove.
9721 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9722 procfs_find_LDT_entry): Remove.
9723 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9724 Remove.
9725
9726 2020-05-17 Pedro Alves <palves@redhat.com>
9727 Andrew Burgess <andrew.burgess@embecosm.com>
9728 Keno Fischer <keno@juliacomputing.com>
9729
9730 PR gdb/25741
9731 * breakpoint.c (build_target_condition_list): Update comments.
9732 (build_target_command_list): Update comments and skip matching
9733 locations.
9734 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9735 a separate function. Simplify "set breakpoint auto-hw off"
9736 handling.
9737 (insert_breakpoints): Update comment.
9738 (tracepoint_locations_match): New parameter. For breakpoints,
9739 compare location types too, if the caller wants to.
9740 (handle_automatic_hardware_breakpoints): New functions.
9741 (bp_location_is_less_than): Also sort by location type and
9742 hardware breakpoint length.
9743 (update_global_location_list): Handle "set breakpoint auto-hw on"
9744 here.
9745 (update_breakpoint_locations): Ask breakpoint_locations_match to
9746 ignore location types.
9747
9748 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9751 type::name instead.
9752
9753 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * gdbtypes.h (struct type) <name, set_name>: New methods.
9756 (TYPE_CODE): Use type::name. Change all call sites used to set
9757 the name to use type::set_name instead.
9758
9759 2020-05-16 Tom Tromey <tom@tromey.com>
9760
9761 * top.c (quit_force): Update.
9762 * infrun.c (handle_no_resumed): Update.
9763 * top.h (all_uis): New function.
9764 (ALL_UIS): Remove.
9765
9766 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9769
9770 2020-05-16 Pedro Alves <palves@redhat.com>
9771
9772 * ia64-linux-nat.c
9773 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9774 Declare method.
9775 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9776
9777 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9780 (sparc64_adi_info): Likewise.
9781
9782 2020-05-15 Tom Tromey <tom@tromey.com>
9783
9784 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9785 block_objfile.
9786 (lookup_objfile_from_block): Remove.
9787 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9788 (lookup_global_symbol): Use block_objfile.
9789 * symtab.h (lookup_objfile_from_block): Don't declare.
9790 * printcmd.c (clear_dangling_display_expressions): Use
9791 block_objfile.
9792 * parse.c (operator_check_standard): Use block_objfile.
9793
9794 2020-05-15 Tom Tromey <tom@tromey.com>
9795
9796 * language.c (language_alloc_type_symbol): Set
9797 SYMBOL_SECTION.
9798 * symtab.c (initialize_objfile_symbol): Remove.
9799 (allocate_symbol): Remove.
9800 (allocate_template_symbol): Remove.
9801 * dwarf2/read.c (fixup_go_packaging): Use "new".
9802 (new_symbol): Use "new".
9803 (read_variable): Don't call initialize_objfile_symbol. Use
9804 "new".
9805 (read_func_scope): Use "new".
9806 * xcoffread.c (process_xcoff_symbol): Don't call
9807 initialize_objfile_symbol.
9808 (SYMBOL_DUP): Remove.
9809 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9810 "new".
9811 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9812 (allocate_template_symbol): Don't declare.
9813 (struct symbol): Add copy constructor. Change defaults.
9814 * jit.c (finalize_symtab): Use "new".
9815 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9816 Use "new".
9817 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9818 (common_block_end): Use "new".
9819 * mdebugread.c (parse_symbol): Use "new".
9820 (new_symbol): Likewise.
9821
9822 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9823
9824 * NEWS: Mention changes to help and apropos.
9825
9826 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9827
9828 * command.h (enum command_class): Improve comments, document
9829 that class_alias is for user-defined aliases, give the class
9830 name for each class, remove unused class_xdb.
9831 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9832 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9833 by a precise class.
9834 * infcmd.c (_initialize_infcmd): Likewise.
9835 * reverse.c (_initialize_reverse): Likewise.
9836 * stack.c (_initialize_stack): Likewise.
9837 * symfile.c (_initialize_symfile): Likewise.
9838 * tracepoint.c (_initialize_tracepoint): Likewise.
9839
9840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9841
9842 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9843 when their aliased command is traversed.
9844 (help_cmd): Add fput_command_names_styled call to
9845 output command name and aliases when command has an alias.
9846
9847 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9848
9849 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9850 * cli/cli-decode.c (help_cmd_list): Declare as static,
9851 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9852 a command together with the command.
9853 (fput_command_name_styled, fput_command_names_styled): New functions.
9854 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9855 fput_command_name_styled.
9856 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9857 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9858
9859 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9860
9861 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9862 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9863 * command.h (cmd_show_list): Likewise.
9864 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9865 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9866
9867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868
9869 * unittests/command-def-selftests.c (traverse_command_structure):
9870 Verify all commands of a list have the same prefix command and
9871 that only the top cmdlist commands have a null prefix.
9872
9873 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9874
9875 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9876 as prefix, not one of its aliases.
9877 (set_cmd_prefix): Remove.
9878 (do_add_cmd): Centralize the setting of the prefix of a command, when
9879 command is defined after its full chain of prefix commands.
9880 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9881 (add_setshow_cmd_full): Likewise.
9882 (update_prefix_field_of_prefixed_commands): New function.
9883 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9884 update_prefix_field_of_prefixed_commands.
9885 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9886 addresses of remote_set_cmdlist and remote_show_cmdlist given
9887 as argument, not the address of an argument.
9888 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9889 * gdb/remote.c (_initialize_remote): Likewise.
9890
9891 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9892
9893 * cli/cli-cmds.c (alias_command): Check for an existing alias
9894 using lookup_cmd_composition, as valid_command_p is too strict
9895 and forbids aliases that are the prefix of an existing alias
9896 or command.
9897 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9898 command is properly recognised as a valid command.
9899
9900 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9901
9902 * unittests/help-doc-selftests.c: Rename to
9903 unittests/command-def-selftests.c
9904 * unittests/command-def-selftests.c (help_doc_tests): Update some
9905 comments.
9906 (command_structure_tests, traverse_command_structure): New namespace
9907 and function.
9908 (command_structure_invariants_tests): New function.
9909 (_initialize_command_def_selftests) Renamed from
9910 _initialize_help_doc_selftests, register command_structure_invariants
9911 selftest.
9912
9913 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9914
9915 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9916 an alias of 'show'.
9917
9918 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9919
9920 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9921 ada_is_fixed_point_type. Update all callers.
9922 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9923 all callers.
9924 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9925 Update all callers.
9926 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9927 print_fixed_point_type. Update all callers.
9928 * ada-valprint.c (ada_value_print_num): Replace call to
9929 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9930
9931 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9932
9933 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9934 processors.
9935 (cpu_supports_bts): Add CV_AMD case.
9936
9937 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9938 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * infrun.c (stop_all_threads): Collect multiple wait events at
9941 each pass.
9942
9943 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9946 type::code instead.
9947
9948 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * gdbtypes.h (struct type) <code, set_code>: New methods.
9951 (TYPE_CODE): Use type::code. Change all call sites used to set
9952 the code to use type::set_code instead.
9953
9954 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9955 Tom de Vries <tdevries@suse.de>
9956 Pedro Alves <palves@redhat.com>
9957
9958 PR threads/25478
9959 * infrun.c (stop_all_threads): Do NOT ignore
9960 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9961 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9962 received.
9963 (handle_no_resumed): Remove code handling a live inferior with no
9964 threads.
9965 * remote.c (has_single_non_exited_thread): New.
9966 (remote_target::update_thread_list): Do not delete a thread if is
9967 the last thread of the process.
9968 * thread.c (thread_select): Call delete_exited_threads instead of
9969 prune_threads.
9970
9971 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9972
9973 * infrun.c (stop_all_threads): Enable/disable thread events of all
9974 targets. Move a debug message denoting the end of the function
9975 into the SCOPED_EXIT block.
9976
9977 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9978
9979 * process-stratum-target.h: Include <set>.
9980 (all_non_exited_process_targets, switch_to_target_no_thread): New
9981 function declarations.
9982 * process-stratum-target.c (all_non_exited_process_targets)
9983 (switch_to_target_no_thread): New function implementations.
9984
9985 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9986
9987 * infrun.c (handle_inferior_event): Extract out a piece of code
9988 into...
9989 (mark_non_executing_threads): ...this new function.
9990
9991 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9992
9993 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9994 use.
9995
9996 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9997
9998 * regcache.c (regcache_read_pc_protected): New function
9999 implementation that returns 0 if the PC cannot read via
10000 'regcache_read_pc'.
10001 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10002 instead of 'regcache_read_pc'.
10003 (keep_going_pass_signal): Ditto.
10004
10005 2020-05-13 Tom Tromey <tromey@adacore.com>
10006
10007 * ada-lang.c (align_value): Remove.
10008 (ada_template_to_fixed_record_type_1): Use align_up.
10009
10010 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10011
10012 * async-event.c: Update the copyright year.
10013 * async-event.h: Update the copyright year.
10014
10015 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * objfiles.h (is_addr_in_objfile,
10018 shared_objfile_contains_address_p): Return bool.
10019 * objfile.c (is_addr_in_objfile,
10020 shared_objfile_contains_address_p): Return bool.
10021
10022 2020-05-11 Tom Tromey <tromey@adacore.com>
10023
10024 * cli/cli-cmds.c (info_command): Restore.
10025 (_initialize_cli_cmds): Use add_prefix_command for "info".
10026 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10027
10028 2020-05-11 Tom Tromey <tromey@adacore.com>
10029
10030 * ada-lang.c (ada_value_primitive_field): Now public.
10031 * ada-lang.h (ada_value_primitive_field): Declare.
10032 * ada-valprint.c (print_field_values): Use
10033 ada_value_primitive_field for wrapper fields.
10034
10035 2020-05-11 Tom de Vries <tdevries@suse.de>
10036
10037 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10038 MODULE_DOMAIN.
10039
10040 2020-05-11 Tom de Vries <tdevries@suse.de>
10041
10042 PR symtab/25941
10043 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10044 with length 0, if not gdb-produced.
10045 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10046
10047 2020-05-09 Tom de Vries <tdevries@suse.de>
10048
10049 PR gdb/25955
10050 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10051 calculation.
10052
10053 2020-05-09 Tom Tromey <tom@tromey.com>
10054
10055 * top.c (server_command): Now bool.
10056 * top.h (server_command): Now bool.
10057
10058 2020-05-08 Tom Tromey <tromey@adacore.com>
10059
10060 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10061 already being processed.
10062
10063 2020-05-08 Tom Tromey <tom@tromey.com>
10064
10065 * printcmd.c (struct display) <next>: Remove.
10066 <display>: New constructor.
10067 <exp_string>: Now a std::string.
10068 <enabled_p>: Now a bool.
10069 (display_number): Move definition earlier.
10070 (displays): Rename from display_chain. Now a std::vector.
10071 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10072 (display_command): Update.
10073 (do_one_display, disable_display)
10074 (enable_disable_display_command, do_enable_disable_display):
10075 Update.
10076 (free_display): Remove.
10077 (clear_displays): Rewrite.
10078 (delete_display): Update.
10079 (map_display_numbers): Use function_view. Remove "data"
10080 parameter. Update.
10081 (do_delete_display): Remove.
10082 (undisplay_command): Update.
10083 (do_one_display, do_displays, disable_display)
10084 (info_display_command): Update.
10085 (do_enable_disable_display): Remove.
10086 (enable_disable_display_command)
10087 (clear_dangling_display_expressions): Update.
10088
10089 2020-05-08 Tom Tromey <tom@tromey.com>
10090
10091 * symtab.c (set_symbol_cache_size)
10092 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10093 (maintenance_print_symbol_cache_statistics): Update.
10094 * symmisc.c (print_symbol_bcache_statistics)
10095 (print_objfile_statistics, maintenance_print_objfiles)
10096 (maintenance_info_symtabs, maintenance_check_symtabs)
10097 (maintenance_expand_symtabs, maintenance_info_line_tables):
10098 Update.
10099 * symfile-debug.c (set_debug_symfile): Update.
10100 * source.c (forget_cached_source_info): Update.
10101 * python/python.c (gdbpy_progspaces): Update.
10102 * psymtab.c (maintenance_info_psymtabs): Update.
10103 * probe.c (parse_probes): Update.
10104 * linespec.c (iterate_over_all_matching_symtabs)
10105 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10106 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10107 * exec.c (exec_target::close): Update.
10108 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10109 * breakpoint.c (print_one_breakpoint_location)
10110 (create_longjmp_master_breakpoint)
10111 (create_std_terminate_master_breakpoint): Update.
10112 * progspace.c (program_spaces): Now a std::vector.
10113 (maybe_new_address_space): Update.
10114 (add_program_space): Remove.
10115 (program_space::program_space): Update.
10116 (remove_program_space): Update.
10117 (number_of_program_spaces): Remove.
10118 (print_program_space, update_address_spaces): Update.
10119 * progspace.h (program_spaces): Change type.
10120 (ALL_PSPACES): Remove.
10121 (number_of_program_spaces): Don't declare.
10122 (struct program_space) <next>: Remove.
10123
10124 2020-05-08 Tom Tromey <tom@tromey.com>
10125
10126 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10127 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10128 (enable_break): Update.
10129 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10130 (frv_fdpic_find_canonical_descriptor): Update.
10131 (frv_fetch_objfile_link_map): Update.
10132 * progspace.c (program_space::free_all_objfiles): Update.
10133 (program_space::solibs): New method.
10134 * progspace.h (struct program_space) <solibs>: New method.
10135 * solist.h (master_so_list): Don't declare.
10136 (ALL_SO_LIBS): Remove.
10137 * solib.h (so_list_head): Remove.
10138 (update_solib_list): Update comment.
10139 * solib.c (master_so_list): Remove.
10140 (solib_used, update_solib_list, solib_add)
10141 (info_sharedlibrary_command, clear_solib)
10142 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10143
10144 2020-05-08 Tom Tromey <tom@tromey.com>
10145
10146 * extension.c (extension_languages): Now a std::array.
10147 (ALL_EXTENSION_LANGUAGES): Remove.
10148 (get_ext_lang_defn, get_ext_lang_of_file)
10149 (eval_ext_lang_from_control_command): Update.
10150 (finish_ext_lang_initialization)
10151 (auto_load_ext_lang_scripts_for_objfile)
10152 (ext_lang_type_printers::ext_lang_type_printers)
10153 (apply_ext_lang_type_printers)
10154 (ext_lang_type_printers::~ext_lang_type_printers)
10155 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10156 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10157 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10158 (get_matching_xmethod_workers, ext_lang_colorize)
10159 (ext_lang_before_prompt): Update.
10160 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10161
10162 2020-05-08 Tom Tromey <tom@tromey.com>
10163
10164 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10165 overload.
10166 <swap_string, m_string>: Remove.
10167 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10168 Update.
10169 * stabsread.c (define_symbol, read_type): Update.
10170 * linespec.c (find_linespec_symbols): Update.
10171 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10172 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10173 * dbxread.c (read_dbx_symtab): Update.
10174 * cp-support.h (cp_canonicalize_string_full)
10175 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10176 Return unique_xmalloc_ptr.
10177 * cp-support.c (inspect_type): Update.
10178 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10179 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10180 Likewise.
10181 * c-typeprint.c (print_name_maybe_canonical): Update.
10182 * break-catch-throw.c (check_status_exception_catchpoint):
10183 Update.
10184
10185 2020-05-08 Tom de Vries <tdevries@suse.de>
10186
10187 * infrun.c (follow_fork): Copy current_line and current_symtab to
10188 child thread.
10189
10190 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * async-event.c (struct async_signal_handler, struct
10193 async_event_handler): Reformat, remove typedef.
10194
10195 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10198 access thistype->main_type->dyn_prop_list directly.
10199
10200 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10203 (remove_dyn_prop): Remove. Update all users to use
10204 type::remove_dyn_prop.
10205 * gdbtypes.c (remove_dyn_prop): Rename to...
10206 (type::remove_dyn_prop): ... this.
10207
10208 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10209
10210 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10211 (add_dyn_prop): Remove. Update all users to use
10212 type::add_dyn_prop.
10213 * gdbtypes.c (add_dyn_prop): Rename to...
10214 (type::add_dyn_prop): ... this.
10215
10216 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10219 (get_dyn_prop): Remove. Update all users to use
10220 type::dyn_prop.
10221 * gdbtypes.c (get_dyn_prop): Rename to...
10222 (type::dyn_prop): ... this.
10223
10224 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10227
10228 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10229
10230 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10231 instruction, skip it if it's there.
10232
10233 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10234
10235 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10236
10237 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10240 * gdbtypes.c (recursive_dump_type): Remove use of
10241 TYPE_INCOMPLETE.
10242
10243 2020-05-03 Tom Tromey <tom@tromey.com>
10244
10245 * breakpoint.c (catch_command, tcatch_command): Remove.
10246 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10247 add_show_prefix_cmd.
10248 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10249 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10250 Remove.
10251 (add_internal_problem_command): Use add_basic_prefix_cmd,
10252 add_show_prefix_cmd.
10253 * mips-tdep.c (set_mipsfpu_command): Remove.
10254 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10255 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10256 (_initialize_index_cache): Use add_basic_prefix_cmd.
10257 * memattr.c (dummy_cmd): Remove.
10258 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10259 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10260 (_initialize_tui_win): Use add_basic_prefix_cmd,
10261 add_show_prefix_cmd.
10262 * cli/cli-logging.c (set_logging_command): Remove.
10263 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10264 add_show_prefix_cmd.
10265 (show_logging_command): Remove.
10266 * target.c (target_command): Remove.
10267 (add_target): Use add_basic_prefix_cmd.
10268
10269 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10270
10271 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10272
10273 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274
10275 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10276 info_command.
10277
10278 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10279
10280 * nbsd-nat.c (nbsd_enable_proc_events)
10281 (nbsd_nat_target::post_startup_inferior): Add.
10282 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10283 (nbsd_nat_target::update_thread_list): Rewrite.
10284 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10285 "PTRACE_LWP_CREATE".
10286 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10287
10288 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10289
10290 * stack.c (_initialize_stack): Remove duplicated creation
10291 of "frame" command and "f" alias.
10292
10293 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10294
10295 PR gdb/18706
10296 * gdbtypes.c (check_typedef): Calculate size of array of
10297 stubbed type.
10298
10299 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10300
10301 PR gdb/15559
10302 * i386-tdep.c (i386_push_dummy_call): Call
10303 i386_thiscall_push_dummy_call.
10304 (i386_thiscall_push_dummy_call): New function.
10305 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10306 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10307 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10308
10309 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10310
10311 * gdbarch.sh (do_read): Add shellcheck disable directive for
10312 warning SC2162.
10313
10314 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10315
10316 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10317 "referenced but not assigned" warning.
10318
10319 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * gdbarch.sh: Remove code that sets fallbackdefault.
10322
10323 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * gdbarch.sh: Use shell operators && and || instead of
10326 -a and -o.
10327
10328 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * gdbarch.sh: Use $(...) instead of `...`.
10331
10332 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbarch.sh: Use double quotes around variables.
10335
10336 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10337
10338 * gdbarch.sh: Use %s with printf, instead of variables in the
10339 format string.
10340
10341 2020-04-29 Tom Tromey <tromey@adacore.com>
10342
10343 PR ada/25875:
10344 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10345 type fields here.
10346 (read_enumeration_type): Call
10347 update_enumeration_type_from_children later. Update comments.
10348 (process_enumeration_scope): Don't create type fields.
10349
10350 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10351
10352 * nbsd-tdep.c: Include "xml-syscall.h".
10353 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10354
10355 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10356
10357 * nbsd-nat.c: Include "sys/wait.h".
10358 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10359 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10360 (nbsd_nat_target::remove_exec_catchpoint)
10361 (nbsd_nat_target::set_syscall_catchpoint): Add.
10362 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10363 (nbsd_nat_target::insert_exec_catchpoint)
10364 (nbsd_nat_target::remove_exec_catchpoint)
10365 (nbsd_nat_target::set_syscall_catchpoint): Add.
10366 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10367 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10368 `nbsd_get_syscall_number'.
10369
10370 2020-04-29 Tom Tromey <tom@tromey.com>
10371
10372 * stack.c (print_block_frame_labels): Remove.
10373
10374 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10375
10376 PR gdb/17320
10377 * ada-valprint.c (val_print_packed_array_elements): Move array
10378 end bracket to new line.
10379 (ada_val_print_string): Remove extra spaces before first array
10380 element.
10381 * c-valprint.c (c_value_print_array): Likewise.
10382 * m2-valprint.c (m2_print_array_contents): Likewise.
10383 (m2_value_print_inner): Likewise.
10384 * p-valprint.c (pascal_value_print_inner): Likewise.
10385 * valprint.c (generic_val_print_array): Likewise.
10386 (value_print_array_elements): Move first array element and array
10387 end bracket to new line.
10388
10389 2020-04-29 Tom de Vries <tdevries@suse.de>
10390
10391 PR symtab/25889
10392 * linespec.c (find_method): Fix ix calculation.
10393
10394 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10395
10396 * syscalls/update-netbsd.sh: New file.
10397 * syscalls/netbsd.xml: Regenerate.
10398 * data-directory/Makefile.in: Register `netbsd.xml' in
10399 `SYSCALLS_FILES'.
10400
10401 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * syscalls/update-freebsd.sh: Add double quotes.
10404
10405 2020-04-28 Tom Tromey <tom@tromey.com>
10406
10407 * NEWS: Update.
10408 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10409 (cmdpy_init): Allow class_tui.
10410
10411 2020-04-28 Mark Williams <mark@myosotissp.com>
10412
10413 PR gdb/24480
10414 * dwarf2read.c: Add missing assingments to list_in_scope when
10415 start_symtab was already called.
10416
10417 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10418
10419 PR gdb/25881
10420 * dwarf2/read.c (offset_map_type): Use
10421 gdb:hash_enum<sect_offset> as hash function.
10422
10423 2020-04-28 Tom de Vries <tdevries@suse.de>
10424
10425 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10426 with DW_AT_signature.
10427
10428 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10429
10430 * configure.ac: Remove check for fs_base/gs_base in
10431 user_regs_struct.
10432 * configure: Re-generate.
10433 * config.in: Re-generate.
10434 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10435 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10436 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10437
10438 2020-04-27 Luis Machado <luis.machado@linaro.org>
10439
10440 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10441 problematic inline frame unwinding situation.
10442 * frame.c (frame_id_computed_p): New function.
10443 * frame.h (frame_id_computed_p): New prototype.
10444
10445 2020-04-26 Tom Tromey <tom@tromey.com>
10446
10447 * command.h (enum command_class) <class_pseudo>: Remove.
10448
10449 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10450
10451 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10452 and whitespace.
10453
10454 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10455
10456 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10457 `PT_GET_PROCESS_STATE' block.
10458
10459 2020-04-24 Tom Tromey <tom@tromey.com>
10460
10461 * symtab.h (symbol_get_demangled_name): Don't declare.
10462 * symtab.c (symbol_get_demangled_name): Remove.
10463 (general_symbol_info::natural_name)
10464 (general_symbol_info::demangled_name): Update.
10465
10466 2020-04-24 Tom Tromey <tom@tromey.com>
10467
10468 PR rust/25025:
10469 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10470
10471 2020-04-24 Tom Tromey <tom@tromey.com>
10472
10473 PR symtab/12707:
10474 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10475 exists.
10476 (new_symbol): Likewise.
10477 * compile/compile-object-load.c (get_out_value_type): Use
10478 symbol_matches_search_name.
10479
10480 2020-04-24 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2/read.c (add_partial_symbol): Do not call
10483 compute_and_set_names.
10484
10485 2020-04-24 Tom Tromey <tom@tromey.com>
10486
10487 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10488 overload.
10489
10490 2020-04-24 Tom Tromey <tom@tromey.com>
10491
10492 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10493 (add_psymbol_to_list): New overload. Make old overload call new
10494 one.
10495 * psympriv.h (add_psymbol_to_list): New overload.
10496
10497 2020-04-24 Tom Tromey <tom@tromey.com>
10498
10499 * dwarf2/read.c (partial_die_info::read) <case
10500 DW_AT_linkage_name>: Use value_as_string.
10501 (dwarf2_string_attr): Use value_as_string.
10502 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10503 method.
10504 * dwarf2/attribute.c (attribute::value_as_string): New method.
10505
10506 2020-04-24 Tom Tromey <tom@tromey.com>
10507
10508 * symtab.c (general_symbol_info::natural_name)
10509 (general_symbol_info::demangled_name): Check for language_rust.
10510
10511 2020-04-24 Tom Tromey <tom@tromey.com>
10512
10513 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10514 (dwarf2_physname): ... from here.
10515 (partial_die_info::read): Add Rust "{" hack.
10516
10517 2020-04-24 Tom Tromey <tom@tromey.com>
10518
10519 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10520 method.
10521 (symbol_set_demangled_name): Don't declare.
10522 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10523 symbol_set_demangled_name.
10524 (general_symbol_info::set_language)
10525 (general_symbol_info::compute_and_set_names): Update.
10526 * minsyms.c (minimal_symbol_reader::install): Update.
10527 * dwarf2/read.c (new_symbol): Update.
10528
10529 2020-04-24 Tom Tromey <tromey@adacore.com>
10530
10531 PR python/23662:
10532 * python/py-type.c (convert_field): Handle
10533 FIELD_LOC_KIND_DWARF_BLOCK.
10534 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10535 (typy_get_dynamic): Nw function.
10536 (type_object_getset): Add "dynamic".
10537 * NEWS: Add entry.
10538
10539 2020-04-24 Tom Tromey <tromey@adacore.com>
10540
10541 * ada-typeprint.c (print_choices, print_variant_part)
10542 (print_record_field_types_dynamic): New functions.
10543 (print_record_field_types): Use print_record_field_types_dynamic.
10544
10545 2020-04-24 Tom Tromey <tromey@adacore.com>
10546
10547 * dwarf2/read.c (handle_data_member_location): New overload.
10548 (dwarf2_add_field): Use it.
10549 (decode_locdesc): Add "computed" parameter. Update comment.
10550 * gdbtypes.c (is_dynamic_type_internal): Also look for
10551 FIELD_LOC_KIND_DWARF_BLOCK.
10552 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10553 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10554 virtual base classes.
10555 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10556 FIELD_LOC_KIND_DWARF_BLOCK.
10557
10558 2020-04-24 Tom Tromey <tromey@adacore.com>
10559
10560 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10561 * gdbtypes.c (is_dynamic_type_internal): Check
10562 TYPE_HAS_DYNAMIC_LENGTH.
10563 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10564 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10565 New macros.
10566 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10567 constant.
10568
10569 2020-04-24 Tom Tromey <tromey@adacore.com>
10570
10571 * dwarf2/read.c (struct variant_field): Rewrite.
10572 (struct variant_part_builder): New.
10573 (struct nextfield): Remove "variant" field. Add "offset".
10574 (struct field_info): Add "current_variant_part" and
10575 "variant_parts".
10576 (alloc_discriminant_info): Remove.
10577 (alloc_rust_variant): New function.
10578 (quirk_rust_enum): Update.
10579 (dwarf2_add_field): Set "offset" member. Don't handle
10580 DW_TAG_variant_part.
10581 (offset_map_type): New typedef.
10582 (convert_variant_range, create_one_variant)
10583 (create_one_variant_part, create_variant_parts)
10584 (add_variant_property): New functions.
10585 (dwarf2_attach_fields_to_type): Call add_variant_property.
10586 (read_structure_type): Don't handle DW_TAG_variant_part.
10587 (handle_variant_part, handle_variant): New functions.
10588 (handle_struct_member_die): Use them.
10589 (process_structure_scope): Don't handle variant parts.
10590 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10591 (struct discriminant_info): Remove.
10592 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10593 (struct main_type) <flag_discriminated_union>: Remove.
10594 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10595 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10596 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10597 Update.
10598 * valops.c (value_union_variant): Remove.
10599 * value.h (value_union_variant): Don't declare.
10600
10601 2020-04-24 Tom Tromey <tromey@adacore.com>
10602
10603 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10604 (ada_value_primitive_packed_val): Update.
10605 * ada-valprint.c (ada_value_print_1): Update.
10606 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10607 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10608 just an address. Use evaluate_for_locexpr_baton.
10609 (dwarf2_evaluate_property): Update.
10610 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10611 array_view.
10612 * findvar.c (default_read_var_value): Update.
10613 * gdbtypes.c (compute_variant_fields_inner)
10614 (resolve_dynamic_type_internal): Update.
10615 (resolve_dynamic_type): Change type of valaddr parameter.
10616 * gdbtypes.h (resolve_dynamic_type): Update.
10617 * valarith.c (value_subscripted_rvalue): Update.
10618 * value.c (value_from_contents_and_address): Update.
10619
10620 2020-04-24 Tom Tromey <tromey@adacore.com>
10621
10622 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10623 "push_initial_value" parameter.
10624 (dwarf2_evaluate_property): Likewise.
10625 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10626
10627 2020-04-24 Tom Tromey <tromey@adacore.com>
10628
10629 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10630 (variant::matches, compute_variant_fields_recurse)
10631 (compute_variant_fields_inner, compute_variant_fields): New
10632 functions.
10633 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10634 Use resolved_type after type is made.
10635 (operator==): Add new cases.
10636 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10637 (struct discriminant_range, struct variant, struct variant_part):
10638 New.
10639 (union dynamic_prop_data) <variant_parts, original_type>: New
10640 members.
10641 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10642 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10643 constants.
10644 * value.c (unpack_bits_as_long): Now public.
10645 * value.h (unpack_bits_as_long): Declare.
10646
10647 2020-04-24 Tom Tromey <tromey@adacore.com>
10648
10649 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10650 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10651
10652 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10653
10654 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10655
10656 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10657
10658 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10659 (remove_fork_catchpoint, post_startup_inferior)
10660 (post_attach): Move...
10661 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10662 (remove_fork_catchpoint, post_startup_inferior)
10663 (post_attach): ...here.
10664 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10665 (remove_fork_catchpoint, post_startup_inferior)
10666 (post_attach): Move...
10667 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10668 (remove_fork_catchpoint, post_startup_inferior)
10669 (post_attach): ...here.
10670
10671 2020-04-24 Tom Tromey <tromey@adacore.com>
10672
10673 * nat/windows-nat.h (struct windows_thread_info)
10674 <pc_adjusted>: New member.
10675 * windows-nat.c (windows_fetch_one_register): Check
10676 pc_adjusted.
10677 (windows_nat_target::get_windows_debug_event)
10678 (windows_nat_target::wait): Set pc_adjusted.
10679
10680 2020-04-24 Tom de Vries <tdevries@suse.de>
10681
10682 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10683 Run gdb-add-index inside temp dir.
10684
10685 2020-04-23 Tom Tromey <tromey@adacore.com>
10686
10687 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10688 in loop.
10689
10690 2020-04-23 Luis Machado <luis.machado@linaro.org>
10691
10692 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10693 get_frame_register instead of gdbarch_unwind_pc.
10694
10695 2020-04-23 Tom de Vries <tdevries@suse.de>
10696
10697 * symtab.c (lookup_global_symbol): Prefer def over decl.
10698
10699 2020-04-23 Tom de Vries <tdevries@suse.de>
10700
10701 PR symtab/25807
10702 * block.c (best_symbol, better_symbol): Promote to external.
10703 * block.h (best_symbol, better_symbol): Declare.
10704 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10705 decl.
10706
10707 2020-04-23 Tom Tromey <tromey@adacore.com>
10708
10709 PR ada/25837:
10710 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10711 "const char *", not a "const std::string &".
10712 <name_and_matcher::operator==>: Update.
10713 * unittests/lookup_name_info-selftests.c: Change type of
10714 "result".
10715
10716 2020-04-23 Tom Tromey <tom@tromey.com>
10717
10718 * inferior.h (iterate_over_inferiors): Don't declare.
10719 * inferior.c (iterate_over_inferiors): Remove.
10720 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10721 Remove.
10722 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10723 use iterate_over_inferiors.
10724 (darwin_resume_inferior_it)
10725 (struct resume_inferior_threads_param)
10726 (darwin_resume_inferior_threads_it): Remove.
10727 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10728
10729 2020-04-23 Tom de Vries <tdevries@suse.de>
10730
10731 * blockframe.c (find_pc_partial_function): Use
10732 find_pc_sect_compunit_symtab rather than
10733 objfile->sf->qf->find_pc_sect_compunit_symtab.
10734
10735 2020-04-22 Tom de Vries <tdevries@suse.de>
10736
10737 PR symtab/25764
10738 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10739 in psymtabs.
10740
10741 2020-04-22 Tom de Vries <tdevries@suse.de>
10742
10743 PR symtab/25801
10744 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10745 symtabs.
10746
10747 2020-04-22 Tom de Vries <tdevries@suse.de>
10748
10749 PR symtab/25700
10750 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10751 CU if already created.
10752
10753 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10754
10755 * infrun.c (displaced_step_fixup): Switch to the event_thread
10756 before calling displaced_step_restore, not after.
10757
10758 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10759
10760 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10761 its inferior is not recorded by us.
10762 (record_btrace_target_open): Replace call to
10763 all_non_exited_threads () with call to current_inferior
10764 ()->non_exited_threads ().
10765 (record_btrace_target::stop_recording): Likewise.
10766 (record_btrace_target::close): Likewise.
10767 (record_btrace_target::wait): Likewise.
10768 (record_btrace_target::record_stop_replaying): Likewise.
10769
10770 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10771
10772 * btrace.c (btrace_enable): Throw an error on double enables and
10773 when enabling recording fails.
10774 (btrace_disable): Throw an error if the thread is not recorded.
10775
10776 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10777
10778 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10779 request if we do not have a thread_info.
10780
10781 2020-04-21 Tom de Vries <tdevries@suse.de>
10782
10783 PR gdb/25471
10784 * thread.c
10785 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10786 exception in get_frame_id.
10787
10788 2020-04-20 Tom Tromey <tromey@adacore.com>
10789
10790 * python/python.c (struct gdbpy_event): Mark move constructor as
10791 noexcept.
10792 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10793 constructor as noexcept.
10794 * completer.h (struct completion_result): Mark move constructor as
10795 noexcept.
10796 * completer.c (completion_result::completion_result): Use
10797 initialization style. Don't call reset_match_list.
10798
10799 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10800
10801 * MAINTAINERS (Write After Approval): Add myself.
10802
10803 2020-04-18 Tom Tromey <tom@tromey.com>
10804
10805 * windows-tdep.c (init_w32_command_list)
10806 (w32_prefix_command_valid): Restore.
10807 (_initialize_windows_tdep): Call init_w32_command_list.
10808
10809 2020-04-18 Tom Tromey <tom@tromey.com>
10810
10811 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10812 * value.c (value_fn_field): Update.
10813 * valops.c (find_function_in_inferior)
10814 (value_allocate_space_in_inferior): Update.
10815 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10816 Update.
10817 * tui/tui-source.c (tui_source_window::set_contents): Update.
10818 * symtab.c (lookup_global_or_static_symbol)
10819 (find_function_start_sal_1, skip_prologue_sal)
10820 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10821 * symmisc.c (dump_msymbols, dump_symtab_1)
10822 (maintenance_print_one_line_table): Update.
10823 * symfile.c (init_entry_point_info, section_is_mapped)
10824 (list_overlays_command, simple_read_overlay_table)
10825 (simple_overlay_update_1): Update.
10826 * stap-probe.c (handle_stap_probe): Update.
10827 * stabsread.c (dbx_init_float_type, define_symbol)
10828 (read_one_struct_field, read_enum_type, read_range_type): Update.
10829 * source.c (info_line_command): Update.
10830 * python/python.c (gdbpy_source_objfile_script)
10831 (gdbpy_execute_objfile_script): Update.
10832 * python/py-type.c (save_objfile_types): Update.
10833 * python/py-objfile.c (py_free_objfile): Update.
10834 * python/py-inferior.c (python_new_objfile): Update.
10835 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10836 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10837 (maintenance_check_psymtabs): Update.
10838 * printcmd.c (info_address_command): Update.
10839 * objfiles.h (struct objfile) <arch>: New method, from
10840 get_objfile_arch.
10841 (get_objfile_arch): Don't declare.
10842 * objfiles.c (get_objfile_arch): Remove.
10843 (filter_overlapping_sections): Update.
10844 * minsyms.c (msymbol_is_function): Update.
10845 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10846 (output_nondebug_symbol): Update.
10847 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10848 (mdebug_expand_psymtab): Update.
10849 * machoread.c (macho_add_oso_symfile): Update.
10850 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10851 Update.
10852 * linux-fork.c (checkpoint_command): Update.
10853 * linespec.c (convert_linespec_to_sals): Update.
10854 * jit.c (finalize_symtab): Update.
10855 * infrun.c (insert_exception_resume_from_probe): Update.
10856 * ia64-tdep.c (ia64_find_unwind_table): Update.
10857 * hppa-tdep.c (internalize_unwinds): Update.
10858 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10859 Update.
10860 * gcore.c (call_target_sbrk): Update.
10861 * elfread.c (record_minimal_symbol, elf_symtab_read)
10862 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10863 (elf_gnu_ifunc_resolve_by_got): Update.
10864 * dwarf2/read.c (create_addrmap_from_index)
10865 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10866 (read_debug_names_from_section)
10867 (process_psymtab_comp_unit_reader, add_partial_symbol)
10868 (add_partial_subprogram, process_full_comp_unit)
10869 (read_file_scope, read_func_scope, read_lexical_block_scope)
10870 (read_call_site_scope, dwarf2_ranges_read)
10871 (dwarf2_record_block_ranges, dwarf2_add_field)
10872 (mark_common_block_symbol_computed, read_tag_pointer_type)
10873 (read_tag_string_type, dwarf2_init_float_type)
10874 (dwarf2_init_complex_target_type, read_base_type)
10875 (partial_die_info::read, partial_die_info::read)
10876 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10877 (dwarf2_fetch_die_loc_sect_off): Update.
10878 * dwarf2/loc.c (dwarf2_find_location_expression)
10879 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10880 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10881 (dwarf2_loc_desc_get_symbol_read_needs)
10882 (locexpr_describe_location_piece, locexpr_describe_location_1)
10883 (loclist_describe_location): Update.
10884 * dwarf2/index-write.c (write_debug_names): Update.
10885 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10886 * dtrace-probe.c (dtrace_process_dof): Update.
10887 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10888 (process_one_symbol): Update.
10889 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10890 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10891 (coff_read_enum_type): Update.
10892 * cli/cli-cmds.c (edit_command, list_command): Update.
10893 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10894 * breakpoint.c (create_overlay_event_breakpoint)
10895 (create_longjmp_master_breakpoint)
10896 (create_std_terminate_master_breakpoint)
10897 (create_exception_master_breakpoint, get_sal_arch): Update.
10898 * block.c (block_gdbarch): Update.
10899 * annotate.c (annotate_source_line): Update.
10900
10901 2020-04-17 Tom Tromey <tromey@adacore.com>
10902
10903 * auto-load.c (show_auto_load_cmd): Remove.
10904 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10905 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10906 (maintenance_print_arc_command): Remove.
10907 * tui/tui-win.c (tui_command): Remove.
10908 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10909 * tui/tui-layout.c (tui_layout_command): Remove.
10910 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10911 * python/python.c (user_set_python, user_show_python): Remove.
10912 (_initialize_python): Use add_basic_prefix_cmd,
10913 add_show_prefix_cmd.
10914 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10915 (install_gdb_commands): Use add_basic_prefix_cmd,
10916 add_show_prefix_cmd.
10917 (info_guile_command): Remove.
10918 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10919 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10920 add_show_prefix_cmd.
10921 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10922 Remove do_set and do_show parameters.
10923 * cli/cli-style.c (set_style, show_style): Remove.
10924 (_initialize_cli_style): Use add_basic_prefix_cmd,
10925 add_show_prefix_cmd.
10926 (cli_style_option::add_setshow_commands): Remove do_set and
10927 do_show parameters.
10928 (cli_style_option::add_setshow_commands): Use
10929 add_basic_prefix_cmd, add_show_prefix_cmd.
10930 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10931 (set_style_name): Remove.
10932 * cli/cli-dump.c (dump_command, append_command): Remove.
10933 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10934 (tekhex_dump_command, binary_dump_command)
10935 (binary_append_command): Remove.
10936 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10937 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10938 (init_w32_command_list): Remove; move into ...
10939 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10940 * valprint.c (set_print, show_print, set_print_raw)
10941 (show_print_raw): Remove.
10942 (_initialize_valprint): Use add_basic_prefix_cmd,
10943 add_show_prefix_cmd.
10944 * typeprint.c (set_print_type, show_print_type): Remove.
10945 (_initialize_typeprint): Use add_basic_prefix_cmd,
10946 add_show_prefix_cmd.
10947 * record.c (set_record_command, show_record_command): Remove.
10948 (_initialize_record): Use add_basic_prefix_cmd,
10949 add_show_prefix_cmd.
10950 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10951 add_show_prefix_cmd.
10952 (info_command, show_command, set_debug, show_debug): Remove.
10953 * top.h (set_history, show_history): Don't declare.
10954 * top.c (set_history, show_history): Remove.
10955 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10956 (unset_tdesc_cmd): Remove.
10957 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10958 add_show_prefix_cmd.
10959 * symtab.c (info_module_command): Remove.
10960 (_initialize_symtab): Use add_basic_prefix_cmd.
10961 * symfile.c (overlay_command): Remove.
10962 (_initialize_symfile): Use add_basic_prefix_cmd.
10963 * sparc64-tdep.c (info_adi_command): Remove.
10964 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10965 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10966 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10967 add_show_prefix_cmd.
10968 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10969 (_initialize_serial): Use add_basic_prefix_cmd,
10970 add_show_prefix_cmd.
10971 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10972 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10973 add_show_prefix_cmd.
10974 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10975 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10976 add_show_prefix_cmd.
10977 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10978 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10979 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * remote.c (remote_command, set_remote_cmd): Remove.
10982 (_initialize_remote): Use add_basic_prefix_cmd.
10983 * record-full.c (set_record_full_command)
10984 (show_record_full_command): Remove.
10985 (_initialize_record_full): Use add_basic_prefix_cmd,
10986 add_show_prefix_cmd.
10987 * record-btrace.c (cmd_set_record_btrace)
10988 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10989 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10990 (cmd_show_record_btrace_pt): Remove.
10991 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10992 add_show_prefix_cmd.
10993 * ravenscar-thread.c (set_ravenscar_command)
10994 (show_ravenscar_command): Remove.
10995 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10996 add_show_prefix_cmd.
10997 * mips-tdep.c (show_mips_command, set_mips_command)
10998 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10999 add_show_prefix_cmd.
11000 * maint.c (maintenance_command, maintenance_info_command)
11001 (maintenance_check_command, maintenance_print_command)
11002 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11003 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11004 add_show_prefix_cmd.
11005 (show_per_command_cmd): Remove.
11006 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11007 Remove.
11008 (maintenance_show_test_settings_cmd): Remove.
11009 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11010 add_show_prefix_cmd.
11011 * maint-test-options.c (maintenance_test_options_command):
11012 Remove.
11013 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11014 * macrocmd.c (macro_command): Remove
11015 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11016 * language.c (set_check, show_check): Remove.
11017 (_initialize_language): Use add_basic_prefix_cmd,
11018 add_show_prefix_cmd.
11019 * infcmd.c (unset_command): Remove.
11020 (_initialize_infcmd): Use add_basic_prefix_cmd.
11021 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11022 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11023 add_show_prefix_cmd.
11024 * go32-nat.c (go32_info_dos_command): Remove.
11025 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11026 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11027 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11028 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11029 (_initialize_frame): Use add_basic_prefix_cmd,
11030 add_show_prefix_cmd.
11031 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11032 (_initialize_dcache): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 * cp-support.c (maint_cplus_command): Remove.
11035 (_initialize_cp_support): Use add_basic_prefix_cmd.
11036 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11037 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11038 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11039 add_basic_prefix_cmd, add_show_prefix_cmd.
11040 * breakpoint.c (save_command): Remove.
11041 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11042 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11043 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11044 add_show_prefix_cmd.
11045 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11046 (set_ada_command, show_ada_command): Remove.
11047 (_initialize_ada_language): Use add_basic_prefix_cmd,
11048 add_show_prefix_cmd.
11049 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11050
11051 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11052
11053 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11054 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11055
11056 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11057
11058 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11059 warning messages.
11060
11061 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11062
11063 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11064 import table is not at beginning of .idata section.
11065
11066 2020-04-16 Pedro Alves <palves@redhat.com>
11067
11068 * inferior.c (delete_inferior): Use delete operator directly
11069 instead of delete_program_space.
11070 * progspace.c (add_program_space): New, factored out from
11071 program_space::program_space.
11072 (remove_program_space): New, factored out from
11073 delete_program_space.
11074 (program_space::program_space): Remove intro comment. Rewrite.
11075 (program_space::~program_space): Remove intro comment. Call
11076 remove_program_space.
11077 (delete_program_space): Delete.
11078 * progspace.h (program_space::program_space): Make explicit. Move
11079 intro comment here, adjusted.
11080 (program_space::~program_space): Move intro comment here,
11081 adjusted.
11082 (delete_program_space): Remove.
11083
11084 2020-04-16 Tom Tromey <tromey@adacore.com>
11085
11086 * windows-nat.c (windows_nat::handle_access_violation): New
11087 function.
11088 * nat/windows-nat.h (handle_access_violation): Declare.
11089 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11090 windows-nat.c. Call handle_access_violation.
11091
11092 2020-04-16 Tom de Vries <tdevries@suse.de>
11093
11094 PR symtab/25791
11095 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11096 CUs without psymtab.
11097
11098 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11099
11100 * python/python.c (do_start_initialization): Don't call
11101 PyEval_InitThreads for Python 3.9 and beyond.
11102
11103 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11104
11105 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11106 thread functions.
11107 (obsd_nat_target::wait): Likewise.
11108
11109 2020-04-15 Tom Tromey <tromey@adacore.com>
11110
11111 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11112 (DEBUG_EXCEPT): Use debug_printf.
11113
11114 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11115
11116 * completer.c (class completion_tracker::completion_hash_entry)
11117 <hash_name>: New member function.
11118 (completion_tracker::discard_completions): New callback to hash a
11119 completion_hash_entry, pass this to htab_create_alloc.
11120
11121 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11122
11123 * windows-nat.c (windows_make_so): Warn rather than stopping with
11124 an error if realpath() fails.
11125
11126 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11127
11128 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11129 (nbsd_nat_target::info_proc): Add do_status.
11130
11131 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11132 Tom de Vries <tdevries@suse.de>
11133
11134 PR symtab/25718
11135 * psympriv.h (struct partial_symtab::read_symtab)
11136 (struct partial_symtab::expand_psymtab)
11137 (struct partial_symtab::read_dependencies): Update comments.
11138 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11139 read_symtab for includer.
11140 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11141 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11142 (struct dwarf2_include_psymtab::m_readin): Remove.
11143 (struct dwarf2_include_psymtab::includer): New member function.
11144 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11145
11146 2020-04-14 Tom de Vries <tdevries@suse.de>
11147
11148 PR symtab/25720
11149 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11150 with NULL symbol_matcher and lookup_name.
11151 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11152 and lookup_name.
11153 * dwarf2/read.c (dw2_expand_symtabs_matching)
11154 (dw2_debug_names_expand_symtabs_matching): Same.
11155 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11156 Make lookup_name a pointer. Update comment.
11157 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11158 lookup_name being a pointer.
11159 * symfile.c (expand_symtabs_matching): Same.
11160 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11161 * linespec.c (iterate_over_all_matching_symtabs): Same.
11162
11163 2020-04-13 Tom Tromey <tom@tromey.com>
11164
11165 * run-on-main-thread.c: Update include.
11166 * unittests/main-thread-selftests.c: Update include.
11167 * tui/tui-win.c: Update include.
11168 * tui/tui-io.c: Update include.
11169 * tui/tui-interp.c: Update include.
11170 * tui/tui-hooks.c: Update include.
11171 * top.h: Update include.
11172 * top.c: Update include.
11173 * ser-base.c: Update include.
11174 * remote.c: Update include.
11175 * remote-notif.c: Update include.
11176 * remote-fileio.c: Update include.
11177 * record-full.c: Update include.
11178 * record-btrace.c: Update include.
11179 * python/python.c: Update include.
11180 * posix-hdep.c: Update include.
11181 * mingw-hdep.c: Update include.
11182 * mi/mi-main.c: Update include.
11183 * mi/mi-interp.c: Update include.
11184 * main.c: Update include.
11185 * linux-nat.c: Update include.
11186 * interps.c: Update include.
11187 * infrun.c: Update include.
11188 * inf-loop.c: Update include.
11189 * event-top.c: Update include.
11190 * event-loop.c: Move to ../gdbsupport/.
11191 * event-loop.h: Move to ../gdbsupport/.
11192 * async-event.h: Update include.
11193 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11194
11195 2020-04-13 Tom Tromey <tom@tromey.com>
11196
11197 * tui/tui-win.c: Include async-event.h.
11198 * remote.c: Include async-event.h.
11199 * remote-notif.c: Include async-event.h.
11200 * record-full.c: Include async-event.h.
11201 * record-btrace.c: Include async-event.h.
11202 * infrun.c: Include async-event.h.
11203 * event-top.c: Include async-event.h.
11204 * event-loop.h: Move some declarations to async-event.h.
11205 * event-loop.c: Don't include ser-event.h or top.h. Move some
11206 code to async-event.c.
11207 * async-event.h: New file.
11208 * async-event.c: New file.
11209 * Makefile.in (COMMON_SFILES): Add async-event.c.
11210 (HFILES_NO_SRCDIR): Add async-event.h.
11211
11212 2020-04-13 Tom Tromey <tom@tromey.com>
11213
11214 * utils.c (flush_streams): New function.
11215 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11216
11217 2020-04-13 Tom Tromey <tom@tromey.com>
11218
11219 * event-loop.c (handle_file_event): Use warning, not
11220 printf_unfiltered.
11221
11222 2020-04-13 Tom Tromey <tom@tromey.com>
11223
11224 * event-loop.c: Include <chrono>.
11225
11226 2020-04-13 Tom Tromey <tom@tromey.com>
11227
11228 * gdb_select.h: Move to ../gdbsupport/.
11229 * event-loop.c: Update include path.
11230 * top.c: Update include path.
11231 * ser-base.c: Update include path.
11232 * ui-file.c: Update include path.
11233 * ser-tcp.c: Update include path.
11234 * guile/scm-ports.c: Update include path.
11235 * posix-hdep.c: Update include path.
11236 * ser-unix.c: Update include path.
11237 * gdb_usleep.c: Update include path.
11238 * mingw-hdep.c: Update include path.
11239 * inflow.c: Update include path.
11240 * infrun.c: Update include path.
11241 * event-top.c: Update include path.
11242
11243 2020-04-13 Tom Tromey <tom@tromey.com>
11244
11245 * configure: Rebuild.
11246 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11247
11248 2020-04-13 Tom Tromey <tom@tromey.com>
11249
11250 * event-loop.h (start_event_loop): Don't declare.
11251 * event-loop.c (start_event_loop): Move...
11252 * main.c (start_event_loop): ...here. Now static.
11253
11254 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11255
11256 * MAINTAINERS: Update my email address.
11257
11258 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11259
11260 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11261 IP_ALL.
11262
11263 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11264
11265 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11266 (nbsd_nat_target::info_proc): Add do_cmdline.
11267
11268 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11269
11270 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11271 (nbsd_nat_target::info_proc): Add do_cwd.
11272
11273 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11274
11275 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11276
11277 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11278
11279 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11280 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11281 (nbsd_nat_target::info_proc): New functions.
11282 * nbsd-nat.c (kinfo_get_vmmap): New function.
11283 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11284 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11285 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11286 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11287 functions.
11288 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11289 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11290 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11291 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11292 (KINFO_VME_FLAG_GROWS_DOWN): New.
11293
11294 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11295
11296 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11297 bit shift.
11298
11299 2020-04-10 Tom Tromey <tromey@adacore.com>
11300
11301 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11302
11303 2020-04-10 Tom Tromey <tromey@adacore.com>
11304
11305 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11306 separate debug files.
11307
11308 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11309
11310 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11311 Move to...
11312 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11313 ... here.
11314 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11315 Check for STATUS_WX86_BREAKPOINT.
11316 (windows_nat_target::wait): Same.
11317
11318 2020-04-10 Tom de Vries <tdevries@suse.de>
11319
11320 PR cli/25808
11321 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11322
11323 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11324
11325 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11326 (Write After Approval): Remove Tom de Vries.
11327
11328 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11329
11330 revert partially:
11331 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11332
11333 * buildsym.c (record_line): Fix undefined behavior and preserve
11334 lines at eof.
11335
11336 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11337
11338 * auxv.h (svr4_auxv_parse): New.
11339 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11340 and generic_auxv_parse.
11341 (svr4_auxv_parse): Add.
11342 * obsd-tdep.c: Include "auxv.h".
11343 (obsd_auxv_parse): Remove.
11344 (obsd_init_abi): Remove comment.
11345 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11346 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11347 * nbsd-tdep.c: Include "auxv.h".
11348 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11349
11350 2020-04-08 Tom Tromey <tromey@adacore.com>
11351
11352 * nat/windows-nat.h (last_wait_event): Don't declare.
11353 (wait_for_debug_event): Update comment.
11354 * nat/windows-nat.c (last_wait_event): Now static.
11355
11356 2020-04-08 Tom Tromey <tromey@adacore.com>
11357
11358 * windows-nat.c (wait_for_debug_event): Move to
11359 nat/windows-nat.c.
11360 * nat/windows-nat.h (wait_for_debug_event): Declare.
11361 * nat/windows-nat.c (wait_for_debug_event): Move from
11362 windows-nat.c. No longer static.
11363
11364 2020-04-08 Tom Tromey <tromey@adacore.com>
11365
11366 * windows-nat.c (get_windows_debug_event): Use
11367 fetch_pending_stop.
11368 * nat/windows-nat.h (fetch_pending_stop): Declare.
11369 * nat/windows-nat.c (fetch_pending_stop): New function.
11370
11371 2020-04-08 Tom Tromey <tromey@adacore.com>
11372
11373 * windows-nat.c (windows_continue): Use matching_pending_stop and
11374 continue_last_debug_event.
11375 * nat/windows-nat.h (matching_pending_stop)
11376 (continue_last_debug_event): Declare.
11377 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11378 (matching_pending_stop, continue_last_debug_event): New
11379 functions.
11380
11381 2020-04-08 Tom Tromey <tromey@adacore.com>
11382
11383 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11384 (handle_exception_result): Move to nat/windows-nat.h.
11385 (DEBUG_EXCEPTION_SIMPLE): Remove.
11386 (windows_nat::handle_ms_vc_exception): New function.
11387 (handle_exception): Move to nat/windows-nat.c.
11388 (get_windows_debug_event): Update.
11389 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11390 nat/windows-nat.c.
11391 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11392 (handle_exception_result): Move from windows-nat.c.
11393 (handle_exception): Declare.
11394 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11395 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11396 windows-nat.c.
11397
11398 2020-04-08 Tom Tromey <tromey@adacore.com>
11399
11400 * windows-nat.c (exception_count, event_count): Remove.
11401 (handle_exception, get_windows_debug_event)
11402 (do_initial_windows_stuff): Update.
11403
11404 2020-04-08 Tom Tromey <tromey@adacore.com>
11405
11406 * windows-nat.c (windows_nat::handle_load_dll)
11407 (windows_nat::handle_unload_dll): Rename. No longer static.
11408 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11409 Declare.
11410
11411 2020-04-08 Tom Tromey <tromey@adacore.com>
11412
11413 * complaints.h (stop_whining): Declare at top-level.
11414 (complaint): Don't declare stop_whining.
11415
11416 2020-04-08 Tom Tromey <tromey@adacore.com>
11417
11418 * windows-nat.c (windows_nat::handle_output_debug_string):
11419 Rename. No longer static.
11420 * nat/windows-nat.h (handle_output_debug_string): Declare.
11421
11422 2020-04-08 Tom Tromey <tromey@adacore.com>
11423
11424 * windows-nat.c (current_process_handle, current_process_id)
11425 (main_thread_id, last_sig, current_event, last_wait_event)
11426 (current_windows_thread, desired_stop_thread_id, pending_stops)
11427 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11428 (display_selectors, fake_create_process)
11429 (get_windows_debug_event): Update.
11430 * nat/windows-nat.h (current_process_handle, current_process_id)
11431 (main_thread_id, last_sig, current_event, last_wait_event)
11432 (current_windows_thread, desired_stop_thread_id, pending_stops)
11433 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11434 * nat/windows-nat.c (current_process_handle, current_process_id)
11435 (main_thread_id, last_sig, current_event, last_wait_event)
11436 (current_windows_thread, desired_stop_thread_id, pending_stops)
11437 (siginfo_er): New globals. Move from windows-nat.c.
11438
11439 2020-04-08 Tom Tromey <tromey@adacore.com>
11440
11441 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11442 (handle_load_dll): Update.
11443 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11444
11445 2020-04-08 Tom Tromey <tromey@adacore.com>
11446
11447 * windows-nat.c (enum thread_disposition_type): Move to
11448 nat/windows-nat.h.
11449 (windows_nat::thread_rec): Rename from thread_rec. No longer
11450 static.
11451 (windows_add_thread, windows_nat_target::fetch_registers)
11452 (windows_nat_target::store_registers, handle_exception)
11453 (windows_nat_target::resume, get_windows_debug_event)
11454 (windows_nat_target::get_tib_address)
11455 (windows_nat_target::thread_name)
11456 (windows_nat_target::thread_alive): Update.
11457 * nat/windows-nat.h (enum thread_disposition_type): Move from
11458 windows-nat.c.
11459 (thread_rec): Declare.
11460
11461 2020-04-08 Tom Tromey <tromey@adacore.com>
11462
11463 * windows-nat.c: Add "using namespace".
11464 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11465 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11466
11467 2020-04-08 Tom Tromey <tromey@adacore.com>
11468
11469 * nat/windows-nat.h (struct windows_thread_info): Declare
11470 destructor.
11471 * nat/windows-nat.c (~windows_thread_info): New.
11472
11473 2020-04-08 Tom Tromey <tromey@adacore.com>
11474
11475 PR gdb/22992
11476 * windows-nat.c (current_event): Update comment.
11477 (last_wait_event, desired_stop_thread_id): New globals.
11478 (struct pending_stop): New.
11479 (pending_stops): New global.
11480 (windows_nat_target) <stopped_by_sw_breakpoint>
11481 <supports_stopped_by_sw_breakpoint>: New methods.
11482 (windows_fetch_one_register): Add assertions. Adjust PC.
11483 (windows_continue): Handle pending stops. Suspend other threads
11484 when stepping. Use last_wait_event
11485 (wait_for_debug_event): New function.
11486 (get_windows_debug_event): Use wait_for_debug_event. Handle
11487 pending stops. Queue spurious stops.
11488 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11489 (windows_nat_target::kill): Use wait_for_debug_event.
11490 * nat/windows-nat.h (struct windows_thread_info)
11491 <stopped_at_software_breakpoint>: New field.
11492 * nat/windows-nat.c (windows_thread_info::resume): Clear
11493 stopped_at_software_breakpoint.
11494
11495 2020-04-08 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c (enum thread_disposition_type): New.
11498 (thread_rec): Replace "get_context" parameter with "disposition";
11499 change type.
11500 (windows_add_thread, windows_nat_target::fetch_registers)
11501 (windows_nat_target::store_registers, handle_exception)
11502 (windows_nat_target::resume, get_windows_debug_event)
11503 (windows_nat_target::get_tib_address)
11504 (windows_nat_target::thread_name)
11505 (windows_nat_target::thread_alive): Update.
11506
11507 2020-04-08 Tom Tromey <tromey@adacore.com>
11508
11509 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11510 (windows_continue): Use windows_continue::resume.
11511 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11512 resume>: Declare new methods.
11513 * nat/windows-nat.c: New file.
11514 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11515
11516 2020-04-08 Tom Tromey <tromey@adacore.com>
11517
11518 * windows-nat.c (windows_add_thread, windows_delete_thread)
11519 (windows_nat_target::fetch_registers)
11520 (windows_nat_target::store_registers, fake_create_process)
11521 (windows_nat_target::resume, windows_nat_target::resume)
11522 (get_windows_debug_event, windows_nat_target::wait)
11523 (windows_nat_target::pid_to_str)
11524 (windows_nat_target::get_tib_address)
11525 (windows_nat_target::get_ada_task_ptid)
11526 (windows_nat_target::thread_name)
11527 (windows_nat_target::thread_alive): Use lwp, not tid.
11528
11529 2020-04-08 Tom Tromey <tromey@adacore.com>
11530
11531 * windows-nat.c (handle_exception)
11532 (windows_nat_target::thread_name): Update.
11533 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11534 <name>: Now unique_xmalloc_ptr.
11535
11536 2020-04-08 Tom Tromey <tromey@adacore.com>
11537
11538 * windows-nat.c (thread_rec)
11539 (windows_nat_target::fetch_registers): Update.
11540 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11541 Update comment.
11542 <debug_registers_changed, reload_context>: Now bool.
11543
11544 2020-04-08 Tom Tromey <tromey@adacore.com>
11545
11546 * windows-nat.c (windows_add_thread): Use new.
11547 (windows_init_thread_list, windows_delete_thread): Use delete.
11548 (get_windows_debug_event): Update.
11549 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11550 destructor, and initializers.
11551
11552 2020-04-08 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c (struct windows_thread_info): Remove.
11555 * nat/windows-nat.h: New file.
11556
11557 2020-04-08 Tom Tromey <tromey@adacore.com>
11558
11559 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11560 (thread_rec, windows_add_thread, windows_delete_thread)
11561 (windows_continue): Update.
11562
11563 2020-04-08 Tom Tromey <tromey@adacore.com>
11564
11565 * windows-nat.c (struct windows_thread_info): Remove typedef.
11566 (thread_head): Remove.
11567 (thread_list): New global.
11568 (thread_rec, windows_add_thread, windows_init_thread_list)
11569 (windows_delete_thread, windows_continue): Update.
11570
11571 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11572
11573 * windows-tdep.h (windows_init_abi): Add comment.
11574 (cygwin_init_abi): New declaration.
11575 * windows-tdep.c: Split signal enumeration in two, one for
11576 Windows and one for Cygwin.
11577 (windows_gdb_signal_to_target): Only deal with signal of the
11578 Windows OS ABI.
11579 (cygwin_gdb_signal_to_target): New function.
11580 (windows_init_abi): Rename to windows_init_abi_common, don't set
11581 gdb_signal_to_target gdbarch method. Add new new function with
11582 this name.
11583 (cygwin_init_abi): New function.
11584 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11585 comment. Don't call windows_init_abi.
11586 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11587 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11588 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11589 i386_windows_init_abi_common, don't call windows_init_abi. Add
11590 a new function of this name.
11591 (i386_cygwin_init_abi): New function.
11592 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11593 OS ABI Cygwin.
11594
11595 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11596
11597 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11598 parameter.c.
11599 (dwarf2_read_gdb_index): Update.
11600
11601 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11602
11603 * nbsd-tdep.c: Include "objfiles.h".
11604 (nbsd_skip_solib_resolver): New.
11605 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11606
11607 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11608
11609 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11610 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11611 with DW_LLE_base_addressx are being emitted in DWARFv5.
11612 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11613 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11614 unsigned integer.
11615
11616 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11617
11618 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11619 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11620 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11621 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11622 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11623 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11624 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11625
11626
11627 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11628
11629 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11630 (read_loclist_index): New function definition.
11631 (lookup_loclist_base): New function definition.
11632 (read_loclist_header): New function definition.
11633 (dwarf2_cu): Add loclist_base and loclist_header field.
11634 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11635 (read_full_die_1): Read the value of DW_AT_loclists_base.
11636 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11637 (read_attribute_value): Handle DW_FORM_loclistx.
11638 (skip_one_die): Handle DW_FORM_loclistx.
11639 (loclist_header): New structure declaration.
11640 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11641
11642 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11643
11644 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11645 constructor. Remove `addr` parameter from other constructor and
11646 add `per_cu` parameter.
11647 * dwarf2/read.c (create_partial_symtab): Update.
11648
11649 2020-04-07 Tom de Vries <tdevries@suse.de>
11650
11651 PR symtab/25796
11652 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11653 (partial_die_info::fixup): Inherit has_const_value.
11654
11655 2020-04-07 Tom de Vries <tdevries@suse.de>
11656
11657 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11658 symbols without address.
11659
11660 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11661
11662 * nbsd-nat.h (struct thread_info): Add forward declaration.
11663 (nbsd_nat_target::thread_alive): Add.
11664 (nbsd_nat_target::thread_name): Likewise.
11665 (nbsd_nat_target::update_thread_list): Likewise.
11666 (update_thread_list::post_attach): Likewise.
11667 (post_attach::pid_to_str): Likewise.
11668 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11669 (nbsd_thread_lister): Add.
11670 (nbsd_nat_target::thread_alive): Likewise.
11671 (nbsd_nat_target::thread_name): Likewise.
11672 (nbsd_add_threads): Likewise.
11673 (update_thread_list::post_attach): Likewise.
11674 (nbsd_nat_target::update_thread_list): Likewise.
11675 (post_attach::pid_to_str): Likewise.
11676
11677 2020-04-06 Tom Tromey <tromey@adacore.com>
11678
11679 * ada-valprint.c (print_variant_part): Extract the variant field.
11680 (print_field_values): Use the field as the outer value when
11681 recursing.
11682
11683 2020-04-06 Tom Tromey <tromey@adacore.com>
11684
11685 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11686 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11687 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11688 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11689 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11690
11691 2020-04-06 Tom Tromey <tromey@adacore.com>
11692
11693 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11694 TYPE_CODE_ERROR.
11695
11696 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11697
11698 * nbsd-tdep.c: Include "gdbarch.h".
11699 Define enum with NetBSD signal numbers.
11700 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11701 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11702 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11703 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11704 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11705 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11706 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11707 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11708 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11709 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11710 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11711 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11712
11713 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11714
11715 PR gdb/25325
11716 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11717
11718 2020-04-03 Tom Tromey <tromey@adacore.com>
11719
11720 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11721 Read constant block.
11722
11723 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11724
11725 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11726 (gdb_bfd_get_full_section_contents): New declaration.
11727 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11728 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11729 gdb_bfd_get_full_section_contents.
11730
11731 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11732
11733 * exec.c (build_section_table): Replace internal_error with
11734 gdb_assert.
11735 (section_table_xfer_memory_partial): Likewise.
11736 * mdebugread.c (parse_partial_symbols): Likewise.
11737 * psymtab.c (lookup_partial_symbol): Likewise.
11738 * utils.c (wrap_here): Likewise.
11739
11740 2020-04-02 Tom Tromey <tromey@adacore.com>
11741
11742 * f-lang.c (build_fortran_types): Use arch_type to initialize
11743 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11744
11745 2020-04-02 Tom Tromey <tromey@adacore.com>
11746
11747 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11748 of attributes.
11749
11750 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11751 Bernd Edlinger <bernd.edlinger@hotmail.de>
11752 Tom Tromey <tromey@adacore.com>
11753
11754 * buildsym.c (buildsym_compunit::record_line): Remove
11755 deduplication code.
11756
11757 2020-04-02 Tom de Vries <tdevries@suse.de>
11758
11759 PR ada/24671
11760 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11761
11762 2020-04-02 Tom de Vries <tdevries@suse.de>
11763
11764 * dwarf2/read.c (dwarf2_gdb_index_functions,
11765 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11766 NULL.
11767 * psymtab.c (psym_lookup_global_symbol_language): New function.
11768 (psym_functions): Init psym_lookup_global_symbol_language with
11769 psym_lookup_global_symbol_language.
11770 * symfile-debug.c (debug_sym_quick_functions): Init
11771 lookup_global_symbol_language with NULL.
11772 * symfile.c (set_initial_language): Remove fixme comment.
11773 * symfile.h (struct quick_symbol_functions): Add
11774 lookup_global_symbol_language.
11775 * symtab.c (find_quick_global_symbol_language): New function.
11776 (find_main_name): Use find_quick_global_symbol_language.
11777
11778 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11779
11780 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11781
11782 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11783
11784 * buildsym.c (record_line): Fix undefined behavior and preserve
11785 lines at eof.
11786
11787 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11788
11789 * buildsym.c (record_line): Fix the resizing condition.
11790
11791 2020-04-01 Tom Tromey <tom@tromey.com>
11792
11793 * value.h (value_literal_complex): Add comment.
11794 * valops.c (value_literal_complex): Refer to value.h.
11795
11796 2020-04-01 Tom Tromey <tom@tromey.com>
11797
11798 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11799 (scalar_type): New rule, from typebase.
11800 (typebase): Use scalar_type. Recognize complex types.
11801 (field_name): Handle FLOAT_KEYWORD.
11802 (ident_tokens): Add _Complex and __complex__.
11803
11804 2020-04-01 Tom Tromey <tom@tromey.com>
11805
11806 PR exp/25299:
11807 * valarith.c (promotion_type, complex_binop): New functions.
11808 (scalar_binop): Handle complex numbers. Use promotion_type.
11809 (value_pos, value_neg, value_complement): Handle complex numbers.
11810
11811 2020-04-01 Tom Tromey <tom@tromey.com>
11812
11813 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11814 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11815 (parse_number): Handle complex numbers.
11816
11817 2020-04-01 Tom Tromey <tom@tromey.com>
11818
11819 * c-valprint.c (c_decorations): Change complex suffix to "i".
11820
11821 2020-04-01 Tom Tromey <tom@tromey.com>
11822
11823 * valprint.c (generic_value_print_complex): Use accessors.
11824 * value.h (value_real_part, value_imaginary_part): Declare.
11825 * valops.c (value_real_part, value_imaginary_part): New
11826 functions.
11827 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11828
11829 2020-04-01 Tom Tromey <tom@tromey.com>
11830
11831 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11832 (read_range_type): Update.
11833 * mdebugread.c (basic_type): Update.
11834 * go-lang.c (build_go_types): Use init_complex_type.
11835 * gdbtypes.h (struct main_type) <complex_type>: New member.
11836 (init_complex_type): Update.
11837 (arch_complex_type): Don't declare.
11838 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11839 Make name if none given. Use alloc_type_copy. Look for cached
11840 complex type.
11841 (arch_complex_type): Remove.
11842 (gdbtypes_post_init): Use init_complex_type.
11843 * f-lang.c (build_fortran_types): Use init_complex_type.
11844 * dwarf2/read.c (read_base_type): Update.
11845 * d-lang.c (build_d_types): Use init_complex_type.
11846 * ctfread.c (read_base_type): Update.
11847
11848 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11849
11850 * infrun.c (stop_all_threads): Update assertion, plus when
11851 stopping threads, take into account that we might be trying
11852 to stop an all-stop target.
11853 (stop_waiting): Call 'stop_all_threads' if there exists a
11854 non-stop target.
11855
11856 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11857
11858 * target.h (exists_non_stop_target): New function declaration.
11859 * target.c (exists_non_stop_target): New function.
11860
11861 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11862
11863 PR gdb/24789
11864 * eval.c (is_integral_or_integral_reference): New function.
11865 (evaluate_subexp_standard): Allow integer references in
11866 pointer arithmetic.
11867
11868 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11869
11870 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11871 check for no ptid in the stop reply when the target is non-stop.
11872
11873 2020-04-01 Tom Tromey <tromey@adacore.com>
11874
11875 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11876 "name" parameter to rvalue reference. Initialize m_name_holder.
11877 <lookup_name_info>: New overloads.
11878 <name>: Return gdb::string_view.
11879 <c_str>: New method.
11880 <make_ignore_params>: Update.
11881 <search_name_hash>: Update.
11882 <language_lookup_name>: Return const char *.
11883 <m_name>: Change type.
11884 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11885 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11886 (lookup_name_info::match_any): Update.
11887 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11888 Update.
11889 * minsyms.c (linkage_name_str): Update.
11890 * language.c (default_symbol_name_matcher): Update.
11891 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11892 Update.
11893 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11894 (ada_lookup_name_info::ada_lookup_name_info): Update.
11895 (literal_symbol_name_matcher): Update.
11896
11897 2020-04-01 Tom Tromey <tromey@adacore.com>
11898
11899 * psymtab.c (psymtab_search_name): Remove function.
11900 (psym_lookup_symbol): Create search name and lookup name here.
11901 (lookup_partial_symbol): Remove "name" parameter; add
11902 lookup_name.
11903 (psym_expand_symtabs_for_function): Update.
11904
11905 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11906
11907 PR tui/25597:
11908 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11909
11910 2020-03-31 Tom Tromey <tromey@adacore.com>
11911
11912 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11913 memcpy.
11914
11915 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11916
11917 * features/riscv/32bit-csr.xml: Regenerated.
11918 * features/riscv/64bit-csr.xml: Regenerated.
11919
11920 2020-03-30 Tom Tromey <tromey@adacore.com>
11921
11922 * ada-valprint.c (print_variant_part): Update.
11923 * ada-lang.h (ada_which_variant_applies): Update.
11924 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11925 outer_valaddr parameters; replace with "outer" value parameter.
11926 (to_fixed_variant_branch_type): Update.
11927
11928 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11929
11930 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11931 <list>. Remove inclusion of observable.h.
11932 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11933 (struct arch_lwp_info): New struct.
11934 (class ppc_linux_dreg_interface): New class.
11935 (struct ppc_linux_process_info): New struct.
11936 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11937 <low_new_clone, low_forget_process, low_prepare_to_resume>
11938 <copy_thread_dreg_state, mark_thread_stale>
11939 <mark_debug_registers_changed, register_hw_breakpoint>
11940 <clear_hw_breakpoint, register_wp, clear_wp>
11941 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11942 <num_memory_accesses, get_trigger_type>
11943 <create_watchpoint_request, hwdebug_point_cmp>
11944 <init_arch_lwp_info, get_arch_lwp_info>
11945 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11946 methods.
11947 <struct ptid_hash>: New inner struct.
11948 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11949 members.
11950 (saved_dabr_value, hwdebug_info, max_slots_number)
11951 (struct hw_break_tuple, struct thread_points, ppc_threads)
11952 (have_ptrace_hwdebug_interface)
11953 (hwdebug_find_thread_points_by_tid)
11954 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11955 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11956 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11957 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11958 use m_dreg_interface.
11959 (hwdebug_point_cmp): Change to...
11960 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11961 reference arguments instead of pointers.
11962 (ppc_linux_nat_target::ranged_break_num_registers): Use
11963 m_dreg_interface.
11964 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11965 m_dreg_interface. Call register_hw_breakpoint.
11966 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11967 m_dreg_interface. Call clear_hw_breakpoint.
11968 (get_trigger_type): Change to...
11969 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11970 comment.
11971 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11972 use m_dreg_interface. Call register_hw_breakpoint.
11973 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11974 use m_dreg_interface. Call clear_hw_breakpoint.
11975 (can_use_watchpoint_cond_accel): Change to...
11976 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11977 method. Update comment, use m_dreg_interface and
11978 m_process_info.
11979 (calculate_dvc): Change to...
11980 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11981 m_dreg_interface.
11982 (num_memory_accesses): Change to...
11983 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11984 (check_condition): Change to...
11985 (ppc_linux_nat_target::check_condition): ...this method.
11986 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11987 comment, use m_dreg_interface.
11988 (create_watchpoint_request): Change to...
11989 (ppc_linux_nat_target::create_watchpoint_request): ...this
11990 method. Use m_dreg_interface.
11991 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11992 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11993 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11994 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11995 (ppc_linux_nat_target::low_forget_process)
11996 (ppc_linux_nat_target::low_new_fork)
11997 (ppc_linux_nat_target::low_new_clone)
11998 (ppc_linux_nat_target::low_delete_thread)
11999 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12000 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12001 only call mark_thread_stale.
12002 (ppc_linux_thread_exit): Remove.
12003 (ppc_linux_nat_target::stopped_data_address): Change to...
12004 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12005 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12006 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12007 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12008 comment. Call low_stopped_data_address.
12009 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12010 m_dreg_interface.
12011 (ppc_linux_nat_target::masked_watch_num_registers): Use
12012 m_dreg_interface.
12013 (ppc_linux_nat_target::copy_thread_dreg_state)
12014 (ppc_linux_nat_target::mark_thread_stale)
12015 (ppc_linux_nat_target::mark_debug_registers_changed)
12016 (ppc_linux_nat_target::register_hw_breakpoint)
12017 (ppc_linux_nat_target::clear_hw_breakpoint)
12018 (ppc_linux_nat_target::register_wp)
12019 (ppc_linux_nat_target::clear_wp)
12020 (ppc_linux_nat_target::init_arch_lwp_info)
12021 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12022 (_initialize_ppc_linux_nat): Remove observer callback.
12023
12024 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12025
12026 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12027 (ppc_linux_nat_target::auxv_parse)
12028 (ppc_linux_nat_target::read_description)
12029 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12030 Move up.
12031
12032 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12033
12034 * linux-nat.h (low_new_clone): New method.
12035 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12036
12037 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12038
12039 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12040 (dbx_expand_psymtab): ... this.
12041 (start_psymtab): Update.
12042 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12043 (mdebug_expand_psymtab): ... this.
12044 (parse_partial_symbols): Update.
12045 (new_psymtab): Update.
12046 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12047 (xcoff_expand_psymtab): ... this.
12048 (xcoff_start_psymtab): Update.
12049
12050 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12051
12052 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12053 <expand_dependencies>: ... this.
12054 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12055 (partial_symtab::expand_dependencies): ... this.
12056 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12057 Update.
12058 (dwarf2_psymtab::expand_psymtab): Update.
12059 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12060 * mdebugread.c (psymtab_to_symtab_1): Update.
12061 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12062
12063 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12064
12065 * psympriv.h (discard_psymtab): Remove.
12066 * dbxread.c (dbx_end_psymtab): Update.
12067 * xcoffread.c (xcoff_end_psymtab): Update.
12068
12069 2020-03-28 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12072 comment.
12073
12074 2020-03-28 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12077
12078 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12079
12080 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12081
12082 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12083
12084 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12085
12086 2020-03-26 Tom Tromey <tom@tromey.com>
12087
12088 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12089 (mark_common_block_symbol_computed, read_tag_string_type)
12090 (attr_to_dynamic_prop, read_subrange_type): Update.
12091 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12092 to be methods on struct attribute.
12093 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12094 (read_call_site_scope, partial_die_info::read)
12095 (partial_die_info::read, lookup_die_type, follow_die_ref):
12096 Update.
12097 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12098 from dwarf2_get_ref_die_offset.
12099 (attribute::constant_value): New method, from
12100 dwarf2_get_attr_constant_value.
12101 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12102 Declare method.
12103 <constant_value>: New method.
12104
12105 2020-03-26 Tom Tromey <tom@tromey.com>
12106
12107 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12108 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12109 (dwarf_type_encoding_name): Move to stringify.c.
12110 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12111 * dwarf2/stringify.c: New file.
12112 * dwarf2/stringify.h: New file.
12113
12114 2020-03-26 Tom Tromey <tom@tromey.com>
12115
12116 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12117 Rewrite.
12118
12119 2020-03-26 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12122 methods.
12123 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12124 (lookup_ranges_base): Likewise.
12125 (read_cutu_die_from_dwo, read_full_die_1): Update.
12126
12127 2020-03-26 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/read.c (read_import_statement, read_file_scope)
12130 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12131 (read_lexical_block_scope, read_call_site_scope)
12132 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12133 (handle_struct_member_die, process_structure_scope)
12134 (update_enumeration_type_from_children)
12135 (process_enumeration_scope, read_array_type, read_common_block)
12136 (read_namespace, read_module, read_subroutine_type): Update.
12137 (sibling_die): Remove.
12138
12139 2020-03-26 Tom Tromey <tom@tromey.com>
12140
12141 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12142 (build_type_psymtabs_reader, read_structure_type)
12143 (read_enumeration_type, read_full_die_1): Update.
12144 (dwarf2_attr_no_follow): Move to die.h.
12145 * dwarf2/die.h (struct die_info) <attr>: New method.
12146
12147 2020-03-26 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12150 <base_address>: Now an optional.
12151 (dwarf2_find_base_address, dwarf2_rnglists_process)
12152 (dwarf2_ranges_process, fill_in_loclist_baton)
12153 (dwarf2_symbol_mark_computed): Update.
12154
12155 2020-03-26 Tom Tromey <tom@tromey.com>
12156
12157 * dwarf2/read.c (struct die_info): Move to die.h.
12158 * dwarf2/die.h: New file.
12159
12160 2020-03-26 Tom Tromey <tom@tromey.com>
12161
12162 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12163 * dwarf2/read.c
12164 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12165 Move to line-header.c.
12166 (read_checked_initial_length_and_offset, read_formatted_entries):
12167 Likewise.
12168 (dwarf_decode_line_header): Split into two.
12169 * dwarf2/line-header.c
12170 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12171 Move from read.c.
12172 (read_checked_initial_length_and_offset, read_formatted_entries):
12173 Likewise.
12174 (dwarf_decode_line_header): New function, split from read.c.
12175
12176 2020-03-26 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12179 Declare method.
12180 * dwarf2/read.c (read_attribute_value): Update.
12181 (dwarf2_per_objfile::read_line_string): Rename from
12182 read_indirect_line_string.
12183 (read_formatted_entries): Update.
12184
12185 2020-03-26 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12188 variable.
12189
12190 2020-03-26 Tom Tromey <tom@tromey.com>
12191
12192 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12193 const.
12194 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12195 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12196 parameter const.
12197
12198 2020-03-26 Tom Tromey <tom@tromey.com>
12199
12200 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12201 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12202 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12203 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12204
12205 2020-03-26 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12208 file_names_size, file_full_name, file_file_name>: Use const.
12209 <file_name_at, file_names>: Add const overload.
12210 * dwarf2/line-header.c (line_header::file_file_name)
12211 (line_header::file_full_name): Update.
12212
12213 2020-03-26 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12216 (macro_start_file, consume_improper_spaces)
12217 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12218 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12219 (dwarf_decode_macros): Move to macro.c.
12220 * dwarf2/macro.c: New file.
12221 * dwarf2/macro.h: New file.
12222 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12223
12224 2020-03-26 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12227 method.
12228 * dwarf2/section.c: New method. From
12229 read_indirect_string_at_offset_from.
12230 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12231 (read_indirect_string_at_offset_from): Move to section.c.
12232 (read_indirect_string_at_offset): Rewrite.
12233 (read_indirect_line_string_at_offset): Remove.
12234 (read_indirect_string, read_indirect_line_string)
12235 (dwarf_decode_macro_bytes): Update.
12236
12237 2020-03-26 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/section.h (struct dwarf2_section_info)
12240 <overload_complaint>: Declare.
12241 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12242 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12243 Rename from dwarf2_section_buffer_overflow_complaint.
12244 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12245 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12246
12247 2020-03-26 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12250 Declare.
12251 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12252 Move from read.c.
12253 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12254 to section.c.
12255
12256 2020-03-26 Tom Tromey <tom@tromey.com>
12257
12258 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12259
12260 2020-03-26 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12263 "builder".
12264 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12265 parameter.
12266 (dwarf_decode_macros): Update.
12267
12268 2020-03-26 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2/read.c (read_attribute_value): Update.
12271 (read_indirect_string_from_dwz): Move to dwz.c; change into
12272 method.
12273 (dwarf_decode_macro_bytes): Update.
12274 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12275 * dwarf2/dwz.c: New file.
12276 * Makefile.in (COMMON_SFILES): Add dwz.c.
12277
12278 2020-03-26 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12281 * dwarf2/read.c: Add include.
12282 * dwarf2/index-write.c: Add include.
12283 * dwarf2/index-cache.c: Add include.
12284 * dwarf2/dwz.h: New file.
12285
12286 2020-03-25 Tom Tromey <tom@tromey.com>
12287
12288 * compile/compile-object-load.c (get_out_value_type): Mention
12289 correct symbol name in error message.
12290
12291 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12292
12293 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12294
12295 2020-03-25 Tom de Vries <tdevries@suse.de>
12296
12297 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12298 * symmisc.c (dump_symtab_1): Print user and includes fields.
12299 (maintenance_info_symtabs): Same.
12300
12301 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12302
12303 PR gdb/25534
12304 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12305 (riscv_regcache_cooked_write): New function.
12306 (riscv_push_dummy_call): Use new function.
12307 (riscv_return_value): Likewise.
12308
12309 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12310
12311 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12312 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12313 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12314 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12315 * infrun.c (follow_fork): Likewise.
12316 (follow_fork_inferior): Likewise.
12317 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12318 * linux-nat.h (class linux_nat_target): Likewise.
12319 * remote.c (class remote_target) <follow_fork>: Likewise.
12320 (remote_target::follow_fork): Likewise.
12321 * target-delegates.c: Re-generate.
12322 * target.c (default_follow_fork): Likewise.
12323 (target_follow_fork): Likewise.
12324 * target.h (struct target_ops) <follow_fork>: Likewise.
12325 (target_follow_fork): Likewise.
12326
12327 2020-03-24 Tom de Vries <tdevries@suse.de>
12328
12329 * psymtab.c (maintenance_info_psymtabs): Print user field.
12330
12331 2020-03-20 Tom Tromey <tromey@adacore.com>
12332
12333 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12334 const.
12335 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12336 const.
12337
12338 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12339
12340 * ptrace.m4: Don't check for ptrace declaration.
12341 * config.in: Re-generate.
12342 * configure: Re-generate.
12343 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12344 not defined.
12345
12346 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12347
12348 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12349 `PTRACE_TYPE_RET'.
12350 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12351 * sparc-nat.c (gdb_ptrace): Likewise.
12352 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12353
12354 2020-03-20 Tom Tromey <tromey@adacore.com>
12355
12356 * c-exp.y (lex_one_token): Fix assert.
12357
12358 2020-03-20 Tom Tromey <tromey@adacore.com>
12359
12360 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12361 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12362 strncpy call.
12363
12364 2020-03-20 Tom Tromey <tromey@adacore.com>
12365
12366 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12367
12368 2020-03-20 Tom Tromey <tromey@adacore.com>
12369
12370 * ada-valprint.c (print_variant_part): Remove parameters; switch
12371 to value-based API.
12372 (print_field_values): Likewise.
12373 (ada_val_print_struct_union): Likewise.
12374 (ada_value_print_1): Update.
12375
12376 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12377
12378 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12379 nbsd_nat_target instead of inf_ptrace_target.
12380 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12381 nbsd_nat_target.
12382
12383 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12384
12385 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12386 it to the ptrace call.
12387 * (store_registers): Likewise.
12388
12389 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12390
12391 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12392 it to the ptrace call.
12393 * (store_registers): Likewise.
12394
12395 2020-03-19 Luis Machado <luis.machado@linaro.org>
12396
12397 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12398 valid, fetch vg value from ptrace.
12399
12400 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12401 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12402 * inf-ptrace.c: Likewise.
12403 * (gdb_ptrace): Add.
12404 * (inf_ptrace_target::resume): Update.
12405 * (inf_ptrace_target::xfer_partial): Likewise.
12406 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12407 * (inf_ptrace_peek_poke): Update.
12408
12409 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12410
12411 * x86-bsd-nat.c (gdb_ptrace): New.
12412 * (x86bsd_dr_set): Add new argument `ptid'.
12413 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12414 x86bsd_dr_set_addr): Update.
12415
12416 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12417
12418 * remote.c (remote_target::process_stop_reply): Handle events for
12419 all threads differently.
12420
12421 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12422
12423 * completer.c (completion_tracker::remove_completion): Define new
12424 function.
12425 * completer.h (completion_tracker::remove_completion): Declare new
12426 function.
12427 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12428 when adding a C++ function symbol.
12429
12430 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * completer.c (completion_tracker::completion_hash_entry): Define
12433 new class.
12434 (advance_to_filename_complete_word_point): Call
12435 recompute_lowest_common_denominator.
12436 (completion_tracker::completion_tracker): Call discard_completions
12437 to setup the hash table.
12438 (completion_tracker::discard_completions): Allow for being called
12439 from the constructor, pass new equal function, and element deleter
12440 when constructing the hash table. Initialise new class member
12441 variables.
12442 (completion_tracker::maybe_add_completion): Remove use of
12443 m_entries_vec, and store more information into m_entries_hash.
12444 (completion_tracker::recompute_lcd_visitor): New function, most
12445 content taken from...
12446 (completion_tracker::recompute_lowest_common_denominator):
12447 ...here, this now just visits each item in the hash calling the
12448 above visitor.
12449 (completion_tracker::build_completion_result): Remove use of
12450 m_entries_vec, call recompute_lowest_common_denominator.
12451 * completer.h (completion_tracker::have_completions): Remove use
12452 of m_entries_vec.
12453 (completion_tracker::completion_hash_entry): Declare new class.
12454 (completion_tracker::recompute_lowest_common_denominator): Change
12455 function signature.
12456 (completion_tracker::recompute_lcd_visitor): Declare new function.
12457 (completion_tracker::m_entries_vec): Delete.
12458 (completion_tracker::m_entries_hash): Initialize to NULL.
12459 (completion_tracker::m_lowest_common_denominator_valid): New
12460 member variable.
12461 (completion_tracker::m_lowest_common_denominator_max_length): New
12462 member variable.
12463
12464 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12465
12466 * regformats/regdef.h: Put reg in gdb namespace.
12467
12468 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12469
12470 * i386-bsd-nat.c (gdb_ptrace): New.
12471 * (i386bsd_fetch_inferior_registers,
12472 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12473 * (i386bsd_fetch_inferior_registers,
12474 i386bsd_store_inferior_registers) Use gdb_ptrace.
12475
12476 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12477
12478 * amd64-bsd-nat.c (gdb_ptrace): New.
12479 * (amd64bsd_fetch_inferior_registers,
12480 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12481 * (amd64bsd_fetch_inferior_registers,
12482 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12483
12484 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12485
12486 * user-regs.c (user_reg::read): Rename to...
12487 (user_reg::xread): ...this.
12488 * (append_user_reg): Rename argument `read' to `xread'.
12489 * (user_reg_add_builtin): Likewise.
12490 * (user_reg_add): Likewise.
12491 * (value_of_user_reg): Likewise.
12492
12493 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12494
12495 * sparc-nat.c (gdb_ptrace): New.
12496 * sparc-nat.c (sparc_fetch_inferior_registers)
12497 (sparc_store_inferior_registers) Remove obsolete comment.
12498 * sparc-nat.c (sparc_fetch_inferior_registers)
12499 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12500 * sparc-nat.c (sparc_fetch_inferior_registers)
12501 (sparc_store_inferior_registers) Use gdb_ptrace.
12502
12503 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12504
12505 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12506 it to the ptrace call.
12507 * sh-nbsd-nat.c (store_registers): Likewise.
12508
12509 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12510
12511 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12512 nbsd_nat_target instead of inf_ptrace_target.
12513 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12514 nbsd_nat_target.
12515
12516 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12517
12518 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12519
12520 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12521
12522 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12523 <sys/sysctl.h>.
12524 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12525
12526 2020-03-17 Tom de Vries <tdevries@suse.de>
12527
12528 PR gdb/23710
12529 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12530 fields.
12531 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12532 fields.
12533 (process_imported_unit_die): Skip import of c++ CUs.
12534
12535 2020-03-16 Tom Tromey <tom@tromey.com>
12536
12537 * p-valprint.c (pascal_object_print_value): Initialize
12538 base_value.
12539
12540 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12541 Shahab Vahedi <shahab@synopsys.com>
12542
12543 * Makefile.in: Add arch/arc.o
12544 * configure.tgt: Likewise.
12545 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12546 (_initialize_arc_tdep): Don't initialize old target descriptions.
12547 (arc_read_description): New function to cache target descriptions.
12548 * arc-tdep.h (arc_read_description): Add proto type.
12549 * arch/arc.c: New file.
12550 * arch/arc.h: Likewise.
12551 * features/Makefile: Replace old target descriptions with new.
12552 * features/arc-arcompact.c: Remove.
12553 * features/arc-arcompact.xml: Likewise.
12554 * features/arc-v2.c: Likewise
12555 * features/arc-v2.xml: Likewise
12556 * features/arc/aux-arcompact.xml: New file.
12557 * features/arc/aux-v2.xml: Likewise.
12558 * features/arc/core-arcompact.xml: Likewise.
12559 * features/arc/core-v2.xml: Likewise.
12560 * features/arc/aux-arcompact.c: Generate.
12561 * features/arc/aux-v2.c: Likewise.
12562 * features/arc/core-arcompact.c: Likewise.
12563 * features/arc/core-v2.c: Likewise.
12564 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12565
12566 2020-03-16 Tom Tromey <tromey@adacore.com>
12567
12568 PR gdb/25663:
12569 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12570 putting value into bcache.
12571
12572 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12573
12574 PR gdb/21500
12575 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12576 to...
12577 (amd64_windows_init_abi_common): ... this. Don't set size of
12578 long type.
12579 (amd64_windows_init_abi): New function.
12580 (amd64_cygwin_init_abi): New function.
12581 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12582 the Cygwin OS ABI.
12583 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12584 comment.
12585
12586 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12587
12588 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12589 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12590 (pe_import_directory_entry): New struct type.
12591 (is_linked_with_cygwin_dll): New function.
12592 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12593 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12594 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12595
12596 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12597
12598 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12599 i386_cygwin_core_osabi_sniffer.
12600
12601 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12602
12603 * i386-cygwin-tdep.c: Rename to...
12604 * i386-windows-tdep.c: ... this.
12605 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12606 i386-windows-tdep.c.
12607 * configure.tgt: Likewise.
12608
12609 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12610
12611 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12612 * osabi.c (gdb_osabi_names): Add "Windows".
12613 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12614 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12615 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12616 i386_cygwin_osabi_sniffer.
12617 (_initialize_i386_cygwin_tdep): Register OS ABI
12618 GDB_OSABI_WINDOWS for i386.
12619 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12620 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12621 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12622 for x86-64.
12623 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12624 when the target matches '*-*-mingw*'.
12625
12626 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12627
12628 * defs.h (enum gdb_osabi): Move to...
12629 * osabi.h (enum gdb_osabi): ... here.
12630 * gdbarch.sh: Include osabi.h in gdbarch.h.
12631 * gdbarch.h: Re-generate.
12632
12633 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12636 function.
12637 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12638
12639 2020-03-14 Tom Tromey <tom@tromey.com>
12640
12641 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12642 for C++.
12643 (c_type_print_modifier): Likewise. Add "language" parameter.
12644 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12645 (c_type_print_base_1): Update.
12646 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12647 constants.
12648 * type-stack.c (type_stack::insert): Handle tp_atomic and
12649 tp_restrict.
12650 (type_stack::follow_type_instance_flags): Likewise.
12651 (type_stack::follow_types): Likewise. Merge type-following code.
12652 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12653 (space_identifier, cv_with_space_id)
12654 (const_or_volatile_or_space_identifier_noopt)
12655 (const_or_volatile_or_space_identifier): Remove.
12656 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12657 rules.
12658 (ptr_operator, typebase): Update.
12659 (enum token_flag) <FLAG_C>: New constant.
12660 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12661 "_Atomic".
12662 (lex_one_token): Handle FLAG_C.
12663
12664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12665
12666 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12667 it to the ptrace call.
12668 * m68k-bsd-nat.c (store_registers): Likewise.
12669
12670 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12671
12672 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12673 gdb_byte *.
12674 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12675 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12676 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12677
12678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12679
12680 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12681 nbsd_nat_target instead of inf_ptrace_target.
12682 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12683 nbsd_nat_target.
12684
12685 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12686
12687 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12688 register_t.
12689
12690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12691
12692 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12693 it to the ptrace call.
12694 * alpha-bsd-nat.c (store_registers): Likewise.
12695
12696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12697
12698 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12699 includes.
12700 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12701 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12702 fill_fpregset): Likewise.
12703
12704 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12705
12706 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12707 nbsd_nat_target instead of inf_ptrace_target.
12708 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12709 nbsd_nat_target.
12710
12711 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12712
12713 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12714 register_t.
12715
12716 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12717
12718 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12719 it to the ptrace call.
12720 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12721 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12722 * arm-nbsd-nat.c (store_register): Likewise.
12723 * arm-nbsd-nat.c (store_regs): Likewise.
12724 * arm-nbsd-nat.c (store_fp_register): Likewise.
12725 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12726
12727 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12728
12729 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12730 nbsd_nat_target instead of inf_ptrace_target.
12731 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12732 nbsd_nat_target.
12733
12734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12735
12736 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12737 it to the ptrace call.
12738 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12739
12740 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12741
12742 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12743 it to the ptrace call.
12744 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12745
12746 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12747
12748 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12749 gdb_byte *.
12750 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12751
12752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12753
12754 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12755 instead of inf_ptrace_target.
12756 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12757 nbsd_nat_target.
12758
12759 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12760
12761 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12762 register_t.
12763
12764 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12765
12766 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12767 register_t.
12768
12769 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12770
12771 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12772 register_t.
12773
12774 2020-03-13 Tom Tromey <tom@tromey.com>
12775
12776 * value.h (val_print): Don't declare.
12777 * valprint.h (val_print_array_elements)
12778 (val_print_scalar_formatted, generic_val_print): Don't declare.
12779 * valprint.c (generic_val_print_array): Take a struct value.
12780 (generic_val_print_ptr, generic_val_print_memberptr)
12781 (generic_val_print_bool, generic_val_print_int)
12782 (generic_val_print_char, generic_val_print_complex)
12783 (generic_val_print): Remove.
12784 (generic_value_print): Update.
12785 (do_val_print): Remove unused parameters. Don't call
12786 la_val_print.
12787 (val_print): Remove.
12788 (common_val_print): Update. Don't call value_check_printable.
12789 (val_print_scalar_formatted, val_print_array_elements): Remove.
12790 * rust-lang.c (rust_val_print): Remove.
12791 (rust_language_defn): Update.
12792 * p-valprint.c (pascal_val_print): Remove.
12793 (pascal_value_print_inner): Update.
12794 (pascal_object_print_val_fields, pascal_object_print_val):
12795 Remove.
12796 (pascal_object_print_static_field): Update.
12797 * p-lang.h (pascal_val_print): Don't declare.
12798 * p-lang.c (pascal_language_defn): Update.
12799 * opencl-lang.c (opencl_language_defn): Update.
12800 * objc-lang.c (objc_language_defn): Update.
12801 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12802 * m2-lang.h (m2_val_print): Don't declare.
12803 * m2-lang.c (m2_language_defn): Update.
12804 * language.h (struct language_defn) <la_val_print>: Remove.
12805 * language.c (unk_lang_value_print_inner): Rename. Change
12806 argument types.
12807 (unknown_language_defn, auto_language_defn): Update.
12808 * go-valprint.c (go_val_print): Remove.
12809 * go-lang.h (go_val_print): Don't declare.
12810 * go-lang.c (go_language_defn): Update.
12811 * f-valprint.c (f_val_print): Remove.
12812 * f-lang.h (f_value_print): Don't declare.
12813 * f-lang.c (f_language_defn): Update.
12814 * d-valprint.c (d_val_print): Remove.
12815 * d-lang.h (d_value_print): Don't declare.
12816 * d-lang.c (d_language_defn): Update.
12817 * cp-valprint.c (cp_print_value_fields)
12818 (cp_print_value_fields_rtti, cp_print_value): Remove.
12819 (cp_print_static_field): Update.
12820 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12821 (c_val_print_struct, c_val_print_union, c_val_print_int)
12822 (c_val_print_memberptr, c_val_print): Remove.
12823 * c-lang.h (c_val_print_array, cp_print_value_fields)
12824 (cp_print_value_fields_rtti): Don't declare.
12825 * c-lang.c (c_language_defn, cplus_language_defn)
12826 (asm_language_defn, minimal_language_defn): Update.
12827 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12828 (ada_val_print_enum): Take a struct value.
12829 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12830 (ada_val_print): Remove.
12831 (ada_value_print_1): Update.
12832 (printable_val_type): Remove.
12833 * ada-lang.h (ada_val_print): Don't declare.
12834 * ada-lang.c (ada_language_defn): Update.
12835
12836 2020-03-13 Tom Tromey <tom@tromey.com>
12837
12838 * valprint.c (do_val_print): Update.
12839 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12840 a struct value.
12841 (value_to_value_object_no_release): Declare.
12842 * python/py-value.c (value_to_value_object_no_release): New
12843 function.
12844 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12845 struct value.
12846 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12847 function.
12848 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12849 a struct value.
12850 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12851 Declare.
12852 (gdbscm_apply_val_pretty_printer): Take a struct value.
12853 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12854 value.
12855 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12856 value.
12857 * extension-priv.h (struct extension_language_ops)
12858 <apply_val_pretty_printer>: Take a struct value.
12859 * cp-valprint.c (cp_print_value): Create a struct value.
12860 (cp_print_value): Update.
12861
12862 2020-03-13 Tom Tromey <tom@tromey.com>
12863
12864 * ada-valprint.c (print_field_values): Call common_val_print.
12865
12866 2020-03-13 Tom Tromey <tom@tromey.com>
12867
12868 * ada-valprint.c (val_print_packed_array_elements): Remove
12869 bitoffset and val parameters. Call common_val_print.
12870 (ada_val_print_string): Remove offset, address, and original_value
12871 parameters.
12872 (ada_val_print_array): Update.
12873 (ada_value_print_array): New function.
12874 (ada_value_print_1): Call it.
12875
12876 2020-03-13 Tom Tromey <tom@tromey.com>
12877
12878 * ada-valprint.c (ada_value_print): Use common_val_print.
12879
12880 2020-03-13 Tom Tromey <tom@tromey.com>
12881
12882 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12883
12884 2020-03-13 Tom Tromey <tom@tromey.com>
12885
12886 * ada-valprint.c (ada_value_print_num): New function.
12887 (ada_value_print_1): Use it.
12888
12889 2020-03-13 Tom Tromey <tom@tromey.com>
12890
12891 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12892
12893 2020-03-13 Tom Tromey <tom@tromey.com>
12894
12895 * ada-valprint.c (ada_value_print_ptr): New function.
12896 (ada_value_print_1): Use it.
12897
12898 2020-03-13 Tom Tromey <tom@tromey.com>
12899
12900 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12901 call common_val_print.
12902 (ada_val_print_1): Update.
12903 (ada_value_print_1): New function.
12904 (ada_value_print_inner): Rewrite.
12905
12906 2020-03-13 Tom Tromey <tom@tromey.com>
12907
12908 * cp-valprint.c (cp_print_value_fields): Update.
12909 (cp_print_value): New function.
12910
12911 2020-03-13 Tom Tromey <tom@tromey.com>
12912
12913 * m2-valprint.c (m2_value_print_inner): Use
12914 cp_print_value_fields.
12915 * cp-valprint.c (cp_print_value_fields): New function.
12916 * c-valprint.c (c_value_print_struct): New function.
12917 (c_value_print_inner): Use c_value_print_struct.
12918 * c-lang.h (cp_print_value_fields): Declare.
12919
12920 2020-03-13 Tom Tromey <tom@tromey.com>
12921
12922 * c-valprint.c (c_value_print_array): New function.
12923 (c_value_print_inner): Use it.
12924
12925 2020-03-13 Tom Tromey <tom@tromey.com>
12926
12927 * c-valprint.c (c_value_print_memberptr): New function.
12928 (c_value_print_inner): Use it.
12929
12930 2020-03-13 Tom Tromey <tom@tromey.com>
12931
12932 * c-valprint.c (c_value_print_int): New function.
12933 (c_value_print_inner): Use it.
12934
12935 2020-03-13 Tom Tromey <tom@tromey.com>
12936
12937 * c-valprint.c (c_value_print_ptr): New function.
12938 (c_value_print_inner): Use it.
12939
12940 2020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * c-valprint.c (c_value_print_inner): Rewrite.
12943
12944 2020-03-13 Tom Tromey <tom@tromey.com>
12945
12946 * valprint.c (generic_value_print_complex): New function.
12947 (generic_value_print): Use it.
12948
12949 2020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * valprint.c (generic_val_print_float): Don't call
12952 val_print_scalar_formatted.
12953 (generic_val_print, generic_value_print): Update.
12954
12955 2020-03-13 Tom Tromey <tom@tromey.com>
12956
12957 * valprint.c (generic_value_print_char): New function
12958 (generic_value_print): Use it.
12959
12960 2020-03-13 Tom Tromey <tom@tromey.com>
12961
12962 * valprint.c (generic_value_print_int): New function.
12963 (generic_value_print): Use it.
12964
12965 2020-03-13 Tom Tromey <tom@tromey.com>
12966
12967 * valprint.c (generic_value_print_bool): New function.
12968 (generic_value_print): Use it.
12969
12970 2020-03-13 Tom Tromey <tom@tromey.com>
12971
12972 * valprint.c (generic_val_print_func): Simplify.
12973 (generic_val_print, generic_value_print): Update.
12974
12975 2020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * valprint.c (generic_val_print_flags): Remove.
12978 (generic_val_print, generic_value_print): Update.
12979 (val_print_type_code_flags): Add original_value parameter.
12980
12981 2020-03-13 Tom Tromey <tom@tromey.com>
12982
12983 * valprint.c (generic_val_print): Update.
12984 (generic_value_print): Update.
12985 * valprint.c (generic_val_print_enum): Don't call
12986 val_print_scalar_formatted.
12987
12988 2020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12991 * valprint.c (generic_value_print_ptr): New function.
12992
12993 2020-03-13 Tom Tromey <tom@tromey.com>
12994
12995 * valprint.c (generic_value_print): Rewrite.
12996
12997 2020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * p-valprint.c (pascal_object_print_value_fields)
13000 (pascal_object_print_value): New functions.
13001
13002 2020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * p-valprint.c (pascal_value_print_inner): Rewrite.
13005
13006 2020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * f-valprint.c (f_value_print_innner): Rewrite.
13009
13010 2020-03-13 Tom Tromey <tom@tromey.com>
13011
13012 * m2-valprint.c (m2_print_unbounded_array): New overload.
13013 (m2_print_unbounded_array): Update.
13014 (m2_print_array_contents): Take a struct value.
13015 (m2_value_print_inner): Rewrite.
13016
13017 2020-03-13 Tom Tromey <tom@tromey.com>
13018
13019 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13020 (d_value_print_inner): New function.
13021 * d-lang.h (d_value_print_inner): Declare.
13022 * d-lang.c (d_language_defn): Use d_value_print_inner.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * go-valprint.c (go_value_print_inner): New function.
13027 * go-lang.h (go_value_print_inner): Declare.
13028 * go-lang.c (go_language_defn): Use go_value_print_inner.
13029
13030 2020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13033 API.
13034 (rust_val_print): Rewrite.
13035 (rust_value_print_inner): New function, from rust_val_print.
13036 (rust_language_defn): Use rust_value_print_inner.
13037
13038 2020-03-13 Tom Tromey <tom@tromey.com>
13039
13040 * ada-valprint.c (ada_value_print_inner): New function.
13041 * ada-lang.h (ada_value_print_inner): Declare.
13042 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13043
13044 2020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * f-valprint.c (f_value_print_innner): New function.
13047 * f-lang.h (f_value_print_innner): Declare.
13048 * f-lang.c (f_language_defn): Use f_value_print_innner.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * p-valprint.c (pascal_value_print_inner): New function.
13053 * p-lang.h (pascal_value_print_inner): Declare.
13054 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13055
13056 2020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * m2-valprint.c (m2_value_print_inner): New function.
13059 * m2-lang.h (m2_value_print_inner): Declare.
13060 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13061
13062 2020-03-13 Tom Tromey <tom@tromey.com>
13063
13064 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13065 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13066 * c-valprint.c (c_value_print_inner): New function.
13067 * c-lang.h (c_value_print_inner): Declare.
13068 * c-lang.c (c_language_defn, cplus_language_defn)
13069 (asm_language_defn, minimal_language_defn): Use
13070 c_value_print_inner.
13071
13072 2020-03-13 Tom Tromey <tom@tromey.com>
13073
13074 * p-valprint.c (pascal_object_print_value_fields): Now static.
13075 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13076
13077 2020-03-13 Tom Tromey <tom@tromey.com>
13078
13079 * c-valprint.c (c_val_print_array): Simplify.
13080
13081 2020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * valprint.c (value_print_array_elements): New function.
13084 * valprint.h (value_print_array_elements): Declare.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13089 * mips-tdep.c (mips_print_register): Use
13090 value_print_scalar_formatted.
13091
13092 2020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * valprint.h (value_print_scalar_formatted): Declare.
13095 * valprint.c (value_print_scalar_formatted): New function.
13096
13097 2020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * valprint.h (generic_value_print): Declare.
13100 * valprint.c (generic_value_print): New function.
13101
13102 2020-03-13 Tom Tromey <tom@tromey.com>
13103
13104 * valprint.c (do_val_print): Call la_value_print_inner, if
13105 available.
13106 * rust-lang.c (rust_language_defn): Update.
13107 * p-lang.c (pascal_language_defn): Update.
13108 * opencl-lang.c (opencl_language_defn): Update.
13109 * objc-lang.c (objc_language_defn): Update.
13110 * m2-lang.c (m2_language_defn): Update.
13111 * language.h (struct language_defn) <la_value_print_inner>: New
13112 member.
13113 * language.c (unknown_language_defn, auto_language_defn): Update.
13114 * go-lang.c (go_language_defn): Update.
13115 * f-lang.c (f_language_defn): Update.
13116 * d-lang.c (d_language_defn): Update.
13117 * c-lang.c (c_language_defn, cplus_language_defn)
13118 (asm_language_defn, minimal_language_defn): Update.
13119 * ada-lang.c (ada_language_defn): Update.
13120
13121 2020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * c-valprint.c (c_value_print): Use common_val_print.
13124
13125 2020-03-13 Tom Tromey <tom@tromey.com>
13126
13127 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13128
13129 2020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * f-valprint.c (f77_print_array_1, f_val_print): Use
13132 common_val_print.
13133
13134 2020-03-13 Tom Tromey <tom@tromey.com>
13135
13136 * riscv-tdep.c (riscv_print_one_register_info): Use
13137 common_val_print.
13138
13139 2020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * mi/mi-main.c (output_register): Use common_val_print.
13142
13143 2020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * infcmd.c (default_print_one_register_info): Use
13146 common_val_print.
13147
13148 2020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * valprint.h (common_val_print_checked): Declare.
13151 * valprint.c (common_val_print_checked): New function.
13152 * stack.c (print_frame_arg): Use common_val_print_checked.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * valprint.c (do_val_print): New function, from val_print.
13157 (val_print): Use do_val_print.
13158 (common_val_print): Use do_val_print.
13159
13160 2020-03-13 Tom Tromey <tom@tromey.com>
13161
13162 * valprint.c (value_print): Use scoped_value_mark.
13163
13164 2020-03-13 Tom de Vries <tdevries@suse.de>
13165
13166 PR symtab/25646
13167 * psymtab.c (partial_symtab::partial_symtab): Don't set
13168 globals_offset and statics_offset. Push element onto
13169 current_global_psymbols and current_static_psymbols stacks.
13170 (concat): New function.
13171 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13172 element from current_global_psymbols and current_static_psymbols
13173 stacks. Concat popped elements to global_psymbols and
13174 static_symbols.
13175 (add_psymbol_to_list): Use current_global_psymbols and
13176 current_static_psymbols stacks.
13177 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13178 current_static_psymbols fields.
13179
13180 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13181
13182 * corelow.c (sniff_core_bfd): Remove.
13183 (class core_target) <m_core_vec>: Remove.
13184 (core_target::core_target): Update.
13185 (core_file_fns): Remove.
13186 (deprecated_add_core_fns): Remove.
13187 (default_core_sniffer): Remove.
13188 (sniff_core_bfd): Remove.
13189 (default_check_format): Remove.
13190 (gdb_check_format): Remove.
13191 (core_target_open): Update.
13192 (core_target::get_core_register_section): Update.
13193 (get_core_registers_cb): Update.
13194 (core_target::fetch_registers): Update.
13195 * gdbcore.h (struct core_fns): Remove.
13196 (deprecated_add_core_fns): Remove.
13197 (default_core_sniffer): Remove.
13198 (default_check_format): Remove.
13199
13200 2020-03-12 Tom Tromey <tom@tromey.com>
13201
13202 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13203 CORE_ADDR.
13204 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13205
13206 2020-03-12 Tom Tromey <tom@tromey.com>
13207
13208 * remote.c (remote_target::download_tracepoint)
13209 (remote_target::enable_tracepoint)
13210 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13211 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13212 sprintf_vma.
13213
13214 2020-03-12 Tom Tromey <tom@tromey.com>
13215
13216 * symfile-mem.c: Update CORE_ADDR size assert.
13217
13218 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13219
13220 * selftest.m4: Move to gdbsupport/.
13221 * acinclude.m4: Update path to selftest.m4.
13222
13223 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13224
13225 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13226 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13227 gdbarch-selfselftests.c and selftest-arch.c.
13228 (SUBDIR_UNITTESTS_OBS): Rename to...
13229 (SELFTESTS_OBS): ... this.
13230 (COMMON_SFILES): Remove disasm-selftests.c and
13231 gdbarch-selftests.c.
13232 * configure.ac: Don't add selftest-arch.{c,o} to
13233 CONFIG_{SRCS,OBS}.
13234 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13235 preprocessor conditions.
13236
13237 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13238
13239 * configure.ac: Don't source bfd/development.sh.
13240 * selftest.m4: Modify comment.
13241 * configure: Re-generate.
13242
13243 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13244
13245 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13246 not "true" or "false".
13247 * configure: Re-generate.
13248
13249 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13250
13251 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13252 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13253 renamed to arm_nbsd_supply_gregset.
13254 (fetch_register): Update to call arm_nbsd_supply_gregset.
13255 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13256 (arm_netbsd_nat_target::fetch_registers): Update.
13257 (fetch_elfcore_registers): Removed.
13258 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13259 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13260 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13261 not require NetBSD system headers.
13262 (arm_nbsd_regset): New struct.
13263 (arm_nbsd_iterate_over_regset_sections): New function.
13264 (arm_netbsd_init_abi_common): Updated to call
13265 set_gdbarch_iterate_over_regset_sections.
13266 * arm-nbsd-tdep.h: New file.
13267
13268 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13269
13270 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13271 recursion.
13272
13273 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13274
13275 * configure: Re-generate.
13276
13277 2020-03-11 Tom Tromey <tromey@adacore.com>
13278
13279 * ada-typeprint.c (print_choices): Fix comment.
13280
13281 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13282
13283 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13284 previous item in the list, when the list has no items.
13285
13286 2020-03-11 Tom de Vries <tdevries@suse.de>
13287
13288 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13289 PROP_LOCLIST handling code.
13290
13291 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13292
13293 * buildsym-legacy.c (record_line): Pass extra parameter to
13294 record_line.
13295 * buildsym.c (buildsym_compunit::record_line): Take an extra
13296 parameter, reduce duplication in the line table, and record the
13297 is_stmt flag in the line table.
13298 * buildsym.h (buildsym_compunit::record_line): Add extra
13299 parameter.
13300 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13301 non-statement lines.
13302 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13303 this to the symtab builder.
13304 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13305 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13306 through to dwarf_record_line_1.
13307 * infrun.c (process_event_stop_test): When stepping, don't stop at
13308 a non-statement instruction, and only refresh the step info when
13309 we land in the middle of a line's range. Also add an extra
13310 comment.
13311 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13312 field.
13313 * record-btrace.c (btrace_find_line_range): Only record lines
13314 marked as is-statement.
13315 * stack.c (frame_show_address): Show the frame address if we are
13316 in a non-statement sal.
13317 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13318 (maintenance_print_one_line_table): Print a header for the is_stmt
13319 column, and include is_stmt information in the output.
13320 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13321 preference to non-statements.
13322 (find_pcs_for_symtab_line): Prefer is-statement entries.
13323 (find_line_common): Likewise.
13324 * symtab.h (struct linetable_entry): Add is_stmt field.
13325 (struct symtab_and_line): Likewise.
13326 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13327 arranging the line table.
13328
13329 2020-03-07 Tom de Vries <tdevries@suse.de>
13330
13331 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13332 DIE.
13333
13334 2020-03-07 Tom Tromey <tom@tromey.com>
13335
13336 * valops.c (value_literal_complex): Remove obsolete comment.
13337 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13338 comment.
13339
13340 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13341
13342 * infrun.h: Forward-declare thread_info.
13343 (set_step_info): Add thread_info parameter, add doc.
13344 * infrun.c (set_step_info): Add thread_info parameter, move doc
13345 to header.
13346 * infrun.c (process_event_stop_test): Pass thread to
13347 set_step_info call.
13348 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13349 set_step_info.
13350 (prepare_one_step): Add thread_info parameter, pass it to
13351 set_step_frame and prepare_one_step (recursive) call.
13352 (step_1): Pass thread to prepare_one_step call.
13353 (step_command_fsm::should_stop): Pass thread to
13354 prepare_one_step.
13355 (until_next_fsm): Pass thread to set_step_frame call.
13356 (finish_command): Pass thread to set_step_info call.
13357
13358 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13359
13360 * windows-tdep.c (windows_solib_create_inferior_hook):
13361 Check if inferior is running.
13362
13363 2020-03-06 Tom de Vries <tdevries@suse.de>
13364
13365 * NEWS: Fix "the the".
13366 * ctfread.c: Same.
13367
13368 2020-03-06 Tom de Vries <tdevries@suse.de>
13369
13370 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13371
13372 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * .dir-locals.el: Add a comment referencing the other copies of
13375 this file.
13376
13377 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13378
13379 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13380 psargs.
13381
13382 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13383
13384 * .gitattributes: New file.
13385
13386 2020-03-04 Tom Tromey <tom@tromey.com>
13387
13388 * symmisc.c (print_symbol_bcache_statistics)
13389 (print_objfile_statistics): Update.
13390 * symfile.c (allocate_symtab): Use intern.
13391 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13392 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13393 macro_cache>: Remove.
13394 <string_cache>: New member.
13395 (struct objfile) <intern>: New methods.
13396 * elfread.c (elf_symtab_read): Use intern.
13397 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13398 (dwarf2_compute_name, dwarf2_physname)
13399 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13400 names.
13401 (guess_partial_die_structure_name): Update.
13402 (partial_die_info::fixup): Intern name.
13403 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13404 name.
13405 (dwarf2_name): Intern name. Update.
13406 * buildsym.c (buildsym_compunit::get_macro_table): Use
13407 string_cache.
13408
13409 2020-03-04 Tom Tromey <tom@tromey.com>
13410
13411 * jit.c (bfd_open_from_target_memory): Make "target" const.
13412 * corefile.c (gnutarget): Now const.
13413 * gdbcore.h (gnutarget): Now const.
13414
13415 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13416
13417 * NEWS: Mention support for WOW64 processes.
13418 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13419 (amd64_windows_segment_register_p): Remove static.
13420 (_initialize_amd64_windows_nat): Update.
13421 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13422 * i386-windows-nat.c (context_offset): Update.
13423 (i386_mappings): Rename and remove static.
13424 (i386_windows_segment_register_p): Remove static.
13425 (_initialize_i386_windows_nat): Update.
13426 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13427 (STATUS_WX86_SINGLE_STEP): New macro.
13428 (EnumProcessModulesEx): New macro.
13429 (Wow64SuspendThread): New macro.
13430 (Wow64GetThreadContext): New macro.
13431 (Wow64SetThreadContext): New macro.
13432 (Wow64GetThreadSelectorEntry): New macro.
13433 (windows_set_context_register_offsets): Add static.
13434 (windows_set_segment_register_p): Likewise.
13435 (windows_add_thread): Adapt for WOW64 processes.
13436 (windows_fetch_one_register): Likewise.
13437 (windows_nat_target::fetch_registers): Likewise.
13438 (windows_store_one_register): Likewise.
13439 (display_selector): Likewise.
13440 (display_selectors): Likewise.
13441 (handle_exception): Likewise.
13442 (windows_continue): Likewise.
13443 (windows_nat_target::resume): Likewise.
13444 (windows_add_all_dlls): Likewise.
13445 (do_initial_windows_stuff): Likewise.
13446 (windows_nat_target::attach): Likewise.
13447 (windows_get_exec_module_filename): Likewise.
13448 (windows_nat_target::create_inferior): Likewise.
13449 (windows_xfer_siginfo): Likewise.
13450 (_initialize_loadable): Initialize Wow64SuspendThread,
13451 Wow64GetThreadContext, Wow64SetThreadContext,
13452 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13453 * windows-nat.h (windows_set_context_register_offsets):
13454 Remove declaration.
13455 (windows_set_segment_register_p): Likewise.
13456 (i386_windows_segment_register_p): Add declaration.
13457 (amd64_windows_segment_register_p): Likewise.
13458
13459 2020-03-04 Luis Machado <luis.machado@linaro.org>
13460
13461 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13462 in "info registers" for AArch64/ARM.
13463
13464 The change caused "info registers" to not print GPR's.
13465
13466 gdb/ChangeLog:
13467
13468 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13469
13470 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13471 when reg->group is empty and reggroup is not.
13472
13473 2020-03-03 Tom Tromey <tromey@adacore.com>
13474
13475 * dwarf2/frame.c (struct dwarf2_frame_cache)
13476 <checked_tailcall_bottom, entry_cfa_sp_offset,
13477 entry_cfa_sp_offset_p>: Remove members.
13478 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13479 (dwarf2_frame_prev_register): Don't call
13480 dwarf2_tailcall_sniffer_first.
13481 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13482 * frame-unwind.c (add_unwinder): New fuction.
13483 (frame_unwind_init): Use it. Add tailcall unwinder.
13484
13485 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13486 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13487
13488 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13489 value should be printed as true.
13490
13491 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13492
13493 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13494 (windows_init_abi): Set and use windows_so_ops.
13495
13496 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13497
13498 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13499 when verifying if dealing with a convenience variable.
13500
13501 2020-03-03 Luis Machado <luis.machado@linaro.org>
13502
13503 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13504
13505 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13506
13507 * infrun.c (gdbarch_supports_displaced_stepping): New.
13508 (use_displaced_stepping): Break up conditions in smaller pieces.
13509 Use gdbarch_supports_displaced_stepping.
13510 (displaced_step_prepare_throw): Use
13511 gdbarch_supports_displaced_stepping.
13512
13513 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13514
13515 * NEWS: Mention new behaviour of the history filename.
13516 * top.c (write_history_p): Add comment.
13517 (show_write_history_p): Add header comment, give a different
13518 message when history writing is on, but the history filename is
13519 empty.
13520 (history_filename): Add comment.
13521 (history_filename_empty): New function.
13522 (show_history_filename): Add header comment, give a different
13523 message when the filename is empty.
13524 (init_history): Compare history_filename against nullptr, and only
13525 read history if the filename is not empty.
13526 (set_history_filename): Add header comment, and only make
13527 non-empty filenames absolute.
13528 (init_main): Make the filename argument to 'set history filename'
13529 optional.
13530
13531 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13532
13533 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13534 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13535 (fetch_fp_register): Update.
13536 (fetch_fp_regs): Update.
13537 (store_fp_register): Update.
13538 (store_fp_regs): Update.
13539 (arm_netbsd_nat_target::read_description): New function.
13540 (fetch_elfcore_registers): Update.
13541
13542 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13543
13544 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13545 general_thread if the stop reply is missing a thread-id.
13546 (remote_target::process_stop_reply): Use the first non-exited
13547 thread if the target didn't pass a thread-id.
13548 * infrun.c (do_target_wait): Move call to
13549 switch_to_inferior_no_thread to ....
13550 (do_target_wait_1): ... here.
13551
13552 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13553
13554 * debuginfod-support.c: Include defs.h first.
13555
13556 2020-02-28 Tom de Vries <tdevries@suse.de>
13557
13558 * symfile.c (set_initial_language): Use default language for lookup.
13559
13560 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13561
13562 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13563 reader variable, pass `this` to read_cutu_die_from_dwo.
13564
13565 2020-02-27 Aaron Merey <amerey@redhat.com>
13566
13567 * source.c (open_source_file): Check for nullptr when computing
13568 srcpath.
13569
13570 2020-02-27 Tom Tromey <tromey@adacore.com>
13571
13572 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13573 member.
13574 (dwarf2_add_field): Don't update nfields.
13575 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13576
13577 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13578
13579 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13580 abs.
13581
13582 2020-02-26 Tom Tromey <tom@tromey.com>
13583
13584 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13585 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13586 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13587 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13588 per_cu_data.
13589
13590 2020-02-26 Tom Tromey <tom@tromey.com>
13591
13592 * dwarf2/index-write.c (psym_index_map): Change type.
13593 (add_address_entry_worker, write_one_signatured_type)
13594 (recursively_count_psymbols, recursively_write_psymbols)
13595 (class debug_names, psyms_seen_size, write_gdbindex)
13596 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13597
13598 2020-02-26 Aaron Merey <amerey@redhat.com>
13599
13600 * Makefile.in: Handle optional debuginfod support.
13601 * NEWS: Update.
13602 * README: Add --with-debuginfod summary.
13603 * config.in: Regenerate.
13604 * configure: Regenerate.
13605 * configure.ac: Handle optional debuginfod support.
13606 * debuginfod-support.c: debuginfod helper functions.
13607 * debuginfod-support.h: Ditto.
13608 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13609 summary.
13610 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13611 when a dwz file cannot be found.
13612 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13613 debuginfo file cannot be found.
13614 * source.c (open_source_file): Query debuginfod servers when a
13615 source file cannot be found.
13616 * top.c (print_gdb_configuration): Include
13617 --{with,without}-debuginfod in the output.
13618
13619 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13620
13621 * thread.c (thr_try_catch_cmd): Print thread name.
13622
13623 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13624
13625 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13627 dwarf2_fetch_die_type_sect_off): Move to...
13628 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13629 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13630 dwarf2_fetch_die_type_sect_off): ... here.
13631 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13632 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13633 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13634
13635 2020-02-26 Tom de Vries <tdevries@suse.de>
13636
13637 PR gdb/25603
13638 * symfile.c (set_initial_language): Exit-early if
13639 language_mode == language_mode_manual.
13640
13641 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13642
13643 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13644 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13645 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13646
13647 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13648
13649 * gdbtypes.c (create_array_type_with_stride): Handle negative
13650 array strides.
13651 * valarith.c (value_subscripted_rvalue): Likewise.
13652
13653 2020-02-25 Luis Machado <luis.machado@linaro.org>
13654
13655 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13656
13657 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13658
13659 * loc.h (dwarf2_get_die_type): Move to...
13660 * read.h (dwarf2_get_die_type): ... here.
13661 * read.c (dwarf2_get_die_type): Move doc to header.
13662
13663 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13664
13665 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13666 'gnulib/Makefile.in' to the list.
13667
13668 2020-02-24 Tom Tromey <tom@tromey.com>
13669
13670 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13671 Remove.
13672 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13673 XOBNEWVEC.
13674
13675 2020-02-24 Tom Tromey <tom@tromey.com>
13676
13677 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13678 New method.
13679 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13680 (dw2_do_instantiate_symtab, dw2_get_file_names)
13681 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13682
13683 2020-02-24 Tom Tromey <tom@tromey.com>
13684
13685 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13686 make_scoped_restore.
13687 (dwarf2_psymtab::read_symtab): Don't clear
13688 reading_partial_symbols.
13689
13690 2020-02-24 Tom de Vries <tdevries@suse.de>
13691
13692 PR gdb/25592
13693 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13694
13695 2020-02-24 Tom de Vries <tdevries@suse.de>
13696
13697 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13698 commands layout next/prev/regs.
13699
13700 2020-02-22 Tom Tromey <tom@tromey.com>
13701
13702 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13703 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13704
13705 2020-02-22 Tom Tromey <tom@tromey.com>
13706
13707 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13708
13709 2020-02-22 Tom Tromey <tom@tromey.com>
13710
13711 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13712 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13713 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13714 * tui/tui.c (_initialize_tui): Add usage text.
13715
13716 2020-02-22 Tom Tromey <tom@tromey.com>
13717
13718 * tui/tui-win.c (tui_set_focus_command)
13719 (tui_set_win_height_command): Use error_no_arg.
13720 (_initialize_tui_win): Update help text.
13721 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13722
13723 2020-02-22 Tom Tromey <tom@tromey.com>
13724
13725 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13726 * tui/tui-disasm.h (struct tui_disasm_window)
13727 <display_start_addr>: Declare.
13728 * tui/tui-source.h (struct tui_source_window)
13729 <display_start_addr>: Declare.
13730 * tui/tui-winsource.h (struct tui_source_window_base)
13731 <show_source_line, display_start_addr>: New methods.
13732 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13733 Rename and move to protected section.
13734 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13735 (tui_source_window_base::do_erase_source_content): Update.
13736 (tui_source_window_base::show_source_line): Now a method.
13737 (tui_source_window_base::show_source_content)
13738 (tui_source_window_base::tui_source_window_base)
13739 (tui_source_window_base::rerender)
13740 (tui_source_window_base::refill)
13741 (tui_source_window_base::do_scroll_horizontal)
13742 (tui_source_window_base::set_is_exec_point_at)
13743 (tui_source_window_base::update_breakpoint_info)
13744 (tui_source_window_base::update_exec_info): Update.
13745 * tui/tui-source.c (tui_source_window::set_contents)
13746 (tui_source_window::showing_source_p)
13747 (tui_source_window::do_scroll_vertical)
13748 (tui_source_window::location_matches_p)
13749 (tui_source_window::line_is_displayed): Update.
13750 (tui_source_window::display_start_addr): New method.
13751 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13752 (tui_disasm_window::do_scroll_vertical)
13753 (tui_disasm_window::location_matches_p): Update.
13754 (tui_disasm_window::display_start_addr): New method.
13755
13756 2020-02-22 Tom Tromey <tom@tromey.com>
13757
13758 * NEWS: Add entry for gdb.register_window_type.
13759 * tui/tui-layout.h (window_factory): New typedef.
13760 (tui_register_window): Declare.
13761 * tui/tui-layout.c (saved_tui_windows): New global.
13762 (tui_apply_current_layout): Use it.
13763 (tui_register_window): New function.
13764 * python/python.c (do_start_initialization): Call
13765 gdbpy_initialize_tui.
13766 (python_GdbMethods): Add "register_window_type" function.
13767 * python/python-internal.h (gdbpy_register_tui_window)
13768 (gdbpy_initialize_tui): Declare.
13769 * python/py-tui.c: New file.
13770 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13771
13772 2020-02-22 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13775
13776 2020-02-22 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13779 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13780 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13781 (tui_set_win_focus_to): Move from tui-win.c.
13782
13783 2020-02-22 Tom Tromey <tom@tromey.com>
13784
13785 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13786 functions.
13787 (known_window_types): New global.
13788 (tui_get_window_by_name): Reimplement.
13789 (initialize_known_windows): New function.
13790 (validate_window_name): Rewrite.
13791 (_initialize_tui_layout): Call initialize_known_windows.
13792
13793 2020-02-22 Tom Tromey <tom@tromey.com>
13794
13795 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13796 Remove constants.
13797 * tui/tui-winsource.h (struct tui_source_window_base)
13798 <tui_source_window_base>: Remove parameter.
13799 * tui/tui-winsource.c
13800 (tui_source_window_base::tui_source_window_base): Remove
13801 parameter.
13802 (tui_source_window_base::refill): Update.
13803 * tui/tui-stack.h (struct tui_locator_window)
13804 <tui_locator_window>: Update.
13805 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13806 Default the constructor.
13807 * tui/tui-regs.h (struct tui_data_item_window)
13808 <tui_data_item_window>: Default the constructor.
13809 (struct tui_data_window) <tui_data_window>: Likewise.
13810 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13811 Default the constructor.
13812 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13813 Default the constructor.
13814 <type>: Remove.
13815 (struct tui_win_info) <tui_win_info>: Default the constructor.
13816 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13817 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13818 Default the constructor.
13819
13820 2020-02-22 Tom Tromey <tom@tromey.com>
13821
13822 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13823 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13824 * tui/tui-win.c (tui_resize_all): Don't call
13825 tui_delete_invisible_windows.
13826 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13827 done.
13828 (tui_set_layout): Update.
13829 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13830 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13831 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13832
13833 2020-02-22 Tom Tromey <tom@tromey.com>
13834
13835 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13836 correctly.
13837
13838 2020-02-22 Tom Tromey <tom@tromey.com>
13839
13840 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13841
13842 2020-02-22 Tom Tromey <tom@tromey.com>
13843
13844 * tui/tui-winsource.h (struct tui_source_window_iterator)
13845 <inner_iterator>: New etytypedef.
13846 <tui_source_window_iterator>: Take "end" parameter.
13847 <tui_source_window_iterator>: Take iterator.
13848 <operator*, advance>: Update.
13849 <m_iter>: Change type.
13850 <m_end>: New field.
13851 (struct tui_source_windows) <begin, end>: Update.
13852 * tui/tui-layout.c (tui_windows): New global.
13853 (tui_apply_current_layout): Clear tui_windows.
13854 (tui_layout_window::apply): Update tui_windows.
13855 * tui/tui-data.h (tui_windows): Declare.
13856 (all_tui_windows): Now inline function.
13857 (class tui_window_iterator, struct all_tui_windows): Remove.
13858
13859 2020-02-22 Tom Tromey <tom@tromey.com>
13860
13861 PR tui/17850:
13862 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13863 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13864 "height" argument.
13865 (class tui_layout_window) <get_sizes>: Likewise.
13866 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13867 argument.
13868 <get_sizes>: Add "height" argument.
13869 <m_vertical>: New field.
13870 * tui/tui-layout.c (tui_layout_split::clone): Update.
13871 (tui_layout_split::get_sizes): Add "height" argument.
13872 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13873 (tui_new_layout_command): Parse "-horizontal".
13874 (_initialize_tui_layout): Update help string.
13875 (tui_layout_split::specification): Add "-horizontal" when needed.
13876 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13877 argument.
13878 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13879 New methods.
13880
13881 2020-02-22 Tom Tromey <tom@tromey.com>
13882
13883 * tui/tui-layout.h (enum tui_adjust_result): New.
13884 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13885 (class tui_layout_window) <adjust_size>: Return
13886 tui_adjust_result. Rewrite.
13887 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13888 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13889
13890 2020-02-22 Tom Tromey <tom@tromey.com>
13891
13892 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13893 parameter and return types.
13894 (class tui_layout_base) <specification>: Add "depth".
13895 (class tui_layout_window) <specification>: Add "depth".
13896 (class tui_layout_split) <specification>: Add "depth".
13897 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13898 and return types.
13899 (tui_new_layout_command): Parse sub-layouts.
13900 (_initialize_tui_layout): Update help string.
13901 (tui_layout_window::specification): Add "depth".
13902 (add_layout_command): Update.
13903
13904 2020-02-22 Tom Tromey <tom@tromey.com>
13905
13906 * NEWS: Add "tui new-layout" item.
13907 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13908 Add new-layout command to help text.
13909 (validate_window_name): New function.
13910 (tui_new_layout_command): New function.
13911 (_initialize_tui_layout): Register "new-layout".
13912 (tui_layout_window::specification): New method.
13913 (tui_layout_window::specification): New method.
13914 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13915 method.
13916 (class tui_layout_window) <specification>: New method.
13917 (class tui_layout_split) <specification>: New method.
13918
13919 2020-02-22 Tom Tromey <tom@tromey.com>
13920
13921 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13922 * tui/tui-win.c (window_name_completer): Update comment.
13923 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13924 Declare method.
13925 (class tui_layout_window) <replace_window>: Likewise.
13926 (class tui_layout_split) <replace_window>: Likewise.
13927 (tui_set_layout): Don't declare.
13928 (tui_set_initial_layout): Declare function.
13929 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13930 (asm_regs_layout): New globals.
13931 (tui_current_layout, show_layout): Remove.
13932 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13933 (find_layout, tui_apply_layout): New function.
13934 (layout_completer): Remove.
13935 (tui_next_layout): Reimplement.
13936 (tui_next_layout_command): New function.
13937 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13938 (tui_regs_layout): Reimplement.
13939 (tui_regs_layout_command): New function.
13940 (extract_display_start_addr): Rewrite.
13941 (next_layout, prev_layout): Remove.
13942 (tui_layout_window::replace_window): New method.
13943 (tui_layout_split::replace_window): New method.
13944 (destroy_layout): New function.
13945 (layout_list): New global.
13946 (add_layout_command): New function.
13947 (initialize_layouts): Update.
13948 (tui_layout_command): New function.
13949 (_initialize_tui_layout): Install "layout" commands.
13950 * tui/tui-data.h (enum tui_layout_type): Remove.
13951 (tui_current_layout): Don't declare.
13952
13953 2020-02-22 Tom Tromey <tom@tromey.com>
13954
13955 * tui/tui-regs.c (tui_reg_layout): Remove.
13956 (tui_reg_command): Use tui_regs_layout.
13957 * tui/tui-layout.h (tui_reg_command): Declare.
13958 * tui/tui-layout.c (tui_reg_command): New function.
13959
13960 2020-02-22 Tom Tromey <tom@tromey.com>
13961
13962 * tui/tui.c (tui_rl_delete_other_windows): Call
13963 tui_remove_some_windows.
13964 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13965 Declare method.
13966 (class tui_layout_window) <remove_windows>: New method.
13967 (class tui_layout_split) <remove_windows>: Declare.
13968 (tui_remove_some_windows): Declare.
13969 * tui/tui-layout.c (tui_remove_some_windows): New function.
13970 (tui_layout_split::remove_windows): New method.
13971
13972 2020-02-22 Tom Tromey <tom@tromey.com>
13973
13974 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13975 * tui/tui-layout.h (tui_next_layout): Declare.
13976 * tui/tui-layout.c (tui_next_layout): New function.
13977
13978 2020-02-22 Tom Tromey <tom@tromey.com>
13979
13980 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13981 correct coordinates.
13982
13983 2020-02-22 Tom Tromey <tom@tromey.com>
13984
13985 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13986 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13987 DATA_WIN case.
13988
13989 2020-02-22 Tom Tromey <tom@tromey.com>
13990
13991 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13992 TUI_DISASM_WIN, not tui_win_list.
13993
13994 2020-02-22 Tom Tromey <tom@tromey.com>
13995
13996 * valprint.c (generic_val_print_enum_1)
13997 (val_print_type_code_flags): Style member names.
13998 * rust-lang.c (val_print_struct, rust_print_enum)
13999 (rust_print_struct_def, rust_internal_print_type): Style member
14000 names.
14001 * p-valprint.c (pascal_object_print_value_fields): Style member
14002 names. Only call fprintf_symbol_filtered for static members.
14003 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14004 * f-valprint.c (f_val_print): Style member names.
14005 * f-typeprint.c (f_type_print_base): Style member names.
14006 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14007 call fprintf_symbol_filtered for static members.
14008 (cp_print_class_member): Style member names.
14009 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14010 member names.
14011 * ada-valprint.c (ada_print_scalar): Style enum names.
14012 (ada_val_print_enum): Likewise.
14013 * ada-typeprint.c (print_enum_type): Style enum names.
14014
14015 2020-02-21 Tom Tromey <tom@tromey.com>
14016
14017 * psympriv.h (struct partial_symtab): Update comment.
14018
14019 2020-02-21 Tom Tromey <tromey@adacore.com>
14020
14021 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14022 type is CORE_ADDR.
14023
14024 2020-02-21 Tom de Vries <tdevries@suse.de>
14025
14026 PR gdb/25534
14027 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14028 if dependencies[i]->user != NULL.
14029
14030 2020-02-21 Ali Tamur <tamur@google.com>
14031
14032 * dwarf2/read.c (dwarf2_name): Add null check.
14033
14034 2020-02-20 Tom Tromey <tom@tromey.com>
14035
14036 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14037 ">=", in binary search.
14038 (dwarf2_find_containing_comp_unit): New overload.
14039 (run_test): New self-test.
14040 (_initialize_dwarf2_read): Register new test.
14041
14042 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14043
14044 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14045 * riscv-tdep.h: Likewise.
14046 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14047 rv32-only CSR.
14048 * features/riscv/64bit-csr.xml: Regenerated.
14049
14050 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14051 Tom Tromey <tom@tromey.com>
14052
14053 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14054 of 'fputc_unfiltered'.
14055 (putchar_unfiltered): Call 'fputc_unfiltered'.
14056 (fputc_unfiltered): Call 'fputs_unfiltered'.
14057
14058 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14059
14060 * config.in: Regenerate.
14061 * configure: Regenerate.
14062 * configure.ac: Add --with-python-libdir option.
14063 * main.c: Use WITH_PYTHON_LIBDIR.
14064
14065 2020-02-19 Tom Tromey <tom@tromey.com>
14066
14067 * symtab.c (general_symbol_info::compute_and_set_names): Use
14068 obstack_strndup. Simplify call to symbol_set_demangled_name.
14069
14070 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14071
14072 * dwarf2/read.c (allocate_signatured_type_table,
14073 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14074 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14075 Remove objfile parameter, update all callers.
14076
14077 2020-02-19 Doug Evans <dje@google.com>
14078
14079 PR rust/25535
14080 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14081 rust_enum_variant calculation.
14082
14083 2020-02-19 Tom Tromey <tromey@adacore.com>
14084
14085 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14086
14087 2020-02-19 Tom Tromey <tromey@adacore.com>
14088
14089 * ada-lang.c (cache_symbol): Use obstack_strdup.
14090
14091 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * configure: Regenerate.
14094
14095 2020-02-19 Tom Tromey <tromey@adacore.com>
14096
14097 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14098 NULL check.
14099
14100 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14101
14102 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14103
14104 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14105
14106 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14107 if GDBSERVER is not defined.
14108 (riscv_tdesc_cache): Likewise, also store const target_desc.
14109 (STATIC_IN_GDB): Define.
14110 (riscv_create_target_description): Update declaration with
14111 STATIC_IN_GDB.
14112 (riscv_lookup_target_description): New function, only define if
14113 GDBSERVER is not defined.
14114 * arch/riscv.h (riscv_create_target_description): Declare only
14115 when GDBSERVER is defined.
14116 (riscv_lookup_target_description): New declaration when GDBSERVER
14117 is not defined.
14118 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14119 (riscv_linux_read_features): ...this, and return
14120 riscv_gdbarch_features instead of target_desc.
14121 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14122 (riscv_linux_read_description): Rename to...
14123 (riscv_linux_read_features): ...this.
14124 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14125 Update to use riscv_gdbarch_features and
14126 riscv_lookup_target_description.
14127 * riscv-tdep.c (riscv_find_default_target_description): Use
14128 riscv_lookup_target_description instead of
14129 riscv_create_target_description.
14130
14131 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * valprint.c (generic_val_print_enum_1): When printing a flag
14134 enum with value 0 and there is no enumerator with value 0, print
14135 just "0" instead of "(unknown: 0x0)".
14136
14137 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * valprint.c (generic_val_print_enum_1): Print unknown part of
14140 flag enum in hex.
14141
14142 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14143
14144 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14145 flag enums to contain duplicate enumerators.
14146 * valprint.c (generic_val_print_enum_1): Update comment.
14147
14148 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * dwarf2/read.c: Include "count-one-bits.h".
14151 (update_enumeration_type_from_children): If an enumerator has
14152 multiple bits set, don't treat the enumeration as a "flag enum".
14153 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14154 of flag enums have 0 or 1 bit set.
14155
14156 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14157
14158 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14159 conversion.
14160 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14161 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14162 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14163 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14164 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14165
14166 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14167
14168 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14169
14170 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14171
14172 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14173 displaced_step_closure_up.
14174 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14175 (struct displaced_step_closure_up):
14176 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14177 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14178 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14179 Likewise.
14180 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14181 * gdbarch.c, gdbarch.h: Re-generate.
14182 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14183 displaced_step_closure_up.
14184 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14185 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14186 * infrun.h (displaced_step_closure_up): New type alias.
14187 (struct displaced_step_inferior_state) <step_closure>: Change
14188 type to displaced_step_closure_up.
14189 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14190 displaced_step_closure_up.
14191 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14192
14193 2020-02-14 Tom Tromey <tom@tromey.com>
14194
14195 * minidebug.c (gnu_debug_key): New global.
14196 (find_separate_debug_file_in_section): Use it.
14197
14198 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14199
14200 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14201 std::unique_ptr.
14202 * gdbarch.c: Re-generate.
14203 * gdbarch.h: Re-generate.
14204 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14205 change.
14206 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14207 type to std::unique_ptr.
14208 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14209 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14210 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14211 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14212 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14213 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14214 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14215 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14216 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14217
14218 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14219
14220 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14221 std::unique_ptr.
14222 (displaced_step_clear): Rename to...
14223 (displaced_step_reset): ... this. Just call displaced->reset ().
14224 (displaced_step_clear_cleanup): Rename to...
14225 (displaced_step_reset_cleanup): ... this.
14226 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14227 (displaced_step_fixup): Likewise.
14228 (resume_1): Likewise.
14229 (handle_inferior_event): Restore child's memory before calling
14230 displaced_step_fixup on the parent.
14231 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14232 to std::unique_ptr.
14233 <step_closure>: Change type to std::unique_ptr.
14234
14235 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14236
14237 * arm-tdep.c: Include count-one-bits.h.
14238 (cleanup_block_store_pc): Use count_one_bits.
14239 (cleanup_block_load_pc): Use count_one_bits.
14240 (arm_copy_block_xfer): Use count_one_bits.
14241 (thumb2_copy_block_xfer): Use count_one_bits.
14242 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14243 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14244 (thumb_get_next_pcs_raw): Use count_one_bits.
14245 (arm_get_next_pcs_raw): Use count_one_bits_l.
14246 * arch/arm.c (bitcount): Remove.
14247 * arch/arm.h (bitcount): Remove.
14248
14249 2020-02-14 Tom Tromey <tromey@adacore.com>
14250
14251 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14252 Update.
14253 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14254 * dwarf2/loc.c (call_site_find_chain_1): Return
14255 unique_xmalloc_ptr.
14256 (call_site_find_chain): Likewise.
14257
14258 2020-02-14 Richard Biener <rguenther@suse.de>
14259
14260 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14261 on expression with division operators.
14262
14263 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14264
14265 * MAINTAINERS (Write After Approval): Adding myself.
14266
14267 2020-02-12 Tom Tromey <tom@tromey.com>
14268
14269 * event-loop.c (event_data, gdb_event, event_handler_func):
14270 Remove.
14271
14272 2020-02-12 Tom Tromey <tom@tromey.com>
14273
14274 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14275 (dwarf2_frame_objfile_data): Add comment.
14276 (find_comp_unit, set_comp_unit): New functions.
14277 (dwarf2_frame_find_fde): Use find_comp_unit.
14278 (dwarf2_build_frame_info): Use set_comp_unit.
14279
14280 2020-02-12 Tom Tromey <tom@tromey.com>
14281
14282 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14283 (comp_unit): Don't initialize objfile.
14284 (execute_cfa_program): Add text_offset parameter.
14285 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14286 (dwarf2_frame_cache): Update.
14287 (dwarf2_build_frame_info): Don't set "objfile" member.
14288
14289 2020-02-12 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14292 (decode_frame_entry): Likewise.
14293 (dwarf2_build_frame_info): Update.
14294
14295 2020-02-12 Tom Tromey <tom@tromey.com>
14296
14297 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14298 (decode_frame_entry_1): Use the comp_unit obstack.
14299
14300 2020-02-12 Tom Tromey <tom@tromey.com>
14301
14302 * dwarf2/frame.c (struct comp_unit): Add initializers and
14303 constructor.
14304 (dwarf2_frame_objfile_data): Store a comp_unit.
14305 (dwarf2_frame_find_fde): Update.
14306 (dwarf2_build_frame_info): Use "new".
14307
14308 2020-02-12 Tom Tromey <tom@tromey.com>
14309
14310 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14311 (dwarf2_fde_table): Typedef for std::vector.
14312 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14313 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14314 (decode_frame_entry): Update.
14315 (dwarf2_build_frame_info): Use "new".
14316
14317 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14318
14319 * arm-tdep.c (arm_gdbarch_init): Update.
14320 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14321 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14322 have_neon, is_m>: Change to bool.
14323
14324 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14325
14326 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14327
14328 2020-02-12 Tom Tromey <tom@tromey.com>
14329
14330 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14331
14332 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14333
14334 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14335 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14336
14337 2020-02-11 Tom Tromey <tom@tromey.com>
14338
14339 * psymtab.h: Update comment.
14340
14341 2020-02-11 Tom Tromey <tom@tromey.com>
14342
14343 * gdb_obstack.h (struct auto_obstack): Use
14344 DISABLE_COPY_AND_ASSIGN.
14345
14346 2020-02-11 Tom Tromey <tom@tromey.com>
14347
14348 * dwarf2/frame.h (struct objfile): Don't forward declare.
14349
14350 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14351
14352 * cris-tdep.c (cris_supply_gregset): Change signature to match
14353 what struct regset expects.
14354 (cris_regset): New struct.
14355 (fetch_core_registers): Remove.
14356 (cris_iterate_over_regset_sections): New function.
14357 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14358 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14359
14360 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14361
14362 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14363 registers.
14364
14365 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14366
14367 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14368
14369 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14370
14371 * configure: Re-generate.
14372
14373 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14374
14375 * configure: Re-generate.
14376
14377 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14378
14379 * acinclude: Update warning.m4 path.
14380 * warning.m4: Move to gdbsupport.
14381
14382 2020-02-11 Tom Tromey <tromey@adacore.com>
14383
14384 * remote.c (remote_console_output): Update.
14385 * printcmd.c (printf_command): Update.
14386 * event-loop.c (gdb_wait_for_event): Update.
14387 * linux-nat.c (sigchld_handler): Update.
14388 * remote-sim.c (gdb_os_write_stdout): Update.
14389 (gdb_os_flush_stdout): Update.
14390 (gdb_os_flush_stderr): Update.
14391 (gdb_os_write_stderr): Update.
14392 * exceptions.c (print_exception): Update.
14393 * remote-fileio.c (remote_fileio_func_read): Update.
14394 (remote_fileio_func_write): Update.
14395 * tui/tui.c (tui_enable): Update.
14396 * tui/tui-interp.c (tui_interp::init): Update.
14397 * utils.c (init_page_info): Update.
14398 (putchar_unfiltered, fputc_unfiltered): Update.
14399 (gdb_flush): Update.
14400 (emit_style_escape): Update.
14401 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14402 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14403 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14404 (stderr_file::write): Update.
14405 (stderr_file::puts): Update.
14406 * ui-file.h (ui_file_isatty, ui_file_write)
14407 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14408 (ui_file_puts): Don't declare.
14409
14410 2020-02-10 Tom de Vries <tdevries@suse.de>
14411
14412 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14413 sentinel to char *.
14414
14415 2020-02-09 Tom de Vries <tdevries@suse.de>
14416
14417 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14418 filename if it matches "<artificial>".
14419
14420 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14421
14422 * windows-tdep.c (struct enum_value_name): New struct.
14423 (create_enum): New function.
14424 (windows_get_siginfo_type): Create and use enum types.
14425
14426 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14427
14428 * NEWS: Mention $_siginfo support for Windows.
14429 * windows-nat.c (handle_exception): Set siginfo_er.
14430 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14431 (windows_xfer_siginfo): New function.
14432 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14433 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14434 (init_windows_gdbarch_data): New function.
14435 (get_windows_gdbarch_data): New function.
14436 (windows_get_siginfo_type): New function.
14437 (windows_init_abi): Register windows_get_siginfo_type.
14438 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14439
14440 2020-02-08 Tom Tromey <tom@tromey.com>
14441
14442 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14443 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14444 <keep>: Declare method.
14445 <m_keep>: Remove member.
14446 <~cutu_reader>: Remove.
14447 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14448 (cutu_reader::cutu_reader): Update.
14449 (cutu_reader::keep): Rename from ~cutu_reader.
14450 (process_psymtab_comp_unit, build_type_psymtabs_1)
14451 (process_skeletonless_type_unit, load_partial_comp_unit)
14452 (load_full_comp_unit, dwarf2_read_addr_index)
14453 (read_signatured_type): Update.
14454
14455 2020-02-08 Tom Tromey <tom@tromey.com>
14456
14457 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14458 "want_partial_unit" parameter.
14459 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14460 Inline check for DW_TAG_partial_unit.
14461 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14462
14463 2020-02-08 Tom Tromey <tom@tromey.com>
14464
14465 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14466 read.c.
14467 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14468 read.c.
14469
14470 2020-02-08 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2/read.c (read_address): Move to comp-unit.c.
14473 (dwarf2_rnglists_process, dwarf2_ranges_process)
14474 (read_attribute_value, dwarf_decode_lines_1)
14475 (var_decode_location, decode_locdesc): Update.
14476 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14477 read.c. Remove "cu" parameter.
14478 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14479 method.
14480
14481 2020-02-08 Tom Tromey <tom@tromey.com>
14482
14483 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14484 (read_indirect_line_string): Update.
14485 * dwarf2/comp-unit.c (read_offset): Remove.
14486 (read_comp_unit_head): Update.
14487 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14488 method.
14489 (read_offset): Don't declare.
14490
14491 2020-02-08 Tom Tromey <tom@tromey.com>
14492
14493 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14494 * dwarf2/read.c (struct comp_unit_head): Move to
14495 dwarf2/comp-unit.h.
14496 (enum class rcuh_kind): Move to comp-unit.h.
14497 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14498 (read_comp_unit_head, error_check_comp_unit_head)
14499 (read_and_check_comp_unit_head): Move to comp-unit.c.
14500 (read_offset, dwarf_unit_type_name): Likewise.
14501 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14502 (cutu_reader::cutu_reader, read_call_site_scope)
14503 (find_partial_die, follow_die_offset): Update.
14504 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14505
14506 2020-02-08 Tom Tromey <tom@tromey.com>
14507
14508 * dwarf2/read.c (read_offset_1): Move to leb.c.
14509 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14510 (dwarf_decode_macro_bytes): Update.
14511 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14512 * dwarf2/leb.h (read_offset): Declare.
14513
14514 2020-02-08 Tom Tromey <tom@tromey.com>
14515
14516 * dwarf2/read.c (dwarf2_section_size): Remove.
14517 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14518 Update.
14519 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14520
14521 2020-02-08 Tom Tromey <tom@tromey.com>
14522
14523 * dwarf2/read.c (read_initial_length): Move to leb.c.
14524 * dwarf2/leb.h (read_initial_length): Declare.
14525 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14526 handle_nonstd parameter.
14527 * dwarf2/frame.c (read_initial_length): Remove.
14528 (decode_frame_entry_1): Update.
14529
14530 2020-02-08 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/loc.c (dwarf2_find_location_expression)
14533 (dwarf_evaluate_loc_desc::get_tls_address)
14534 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14535 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14536 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14537 (dwarf2_compile_property_to_c)
14538 (dwarf2_loc_desc_get_symbol_read_needs)
14539 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14540 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14541 (loclist_describe_location, loclist_tracepoint_var_ref)
14542 (loclist_generate_c_location): Update.
14543 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14544 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14545 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14546 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14547 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14548 (dwarf2_per_cu_data::addr_size)
14549 (dwarf2_per_cu_data::ref_addr_size)
14550 (dwarf2_per_cu_data::text_offset)
14551 (dwarf2_per_cu_data::addr_type): Now methods.
14552 (per_cu_header_read_in): Make per_cu "const".
14553 (dwarf2_version): Remove.
14554 (dwarf2_per_cu_data::int_type): Now a method.
14555 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14556 (set_die_type, read_array_type, read_subrange_index_type)
14557 (read_tag_string_type, read_subrange_type): Update.
14558 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14559 offset_size, ref_addr_size, text_offset, addr_type, version,
14560 objfile, int_type, addr_sized_int_type>: Declare methods.
14561
14562 2020-02-08 Tom Tromey <tom@tromey.com>
14563
14564 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14565 Move earlier.
14566
14567 2020-02-08 Tom Tromey <tom@tromey.com>
14568
14569 * dwarf2/read.h (dwarf_line_debug): Declare.
14570 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14571 * dwarf2/read.c: Move line_header code to new files.
14572 (dwarf_line_debug): No longer static.
14573 * dwarf2/line-header.c: New file.
14574 * dwarf2/line-header.h: New file.
14575
14576 2020-02-08 Tom Tromey <tom@tromey.com>
14577
14578 * dwarf2/read.c (struct line_header) <file_full_name,
14579 file_file_name>: Return unique_xmalloc_ptr.
14580 (line_header::file_file_name): Update.
14581 (line_header::file_full_name): Update.
14582 (dw2_get_file_names_reader): Update.
14583 (macro_start_file): Update.
14584
14585 2020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2/read.c (struct line_header) <file_full_name,
14588 file_file_name>: Declare methods.
14589 (dw2_get_file_names_reader): Update.
14590 (file_file_name): Now a method.
14591 (file_full_name): Likewise.
14592 (macro_start_file): Update.
14593
14594 2020-02-08 Tom Tromey <tom@tromey.com>
14595
14596 * dwarf2/read.c (dwarf_always_disassemble)
14597 (show_dwarf_always_disassemble): Move to loc.c.
14598 (_initialize_dwarf2_read): Move "always-disassemble" registration
14599 to loc.c.
14600 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14601 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14602 static.
14603 (show_dwarf_always_disassemble): Move from read.c.
14604 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14605
14606 2020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14609 (create_quick_file_names_table): Return htab_up.
14610 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14611 Update.
14612 * dwarf2/read.h (struct dwarf2_per_objfile)
14613 <quick_file_names_table>: Now htab_up.
14614
14615 2020-02-08 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14618
14619 2020-02-08 Tom Tromey <tom@tromey.com>
14620
14621 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14622 Rewrite.
14623 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14624 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14625 (abbrev_table::abbrev_table): No longer inline.
14626 (ABBREV_HASH_SIZE): Remove.
14627 (abbrev_table::m_abbrevs): Now an htab_up.
14628
14629 2020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14632 (cutu_reader): Update.
14633 (build_type_psymtabs_1): Update.
14634 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14635 (abbrev_table::alloc_abbrev): Update.
14636 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14637 (abbrev_table::read): New static method, renamed from
14638 abbrev_table_read_table.
14639 (abbrev_table::alloc_abbrev)
14640 (abbrev_table::add_abbrev): Now private.
14641 (abbrev_table::abbrev_table): Now private.
14642 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14643
14644 2020-02-08 Tom Tromey <tom@tromey.com>
14645
14646 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14647 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14648 htab_up.
14649
14650 2020-02-08 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14653 htab_up.
14654 (lookup_dwo_unit_in_dwp): Update.
14655 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14656 on obstack.
14657
14658 2020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14661 obstack.
14662
14663 2020-02-08 Tom Tromey <tom@tromey.com>
14664
14665 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14666 line_header_hash.
14667 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14668 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14669 Change type to htab_up.
14670
14671 2020-02-08 Tom Tromey <tom@tromey.com>
14672
14673 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14674 htab_up. Don't allocate on obstack.
14675 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14676 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14677 Change type to htab_up.
14678
14679 2020-02-08 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14682 Change type to htab_up.
14683 * dwarf2/read.c (create_signatured_type_table_from_index)
14684 (create_signatured_type_table_from_debug_names)
14685 (create_all_type_units, add_type_unit)
14686 (lookup_dwo_signatured_type, lookup_signatured_type)
14687 (process_skeletonless_type_unit): Update.
14688 (create_debug_type_hash_table, create_debug_types_hash_table):
14689 Change type of types_htab.
14690 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14691 htab_up. Don't allocate on obstack.
14692 (create_cus_hash_table): Change type of cus_htab parameter.
14693 (struct dwo_file) <cus, tus>: Now htab_up.
14694 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14695 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14696 (queue_and_load_all_dwo_tus): Update.
14697 * dwarf2/index-write.c (write_gdbindex): Update.
14698 (write_debug_names): Update.
14699
14700 2020-02-08 Tom Tromey <tom@tromey.com>
14701
14702 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14703 dwarf2/read.c. Remove "next" member. Add constructor ntad
14704 destructor.
14705 (struct dwarf2_per_objfile) <queue>: New member.
14706 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14707 dwarf2/read.h.
14708 (dwarf2_queue, dwarf2_queue_tail): Remove.
14709 (class dwarf2_queue_guard): Add parameter to constructor. Use
14710 DISABLE_COPY_AND_ASSIGN.
14711 <m_per_objfile>: New member.
14712 <~dwarf2_queue_guard>: Rewrite.
14713 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14714 Update.
14715 (~dwarf2_queue_item): New.
14716
14717 2020-02-08 Tom Tromey <tom@tromey.com>
14718
14719 * dwarf2/read.c (struct die_info) <has_children>: New member.
14720 (dw2_get_file_names_reader): Remove has_children.
14721 (dw2_get_file_names): Update.
14722 (read_cutu_die_from_dwo): Remove has_children.
14723 (cutu_reader::init_tu_and_read_dwo_dies)
14724 (cutu_reader::cutu_reader): Update.
14725 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14726 Remove has_children.
14727 (build_type_psymtabs_1, process_skeletonless_type_unit)
14728 (load_partial_comp_unit, load_full_comp_unit): Update.
14729 (create_dwo_cu_reader): Remove has_children.
14730 (create_cus_hash_table, read_die_and_children): Update.
14731 (read_full_die_1,read_full_die): Remove has_children.
14732 (read_signatured_type): Update.
14733 (class cutu_reader) <has_children>: Remove.
14734
14735 2020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2/expr.c: Rename from dwarf2expr.c.
14738 * dwarf2/expr.h: Rename from dwarf2expr.h.
14739 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14740 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14741 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14742 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14743 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14744 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14745 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14746 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14747 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14748 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14749 * dwarf2/loc.c: Rename from dwarf2loc.c.
14750 * dwarf2/loc.h: Rename from dwarf2loc.h.
14751 * dwarf2/read.c: Rename from dwarf2read.c.
14752 * dwarf2/read.h: Rename from dwarf2read.h.
14753 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14754 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14755 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14756 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14757 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14758 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14759 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14760 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14761 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14762 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14763 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14764 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14765 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14766 Update.
14767 * Makefile.in (COMMON_SFILES): Update.
14768 (HFILES_NO_SRCDIR): Update.
14769
14770 2020-02-08 Tom Tromey <tom@tromey.com>
14771
14772 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14773 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14774
14775 2020-02-08 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2read.h (struct die_info): Don't declare.
14778
14779 2020-02-08 Tom Tromey <tom@tromey.com>
14780
14781 * dwarf2read.h (die_info_ptr): Remove typedef.
14782
14783 2020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2read.c (read_call_site_scope)
14786 (handle_data_member_location, dwarf2_add_member_fn)
14787 (mark_common_block_symbol_computed, read_common_block)
14788 (attr_to_dynamic_prop, partial_die_info::read)
14789 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14790 (dwarf2_symbol_mark_computed, set_die_type): Update.
14791 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14792 method.
14793 (attr_form_is_block): Don't declare.
14794 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14795
14796 2020-02-08 Tom Tromey <tom@tromey.com>
14797
14798 * dwarf2read.c (dwarf2_find_base_address, )
14799 (read_call_site_scope, rust_containing_type)
14800 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14801 (handle_data_member_location, dwarf2_add_member_fn)
14802 (get_alignment, read_structure_type, process_structure_scope)
14803 (mark_common_block_symbol_computed, read_common_block)
14804 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14805 (partial_die_info::read, read_attribute_value, new_symbol)
14806 (lookup_die_type, dwarf2_get_ref_die_offset)
14807 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14808 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14809 (dwarf2_symbol_mark_computed): Update.
14810 * dwarf2/attribute.h (struct attribute) <value_as_address,
14811 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14812 methods.
14813 (value_as_address, attr_form_is_section_offset)
14814 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14815 * dwarf2/attribute.c (attribute::value_as_address)
14816 (attribute::form_is_section_offset, attribute::form_is_constant)
14817 (attribute::form_is_ref): Now methods.
14818
14819 2020-02-08 Tom Tromey <tom@tromey.com>
14820
14821 * dwarf2read.c (struct attribute, DW_STRING)
14822 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14823 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14824 (attr_form_is_block, attr_form_is_section_offset)
14825 (attr_form_is_constant, attr_form_is_ref): Move.
14826 * dwarf2/attribute.h: New file.
14827 * dwarf2/attribute.c: New file, from dwarf2read.c.
14828 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14829
14830 2020-02-08 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14833 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14834 Move.
14835 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14836 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14837 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14838 abbrev.c.
14839 * dwarf2/abbrev.h: New file.
14840 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14841 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14842
14843 2020-02-08 Tom Tromey <tom@tromey.com>
14844
14845 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14846 (dwarf2_section_size, dwarf2_get_section_info)
14847 (create_signatured_type_table_from_debug_names)
14848 (create_addrmap_from_aranges, read_debug_names_from_section)
14849 (get_gdb_index_contents_from_section, read_comp_unit_head)
14850 (error_check_comp_unit_head, read_abbrev_offset)
14851 (create_debug_type_hash_table, init_cu_die_reader)
14852 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14853 (read_comp_units_from_section, create_cus_hash_table)
14854 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14855 (create_dwp_v2_section, dwarf2_rnglists_process)
14856 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14857 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14858 (read_indirect_string_from_dwz, read_addr_index_1)
14859 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14860 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14861 (fill_in_loclist_baton): Update.
14862 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14863 get_containing_section, get_bfd_owner, get_bfd_section,
14864 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14865 (dwarf2_read_section, get_section_name, get_section_file_name)
14866 (get_containing_section, get_section_bfd_owner)
14867 (get_section_bfd_section, get_section_name, get_section_file_name)
14868 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14869 declare.
14870 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14871 (dwarf2_section_info::get_bfd_owner)
14872 (dwarf2_section_info::get_bfd_section)
14873 (dwarf2_section_info::get_name)
14874 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14875 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14876 (dwarf2_section_info::read): Now methods.
14877 * dwarf-index-write.c (class debug_names): Update.
14878
14879 2020-02-08 Tom Tromey <tom@tromey.com>
14880
14881 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14882 Move to dwarf2/section.h.
14883 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14884 (get_section_bfd_section, get_section_name)
14885 (get_section_file_name, get_section_id, get_section_flags)
14886 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14887 dwarf2/section.c.
14888 * dwarf2/section.h: New file.
14889 * dwarf2/section.c: New file, from dwarf2read.c.
14890 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14891
14892 2020-02-08 Tom Tromey <tom@tromey.com>
14893
14894 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14895 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14896 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14897 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14898 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14899 * dwarf2/leb.h: New file, from dwarf2read.c.
14900 * dwarf2/leb.c: New file, from dwarf2read.c.
14901 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14902 Remove.
14903 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14904 (COMMON_SFILES): Add dwarf2/leb.c.
14905
14906 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14907
14908 GDB 9.1 released.
14909
14910 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14911
14912 PR gdb/25190:
14913 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14914 * gdb/remote.c (remote_console_output): Update.
14915 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14916 (ui_file_puts): ...this.
14917 * gdb/ui-file.h (ui_file_puts): Add declaration.
14918 * gdb/utils.c (emit_style_escape): Update.
14919 (flush_wrap_buffer): Update.
14920 (fputs_maybe_filtered): Update.
14921 (fputs_unfiltered): Add function.
14922
14923 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14924
14925 * gdb/event-loop.c (gdb_wait_for_event): Update.
14926 * gdb/printcmd.c (printf_command): Update.
14927 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14928 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14929 (gdb_os_flush_stderr): Update.
14930 * gdb/remote.c (remote_console_output): Update.
14931 * gdb/ui-file.c (gdb_flush): Rename to...
14932 (ui_file_flush): ...this.
14933 (stderr_file::write): Update.
14934 (stderr_file::puts): Update.
14935 * gdb/ui-file.h (gdb_flush): Rename to...
14936 (ui_file_flush): ...this.
14937 * gdb/utils.c (gdb_flush): Add function.
14938 * gdb/utils.h (gdb_flush): Add declaration.
14939
14940 2020-02-07 Tom Tromey <tromey@adacore.com>
14941
14942 PR breakpoints/24915:
14943 * source.c (find_and_open_source): Do not check basenames_may_differ.
14944
14945 2020-02-07 Tom Tromey <tom@tromey.com>
14946
14947 * README: Update gdbserver documentation.
14948 * gdbserver: Move to top level.
14949 * configure.tgt (build_gdbserver): Remove.
14950 * configure.ac: Remove --enable-gdbserver.
14951 * configure: Rebuild.
14952 * Makefile.in (distclean): Don't mention gdbserver.
14953
14954 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14955
14956 * source-cache.c (source_cache::ensure): Surround
14957 get_plain_source_lines with a try/catch.
14958 (source_cache::get_line_charpos): Get rid of try/catch
14959 and only check for the return value of "ensure".
14960 * tui/tui-source.c (tui_source_window::set_contents):
14961 Simplify "nlines" calculation.
14962
14963 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14964
14965 * MAINTAINERS (Write After Approval): Add myself.
14966
14967 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14968
14969 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14970 function call.
14971
14972 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14973
14974 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14975
14976 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14977
14978 * nat/riscv-linux-tdesc.h: New file.
14979 * nat/riscv-linux-tdesc.c: New file, taking code from...
14980 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14981 ... here.
14982 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14983 NATDEPFILES.
14984
14985 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14986
14987 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14988 we don't set the fake simulator ptid to the null_ptid.
14989
14990 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14991
14992 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14993 * gdbthread.h (class thread_info) <resumed>: Likewise.
14994 * infrun.c (resume_1): Likewise.
14995 (proceed): Likewise.
14996 (infrun_thread_stop_requested): Likewise.
14997 (stop_all_threads): Likewise.
14998 (handle_inferior_event): Likewise.
14999 (restart_threads): Likewise.
15000 (finish_step_over): Likewise.
15001 (keep_going_stepped_thread): Likewise.
15002 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15003 (linux_handle_extended_wait): Likewise.
15004 * record-btrace.c (get_thread_current_frame_id): Likewise.
15005 * record-full.c (record_full_wait_1): Likewise.
15006 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15007 * target.c (target_resume): Likewise.
15008 * thread.c (set_running_thread): Likewise.
15009
15010 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15011
15012 * f-valprint.c (f77_print_array_1): Changed datatype of index
15013 variable to LONGEST from int to enable it to contain bound
15014 values correctly.
15015
15016 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15017
15018 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15019 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15020 offsets according to FLEN determined.
15021 (riscv_linux_nat_target::read_description): Determine FLEN
15022 dynamically.
15023 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15024 according to FLEN determined.
15025 (riscv_linux_nat_target::store_registers): Likewise.
15026
15027 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15028
15029 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15030 when reg->group is empty and reggroup is not.
15031
15032 2020-01-31 Tom Tromey <tromey@adacore.com>
15033
15034 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15035 Call beneath target's mourn_inferior after unpushing.
15036
15037 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15038
15039 PR tui/9765
15040 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15041 have enough lines to fill the screen, still return the lowest
15042 address we found.
15043
15044 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15045
15046 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15047 '-', '<', and '>' commands.
15048
15049 2020-01-29 Pedro Alves <palves@redhat.com>
15050 Sergio Durigan Junior <sergiodj@redhat.com>
15051
15052 * infcmd.c (construct_inferior_arguments): Assert that
15053 'argc' is greater than 0.
15054
15055 2020-01-29 Luis Machado <luis.machado@linaro.org>
15056
15057 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15058 (BRK_INSN_MASK): Define to 0xd4200000.
15059 (aarch64_program_breakpoint_here_p): New function.
15060 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15061 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15062 breakpoint.c.
15063 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15064 breakpoint.h
15065 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15066 call gdbarch_program_breakpoint_here_p.
15067 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15068 default_program_breakpoint_here_p, changed return type to bool and
15069 simplified.
15070 * breakpoint.h (program_breakpoint_here): Moved prototype to
15071 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15072 return type to bool.
15073 * gdbarch.c: Regenerate.
15074 * gdbarch.h: Regenerate.
15075 * gdbarch.sh (program_breakpoint_here_p): New method.
15076 * infrun.c (handle_signal_stop): Call
15077 gdbarch_program_breakpoint_here_p.
15078
15079 2020-01-26 Tom Tromey <tom@tromey.com>
15080
15081 * ctfread.c (struct ctf_fp_info): Reindent.
15082 (_initialize_ctfread): Remove.
15083
15084 2020-01-26 Tom Tromey <tom@tromey.com>
15085
15086 * psymtab.c (partial_map_expand_apply)
15087 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15088 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15089 (psym_print_stats, psym_expand_symtabs_for_function)
15090 (psym_map_symbol_filenames, psym_map_matching_symbols)
15091 (psym_expand_symtabs_matching)
15092 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15093 (maintenance_check_psymtabs): Use new methods.
15094 * psympriv.h (struct partial_symtab) <readin_p,
15095 get_compunit_symtab>: New methods.
15096 <readin, compunit_symtab>: Remove members.
15097 (struct standard_psymtab): New.
15098 (struct legacy_psymtab): Derive from standard_psymtab.
15099 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15100 standard_psymtab.
15101 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15102
15103 2020-01-26 Tom Tromey <tom@tromey.com>
15104
15105 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15106 read_dependencies. Add assert.
15107 * psymtab.c (partial_symtab::read_dependencies): New method.
15108 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15109 method.
15110 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15111 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15112 read_dependencies.
15113 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15114 Add assert.
15115
15116 2020-01-26 Tom Tromey <tom@tromey.com>
15117
15118 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15119 Call expand_psymtab.
15120 (xcoff_read_symtab): Call expand_psymtab.
15121 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15122 legacy_expand_psymtab.
15123 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15124 method.
15125 (struct legacy_psymtab) <expand_psymtab>: Implement.
15126 <legacy_expand_psymtab>: New member.
15127 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15128 (parse_partial_symbols): Set legacy_expand_psymtab.
15129 (psymtab_to_symtab_1): Change argument order. Call
15130 expand_psymtab.
15131 (new_psymtab): Set legacy_expand_psymtab.
15132 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15133 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15134 expand_psymtab.
15135 (dwarf2_psymtab::expand_psymtab): Rename from
15136 psymtab_to_symtab_1. Call expand_psymtab.
15137 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15138 (dbx_end_psymtab): Likewise.
15139 (dbx_psymtab_to_symtab_1): Change argument order. Call
15140 expand_psymtab.
15141 (dbx_read_symtab): Call expand_psymtab.
15142 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15143 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15144 (ctf_psymtab::read_symtab): Call expand_psymtab.
15145
15146 2020-01-26 Tom Tromey <tom@tromey.com>
15147
15148 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15149 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15150 messages.
15151 * mdebugread.c (mdebug_read_symtab): Remove prints.
15152 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15153 assert.
15154 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15155
15156 2020-01-26 Tom Tromey <tom@tromey.com>
15157
15158 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15159 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15160 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15161 legacy_symtab.
15162 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15163 * psymtab.c (psymtab_to_symtab): Call method.
15164 (dump_psymtab): Update.
15165 * psympriv.h (struct partial_symtab): Add virtual destructor.
15166 <read_symtab>: New method.
15167 (struct legacy_symtab): New.
15168 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15169 (struct pst_map) <pst>: Now a legacy_psymtab.
15170 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15171 (new_psymtab): Use legacy_psymtab.
15172 * dwarf2read.h (struct dwarf2_psymtab): New.
15173 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15174 * dwarf2read.c (dwarf2_create_include_psymtab)
15175 (dwarf2_build_include_psymtabs, create_type_unit_group)
15176 (create_partial_symtab, process_psymtab_comp_unit_reader)
15177 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15178 (set_partial_user): Use dwarf2_psymtab.
15179 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15180 (psymtab_to_symtab_1, process_full_comp_unit)
15181 (process_full_type_unit, dwarf2_ranges_read)
15182 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15183 (dwarf_decode_lines): Use dwarf2_psymtab.
15184 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15185 (add_address_entry_worker, write_one_signatured_type)
15186 (recursively_count_psymbols, recursively_write_psymbols)
15187 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15188 (write_debug_names): Likewise.
15189 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15190 <pst>: Now a legacy_psymtab.
15191 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15192 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15193 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15194 * ctfread.c (struct ctf_psymtab): New.
15195 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15196 ctf_psymtab.
15197 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15198 (create_partial_symtab): Return a ctf_psymtab.
15199 (scan_partial_symbols): Update.
15200
15201 2020-01-26 Tom Tromey <tom@tromey.com>
15202
15203 * xcoffread.c (xcoff_start_psymtab): Use new.
15204 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15205 renamed from start_psymtab_common.
15206 * psympriv.h (struct partial_symtab): Add new constructor.
15207 (start_psymtab_common): Don't declare.
15208 * mdebugread.c (parse_partial_symbols): Use new.
15209 * dwarf2read.c (create_partial_symtab): Use new.
15210 * dbxread.c (start_psymtab): Use new.
15211 * ctfread.c (create_partial_symtab): Use new.
15212
15213 2020-01-26 Tom Tromey <tom@tromey.com>
15214
15215 * xcoffread.c (xcoff_end_psymtab): Use new.
15216 * psymtab.c (start_psymtab_common): Use new.
15217 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15218 Update.
15219 * psympriv.h (struct partial_symtab): Add parameters to
15220 constructor. Don't inline.
15221 (allocate_psymtab): Don't declare.
15222 * mdebugread.c (new_psymtab): Use new.
15223 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15224 * dbxread.c (dbx_end_psymtab): Use new.
15225
15226 2020-01-26 Tom Tromey <tom@tromey.com>
15227
15228 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15229 allocate_psymtab. Update documentation.
15230 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15231 allocate_psymtab. Do not use new.
15232 (allocate_psymtab): Use new. Update.
15233
15234 2020-01-26 Tom Tromey <tom@tromey.com>
15235
15236 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15237 * psymtab.c (psym_print_stats): Update.
15238 * psympriv.h (struct partial_symtab) <readin,
15239 psymtabs_addrmap_supported, anonymous>: Now bool.
15240 * mdebugread.c (psymtab_to_symtab_1): Update.
15241 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15242 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15243 (process_full_comp_unit, process_full_type_unit): Update.
15244 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15245 * ctfread.c (psymtab_to_symtab): Update.
15246
15247 2020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15250 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15251 * psymtab.c (psymtab_storage): Delete psymtabs.
15252 (psymtab_storage::allocate_psymtab): Use new.
15253 (psymtab_storage::discard_psymtab): Use delete.
15254 * psympriv.h (struct partial_symtab): Add constructor and
15255 initializers.
15256
15257 2020-01-26 Tom Tromey <tom@tromey.com>
15258
15259 * machoread.c: Do not include psympriv.h.
15260
15261 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15262
15263 * NEWS: Mention the new option and the set/show commands.
15264
15265 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15266
15267 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15268 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15269 (validate_exec_file): New variables, enums, functions.
15270 (exec_file_locate_attach, print_section_info): Style the filenames.
15271 (_initialize_exec): Install show_exec_file_mismatch_command and
15272 set_exec_file_mismatch_command.
15273 * gdbcore.h (validate_exec_file): Declare.
15274 * infcmd.c (attach_command): Call validate_exec_file.
15275 * remote.c ( remote_target::remote_add_inferior): Likewise.
15276
15277 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15278
15279 * frame.c (find_frame_sal): Move call to get_next_frame into more
15280 inner scope.
15281 * inline-frame.c (inilne_state) <inline_state>: Update argument
15282 types.
15283 (inilne_state) <skipped_symbol>: Rename to...
15284 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15285 (skip_inline_frames): Build vector of skipped symbols and use this
15286 to reate the inline_state.
15287 (inline_skipped_symbol): Add a comment and some assertions, fetch
15288 skipped symbol from the list.
15289
15290 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15291
15292 * buildsym.c (lte_is_less_than): Delete.
15293 (buildsym_compunit::end_symtab_with_blockvector): Create local
15294 lambda function to sort line table entries, and use
15295 std::stable_sort instead of std::sort.
15296 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15297 markers when looking for a previous line.
15298
15299 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15300
15301 * dwarf2read.c (lnp_state_machine::record_line): Include
15302 end_sequence parameter in debug print out. Record the line if we
15303 are at an end_sequence marker even if it's not the start of a
15304 statement.
15305 * symmisc.c (maintenance_print_one_line_table): Print end of
15306 sequence markers with 'END' not '0'.
15307
15308 2020-01-24 Pedro Alves <palves@redhat.com>
15309
15310 PR gdb/25410
15311 * thread.c (scoped_restore_current_thread::restore): Use
15312 switch_to_inferior_no_thread.
15313 * exec.c: Include "progspace-and-thread.h".
15314 (add_target_sections, remove_target_sections):
15315 scoped_restore_current_pspace_and_thread instead of
15316 scoped_restore_current_thread.
15317 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15318 and aspace to the inferior before calling clone_program_space.
15319 Remove stale comment.
15320
15321 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15322
15323 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15324 (arm_netbsd_nat_target::fetch_registers): ...this.
15325 (arm_nbsd_nat_target::store_registers): Rename to...
15326 (arm_netbsd_nat_target::store_registers): ...this.
15327
15328 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15329
15330 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15331 register_t.
15332
15333 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15334
15335 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15336 Update comment.
15337 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15338 Likewise.
15339 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15340 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15341 the correct replacement (iterate_over_regset_sections).
15342 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15343 Update comment.
15344
15345 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15346
15347 PR gdb/23718
15348 * gdb/python/python.c (execute_gdb_command): Call
15349 async_enable_stdin in catch block.
15350
15351 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15352
15353 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15354 SWITCH_THRU_ALL_UIS.
15355
15356 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15357
15358 PR tui/9765
15359 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15360 comment, add extra parameter, and update to store previous symbol
15361 when appropriate.
15362 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15363 add extra parameter.
15364 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15365 remove unneeded parameter, add try/catch around gdb_print_insn,
15366 rewrite to add items to asm_lines vector.
15367 (tui_find_backward_disassembly_start_address): New function.
15368 (tui_find_disassembly_address): Updated throughout.
15369 (tui_disasm_window::set_contents): Update for changes to
15370 tui_disassemble.
15371 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15372 number of lines to scroll.
15373
15374 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15375
15376 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15377 (SECT_OFF_DATA): Likewise.
15378 (SECT_OFF_RODATA): Likewise.
15379 (SECT_OFF_TEXT): Likewise.
15380 (SECT_OFF_BSS): Likewise.
15381 (struct objfile) <text_section_offset, data_section_offset>: New
15382 methods.
15383 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15384 objfile::text_section_offset.
15385 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15386 * coffread.c (coff_symtab_read): Likewise.
15387 (enter_linenos): Likewise.
15388 (process_coff_symbol): Likewise.
15389 * ctfread.c (get_objfile_text_range): Likewise.
15390 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15391 Use objfile::data_section_offset.
15392 * dwarf2-frame.c (execute_cfa_program): Use
15393 objfile::text_section_offset.
15394 (dwarf2_frame_find_fde): Likewise.
15395 * dwarf2read.c (create_addrmap_from_index): Likewise.
15396 (create_addrmap_from_aranges): Likewise.
15397 (dw2_find_pc_sect_compunit_symtab): Likewise.
15398 (process_psymtab_comp_unit_reader): Likewise.
15399 (add_partial_symbol): Likewise.
15400 (add_partial_subprogram): Likewise.
15401 (process_full_comp_unit): Likewise.
15402 (read_file_scope): Likewise.
15403 (read_func_scope): Likewise.
15404 (read_lexical_block_scope): Likewise.
15405 (read_call_site_scope): Likewise.
15406 (dwarf2_rnglists_process): Likewise.
15407 (dwarf2_ranges_process): Likewise.
15408 (dwarf2_ranges_read): Likewise.
15409 (dwarf_decode_lines_1): Likewise.
15410 (new_symbol): Likewise.
15411 (dwarf2_fetch_die_loc_sect_off): Likewise.
15412 (dwarf2_per_cu_text_offset): Likewise.
15413 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15414 * hppa-tdep.c (read_unwind_info): Likewise.
15415 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15416 * psympriv.h (struct partial_symtab): Likewise.
15417 * psymtab.c (find_pc_sect_psymtab): Likewise.
15418 * solib-svr4.c (enable_break): Likewise.
15419 * stap-probe.c (relocate_address): Use
15420 objfile::data_section_offset.
15421 * xcoffread.c (enter_line_range): Use
15422 objfile::text_section_offset.
15423 (read_xcoff_symtab): Likewise.
15424
15425 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15426
15427 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15428 declaration to narrower scopes.
15429
15430 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15431
15432 * darwin-nat.h (struct darwin_exception_msg, enum
15433 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15434 Move up.
15435 (class darwin_nat_target) <wait_1, check_new_threads,
15436 decode_exception_message, decode_message, stop_inferior,
15437 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15438 * darwin-nat.c (darwin_check_new_threads): Rename to...
15439 (darwin_nat_target::check_new_threads): ... this.
15440 (darwin_suspend_inferior_it): Remove.
15441 (darwin_decode_exception_message): Rename to...
15442 (darwin_nat_target::decode_exception_message): ... this.
15443 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15444 (darwin_decode_message): Rename to...
15445 (darwin_nat_target::decode_message): ... this.
15446 (cancel_breakpoint): Rename to...
15447 (darwin_nat_target::cancel_breakpoint): ... this.
15448 (darwin_wait): Rename to...
15449 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15450 instead of iterate_over_inferiors.
15451 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15452 (darwin_stop_inferior): Rename to...
15453 (darwin_nat_target::stop_inferior): ... this.
15454 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15455 (darwin_init_thread_list): Rename to...
15456 (darwin_nat_target::init_thread_list): ... this.
15457 (darwin_ptrace_him): Rename to...
15458 (darwin_nat_target::ptrace_him): ... this.
15459 (darwin_nat_target::create_inferior): Pass lambda function to
15460 fork_inferior.
15461 (darwin_nat_target::detach): Call stop_inferior instead of
15462 darwin_stop_inferior.
15463 * fork-inferior.h (fork_inferior): Change init_trace_fun
15464 parameter to gdb::function_view.
15465 * fork-inferior.c (fork_inferior): Likewise.
15466
15467 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15468
15469 * i386-cygwin-tdep.c (core_process_module_section): Update.
15470 * windows-nat.c (struct lm_info_windows): Add text_offset.
15471 (windows_xfer_shared_libraries): Update.
15472 * windows-tdep.c (windows_xfer_shared_library):
15473 Add text_offset_cached argument.
15474 * windows-tdep.h (windows_xfer_shared_library): Update.
15475
15476 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15477
15478 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15479
15480 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15481
15482 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15483 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15484 replace with range-based for.
15485 (gdbsim_interrupt_inferior): Remove.
15486 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15487 with a range-based for. Inline code from
15488 gdbsim_interrupt_inferior.
15489
15490 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15491
15492 * infrun.c (proceed): Fix indentation.
15493
15494 2020-01-21 Tom Tromey <tromey@adacore.com>
15495
15496 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15497 * python/python.c (python_extension_ops): Update.
15498 (gdbpy_colorize): New function.
15499 * python/lib/gdb/__init__.py (colorize): New function.
15500 * extension.h (ext_lang_colorize): Declare.
15501 * extension.c (ext_lang_colorize): New function.
15502 * extension-priv.h (struct extension_language_ops) <colorize>: New
15503 member.
15504 * cli/cli-style.c (_initialize_cli_style): Update help text.
15505
15506 2020-01-21 Luis Machado <luis.machado@linaro.org>
15507
15508 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15509 <cond>: Change type to bool.
15510 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15511 (aarch64_displaced_step_cb): Likewise.
15512 (aarch64_displaced_step_tb): Likewise.
15513
15514 2020-01-21 Luis Machado <luis.machado@linaro.org>
15515
15516 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15517 output.
15518
15519 2020-01-21 Luis Machado <luis.machado@linaro.org>
15520
15521 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15522 <pc_adjust>: Adjust the documentation.
15523 (aarch64_displaced_step_fixup): Check if PC really moved before
15524 adjusting it.
15525
15526 2020-01-19 Tom Tromey <tom@tromey.com>
15527
15528 * disasm.c (~gdb_disassembler): New destructor.
15529 (gdb_buffered_insn_length): Call disassemble_free_target.
15530 * disasm.h (class gdb_disassembler): Declare destructor. Use
15531 DISABLE_COPY_AND_ASSIGN.
15532
15533 2020-01-19 Tom Tromey <tom@tromey.com>
15534
15535 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15536 (die_reader_func_ftype): Remove.
15537 (cutu_reader): New class.
15538 (dw2_get_file_names_reader): Remove "data" parameter.
15539 (dw2_get_file_names): Use cutu_reader.
15540 (create_debug_type_hash_table): Update.
15541 (read_cutu_die_from_dwo): Update comment.
15542 (lookup_dwo_unit): Add dwo_name parameter.
15543 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15544 die_reader_func_ftype and data parameters.
15545 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15546 Remove die_reader_func_ftype and data parameters.
15547 (~cutu_reader): New; from init_cutu_and_read_dies.
15548 (cutu_reader::cutu_reader): Rename from
15549 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15550 and data parameters.
15551 (init_cutu_and_read_dies_simple): Remove.
15552 (struct process_psymtab_comp_unit_data): Remove.
15553 (process_psymtab_comp_unit_reader): Remove data parameter; add
15554 want_partial_unit and pretend_language parameters.
15555 (process_psymtab_comp_unit): Use cutu_reader.
15556 (build_type_psymtabs_reader): Remove data parameter.
15557 (build_type_psymtabs_1): Use cutu_reader.
15558 (process_skeletonless_type_unit): Likewise.
15559 (load_partial_comp_unit_reader): Remove.
15560 (load_partial_comp_unit): Use cutu_reader.
15561 (load_full_comp_unit_reader): Remove.
15562 (load_full_comp_unit): Use cutu_reader.
15563 (struct create_dwo_cu_data): Remove.
15564 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15565 dwo_unit parameters.
15566 (create_cus_hash_table): Use cutu_reader.
15567 (struct dwarf2_read_addr_index_data): Remove.
15568 (dwarf2_read_addr_index_reader): Remove.
15569 (dwarf2_read_addr_index): Use cutu_reader.
15570 (read_signatured_type_reader): Remove.
15571 (read_signatured_type): Use cutu_reader.
15572
15573 2020-01-19 Tom Tromey <tom@tromey.com>
15574
15575 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15576 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15577 (tui_wrefresh): Declare.
15578 * tui/tui-wingeneral.c (suppress_output): New global.
15579 (tui_suppress_output, ~tui_suppress_output): New constructor and
15580 destructor.
15581 (tui_wrefresh): New function.
15582 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15583 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15584 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15585 method.
15586 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15587 tui_wrefresh.
15588 (tui_data_window::no_refresh): New method.
15589 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15590 (tui_reg_command): Use tui_suppress_output
15591 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15592 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15593 method.
15594 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15595
15596 2020-01-19 Tom Tromey <tom@tromey.com>
15597
15598 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15599 Handle case where symtab is null.
15600
15601 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15602
15603 * linux-fork.c (one_fork_p): Simplify.
15604
15605 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15606
15607 * top.c (struct qt_args): Remove.
15608 (kill_or_detach): Change return type to void, replace `void *`
15609 parameter with a proper one.
15610 (print_inferior_quit_action): Likewise.
15611 (quit_confirm): Use range-based for loop to iterate over inferiors.
15612 (quit_force): Likewise.
15613
15614 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15615
15616 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15617 `void *` parameter with proper parameters.
15618 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15619 (print_one_inferior): Change return type to void, replace `void *`
15620 parameter with proper parameters.
15621 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15622 inferiors.
15623 (get_other_inferior): Remove.
15624 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15625 inferiors.
15626
15627 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15628
15629 * mi/mi-interp.c (report_initial_inferior): Remove.
15630 (mi_interp::init): Use range-based for to iterate over inferiors.
15631
15632 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15633
15634 * python/py-inferior.c (build_inferior_list): Remove.
15635 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15636
15637 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15638
15639 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15640 (btrace_stitch_trace): Likewise.
15641 * charset.c (intermediate_encoding): Likewise (vaild).
15642 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15643 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15644 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15645
15646 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15647
15648 * windows-tdep.c (windows_get_tlb_type):
15649 Add rtl_user_process_parameters type.
15650
15651 2020-01-16 Pedro Alves <palves@redhat.com>
15652 Norbert Lange <nolange79@gmail.com>
15653
15654 PR build/24805
15655 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15656 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15657 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15658 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15659 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15660 (ps_plog): Redeclare exported functions with default visibility.
15661
15662 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15663
15664 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15665 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15666
15667 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15668
15669 * infcmd.c (post_create_inferior): Use get_thread_regcache
15670 instead of get_current_regcache.
15671
15672 2020-01-14 Tom Tromey <tom@tromey.com>
15673
15674 PR symtab/12535:
15675 * python/python.c (gdbpy_decode_line): Treat empty string the same
15676 as no argument.
15677
15678 2020-01-14 Tom Tromey <tom@tromey.com>
15679
15680 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15681
15682 2020-01-14 Tom Tromey <tom@tromey.com>
15683
15684 * nat/linux-btrace.c: Don't include <config.h>.
15685 * nat/linux-ptrace.c: Don't include <config.h>.
15686 * nat/x86-linux-dregs.c: Don't include <config.h>.
15687
15688 2020-01-14 Tom Tromey <tom@tromey.com>
15689
15690 * configure: Rebuild.
15691 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15692
15693 2020-01-14 Tom Tromey <tom@tromey.com>
15694
15695 * nat/x86-linux-dregs.c: Include configh.h.
15696 * nat/linux-ptrace.c: Include configh.h.
15697 * nat/linux-btrace.c: Include configh.h.
15698 * defs.h: Include config.h, bfd.h.
15699 * configure.ac: Don't source common.host.
15700 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15701 * configure: Rebuild.
15702 * acinclude.m4: Update path.
15703 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15704 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15705 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15706 (CLIBS): Add LIBSUPPORT.
15707 (CDEPS): Likewise.
15708 (COMMON_SFILES): Remove gdbsupport files.
15709 (HFILES_NO_SRCDIR): Likewise.
15710 (stamp-version): Update path to create-version.sh.
15711 (ALLDEPFILES): Remove gdbsupport files.
15712
15713 2020-01-14 Tom Tromey <tom@tromey.com>
15714
15715 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15716 USE_WIN32API when needed.
15717 * configure.ac (USE_WIN32API): Don't define.
15718 (WIN32LIBS): Use WIN32APILIBS.
15719 * configure: Rebuild.
15720
15721 2020-01-14 Tom Tromey <tom@tromey.com>
15722
15723 * configure: Rebuild.
15724 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15725
15726 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15727
15728 * skip.c (skip_function_command): Make skip w/o arguments use the
15729 name of the inlined function if pc is inside any inlined function.
15730
15731 2020-01-14 Luis Machado <luis.machado@linaro.org>
15732
15733 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15734 * infrun.c (resume_1): Likewise.
15735 (handle_inferior_event): Remove stale comment.
15736 * linux-nat.c (linux_nat_target::resume): Update comments.
15737 (save_stop_reason): Likewise.
15738 (linux_nat_filter_event): Likewise.
15739 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15740
15741 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15742
15743 * elfread.c (record_minimal_symbol): Set section index to 0 for
15744 non-allocatable sections.
15745
15746
15747 2020-01-13 Ali Tamur <tamur@google.com>
15748
15749 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15750 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15751 to gdb::optional. Update comments.
15752 (dwo_file): Update comments.
15753 (read_attribute): Update API to take an additional out parameter,
15754 need_reprocess. This is used to mark attributes that need other
15755 attributes (e.g. str_offsets_base) for correct computation which may not
15756 have been read yet.
15757 (read_attribute_reprocess): New function declaration.
15758 (read_addr_index): Likewise.
15759 (read_dwo_str_index): Likewise.
15760 (read_stub_str_index): Likewise.
15761 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15762 (lookup_addr_base): New function definition.
15763 (lookup_ranges_base): Likewise.
15764 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15765 lookup_ranges_base.
15766 (init_cutu_and_read_dies): Update comments.
15767 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15768 unit. This is used to inherit parent's str_offsets_base and addr_base.
15769 Update comments.
15770 (init_cutu_and_read_dies_simple): Reflect API changes.
15771 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15772 (create_cus_hash_table): Change API to take parent compile unit.
15773 Reflect API changes.
15774 (open_and_init_dwo_file): Reflect API changes.
15775 (dwarf2_get_pc_bounds): Update comments.
15776 (dwarf2_record_block_ranges): Likewise.
15777 (read_full_die_1): Change implementation to reprocess attributes that
15778 need str_offsets_base and addr_base.
15779 (partial_die_info::read): Likewise.
15780 (read_attribute_reprocess): New function definition.
15781 (read_attribute_value): Change API to take an additional out parameter,
15782 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15783 when a non-dwo compile unit has index based attributes.
15784 (read_attribute): Reflect API changes.
15785 (read_addr_index_1): Reflect API changes. Update comments.
15786 (dwarf2_read_addr_index_data): Reflect API changes.
15787 (dwarf2_read_addr_index): Likewise.
15788 (read_str_index): Change API and implementation. This becomes a helper
15789 to be used by the new string index related methods. Update error
15790 message and comments.
15791 (read_dwo_str_index): New function definition.
15792 (read_stub_str_index): Likewise.
15793 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15794 * symfile.h (dwarf2_debug_sections): Likewise.
15795 * xcoffread.c (dwarf2_debug_sections): Likewise.
15796
15797 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15798
15799 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15800 core_reg_sect type to gdb_byte *.
15801 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15802 * cris-tdep.c (fetch_core_registers): Likewise.
15803 * corelow.c (core_target::get_core_register_section): Change
15804 type of `contents` to gdb::byte_vector.
15805
15806 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15807
15808 * tui/tui-wingeneral.c (box_win): Position the title in the center
15809 of the border.
15810
15811 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15812
15813 * corelow.c (core_target::get_core_register_section): Use
15814 std::vector instead of alloca.
15815
15816 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15817
15818 * warning.m4: Add -Wmissing-declarations to build_warnings.
15819 * configure: Re-generate.
15820
15821 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15822
15823 * python/python.c (init__gdb_module): Add declaration.
15824
15825 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15826
15827 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15828 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15829 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15830 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15831 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15832 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15833 * ada-exp.y (_initialize_ada_exp): Add declaration.
15834 * ada-lang.c (_initialize_ada_language): Add declaration.
15835 * ada-tasks.c (_initialize_tasks): Add declaration.
15836 * agent.c (_initialize_agent): Add declaration.
15837 * aix-thread.c (_initialize_aix_thread): Add declaration.
15838 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15839 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15840 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15841 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15842 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15843 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15844 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15845 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15846 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15847 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15848 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15849 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15850 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15851 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15852 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15853 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15854 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15855 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15856 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15857 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15858 * annotate.c (_initialize_annotate): Add declaration.
15859 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15860 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15861 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15862 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15863 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15864 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15865 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15866 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15867 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15868 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15869 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15870 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15871 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15872 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15873 * auto-load.c (_initialize_auto_load): Add declaration.
15874 * auxv.c (_initialize_auxv): Add declaration.
15875 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15876 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15877 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15878 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15879 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15880 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15881 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15882 * breakpoint.c (_initialize_breakpoint): Add declaration.
15883 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15884 * btrace.c (_initialize_btrace): Add declaration.
15885 * charset.c (_initialize_charset): Add declaration.
15886 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15887 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15888 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15889 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15890 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15891 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15892 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15893 * coffread.c (_initialize_coffread): Add declaration.
15894 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15895 * compile/compile.c (_initialize_compile): Add declaration.
15896 * complaints.c (_initialize_complaints): Add declaration.
15897 * completer.c (_initialize_completer): Add declaration.
15898 * copying.c (_initialize_copying): Add declaration.
15899 * corefile.c (_initialize_core): Add declaration.
15900 * corelow.c (_initialize_corelow): Add declaration.
15901 * cp-abi.c (_initialize_cp_abi): Add declaration.
15902 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15903 * cp-support.c (_initialize_cp_support): Add declaration.
15904 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15905 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15906 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15907 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15908 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15909 * ctfread.c (_initialize_ctfread): Add declaration.
15910 * d-lang.c (_initialize_d_language): Add declaration.
15911 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15912 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15913 * dbxread.c (_initialize_dbxread): Add declaration.
15914 * dcache.c (_initialize_dcache): Add declaration.
15915 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15916 * disasm.c (_initialize_disasm): Add declaration.
15917 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15918 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15919 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15920 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15921 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15922 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15923 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15924 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15925 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15926 * elfread.c (_initialize_elfread): Add declaration.
15927 * exec.c (_initialize_exec): Add declaration.
15928 * extension.c (_initialize_extension): Add declaration.
15929 * f-lang.c (_initialize_f_language): Add declaration.
15930 * f-valprint.c (_initialize_f_valprint): Add declaration.
15931 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15932 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15933 * filesystem.c (_initialize_filesystem): Add declaration.
15934 * findcmd.c (_initialize_mem_search): Add declaration.
15935 * findvar.c (_initialize_findvar): Add declaration.
15936 * fork-child.c (_initialize_fork_child): Add declaration.
15937 * frame-base.c (_initialize_frame_base): Add declaration.
15938 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15939 * frame.c (_initialize_frame): Add declaration.
15940 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15941 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15942 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15943 * gcore.c (_initialize_gcore): Add declaration.
15944 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15945 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15946 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15947 * gdbarch.c (_initialize_gdbarch): Add declaration.
15948 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15949 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15950 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15951 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15952 * go-lang.c (_initialize_go_language): Add declaration.
15953 * go32-nat.c (_initialize_go32_nat): Add declaration.
15954 * guile/guile.c (_initialize_guile): Add declaration.
15955 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15956 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15957 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15958 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15959 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15960 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15961 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15962 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15963 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15964 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15965 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15966 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15967 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15968 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15969 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15970 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15971 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15972 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15973 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15974 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15975 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15976 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15977 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15978 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15979 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15980 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15981 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15982 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15983 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15984 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15985 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15986 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15987 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15988 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15989 * infcall.c (_initialize_infcall): Add declaration.
15990 * infcmd.c (_initialize_infcmd): Add declaration.
15991 * inflow.c (_initialize_inflow): Add declaration.
15992 * infrun.c (_initialize_infrun): Add declaration.
15993 * interps.c (_initialize_interpreter): Add declaration.
15994 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15995 * jit.c (_initialize_jit): Add declaration.
15996 * language.c (_initialize_language): Add declaration.
15997 * linux-fork.c (_initialize_linux_fork): Add declaration.
15998 * linux-nat.c (_initialize_linux_nat): Add declaration.
15999 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16000 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16001 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16002 * m2-lang.c (_initialize_m2_language): Add declaration.
16003 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16004 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16005 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16006 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16007 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16008 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16009 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16010 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16011 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16012 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16013 * machoread.c (_initialize_machoread): Add declaration.
16014 * macrocmd.c (_initialize_macrocmd): Add declaration.
16015 * macroscope.c (_initialize_macroscope): Add declaration.
16016 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16017 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16018 * maint.c (_initialize_maint_cmds): Add declaration.
16019 * mdebugread.c (_initialize_mdebugread): Add declaration.
16020 * memattr.c (_initialize_mem): Add declaration.
16021 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16022 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16023 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16024 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16025 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16026 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16027 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16028 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16029 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16030 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16031 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16032 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16033 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16034 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16035 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16036 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16037 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16038 * mipsread.c (_initialize_mipsread): Add declaration.
16039 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16040 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16041 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16042 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16043 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16044 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16045 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16046 * nto-procfs.c (_initialize_procfs): Add declaration.
16047 * objc-lang.c (_initialize_objc_language): Add declaration.
16048 * observable.c (_initialize_observer): Add declaration.
16049 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16050 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16051 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16052 * osabi.c (_initialize_gdb_osabi): Add declaration.
16053 * osdata.c (_initialize_osdata): Add declaration.
16054 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16055 * parse.c (_initialize_parse): Add declaration.
16056 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16057 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16058 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16059 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16060 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16061 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16062 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16063 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16064 * printcmd.c (_initialize_printcmd): Add declaration.
16065 * probe.c (_initialize_probe): Add declaration.
16066 * proc-api.c (_initialize_proc_api): Add declaration.
16067 * proc-events.c (_initialize_proc_events): Add declaration.
16068 * proc-service.c (_initialize_proc_service): Add declaration.
16069 * procfs.c (_initialize_procfs): Add declaration.
16070 * producer.c (_initialize_producer): Add declaration.
16071 * psymtab.c (_initialize_psymtab): Add declaration.
16072 * python/python.c (_initialize_python): Add declaration.
16073 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16074 * record-btrace.c (_initialize_record_btrace): Add declaration.
16075 * record-full.c (_initialize_record_full): Add declaration.
16076 * record.c (_initialize_record): Add declaration.
16077 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16078 * regcache.c (_initialize_regcache): Add declaration.
16079 * reggroups.c (_initialize_reggroup): Add declaration.
16080 * remote-notif.c (_initialize_notif): Add declaration.
16081 * remote-sim.c (_initialize_remote_sim): Add declaration.
16082 * remote.c (_initialize_remote): Add declaration.
16083 * reverse.c (_initialize_reverse): Add declaration.
16084 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16085 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16086 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16087 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16088 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16089 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16090 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16091 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16092 Add declaration.
16093 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16094 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16095 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16096 * rust-exp.y (_initialize_rust_exp): Add declaration.
16097 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16098 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16099 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16100 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16101 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16102 * score-tdep.c (_initialize_score_tdep): Add declaration.
16103 * ser-go32.c (_initialize_ser_dos): Add declaration.
16104 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16105 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16106 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16107 * ser-uds.c (_initialize_ser_socket): Add declaration.
16108 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16109 * serial.c (_initialize_serial): Add declaration.
16110 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16111 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16112 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16113 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16114 * skip.c (_initialize_step_skip): Add declaration.
16115 * sol-thread.c (_initialize_sol_thread): Add declaration.
16116 * solib-aix.c (_initialize_solib_aix): Add declaration.
16117 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16118 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16119 * solib-frv.c (_initialize_frv_solib): Add declaration.
16120 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16121 * solib-target.c (_initialize_solib_target): Add declaration.
16122 * solib.c (_initialize_solib): Add declaration.
16123 * source-cache.c (_initialize_source_cache): Add declaration.
16124 * source.c (_initialize_source): Add declaration.
16125 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16126 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16127 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16128 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16129 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16130 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16131 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16132 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16133 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16134 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16135 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16136 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16137 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16138 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16139 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16140 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16141 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16142 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16143 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16144 * stabsread.c (_initialize_stabsread): Add declaration.
16145 * stack.c (_initialize_stack): Add declaration.
16146 * stap-probe.c (_initialize_stap_probe): Add declaration.
16147 * std-regs.c (_initialize_frame_reg): Add declaration.
16148 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16149 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16150 * symfile.c (_initialize_symfile): Add declaration.
16151 * symmisc.c (_initialize_symmisc): Add declaration.
16152 * symtab.c (_initialize_symtab): Add declaration.
16153 * target.c (_initialize_target): Add declaration.
16154 * target-connection.c (_initialize_target_connection): Add
16155 declaration.
16156 * target-dcache.c (_initialize_target_dcache): Add declaration.
16157 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16158 * thread.c (_initialize_thread): Add declaration.
16159 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16160 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16161 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16162 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16163 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16164 * tracectf.c (_initialize_ctf): Add declaration.
16165 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16166 * tracefile.c (_initialize_tracefile): Add declaration.
16167 * tracepoint.c (_initialize_tracepoint): Add declaration.
16168 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16169 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16170 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16171 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16172 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16173 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16174 * tui/tui.c (_initialize_tui): Add declaration.
16175 * typeprint.c (_initialize_typeprint): Add declaration.
16176 * ui-style.c (_initialize_ui_style): Add declaration.
16177 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16178 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16179 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16180 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16181 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16182 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16183 * unittests/filtered_iterator-selftests.c
16184 (_initialize_filtered_iterator_selftests): Add declaration.
16185 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16186 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16187 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16188 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16189 * unittests/main-thread-selftests.c
16190 (_initialize_main_thread_selftests): Add declaration.
16191 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16192 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16193 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16194 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16195 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16196 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16197 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16198 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16199 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16200 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16201 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16202 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16203 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16204 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16205 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16206 declaration.
16207 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16208 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16209 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16210 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16211 * user-regs.c (_initialize_user_regs): Add declaration.
16212 * utils.c (_initialize_utils): Add declaration.
16213 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16214 * valops.c (_initialize_valops): Add declaration.
16215 * valprint.c (_initialize_valprint): Add declaration.
16216 * value.c (_initialize_values): Add declaration.
16217 * varobj.c (_initialize_varobj): Add declaration.
16218 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16219 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16220 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16221 * windows-nat.c (_initialize_windows_nat): Add declaration.
16222 (_initialize_check_for_gdb_ini): Add declaration.
16223 (_initialize_loadable): Add declaration.
16224 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16225 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16226 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16227 * xcoffread.c (_initialize_xcoffread): Add declaration.
16228 * xml-support.c (_initialize_xml_support): Add declaration.
16229 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16230 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16231 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16232 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16233
16234 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16235
16236 * regformats/regdat.sh: Generate declaration for init function.
16237
16238 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16239
16240 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16241 up.
16242 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16243 close_one_inferior>: New methods.
16244 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16245 pass down target to find_inferior_pid.
16246 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16247 Pass down target to find_inferior_ptid.
16248 (gdbsim_target::create_inferior): Pass down target to
16249 add_thread_silent.
16250 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16251 target down to find_inferior_ptid and switch_to_thread.
16252 (gdbsim_target::close): Update to call close_one_inferior.
16253 (struct resume_data): Remove.
16254 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16255 directly, rather than through a void pointer.
16256 (gdbsim_target::resume): Update to call resume_one_inferior.
16257
16258 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16259
16260 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16261
16262 2020-01-12 Pedro Alves <palves@redhat.com>
16263
16264 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16265 directly for the current inferior instead of
16266 discard_all_inferiors.
16267 (discard_all_inferiors): Delete.
16268
16269 2020-01-11 Tom Tromey <tom@tromey.com>
16270
16271 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16272 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16273 deprecated_safe_get_selected_frame.
16274
16275 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16276
16277 * inferior.c (print_inferior): Switch inferior before printing it.
16278
16279 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16280 Pedro Alves <palves@redhat.com>
16281
16282 * progspace-and-thread.c (switch_to_program_space_and_thread):
16283 Assert there's an inferior for PSPACE. Use
16284 switch_to_inferior_no_thread to switch the inferior too.
16285 * progspace.c (program_space::~program_space): Call
16286 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16287 (program_space::free_all_objfiles): Don't call clear_symtab_users
16288 here.
16289 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16290
16291 2020-01-10 Pedro Alves <palves@redhat.com>
16292
16293 * NEWS: Mention multi-target debugging, "info connections", and
16294 "add-inferior -no-connection".
16295
16296 2020-01-10 Pedro Alves <palves@redhat.com>
16297
16298 * infrun.c: Include "target-connection.h".
16299 (check_multi_target_resumption): New.
16300 (proceed): Call it.
16301 * target-connection.c (make_target_connection_string): Make
16302 extern.
16303 * target-connection.h (make_target_connection_string): Declare.
16304
16305 2020-01-10 Pedro Alves <palves@redhat.com>
16306
16307 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16308 * inferior.c (uiout_field_connection): New function.
16309 (print_inferior): Add new "connection-id" column.
16310 (add_inferior_command): Show connection number/string of added
16311 inferior.
16312 * process-stratum-target.h
16313 (process_stratum_target::connection_string): New virtual method.
16314 (process_stratum_target::connection_number): New field.
16315 * remote.c (remote_target::connection_string): New override.
16316 * target-connection.c: New file.
16317 * target-connection.h: New file.
16318 * target.c (decref_target): Remove process_stratum targets from
16319 the connection list.
16320 (target_stack::push): Add process_stratum targets to the
16321 connection list.
16322
16323 2020-01-10 Pedro Alves <palves@redhat.com>
16324
16325 Revert:
16326 2016-04-12 Pedro Alves <palves@redhat.com>
16327 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16328 Remove references to name.
16329 * serial.h (struct serial) <name>: Delete.
16330
16331 2020-01-10 Pedro Alves <palves@redhat.com>
16332
16333 * gdbarch-selftests.c (register_to_value_test): Remove "target
16334 already pushed" check.
16335
16336 2020-01-10 Pedro Alves <palves@redhat.com>
16337 John Baldwin <jhb@FreeBSD.org>
16338
16339 * aarch64-linux-nat.c
16340 (aarch64_linux_nat_target::thread_architecture): Adjust.
16341 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16342 (task_command_1): Likewise.
16343 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16344 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16345 (aix_thread_target::store_registers)
16346 (aix_thread_target::thread_alive): Adjust.
16347 * amd64-fbsd-tdep.c: Include "inferior.h".
16348 (amd64fbsd_get_thread_local_address): Pass down target.
16349 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16350 thread's gdbarch instead of target_gdbarch.
16351 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16352 get_last_target_status.
16353 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16354 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16355 inferiors.
16356 (update_inserted_breakpoint_locations): Skip if inferiors with no
16357 execution.
16358 (update_global_location_list): When handling moribund locations,
16359 find representative inferior for location's pspace, and use thread
16360 count of its process_stratum target.
16361 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16362 * bsd-uthread.c (bsd_uthread_target::wait): Use
16363 as_process_stratum_target and adjust thread_change_ptid and
16364 add_thread calls.
16365 (bsd_uthread_target::update_thread_list): Use
16366 as_process_stratum_target and adjust find_thread_ptid,
16367 thread_change_ptid and add_thread calls.
16368 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16369 find_thread_ptid call.
16370 * corelow.c (add_to_thread_list): Adjust add_thread call.
16371 (core_target_open): Adjust add_thread_silent and thread_count
16372 calls.
16373 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16374 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16375 * event-top.c (async_disconnect): Pop targets from all inferiors.
16376 * exec.c (add_target_sections): Push exec target on all inferiors
16377 sharing the program space.
16378 (remove_target_sections): Remove the exec target from all
16379 inferiors sharing the program space.
16380 (exec_on_vfork): New.
16381 * exec.h (exec_on_vfork): Declare.
16382 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16383 Pass it down.
16384 (fbsd_nat_target::update_thread_list): Adjust.
16385 (fbsd_nat_target::resume): Adjust.
16386 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16387 down.
16388 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16389 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16390 get_thread_arch_regcache call.
16391 * fork-child.c (gdb_startup_inferior): Pass target down to
16392 startup_inferior and set_executing.
16393 * gdbthread.h (struct process_stratum_target): Forward declare.
16394 (add_thread, add_thread_silent, add_thread_with_info)
16395 (in_thread_list): Add process_stratum_target parameter.
16396 (find_thread_ptid(inferior*, ptid_t)): New overload.
16397 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16398 parameter.
16399 (all_threads()): Delete overload.
16400 (all_threads, all_non_exited_threads): Add process_stratum_target
16401 parameter.
16402 (all_threads_safe): Use brace initialization.
16403 (thread_count): Add process_stratum_target parameter.
16404 (set_resumed, set_running, set_stop_requested, set_executing)
16405 (threads_are_executing, finish_thread_state): Add
16406 process_stratum_target parameter.
16407 (switch_to_thread): Use is_current_thread.
16408 * i386-fbsd-tdep.c: Include "inferior.h".
16409 (i386fbsd_get_thread_local_address): Pass down target.
16410 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16411 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16412 have_inferiors check.
16413 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16414 (inf_ptrace_target::attach): Adjust.
16415 * infcall.c (run_inferior_call): Adjust.
16416 * infcmd.c (run_command_1): Pass target to
16417 scoped_finish_thread_state.
16418 (proceed_thread_callback): Skip inferiors with no execution.
16419 (continue_command): Rename 'all_threads' local to avoid hiding
16420 'all_threads' function. Adjust get_last_target_status call.
16421 (prepare_one_step): Adjust set_running call.
16422 (signal_command): Use user_visible_resume_target. Compare thread
16423 pointers instead of inferior_ptid.
16424 (info_program_command): Adjust to pass down target.
16425 (attach_command): Mark target's 'thread_executing' flag.
16426 (stop_current_target_threads_ns): New, factored out from ...
16427 (interrupt_target_1): ... this. Switch inferior before making
16428 target calls.
16429 * inferior-iter.h
16430 (struct all_inferiors_iterator, struct all_inferiors_range)
16431 (struct all_inferiors_safe_range)
16432 (struct all_non_exited_inferiors_range): Filter on
16433 process_stratum_target too. Remove explicit.
16434 * inferior.c (inferior::inferior): Push dummy target on target
16435 stack.
16436 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16437 Add process_stratum_target parameter, and pass it down.
16438 (have_live_inferiors): Adjust.
16439 (switch_to_inferior_and_push_target): New.
16440 (add_inferior_command, clone_inferior_command): Handle
16441 "-no-connection" parameter. Use
16442 switch_to_inferior_and_push_target.
16443 (_initialize_inferior): Mention "-no-connection" option in
16444 the help of "add-inferior" and "clone-inferior" commands.
16445 * inferior.h: Include "process-stratum-target.h".
16446 (interrupt_target_1): Use bool.
16447 (struct inferior) <push_target, unpush_target, target_is_pushed,
16448 find_target_beneath, top_target, process_target, target_at,
16449 m_stack>: New.
16450 (discard_all_inferiors): Delete.
16451 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16452 (all_inferiors, all_non_exited_inferiors): Add
16453 process_stratum_target parameter.
16454 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16455 (target_last_proc_target): New global.
16456 (follow_fork_inferior): Push target on new inferior. Pass target
16457 to add_thread_silent. Call exec_on_vfork. Handle target's
16458 reference count.
16459 (follow_fork): Adjust get_last_target_status call. Also consider
16460 target.
16461 (follow_exec): Push target on new inferior.
16462 (struct execution_control_state) <target>: New field.
16463 (user_visible_resume_target): New.
16464 (do_target_resume): Call target_async.
16465 (resume_1): Set target's threads_executing flag. Consider resume
16466 target.
16467 (commit_resume_all_targets): New.
16468 (proceed): Also consider resume target. Skip threads of inferiors
16469 with no execution. Commit resumtion in all targets.
16470 (start_remote): Pass current inferior to wait_for_inferior.
16471 (infrun_thread_stop_requested): Consider target as well. Pass
16472 thread_info pointer to clear_inline_frame_state instead of ptid.
16473 (infrun_thread_thread_exit): Consider target as well.
16474 (random_pending_event_thread): New inferior parameter. Use it.
16475 (do_target_wait): Rename to ...
16476 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16477 down.
16478 (threads_are_resumed_pending_p, do_target_wait): New.
16479 (prepare_for_detach): Adjust calls.
16480 (wait_for_inferior): New inferior parameter. Handle it. Use
16481 do_target_wait_1 instead of do_target_wait.
16482 (fetch_inferior_event): Adjust. Switch to representative
16483 inferior. Pass target down.
16484 (set_last_target_status): Add process_stratum_target parameter.
16485 Save target in global.
16486 (get_last_target_status): Add process_stratum_target parameter and
16487 handle it.
16488 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16489 (context_switch): Check inferior_ptid == null_ptid before calling
16490 inferior_thread().
16491 (get_inferior_stop_soon): Pass down target.
16492 (wait_one): Rename to ...
16493 (poll_one_curr_target): ... this.
16494 (struct wait_one_event): New.
16495 (wait_one): New.
16496 (stop_all_threads): Adjust.
16497 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16498 event's target.
16499 (switch_back_to_stepped_thread): Also consider target.
16500 (print_stop_event): Update.
16501 (normal_stop): Update. Also consider the resume target.
16502 * infrun.h (wait_for_inferior): Remove declaration.
16503 (user_visible_resume_target): New declaration.
16504 (get_last_target_status, set_last_target_status): New
16505 process_stratum_target parameter.
16506 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16507 process_stratum_target parameter, and use it.
16508 (clear_inline_frame_state (thread_info*)): New.
16509 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16510 process_stratum_target parameter.
16511 (clear_inline_frame_state (thread_info*)): Declare.
16512 * linux-fork.c (delete_checkpoint_command): Pass target down to
16513 find_thread_ptid.
16514 (checkpoint_command): Adjust.
16515 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16516 instead of just tweaking inferior_ptid.
16517 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16518 (exit_lwp): Pass target down to find_thread_ptid.
16519 (attach_proc_task_lwp_callback): Pass target down to
16520 add_thread/set_running/set_executing.
16521 (linux_nat_target::attach): Pass target down to
16522 thread_change_ptid.
16523 (get_detach_signal): Pass target down to find_thread_ptid.
16524 Consider last target status's target.
16525 (linux_resume_one_lwp_throw, resume_lwp)
16526 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16527 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16528 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16529 (linux_nat_target::async_wait_fd): New.
16530 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16531 target down.
16532 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16533 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16534 * linux-thread-db.c (struct thread_db_info::process_target): New
16535 field.
16536 (add_thread_db_info): Save target.
16537 (get_thread_db_info): New process_stratum_target parameter. Also
16538 match target.
16539 (delete_thread_db_info): New process_stratum_target parameter.
16540 Also match target.
16541 (thread_from_lwp): Adjust to pass down target.
16542 (thread_db_notice_clone): Pass down target.
16543 (check_thread_db_callback): Pass down target.
16544 (try_thread_db_load_1): Always push the thread_db target.
16545 (try_thread_db_load, record_thread): Pass target down.
16546 (thread_db_target::detach): Pass target down. Always unpush the
16547 thread_db target.
16548 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16549 target down. Always unpush the thread_db target.
16550 (find_new_threads_callback, thread_db_find_new_threads_2)
16551 (thread_db_target::update_thread_list): Pass target down.
16552 (thread_db_target::pid_to_str): Pass current inferior down.
16553 (thread_db_target::get_thread_local_address): Pass target down.
16554 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16555 target down.
16556 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16557 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16558 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16559 (procfs_init_inferior): Rename to ...
16560 (procfs_target::procfs_init_inferior): ... this and adjust.
16561 (procfs_target::create_inferior, procfs_notice_thread)
16562 (procfs_do_thread_registers): Adjust.
16563 * ppc-fbsd-tdep.c: Include "inferior.h".
16564 (ppcfbsd_get_thread_local_address): Pass down target.
16565 * proc-service.c (ps_xfer_memory): Switch current inferior and
16566 program space as well.
16567 (get_ps_regcache): Pass target down.
16568 * process-stratum-target.c
16569 (process_stratum_target::thread_address_space)
16570 (process_stratum_target::thread_architecture): Pass target down.
16571 * process-stratum-target.h
16572 (process_stratum_target::threads_executing): New field.
16573 (as_process_stratum_target): New.
16574 * ravenscar-thread.c
16575 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16576 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16577 down.
16578 * record-btrace.c (record_btrace_target::info_record): Adjust.
16579 (record_btrace_target::record_method)
16580 (record_btrace_target::record_is_replaying)
16581 (record_btrace_target::fetch_registers)
16582 (get_thread_current_frame_id, record_btrace_target::resume)
16583 (record_btrace_target::wait, record_btrace_target::stop): Pass
16584 target down.
16585 * record-full.c (record_full_wait_1): Switch to event thread.
16586 Pass target down.
16587 * regcache.c (regcache::regcache)
16588 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16589 process_stratum_target parameter and handle it.
16590 (current_thread_target): New global.
16591 (get_thread_regcache): Add process_stratum_target parameter and
16592 handle it. Switch inferior before calling target method.
16593 (get_thread_regcache): Pass target down.
16594 (get_thread_regcache_for_ptid): Pass target down.
16595 (registers_changed_ptid): Add process_stratum_target parameter and
16596 handle it.
16597 (registers_changed_thread, registers_changed): Pass target down.
16598 (test_get_thread_arch_aspace_regcache): New.
16599 (current_regcache_test): Define a couple local test_target_ops
16600 instances and use them for testing.
16601 (readwrite_regcache): Pass process_stratum_target parameter.
16602 (cooked_read_test, cooked_write_test): Pass mock_target down.
16603 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16604 (get_thread_arch_aspace_regcache): Add process_stratum_target
16605 parameter.
16606 (regcache::target): New method.
16607 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16608 (regcache::registers_changed_ptid): Add process_stratum_target
16609 parameter.
16610 (regcache::m_target): New field.
16611 (registers_changed_ptid): Add process_stratum_target parameter.
16612 * remote.c (remote_state::supports_vCont_probed): New field.
16613 (remote_target::async_wait_fd): New method.
16614 (remote_unpush_and_throw): Add remote_target parameter.
16615 (get_current_remote_target): Adjust.
16616 (remote_target::remote_add_inferior): Push target.
16617 (remote_target::remote_add_thread)
16618 (remote_target::remote_notice_new_inferior)
16619 (get_remote_thread_info): Pass target down.
16620 (remote_target::update_thread_list): Skip threads of inferiors
16621 bound to other targets. (remote_target::close): Don't discard
16622 inferiors. (remote_target::add_current_inferior_and_thread)
16623 (remote_target::process_initial_stop_replies)
16624 (remote_target::start_remote)
16625 (remote_target::remote_serial_quit_handler): Pass down target.
16626 (remote_target::remote_unpush_target): New remote_target
16627 parameter. Unpush the target from all inferiors.
16628 (remote_target::remote_unpush_and_throw): New remote_target
16629 parameter. Pass it down.
16630 (remote_target::open_1): Check whether the current inferior has
16631 execution instead of checking whether any inferior is live. Pass
16632 target down.
16633 (remote_target::remote_detach_1): Pass down target. Use
16634 remote_unpush_target.
16635 (extended_remote_target::attach): Pass down target.
16636 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16637 (remote_target::append_resumption): Pass down target.
16638 (remote_target::append_pending_thread_resumptions)
16639 (remote_target::remote_resume_with_hc, remote_target::resume)
16640 (remote_target::commit_resume): Pass down target.
16641 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16642 (remote_target::interrupt_query)
16643 (remote_target::remove_new_fork_children)
16644 (remote_target::check_pending_events_prevent_wildcard_vcont)
16645 (remote_target::remote_parse_stop_reply)
16646 (remote_target::process_stop_reply): Pass down target.
16647 (first_remote_resumed_thread): New remote_target parameter. Pass
16648 it down.
16649 (remote_target::wait_as): Pass down target.
16650 (unpush_and_perror): New remote_target parameter. Pass it down.
16651 (remote_target::readchar, remote_target::remote_serial_write)
16652 (remote_target::getpkt_or_notif_sane_1)
16653 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16654 down target.
16655 (remote_target::mourn_inferior): Pass down target. Use
16656 remote_unpush_target.
16657 (remote_target::core_of_thread)
16658 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16659 (remote_target::pid_to_exec_file)
16660 (remote_target::thread_handle_to_thread_info): Pass down target.
16661 (remote_target::async_wait_fd): New.
16662 * riscv-fbsd-tdep.c: Include "inferior.h".
16663 (riscv_fbsd_get_thread_local_address): Pass down target.
16664 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16665 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16666 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16667 Adjust.
16668 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16669 * solib-svr4.c (enable_break): Pass down target.
16670 * spu-multiarch.c (parse_spufs_run): Pass down target.
16671 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16672 * target-delegates.c: Regenerate.
16673 * target.c (g_target_stack): Delete.
16674 (current_top_target): Return the current inferior's top target.
16675 (target_has_execution_1): Refer to the passed-in inferior's top
16676 target.
16677 (target_supports_terminal_ours): Check whether the initial
16678 inferior was already created.
16679 (decref_target): New.
16680 (target_stack::push): Incref/decref the target.
16681 (push_target, push_target, unpush_target): Adjust.
16682 (target_stack::unpush): Defref target.
16683 (target_is_pushed): Return bool. Adjust to refer to the current
16684 inferior's target stack.
16685 (dispose_inferior): Delete, and inline parts ...
16686 (target_preopen): ... here. Only dispose of the current inferior.
16687 (target_detach): Hold strong target reference while detaching.
16688 Pass target down.
16689 (target_thread_name): Add assertion.
16690 (target_resume): Pass down target.
16691 (target_ops::beneath, find_target_at): Adjust to refer to the
16692 current inferior's target stack.
16693 (get_dummy_target): New.
16694 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16695 has a thread running.
16696 (initialize_targets): Rename to ...
16697 (_initialize_target): ... this.
16698 * target.h: Include "gdbsupport/refcounted-object.h".
16699 (struct target_ops): Inherit refcounted_object.
16700 (target_ops::shortname, target_ops::longname): Make const.
16701 (target_ops::async_wait_fd): New method.
16702 (decref_target): Declare.
16703 (struct target_ops_ref_policy): New.
16704 (target_ops_ref): New typedef.
16705 (get_dummy_target): Declare function.
16706 (target_is_pushed): Return bool.
16707 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16708 (all_matching_threads_iterator::all_matching_threads_iterator):
16709 Handle filter target.
16710 * thread-iter.h (struct all_matching_threads_iterator, struct
16711 all_matching_threads_range, class all_non_exited_threads_range):
16712 Filter by target too. Remove explicit.
16713 * thread.c (threads_executing): Delete.
16714 (inferior_thread): Pass down current inferior.
16715 (clear_thread_inferior_resources): Pass down thread pointer
16716 instead of ptid_t.
16717 (add_thread_silent, add_thread_with_info, add_thread): Add
16718 process_stratum_target parameter. Use it for thread and inferior
16719 searches.
16720 (is_current_thread): New.
16721 (thread_info::deletable): Use it.
16722 (find_thread_ptid, thread_count, in_thread_list)
16723 (thread_change_ptid, set_resumed, set_running): New
16724 process_stratum_target parameter. Pass it down.
16725 (set_executing): New process_stratum_target parameter. Pass it
16726 down. Adjust reference to 'threads_executing'.
16727 (threads_are_executing): New process_stratum_target parameter.
16728 Adjust reference to 'threads_executing'.
16729 (set_stop_requested, finish_thread_state): New
16730 process_stratum_target parameter. Pass it down.
16731 (switch_to_thread): Also match inferior.
16732 (switch_to_thread): New process_stratum_target parameter. Pass it
16733 down.
16734 (update_threads_executing): Reimplement.
16735 * top.c (quit_force): Pop targets from all inferior.
16736 (gdb_init): Don't call initialize_targets.
16737 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16738 Declare.
16739 (windows_add_thread, windows_delete_thread): Adjust.
16740 (get_windows_debug_event): Rename to ...
16741 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16742 * tracefile-tfile.c (tfile_target_open): Pass down target.
16743 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16744 Forward declare.
16745 (switch_to_thread): Add process_stratum_target parameter.
16746 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16747 parameter. Use it.
16748 (mi_on_resume): Pass target down.
16749 * nat/fork-inferior.c (startup_inferior): Add
16750 process_stratum_target parameter. Pass it down.
16751 * nat/fork-inferior.h (startup_inferior): Add
16752 process_stratum_target parameter.
16753 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16754
16755 2020-01-10 Pedro Alves <palves@redhat.com>
16756
16757 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16758 directly. Instead find the first thread in the thread list and
16759 use switch_to_thread.
16760
16761 2020-01-10 Pedro Alves <palves@redhat.com>
16762
16763 * remote.c (remote_target::remote_add_inferior): Don't bind a
16764 process to the current inferior if the current inferior is already
16765 bound to a process.
16766
16767 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16768 Pedro Alves <palves@redhat.com>
16769
16770 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16771 If no process is specified, return null_ptid instead of
16772 inferior_ptid.
16773 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16774 TARGET_WAITKIND_SIGNALLED with no pid.
16775
16776 2020-01-10 Pedro Alves <palves@redhat.com>
16777
16778 * remote.c (first_remote_resumed_thread): New.
16779 (remote_target::wait_as): Use it as default event_ptid instead of
16780 inferior_ptid.
16781
16782 2020-01-10 Pedro Alves <palves@redhat.com>
16783
16784 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16785
16786 2020-01-10 Pedro Alves <palves@redhat.com>
16787
16788 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16789 not -1.
16790
16791 2020-01-10 Pedro Alves <palves@redhat.com>
16792
16793 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16794 ptid to get_last_target_status.
16795 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16796 ptid to get_last_target_status.
16797 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16798 get_last_target_status.
16799 (info_program_command): Don't pass a target_waitstatus to
16800 get_last_target_status.
16801 * infrun.c (init_wait_for_inferior): Use
16802 nullify_last_target_wait_ptid.
16803 (get_last_target_status): Handle nullptr arguments.
16804 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16805 (print_stop_event): Don't pass a ptid to get_last_target_status.
16806 (normal_stop): Don't pass a ptid to get_last_target_status.
16807 * infrun.h (get_last_target_status, set_last_target_status): Move
16808 comments here and update.
16809 (nullify_last_target_wait_ptid): Declare.
16810 * linux-fork.c (fork_load_infrun_state): Remove local extern
16811 declaration of nullify_last_target_wait_ptid.
16812 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16813 to get_last_target_status.
16814
16815 2020-01-10 Pedro Alves <palves@redhat.com>
16816
16817 * gdbthread.h (scoped_restore_current_thread)
16818 <dont_restore, restore, m_dont_restore>: Declare.
16819 * thread.c (thread_alive): Add assertion. Return bool.
16820 (switch_to_thread_if_alive): New.
16821 (prune_threads): Switch inferior/thread.
16822 (print_thread_info_1): Switch thread before calling target methods.
16823 (scoped_restore_current_thread::restore): New, factored out from
16824 ...
16825 (scoped_restore_current_thread::~scoped_restore_current_thread):
16826 ... this.
16827 (scoped_restore_current_thread::scoped_restore_current_thread):
16828 Add assertion.
16829 (thread_apply_all_command, thread_select): Use
16830 switch_to_thread_if_alive.
16831 * infrun.c (proceed, restart_threads, handle_signal_stop)
16832 (switch_back_to_stepped_thread): Switch current thread before
16833 calling target methods.
16834
16835 2020-01-10 Pedro Alves <palves@redhat.com>
16836
16837 * inferior.c (switch_to_inferior_no_thread): New function,
16838 factored out from ...
16839 (inferior_command): ... here.
16840 * inferior.h (switch_to_inferior_no_thread): Declare.
16841 * mi/mi-main.c (run_one_inferior): Use
16842 switch_to_inferior_no_thread.
16843
16844 2020-01-10 Pedro Alves <palves@redhat.com>
16845
16846 * infcmd.c (kill_command): Remove dead code.
16847
16848 2020-01-10 Pedro Alves <palves@redhat.com>
16849
16850 * remote.c (remote_target::mourn_inferior): No longer check
16851 whether the target is running.
16852
16853 2020-01-10 Pedro Alves <palves@redhat.com>
16854
16855 * corelow.c (core_target::has_execution): Change parameter type to
16856 inferior pointer.
16857 * inferior.c (number_of_live_inferiors): Use
16858 inferior::has_execution instead of target_has_execution_1.
16859 * inferior.h (inferior::has_execution): New.
16860 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16861 inferior::has_execution instead of target_has_execution_1.
16862 * process-stratum-target.c
16863 (process_stratum_target::has_execution): Change parameter type to
16864 inferior pointer. Check the inferior's PID instead of
16865 inferior_ptid.
16866 * process-stratum-target.h
16867 (process_stratum_target::has_execution): Change parameter type to
16868 inferior pointer.
16869 * record-full.c (record_full_core_target::has_execution): Change
16870 parameter type to inferior pointer.
16871 * target.c (target_has_execution_1): Change parameter type to
16872 inferior pointer.
16873 (target_has_execution_current): Adjust.
16874 * target.h (target_ops::has_execution): Change parameter type to
16875 inferior pointer.
16876 (target_has_execution_1): Change parameter type to inferior
16877 pointer. Change return type to bool.
16878 * tracefile.h (tracefile_target::has_execution): Change parameter
16879 type to inferior pointer.
16880
16881 2020-01-10 Pedro Alves <palves@redhat.com>
16882
16883 * exceptions.c (print_flush): Remove current_top_target() check.
16884
16885 2020-01-10 Pedro Alves <palves@redhat.com>
16886
16887 * remote.c (show_remote_exec_file): Show the current inferior's
16888 exec-file instead of the command variable's value.
16889
16890 2020-01-10 Pedro Alves <palves@redhat.com>
16891
16892 * record-full.c (record_full_resume_ptid): New global.
16893 (record_full_target::resume): Set it.
16894 (record_full_wait_1): Use record_full_resume_ptid instead of
16895 inferior_ptid.
16896
16897 2020-01-10 Pedro Alves <palves@redhat.com>
16898
16899 * gdbthread.h (scoped_restore_current_thread)
16900 <dont_restore, restore, m_dont_restore>: Declare.
16901 * thread.c (thread_alive): Add assertion. Return bool.
16902 (switch_to_thread_if_alive): New.
16903 (prune_threads): Switch inferior/thread.
16904 (print_thread_info_1): Switch thread before calling target methods.
16905 (scoped_restore_current_thread::restore): New, factored out from
16906 ...
16907 (scoped_restore_current_thread::~scoped_restore_current_thread):
16908 ... this.
16909 (scoped_restore_current_thread::scoped_restore_current_thread):
16910 Add assertion.
16911 (thread_apply_all_command, thread_select): Use
16912 switch_to_thread_if_alive.
16913
16914 2020-01-10 George Barrett <bob@bob131.so>
16915
16916 * stap-probe.c (stap_modify_semaphore): Don't check for null
16917 semaphores.
16918 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16919 for null semaphores.
16920
16921 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16922
16923 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16924 all source windows, and maintain horizontal scroll status while
16925 doing so.
16926
16927 2020-01-09 Tom Tromey <tom@tromey.com>
16928
16929 PR tui/18932:
16930 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16931 update_source_window, not print_source_lines.
16932
16933 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16934
16935 * tui/tui.c (tui_enable): Register tui hooks after calling
16936 tui_display_main.
16937
16938 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16939
16940 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16941
16942 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16943
16944 * thread.c (print_thread_info_1): Fix indentation.
16945
16946 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16947
16948 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16949 unique_xmalloc_ptr outside the if to always free the demangled name.
16950
16951 2020-01-08 Tom Tromey <tromey@adacore.com>
16952
16953 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16954 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16955 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16956 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16957 Remove.
16958 (section_offsets): New typedef.
16959 * symtab.c (fixup_section, get_msymbol_address): Update.
16960 * symmisc.c (dump_msymbols): Update.
16961 * symfile.h (relative_addr_info_to_section_offsets)
16962 (symfile_map_offsets_to_segments): Update.
16963 * symfile.c (build_section_addr_info_from_objfile)
16964 (init_objfile_sect_indices): Update.
16965 (struct place_section_arg): Change type of "offsets".
16966 (place_section): Update.
16967 (relative_addr_info_to_section_offsets): Change type of
16968 "section_offsets". Remove "num_sections" parameter.
16969 (default_symfile_offsets, syms_from_objfile_1)
16970 (set_objfile_default_section_offset): Update.
16971 (reread_symbols): No need to preserve section offsets by hand.
16972 (symfile_map_offsets_to_segments): Change type of "offsets".
16973 * stap-probe.c (relocate_address): Update.
16974 * stabsread.h (process_one_symbol): Update.
16975 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16976 (solib_target_relocate_section_addresses): Update.
16977 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16978 Update.
16979 * solib-frv.c (frv_relocate_main_executable): Update.
16980 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16981 * solib-aix.c (solib_aix_get_section_offsets): Change return
16982 type.
16983 (solib_aix_solib_create_inferior_hook): Update.
16984 * remote.c (remote_target::get_offsets): Update.
16985 * psymtab.c (find_pc_sect_psymtab): Update.
16986 * psympriv.h (struct partial_symbol) <address, text_low,
16987 text_high>: Update.
16988 * objfiles.h (obj_section_offset): Update.
16989 (struct objfile) <section_offsets>: Change type.
16990 <num_sections>: Remove.
16991 (objfile_relocate): Update.
16992 * objfiles.c (entry_point_address_query): Update
16993 (relocate_one_symbol): Change type of "section_offsets".
16994 (objfile_relocate1, objfile_relocate1): Change type of
16995 "new_offsets".
16996 (objfile_rebase1): Update.
16997 * mipsread.c (mipscoff_symfile_read): Update.
16998 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16999 parameter.
17000 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17001 (parse_external, psymtab_to_symtab_1): Update.
17002 * machoread.c (macho_symfile_offsets): Update.
17003 * ia64-tdep.c (ia64_find_unwind_table): Update.
17004 * hppa-tdep.c (read_unwind_info): Update.
17005 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17006 * dwarf2read.c (create_addrmap_from_index)
17007 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17008 (process_psymtab_comp_unit_reader, add_partial_symbol)
17009 (add_partial_subprogram, process_full_comp_unit)
17010 (read_file_scope, read_func_scope, read_lexical_block_scope)
17011 (read_call_site_scope, dwarf2_rnglists_process)
17012 (dwarf2_ranges_process, dwarf2_ranges_read)
17013 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17014 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17015 Update.
17016 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17017 Update.
17018 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17019 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17020 (process_one_symbol): Change type of "section_offsets".
17021 * ctfread.c (get_objfile_text_range): Update.
17022 * coffread.c (coff_symtab_read, enter_linenos)
17023 (process_coff_symbol): Update.
17024 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17025 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17026
17027 2020-01-08 Tom Tromey <tromey@adacore.com>
17028
17029 * dwarf2read.c (parse_macro_definition): Use std::string.
17030 (parse_macro_definition): Likewise.
17031
17032 2020-01-08 Tom Tromey <tromey@adacore.com>
17033
17034 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17035 (ATTR_ALLOC_CHUNK): Remove.
17036
17037 2020-01-08 Tom Tromey <tromey@adacore.com>
17038
17039 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17040
17041 2020-01-08 Tom Tromey <tromey@adacore.com>
17042
17043 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17044 (dwarf2_compute_name, open_dwo_file): Likewise.
17045 (process_enumeration_scope): Use std::vector.
17046 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17047 (partial_die_info::fixup, dwarf2_start_subfile)
17048 (guess_full_die_structure_name, dwarf2_name): Likewise.
17049 (determine_prefix): Update.
17050 (guess_full_die_structure_name): Make return type const.
17051 (partial_die_full_name): Return unique_xmalloc_ptr.
17052 (DW_FIELD_ALLOC_CHUNK): Remove.
17053
17054 2020-01-07 Tom Tromey <tromey@adacore.com>
17055
17056 PR build/24937:
17057 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17058
17059 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17060
17061 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17062
17063 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17064
17065 * stack.c (print_frame_info): Move disassemble_next_line code
17066 inside source_print block.
17067
17068 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17069
17070 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17071 gdb/signals.h, as we are now using native signal symbols.
17072
17073 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17074
17075 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17076 overflow by an early check of content vs threshold.
17077 * tui/tui-source.c (tui_source_window::line_is_displayed):
17078 Likewise.
17079
17080 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17081
17082 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17083
17084 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17085
17086 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17087 export table if no section contains it's RVA.
17088
17089 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17090
17091 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17092
17093 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17094
17095 * source.c (print_source_lines_base): Set last_line_listed.
17096
17097 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17098
17099 * tui/tui-disasm.c: Remove trailing spaces.
17100
17101 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17102 Pedro Alves <palves@redhat.com>
17103
17104 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17105 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17106 (windows_gdb_signal_to_target): New function, uses the above
17107 enumeration to convert GDB internal signal codes to equivalent
17108 Windows codes.
17109 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17110 * windows-nat.c: Include "gdb_wait.h".
17111 (get_windows_debug_event): Extract the fatal exception from the
17112 exit status and convert to the equivalent Posix signal number.
17113 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17114 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17115 * gdbsupport/gdb_wait.c: New file, implements
17116 windows_status_to_termsig.
17117 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17118 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17119
17120 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17121
17122 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17123 show_layout.
17124
17125 2020-01-05 Luis Machado <luis.machado@linaro.org>
17126
17127 * aarch64-linux-nat.c
17128 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17129 and bfd_mach_aarch64.
17130
17131 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17132
17133 * ui-file.c (stdio_file::can_emit_style_escape)
17134 (tee_file::can_emit_style_escape): Ensure style is used also on
17135 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17136 to gdb_stdout.
17137 * main.c (set_gdb_data_directory): Use file style to output the
17138 warning that the given pathname is not a directory.
17139 * top.c (show_history_filename, gdb_safe_append_history)
17140 (show_gdb_datadir): Use file style.
17141
17142 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17143
17144 * solib-target.c (struct lm_info_target):
17145 Change offsets to be a unique_xmalloc_ptr.
17146 (solib_target_relocate_section_addresses): Update.
17147
17148 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17149
17150 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17151
17152 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17153
17154 * MAINTAINERS (Write After Approval): Add myself.
17155
17156 2020-01-02 Luis Machado <luis.machado@linaro.org>
17157
17158 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17159 Cell BE architecture.
17160 * target.h (struct target_ops) <thread_architecture>: Likewise.
17161
17162 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17163
17164 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17165
17166 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17167
17168 * MAINTAINERS (Write After Approval): Add myself.
17169
17170 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17171
17172 * gdbarch.sh: Update copyright year range of generated files.
17173
17174 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17175
17176 Update copyright year range in all GDB files.
17177
17178 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17179
17180 * copyright.py: Convert to Python 3.
17181
17182 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17183
17184 * copyright.py: Adapt after move of gnulib directory from gdb
17185 directory to toplevel directory.
17186
17187 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17188
17189 * copyright.py (main): Exit if run from the wrong directory.
17190
17191 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17192
17193 * top.c (print_gdb_version): Change copyright year to 2020.
17194
17195 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17196
17197 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17198
17199 For older changes see ChangeLog-2019.
17200 \f
17201 Local Variables:
17202 mode: change-log
17203 left-margin: 8
17204 fill-column: 74
17205 version-control: never
17206 coding: utf-8
17207 End:
This page took 0.38046 seconds and 5 git commands to generate.