gdb: fix dwarf2/read.c build on solaris
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
4 of abs.
5
6 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
7
8 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
9 ctf_arc_open_by_name.
10
11 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
12
13 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
14 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
15
16 2020-11-20 Pedro Alves <pedro@palves.net>
17
18 * language.c (language_arch_info::lookup_primitive_type): Use
19 gdb::function_view instead of gdb::function.
20 (template language_lookup_primitive_type): Rename to ...
21 (language_lookup_primitive_type_1): ... this, and make static.
22 (language_lookup_primitive_type(const struct language_defn *,
23 struct gdbarch *, const char *): Make non-template.
24 (language_lookup_primitive_type(const struct language_defn *,
25 struct gdbarch *, std::function<bool (struct type *)>): Make
26 non-template and use gdb::function_view.
27 * language.h (language_arch_info::lookup_primitive_type): Use
28 gdb::function_view instead of std::function.
29 (language_lookup_primitive_type): No longer template.
30 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
31 lambda instead of a std::function.
32
33 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
34
35 PR tdep/26916
36 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
37 and STOCFH.
38
39 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
42
43 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
46 in `loop_cb` parameter.
47 * gdbarch.c: Re-generate.
48 * gdbarch.h: Re-generate.
49 * arch-utils.c (default_read_core_file_mappings): Remove `other`
50 parameter.
51 * arch-utils.h (default_read_core_file_mappings): Likewise.
52 * corelow.c (core_target::build_file_mappings): Likewise.
53 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
54 (linux_core_info_proc_mappings): Likewise.
55
56 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
59 * NEWS: Mention new options.
60 * f-array-walker.h: New file.
61 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
62 (repack_array_slices): New static global.
63 (show_repack_array_slices): New function.
64 (fortran_array_slicing_debug): New static global.
65 (show_fortran_array_slicing_debug): New function.
66 (value_f90_subarray): Delete.
67 (skip_undetermined_arglist): Delete.
68 (class fortran_array_repacker_base_impl): New class.
69 (class fortran_lazy_array_repacker_impl): New class.
70 (class fortran_array_repacker_impl): New class.
71 (fortran_value_subarray): Complete rewrite.
72 (set_fortran_list): New static global.
73 (show_fortran_list): Likewise.
74 (_initialize_f_language): Register new commands.
75 (fortran_adjust_dynamic_array_base_address_hack): New function.
76 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
77 Declare.
78 * f-valprint.c: Include 'f-array-walker.h'.
79 (class fortran_array_printer_impl): New class.
80 (f77_print_array_1): Delete.
81 (f77_print_array): Delete.
82 (fortran_print_array): New.
83 (f_value_print_inner): Update to call fortran_print_array.
84 * gdbtypes.c: Include 'f-lang.h'.
85 (resolve_dynamic_type_internal): Call
86 fortran_adjust_dynamic_array_base_address_hack.
87
88 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * breakpoint.c (struct watch_options): New struct.
91 (watch_option_defs): New static global.
92 (make_watch_options_def_group): New function.
93 (watch_maybe_just_location): Convert option parsing.
94 (watch_command_completer): New function.
95 (_initialize_breakpoint): Build help text using options mechanism.
96
97 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
100 (watch_command_1): Update parameter types. Convert locals to
101 bool.
102 (watch_command_wrapper): Change parameter type.
103 (watch_maybe_just_location): Change locals to bool.
104 (rwatch_command_wrapper): Update parameter type.
105 (awatch_command_wrapper): Update parameter type.
106 * breakpoint.h (watch_command_wrapper): Change parameter type.
107 (rwatch_command_wrapper): Update parameter type.
108 (awatch_command_wrapper): Update parameter type.
109 * eval.c (fetch_subexp_value): Change parameter type.
110 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
111 'false' not '0'.
112 * value.h (fetch_subexp_value): Change parameter type in
113 declaration.
114
115 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
118 skip_spaces.
119
120 2020-11-18 Keith Seitz <keiths@redhat.com>
121
122 * linux-tdep.c (dump_note_entry_p): Return true instead of
123 checking `filename'.
124
125 2020-11-18 Tom de Vries <tdevries@suse.de>
126
127 * debuginfod-support.c (debuginfod_source_query)
128 (debuginfod_debuginfo_query): Also do early exit if
129 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
130
131 2020-11-18 Tom de Vries <tdevries@suse.de>
132
133 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
134 warning.
135
136 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * gdbtypes.h (get_array_bounds): Return bool, adjust some
139 callers. Move doc here.
140 * gdbtypes.c (get_array_bounds): Return bool
141
142 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
145 assert.
146 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
147 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
148 case to the default.
149
150 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * printcmd.c: Include 'safe-ctype.c'.
153 (skip_over_slash_fmt): New function.
154 (print_command_completer): Call skip_over_slash_fmt.
155 (display_and_x_command_completer): New function.
156 (_initialize_printcmd): Add command completion for 'x' and
157 'display'.
158
159 2020-11-16 Pedro Alves <pedro@palves.net>
160
161 * frame.c (get_prev_frame): Move get_frame_id call from here ...
162 (get_prev_frame_always_1): ... to here.
163 * inline-frame.c (inline_frame_this_id): Mention
164 get_prev_frame_always_1 in comment.
165
166 2020-11-15 Joel Brobecker <brobecker@adacore.com>
167
168 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
169 handling.
170 (value_less): Add fixed-point handling.
171
172 2020-11-15 Joel Brobecker <brobecker@adacore.com>
173
174 * eval.c (binop_promote): Add fixed-point type handling.
175 * valarith.c (fixed_point_binop): New function.
176 (scalar_binop): Add fixed-point type handling.
177 (value_neg): Add fixed-point type handling.
178 * valops.c (value_cast_to_fixed_point): New function.
179 (value_cast): Add fixed-point type handling.
180
181 2020-11-15 Joel Brobecker <brobecker@adacore.com>
182
183 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
184 range types.
185 * c-typeprint.c (c_type_print_varspec_prefix)
186 (c_type_print_varspec_suffix, c_type_print_base_1): Add
187 TYPE_CODE_FIXED_POINT handling.
188 * p-typeprint.c (pascal_type_print_varspec_prefix)
189 (pascal_type_print_varspec_suffix): Likewise.
190 * typeprint.c (print_type_fixed_point): New function.
191 * typeprint.h (print_type_fixed_point): Add declaration.
192
193 2020-11-15 Joel Brobecker <brobecker@adacore.com>
194
195 * printcmd.c (print_scalar_formatted): Add fixed-point type
196 handling when options->format is set.
197
198 2020-11-15 Joel Brobecker <brobecker@adacore.com>
199
200 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
201 * dwarf2/read.c (get_dwarf2_rational_constant)
202 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
203 (has_zero_over_zero_small_attribute): New functions.
204 read_base_type, set_die_type): Add fixed-point type handling.
205 * gdb-gdb.py.in: Add fixed-point type handling.
206 * gdbtypes.c: #include "gmp-utils.h".
207 (create_range_type, set_type_code): Add fixed-point type handling.
208 (init_fixed_point_type): New function.
209 (is_integral_type, is_scalar_type): Add fixed-point type handling.
210 (print_fixed_point_type_info): New function.
211 (recursive_dump_type, copy_type_recursive): Add fixed-point type
212 handling.
213 (fixed_point_type_storage): New typedef.
214 (fixed_point_objfile_key): New static global.
215 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
216 (fixed_point_type_base_type, fixed_point_scaling_factor): New
217 functions.
218 * gdbtypes.h: #include "gmp-utils.h".
219 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
220 (union type_specific) <fixed_point_info>: New field.
221 (struct fixed_point_type_info): New struct.
222 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
223 (init_fixed_point_type, is_fixed_point_type)
224 (fixed_point_type_base_type, fixed_point_scaling_factor)
225 (allocate_fixed_point_type_info): Add declarations.
226 * valprint.c (generic_val_print_fixed_point): New function.
227 (generic_value_print): Add fixed-point type handling.
228 * value.c (value_as_address, unpack_long): Add fixed-point type
229 handling.
230
231 2020-11-15 Joel Brobecker <brobecker@adacore.com>
232
233 * utils.h (uinteger_pow): Add declaration.
234 * utils.c (uinteger_pow): Moved here (without changes)...
235 * valarith.c (uinteger_pow): ... from here.
236
237 2020-11-15 Joel Brobecker <brobecker@adacore.com>
238
239 * gmp-utils.h, gmp-utils.c: New file.
240 * unittests/gmp-utils-selftests.c: New file.
241 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
242 unittests/gmp-utils-selftests.c.
243 (COMMON_SFILES) Add gmp-utils.c.
244 (HFILES_NO_SRCDIR): Add gmp-utils.h.
245
246 2020-11-15 Joel Brobecker <brobecker@adacore.com>
247
248 * configure.ac: Generate an error if a usable GMP library
249 could not be found.
250 * configure: Regenerate.
251
252 2020-11-15 Joel Brobecker <brobecker@adacore.com>
253
254 * configure.ac: Add support for --with-libgmp-prefix.
255 * Makefile.in (LIBGMP): New variable.
256 (CLIBS): Include $(LIBGMP).
257 * configure, config.in: Regenerate
258
259 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 PR cli/26879
262 * f-exp.y (COMPLETE): New token.
263 (exp): Two new rules for tab-completion.
264 (saw_name_at_eof): New static global.
265 (last_was_structop): Likewise.
266 (yylex): Set new variables, and return COMPLETE token at the end
267 of the input stream in some cases.
268
269 2020-11-14 Tom Tromey <tom@tromey.com>
270
271 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
272
273 2020-11-14 Tom Tromey <tom@tromey.com>
274
275 * opencl-lang.c (opencl_component_ref): Make "comps" const.
276
277 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
280
281 2020-11-13 Tom Tromey <tom@tromey.com>
282
283 * c-lang.c (convert_ucn, convert_octal, convert_hex)
284 (convert_escape, parse_one_string): Constify.
285
286 2020-11-13 Keith Seitz <keiths@redhat.com>
287
288 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
289 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
290 outside of ELF segments" warning for debugin
291
292 2020-11-13 Keith Seitz <keiths@redhat.com>
293
294 PR gdb/23034
295 * elfread.c (elf_symfile_segments): Output a BFD file name
296 for the "Loadable section ... outside of ELF segments" warning.
297
298 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
299
300 PR gdb/26835
301 * arm-tdep.c (class arm_instruction_reader): New.
302 (target_arm_instruction_reader): New.
303 (arm_analyze_prologue): Add instruction reader parameter and use
304 it. Use arm_expand_immediate.
305 (class target_arm_instruction_reader): Adjust.
306 (arm_skip_prologue): Adjust.
307 (arm_expand_immediate): New.
308 (arm_scan_prologue): Adjust.
309 (arm_analyze_prologue_test): New.
310 (class test_arm_instruction_reader): New.
311
312 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * f-lang.c (fortran_argument_convert): Add declaration. Add
315 header comment, taken from f-lang.h. Make static.
316 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
317 (fortran_argument_convert): Delete declaration.
318
319 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * ada-exp.y (find_primitive_type): Make parameter const.
322 * ada-lang.c (enum ada_primitive_types): Delete.
323 (ada_language::language_arch_info): Update.
324 * c-lang.c (enum c_primitive_types): Delete.
325 (c_language_arch_info): Update.
326 (enum cplus_primitive_types): Delete.
327 (cplus_language::language_arch_info): Update.
328 * d-lang.c (enum d_primitive_types): Delete.
329 (d_language::language_arch_info): Update.
330 * f-lang.c (enum f_primitive_types): Delete.
331 (f_language::language_arch_info): Update.
332 * go-lang.c (enum go_primitive_types): Delete.
333 (go_language::language_arch_info): Update.
334 * language.c (auto_or_unknown_language::language_arch_info):
335 Update.
336 (language_gdbarch_post_init): Use obstack_new, use array indexing.
337 (language_string_char_type): Add header comment, call function in
338 language_arch_info.
339 (language_bool_type): Likewise
340 (language_arch_info::bool_type): Define.
341 (language_lookup_primitive_type_1): Delete.
342 (language_lookup_primitive_type): Rewrite as a templated function
343 to call function in language_arch_info, then instantiate twice.
344 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
345 (language_arch_info::lookup_primitive_type_and_symbol): Define.
346 (language_arch_info::lookup_primitive_type): Define twice with
347 different signatures.
348 (language_arch_info::lookup_primitive_type_as_symbol): Define.
349 (language_lookup_primitive_type_as_symbol): Rewrite to call a
350 member function in language_arch_info.
351 * language.h (language_arch_info): Complete rewrite.
352 (language_lookup_primitive_type): Make templated.
353 * m2-lang.c (enum m2_primitive_types): Delete.
354 (m2_language::language_arch_info): Update.
355 * opencl-lang.c (OCL_P_TYPE): Delete.
356 (enum opencl_primitive_types): Delete.
357 (opencl_type_data): Delete.
358 (builtin_opencl_type): Delete.
359 (lookup_opencl_vector_type): Update.
360 (opencl_language::language_arch_info): Update, lots of content
361 moved from...
362 (build_opencl_types): ...here. This function is now deleted.
363 (_initialize_opencl_language): Delete.
364 * p-lang.c (enum pascal_primitive_types): Delete.
365 (pascal_language::language_arch_info): Update.
366 * rust-lang.c (enum rust_primitive_types): Delete.
367 (rust_language::language_arch_info): Update.
368
369 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
372 dwarf2_queue_guard.
373
374 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
377 comment.
378
379 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * dwarf2/read.c (dwarf_read_debug_printf,
382 dwarf_read_debug_printf_v): New macros, use throughout the file.
383
384 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
385
386 * arc-linux-tdep.c (collect_register): Populate "eret" by
387 "pc" value from the regcache when asked for "pc" value.
388
389 2020-11-12 Tom Tromey <tom@tromey.com>
390
391 PR rust/26799:
392 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
393 exist.
394
395 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * features/Makefile (XMLTOC): Add rx.xml.
398 (FEATURE_XMLFILES): Remove rx.xml.
399 (FEATURE_CFILES rule): Pass '-single-feature' flag.
400 * features/rx.c: Regenerate.
401 * features/rx.xml: Wrap in `target` tags, and reindent.
402 * target-descriptions.c (struct maint_print_c_tdesc_options): New
403 structure.
404 (maint_print_c_tdesc_opt_def): New typedef.
405 (maint_print_c_tdesc_opt_defs): New static global.
406 (make_maint_print_c_tdesc_options_def_group): New function.
407 (maint_print_c_tdesc_cmd): Make use of command line flags, only
408 print single feature C file for target descriptions containing a
409 single feature.
410 (maint_print_c_tdesc_cmd_completer): New function.
411 (_initialize_target_descriptions): Update call to register command
412 completer, and include command line flag in help text.
413
414 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
417 numbers.
418 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
419 enum values.
420
421 2020-11-10 Tom Tromey <tom@tromey.com>
422
423 * value.h (internalvar_name): Update.
424 * value.c (internalvar_name): Make return type const.
425
426 2020-11-10 Tom Tromey <tom@tromey.com>
427
428 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
429 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
430 const.
431
432 2020-11-10 Tom Tromey <tom@tromey.com>
433
434 * objc-lang.h (value_nsstring): Update.
435 * objc-lang.c (value_nsstring): Make "ptr" const.
436
437 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * expprint.c (print_subexp_funcall): Increment expression position
440 after reading argument count.
441 * f-lang.c (print_subexp_f): Skip over opcode before calling
442 common function.
443 (dump_subexp_body_f): Likewise.
444
445 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
446
447 PR python/26832
448 * configure: Regenerate.
449 * configure.ac: Check for python modules ctypes instead of
450 itertools.
451
452 2020-11-06 Pedro Alves <pedro@palves.net>
453
454 * macroexp.c (struct macro_buffer): Split in two classes. Add
455 uses adjusted.
456 (struct shared_macro_buffer): New, factored out from struct
457 macro_buffer.
458 (struct growable_macro_buffer): New, factored out from struct
459 macro_buffer.
460 (set_token, get_comment, get_identifier, get_pp_number)
461 (get_character_constant, get_string_literal, get_punctuator)
462 (get_next_token_for_substitution): Constify parameters.
463 (substitute_args): Constify locals.
464
465 2020-11-05 Tom Tromey <tom@tromey.com>
466
467 * dwarf2/read.c (read_cutu_die_from_dwo)
468 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
469 (build_type_psymtabs_1): Update.
470 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
471 parameter.
472 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
473 Don't read section. Add assert.
474
475 2020-11-04 Tom Tromey <tromey@adacore.com>
476
477 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
478
479 2020-11-04 Tom Tromey <tromey@adacore.com>
480
481 * ada-typeprint.c (ada_print_type): Handle __T types.
482
483 2020-11-04 Tom Tromey <tromey@adacore.com>
484
485 * dwarf2/read.c (add_partial_symbol, process_die):
486 Handle DW_TAG_array_type.
487 (is_type_tag_for_partial): Add "lang" parameter.
488 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
489
490 2020-11-04 Tom Tromey <tromey@adacore.com>
491
492 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
493
494 2020-11-04 Tom Tromey <tromey@adacore.com>
495
496 * dwarf2/read.c (read_array_type): Only apply stride to innermost
497 array.
498
499 2020-11-04 Tom Tromey <tromey@adacore.com>
500
501 * gdbtypes.c (update_static_array_size): Handle bit stride.
502
503 2020-11-04 Tom Tromey <tromey@adacore.com>
504
505 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
506
507 2020-11-04 Tom Tromey <tromey@adacore.com>
508
509 * ada-lang.c (ada_is_any_packed_array_type): New function.
510 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
511
512 2020-11-04 Tom Tromey <tromey@adacore.com>
513
514 * dwarf2/read.c (recognize_bound_expression)
515 (quirk_ada_thick_pointer): New functions.
516 (read_array_type): Call quirk_ada_thick_pointer.
517 (set_die_type): Add "skip_data_location" parameter.
518 (quirk_ada_thick_pointer): New function.
519 (process_structure_scope): Call quirk_ada_thick_pointer.
520 * ada-lang.c (ada_is_unconstrained_packed_array_type)
521 (decode_packed_array_bitsize): Handle thick pointers without
522 parallel types.
523 (ada_is_gnat_encoded_packed_array_type): Rename from
524 ada_is_packed_array_type.
525 (ada_is_constrained_packed_array_type): Update.
526 * ada-valprint.c (ada_val_print_gnat_array): Remove.
527 (ada_value_print_1): Use ada_get_decoded_value.
528
529 2020-11-04 Tom Tromey <tromey@adacore.com>
530
531 * ada-lang.c (recursively_update_array_bitsize): New function.
532 (decode_constrained_packed_array_type): Call it.
533
534 2020-11-04 Tom Tromey <tromey@adacore.com>
535
536 * ada-lang.c (to_fixed_array_type): Error if
537 decode_constrained_packed_array_type returns NULL.
538
539 2020-11-04 Tom Tromey <tromey@adacore.com>
540
541 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
542
543 2020-11-02 Tom Tromey <tromey@adacore.com>
544
545 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
546 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
547 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
548 * amd64-ravenscar-thread.c: New file.
549 * amd64-ravenscar-thread.h: New file.
550 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
551 * configure.tgt (amd64_tobjs): Add ravenscar objects.
552
553 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * main.c (execute_cmdargs): New function.
556 (captured_main_1): Make use of execute_cmdargs.
557
558 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * NEWS: Mention changes to config file search path.
561 * main.c
562
563 2020-11-02 Tom Tromey <tromey@adacore.com>
564
565 * python/python.c: Consolidate two HAVE_PYTHON blocks.
566 (python_GdbModuleDef): Move earlier. Now static.
567 (do_start_initialization): Consolidate some IS_PY3K blocks.
568
569 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
570
571 * aarch64-linux-tdep.c: Fix indentation.
572 * aarch64-ravenscar-thread.c: Fix indentation.
573 * aarch64-tdep.c: Fix indentation.
574 * aarch64-tdep.h: Fix indentation.
575 * ada-lang.c: Fix indentation.
576 * ada-lang.h: Fix indentation.
577 * ada-tasks.c: Fix indentation.
578 * ada-typeprint.c: Fix indentation.
579 * ada-valprint.c: Fix indentation.
580 * ada-varobj.c: Fix indentation.
581 * addrmap.c: Fix indentation.
582 * addrmap.h: Fix indentation.
583 * agent.c: Fix indentation.
584 * aix-thread.c: Fix indentation.
585 * alpha-bsd-nat.c: Fix indentation.
586 * alpha-linux-tdep.c: Fix indentation.
587 * alpha-mdebug-tdep.c: Fix indentation.
588 * alpha-nbsd-tdep.c: Fix indentation.
589 * alpha-obsd-tdep.c: Fix indentation.
590 * alpha-tdep.c: Fix indentation.
591 * amd64-bsd-nat.c: Fix indentation.
592 * amd64-darwin-tdep.c: Fix indentation.
593 * amd64-linux-nat.c: Fix indentation.
594 * amd64-linux-tdep.c: Fix indentation.
595 * amd64-nat.c: Fix indentation.
596 * amd64-obsd-tdep.c: Fix indentation.
597 * amd64-tdep.c: Fix indentation.
598 * amd64-windows-tdep.c: Fix indentation.
599 * annotate.c: Fix indentation.
600 * arc-tdep.c: Fix indentation.
601 * arch-utils.c: Fix indentation.
602 * arch/arm-get-next-pcs.c: Fix indentation.
603 * arch/arm.c: Fix indentation.
604 * arm-linux-nat.c: Fix indentation.
605 * arm-linux-tdep.c: Fix indentation.
606 * arm-nbsd-tdep.c: Fix indentation.
607 * arm-pikeos-tdep.c: Fix indentation.
608 * arm-tdep.c: Fix indentation.
609 * arm-tdep.h: Fix indentation.
610 * arm-wince-tdep.c: Fix indentation.
611 * auto-load.c: Fix indentation.
612 * auxv.c: Fix indentation.
613 * avr-tdep.c: Fix indentation.
614 * ax-gdb.c: Fix indentation.
615 * ax-general.c: Fix indentation.
616 * bfin-linux-tdep.c: Fix indentation.
617 * block.c: Fix indentation.
618 * block.h: Fix indentation.
619 * blockframe.c: Fix indentation.
620 * bpf-tdep.c: Fix indentation.
621 * break-catch-sig.c: Fix indentation.
622 * break-catch-syscall.c: Fix indentation.
623 * break-catch-throw.c: Fix indentation.
624 * breakpoint.c: Fix indentation.
625 * breakpoint.h: Fix indentation.
626 * bsd-uthread.c: Fix indentation.
627 * btrace.c: Fix indentation.
628 * build-id.c: Fix indentation.
629 * buildsym-legacy.h: Fix indentation.
630 * buildsym.c: Fix indentation.
631 * c-typeprint.c: Fix indentation.
632 * c-valprint.c: Fix indentation.
633 * c-varobj.c: Fix indentation.
634 * charset.c: Fix indentation.
635 * cli/cli-cmds.c: Fix indentation.
636 * cli/cli-decode.c: Fix indentation.
637 * cli/cli-decode.h: Fix indentation.
638 * cli/cli-script.c: Fix indentation.
639 * cli/cli-setshow.c: Fix indentation.
640 * coff-pe-read.c: Fix indentation.
641 * coffread.c: Fix indentation.
642 * compile/compile-cplus-types.c: Fix indentation.
643 * compile/compile-object-load.c: Fix indentation.
644 * compile/compile-object-run.c: Fix indentation.
645 * completer.c: Fix indentation.
646 * corefile.c: Fix indentation.
647 * corelow.c: Fix indentation.
648 * cp-abi.h: Fix indentation.
649 * cp-namespace.c: Fix indentation.
650 * cp-support.c: Fix indentation.
651 * cp-valprint.c: Fix indentation.
652 * cris-linux-tdep.c: Fix indentation.
653 * cris-tdep.c: Fix indentation.
654 * darwin-nat-info.c: Fix indentation.
655 * darwin-nat.c: Fix indentation.
656 * darwin-nat.h: Fix indentation.
657 * dbxread.c: Fix indentation.
658 * dcache.c: Fix indentation.
659 * disasm.c: Fix indentation.
660 * dtrace-probe.c: Fix indentation.
661 * dwarf2/abbrev.c: Fix indentation.
662 * dwarf2/attribute.c: Fix indentation.
663 * dwarf2/expr.c: Fix indentation.
664 * dwarf2/frame.c: Fix indentation.
665 * dwarf2/index-cache.c: Fix indentation.
666 * dwarf2/index-write.c: Fix indentation.
667 * dwarf2/line-header.c: Fix indentation.
668 * dwarf2/loc.c: Fix indentation.
669 * dwarf2/macro.c: Fix indentation.
670 * dwarf2/read.c: Fix indentation.
671 * dwarf2/read.h: Fix indentation.
672 * elfread.c: Fix indentation.
673 * eval.c: Fix indentation.
674 * event-top.c: Fix indentation.
675 * exec.c: Fix indentation.
676 * exec.h: Fix indentation.
677 * expprint.c: Fix indentation.
678 * f-lang.c: Fix indentation.
679 * f-typeprint.c: Fix indentation.
680 * f-valprint.c: Fix indentation.
681 * fbsd-nat.c: Fix indentation.
682 * fbsd-tdep.c: Fix indentation.
683 * findvar.c: Fix indentation.
684 * fork-child.c: Fix indentation.
685 * frame-unwind.c: Fix indentation.
686 * frame-unwind.h: Fix indentation.
687 * frame.c: Fix indentation.
688 * frv-linux-tdep.c: Fix indentation.
689 * frv-tdep.c: Fix indentation.
690 * frv-tdep.h: Fix indentation.
691 * ft32-tdep.c: Fix indentation.
692 * gcore.c: Fix indentation.
693 * gdb_bfd.c: Fix indentation.
694 * gdbarch.sh: Fix indentation.
695 * gdbarch.c: Re-generate
696 * gdbarch.h: Re-generate.
697 * gdbcore.h: Fix indentation.
698 * gdbthread.h: Fix indentation.
699 * gdbtypes.c: Fix indentation.
700 * gdbtypes.h: Fix indentation.
701 * glibc-tdep.c: Fix indentation.
702 * gnu-nat.c: Fix indentation.
703 * gnu-nat.h: Fix indentation.
704 * gnu-v2-abi.c: Fix indentation.
705 * gnu-v3-abi.c: Fix indentation.
706 * go32-nat.c: Fix indentation.
707 * guile/guile-internal.h: Fix indentation.
708 * guile/scm-cmd.c: Fix indentation.
709 * guile/scm-frame.c: Fix indentation.
710 * guile/scm-iterator.c: Fix indentation.
711 * guile/scm-math.c: Fix indentation.
712 * guile/scm-ports.c: Fix indentation.
713 * guile/scm-pretty-print.c: Fix indentation.
714 * guile/scm-value.c: Fix indentation.
715 * h8300-tdep.c: Fix indentation.
716 * hppa-linux-nat.c: Fix indentation.
717 * hppa-linux-tdep.c: Fix indentation.
718 * hppa-nbsd-nat.c: Fix indentation.
719 * hppa-nbsd-tdep.c: Fix indentation.
720 * hppa-obsd-nat.c: Fix indentation.
721 * hppa-tdep.c: Fix indentation.
722 * hppa-tdep.h: Fix indentation.
723 * i386-bsd-nat.c: Fix indentation.
724 * i386-darwin-nat.c: Fix indentation.
725 * i386-darwin-tdep.c: Fix indentation.
726 * i386-dicos-tdep.c: Fix indentation.
727 * i386-gnu-nat.c: Fix indentation.
728 * i386-linux-nat.c: Fix indentation.
729 * i386-linux-tdep.c: Fix indentation.
730 * i386-nto-tdep.c: Fix indentation.
731 * i386-obsd-tdep.c: Fix indentation.
732 * i386-sol2-nat.c: Fix indentation.
733 * i386-tdep.c: Fix indentation.
734 * i386-tdep.h: Fix indentation.
735 * i386-windows-tdep.c: Fix indentation.
736 * i387-tdep.c: Fix indentation.
737 * i387-tdep.h: Fix indentation.
738 * ia64-libunwind-tdep.c: Fix indentation.
739 * ia64-libunwind-tdep.h: Fix indentation.
740 * ia64-linux-nat.c: Fix indentation.
741 * ia64-linux-tdep.c: Fix indentation.
742 * ia64-tdep.c: Fix indentation.
743 * ia64-tdep.h: Fix indentation.
744 * ia64-vms-tdep.c: Fix indentation.
745 * infcall.c: Fix indentation.
746 * infcmd.c: Fix indentation.
747 * inferior.c: Fix indentation.
748 * infrun.c: Fix indentation.
749 * iq2000-tdep.c: Fix indentation.
750 * language.c: Fix indentation.
751 * linespec.c: Fix indentation.
752 * linux-fork.c: Fix indentation.
753 * linux-nat.c: Fix indentation.
754 * linux-tdep.c: Fix indentation.
755 * linux-thread-db.c: Fix indentation.
756 * lm32-tdep.c: Fix indentation.
757 * m2-lang.c: Fix indentation.
758 * m2-typeprint.c: Fix indentation.
759 * m2-valprint.c: Fix indentation.
760 * m32c-tdep.c: Fix indentation.
761 * m32r-linux-tdep.c: Fix indentation.
762 * m32r-tdep.c: Fix indentation.
763 * m68hc11-tdep.c: Fix indentation.
764 * m68k-bsd-nat.c: Fix indentation.
765 * m68k-linux-nat.c: Fix indentation.
766 * m68k-linux-tdep.c: Fix indentation.
767 * m68k-tdep.c: Fix indentation.
768 * machoread.c: Fix indentation.
769 * macrocmd.c: Fix indentation.
770 * macroexp.c: Fix indentation.
771 * macroscope.c: Fix indentation.
772 * macrotab.c: Fix indentation.
773 * macrotab.h: Fix indentation.
774 * main.c: Fix indentation.
775 * mdebugread.c: Fix indentation.
776 * mep-tdep.c: Fix indentation.
777 * mi/mi-cmd-catch.c: Fix indentation.
778 * mi/mi-cmd-disas.c: Fix indentation.
779 * mi/mi-cmd-env.c: Fix indentation.
780 * mi/mi-cmd-stack.c: Fix indentation.
781 * mi/mi-cmd-var.c: Fix indentation.
782 * mi/mi-cmds.c: Fix indentation.
783 * mi/mi-main.c: Fix indentation.
784 * mi/mi-parse.c: Fix indentation.
785 * microblaze-tdep.c: Fix indentation.
786 * minidebug.c: Fix indentation.
787 * minsyms.c: Fix indentation.
788 * mips-linux-nat.c: Fix indentation.
789 * mips-linux-tdep.c: Fix indentation.
790 * mips-nbsd-tdep.c: Fix indentation.
791 * mips-tdep.c: Fix indentation.
792 * mn10300-linux-tdep.c: Fix indentation.
793 * mn10300-tdep.c: Fix indentation.
794 * moxie-tdep.c: Fix indentation.
795 * msp430-tdep.c: Fix indentation.
796 * namespace.h: Fix indentation.
797 * nat/fork-inferior.c: Fix indentation.
798 * nat/gdb_ptrace.h: Fix indentation.
799 * nat/linux-namespaces.c: Fix indentation.
800 * nat/linux-osdata.c: Fix indentation.
801 * nat/netbsd-nat.c: Fix indentation.
802 * nat/x86-dregs.c: Fix indentation.
803 * nbsd-nat.c: Fix indentation.
804 * nbsd-tdep.c: Fix indentation.
805 * nios2-linux-tdep.c: Fix indentation.
806 * nios2-tdep.c: Fix indentation.
807 * nto-procfs.c: Fix indentation.
808 * nto-tdep.c: Fix indentation.
809 * objfiles.c: Fix indentation.
810 * objfiles.h: Fix indentation.
811 * opencl-lang.c: Fix indentation.
812 * or1k-tdep.c: Fix indentation.
813 * osabi.c: Fix indentation.
814 * osabi.h: Fix indentation.
815 * osdata.c: Fix indentation.
816 * p-lang.c: Fix indentation.
817 * p-typeprint.c: Fix indentation.
818 * p-valprint.c: Fix indentation.
819 * parse.c: Fix indentation.
820 * ppc-linux-nat.c: Fix indentation.
821 * ppc-linux-tdep.c: Fix indentation.
822 * ppc-nbsd-nat.c: Fix indentation.
823 * ppc-nbsd-tdep.c: Fix indentation.
824 * ppc-obsd-nat.c: Fix indentation.
825 * ppc-ravenscar-thread.c: Fix indentation.
826 * ppc-sysv-tdep.c: Fix indentation.
827 * ppc64-tdep.c: Fix indentation.
828 * printcmd.c: Fix indentation.
829 * proc-api.c: Fix indentation.
830 * producer.c: Fix indentation.
831 * producer.h: Fix indentation.
832 * prologue-value.c: Fix indentation.
833 * prologue-value.h: Fix indentation.
834 * psymtab.c: Fix indentation.
835 * python/py-arch.c: Fix indentation.
836 * python/py-bpevent.c: Fix indentation.
837 * python/py-event.c: Fix indentation.
838 * python/py-event.h: Fix indentation.
839 * python/py-finishbreakpoint.c: Fix indentation.
840 * python/py-frame.c: Fix indentation.
841 * python/py-framefilter.c: Fix indentation.
842 * python/py-inferior.c: Fix indentation.
843 * python/py-infthread.c: Fix indentation.
844 * python/py-objfile.c: Fix indentation.
845 * python/py-prettyprint.c: Fix indentation.
846 * python/py-registers.c: Fix indentation.
847 * python/py-signalevent.c: Fix indentation.
848 * python/py-stopevent.c: Fix indentation.
849 * python/py-stopevent.h: Fix indentation.
850 * python/py-threadevent.c: Fix indentation.
851 * python/py-tui.c: Fix indentation.
852 * python/py-unwind.c: Fix indentation.
853 * python/py-value.c: Fix indentation.
854 * python/py-xmethods.c: Fix indentation.
855 * python/python-internal.h: Fix indentation.
856 * python/python.c: Fix indentation.
857 * ravenscar-thread.c: Fix indentation.
858 * record-btrace.c: Fix indentation.
859 * record-full.c: Fix indentation.
860 * record.c: Fix indentation.
861 * reggroups.c: Fix indentation.
862 * regset.h: Fix indentation.
863 * remote-fileio.c: Fix indentation.
864 * remote.c: Fix indentation.
865 * reverse.c: Fix indentation.
866 * riscv-linux-tdep.c: Fix indentation.
867 * riscv-ravenscar-thread.c: Fix indentation.
868 * riscv-tdep.c: Fix indentation.
869 * rl78-tdep.c: Fix indentation.
870 * rs6000-aix-tdep.c: Fix indentation.
871 * rs6000-lynx178-tdep.c: Fix indentation.
872 * rs6000-nat.c: Fix indentation.
873 * rs6000-tdep.c: Fix indentation.
874 * rust-lang.c: Fix indentation.
875 * rx-tdep.c: Fix indentation.
876 * s12z-tdep.c: Fix indentation.
877 * s390-linux-tdep.c: Fix indentation.
878 * score-tdep.c: Fix indentation.
879 * ser-base.c: Fix indentation.
880 * ser-mingw.c: Fix indentation.
881 * ser-uds.c: Fix indentation.
882 * ser-unix.c: Fix indentation.
883 * serial.c: Fix indentation.
884 * sh-linux-tdep.c: Fix indentation.
885 * sh-nbsd-tdep.c: Fix indentation.
886 * sh-tdep.c: Fix indentation.
887 * skip.c: Fix indentation.
888 * sol-thread.c: Fix indentation.
889 * solib-aix.c: Fix indentation.
890 * solib-darwin.c: Fix indentation.
891 * solib-frv.c: Fix indentation.
892 * solib-svr4.c: Fix indentation.
893 * solib.c: Fix indentation.
894 * source.c: Fix indentation.
895 * sparc-linux-tdep.c: Fix indentation.
896 * sparc-nbsd-tdep.c: Fix indentation.
897 * sparc-obsd-tdep.c: Fix indentation.
898 * sparc-ravenscar-thread.c: Fix indentation.
899 * sparc-tdep.c: Fix indentation.
900 * sparc64-linux-tdep.c: Fix indentation.
901 * sparc64-nbsd-tdep.c: Fix indentation.
902 * sparc64-obsd-tdep.c: Fix indentation.
903 * sparc64-tdep.c: Fix indentation.
904 * stabsread.c: Fix indentation.
905 * stack.c: Fix indentation.
906 * stap-probe.c: Fix indentation.
907 * stubs/ia64vms-stub.c: Fix indentation.
908 * stubs/m32r-stub.c: Fix indentation.
909 * stubs/m68k-stub.c: Fix indentation.
910 * stubs/sh-stub.c: Fix indentation.
911 * stubs/sparc-stub.c: Fix indentation.
912 * symfile-mem.c: Fix indentation.
913 * symfile.c: Fix indentation.
914 * symfile.h: Fix indentation.
915 * symmisc.c: Fix indentation.
916 * symtab.c: Fix indentation.
917 * symtab.h: Fix indentation.
918 * target-float.c: Fix indentation.
919 * target.c: Fix indentation.
920 * target.h: Fix indentation.
921 * tic6x-tdep.c: Fix indentation.
922 * tilegx-linux-tdep.c: Fix indentation.
923 * tilegx-tdep.c: Fix indentation.
924 * top.c: Fix indentation.
925 * tracefile-tfile.c: Fix indentation.
926 * tracepoint.c: Fix indentation.
927 * tui/tui-disasm.c: Fix indentation.
928 * tui/tui-io.c: Fix indentation.
929 * tui/tui-regs.c: Fix indentation.
930 * tui/tui-stack.c: Fix indentation.
931 * tui/tui-win.c: Fix indentation.
932 * tui/tui-winsource.c: Fix indentation.
933 * tui/tui.c: Fix indentation.
934 * typeprint.c: Fix indentation.
935 * ui-out.h: Fix indentation.
936 * unittests/copy_bitwise-selftests.c: Fix indentation.
937 * unittests/memory-map-selftests.c: Fix indentation.
938 * utils.c: Fix indentation.
939 * v850-tdep.c: Fix indentation.
940 * valarith.c: Fix indentation.
941 * valops.c: Fix indentation.
942 * valprint.c: Fix indentation.
943 * valprint.h: Fix indentation.
944 * value.c: Fix indentation.
945 * value.h: Fix indentation.
946 * varobj.c: Fix indentation.
947 * vax-tdep.c: Fix indentation.
948 * windows-nat.c: Fix indentation.
949 * windows-tdep.c: Fix indentation.
950 * xcoffread.c: Fix indentation.
951 * xml-syscall.c: Fix indentation.
952 * xml-tdesc.c: Fix indentation.
953 * xstormy16-tdep.c: Fix indentation.
954 * xtensa-config.c: Fix indentation.
955 * xtensa-linux-nat.c: Fix indentation.
956 * xtensa-linux-tdep.c: Fix indentation.
957 * xtensa-tdep.c: Fix indentation.
958
959 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
960 Craig Blackmore <craig.blackmore@embecosm.com>
961
962 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
963 as an unsigned value.
964
965 2020-11-01 Tom Tromey <tom@tromey.com>
966
967 * dbxread.c (dbx_end_psymtab): Update.
968 * dwarf2/read.c (process_psymtab_comp_unit_reader)
969 (build_type_psymtabs_reader): Update.
970 * xcoffread.c (xcoff_end_psymtab): Update.
971 * ctfread.c (scan_partial_symbols): Update.
972 * psymtab.c (sort_pst_symbols): Remove.
973 (partial_symtab::end): Rename from end_psymtab_common. Inline
974 sort_pst_symbols.
975 * psympriv.h (struct partial_symtab) <end>: New method.
976 (end_psymtab_common): Don't declare.
977
978 2020-11-01 Tom Tromey <tom@tromey.com>
979
980 * symmisc.c (count_psyms): New function.
981 (print_objfile_statistics): Use it.
982 * psymtab.c (append_psymbol_to_list): Remove.
983 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
984 * objfiles.h (struct objstats) <n_psyms>: Remove.
985
986 2020-11-01 Tom Tromey <tom@tromey.com>
987
988 * dbxread.c (dbx_end_psymtab): Update.
989 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
990 (build_type_psymtabs_reader): Update.
991 * xcoffread.c (xcoff_end_psymtab): Update.
992 * ctfread.c (scan_partial_symbols): Update.
993 * psympriv.h (end_psymtab_common): Update.
994 * psymtab.c (end_psymtab_common): Remove objfile parameter.
995 (sort_pst_symbols): Likewise.
996
997 2020-11-01 Tom Tromey <tom@tromey.com>
998
999 * dbxread.c (dbx_symfile_read): Update.
1000 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1001 * xcoffread.c (xcoff_initial_scan): Update.
1002 * psympriv.h (init_psymbol_list): Don't declare.
1003 * psymtab.c (init_psymbol_list): Remove.
1004
1005 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1006
1007 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1008 gnat_encoded_fixed_type_info. Update all callers.
1009
1010 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1013 line too long.
1014
1015 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1018 cast_from_fixed. Update all callers.
1019 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1020 Update all callers.
1021 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1022 Update all callers.
1023 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1024 ada_scaling_factor.
1025 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1026 to print_gnat_encoded_fixed_point_type.
1027 * ada-valprint.c: Likewise.
1028
1029 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1032 (debug_prefixed_printf): Add check of debug_displaced flag.
1033 * linux-nat.c (linux_nat_debug_printf): Add check of
1034 debug_linux_nat flag.
1035
1036 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * infrun.c (infrun_debug_printf_1): Remove.
1039 (displaced_debug_printf_1): Remove.
1040 (stop_all_threads): Use debug_prefixed_printf.
1041 * infrun.h (infrun_debug_printf_1): Remove.
1042 (infrun_debug_printf): Use debug_prefixed_printf.
1043 (displaced_debug_printf_1): Remove.
1044 (displaced_debug_printf): Use debug_prefixed_printf.
1045 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1046 (linux_nat_debug_printf): Use debug_prefixed_printf.
1047
1048 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * configure: Re-generate.
1051 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1052 AC_LANG_PROGRAM.
1053
1054 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1055
1056 * configure: Re-generate.
1057
1058 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * configure: Re-generate.
1061
1062 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * configure: Re-generate.
1065
1066 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1067
1068 * configure: Re-generate.
1069
1070 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1071
1072 * acinclude.m4: Modernize.
1073 * configure: Re-generate.
1074
1075 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * configure.ac: Modernize.
1078 * configure: Re-generate.
1079
1080 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1081
1082 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1083 * configure: Re-generate.
1084 * configure.ac: Remove AM_PROG_CC_STDC.
1085
1086 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1089 AC_CANONICAL_SYSTEM.
1090 * configure: Re-generate.
1091
1092 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * infrun.h (displaced_debug_printf): New macro. Replace
1095 displaced debug prints throughout to use it.
1096 (displaced_debug_printf_1): New declaration.
1097 (displaced_step_dump_bytes): Return string, remove ui_file
1098 parameter, update all callers.
1099 * infrun.c (displaced_debug_printf_1): New function.
1100 (displaced_step_dump_bytes): Return string, remove ui_file
1101 parameter
1102
1103 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1106
1107 2020-10-30 Tom Tromey <tromey@adacore.com>
1108
1109 * Makefile.in (stamp-init): Depend on config.status.
1110
1111 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1112
1113 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1114
1115 2020-10-30 Pedro Alves <pedro@palves.net>
1116
1117 * thread.c (lookup_selected_frame): Move ...
1118 * frame.c (lookup_selected_frame): ... here.
1119
1120 2020-10-30 Pedro Alves <pedro@palves.net>
1121
1122 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1123 * frame.c
1124 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1125 Use save_selected_frame. Save language as well.
1126 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1127 Use restore_selected_frame, and restore language as well.
1128 (selected_frame_id, selected_frame_level): New.
1129 (selected_frame): Update comments.
1130 (save_selected_frame, restore_selected_frame): New.
1131 (get_selected_frame): Use lookup_selected_frame.
1132 (get_selected_frame_if_set): Delete.
1133 (select_frame): Record selected_frame_level and selected_frame_id.
1134 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1135 fields.
1136 (get_selected_frame): Make 'message' parameter optional.
1137 (get_selected_frame_if_set): Delete declaration.
1138 (select_frame): Update comments.
1139 (save_selected_frame, restore_selected_frame)
1140 (lookup_selected_frame): Declare.
1141 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1142 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1143 New field.
1144 (save_infcall_control_state): Use save_selected_frame.
1145 (restore_selected_frame): Delete.
1146 (restore_infcall_control_state): Use restore_selected_frame.
1147 * stack.c (select_frame_command_core, frame_command_core): Use
1148 get_selected_frame.
1149 * thread.c (restore_selected_frame): Rename to ...
1150 (lookup_selected_frame): ... this and make extern. Select the
1151 current frame if the frame level is -1.
1152 (scoped_restore_current_thread::restore): Also restore the
1153 language.
1154 (scoped_restore_current_thread::~scoped_restore_current_thread):
1155 Don't try/catch.
1156 (scoped_restore_current_thread::scoped_restore_current_thread):
1157 Save the language as well. Use save_selected_frame.
1158
1159 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1162 documentation.
1163 * gdbarch.h: Re-generate.
1164
1165 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1168 parameter.
1169 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1170 Likewise.
1171 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1172 Likewise.
1173 * arch-utils.c (default_displaced_step_hw_singlestep):
1174 Likewise.
1175 * arch-utils.h (default_displaced_step_hw_singlestep):
1176 Likewise.
1177 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1178 Likewise.
1179 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1180 Likewise.
1181 * gdbarch.c: Re-generate.
1182 * gdbarch.h: Re-generate.
1183 * infrun.c (resume_1): Adjust.
1184
1185 2020-10-29 Tom Tromey <tom@tromey.com>
1186
1187 * progspace.c (program_space::~program_space): Don't call
1188 exec_close.
1189
1190 2020-10-29 Tom Tromey <tom@tromey.com>
1191
1192 * exec.c (exec_target::close): Don't change current program
1193 space.
1194
1195 2020-10-29 Tom Tromey <tom@tromey.com>
1196
1197 * symfile.c (add_symbol_file_command): Update.
1198 * exec.c (program_space::add_target_sections): Rename.
1199 * symfile-mem.c (symbol_file_add_from_memory): Update.
1200 * progspace.h (struct program_space) <add_target_sections>:
1201 Declare new overload.
1202 * exec.h (add_target_sections_of_objfile): Don't declare.
1203
1204 2020-10-29 Tom Tromey <tom@tromey.com>
1205
1206 * solib.c (solib_map_sections): Update.
1207 * exec.c (program_space::add_target_sections): Now a method.
1208 (exec_file_attach): Update.
1209 * exec.h (add_target_sections): Don't declare.
1210 * progspace.h (struct program_space) <add_target_sections>:
1211 Declare.
1212
1213 2020-10-29 Tom Tromey <tom@tromey.com>
1214
1215 * progspace.h (struct program_space) <remove_target_sections>:
1216 Declare.
1217 * exec.c (program_space::remove_target_sections): Now a method.
1218 * exec.h (remove_target_sections): Don't declare.
1219
1220 2020-10-29 Tom Tromey <tom@tromey.com>
1221
1222 * inferior.c (delete_inferior): Update.
1223 * progspace.c (program_space::empty): Rename from
1224 program_space_empty_p. Return bool.
1225 * progspace.h (struct program_space) <empty>: New method.
1226 (program_space_empty_p): Don't declare.
1227
1228 2020-10-29 Tom Tromey <tom@tromey.com>
1229
1230 * progspace.c (program_space::~program_space): Don't call
1231 clear_program_space_solib_cache.
1232 (program_space::clear_solib_cache): Rename from
1233 clear_solib_cache.
1234 * solib.c (handle_solib_event): Update.
1235 * progspace.h (struct program_space) <clear_solib_cache>: New
1236 method.
1237 (clear_program_space_solib_cache): Don't declare.
1238
1239 2020-10-29 Tom Tromey <tom@tromey.com>
1240
1241 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1242 * target.c (info_target_command): Update.
1243 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1244 (symbol_file_clear, reread_symbols): Update.
1245 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1246 * stabsread.c (scan_file_globals): Update.
1247 * solib.c (update_solib_list): Update.
1248 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1249 (svr4_fetch_objfile_link_map, enable_break)
1250 (svr4_relocate_main_executable)
1251 (svr4_iterate_over_objfiles_in_search_order): Update.
1252 * solib-frv.c (lm_base, enable_break)
1253 (frv_relocate_main_executable): Update.
1254 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1255 (frv_fetch_objfile_link_map): Update.
1256 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1257 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1258 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1259 * remote.c (remote_target::get_offsets): Update.
1260 (remote_target::start_remote)
1261 (extended_remote_target::post_attach): Update.
1262 * objfiles.c (entry_point_address_query): Update.
1263 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1264 * minsyms.c (get_symbol_leading_char): Update.
1265 * frame.c (inside_main_func): Update.
1266 * progspace.h (symfile_objfile): Remove macro.
1267
1268 2020-10-29 Tom Tromey <tom@tromey.com>
1269
1270 * exec.c (exec_file_attach): Update.
1271 * progspace.c (program_space::exec_close): Update.
1272 * progspace.h (struct program_space) <ebfd>: Now a
1273 gdb_bfd_ref_ptr.
1274 <set_exec_bfd>: Change argument type.
1275 <exec_bfd>: Update.
1276
1277 2020-10-29 Tom Tromey <tom@tromey.com>
1278
1279 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1280 * symfile.c (reread_symbols): Update.
1281 * symfile-mem.c (add_symbol_file_from_memory_command)
1282 (add_vsyscall_page): Update.
1283 * source-cache.c (source_cache::get_plain_source_lines): Update.
1284 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1285 (svr4_current_sos_direct, svr4_exec_displacement)
1286 (svr4_relocate_main_executable): Update.
1287 (svr4_iterate_over_objfiles_in_search_order): Update.
1288 * solib-frv.c (enable_break2, enable_break): Update.
1289 * solib-dsbt.c (lm_base, enable_break): Update.
1290 * solib-darwin.c (find_program_interpreter)
1291 (darwin_solib_create_inferior_hook): Update.
1292 * sol-thread.c (rw_common, ps_pdmodel): Update.
1293 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1294 * remote.c (compare_sections_command)
1295 (remote_target::trace_set_readonly_regions): Update.
1296 * remote-sim.c (get_sim_inferior_data)
1297 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1298 (gdbsim_target_open, gdbsim_target::files_info): Update.
1299 * exec.h (exec_bfd): Remove macro.
1300 * progspace.c (initialize_progspace): Update.
1301 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1302 Update.
1303 * nto-procfs.c (nto_procfs_target::post_attach)
1304 (nto_procfs_target::create_inferior): Update.
1305 * maint.c (maintenance_info_sections): Update.
1306 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1307 Update.
1308 * infcmd.c (post_create_inferior): Update.
1309 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1310 (objfile_find_memory_regions): Update.
1311 * exec.c (validate_exec_file, exec_file_attach)
1312 (exec_read_partial_read_only, print_section_info): Update.
1313 * corelow.c (core_target_open): Update.
1314 * corefile.c (reopen_exec_file, validate_files): Update.
1315 * arm-tdep.c (gdb_print_insn_arm): Update.
1316 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1317 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1318 methods.
1319
1320 2020-10-29 Tom Tromey <tom@tromey.com>
1321
1322 * progspace.h (current_target_sections): Remove macro.
1323 * solib-svr4.c (scan_dyntag): Update.
1324 * solib-dsbt.c (scan_dyntag): Update.
1325 * exec.c (exec_target::close): Update.
1326 (add_target_sections, add_target_sections_of_objfile)
1327 (remove_target_sections, exec_target::get_section_table)
1328 (exec_target::files_info, set_section_command)
1329 (exec_set_section_address, exec_target::has_memory)
1330 (exec_target::has_memory): Update.
1331
1332 2020-10-29 Tom Tromey <tom@tromey.com>
1333
1334 * source-cache.c (source_cache::get_plain_source_lines): Use
1335 current_program_space.
1336 * corefile.c (reopen_exec_file): Use current_program_space.
1337 * exec.c (exec_file_attach): Use current_program_space.
1338 * exec.h (exec_bfd_mtime): Remove.
1339
1340 2020-10-29 Tom Tromey <tom@tromey.com>
1341
1342 * gcore.c (default_gcore_mach): Remove.
1343 (create_gcore_bfd): Update.
1344
1345 2020-10-29 Tom Tromey <tom@tromey.com>
1346
1347 * progspace.c (program_space::exec_close): New method, from
1348 exec_close in exec.c.
1349 * exec.c (exec_close): Move to progspace.c.
1350 (exec_target::close, exec_file_attach): Update.
1351 * progspace.h (struct program_space) <exec_close>: Declare
1352 method.
1353
1354 2020-10-29 Tom Tromey <tom@tromey.com>
1355
1356 * progspace.h (struct program_space) <exec_filename>: Rename from
1357 pspace_exec_filename. Now a unique_xmalloc_ptr.
1358 * inferior.c (print_selected_inferior): Update.
1359 (print_inferior): Update.
1360 * mi/mi-main.c (print_one_inferior): Update.
1361 * exec.h (exec_filename): Remove macro.
1362 * corefile.c (get_exec_file): Update.
1363 * exec.c (exec_close): Update.
1364 (exec_file_attach): Update.
1365 * progspace.c (clone_program_space): Update.
1366 (print_program_space): Update.
1367
1368 2020-10-29 Tom Tromey <tom@tromey.com>
1369
1370 * target-section.h (struct target_section): Add constructor.
1371 * exec.c (build_section_table, add_target_sections_of_objfile):
1372 Update.
1373 * corelow.c (core_target::build_file_mappings): Update.
1374
1375 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1376
1377 PR gdb/19318
1378 * inferior.c (detach_inferior_command): Restore the current thread.
1379 (kill_inferior_command): Ditto.
1380
1381 2020-10-28 Tom de Vries <tdevries@suse.de>
1382
1383 PR symtab/26772
1384 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1385 map, check it in the "best match" loop.
1386
1387 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1388
1389 * m32c-tdep.c: Remove unused includes.
1390
1391 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * xtensa-tdep.c: Remove includes.
1394
1395 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1396
1397 * breakpoint.c (struct condition_command_opts): New struct.
1398 (condition_command_option_defs): New static global.
1399 (make_condition_command_options_def_group): New function.
1400 (condition_completer): Update to consider the '-force' flag.
1401 (condition_command): Use gdb::option for the '-force' flag.
1402
1403 2020-10-27 Tom de Vries <tdevries@suse.de>
1404
1405 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1406 symbols in section check.
1407
1408 2020-10-27 Tom de Vries <tdevries@suse.de>
1409
1410 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1411
1412 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1413
1414 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1415 * breakpoint.c: Update the help text of the 'condition' and 'break'
1416 commands.
1417 (set_breakpoint_condition): Take a new bool parameter
1418 to control whether condition definition should be forced even when
1419 the condition expression is invalid in all of the current locations.
1420 (condition_command): Update the call to 'set_breakpoint_condition'.
1421 (find_condition_and_thread): Take the "-force-condition" flag into
1422 account.
1423 * linespec.c (linespec_keywords): Add "-force-condition" as an
1424 element.
1425 (FORCE_KEYWORD_INDEX): New #define.
1426 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1427 as a keyword.
1428 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1429 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1430 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1431 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1432
1433 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434
1435 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1436 * breakpoint.c (set_breakpoint_location_condition): New function.
1437 (set_breakpoint_condition): Disable a breakpoint location if parsing
1438 the condition string gives an error.
1439 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1440 (build_target_condition_list): Ditto.
1441 (build_target_command_list): Ditto.
1442 (build_bpstat_chain): Ditto.
1443 (print_one_breakpoint_location): Ditto.
1444 (print_one_breakpoint): Ditto.
1445 (breakpoint_1): Ditto.
1446 (bp_location::bp_location): Ditto.
1447 (locations_are_equal): Ditto.
1448 (update_breakpoint_locations): Ditto.
1449 (enable_disable_bp_num_loc): Ditto.
1450 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1451 (find_condition_and_thread_for_sals): New static function.
1452 (create_breakpoint): Call find_condition_and_thread_for_sals.
1453 (location_to_sals): Call find_condition_and_thread_for_sals instead
1454 of find_condition_and_thread.
1455
1456 2020-10-26 Tom de Vries <tdevries@suse.de>
1457
1458 * dwarf2/read.c (process_full_comp_unit): Call
1459 dwarf2_find_base_address.
1460
1461 2020-10-26 Tom Tromey <tromey@adacore.com>
1462
1463 * gdbtypes.c (create_range_type): Revert previous patch. Add
1464 comment.
1465
1466 2020-10-26 Pedro Alves <pedro@palves.net>
1467
1468 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1469 (my_waitpid): Use gdb::handle_eintr.
1470
1471 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 * acinclude.m4: Update ptrace.m4 path.
1474 * ptrace.m4: Moved to gdbsupport.
1475
1476 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1479 instead of target_gdbarch.
1480
1481 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * jit.c (jit_reader_load_command): Pass current inferior.
1484 (jit_inferior_init): Change parameter type to inferior, use it.
1485 (jit_inferior_created): Remove.
1486 (jit_inferior_created_hook): Pass inferior parameter down.
1487 (_initialize_jit): Use jit_inferior_created_hook instead of
1488 jit_inferior_created.
1489 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1490 * infrun.c (follow_exec): Pass inferior to
1491 jit_inferior_created_hook.
1492
1493 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1496 parameter and use it.
1497 (thread_db_inferior_created): Pass inferior argument.
1498
1499 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * aix-thread.c (aix_thread_inferior_created): Add inferior
1502 parameter.
1503 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1504 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1505 * jit.c (jit_inferior_created): Likewise.
1506 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1507 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1508 * observable.h (inferior_created): Likewise.
1509 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1510 * symfile-mem.c (add_vsyscall_page): Likewise.
1511 * infcmd.c (post_create_inferior): Pass inferior argument.
1512
1513 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1514
1515 GDB 10.1 released.
1516
1517 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1518
1519 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1520 to ada_check_typedef.
1521
1522 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * f-exp.y (f_parse): Rename to...
1525 (f_language::parser): ...this.
1526 * f-lang.c (f_get_encoding): Rename to...
1527 (f_language::get_encoding): ...this.
1528 (f_op_print_tab): Rename to...
1529 (f_language::op_print_tab): ...this.
1530 (exp_descriptor_f): Rename to...
1531 (f_language::exp_descriptor_tab): ...this.
1532 (class f_language): Moved to f-lang.h.
1533 (f_language::language_arch_info): New function, moved out of class
1534 declaration.
1535 (f_language::search_name_hash): Likewise.
1536 (f_language::lookup_symbol_nonlocal): Likewise.
1537 (f_language::get_symbol_name_matcher_inner): Likewise.
1538 * f-lang.h: Add 'valprint.h' include.
1539 (class f_language): Moved here from f-lang.c.
1540 * f-typeprint.c (f_type_print_args): Delete commented out
1541 declaration.
1542 (f_print_typedef): Rename to...
1543 (f_language::print_typedef): ...this.
1544 (f_print_type): Rename to...
1545 (f_language::print_type): ...this.
1546 (f_type_print_varspec_prefix): Delete declaration and rename to...
1547 (f_language::f_type_print_varspec_prefix): ...this.
1548 (f_type_print_varspec_suffix): Delete declaration and rename to...
1549 (f_language::f_type_print_varspec_suffix): ...this.
1550 (f_type_print_base): Delete declaration and rename to...
1551 (f_language::f_type_print_base): ...this.
1552 * f-valprint.c (f_value_print_inner): Rename to...
1553 (f_language::value_print_inner): ...this.
1554 * parse.c: Delete 'f-lang.h' include.
1555
1556 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * language.h (language_defn::print_type): Add variable names in
1559 declaration, and update header comment.
1560
1561 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * ada-lang.c (ada_language::demangle): Rename to...
1564 (ada_language::demangle_symbol): ...this.
1565 * c-lang.c (cplus_language::demangle): Rename to...
1566 (cplus_language::demangle_symbol): ...this.
1567 * d-lang.c (d_language::demangle): Rename to...
1568 (d_language::demangle_symbol): ...this.
1569 * f-lang.c (f_language::demangle): Rename to...
1570 (f_language::demangle_symbol): ...this.
1571 * go-lang.c (go_language::demangle): Rename to...
1572 (go_language::demangle_symbol): ...this.
1573 * language.c (language_demangle): Update call to demangle_symbol.
1574 (auto_or_unknown_language::demangle): Rename to...
1575 (auto_or_unknown_language::demangle_symbol): ...this.
1576 * language.h (language_defn::demangle): Rename to...
1577 (language_defn::demangle_symbol): ...this.
1578 * objc-lang.c (objc_language::demangle): Rename to...
1579 (objc_language::demangle_symbol): ...this.
1580 * rust-lang.c (rust_language::demangle): Rename to...
1581 (rust_language::demangle_symbol): ...this.
1582
1583 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1584
1585 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1586 (iterate_over_file_blocks): Replace use of macro with the macros
1587 definition.
1588
1589 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1592 * valprint.c (maybe_print_array_index): Replace use of macro with
1593 the macros definition.
1594
1595 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * ada-lang.c (ada_language::print_array_index): Call value_print
1598 directly.
1599 * language.c (language_defn::print_array_index): Likewise.
1600 * language.h (LA_VALUE_PRINT): Delete.
1601 * valprint.c (value_print): Call value_print on the
1602 current_language directly.
1603
1604 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * language.h (LA_PRINT_TYPEDEF): Delete.
1607 * typeprint.c (typedef_print): Call print_typedef directly on the
1608 current_language object.
1609
1610 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * m2-exp.y (m2_parse): Rename to...
1613 (m2_language::parser): ...this. Update function signature.
1614 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1615 (m2_op_print): Rename to...
1616 (m2_language::op_print_tab): ...this, and make const.
1617 (exp_descriptor_modula2): Rename to...
1618 (m2_language::exp_descriptor_modula2): ...this.
1619 (class m2_language): Move to m2-lang.h.
1620 (m2_language::language_arch_info): New function, moved out of
1621 class declaration.
1622 (m2_language::printchar): New function, body from m2_printchar.
1623 (m2_language::printstr): New function, moved out of class
1624 declaration.
1625 (m2_language::emitchar): Likewise.
1626 * m2-lang.h (m2_parse): Delete declaration.
1627 (m2_print_typedef): Delete declaration.
1628 (m2_value_print_inner): Delete declaration.
1629 (class m2_language): Class declaration moved from m2-lang.c,
1630 larger functions are left in m2-lang.c.
1631 * m2-typeprint.c (m2_print_typedef): Rename to...
1632 (m2_language::print_typedef): ...this, and update function
1633 signature.
1634 * m2-valprint.c (m2_value_print_inner): Rename to...
1635 (m2_language::value_print_inner): ...this, replace use of
1636 LA_PRINT_STRING with a direct call to printstr member function,
1637 and update recursive call.
1638
1639 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * language.c (default_is_string_type_p): Delete, implementation
1642 moved into auto_or_unknown_language::is_string_type_p.
1643 (unk_op_print_tab): Moved into
1644 auto_or_unknown_language::opcode_print_table.
1645 (unknown_language_arch_info): Delete, implementation moved into
1646 auto_or_unknown_language::language_arch_info.
1647 (class auto_or_unknown_language): New class, member functions
1648 copied from unknown_language class, with some updates.
1649 (class unknown_language): Most member functions moved into
1650 auto_or_unknown_language class. Inherit from
1651 auto_or_unknown_language class.
1652 (class auto_language): Inherit from auto_or_unknown_language.
1653 Delete most member functions.
1654
1655 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1656
1657 * stabsread.c (read_member_functions): Remove gdb_assert.
1658
1659 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1660
1661 * gdbtypes.c (init_complex_type): Check target type name.
1662
1663 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * target-debug.h (target_debug_print_struct_target_ops_p):
1666 Remove.
1667 (target_debug_print_async_callback_ftype_p): Remove.
1668 (target_debug_print_struct_trace_state_variable_p): Remove.
1669 (target_debug_print_struct_traceframe_info_p): Remove.
1670 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1671 (target_debug_print_enum_btrace_format): Remove.
1672 (target_debug_print_enum_info_proc_what): Remove.
1673 (target_debug_print_thread_info_pp): Remove.
1674
1675 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1676
1677 * target.h (struct target_ops) <make_corefile_notes>:
1678 Change return type to unique pointer.
1679 * target.c (dummy_make_corefile_notes): Likewise.
1680 * exec.c (struct exec_target) <make_corefile_notes>:
1681 Likewise.
1682 (exec_target::make_corefile_notes): Likewise.
1683 * procfs.c (class procfs_target) <make_corefile_notes>:
1684 Likewise.
1685 (procfs_do_thread_registers): Adjust to unique pointer.
1686 (struct procfs_corefile_thread_data): Add constructor.
1687 <note_data>: Change type to unique pointer.
1688 (procfs_corefile_thread_callback): Adjust to unique pointer.
1689 (procfs_target::make_corefile_notes): Change return type to
1690 unique pointer.
1691 * target-delegates.c: Re-generate.
1692 * gcore.c (write_gcore_file_1): Adjust.
1693 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1694 New.
1695
1696 2020-10-22 Tom de Vries <tdevries@suse.de>
1697
1698 * block.c (find_block_in_blockvector): Make sure the returned block
1699 contains pc.
1700
1701 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 PR gdb/26693
1704 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1705 parameter.
1706 (load_cu): Pass existing CU.
1707 (process_imported_unit_die): Likewise.
1708 (follow_die_offset): Likewise.
1709
1710 2020-10-22 Luis Machado <luis.machado@linaro.org>
1711
1712 * corelow.c (core_target::xfer_partial): Also check for an empty
1713 m_core_unavailable_mappings vector.
1714
1715 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1718 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1719 * f-exp.y (arglist): Allow for a series of subranges.
1720 (subrange): Add cases for subranges with strides.
1721 * f-lang.c (value_f90_subarray): Catch use of array strides and
1722 throw an error.
1723 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1724
1725 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * expprint.c (print_subexp_standard): Change enum range_type to
1728 range_flag and rename variables to match.
1729 (dump_subexp_body_standard): Likewise.
1730 * expression.h (enum range_type): Rename to...
1731 (enum range_flag): ...this.
1732 (range_types): Rename to...
1733 (range_flags): ...this.
1734 * f-lang.c (value_f90_subarray): Change enum range_type to
1735 range_flag and rename variables to match.
1736 * parse.c (operator_length_standard): Likewise.
1737 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1738 range_type to range_flag.
1739 * rust-lang.c (rust_evaluate_funcall): Likewise.
1740 (rust_range): Likewise.
1741 (rust_compute_range): Likewise.
1742 (rust_subscript): Likewise.
1743
1744 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * expprint.c (print_subexp_standard): Update to reflect changes to
1747 enum range_type.
1748 (dump_subexp_body_standard): Likewise.
1749 * expression.h (enum range_type): Convert to a bit field enum, and
1750 make the enum unsigned.
1751 * f-exp.y (subrange): Update to reflect changes to enum
1752 range_type.
1753 * f-lang.c (value_f90_subarray): Likewise.
1754 * parse.c (operator_length_standard): Likewise.
1755 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1756 * rust-lang.c (rust_range): Likewise.
1757 (rust_compute_range): Likewise.
1758 (rust_subscript): Likewise.
1759
1760 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1761
1762 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1763 (displaced_step_in_progress): Fix comment.
1764
1765 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1768 * gdbarch.c: Re-generate.
1769 * gdbarch.h: Re-generate.
1770 * gcore.c (write_gcore_file_1): Adjust.
1771 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1772 constructor.
1773 <note_data>: Change type to unique pointer.
1774 <abort_iteration>: Change type to bool.
1775 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1776 (fbsd_collect_thread_registers): Return void, adjust.
1777 (struct fbsd_corefile_thread_data): Add construtor.
1778 <note_data>: Change type to unique pointer.
1779 (fbsd_corefile_thread): Adjust.
1780 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1781 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1782 to unique pointer, adjust.
1783 (struct linux_collect_regset_section_cb_data): Add constructor.
1784 <note_data>: Change type to unique pointer.
1785 <abort_iteration>: Change type to bool.
1786 (linux_collect_thread_registers): Return void, adjust.
1787 (struct linux_corefile_thread_data): Add constructor.
1788 <note_data>: Change type to unique pointer.
1789 (linux_corefile_thread): Adjust.
1790 (linux_make_corefile_notes): Return unique pointer, adjust.
1791
1792 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1793
1794 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1795 * gdbarch.c: Re-generate.
1796 * gdbarch.h: Re-generate.
1797 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1798 bool.
1799 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1800 Likewise.
1801 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1802 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1803 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1804 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1805
1806 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * gdbarch.sh: Make generated predicates return bool.
1809 * gdbarch.c: Re-generate.
1810 * gdbarch.h: Re-generate.
1811
1812 2020-10-20 Tom Tromey <tom@tromey.com>
1813
1814 * varobj-iter.h (struct varobj_item): Remove typedef.
1815
1816 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1817
1818 * infrun.c (currently_stepping): Change int to bool
1819 (maybe_software_singlestep): Likewise.
1820 (show_stop_on_solib_events): Likewise.
1821 (stepping_past_nonsteppable_watchpoint): Likewise.
1822 (displaced_step_in_progress_any_inferior): Likewise.
1823 (displaced_step_in_progress_thread): Likewise.
1824 (keep_going_stepped_thread): Likewise.
1825 (thread_still_needs_step_over): Likewise.
1826 (start_step_over): Likewise.
1827 (do_target_resume): Likewise.
1828 (resume_1): Likewise.
1829 (clear_proceed_status): Likewise.
1830 (thread_still_needs_step_over_bp): Likewise.
1831 (proceed): Likewise.
1832 (switch_back_to_stepped_thread): Likewise.
1833 (adjust_pc_after_break): Likewise.
1834 (stepped_in_from): Likewise.
1835 (handle_stop_requested): Likewise.
1836 (handle_syscall_event): Likewise.
1837 (handle_no_resumed): Likewise.
1838 (handle_inferior_event): Likewise.
1839 (finish_step_over): Likewise.
1840 (handle_signal_stop): Likewise.
1841 (process_event_stop_test): Likewise.
1842
1843 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 * infrun.c (get_displaced_stepping_state): Fix comment.
1846
1847 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1848
1849 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1850
1851 2020-10-19 Tom Tromey <tromey@adacore.com>
1852
1853 PR tui/26719
1854 * tui/tui-winsource.h (struct tui_source_window_base)
1855 <refresh_window>: Rename from refresh_pad.
1856 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1857 Rename from refresh_pad.
1858 (tui_source_window_base::show_source_content)
1859 (tui_source_window_base::do_scroll_horizontal): Update.
1860
1861 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 * thread.c (_initialize_thread): Fine-tune the help text of
1864 'info threads'.
1865
1866 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1867
1868 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1869
1870 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1871
1872 * breakpoint.c (handle_jit_event): Add an argument, change how
1873 `jit_event_handler` is called.
1874
1875 2020-10-17 Tom Tromey <tom@tromey.com>
1876
1877 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1878 (scan_xcoff_symtab): Update.
1879 * psymtab.h (class psymtab_storage) <global_psymbols,
1880 static_psymbols, current_global_psymbols,
1881 current_static_psymbols>: Remove.
1882 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1883 (match_partial_symbol, lookup_partial_symbol): Update.
1884 (print_partial_symbols): Change parameters.
1885 (dump_psymtab, recursively_search_psymtabs)
1886 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1887 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1888 (concat): Remove.
1889 (end_psymtab_common): Simplify.
1890 (append_psymbol_to_list): Change parameters.
1891 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1892 (init_psymbol_list): Simplify.
1893 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1894 * psympriv.h (struct partial_symtab) <empty>: New method.
1895 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1896 Remove.
1897 <global_psymbols, static_psymbols>: New members.
1898 <add_psymbol>: New methods.
1899 (add_psymbol_to_list): Don't declare.
1900 (psymbol_placement): Move earlier.
1901 * mdebugread.c (parse_partial_symbols): Update.
1902 (handle_psymbol_enumerators): Change parameters.
1903 (mdebug_expand_psymtab): Update.
1904 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1905 (add_partial_symbol): Update.
1906 * dwarf2/index-write.c (write_psymbols): Change parameters.
1907 (write_one_signatured_type): Update.
1908 (recursively_count_psymbols): Update.
1909 (recursively_write_psymbols): Update.
1910 (class debug_names) <recursively_write_psymbols>: Update.
1911 <write_psymbols>: Change parameters.
1912 <write_one_signatured_type>: Update.
1913 * dbxread.c (read_dbx_symtab): Update.
1914 (dbx_end_psymtab): Use partial_symtab::empty.
1915 * ctfread.c (struct ctf_context) <pst>: New member.
1916 (create_partial_symtab): Set it.
1917 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1918 (scan_partial_symbols): Use the psymtab's context. Update.
1919
1920 2020-10-17 Tom Tromey <tom@tromey.com>
1921
1922 * valprint.c (generic_value_print): Remove comment.
1923 * m2-valprint.c (m2_value_print_inner): Remove comment.
1924 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1925 type.
1926
1927 2020-10-17 Tom de Vries <tdevries@suse.de>
1928
1929 PR symtab/26317
1930 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1931 symbol main.
1932
1933 2020-10-14 Tom de Vries <tdevries@suse.de>
1934
1935 PR gdb/26733
1936 * solib.c (solib_contains_address_p): Handle
1937 'solib->sections == nullptr'.
1938
1939 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 PR gdb/26642
1942 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1943 target can't do async.
1944 * target.c (target_wait): Assert that we don't pass
1945 TARGET_WNOHANG to a target that can't async.
1946
1947 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1948
1949 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1950 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1951 * alpha-bsd-nat.c: Adjust include.
1952 * alpha-bsd-tdep.h: Adjust comment.
1953 * alpha-nbsd-tdep.c: Rename to ...
1954 * alpha-netbsd-tdep.c: ... this, adjust include.
1955 * amd64-nbsd-nat.c: Rename to ...
1956 * amd64-netbsd-nat.c: ... this, adjust include.
1957 * amd64-nbsd-tdep.c: Rename to ...
1958 * amd64-netbsd-tdep.c: ... this, adjust include.
1959 * amd64-tdep.h: Adjust include.
1960 * arm-nbsd-nat.c: Rename to ...
1961 * arm-netbsd-nat.c: ... this, adjust include.
1962 * arm-nbsd-tdep.c: Rename to ...
1963 * arm-netbsd-tdep.c: ... this, adjust include.
1964 * arm-nbsd-tdep.h: Rename to ...
1965 * arm-netbsd-tdep.h: ... this, adjust include.
1966 * configure.nat: Adjust file lists.
1967 * configure.tgt: Likewise.
1968 * hppa-nbsd-nat.c: Rename to ...
1969 * hppa-netbsd-nat.c: ... this, adjust include.
1970 * hppa-nbsd-tdep.c: Rename to ...
1971 * hppa-netbsd-tdep.c: ... this, adjust include.
1972 * i386-nbsd-nat.c: Rename to ...
1973 * i386-netbsd-nat.c: ... this, adjust include.
1974 * i386-nbsd-tdep.c: Rename to ...
1975 * i386-netbsd-tdep.c: ... this, adjust include.
1976 * m68k-bsd-nat.c: Adjust include.
1977 * mips-nbsd-nat.c: Rename to ...
1978 * mips-netbsd-nat.c: ... this, adjust include.
1979 * mips-nbsd-tdep.c: Rename to ...
1980 * mips-netbsd-tdep.c: ... this, adjust include.
1981 * mips-nbsd-tdep.h: Rename to ...
1982 * mips-netbsd-tdep.h: ... this.
1983 * nbsd-nat.c: Rename to ...
1984 * netbsd-nat.c: ... this, adjust include.
1985 * nbsd-nat.h: Rename to ...
1986 * netbsd-nat.h: ... this, adjust include.
1987 * nbsd-tdep.c: Rename to ...
1988 * netbsd-tdep.c: ... this, adjust include.
1989 * nbsd-tdep.h: Rename to ...
1990 * netbsd-tdep.h: ... this.
1991 * ppc-nbsd-nat.c: Rename to ...
1992 * ppc-netbsd-nat.c: ... this, adjust include.
1993 * ppc-nbsd-tdep.c: Rename to ...
1994 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1995 * ppc-nbsd-tdep.h: Rename to ...
1996 * ppc-netbsd-tdep.h: ... this.
1997 * sh-nbsd-nat.c: Rename to ...
1998 * sh-netbsd-nat.c: ... this, adjust include.
1999 * sh-nbsd-tdep.c: Rename to ...
2000 * sh-netbsd-tdep.c: ... this, adjust include.
2001 * sparc-nbsd-nat.c: Rename to ...
2002 * sparc-netbsd-nat.c: ... this.
2003 * sparc-nbsd-tdep.c: Rename to ...
2004 * sparc-netbsd-tdep.c: ... this, adjust include.
2005 * sparc64-nbsd-nat.c: Rename to ...
2006 * sparc64-netbsd-nat.c: ... this.
2007 * sparc64-nbsd-tdep.c: Rename to ...
2008 * sparc64-netbsd-tdep.c: ... this, adjust include.
2009 * sparc64-tdep.h: Adjust comment.
2010 * vax-bsd-nat.c: Adjust include.
2011 * vax-nbsd-tdep.c: Rename to ...
2012 * vax-netbsd-tdep.c: ... this, adjust include.
2013
2014 2020-10-12 Tom Tromey <tom@tromey.com>
2015
2016 * target.h (struct target_ops) <get_section_table>: Update.
2017 (target_get_section_table): Update.
2018 * target.c (target_get_section_table, target_section_by_addr)
2019 (memory_xfer_partial_1): Update.
2020 * target-section.h (target_section_table): Now an alias.
2021 * target-delegates.c: Rebuild.
2022 * target-debug.h (target_debug_print_target_section_table_p):
2023 Rename from target_debug_print_struct_target_section_table_p.
2024 * symfile.c (build_section_addr_info_from_section_table): Update.
2025 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2026 * solib-svr4.c (scan_dyntag): Update.
2027 * solib-dsbt.c (scan_dyntag): Update.
2028 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2029 Update.
2030 * record-full.c (record_full_core_target::xfer_partial): Update.
2031 * progspace.h (struct program_space) <target_sections>: Update.
2032 * exec.h (print_section_info): Update.
2033 * exec.c (exec_target::close, build_section_table)
2034 (add_target_sections, add_target_sections_of_objfile)
2035 (remove_target_sections, exec_on_vfork)
2036 (section_table_available_memory)
2037 (section_table_xfer_memory_partial)
2038 (exec_target::get_section_table, exec_target::xfer_partial)
2039 (print_section_info, set_section_command)
2040 (exec_set_section_address, exec_target::has_memory): Update.
2041 * corelow.c (core_target::build_file_mappings)
2042 (core_target::xfer_partial, core_target::info_proc_mappings)
2043 (core_target::info_proc_mappings): Update.
2044 * bfd-target.c (class target_bfd): Update
2045
2046 2020-10-12 Tom Tromey <tom@tromey.com>
2047
2048 * progspace.c (program_space::~program_space): Don't call
2049 clear_section_table.
2050 * exec.h (clear_section_table): Don't declare.
2051 * exec.c (exec_target::close): Update.
2052 (clear_section_table): Remove.
2053
2054 2020-10-12 Tom Tromey <tom@tromey.com>
2055
2056 * exec.c (add_target_sections_of_objfile): Simplify.
2057
2058 2020-10-12 Tom Tromey <tom@tromey.com>
2059
2060 * solib.c (solib_map_sections): Update.
2061 * record-full.c (record_full_core_open_1): Update.
2062 * exec.h (build_section_table): Return a target_section_table.
2063 * exec.c (exec_file_attach): Update.
2064 (build_section_table): Return a target_section_table.
2065 * corelow.c (core_target::core_target): Update.
2066 * bfd-target.c (target_bfd::target_bfd): Update.
2067
2068 2020-10-12 Tom Tromey <tom@tromey.com>
2069
2070 * target.c (target_section_by_addr, memory_xfer_partial_1):
2071 Update.
2072 * target-section.h (struct target_section_table): Use
2073 std::vector.
2074 * symfile.h (build_section_addr_info_from_section_table): Take a
2075 target_section_table.
2076 * symfile.c (build_section_addr_info_from_section_table): Take a
2077 target_section_table.
2078 * solist.h (struct so_list) <sections>: Change type.
2079 <sections_end>: Remove.
2080 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2081 (solib_contains_address_p): Update.
2082 * solib-svr4.c (scan_dyntag): Update.
2083 * solib-dsbt.c (scan_dyntag): Update.
2084 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2085 Update.
2086 * record-full.c (record_full_core_start, record_full_core_end):
2087 Remove.
2088 (record_full_core_sections): New global.
2089 (record_full_core_open_1, record_full_core_target::xfer_partial):
2090 Update.
2091 * exec.h (build_section_table, section_table_xfer_memory_partial)
2092 (add_target_sections): Take a target_section_table.
2093 * exec.c (exec_file_attach, clear_section_table): Update.
2094 (resize_section_table): Remove.
2095 (build_section_table, add_target_sections): Take a
2096 target_section_table.
2097 (add_target_sections_of_objfile, remove_target_sections)
2098 (exec_on_vfork): Update.
2099 (section_table_available_memory): Take a target_section_table.
2100 (section_table_read_available_memory): Update.
2101 (section_table_xfer_memory_partial): Take a target_section_table.
2102 (print_section_info, set_section_command)
2103 (exec_set_section_address, exec_target::has_memory): Update.
2104 * corelow.c (class core_target) <m_core_section_table,
2105 m_core_file_mappings>: Remove braces.
2106 <~core_target>: Remove.
2107 (core_target::core_target): Update.
2108 (core_target::~core_target): Remove.
2109 (core_target::build_file_mappings)
2110 (core_target::xfer_memory_via_mappings)
2111 (core_target::xfer_partial, core_target::info_proc_mappings):
2112 Update.
2113 * bfd-target.c (target_bfd::xfer_partial): Update.
2114 (target_bfd::target_bfd): Update.
2115 (target_bfd::~target_bfd): Remove.
2116
2117 2020-10-12 Tom Tromey <tom@tromey.com>
2118
2119 * target.h (struct target_section, struct target_section_table):
2120 Move to target-section.h.
2121 * target-section.h: New file.
2122
2123 2020-10-12 Pedro Alves <pedro@palves.net>
2124
2125 PR exp/26602
2126 * valops.c (struct struct_field_searcher): New.
2127 (update_search_result): Rename to ...
2128 (struct_field_searcher::update_result): ... this. Simplify
2129 prototype. Record all found fields.
2130 (do_search_struct_field): Rename to ...
2131 (struct_field_searcher::search): ... this. Simplify prototype.
2132 Maintain stack of visited baseclass path. Call update_result for
2133 fields too. Keep searching fields in baseclasses instead of
2134 stopping at the first found field.
2135 (search_struct_field): Use struct_field_searcher. When looking
2136 for fields, report ambiguous access attempts.
2137
2138 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * frame.c (inside_main_func): Check full symbols as well as
2141 minimal symbols.
2142
2143 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2144
2145 * ada-lang.c (advance_wild_match): Rewrite the function's
2146 description. Change the type of target0, t0 and t1 to char.
2147
2148 2020-10-09 Tom Tromey <tromey@adacore.com>
2149
2150 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2151
2152 2020-10-09 Tom Tromey <tromey@adacore.com>
2153
2154 * ada-lang.h (ada_encode): Return std::string.
2155 * ada-lang.c (ada_encode_1): Return std::string.
2156 (ada_encode): Likewise.
2157 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2158 Update.
2159 * ada-exp.y (block_lookup, write_var_or_type): Update.
2160
2161 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2162
2163 PR exp/26714
2164 * printcmd.c (print_formatted): Handle void results as
2165 unformatted prints.
2166
2167 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * arch/aarch32.c (aarch32_create_target_description): Release the
2170 target_desc_up as late as possible.
2171 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2172 * arch/amd64.c (amd64_create_target_description): Likewise.
2173 * arch/arc.c (arc_create_target_description): Return a
2174 target_desc_up, don't release it.
2175 * arch/arc.h (arc_create_target_description): Update declaration.
2176 (arc_lookup_target_description): Move target_desc_up into the
2177 cache, and return a borrowed pointer.
2178 * arch/arm.c (arm_create_target_description): Release the
2179 target_desc_up as late as possible.
2180 * arch/i386.c (i386_create_target_description): Likewise.
2181 * arch/riscv.h (riscv_create_target_description): Update
2182 declaration to match definition.
2183 * arch/tic6x.c (tic6x_create_target_description): Release the
2184 target_desc_up as late as possible.
2185
2186 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2189 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2190
2191 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2192
2193 * source.c (directory_command): Notify observers that "directories"
2194 parameter has changed.
2195
2196 2020-10-08 Tom Tromey <tom@tromey.com>
2197
2198 * cli/cli-cmds.c (print_disassembly): Style function name and
2199 addresses. Add _() wrappers.
2200
2201 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2202
2203 * NEWS: Mention ARC support in GDBserver.
2204
2205 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * arch/aarch32.c (aarch32_create_target_description): Release
2208 unique_ptr returned from allocate_target_description.
2209 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2210 * arch/amd64.c (amd64_create_target_description): Likewise.
2211 * arch/arc.c (arc_create_target_description): Likewise.
2212 * arch/arm.c (arm_create_target_description): Likewise.
2213 * arch/i386.c (i386_create_target_description): Likewise.
2214 * arch/riscv.c (riscv_create_target_description): Update return
2215 type. Handle allocate_target_description returning a unique_ptr.
2216 (riscv_lookup_target_description): Update to handle unique_ptr.
2217 * arch/tic6x.c (tic6x_create_target_description): Release
2218 unique_ptr returned from allocate_target_description.
2219 * features/microblaze-with-stack-protect.c: Regenerate.
2220 * features/microblaze.c: Regenerate.
2221 * features/mips-dsp-linux.c: Regenerate.
2222 * features/mips-linux.c: Regenerate.
2223 * features/mips64-dsp-linux.c: Regenerate.
2224 * features/mips64-linux.c: Regenerate.
2225 * features/nds32.c: Regenerate.
2226 * features/nios2.c: Regenerate.
2227 * features/or1k.c: Regenerate.
2228 * features/rs6000/powerpc-32.c: Regenerate.
2229 * features/rs6000/powerpc-32l.c: Regenerate.
2230 * features/rs6000/powerpc-403.c: Regenerate.
2231 * features/rs6000/powerpc-403gc.c: Regenerate.
2232 * features/rs6000/powerpc-405.c: Regenerate.
2233 * features/rs6000/powerpc-505.c: Regenerate.
2234 * features/rs6000/powerpc-601.c: Regenerate.
2235 * features/rs6000/powerpc-602.c: Regenerate.
2236 * features/rs6000/powerpc-603.c: Regenerate.
2237 * features/rs6000/powerpc-604.c: Regenerate.
2238 * features/rs6000/powerpc-64.c: Regenerate.
2239 * features/rs6000/powerpc-64l.c: Regenerate.
2240 * features/rs6000/powerpc-7400.c: Regenerate.
2241 * features/rs6000/powerpc-750.c: Regenerate.
2242 * features/rs6000/powerpc-860.c: Regenerate.
2243 * features/rs6000/powerpc-altivec32.c: Regenerate.
2244 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2245 * features/rs6000/powerpc-altivec64.c: Regenerate.
2246 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2247 * features/rs6000/powerpc-e500.c: Regenerate.
2248 * features/rs6000/powerpc-e500l.c: Regenerate.
2249 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2250 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2251 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2252 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2253 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2254 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2255 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2256 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2257 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2258 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2259 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2260 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2261 * features/rs6000/powerpc-vsx32.c: Regenerate.
2262 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2263 * features/rs6000/powerpc-vsx64.c: Regenerate.
2264 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2265 * features/rs6000/rs6000.c: Regenerate.
2266 * features/rx.c: Regenerate.
2267 * features/s390-gs-linux64.c: Regenerate.
2268 * features/s390-linux32.c: Regenerate.
2269 * features/s390-linux32v1.c: Regenerate.
2270 * features/s390-linux32v2.c: Regenerate.
2271 * features/s390-linux64.c: Regenerate.
2272 * features/s390-linux64v1.c: Regenerate.
2273 * features/s390-linux64v2.c: Regenerate.
2274 * features/s390-te-linux64.c: Regenerate.
2275 * features/s390-tevx-linux64.c: Regenerate.
2276 * features/s390-vx-linux64.c: Regenerate.
2277 * features/s390x-gs-linux64.c: Regenerate.
2278 * features/s390x-linux64.c: Regenerate.
2279 * features/s390x-linux64v1.c: Regenerate.
2280 * features/s390x-linux64v2.c: Regenerate.
2281 * features/s390x-te-linux64.c: Regenerate.
2282 * features/s390x-tevx-linux64.c: Regenerate.
2283 * features/s390x-vx-linux64.c: Regenerate.
2284 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2285 from allocate_target_description.
2286 * target-descriptions.c (allocate_target_description): Update
2287 return type.
2288 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2289 allocate_target_description.
2290
2291 2020-10-07 Tom Tromey <tromey@adacore.com>
2292
2293 * unittests/search-memory-selftests.c: New file.
2294 * Makefile.in (SELFTESTS_SRCS): Add
2295 unittests/search-memory-selftests.c.
2296
2297 2020-10-07 Tom Tromey <tromey@adacore.com>
2298
2299 PR gdb/16930:
2300 * findcmd.c (_initialize_mem_search): Mention that the range is
2301 inclusive.
2302
2303 2020-10-07 Tom Tromey <tromey@adacore.com>
2304
2305 * target.h (simple_search_memory): Don't declare.
2306 * target.c (simple_search_memory): Move to gdbsupport.
2307 (default_search_memory): Update.
2308 * remote.c (remote_target::search_memory): Update.
2309
2310 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * Makefile.in (COMPILE): Add CXXFLAGS.
2313 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2314 (check-headers): Add CXXFLAGS.
2315
2316 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2317
2318 * arc-linux-tdep.h: New file.
2319 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2320 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2321 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2322 arc_linux_gregset, arc_linux_v2_regset,
2323 arc_linux_iterate_over_regset_sections,
2324 arc_linux_core_read_description): Implement.
2325 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2326 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2327 (arc_gdbarch_features_create): Add.
2328 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2329
2330 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2331
2332 * arch/arc.h: Rename "arc_gdbarch_features" to
2333 "arc_arch_features".
2334 * arc-tdep.h: Likewise.
2335 * arc-tdep.c: Likewise.
2336
2337 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338
2339 * infcmd.c (attach_command): Remove the redundant call to
2340 `clear_proceed_status`.
2341
2342 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2343
2344 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2345
2346 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2347
2348 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2349 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2350 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2351
2352 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2353
2354 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2355 (_initialize_break_catch_sig): Don't allocate array.
2356
2357 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * symtab.c (find_pc_line): Return unmapped addresses when the
2360 requested address is also unmapped.
2361
2362 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2365 tui/tui-out.h.
2366
2367 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2370 type::is_vector instead of TYPE_VECTOR.
2371
2372 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * auto-load.c (auto_load_objfile_script_1): Don't use
2375 debugfile_holder as temporary variable when stripping drive
2376 letter.
2377
2378 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2379
2380 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2381 Add TYPE_CODE_COMPLEX.
2382 (amd64_windows_return_value): Fix types returned via XMM0.
2383
2384 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2385
2386 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2387 AArch64/ARM maintainers.
2388
2389 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2390
2391 * NEWS: Mention set/show debug event-loop.
2392
2393 2020-10-02 Tom Tromey <tromey@adacore.com>
2394
2395 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2396 REG_EXTENDED.
2397
2398 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2401 * procfs.c (procfs_inferior_created): Remove.
2402 (_initialize_procfs): Don't register procfs_inferior_created.
2403
2404 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * async-event.c (invoke_async_signal_handlers): Add debug
2407 print.
2408 (check_async_event_handlers): Likewise.
2409 * event-top.c (show_debug_event_loop): New function.
2410 (_initialize_event_top): Register "set debug event-loop"
2411 setting.
2412
2413 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2416 * debug.h: Remove.
2417 * infrun.c: Include gdbsupport/common-debug.h.
2418 * linux-nat.c: Likewise.
2419
2420 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * async-event.h (create_async_signal_handler): Add name
2423 parameter.
2424 (create_async_event_handler): Likewise.
2425 * async-event.c (struct async_signal_handler) <name>: New field.
2426 (struct async_event_handler) <name>: New field.
2427 (create_async_signal_handler): Assign name.
2428 (create_async_event_handler): Assign name.
2429 * event-top.c (async_init_signals): Pass name when creating
2430 handler.
2431 * infrun.c (_initialize_infrun): Likewise.
2432 * record-btrace.c (record_btrace_push_target): Likewise.
2433 * record-full.c (record_full_open): Likewise.
2434 * remote-notif.c (remote_notif_state_allocate): Likewise.
2435 * remote.c (remote_target::open_1): Likewise.
2436 * tui/tui-win.c (tui_initialize_win): Likewise.
2437
2438 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * async-event.c (initialize_async_signal_handlers): Pass name to
2441 add_file_handler
2442 * event-top.c (ui_register_input_event_handler): Likewise.
2443 * linux-nat.c (linux_nat_target::async): Likewise.
2444 * run-on-main-thread.c (_initialize_run_on_main_thread):
2445 Likewise
2446 * ser-base.c (reschedule): Likewise.
2447 (ser_base_async): Likewise.
2448 * tui/tui-io.c: Likewise.
2449 * top.h (struct ui) <num>: New field.
2450 * top.c (highest_ui_num): New variable.
2451 (ui::ui): Initialize num.
2452
2453 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * observable.h <inferior_created>: Remove parameters. Update all
2456 listeners.
2457 * inferior.h (post_create_inferior): Remove target parameter.
2458 Update all callers.
2459
2460 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2461
2462 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2463 and DW_MACRO_undef_strx.
2464 (dwarf_decode_macros): Likewise
2465 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2466 which is the value of DW_AT_str_offsets_base.
2467 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2468 str_offsets_base.
2469
2470 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2471
2472 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2473
2474 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2475
2476 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2477 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2478
2479 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2480
2481 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2482
2483 2020-09-30 Tom de Vries <tdevries@suse.de>
2484
2485 PR symtab/26683
2486 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2487
2488 2020-09-30 Tom Tromey <tromey@adacore.com>
2489
2490 * dwarf2/read.c (handle_variant): Use constant_value.
2491
2492 2020-09-29 Tom Tromey <tom@tromey.com>
2493
2494 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2495 (read_file_scope, dwarf2_get_pc_bounds)
2496 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2497 (read_structure_type, handle_struct_member_die)
2498 (read_enumeration_type, read_array_type, read_set_type)
2499 (read_tag_pointer_type, read_tag_reference_type)
2500 (read_subroutine_type, read_base_type, read_subrange_type)
2501 (read_full_die_1, partial_die_info::read)
2502 (partial_die_info::read, by, new_symbol)
2503 (dwarf2_const_value_data, dwarf2_const_value_attr)
2504 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2505 (prepare_one_comp_unit): Update.
2506 * dwarf2/attribute.h (DW_UNSND): Remove.
2507
2508 2020-09-29 Tom Tromey <tom@tromey.com>
2509
2510 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2511 (read_subroutine_type, partial_die_info::read)
2512 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2513 (dwarf2_add_member_fn): Update.
2514 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2515 * dwarf2/attribute.c (attribute::as_boolean): New method.
2516
2517 2020-09-29 Tom Tromey <tom@tromey.com>
2518
2519 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2520 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2521 method.
2522 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2523
2524 2020-09-29 Tom Tromey <tom@tromey.com>
2525
2526 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2527 the attribute's form.
2528
2529 2020-09-29 Tom Tromey <tom@tromey.com>
2530
2531 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2532 (dwarf2_add_member_fn): Update.
2533 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2534 * dwarf2/attribute.c (attribute::defaulted): New method, from
2535 is_valid_DW_AT_defaulted.
2536
2537 2020-09-29 Tom Tromey <tom@tromey.com>
2538
2539 * dwarf2/read.c (dw2_get_file_names_reader)
2540 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2541 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2542 (dwarf2_symbol_mark_computed): Use as_unsigned.
2543 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2544 method.
2545 <form_is_section_offset>: Update comment.
2546
2547 2020-09-29 Tom Tromey <tom@tromey.com>
2548
2549 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2550 dwarf2_default_access_attribute. Look up attribute.
2551 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2552 Update.
2553
2554 2020-09-29 Tom Tromey <tom@tromey.com>
2555
2556 * dwarf2/read.c (skip_one_die): Update.
2557 (read_full_die_1): Change how reprocessing is done.
2558 (partial_die_info::read): Update.
2559 (read_attribute_value): Remove need_reprocess parameter.
2560 (read_attribute): Likewise.
2561 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2562 New method.
2563
2564 2020-09-29 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2567 (dwarf2_const_value_attr, dump_die_shallow)
2568 (dwarf2_fetch_constant_bytes): Update.
2569 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2570 comment.
2571 <set_address>: New method.
2572 (DW_ADDR): Remove.
2573 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2574 (attribute::as_string, attribute::as_address): Add assert.
2575
2576 2020-09-29 Tom Tromey <tom@tromey.com>
2577
2578 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2579 (read_attribute_reprocess, read_attribute_value): Update.
2580 (read_attribute): Clear requires_reprocessing.
2581 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2582 form_requires_reprocessing>: New methods.
2583 <string_init>: Clear requires_reprocessing.
2584 <set_unsigned_reprocess>: New method.
2585 <name>: Shrink by one bit.
2586 <requires_reprocessing>: New member.
2587 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2588 method.
2589
2590 2020-09-29 Tom Tromey <tom@tromey.com>
2591
2592 * dwarf2/read.c (read_attribute_value): Update.
2593 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2594 set_unsigned>: New methods.
2595 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2596
2597 2020-09-29 Tom Tromey <tom@tromey.com>
2598
2599 * dwarf2/read.c (get_alignment, read_array_order)
2600 (read_attribute_value, dwarf2_const_value_attr)
2601 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2602 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2603 New methods.
2604 (DW_SND): Remove.
2605
2606 2020-09-29 Tom Tromey <tom@tromey.com>
2607
2608 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2609 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2610 Update.
2611 * dwarf2/attribute.h (struct attribute) <as_signature,
2612 set_signature>: New methods.
2613 (DW_SIGNATURE): Remove.
2614
2615 2020-09-29 Tom Tromey <tom@tromey.com>
2616
2617 * dwarf2/read.c (read_call_site_scope)
2618 (handle_data_member_location, dwarf2_add_member_fn)
2619 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2620 (partial_die_info::read, read_attribute_value)
2621 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2622 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2623 (dwarf2_symbol_mark_computed): Update.
2624 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2625 methods.
2626 (DW_BLOCK): Remove.
2627 * dwarf2/attribute.c (attribute::form_is_block): Add
2628 DW_FORM_data16.
2629
2630 2020-09-29 Tom Tromey <tom@tromey.com>
2631
2632 * dwarf2/read.c (read_cutu_die_from_dwo)
2633 (read_attribute_reprocess, read_attribute_value, read_attribute)
2634 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2635 (dwarf2_fetch_constant_bytes): Update.
2636 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2637 <set_string_noncanonical, set_string_canonical>: New methods.
2638 <string_is_canonical>: Update comment.
2639 <canonical_string_p>: Add assert.
2640 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2641 * dwarf2/attribute.c (attribute::form_is_string): New method.
2642 (attribute::string): Use it.
2643
2644 2020-09-29 Tom Tromey <tom@tromey.com>
2645
2646 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2647 (dump_die_shallow): Use canonical_string_p.
2648 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2649 method.
2650
2651 2020-09-29 Tom Tromey <tom@tromey.com>
2652
2653 * dwarf2/read.c (partial_die_info::read)
2654 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2655 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2656 attribute::as_string.
2657
2658 2020-09-29 Tom Tromey <tom@tromey.com>
2659
2660 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2661 DW_ADDR.
2662 (attribute::string): Don't use DW_STRING.
2663 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2664 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2665
2666 2020-09-29 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2669 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2670 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2671 * dwarf2/attribute.h (struct attribute): Rename methods.
2672 * dwarf2/attribute.c (attribute::as_address): Rename from
2673 value_as_address.
2674 (attribute::as_string): Rename from value_as_string.
2675
2676 2020-09-29 Tom Tromey <tom@tromey.com>
2677
2678 * dwarf2/read.c (partial_die_info::read) <case
2679 DW_AT_linkage_name>: Use value_as_string.
2680 (dwarf2_string_attr): Use value_as_string.
2681 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2682 method.
2683 * dwarf2/attribute.c (attribute::value_as_string): New method.
2684
2685 2020-09-29 Pedro Alves <pedro@palves.net>
2686
2687 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2688 defined before using '#pragma GCC diagnostic' instead of checking
2689 __clang__.
2690
2691 2020-09-28 Tom Tromey <tom@tromey.com>
2692
2693 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2694 (handle_signal_stop): Update.
2695 * procfs.c (procfs_target::insert_watchpoint): Update.
2696 * target.h (target_have_steppable_watchpoint): Now a function.
2697
2698 2020-09-28 Tom Tromey <tom@tromey.com>
2699
2700 * infrun.c (set_schedlock_func): Update.
2701 * target.h (target_can_lock_scheduler): Now a function.
2702
2703 2020-09-28 Tom Tromey <tom@tromey.com>
2704
2705 * inferior.h (class inferior) <has_execution>: Update.
2706 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2707 * valops.c (find_function_in_inferior)
2708 (value_allocate_space_in_inferior): Update.
2709 * top.c (kill_or_detach): Update.
2710 * target.c (target_preopen, set_target_permissions): Update.
2711 (target_has_execution_current): Remove.
2712 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2713 Update.
2714 * solib.c (update_solib_list, reload_shared_libraries): Update.
2715 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2716 * solib-dsbt.c (enable_break): Update.
2717 * score-tdep.c (score7_fetch_inst): Update.
2718 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2719 Update.
2720 * remote.c (remote_target::start_remote)
2721 (remote_target::remote_check_symbols, remote_target::open_1)
2722 (remote_target::remote_detach_1, remote_target::verify_memory)
2723 (remote_target::xfer_partial, remote_target::read_description)
2724 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2725 * record-full.c (record_full_open_1): Update.
2726 * record-btrace.c (record_btrace_target_open): Update.
2727 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2728 (value_nsstring): Update.
2729 * linux-thread-db.c (add_thread_db_info)
2730 (thread_db_find_new_threads_silently, check_thread_db_callback)
2731 (try_thread_db_load_1, record_thread): Update.
2732 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2733 Update.
2734 * linux-fork.c (checkpoint_command): Update.
2735 * infrun.c (set_non_stop, set_observer_mode)
2736 (check_multi_target_resumption, for_each_just_stopped_thread)
2737 (maybe_remove_breakpoints, normal_stop)
2738 (class infcall_suspend_state): Update.
2739 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2740 (info_program_command, attach_command): Update.
2741 * infcall.c (call_function_by_hand_dummy): Update.
2742 * inf-loop.c (inferior_event_handler): Update.
2743 * gcore.c (gcore_command, derive_heap_segment): Update.
2744 * exec.c (exec_file_command): Update.
2745 * eval.c (evaluate_subexp): Update.
2746 * compile/compile.c (compile_to_object): Update.
2747 * cli/cli-dump.c (restore_command): Update.
2748 * breakpoint.c (update_watchpoint)
2749 (update_inserted_breakpoint_locations)
2750 (insert_breakpoint_locations, get_bpstat_thread): Update.
2751 * target.h (target_has_execution): Remove macro.
2752 (target_has_execution_current): Don't declare.
2753 (target_has_execution): Rename from target_has_execution_1. Add
2754 argument default.
2755
2756 2020-09-28 Tom Tromey <tom@tromey.com>
2757
2758 * mi/mi-main.c (exec_reverse_continue)
2759 (mi_cmd_list_target_features): Update.
2760 * infrun.c (set_exec_direction_func): Update.
2761 * target.c (default_execution_direction): Update.
2762 * reverse.c (exec_reverse_once): Update.
2763 * target.h (target_can_execute_reverse): Now a function.
2764
2765 2020-09-28 Tom Tromey <tom@tromey.com>
2766
2767 * tui/tui-regs.c (tui_get_register)
2768 (tui_data_window::show_registers): Update.
2769 * thread.c (scoped_restore_current_thread::restore)
2770 (scoped_restore_current_thread::scoped_restore_current_thread):
2771 Update.
2772 * regcache-dump.c (regcache_print): Update.
2773 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2774 Update.
2775 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2776 * mep-tdep.c (current_me_module, current_options): Update.
2777 * linux-thread-db.c (thread_db_load): Update.
2778 * infcmd.c (registers_info, info_vector_command)
2779 (info_float_command): Update.
2780 * ia64-tdep.c (ia64_frame_prev_register)
2781 (ia64_sigtramp_frame_prev_register): Update.
2782 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2783 * gcore.c (derive_stack_segment): Update.
2784 * frame.c (get_current_frame, has_stack_frames): Update.
2785 * findvar.c (language_defn::read_var_value): Update.
2786 * arm-tdep.c (arm_pc_is_thumb): Update.
2787 * target.c (target_has_registers): Rename from
2788 target_has_registers_1.
2789 * target.h (target_has_registers): Remove macro.
2790 (target_has_registers): Rename from target_has_registers_1.
2791
2792 2020-09-28 Tom Tromey <tom@tromey.com>
2793
2794 * windows-tdep.c (tlb_make_value): Update.
2795 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2796 * thread.c (scoped_restore_current_thread::restore)
2797 (scoped_restore_current_thread::scoped_restore_current_thread)
2798 (thread_command): Update.
2799 * stack.c (backtrace_command_1, frame_apply_level_command)
2800 (frame_apply_all_command, frame_apply_command): Update.
2801 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2802 Update.
2803 * gcore.c (derive_stack_segment): Update.
2804 * frame.c (get_current_frame, has_stack_frames): Update.
2805 * auxv.c (info_auxv_command): Update.
2806 * ada-tasks.c (ada_build_task_list): Update.
2807 * target.c (target_has_stack): Rename from target_has_stack_1.
2808 * target.h (target_has_stack): Remove macro.
2809 (target_has_stack): Rename from target_has_stack_1.
2810
2811 2020-09-28 Tom Tromey <tom@tromey.com>
2812
2813 * target.c (target_has_memory): Rename from target_has_memory_1.
2814 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2815 * thread.c (scoped_restore_current_thread::restore)
2816 (scoped_restore_current_thread::scoped_restore_current_thread):
2817 Update.
2818 * frame.c (get_current_frame, has_stack_frames): Update.
2819 * target.h (target_has_memory): Remove macro.
2820 (target_has_memory): Rename from target_has_memory_1.
2821
2822 2020-09-28 Tom Tromey <tom@tromey.com>
2823
2824 * target.c (target_has_all_memory_1): Remove.
2825 * target.h (target_has_all_memory): Remove define.
2826 (target_has_all_memory_1): Don't declare.
2827
2828 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2829
2830 * ser-base.c: Adjust comments formatting.
2831
2832 2020-09-27 Tom Tromey <tom@tromey.com>
2833
2834 PR tui/25342:
2835 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2836
2837 2020-09-27 Tom Tromey <tom@tromey.com>
2838
2839 PR tui/25342:
2840 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2841
2842 2020-09-27 Tom Tromey <tom@tromey.com>
2843
2844 * unittests/tui-selftests.c: Update.
2845 * tui/tui-winsource.h (struct tui_source_window_base)
2846 <extra_margin, show_line_number, refresh_pad>: New methods.
2847 <m_max_length, m_pad>: New members.
2848 (tui_copy_source_line): Update.
2849 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2850 first_col, line_width, ndigits parameters. Add length.
2851 (tui_source_window_base::show_source_line): Write to pad. Line
2852 number now 0-based.
2853 (tui_source_window_base::refresh_pad): New method.
2854 (tui_source_window_base::show_source_content): Write to pad. Call
2855 refresh_pad.
2856 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2857 not refill.
2858 (tui_source_window_base::update_exec_info): Call
2859 show_line_number.
2860 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2861 method.
2862 <m_digits>: New member.
2863 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2864 and m_max_length.
2865 (tui_source_window::show_line_number): New method.
2866 * tui/tui-io.h (tui_puts): Fix comment.
2867 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2868 m_max_length.
2869
2870 2020-09-27 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-winsource.c
2873 (tui_source_window_base::set_is_exec_point_at): Don't call
2874 show_source_line.
2875
2876 2020-09-27 Tom Tromey <tom@tromey.com>
2877
2878 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2879 method.
2880 <erase>: Update.
2881 <cursor_x, cursor_y>: Remove.
2882 <m_inner_window>: New member.
2883 (tui_py_window::rerender): Create inner window.
2884 (tui_py_window::output): Write to inner window.
2885
2886 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2887
2888 PR python/26586
2889 * cli/cli-script.c (execute_control_commands): don't set
2890 instream to nullptr here as this breaks the from_tty argument
2891 to gdb.execute in Python.
2892 (execute_user_command): set instream to nullptr here instead.
2893
2894 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * infrun.h (infrun_debug_printf): Fix formatting.
2897 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2898
2899 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2900
2901 * compile/compile-object-load.h (struct munmap_list): Add
2902 explicitly-defined move constructor.
2903
2904 2020-09-24 Tom Tromey <tromey@adacore.com>
2905
2906 PR tui/26638:
2907 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2908 method.
2909 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2910 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2911 (tui_prev_win): Rewrite.
2912
2913 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2914
2915 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2916 in WOW64 processes as SIGINT.
2917 * nat/windows-nat.h: Make wow64_process a shared variable.
2918 * windows-nat.c: Remove static wow64_process variable.
2919
2920 2020-09-23 Tom Tromey <tom@tromey.com>
2921
2922 PR symtab/25470:
2923 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2924 offset and bit size.
2925 * printcmd.c (print_scalar_formatted): Handle zero-length
2926 integer.
2927 (print_scalar_formatted): Use bit_size_differs_p.
2928 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2929 constant.
2930 (union type_specific): <int_stuff>: New member.
2931 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2932 methods.
2933 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2934 TYPE_SPECIFIC_FIELD.
2935 (recursive_dump_type, copy_type_recursive): Update.
2936 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2937 DW_AT_data_bit_offset.
2938
2939 2020-09-23 Tom Tromey <tom@tromey.com>
2940
2941 * utils.h (class gdb_argv): Add move operators.
2942 <append>: New methods.
2943 * compile/compile.c (build_argc_argv): Remove.
2944 (compile_args_argc): Remove.
2945 (compile_args_argv): Change type.
2946 (set_compile_args): Simplify.
2947 (append_args): Remove.
2948 (filter_args): Remove argcp parameter.
2949 (get_args): Return gdb_argv. Simplify.
2950 (compile_to_object): Update.
2951
2952 2020-09-23 Tom Tromey <tom@tromey.com>
2953
2954 * compile/compile-object-run.c (do_module_cleanup)
2955 <~do_module_cleanup> :Remove.
2956 (do_module_cleanup): Update.
2957 * compile/compile-object-load.h (struct munmap_list): Add move
2958 assignment operator.
2959 <source_file>: Now a std::string.
2960 <munmap_list>: Rename. No longer a pointer.
2961 * compile/compile-object-load.c (struct setup_sections_data): Add
2962 constructor.
2963 <setup_one_section>: Declare.
2964 <munmap_list>: Move earlier.
2965 <m_bfd>: New member.
2966 <m_last_size, m_last_section_first, m_last_prot,
2967 m_last_max_alignment>: Rename, add initializers where needed.
2968 (setup_sections_data::setup_one_section): Rename from
2969 setup_sections. Update.
2970 (compile_object_load): Update. Don't use bfd_map_over_sections.
2971
2972 2020-09-23 Tom Tromey <tom@tromey.com>
2973
2974 * compile/compile-object-run.c (struct do_module_cleanup): Add
2975 parameters to constructor. Update destructor.
2976 <source_file, scope, scope_data, out_value_type, out_value_addr,
2977 munmap_list_head, objfile_name_string>: Remove.
2978 <module>: New member.
2979 (do_module_cleanup): Update.
2980 (compile_object_run): Update.
2981
2982 2020-09-23 Tom Tromey <tom@tromey.com>
2983
2984 * compile/compile.c (eval_compile_command): Update.
2985 * compile/compile-object-run.h (compile_object_run): Take a
2986 compile_module_up.
2987 * compile/compile-object-run.c (compile_object_run): Take a
2988 compile_module_up.
2989 * compile/compile-object-load.h (struct compile_module): Add
2990 constructor, destructor.
2991 (compile_module_up): New typedef.
2992 (compile_object_load): Return compile_object_up.
2993 * compile/compile-object-load.c (compile_object_load): Return
2994 compile_module_up.
2995
2996 2020-09-23 Tom Tromey <tom@tromey.com>
2997
2998 * compile/compile-object-run.c (struct do_module_cleanup): Add
2999 constructor, destructor.
3000 <objfile_name_string>: Don't use struct hack.
3001 (do_module_cleanup): Use delete.
3002 (compile_object_run): Use new.
3003
3004 2020-09-23 Tom Tromey <tom@tromey.com>
3005
3006 * compile/compile-cplus-types.c
3007 (compile_cplus_convert_struct_or_union): Use std::vector.
3008 (compile_cplus_convert_func): Likewise.
3009 * compile/compile-c-types.c (convert_func): Use std::vector.
3010
3011 2020-09-21 Tom Tromey <tromey@adacore.com>
3012
3013 * sparc-tdep.c (sparc32_skip_prologue): Use
3014 skip_prologue_using_sal.
3015
3016 2020-09-19 Tom Tromey <tom@tromey.com>
3017
3018 * symfile.c (add_section_size_callback): Remove.
3019 (load_one_section): Rename from load_section_callback. Change
3020 parameters.
3021 (generic_load): Use foreach.
3022
3023 2020-09-19 Tom Tromey <tom@tromey.com>
3024
3025 * exec.c (add_to_section_table): Remove.
3026 (build_section_table): Use foreach.
3027
3028 2020-09-19 Tom Tromey <tom@tromey.com>
3029
3030 * elfread.c (elf_locate_sections): Change parameters.
3031 (elf_symfile_read): Use foreach.
3032
3033 2020-09-19 Tom Tromey <tom@tromey.com>
3034
3035 * cli/cli-dump.c (struct callback_data): Remove.
3036 (restore_one_section): Rename from restore_section_callback.
3037 Change parameters.
3038 (restore_binary_file): Change parameters.
3039 (restore_command): Use foreach.
3040
3041 2020-09-19 Tom Tromey <tom@tromey.com>
3042
3043 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3044 (gcore_copy_callback): Likewise.
3045 (gcore_memory_sections): Use foreach.
3046
3047 2020-09-19 Tom Tromey <tom@tromey.com>
3048
3049 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3050 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3051 parameters.
3052 (generic_elf_osabi_sniffer): Use foreach.
3053 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3054 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3055
3056 2020-09-19 Tom Tromey <tom@tromey.com>
3057
3058 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3059 (dwarf2_get_dwz_file): Use foreach.
3060 (dwarf2_locate_dwo_sections): Change parameters.
3061 (open_and_init_dwo_file): Use foreach.
3062 (dwarf2_locate_common_dwp_sections): Change parameters.
3063 (open_and_init_dwp_file): Use foreach.
3064
3065 2020-09-19 Tom Tromey <tom@tromey.com>
3066
3067 * symfile.h: (find_lowest_section): Don't declare.
3068 * symfile.c (find_lowest_section): Now static. Change
3069 parameters.
3070 (struct place_section_arg): Remove.
3071 (place_section): Change parameters.
3072 (addr_info_make_relative): Use foreach.
3073 (symfile_dummy_outputs): Remove.
3074 (default_symfile_relocate): Use foreach.
3075
3076 2020-09-19 Tom Tromey <tom@tromey.com>
3077
3078 * objfiles.c (add_to_objfile_sections): Rename from
3079 add_to_objfile_sections_full.
3080 (add_to_objfile_sections): Remove.
3081 (build_objfile_section_table): Use foreach.
3082
3083 2020-09-19 Tom Tromey <tom@tromey.com>
3084
3085 * stap-probe.c (get_stap_base_address_1): Remove.
3086 (get_stap_base_address): Use foreach.
3087
3088 2020-09-19 Tom Tromey <tom@tromey.com>
3089
3090 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3091 parameters.
3092 (gdb_bfd_close_or_warn): Use foreach.
3093
3094 2020-09-19 Tom Tromey <tom@tromey.com>
3095
3096 * corelow.c (add_to_thread_list): Change parameters.
3097 (core_target_open): Use foreach.
3098
3099 2020-09-19 Tom Tromey <tom@tromey.com>
3100
3101 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3102 existing function.
3103
3104 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3107 for arrays.
3108
3109 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * eval.c: Remove 'f-lang.h' include.
3112 (value_f90_subarray): Moved to f-lang.c.
3113 (eval_call): Renamed to...
3114 (evaluate_subexp_do_call): ...this, is no longer static, header
3115 comment moved into header file.
3116 (evaluate_funcall): Update call to eval_call.
3117 (skip_undetermined_arglist): Moved to f-lang.c.
3118 (fortran_value_subarray): Likewise.
3119 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3120 moved to evaluate_subexp_f.
3121 (calc_f77_array_dims): Moved to f-lang.c
3122 * expprint.c (print_subexp_funcall): New function.
3123 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3124 moved to print_subexp_f, OP_FUNCALL uses new function.
3125 (dump_subexp_body_funcall): New function.
3126 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3127 moved to dump_subexp_f, OP_FUNCALL uses new function.
3128 * expression.h (evaluate_subexp_do_call): Declare.
3129 * f-lang.c (value_f90_subarray): Moved from eval.c.
3130 (skip_undetermined_arglist): Likewise.
3131 (calc_f77_array_dims): Likewise.
3132 (fortran_value_subarray): Likewise.
3133 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3134 (operator_length_f): Likewise.
3135 (print_subexp_f): Likewise.
3136 (dump_subexp_body_f): Likewise.
3137 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3138 declaration of this operation to here.
3139 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3140 support moved to operator_length_f.
3141 * parser-defs.h (dump_subexp_body_funcall): Declare.
3142 (print_subexp_funcall): Declare.
3143 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3144 fortran-operator.def.
3145
3146 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3147
3148 * eval.c (fortran_value_subarray): New function, content is taken
3149 from...
3150 (evaluate_subexp_standard): ...here, in two places. Now arrays
3151 and strings both call the new function.
3152 (calc_f77_array_dims): Add header comment, handle strings.
3153
3154 2020-09-18 Victor Collod <vcollod@nvidia.com>
3155
3156 PR gdb/26635
3157 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3158 (i386_analyze_prologue): Call i386_skip_endbr.
3159
3160 2020-09-18 Tom Tromey <tromey@adacore.com>
3161
3162 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3163 (windows_nat_target::wait): Update.
3164 * target/wait.h (enum target_wait_flag): New. Use
3165 DEF_ENUM_FLAGS_TYPE.
3166 * target/target.h (target_wait): Change type of options.
3167 * target.h (target_options_to_string, default_target_wait):
3168 Update.
3169 (struct target_ops) <wait>: Change type of options.
3170 * target.c (target_wait, default_target_wait, do_option): Change
3171 type of "options".
3172 (target_options_to_string): Likewise.
3173 * target-delegates.c: Rebuild.
3174 * target-debug.h (target_debug_print_target_wait_flags): Rename
3175 from target_debug_print_options.
3176 * sol-thread.c (class sol_thread_target) <wait>: Update.
3177 (sol_thread_target::wait): Update.
3178 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3179 (rs6000_nat_target::wait): Update.
3180 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3181 Update.
3182 (remote_target::wait_ns, remote_target::wait_as): Change type of
3183 "options".
3184 (remote_target::wait): Update.
3185 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3186 (gdbsim_target::wait): Update.
3187 * record-full.c (class record_full_base_target) <wait>: Update.
3188 (record_full_wait_1): Change type of "options".
3189 (record_full_base_target::wait): Update.
3190 * record-btrace.c (class record_btrace_target) <wait>: Update.
3191 (record_btrace_target::wait): Update.
3192 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3193 Update.
3194 (ravenscar_thread_target::wait): Update.
3195 * procfs.c (class procfs_target) <wait>: Update.
3196 (procfs_target::wait): Update.
3197 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3198 * obsd-nat.c (obsd_nat_target::wait): Update.
3199 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3200 (nto_procfs_target::wait): Update.
3201 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3202 * nbsd-nat.c (nbsd_wait): Change type of "options".
3203 (nbsd_nat_target::wait): Update.
3204 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3205 (thread_db_target::wait): Update.
3206 * linux-nat.h (class linux_nat_target) <wait>: Update.
3207 * linux-nat.c (linux_nat_target::wait): Update.
3208 (linux_nat_wait_1): Update.
3209 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3210 "options".
3211 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3212 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3213 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3214 (go32_nat_target::wait): Update.
3215 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3216 * gnu-nat.c (gnu_nat_target::wait): Update.
3217 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3218 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3219 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3220 * darwin-nat.c (darwin_nat_target::wait): Update.
3221 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3222 (bsd_uthread_target::wait): Update.
3223 * aix-thread.c (class aix_thread_target) <wait>: Update.
3224 (aix_thread_target::wait): Update.
3225
3226 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * compile/compile-object-run.c (create_copied_type_recursive): New
3229 function.
3230 (compile_object_run): Use new function.
3231
3232 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3233
3234 * NEWS: Mention x86_64 Cygwin core file support.
3235
3236 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3237
3238 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3239 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3240
3241 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3242
3243 * windows-tdep.h: Add prototypes.
3244 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3245 (i386_windows_core_pid_to_str): Move and rename ...
3246 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3247 (windows_core_pid_to_str): ... and here.
3248 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3249
3250 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3251 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3252 (amd64_windows_init_abi_common): ... and register.
3253
3254 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3255
3256 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3257 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3258
3259 2020-09-18 Pedro Alves <pedro@palves.net>
3260
3261 PR gdb/26631
3262 * thread.c (thread_find_command): Switch inferior before calling
3263 target methods.
3264
3265 2020-09-17 Tom Tromey <tromey@adacore.com>
3266
3267 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3268 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3269 (tdesc_arch_data_up): New typedef.
3270 (tdesc_use_registers, tdesc_data_alloc): Update.
3271 (tdesc_data_cleanup): Don't declare.
3272 * target-descriptions.c (tdesc_data_alloc): Return a
3273 tdesc_arch_data_up.
3274 (tdesc_arch_data_deleter::operator()): Rename from
3275 tdesc_data_cleanup. Change argument type.
3276 (tdesc_use_registers): Change early_data to an rvalue reference.
3277 (tdesc_use_registers): Don't use delete.
3278 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3279 * s390-tdep.c (s390_gdbarch_init): Update.
3280 * rx-tdep.c (rx_gdbarch_init): Update.
3281 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3282 * riscv-tdep.c (riscv_gdbarch_init): Update.
3283 * or1k-tdep.c (or1k_gdbarch_init): Update.
3284 * nios2-tdep.c (nios2_gdbarch_init): Update.
3285 * nds32-tdep.c (nds32_gdbarch_init): Update.
3286 * mips-tdep.c (mips_gdbarch_init): Update.
3287 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3288 * m68k-tdep.c (m68k_gdbarch_init): Update.
3289 * i386-tdep.c (i386_gdbarch_init): Update.
3290 * arm-tdep.c (arm_gdbarch_init): Update.
3291 * arc-tdep.c (arc_tdesc_init): Update.
3292 (arc_gdbarch_init): Update.
3293 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3294
3295 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3296
3297 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3298 for WOW64 processes.
3299
3300 2020-09-17 Tom Tromey <tom@tromey.com>
3301
3302 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3303
3304 2020-09-17 Tom Tromey <tom@tromey.com>
3305
3306 * value.c (preserve_values): Update.
3307 * python/py-type.c (save_objfile_types): Update.
3308 * guile/scm-type.c (save_objfile_types): Update.
3309 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3310 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3311 * compile/compile-object-run.c (compile_object_run): Update.
3312
3313 2020-09-17 Tom Tromey <tom@tromey.com>
3314
3315 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3316 Remove.
3317 <m_table>: Now htab_up.
3318 * typeprint.c (typedef_hash_table::recursively_update)
3319 (typedef_hash_table::add_template_parameters)
3320 (typedef_hash_table::typedef_hash_table): Update.
3321 (typedef_hash_table::~typedef_hash_table): Remove.
3322 (typedef_hash_table::typedef_hash_table)
3323 (typedef_hash_table::find_global_typedef)
3324 (typedef_hash_table::find_typedef): Update.
3325
3326 2020-09-17 Tom Tromey <tom@tromey.com>
3327
3328 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3329
3330 2020-09-17 Tom Tromey <tom@tromey.com>
3331
3332 * linespec.c (class decode_compound_collector)
3333 <~decode_compound_collector>: Remove.
3334 <m_unique_syms>: Now htab_up.
3335 (decode_compound_collector::operator ()): Update.
3336 (class symtab_collector) <~symtab_collector>: Remove.
3337 <m_symtab_table>: Now htab_up.
3338 (symtab_collector::operator ()): Update.
3339
3340 2020-09-17 Tom Tromey <tom@tromey.com>
3341
3342 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3343 (filename_seen_cache::clear): Update.
3344 (~filename_seen_cache): Remove.
3345 (filename_seen_cache::seen): Update.
3346 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3347 htab_up.
3348 <~filename_seen_cache>: Remove.
3349 <traverse>: Update.
3350
3351 2020-09-17 Tom Tromey <tom@tromey.com>
3352
3353 * completer.c (completion_tracker::discard_completions)
3354 (completion_tracker::~completion_tracker)
3355 (completion_tracker::maybe_add_completion)
3356 (completion_tracker::remove_completion)
3357 (completion_tracker::recompute_lowest_common_denominator)
3358 (completion_tracker::build_completion_result): Update.
3359 * completer.h (class completion_tracker) <have_completions>:
3360 Update.
3361 <m_entries_hash>: Now htab_up.
3362
3363 2020-09-17 Tom Tromey <tom@tromey.com>
3364
3365 * breakpoint.c (ambiguous_names_p): Use htab_up.
3366
3367 2020-09-17 Tom Tromey <tom@tromey.com>
3368
3369 * auto-load.c (struct auto_load_pspace_info)
3370 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3371 <loaded_script_files, loaded_script_texts>: Change type to
3372 htab_up.
3373 (~auto_load_pspace_info) Remove.
3374 (init_loaded_scripts_info, maybe_add_script_file)
3375 (maybe_add_script_text, auto_load_info_scripts): Update.
3376
3377 2020-09-17 Tom Tromey <tromey@adacore.com>
3378
3379 * c-exp.y (name_obstack): Now static.
3380
3381 2020-09-17 Chungyi Chi <demonic@csie.io>
3382
3383 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3384
3385 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3388 (add_solib_catchpoint): Likewise.
3389 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3390 to bool.
3391 (add_solib_catchpoint): Change int parameter/variable to bool.
3392 (catch_load_or_unload): Likewise.
3393 (init_catchpoint): Likewise.
3394 (create_fork_vfork_event_catchpoint): Likewise.
3395 (catch_fork_command_1): Likewise.
3396 (catch_exec_command_1): Likewise.
3397
3398 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3401 Change instance_flags to m_instance_flags.
3402
3403 2020-09-16 Tom Tromey <tromey@adacore.com>
3404
3405 PR gdb/26598:
3406 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3407
3408 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3409
3410 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3411 PL_FLAG_EXEC.
3412 (fbsd_nat_target::insert_exec_catchpoint)
3413 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3414 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3415 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3416
3417 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3418
3419 * configure.ac: Remove check for kinfo_getvmmap().
3420 * configure, config.in: Regenerate.
3421 * fbsd-nat.c (fbsd_read_mapping): Remove
3422 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3423 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3424 kinfo_get_vmmap() are always present.
3425
3426 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3427
3428 * fbsd-nat.c: Always include support for
3429 TARGET_OBJECT_SIGNAL_INFO.
3430
3431 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3432
3433 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3434 sysctl and remove procfs fallback.
3435
3436 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3437
3438 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3439 * fbsd-nat.h: Likewise.
3440
3441 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3442
3443 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3444 argument.
3445
3446 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 * ada-lang.c (ada_language_data): Delete.
3449 (ada_language): Remove references to ada_language_data.
3450 * c-lang.c (c_language_data): Delete.
3451 (c_language): Remove references to c_language_data.
3452 (cplus_language_data): Delete.
3453 (cplus_language): Remove references to cplus_language_data.
3454 (asm_language_data): Delete.
3455 (asm_language): Remove references to asm_language_data.
3456 (minimal_language_data): Delete.
3457 (minimal_language): Remove references to minimal_language_data.
3458 * d-lang.c (d_language_data): Delete.
3459 (d_language): Remove references to d_language_data.
3460 * f-lang.c (f_language_data): Delete.
3461 (f_language): Remove references to f_language_data.
3462 * go-lang.c (go_language_data): Delete.
3463 (go_language): Remove references to go_language_data.
3464 * language.c (unknown_language_data): Delete.
3465 (unknown_language): Remove references to unknown_language_data.
3466 (auto_language_data): Delete.
3467 (auto_language): Remove references to auto_language_data.
3468 * language.h (language_data): Delete struct.
3469 (language_defn): No longer inherit from language_data.
3470 * m2-lang.c (m2_language_data): Delete.
3471 (m2_language): Remove references to m2_language_data.
3472 * objc-lang.c (objc_language_data): Delete.
3473 (objc_language): Remove references to objc_language_data.
3474 * opencl-lang.c (opencl_language_data): Delete.
3475 (opencl_language): Remove references to opencl_language_data.
3476 * p-lang.c (pascal_language_data): Delete.
3477 (pascal_language): Remove references to pascal_language_data.
3478 * rust-lang.c (rust_language_data): Delete.
3479 (rust_language): Remove references to rust_language_data.
3480
3481 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3482
3483 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3484 initializer.
3485 (ada_language::opcode_print_table): New member function.
3486 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3487 (c_language::opcode_print_table): New member function.
3488 (cplus_language_data): Remove la_op_print_tab initializer.
3489 (cplus_language::opcode_print_table): New member function.
3490 (asm_language_data): Remove la_op_print_tab initializer.
3491 (asm_language::opcode_print_table): New member function.
3492 (minimal_language_data): Remove la_op_print_tab initializer.
3493 (minimal_language::opcode_print_table): New member function.
3494 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3495 (d_language::opcode_print_table): New member function.
3496 * expprint.c (print_subexp_standard): Update call to
3497 opcode_print_table.
3498 (op_string): Likewise.
3499 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3500 (f_language::opcode_print_table): New member function.
3501 * go-lang.c (go_language_data): Remove la_op_print_tab
3502 initializer.
3503 (go_language::opcode_print_table): New member function.
3504 * language.c (unknown_language_data): Remove la_op_print_tab
3505 initializer.
3506 (unknown_language::opcode_print_table): New member function.
3507 (auto_language_data): Remove la_op_print_tab initializer.
3508 (auto_language::opcode_print_table): New member function.
3509 * language.h (language_data): Remove la_op_print_tab field.
3510 (language_defn::opcode_print_table): Declare new member function.
3511 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3512 initializer.
3513 (m2_language::opcode_print_table): New member function.
3514 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3515 initializer.
3516 (objc_language::opcode_print_table): New member function.
3517 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3518 initializer.
3519 (opencl_language::opcode_print_table): New member function.
3520 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3521 initializer.
3522 (pascal_language::opcode_print_table): New member function.
3523 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3524 initializer.
3525 (rust_language::opcode_print_table): New member function.
3526
3527 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3530 (ada_language::expression_ops): New member function.
3531 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3532 (c_language::expression_ops): New member function.
3533 (cplus_language_data): Remove la_exp_desc initializer.
3534 (cplus_language::expression_ops): New member function.
3535 (asm_language_data): Remove la_exp_desc initializer.
3536 (asm_language::expression_ops): New member function.
3537 (minimal_language_data): Remove la_exp_desc initializer.
3538 (minimal_language::expression_ops): New member function.
3539 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3540 (d_language::expression_ops): New member function.
3541 * eval.c (evaluate_subexp): Update call to expression_ops.
3542 * expprint.c (print_subexp): Likewise.
3543 (op_name): Likewise.
3544 (dump_subexp_body): Likewise.
3545 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3546 (f_language::expression_ops): New member function.
3547 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3548 (go_language::expression_ops): New member function.
3549 * language.c (language_defn::expression_ops): New function.
3550 (unknown_language_data): Remove la_exp_desc initializer.
3551 (auto_language_data): Likewise.
3552 * language.h (language_data): Remove la_exp_desc field.
3553 (language_defn::expression_ops): Declare new member function.
3554 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3555 (m2_language::expression_ops): New member function.
3556 * objc-lang.c (objc_language_data): Remove la_exp_desc
3557 initializer.
3558 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3559 initializer.
3560 (opencl_language::expression_ops): New member function.
3561 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3562 * parse.c (operator_length): Update call to expression_ops.
3563 (exp_iterate): Likewise.
3564 * rust-lang.c (rust_language_data): Remove la_exp_desc
3565 initializer.
3566 (ruse_language::expression_ops): New member function.
3567
3568 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3571 initializer.
3572 (ada_language::varobj_ops): New member function.
3573 * c-lang.c (c_language_data): Remove la_varobj_ops
3574 initializer.
3575 (cplus_language_data): Likewise.
3576 (cplus_language::varobj_ops): New member function.
3577 (asm_language_data): Remove la_varobj_ops initializer.
3578 (minimal_language_data): Likewise.
3579 * d-lang.c (d_language_data): Likewise.
3580 * f-lang.c (f_language_data): Likewise.
3581 * go-lang.c (go_language_data): Likewise.
3582 * language.c (language_defn::varobj_ops): New function.
3583 (unknown_language_data): Remove la_varobj_ops
3584 initializer.
3585 (auto_language_data): Likewise.
3586 * language.h (language_data): Remove la_varobj_ops field.
3587 (language_defn::varobj_ops): Declare new member function.
3588 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3589 * objc-lang.c (objc_language_data): Likewise.
3590 * opencl-lang.c (opencl_language_data): Likewise.
3591 * p-lang.c (pascal_language_data): Likewise.
3592 * rust-lang.c (rust_language_data): Likewise.
3593 * varobj.c (varobj_create): Update call to varobj_ops.
3594 * varobj.h (default_varobj_ops): Delete define.
3595
3596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3599 initializer.
3600 * c-lang.c (c_language_data): Likewise.
3601 (c_language::macro_expansion): New member function.
3602 (cplus_language_data): Likewise.
3603 (cplus_language::macro_expansion): New member function.
3604 (asm_language_data): Likewise.
3605 (asm_language::macro_expansion): New member function.
3606 (minimal_language_data): Likewise.
3607 (minimal_language::macro_expansion): New member function.
3608 * d-lang.c (d_language_data): Remove la_macro_expansion
3609 initializer.
3610 * f-lang.c (f_language_data): Likewise.
3611 * go-lang.c (go_language_data): Likewise.
3612 * language.c (unknown_language_data): Likewise.
3613 (auto_language_data): Likewise.
3614 * language.h (language_data): Remove la_macro_expansion field.
3615 (language_defn::macro_expansion): New member function.
3616 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3617 initializer.
3618 * objc-lang.c (objc_language_data): Likewise.
3619 (objc_language::macro_expansion): New member function.
3620 * opencl-lang.c (opencl_language_data): Likewise.
3621 (opencl_language::macro_expansion): New member function.
3622 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3623 initializer.
3624 * rust-lang.c (rust_language_data): Likewise.
3625 * symtab.c (default_collect_symbol_completion_matches_break_on):
3626 Update call to macro_expansion.
3627
3628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * ada-lang.c (ada_language_data): Remove la_array_ordering
3631 initializer.
3632 * c-lang.c (c_language_data): Likewise.
3633 (cplus_language_data): Likewise.
3634 (asm_language_data): Likewise.
3635 (minimal_language_data): Likewise.
3636 * d-lang.c (d_language_data): Likewise.
3637 * dwarf2/read.c (read_array_order): Update for call to
3638 array_ordering.
3639 * f-lang.c (f_language_data): Remove la_array_ordering
3640 initializer.
3641 (f_language::array_ordering): New member function.
3642 * go-lang.c (go_language_data): Remove la_array_ordering
3643 initializer.
3644 * language.c (unknown_language_data): Likewise.
3645 (auto_language_data): Likewise.
3646 * language.h (language_data): Delete la_array_ordering field.
3647 (language_defn::array_ordering): New member function.
3648 * m2-lang.c (m2_language_data): Remove la_array_ordering
3649 initializer.
3650 * objc-lang.c (objc_language_data): Likewise.
3651 * opencl-lang.c (opencl_language_data): Likewise.
3652 * p-lang.c (pascal_language_data): Likewise.
3653 * rust-lang.c (rust_language_data): Likewise.
3654
3655 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3656
3657 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3658 initializer.
3659 * c-lang.c (c_language_data): Likewise.
3660 (cplus_language_data): Likewise.
3661 (asm_language_data): Likewise.
3662 (minimal_language_data): Likewise.
3663 * d-lang.c (d_language_data): Likewise.
3664 * f-lang.c (f_language_data): Likewise.
3665 (f_language::case_sensitivity): New member function.
3666 * go-lang.c (go_language_data): Remove la_case_sensitivity
3667 initializer.
3668 * language.c (enum case_mode): Moved here from language.h.
3669 (case_mode): Make static.
3670 (show_case_command): Update for case_sensitivity being a method.
3671 (set_case_command): Likewise.
3672 (set_range_case): Likewise.
3673 (unknown_language_data): Remove la_case_sensitivity initializer.
3674 (auto_language_data): Likewise.
3675 * language.h (case_mode): Delete, move enum declaration to
3676 language.c.
3677 (language_data): Delete la_case_sensitivity field.
3678 (language_defn::case_sensitivity): New member function.
3679 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3680 initializer.
3681 * objc-lang.c (objc_language_data): Likewise.
3682 * opencl-lang.c (opencl_language_data): Likewise.
3683 * p-lang.c (pascal_language_data): Likewise.
3684 * rust-lang.c (rust_language_data): Likewise.
3685
3686 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3687
3688 * ada-lang.c (ada_language_data): Remove la_range_check
3689 initializer.
3690 * c-lang.c (c_language_data): Likewise.
3691 (cplus_language_data): Likewise.
3692 (asm_language_data): Likewise.
3693 (minimal_language_data): Likewise.
3694 * d-lang.c (d_language_data): Likewise.
3695 * f-lang.c (f_language_data): Likewise.
3696 (f_language::range_checking_on_by_default): New member function.
3697 * go-lang.c (go_language_data): Remove la_range_check initializer.
3698 * language.c (enum range_mode): Moved here from language.h.
3699 (range_mode): Made static.
3700 (show_range_command): Update to use
3701 range_checking_on_by_default.
3702 (set_range_command): Likewise.
3703 (set_range_case): Likewise.
3704 (unknown_language_data): Remove la_range_check initializer.
3705 (auto_language_data): Likewise.
3706 * language.h (range_mode): Delete. Enum definition moved to
3707 language.c.
3708 (language_data): Remove la_range_check field.
3709 (language_defn::range_checking_on_by_default): New member
3710 function.
3711 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3712 (m2_language::range_checking_on_by_default): New member function.
3713 * objc-lang.c (objc_language_data): Remove la_range_check
3714 initializer.
3715 * opencl-lang.c (opencl_language_data): Likewise.
3716 * p-lang.c (pascal_language_data): Likewise.
3717 (pascal_language::range_checking_on_by_default): New member
3718 function.
3719 * rust-lang.c (rust_language_data): Remove la_range_check
3720 initializer.
3721 (rust_language::range_checking_on_by_default): New member
3722 function.
3723
3724 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * dwarf2/read.c (dwarf2_physname): Remove special case for
3727 language_go.
3728 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3729 member function.
3730
3731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_language_data): Remove
3734 la_store_sym_names_in_linkage_form_p initializer.
3735 (ada_language::store_sym_names_in_linkage_form_p): New member
3736 function.
3737 * c-lang.c (c_language_data): Remove
3738 la_store_sym_names_in_linkage_form_p initializer.
3739 (c_language::store_sym_names_in_linkage_form_p): New member
3740 function.
3741 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3742 initializer.
3743 (asm_language_data): Likewise.
3744 (asm_language::store_sym_names_in_linkage_form_p): New member
3745 function.
3746 (minimal_language_data): Remove
3747 la_store_sym_names_in_linkage_form_p initializer.
3748 (minimal_language::store_sym_names_in_linkage_form_p): New member
3749 function.
3750 * d-lang.c (d_language_data): Remove
3751 la_store_sym_names_in_linkage_form_p initializer.
3752 * dwarf2/read.c (dwarf2_physname): Update call to
3753 store_sym_names_in_linkage_form_p.
3754 * f-lang.c (f_language_data): Remove
3755 la_store_sym_names_in_linkage_form_p initializer.
3756 * go-lang.c (go_language_data): Remove
3757 la_store_sym_names_in_linkage_form_p initializer.
3758 * language.c (unknown_language_data): Remove
3759 la_store_sym_names_in_linkage_form_p initializer.
3760 (unknown_language::store_sym_names_in_linkage_form_p): New member
3761 function.
3762 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3763 initializer.
3764 (auto_language::store_sym_names_in_linkage_form_p): New member
3765 function.
3766 * language.h (language_data): Remove
3767 la_store_sym_names_in_linkage_form_p member variable.
3768 (language_defn::store_sym_names_in_linkage_form_p): New member
3769 function.
3770 * m2-lang.c (m2_language_data): Remove
3771 la_store_sym_names_in_linkage_form_p initializer.
3772 * objc-lang.c (objc_language_data): Likewise.
3773 * opencl-lang.c (opencl_language_data): Likewise.
3774 * p-lang.c (pascal_language_data): Likewise.
3775 * rust-lang.c (rust_language_data): Likewise.
3776
3777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * ada-lang.c (ada_language_data): Remove string_lower_bound
3780 initializer.
3781 * c-lang.c (c_language_data): Likewise.
3782 (cplus_language_data): Likewise.
3783 (asm_language_data): Likewise.
3784 (minimal_language_data): Likewise.
3785 * d-lang.c (d_language_data): Likewise.
3786 * f-lang.c (f_language_data): Likewise.
3787 * go-lang.c (go_language_data): Likewise.
3788 * language.c (unknown_language_data): Likewise.
3789 (auto_language_data): Likewise.
3790 * language.h (language_data): Remove string_lower_bound field.
3791 (language_defn::string_lower_bound): New member function.
3792 * m2-lang.c (m2_language_data): Remove string_lower_bound
3793 initializer.
3794 (m2_language::string_lower_bound): New member function.
3795 * objc-lang.c (objc_language_data): Remove string_lower_bound
3796 initializer.
3797 * opencl-lang.c (opencl_language_data): Likewise.
3798 * p-lang.c (pascal_language_data): Likewise.
3799 * rust-lang.c (rust_language_data): Likewise.
3800 * valops.c (value_cstring): Update call to string_lower_bound.
3801 (value_string): Likewise.
3802 * value.c (allocate_repeated_value): Likewise.
3803
3804 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * valops.c (value_repeat): Fix incorrect argument name in comment.
3807
3808 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * ada-lang.c (ada_language_data): Remove c_style_arrays
3811 initializer.
3812 (ada_language::c_style_arrays_p): New member fuction.
3813 * c-lang.c (c_language_data): Remove c_style_arrays
3814 initializer.
3815 (cplus_language_data): Likewise.
3816 (asm_language_data): Likewise.
3817 (minimal_language_data): Likewise.
3818 * d-lang.c (d_language_data): Likewise.
3819 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3820 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3821 (f_language::c_style_arrays_p): New member function.
3822 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3823 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3824 * language.c (unknown_language_data): Remove c_style_arrays
3825 initializer.
3826 (auto_language_data): Likewise.
3827 * language.h (language_data): Remove c_style_arrays field.
3828 (language_defn::c_style_arrays_p): New member function.
3829 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3830 (m2_language::c_style_arrays_p): New member function.
3831 * objc-lang.c (objc_language_data): Remove c_style_arrays
3832 initializer.
3833 * opencl-lang.c (opencl_language_data): Likewise.
3834 * p-lang.c (pascal_language_data): Likewise.
3835 * rust-lang.c (rust_language_data): Likewise.
3836 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3837 and update local variable to a bool.
3838 * valops.c (value_cast): Update call to c_style_arrays_p.
3839 (value_array): Likewise.
3840 * value.c (coerce_array): Likewise.
3841
3842 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * ada-lang.c (ada_language_data): Remove la_language initializer.
3845 * c-lang.c (c_language_data): Likewise.
3846 (cplus_language_data): Likewise.
3847 (asm_language_data): Likewise.
3848 (minimal_language_data): Likewise.
3849 * d-lang.c (d_language_data): Likewise.
3850 * f-lang.c (f_language_data): Likewise.
3851 * go-lang.c (go_language_data): Likewise.
3852 * language.c (unknown_language_data): Likewise.
3853 (auto_language_data): Likewise.
3854 * language.h (language_data): Remove la_language field.
3855 (language_defn::language_defn): Initialise la_language field.
3856 (language_defn::la_language): New member variable.
3857 * m2-lang.c (m2_language_data): Remove la_language field.
3858 * objc-lang.c (objc_language_data): Likewise.
3859 * opencl-lang.c (opencl_language_data): Likewise.
3860 * p-lang.c (pascal_language_data): Likewise.
3861 * rust-lang.c (rust_language_data): Likewise.
3862
3863 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_extensions): Delete, moved into
3866 ada_language::filename_extensions.
3867 (ada_language_data): Remove la_filename_extensions initializer.
3868 (ada_language::filename_extensions): New member function.
3869 * c-lang.c (c_extensions): Delete, moved into
3870 c_language::filename_extensions.
3871 (c_language_data): Remove la_filename_extensions initializer.
3872 (c_language::filename_extensions): New member function.
3873 (cplus_extensions): Delete, moved into
3874 cplus_language::filename_extensions.
3875 (cplus_language_data): Remove la_filename_extensions initializer.
3876 (cplus_language::filename_extensions): New member function.
3877 (asm_extensions): Delete, moved into
3878 asm_language::filename_extensions.
3879 (asm_language_data): Remove la_filename_extensions initializer.
3880 (asm_language::filename_extensions): New member function.
3881 (minimal_language_data): Remove la_filename_extensions
3882 initializer.
3883 * d-lang.c (d_extensions): Delete, moved into
3884 d_language::filename_extensions.
3885 (d_language_data): Remove la_filename_extensions initializer.
3886 (d_language::filename_extensions): New member function.
3887 * f-lang.c (f_extensions): Delete, moved into
3888 f_language::filename_extensions.
3889 (f_language_data): Remove la_filename_extensions initializer.
3890 (f_language::filename_extensions): New member function.
3891 * go-lang.c (go_language_data): Remove la_filename_extensions
3892 initializer.
3893 * language.c (add_set_language_command): Update now that
3894 filename_extensions returns a vector.
3895 (unknown_language_data): Remove la_filename_extensions
3896 initializer.
3897 (auto_language_data): Likewise.
3898 * language.h (language_data): Remove la_filename_extensions field.
3899 (language_defn::filename_extensions): New member function.
3900 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3901 initializer.
3902 * objc-lang.c (objc_extensions): Delete, moved into
3903 objc_language::filename_extensions.
3904 (objc_language_data): Remove la_filename_extensions initializer.
3905 (objc_language::filename_extensions): New member function.
3906 * opencl-lang.c (opencl_language_data): Remove
3907 la_filename_extensions initializer.
3908 * p-lang.c (pascal_extensions): Delete, moved into
3909 pascal_language::filename_extensions.
3910 (pascal_language_data): Remove la_filename_extensions initializer.
3911 (pascal_language::filename_extensions): New member function.
3912 * rust-lang.c (rust_extensions): Delete, moved into
3913 rust_language::filename_extensions.
3914 (rust_language_data): Remove la_filename_extensions initializer.
3915 (rust_language::filename_extensions): New member function.
3916 * symfile.c (add_filename_language): Add new assert.
3917
3918 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * ada-lang.c (ada_language_data): Remove la_name and
3921 la_natural_name initializers.
3922 (ada_language::name): New member function.
3923 (ada_language::natural_name): New member function.
3924 * c-lang.c (c_language_data): Remove la_name and
3925 la_natural_name initializers.
3926 (c_language::name): New member function.
3927 (c_language::natural_name): New member function.
3928 (cplus_language_data): Remove la_name and
3929 la_natural_name initializers.
3930 (cplus_language::name): New member function.
3931 (cplus_language::natural_name): New member function.
3932 (asm_language_data): Remove la_name and
3933 la_natural_name initializers.
3934 (asm_language::name): New member function.
3935 (asm_language::natural_name): New member function.
3936 (minimal_language_data): Remove la_name and
3937 la_natural_name initializers.
3938 (minimal_language::name): New member function.
3939 (minimal_language::natural_name): New member function.
3940 * compile/compile.c (compile_to_object): Update call to
3941 lanugage_defn::name.
3942 * d-lang.c (d_language_data): Remove la_name and
3943 la_natural_name initializers.
3944 (d_language::name): New member function.
3945 (d_language::natural_name): New member function.
3946 * expprint.c (print_subexp_standard): Update call to
3947 language_defn::name.
3948 (dump_raw_expression): Likewise
3949 (dump_prefix_expression): Likewise.
3950 * f-lang.c (f_language_data): Remove la_name and
3951 la_natural_name initializers.
3952 (f_language::name): New member function.
3953 (f_language::natural_name): New member function.
3954 * go-lang.c (go_language_data): Remove la_name and
3955 la_natural_name initializers.
3956 (go_language::name): New member function.
3957 (go_language::natural_name): New member function.
3958 * language.c (show_language_command): Update call to
3959 language_defn::name.
3960 (set_language_command): Likewise.
3961 (language_enum): Likewise.
3962 (language_str): Likewise.
3963 (add_set_language_command): Likewise, use
3964 language_defn::natural_name in the doc string.
3965 (unknown_language_data): Remove la_name and
3966 la_natural_name initializers.
3967 (unknown_language::name): New member function.
3968 (unknown_language::natural_name): New member function.
3969 (auto_language_data): Remove la_name and
3970 la_natural_name initializers.
3971 (auto_language::name): New member function.
3972 (auto_language::natural_name): New member function.
3973 (language_lookup_primitive_type_as_symbol): Update call to
3974 language_defn::name.
3975 * language.h (language_data): Remove la_name and la_natural_name
3976 member variables.
3977 (language_defn::name): New member function.
3978 (language_defn::natural_name): New member function.
3979 * m2-lang.c (m2_language_data): Remove la_name and
3980 la_natural_name initializers.
3981 (m2_language::name): New member function.
3982 (m2_language::natural_name): New member function.
3983 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3984 language_defn::natural_name.
3985 * objc-lang.c (objc_language_data): Remove la_name and
3986 la_natural_name initializers.
3987 (objc_language::name): New member function.
3988 (objc_language::natural_name): New member function.
3989 * opencl-lang.c (opencl_language_data): Remove la_name and
3990 la_natural_name initializers.
3991 (opencl_language::name): New member function.
3992 (opencl_language::natural_name): New member function.
3993 * p-lang.c (pascal_language_data): Remove la_name and
3994 la_natural_name initializers.
3995 (pascal_language::name): New member function.
3996 (pascal_language::natural_name): New member function.
3997 * rust-lang.c (rust_language_data): Remove la_name and
3998 la_natural_name initializers.
3999 (rust_language::name): New member function.
4000 (rust_language::natural_name): New member function.
4001 * symtab.c (lookup_language_this): Update call to
4002 language_defn::name.
4003
4004 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4005
4006 * ada-lang.c (ada_language_data): Remove la_name_of_this
4007 initializer.
4008 * ax-gdb.c (gen_expr): Update call to name_of_this.
4009 * c-exp.y (classify_name): Likewise.
4010 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4011 (cplus_language_data): Likewise.
4012 (cplus_language::name_of_this): New member function.
4013 (asm_language_data): Remove la_name_of_this initializer.
4014 (minimal_language_data): Likewise.
4015 * d-lang.c (d_language_data): Likewise.
4016 (d_language::name_of_this): New member function.
4017 * expprint.c (print_subexp_standard): Update call to name_of_this.
4018 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4019 * go-lang.c (go_language_data): Likewise.
4020 * language.c (unknown_language_data): Likewise.
4021 (unknown_language::name_of_this): New member function.
4022 (auto_language_data): Remove la_name_of_this initializer.
4023 (auto_language::name_of_this): New member function.
4024 * language.h (language_data): Delete la_name_of_this member
4025 variable.
4026 (language_defn::name_of_this): New member function.
4027 * m2-lang.c (m2_language_data): Remove la_name_of_this
4028 initializer.
4029 * objc-lang.c (objc_language_data): Likewise.
4030 (objc_language::name_of_this): New member function.
4031 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4032 initializer.
4033 * p-lang.c (pascal_language_data): Likewise.
4034 (pascal_language::name_of_this): New member function.
4035 * rust-lang.c (rust_language_data): Remove la_name_of_this
4036 initializer.
4037 * symtab.c (lookup_language_this): Update call to name_of_this.
4038 (lookup_symbol_aux): Likewise.
4039 * valops.c (value_of_this): Likewise.
4040
4041 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * ada-lang.c (ada_language_data): Remove
4044 la_struct_too_deep_ellipsis initializer.
4045 (ada_language::struct_too_deep_ellipsis): New member function.
4046 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4047 initializer.
4048 (cplus_language_data): Likewise.
4049 (asm_language_data): Likewise.
4050 (minimal_language_data): Likewise.
4051 * cp-valprint.c (cp_print_value): Update call to
4052 struct_too_deep_ellipsis.
4053 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4054 initializer.
4055 * f-lang.c (f_language_data): Likewise.
4056 (f_language::struct_too_deep_ellipsis): New member function.
4057 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4058 initializer.
4059 * language.c (unknown_language_data): Likewise.
4060 (auto_language_data): Likewise.
4061 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4062 member variable.
4063 (language_defn::struct_too_deep_ellipsis): New member function.
4064 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4065 initializer.Q
4066 * objc-lang.c (objc_language_data): Likewise.
4067 * opencl-lang.c (opencl_language_data): Likewise.
4068 * p-lang.c (pascal_language_data): Likewise.
4069 * rust-lang.c (rust_language_data): Likewise.
4070 * valprint.c (val_print_check_max_depth): Update call to
4071 struct_too_deep_ellipsis.
4072
4073 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4074
4075 * MAINTAINERS (Write After Approval): Add myself.
4076
4077 2020-09-15 Tom Tromey <tom@tromey.com>
4078
4079 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4080 Remove.
4081
4082 2020-09-15 Tom Tromey <tom@tromey.com>
4083
4084 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4085 and TYPE_CODE_METHODPTR cases.
4086 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4087 (c_value_print_inner): Update.
4088 * valprint.c (generic_value_print_memberptr): New function, from
4089 c_value_print_memberptr.
4090 (generic_value_print): Use it. Call cplus_print_method_ptr.
4091
4092 2020-09-15 Tom Tromey <tromey@adacore.com>
4093
4094 * python/python-internal.h (PyInt_FromLong): Remove define.
4095 * python/py-value.c (convert_value_from_python): Use
4096 gdb_py_object_from_longest.
4097 * python/py-type.c (typy_get_code): Use
4098 gdb_py_object_from_longest.
4099 * python/py-symtab.c (salpy_get_line): Use
4100 gdb_py_object_from_longest.
4101 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4102 gdb_py_object_from_longest.
4103 * python/py-record.c (recpy_gap_reason_code): Use
4104 gdb_py_object_from_longest.
4105 * python/py-record-btrace.c (recpy_bt_insn_size)
4106 (recpy_bt_func_level, btpy_list_count): Use
4107 gdb_py_object_from_longest.
4108 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4109 gdb_py_object_from_longest. Fix error handling.
4110 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4111 gdb_py_object_from_longest.
4112 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4113 gdb_py_object_from_longest.
4114 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4115 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4116 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4117
4118 2020-09-15 Tom Tromey <tromey@adacore.com>
4119
4120 * python/python.c (gdbpy_parameter_value): Use
4121 gdb_py_object_from_ulongest.
4122
4123 2020-09-15 Tom Tromey <tromey@adacore.com>
4124
4125 * python/py-infevents.c (create_register_changed_event_object):
4126 Use gdb_py_object_from_longest.
4127 * python/py-exitedevent.c (create_exited_event_object): Use
4128 gdb_py_object_from_longest.
4129
4130 2020-09-15 Tom Tromey <tromey@adacore.com>
4131
4132 * python/python.c (gdbpy_parameter_value): Use
4133 gdb_py_object_from_longest.
4134 * python/py-type.c (convert_field, typy_range): Use
4135 gdb_py_object_from_longest.
4136 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4137 gdb_py_object_from_longest.
4138 * python/py-lazy-string.c (stpy_get_length): Use
4139 gdb_py_object_from_longest.
4140 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4141 gdb_py_object_from_longest.
4142 * python/py-infevents.c (create_memory_changed_event_object): Use
4143 gdb_py_object_from_longest.
4144 * python/py-inferior.c (infpy_get_num): Use
4145 gdb_py_object_from_longest.
4146 (infpy_get_pid): Likewise.
4147
4148 2020-09-15 Tom Tromey <tromey@adacore.com>
4149
4150 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4151 defines.
4152 * python/py-value.c (valpy_long): Use
4153 gdb_py_object_from_ulongest.
4154 * python/py-symtab.c (salpy_get_pc): Use
4155 gdb_py_object_from_ulongest.
4156 (salpy_get_last): Likewise.
4157 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4158 gdb_py_object_from_ulongest.
4159 * python/py-lazy-string.c (stpy_get_address): Use
4160 gdb_py_object_from_ulongest.
4161 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4162 * python/py-arch.c (archpy_disassemble): Use
4163 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4164 error handling.
4165
4166 2020-09-15 Tom Tromey <tromey@adacore.com>
4167
4168 * python/python-internal.h (gdb_py_long_from_longest): Remove
4169 defines.
4170 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4171 * python/py-type.c (convert_field, typy_get_sizeof): Use
4172 gdb_py_object_from_longest.
4173 * python/py-record-btrace.c (btpy_list_index): Use
4174 gdb_py_object_from_longest.
4175
4176 2020-09-15 Tom Tromey <tromey@adacore.com>
4177
4178 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4179 * python/py-record.c (recpy_element_number): Use
4180 gdb_py_object_from_longest.
4181 (recpy_gap_number): Likewise.
4182
4183 2020-09-15 Tom Tromey <tromey@adacore.com>
4184
4185 * top.c (ui::ui): Update.
4186 (highest_ui_num): Remove.
4187 * top.h (struct ui) <num>: Remove.
4188
4189 2020-09-15 Tom Tromey <tromey@adacore.com>
4190
4191 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4192 * ui-style.c (ansi_regex_text): Now array.
4193 * rust-exp.y (number_regex_text): Now array.
4194 * linespec.c (linespec_quote_characters): Now array.
4195 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4196 Now arrays.
4197
4198 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4199
4200 * debuginfod-support.c (debuginfod_client_deleter): New.
4201 (debuginfod_client_up): New.
4202 (debuginfod_init): Return debuginfod_client_up.
4203 (debuginfod_source_query): Adjust.
4204 (debuginfod_debuginfo_query): Adjust.
4205
4206 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4207
4208 * debuginfod-support.c (debuginfod_source_query): Use
4209 make_unique_xstrdup.
4210
4211 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4214 with `type::instance_flags`.
4215
4216 2020-09-14 Michael Mullin <masmullin@gmail.com>
4217
4218 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4219 Remove baton parameter.
4220
4221 2020-09-14 Pedro Alves <pedro@palves.net>
4222
4223 * Makefile.in (SELFTESTS_SRCS): Add
4224 unittests/enum-flags-selftests.c.
4225 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4226 btrace_function_flags instead of enum btrace_function_flag.
4227 * compile/compile-c-types.c (convert_qualified): Use
4228 enum_flags::raw.
4229 * compile/compile-cplus-symbols.c (convert_one_symbol)
4230 (convert_symbol_bmsym):
4231 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4232 (compile_cplus_convert_struct_or_union_methods)
4233 (compile_cplus_instance::convert_qualified_base):
4234 * go-exp.y (parse_string_or_char): Add cast to int.
4235 * unittests/enum-flags-selftests.c: New file.
4236 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4237 type to btrace_thread_flags from btrace_thread_flag.
4238 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4239 local's type to btrace_thread_flags from btrace_thread_flag. Add
4240 cast in DEBUG call.
4241
4242 2020-09-14 Pedro Alves <pedro@palves.net>
4243
4244 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4245 * gdbtypes.c (address_space_name_to_int): Rename to ...
4246 (address_space_name_to_type_instance_flags): ... this.
4247 (address_space_int_to_name): Rename to ...
4248 (address_space_type_instance_flags_to_name): ... this.
4249 * gdbtypes.h (address_space_name_to_int): Rename to ...
4250 (address_space_name_to_type_instance_flags): ... this.
4251 (address_space_int_to_name): Rename to ...
4252 (address_space_type_instance_flags_to_name): ... this.
4253 * type-stack.c (type_stack::insert): Adjust to rename.
4254 * type-stack.h (type_stack::insert): Likewise.
4255
4256 2020-09-14 Pedro Alves <pedro@palves.net>
4257 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * avr-tdep.c (avr_address_class_type_flags): Return
4260 type_instance_flags.
4261 (avr_address_class_type_flags_to_name): Take a
4262 type_instance_flags.
4263 (avr_address_class_name_to_type_flags): Return bool and take a
4264 type_instance_flags.
4265 * d-lang.c (build_d_types): Use type::set_instance_flags.
4266 * ft32-tdep.c (ft32_address_class_type_flags): Return
4267 type_instance_flags.
4268 (ft32_address_class_type_flags_to_name): Take a
4269 type_instance_flags.
4270 (ft32_address_class_name_to_type_flags): Return bool and take a
4271 type_instance_flags.
4272 (ft32_gdbarch_init): Use type::set_instance_flags.
4273 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4274 * gdbarch.h, gdbarch.c: Regenerate.
4275 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4276 (address_class_name_to_type_flags): Use type_instance_flags and
4277 bool.
4278 * gdbtypes.c (address_space_name_to_int)
4279 (address_space_int_to_name, make_qualified_type): Use
4280 type_instance_flags.
4281 (make_qualified_type): Use type_instance_flags and
4282 type::set_instance_flags.
4283 (make_type_with_address_space, make_cv_type, make_vector_type)
4284 (check_typedef): Use type_instance_flags.
4285 (recursive_dump_type): Cast type_instance_flags to unsigned for
4286 printing.
4287 (copy_type_recursive): Use type::set_instance_flags.
4288 (gdbtypes_post_init): Use type::set_instance_flags.
4289 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4290 <m_instance_flags>: ... this.
4291 <instance_flags, set_instance_flags>: New methods.
4292 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4293 (SET_TYPE_INSTANCE_FLAGS): New.
4294 (address_space_name_to_int, address_space_int_to_name)
4295 (make_type_with_address_space): Pass flags using
4296 type_instance_flags instead of int.
4297 * stabsread.c (cleanup_undefined_types_noname): Use
4298 type::set_instance_flags.
4299 * s390-tdep.c (s390_address_class_type_flags): Return
4300 type_instance_flags.
4301 (s390_address_class_type_flags_to_name): Take a
4302 type_instance_flags.
4303 (s390_address_class_name_to_type_flags): Return bool and take a
4304 type_instance_flags.
4305 * type-stack.c (type_stack::follow_types): Use
4306 type_instance_flags.
4307 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4308
4309 2020-09-14 Tom Tromey <tromey@adacore.com>
4310
4311 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4312 * x86-tdep.c (x86_is_thunk_register_name)
4313 (x86_in_indirect_branch_thunk): Update.
4314 * sparc64-tdep.c (sparc64_fpu_register_names)
4315 (sparc64_cp0_register_names, sparc64_register_names)
4316 (sparc64_pseudo_register_names): Now const.
4317 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4318 cp0_registers_num>: Now const.
4319 * sparc-tdep.c (sparc_core_register_names)
4320 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4321 (sparc32_pseudo_register_names): Now const.
4322 (validate_tdesc_registers): Update.
4323 * rust-lang.c (rust_extensions): Now const.
4324 * p-lang.c (p_extensions): Now const.
4325 * objc-lang.c (objc_extensions): Now const.
4326 * nto-tdep.c (nto_thread_state_str): Now const.
4327 * moxie-tdep.c (moxie_register_names): Now const.
4328 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4329 Now const.
4330 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4331 (mips_linux_reg_names): Now const.
4332 (mips_gdbarch_init): Update.
4333 * microblaze-tdep.c (microblaze_register_names): Now const.
4334 * m68k-tdep.c (m68k_register_names): Now const.
4335 * m32r-tdep.c (m32r_register_names): Now const.
4336 * ia64-tdep.c (ia64_register_names): Now const.
4337 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4338 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4339 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4340 ymm_avx512_register_names, pkeys_register_names>: Now const.
4341 * i386-tdep.c (i386_register_names, i386_zmm_names)
4342 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4343 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4344 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4345 * f-lang.c (f_extensions): Now const.
4346 * d-lang.c (d_extensions): Now const.
4347 * csky-tdep.c (csky_register_names): Now const.
4348 * charset.c (default_charset_names, charset_enum): Now const.
4349 (_initialize_charset): Update.
4350 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4351 const.
4352 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4353 (bsd_uthread_solib_loaded): Update.
4354 (bsd_uthread_state): Now const.
4355 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4356 (amd64_ymm_avx512_names, amd64_ymmh_names)
4357 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4358 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4359 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4360 (amd64_dword_names): Now const.
4361 * agent.c (can_use_agent_enum): Now const.
4362 * ada-tasks.c (task_states, long_task_states): Now const.
4363 * ada-lang.c (known_runtime_file_name_patterns)
4364 (known_auxiliary_function_name_patterns, attribute_names)
4365 (standard_exc, ada_extensions): Now const.
4366
4367 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * bcache.h (struct bcache) <bcache>: Remove constructor.
4370 <m_hash_function, m_compare_function>: Remove.
4371 <~bcache>: Make virtual.
4372 <compare>: Remove static method, introduce virtual method.
4373 <default_hash>: Remove.
4374 <hash>: New virtual method.
4375 * bcache.c (bcache::expand_hash_table): Update.
4376 (bcache::insert): Update.
4377 (bcache::hash): New.
4378 (bcache::compare): Update comment and parameter names.
4379 * gdbtypes.c (types_deeply_equal): Update.
4380 * psymtab.h (struct psymbol_bcache): New struct.
4381 (class psymtab_storage) <psymtab_storage>: Make default.
4382 <psymbol_cache>: Change type to psymbol_bcache.
4383 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4384 (psymbol_hash): Change to...
4385 (psymbol_bcache::hash): ... this.
4386 (psymbol_compare): Change to...
4387 (psymbol_bcache::compare): ... this.
4388
4389 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4392 checking for initial lwp.
4393
4394 2020-09-14 Tom Tromey <tromey@adacore.com>
4395
4396 * m68k-tdep.c (m68k_extract_return_value): Use
4397 pointer_result_regnum.
4398 (m68k_store_return_value): Likewise.
4399 (m68k_reg_struct_return_p): Handle vectors and arrays.
4400 (m68k_return_value): Handle arrays.
4401 (m68k_svr4_return_value): Fix single-element aggregate handling.
4402 Handle long double. Adjust for embedded ABI.
4403 (m68k_svr4_init_abi): Set pointer_result_regnum.
4404 (m68k_embedded_init_abi): New function.
4405 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4406 (m68k_osabi_sniffer): New function.
4407 (_initialize_m68k_tdep): Register osabi sniffer.
4408 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4409 member.
4410
4411 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4414 with gdb::unique_xmalloc_ptr<char>.
4415
4416 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4417
4418 * xml-support.h (xml_fetch_another): Change type to be a
4419 function_view.
4420 (xml_process_xincludes): Remove baton parameter.
4421 (xml_fetch_content_from_file): Change baton parameter to
4422 dirname.
4423 * xml-support.c (struct xinclude_parsing_data)
4424 <xinclude_parsing_data>: Remove baton parameter.
4425 <fetcher_baton>: Remove.
4426 (xinclude_start_include): Adjust.
4427 (xml_process_xincludes): Adjust.
4428 (xml_fetch_content_from_file): Replace baton parameter with
4429 dirname.
4430 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4431 (xml_init_syscalls_info): Use a lambda.
4432 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4433 (file_read_description_xml): Use a lambda.
4434 (fetch_available_features_from_target): Change baton parameter
4435 to target_ops.
4436 (target_read_description_xml): Use a lambda.
4437 (target_fetch_description_xml): Use a lambda.
4438 (string_read_description_xml): Update.
4439
4440 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4441
4442 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4443 uses with type::endianity_is_not_default.
4444
4445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * gdbtypes.h (struct type) <endianity_is_not_default,
4448 set_endianity_is_not_default>: New methods.
4449 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4450 type::endianity_is_not_default, change all write call sites to
4451 use type::set_endianity_is_not_default.
4452
4453 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4456 uses with type::is_fixed_instance.
4457
4458 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * gdbtypes.h (struct type) <is_fixed_instance,
4461 set_is_fixed_instance>: New methods.
4462 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4463 write call sites to use type::set_is_fixed_instance.
4464
4465 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4468 uses with type::is_gnu_ifunc.
4469
4470 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4473 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4474 use type::set_is_gnu_ifunc.
4475
4476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4479 uses with type::stub_is_supported.
4480
4481 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4484 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4485 use type::set_stub_is_supported.
4486
4487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4490 uses with type::is_vector.
4491
4492 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4495 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4496 use type::set_is_vector.
4497
4498 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4501 uses with type::has_varargs.
4502
4503 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4506 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4507 use type::set_has_varargs.
4508
4509 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4512 uses with type::is_prototyped.
4513
4514 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4517 New methods.
4518 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4519 call sites to use type::set_is_prototyped.
4520
4521 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4524 uses with type::target_is_stub.
4525
4526 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4529 New methods.
4530 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4531 sites to use type::set_target_is_stub.
4532
4533 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdbtypes.h (TYPE_STUB): Remove, replace all
4536 uses with type::is_stub.
4537
4538 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4541 (TYPE_STUB): Use type::is_stub, change all write call sites to
4542 use type::set_is_stub.
4543
4544 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4547 type::has_no_signedness.
4548
4549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * gdbtypes.h (struct type) <has_no_signedness,
4552 set_has_no_signedness>: New methods.
4553 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4554 call sites to use type::set_has_no_signedness.
4555
4556 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4559 type::is_unsigned.
4560
4561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4564 methods.
4565 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4566 sites to use type::set_is_unsigned.
4567
4568 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4569 Adam Renquinha <arenquinha@cimeq.qc.ca>
4570
4571 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4572 pointer and stack frame offset when unwinding.
4573
4574 2020-09-13 Pedro Alves <pedro@palves.net>
4575
4576 * NEWS: Document "-break-insert --qualified".
4577 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4578
4579 2020-09-13 Pedro Alves <pedro@palves.net>
4580
4581 * linespec.c (classify_mtype, compare_msyms): Delete.
4582 (search_minsyms_for_name): Remove classification logic. Instead
4583 filter out trampoline symbols if we also found an external
4584 function of the same name.
4585
4586 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4587
4588 * NEWS: Create a new section for the next release branch.
4589 Rename the section of the current branch, now that it has
4590 been cut.
4591
4592 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4593
4594 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4595 * version.in: Bump version to 11.0.50.DATE-git.
4596
4597 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4598
4599 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4600
4601 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4602 Felix Willgerodt <Felix.Willgerodt@intel.com>
4603
4604 * gdbarch.sh: Added bfloat16 type.
4605 * gdbarch.c: Regenerated.
4606 * gdbarch.h: Regenerated.
4607 * gdbtypes.c (floatformats_bfloat16): New struct.
4608 (gdbtypes_post_init): Add builtin_bfloat16.
4609 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4610 (floatformats_bfloat16): New struct.
4611 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4612 (i386_ymm_type): Add field "v16_bfloat16"
4613 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4614 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4615 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4616 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4617 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4618 * features/i386/64bit-avx512.c: Regenerated.
4619 * features/i386/64bit-sse.xml: Add bfloat16 type.
4620 * features/i386/64bit-sse.c: Regenerated.
4621
4622 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4623
4624 * i386-tdep.c (i386_zmm_type): Fix field names.
4625 (i386_ymm_type): Fix field names.
4626
4627 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4628
4629 * breakpoint.c: Fix typo in the help message of the
4630 "set breakpoint condition-evaluation" command.
4631
4632 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4633
4634 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4635 * (nbsd_nat_target::pid_to_exec_file)
4636 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4637 (nbsd_nat_target::post_startup_inferior)
4638 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4639 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4640 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4641 * (nbsd_thread_lister): Remove.
4642
4643 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4644
4645 * fork-inferior.c (startup_inferior): Avoid double free.
4646
4647 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4648
4649 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4650 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4651
4652 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4653
4654 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4655 * netbsd-nat.c: Include <sys/ptrace.h>.
4656 * (netbsd_nat::enable_proc_events): Add.
4657
4658 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4659
4660 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4661 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4662 (netbsd_nat::for_each_thread): Add.
4663 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4664 "gdbsupport/common-debug.h".
4665 * (netbsd_nat::netbsd_thread_lister)
4666 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4667 (netbsd_nat::for_each_thread): Add.
4668
4669 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4670
4671 * netbsd-nat.h: Include <unistd.h>.
4672 * (netbsd_nat::pid_to_exec_file): Add.
4673 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4674 * (netbsd_nat::pid_to_exec_file) Add.
4675
4676 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4677
4678 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4679
4680 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4681
4682 * netbsd-nat.h: New file.
4683 * netbsd-nat.c: Likewise.
4684
4685 2020-09-09 Tom Tromey <tromey@adacore.com>
4686
4687 * ada-lang.c (remove_extra_symbols): Do not increment when
4688 removing an element
4689
4690 2020-09-08 Tom Tromey <tromey@adacore.com>
4691
4692 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4693
4694 2020-09-08 Tom Tromey <tromey@adacore.com>
4695
4696 PR win32/25302:
4697 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4698 (gdb_bfd_init_data): New function.
4699 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4700
4701 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4702
4703 * infrun.c (fetch_inferior_event): Use
4704 `switch_to_target_no_thread` to switch the target.
4705
4706 2020-09-06 Tom Tromey <tom@tromey.com>
4707
4708 * symfile.h (dwarf2_free_objfile): Don't declare.
4709
4710 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4711
4712 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4713 to match 16 byte real/complex type generated by Flang compiler.
4714
4715 2020-09-03 Tom de Vries <tdevries@suse.de>
4716
4717 PR breakpoint/26546
4718 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4719 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4720
4721 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * maint.c (index_digits): New function.
4724 (struct maint_print_section_data): Remove.
4725 (print_bfd_section_info): Remove print_data parameter, add arg
4726 and index_digits.
4727 (print_objfile_section_info): Likewise.
4728 (print_bfd_section_info_maybe_relocated): Likewise (plus
4729 objfile).
4730 (maintenance_info_sections): Adjust calls.
4731
4732 2020-09-02 Tom Tromey <tromey@adacore.com>
4733
4734 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4735 for null pointers.
4736 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4737
4738 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4739
4740 * bcache.h (struct bcache) <insert>: Change type of `added` to
4741 pointer to bool.
4742 * bcache.c (bcache::insert): Likewise.
4743 * gdbtypes.c (check_types_worklist): Adjust.
4744 * psymtab.c (add_psymbol_to_bcache): Adjust.
4745
4746 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4747
4748 * corelow.c (unordered_set): Include.
4749 (class core_target): Add field 'm_core_unavailable_mappings'.
4750 (core_target::build_file_mappings): Print only one warning
4751 per inaccessible file. Add unavailable/broken mappings
4752 to m_core_unavailable_mappings.
4753 (core_target::xfer_partial): Call...
4754 (core_target::xfer_memory_via_mappings): New method.
4755
4756 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4759 type to bool.
4760
4761 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * dwarf2/read.c (struct field_info): Fix indentation.
4764
4765 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4768 ordering in comment.
4769 * frame.c (frame_id_eq): Fix indentation.
4770
4771 2020-08-31 Scott Linder <scott@scottlinder.com>
4772 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4775 inline frame ids in outer frame.
4776
4777 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4780 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4781 (outer_frame_id): Use FID_STACK_OUTER instead of
4782 FID_STACK_INVALID.
4783 (frame_id_p): Don't check for outer_frame_id.
4784
4785 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4788 regnum/frame in value. Call allocate_value_lazy.
4789 * frame.c (frame_unwind_register_value): Use
4790 val_print_not_saved.
4791
4792 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4795
4796 2020-08-29 Pedro Alves <pedro@palves.net>
4797
4798 * progspace.c (print_program_space): Use all_inferiors. Switch to
4799 the inferior before calling target_pid_to_str.
4800
4801 2020-08-28 Tom Tromey <tom@tromey.com>
4802
4803 * xcoffread.c (xcoff_end_psymtab): Update comment.
4804 * dbxread.c (dbx_end_psymtab): Update comment.
4805
4806 2020-08-28 Tom de Vries <tdevries@suse.de>
4807
4808 PR breakpoint/26544
4809 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4810 event_location.
4811 (create_breakpoint): Same.
4812 (base_breakpoint_decode_location): Same.
4813 (bkpt_create_sals_from_location): Same.
4814 (bkpt_decode_location): Same.
4815 (bkpt_probe_create_sals_from_location): Same.
4816 (bkpt_probe_decode_location): Same.
4817 (tracepoint_create_sals_from_location): Same.
4818 (tracepoint_decode_location): Same.
4819 (tracepoint_probe_decode_location): Same.
4820 (strace_marker_create_sals_from_location): Same.
4821 (strace_marker_decode_location): Same.
4822 (create_sals_from_location_default): Same.
4823 (decode_location_default): Same.
4824 * breakpoint.h (struct breakpoint_ops): Same.
4825 (create_breakpoint): Same.
4826 * linespec.h (decode_line_full): Same.
4827 * linespec.c (decode_line_full): Same. Throw error if
4828 result.size () == 0.
4829
4830 2020-08-27 Pedro Alves <pedro@palves.net>
4831
4832 PR gdb/26524
4833 * breakpoint.c (until_break_fsm) <location_breakpoint,
4834 caller_breakpoint>: Delete fields.
4835 <breakpoints>: New field.
4836 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4837 two individual breakpoints.
4838 (until_break_fsm::should_stop): Loop over breakpoints in the
4839 breakpoint vector.
4840 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4841 vector.
4842 (until_break_command): Handle location expanding into multiple
4843 sals.
4844
4845 2020-08-27 Pedro Alves <pedro@palves.net>
4846
4847 PR gdb/26523
4848 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4849 bp_until breakpoints user-specified locations. Update intro
4850 comment.
4851
4852 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4853
4854 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4855 gdb_bfd_sections): New.
4856 * maint.c (print_bfd_section_info): Change param type to
4857 maint_print_section_data.
4858 (print_objfile_section_info): Likewise.
4859 (print_bfd_section_info_maybe_relocated): Likewise.
4860 (maintenance_info_sections): Use gdb_bfd_sections.
4861
4862 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4863
4864 * MAINTAINERS: Add ARC target and maintainer.
4865
4866 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4867
4868 * configure.tgt: ARC support for GNU/Linux.
4869 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4870 * arc-linux-tdep.c: New file.
4871 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4872 * arc-tdep.c (arc_write_pc): Use it.
4873
4874 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4875
4876 * arc-tdep.c (arc_check_for_hardware_loop): New.
4877 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4878
4879 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4880
4881 * arc-tdep.h: Include "gdbarch.h".
4882
4883 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4884
4885 * arch/arc.h
4886 (arc_gdbarch_features): New class to stir the selection of target XML.
4887 (arc_create_target_description): Use FEATURES to choose XML target.
4888 (arc_lookup_target_description): Use arc_create_target_description
4889 to create _new_ target descriptions or return the already created
4890 ones if the FEATURES is the same.
4891 * arch/arc.c: Implementation of prototypes described above.
4892 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4893 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4894 * arc-tdep.c (*_feature_name): Make feature names consistent.
4895 (arc_register_feature): A new struct to hold information about
4896 registers of a particular target/feature.
4897 (arc_check_tdesc_feature): Check if XML provides registers in
4898 compliance with ARC_REGISTER_FEATURE structs.
4899 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4900 (determine_*_reg_feature_set): Which feature name to look for.
4901 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4902 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4903 to expected ISA enums to be used in arc_gdbarch_features structs.
4904 * features/Makefile (FEATURE_XMLFILES): Add new files.
4905 * gdb/features/arc/v1-aux.c: New file.
4906 * gdb/features/arc/v1-aux.xml: Likewise.
4907 * gdb/features/arc/v1-core.c: Likewise.
4908 * gdb/features/arc/v1-core.xml: Likewise.
4909 * gdb/features/arc/v2-aux.c: Likewise.
4910 * gdb/features/arc/v2-aux.xml: Likewise.
4911 * gdb/features/arc/v2-core.c: Likewise.
4912 * gdb/features/arc/v2-core.xml: Likewise.
4913 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4914
4915 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4916 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 PR m2/26372
4919 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4920 an assert. Remove single element array indexing pattern as the
4921 MULTI_SUBSCRIPT support will handle this case too.
4922
4923 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4924
4925 * value.h (valprint_check_validity): Move declaration from
4926 here...
4927 * valprint.h (valprint_check_validity): ... to here.
4928
4929 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * debug.h: New file.
4932 * debug.c (debug_prefixed_vprintf): New function.
4933 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4934 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4935
4936 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * infrun.h (infrun_debug_printf_1): New function declaration.
4939 (infrun_debug_printf): New macro.
4940 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4941 throughout.
4942 (infrun_debug_printf): New function.
4943 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4944 (handle_jit_event): Likewise.
4945
4946 2020-08-21 Mark Wielaard <mark@klomp.org>
4947
4948 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4949
4950 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * frame.c (enum class frame_id_status): New.
4953 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4954 (fprintf_frame): Update.
4955 (compute_frame_id): Set frame id status to "computing" on entry.
4956 Set it back to "not_computed" on failure and to "computed" on
4957 success.
4958 (get_frame_id): Assert the frame id is not being computed.
4959 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4960 (create_new_frame): Likewise.
4961 (frame_cleanup_after_sniffer): Update assert.
4962
4963 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4964
4965 * regcache.c (pid_ptid_regcache_map): New type.
4966 (target_ptid_regcache_map): Remove.
4967 (target_pid_ptid_regcache_map): New type.
4968 (regcaches): Change type to target_pid_ptid_regcache_map.
4969 (get_thread_arch_aspace_regcache): Update.
4970 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4971 case.
4972 (regcaches_size): Update.
4973 (regcache_count): Update.
4974 (registers_changed_ptid_target_pid_test): New.
4975 (_initialize_regcache): Register new test.
4976
4977 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4978
4979 * regcache.c (regcache_count): New.
4980 (struct regcache_test_data): New.
4981 (regcache_test_data_up): New.
4982 (populate_regcaches_for_test): New.
4983 (regcaches_test): Remove.
4984 (get_thread_arch_aspace_regcache_test): New.
4985 (registers_changed_ptid_all_test): New.
4986 (registers_changed_ptid_target_test): New.
4987 (registers_changed_ptid_target_ptid_test): New.
4988 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4989 (_initialize_regcache): Register new tests.
4990
4991 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4992
4993 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4994 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4995 gdbarch and aspace parameter. Use current inferior's aspace.
4996 Validate regcache's arch value.
4997 (regcaches_test): Update.
4998
4999 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5000
5001 * regcache.c (regcaches_test): Call registers_changed.
5002
5003 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5004
5005 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5006
5007 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5008
5009 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5010 to find the end of prologue for flang compiled binaries.
5011 * arm-tdep.c (arm_skip_prologue): Likewise.
5012 * i386-tdep.c (i386_skip_prologue): Likewise.
5013 * producer.c (producer_is_llvm): New function.
5014 (producer_parsing_tests): Added new tests for clang/flang.
5015 * producer.h (producer_is_llvm): New declaration.
5016
5017 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * linux-nat.c (linux_nat_debug_printf): New function.
5020 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5021
5022 2020-08-18 Aaron Merey <amerey@redhat.com>
5023
5024 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5025 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5026 (CLIBS): Add DEBUGINFOD_LIBS.
5027
5028 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5029
5030 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5031 'gdbarch_num_regs'.
5032
5033 2020-08-17 Tom Tromey <tromey@adacore.com>
5034
5035 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5036 ada_get_decoded_value returns NULL.
5037
5038 2020-08-17 Tom Tromey <tromey@adacore.com>
5039
5040 * python/py-inferior.c (infpy_search_memory): Use
5041 gdb_py_object_from_ulongest.
5042 * python/py-infevents.c (create_inferior_call_event_object)
5043 (create_memory_changed_event_object): Use
5044 gdb_py_object_from_ulongest.
5045 * python/py-linetable.c (ltpy_entry_get_pc): Use
5046 gdb_py_object_from_ulongest.
5047
5048 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * loc.c (class symbol_needs_eval_context): Fix indentation.
5051
5052 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5053
5054 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5055 bool.
5056
5057 2020-08-17 Tom de Vries <tdevries@suse.de>
5058
5059 PR gdb/26393
5060 * gdbtypes.c (dump_dynamic_prop): New function.
5061 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5062
5063 2020-08-15 Tom de Vries <tdevries@suse.de>
5064
5065 PR backtrace/26390
5066 * stack.c (print_frame_args): Temporarily set the selected
5067 frame to FRAME while printing the frame's arguments.
5068
5069 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5070
5071 PR breakpoints/26385
5072 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5073 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5074
5075 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5076
5077 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5078 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5079 and >= to check return value instead of == -1 and != -1.
5080
5081 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * utils.h (class gdb_argv) <as_array_view>: New method.
5084 * utils.c (gdb_argv_as_array_view_test): New.
5085 (_initialize_utils): Register selftest.
5086 * maint.c (maintenance_selftest): Use the new method.
5087
5088 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5089
5090 * target.h (supports_dumpcore, dumpcore): New
5091 function declarations.
5092 * target.c (supports_dumpcore, dumpcore): New
5093 functions.
5094 * target-delegates.c: Rebuild.
5095 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5096 and target_dumpcore ().
5097
5098 2020-08-13 Aaron Merey <amerey@redhat.com>
5099
5100 * debuginfod-support.c: Replace global variables with user_data.
5101
5102 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * maint.c (maintenance_selftest): Split args and pass array_view
5105 to run_tests.
5106
5107 2020-08-12 Luis Machado <luis.machado@linaro.org>
5108
5109 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5110 type's length.
5111 Use %s and pulongest to print the length.
5112
5113 2020-08-12 Pedro Alves <palves@redhat.com>
5114
5115 * NEWS: Move "Multi-target debugging support" item to the
5116 "Changes since GDB 9" section.
5117
5118 2020-08-12 Pedro Alves <palves@redhat.com>
5119
5120 PR gdb/26336
5121 * progspace.c (program_space::remove_objfile): Invalidate the
5122 frame cache.
5123
5124 2020-08-11 Tom de Vries <tdevries@suse.de>
5125
5126 * MAINTAINERS: Mark ms1 as deleted.
5127
5128 2020-08-10 Luis Machado <luis.machado@linaro.org>
5129
5130 PR gdb/26310
5131
5132 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5133 act accordingly.
5134 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5135 movz/str/stur/stp skipping behavior.
5136
5137 2020-08-10 Luis Machado <luis.machado@linaro.org>
5138
5139 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5140 struct user_sve_header instead of struct sve_context.
5141
5142 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5143
5144 * read.h (dwarf2_fetch_die_loc_sect_off,
5145 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5146 `void *` parameter with function_view.
5147 * read.c (dwarf2_fetch_die_loc_sect_off,
5148 dwarf2_fetch_die_loc_cu_off): Likewise.
5149 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5150 (per_cu_dwarf_call): Adjust.
5151 (get_frame_address_in_block_wrapper): Remove.
5152 (indirect_synthetic_pointer): Adjust.
5153 (get_ax_pc): Remove.
5154 (dwarf2_compile_expr_to_ax): Adjust.
5155
5156 2020-08-08 Tom de Vries <tdevries@suse.de>
5157
5158 PR build/26344
5159 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5160 constructor.
5161 * regcache.c (get_thread_arch_aspace_regcache): Same.
5162
5163 2020-08-07 Tom Tromey <tromey@adacore.com>
5164
5165 * ravenscar-thread.c
5166 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5167 New method.
5168 (ravenscar_thread_target::wait): Check
5169 runtime_initialized.
5170 (ravenscar_thread_target::prepare_to_store)
5171 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5172 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5173 (ravenscar_thread_target::stopped_by_watchpoint)
5174 (ravenscar_thread_target::stopped_data_address)
5175 (ravenscar_thread_target::core_of_thread): Use
5176 scoped_restore_current_thread and
5177 set_base_thread_from_ravenscar_task.
5178
5179 2020-08-07 Tom Tromey <tromey@adacore.com>
5180
5181 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5182
5183 2020-08-07 Tom Tromey <tromey@adacore.com>
5184
5185 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5186 update_inferior_ptid before update_thread_list.
5187 (temporarily_change_regcache_ptid): New class.
5188 (ravenscar_thread_target::fetch_registers)
5189 (ravenscar_thread_target::store_registers)
5190 (ravenscar_thread_target::prepare_to_store): Use base thread when
5191 forwarding operation.
5192
5193 2020-08-07 Tom Tromey <tromey@adacore.com>
5194
5195 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5196 "is_pid" case.
5197
5198 2020-08-07 Tom Tromey <tromey@adacore.com>
5199
5200 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5201 New methods.
5202 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5203 first.
5204 (ravenscar_thread_target::add_thread): Rename from
5205 ravenscar_add_thread.
5206 (ravenscar_thread_target::update_thread_list): Use a lambda.
5207 (ravenscar_thread_target::xfer_partial): New method.
5208
5209 2020-08-07 Tom Tromey <tromey@adacore.com>
5210
5211 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5212 gdb::function_view.
5213 (iterate_over_live_ada_tasks): Change type of argument.
5214 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5215 of argument.
5216
5217 2020-08-07 Tom Tromey <tromey@adacore.com>
5218
5219 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5220 Remove.
5221 (ravenscar_thread_target::extra_thread_info): Remove.
5222 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5223 defer to target beneath for non-Ravenscar threads.
5224
5225 2020-08-07 Tom Tromey <tromey@adacore.com>
5226
5227 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5228 get_base_thread_from_ravenscar_task>: Now methods.
5229 <m_cpu_map>: New member.
5230 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5231 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5232 (ravenscar_thread_target::task_is_currently_active): Update.
5233 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5234 Now a method.
5235 (ravenscar_thread_target::add_active_thread): Put initial thread
5236 into the m_cpu_map.
5237
5238 2020-08-07 Tom Tromey <tromey@adacore.com>
5239
5240 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5241 event_ptid.
5242
5243 2020-08-07 Tom Tromey <tromey@adacore.com>
5244
5245 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5246 runtime_initialized.
5247
5248 2020-08-07 Tom Tromey <tromey@adacore.com>
5249
5250 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5251 add_active_thread.
5252 (ravenscar_thread_target::add_active_thread): Now public.
5253 (ravenscar_inferior_created): Call add_active_thread after pushing
5254 the target.
5255
5256 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * regcache.c (ptid_regcache_map): New type.
5259 (target_ptid_regcache_map): New type.
5260 (regcaches): Change type to target_ptid_regcache_map.
5261 (get_thread_arch_aspace_regcache): Update to regcaches' new
5262 type.
5263 (regcache_thread_ptid_changed): Likewise.
5264 (registers_changed_ptid): Likewise.
5265 (regcaches_size): Likewise.
5266 (regcaches_test): Update.
5267 (regcache_thread_ptid_changed): Update.
5268 * regcache.h (regcache_up): New type.
5269 * gdbsupport/ptid.h (hash_ptid): New struct.
5270
5271 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * observable.h (thread_ptid_changed): Add parameter
5274 `process_stratum_target *`.
5275 * infrun.c (infrun_thread_ptid_changed): Add parameter
5276 `process_stratum_target *` and use it.
5277 (selftests): New namespace.
5278 (infrun_thread_ptid_changed): New function.
5279 (_initialize_infrun): Register selftest.
5280 * regcache.c (regcache_thread_ptid_changed): Add parameter
5281 `process_stratum_target *` and use it.
5282 (regcache_thread_ptid_changed): New function.
5283 (_initialize_regcache): Register selftest.
5284 * thread.c (thread_change_ptid): Pass target to
5285 thread_ptid_changed observable.
5286
5287 2020-08-06 Caroline Tice <cmtice@google.com>
5288
5289 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5290 (struct dwp_sections): Update field comments. Add loclists and
5291 rnglists fields.
5292 (struct virtual_v2_dwo_sections): Rename struct to
5293 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5294 size & offset fields for loclists and rnglists.
5295 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5296 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5297 skipping dummy type units.
5298 (create_dwp_hash_table): Update the large comment above the function to
5299 discuss Version 5 DWP files as well, with references. Update all the
5300 version checks in the function to check for version 5 as well. Add new
5301 section at the end to create dwp hash table for version 5.
5302 (create_dwp_v2_section): Rename function to
5303 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5304 Add V5 to error message text.
5305 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5306 into calls to create_dwp_v2_or_v5_section.
5307 (create_dwo_unit_in_dwp_v5): New function.
5308 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5309 check for version2; add else clause to handle version 5.
5310 (open_and_init_dwo_file): Add code to check dwarf version & only call
5311 create_debug_types_hash_table (with sections.types) if version is not 5;
5312 else call create_debug_type_hash_table, with sections.info.
5313 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5314 version 5.
5315 (dwarf2_locate_v5_dwp_sections): New function.
5316 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5317 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5318
5319 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * regcache.h (class regcache): Remove friend
5322 registers_changed_ptid.
5323 <regcache_thread_ptid_changed>: Remove.
5324 <regcaches>: Remove.
5325 * regcache.c (regcache::regcaches): Rename to...
5326 (regcaches): ... this. Make static.
5327 (get_thread_arch_aspace_regcache): Update.
5328 (regcache::regcache_thread_ptid_changed): Rename to...
5329 (regcache_thread_ptid_changed): ... this. Update.
5330 (class regcache_access): Remove.
5331 (regcaches_test): Update.
5332 (_initialize_regcache): Update.
5333 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5334 <forward_list>.
5335
5336 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * regcache.h (class regcache) <current_regcache>: Rename to...
5339 <regcaches>: ... this. Move doc here.
5340 * regcache.c (regcache::current_regcache) Rename to...
5341 (regcache::regcaches): ... this. Move doc to header.
5342 (get_thread_arch_aspace_regcache): Update.
5343 (regcache::regcache_thread_ptid_changed): Update.
5344 (registers_changed_ptid): Update.
5345 (class regcache_access) <current_regcache_size>: Rename to...
5346 <regcaches_size>: ... this.
5347 (current_regcache_test): Rename to...
5348 (regcaches_test): ... this.
5349 (_initialize_regcache): Update.
5350
5351 2020-08-06 Victor Collod <vcollod@nvidia.com>
5352
5353 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5354
5355 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5356
5357 * corelow.c (core_target::build_file_mappings): Don't output
5358 null pathname in warning.
5359
5360 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5363 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5364 gdb.dwarf2/dw2-single-line-discriminators.exp,
5365 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5366
5367 2020-08-05 Tom Tromey <tromey@adacore.com>
5368
5369 PR rust/26197:
5370 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5371 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5372 Fix off-by-one and type size errors in ordinary case.
5373
5374 2020-08-05 Tom de Vries <tdevries@suse.de>
5375
5376 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5377 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5378
5379 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * frame.h (frame_id_p): Return bool.
5382 (frame_id_artificial_p): Return bool.
5383 (frame_id_eq): Return bool.
5384 (has_stack_frames): Return bool.
5385 (get_selected_frame): Fix typo in comment.
5386 (get_frame_pc_if_available): Return bool.
5387 (get_frame_address_in_block_if_available): Return bool.
5388 (get_frame_func_if_available): Return bool.
5389 (read_frame_register_unsigned): Return bool.
5390 (get_frame_register_bytes): Return bool.
5391 (safe_frame_unwind_memory): Return bool.
5392 (deprecated_frame_register_read): Return bool.
5393 (frame_unwinder_is): Return bool.
5394 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5395 bool.
5396 <this_id::p>: Likewise.
5397 <prev_p>: Likewise.
5398 (frame_stash_add): Return bool.
5399 (get_frame_id): Use bool.
5400 (frame_id_build_special) Use bool.
5401 (frame_id_build_unavailable_stack): Use bool.
5402 (frame_id_build): Use bool.
5403 (frame_id_p): Return bool, use true/false instead of 1/0.
5404 (frame_id_artificial_p): Likewise.
5405 (frame_id_eq): Likewise.
5406 (frame_id_inner): Likewise.
5407 (get_frame_func_if_available): Likewise.
5408 (read_frame_register_unsigned): Likewise.
5409 (deprecated_frame_register_read): Likewise.
5410 (get_frame_register_bytes): Likewise.
5411 (has_stack_frames): Likewise.
5412 (inside_main_func): Likewise.
5413 (inside_entry_func): Likewise.
5414 (get_frame_pc_if_available): Likewise.
5415 (get_frame_address_in_block_if_available): Likewise.
5416 (frame_unwinder_is): Likewise.
5417 (safe_frame_unwind_memory): Likewise.
5418 (frame_unwind_arch): Likewise.
5419
5420 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5421
5422 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5423 type to cached_copy_status.
5424 (fprintf_frame): Adjust.
5425 (get_frame_func_if_available): Adjust.
5426 (frame_cleanup_after_sniffer): Adjust.
5427
5428 2020-08-04 Mark Wielaard <mark@klomp.org>
5429
5430 * MAINTAINERS (Write After Approval): Update email address.
5431
5432 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5433
5434 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5435 dynamic_prop::const_val.
5436
5437 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5440 dynamic_prop::kind.
5441
5442 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5445
5446 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5447
5448 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5449
5450 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5451 Jose E. Marchesi <jose.marchesi@oracle.com>
5452
5453 * configure.tgt: Add entry for bpf-*-*.
5454 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5455 (ALLDEPFILES): Add bpf-tdep.c.
5456 * bpf-tdep.c: New file.
5457 * MAINTAINERS: Add bpf target and maintainer.
5458 * NEWS: Mention the support for the new target.
5459
5460 2020-08-04 Tom de Vries <tdevries@suse.de>
5461
5462 PR symtab/23270
5463 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5464 Error.
5465
5466 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5467
5468 * syscalls/freebsd.xml: Regenerate.
5469
5470 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5471
5472 * syscalls/update-freebsd.sh: Fix usage and year range.
5473
5474 2020-08-03 Tom de Vries <tdevries@suse.de>
5475
5476 PR symtab/26333
5477 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5478 DW_LNE_lo_user/DW_LNE_hi_user range.
5479
5480 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5481
5482 PR ada/26318
5483 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5484 kind.
5485
5486 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5487
5488 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5489
5490 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5491
5492 * breakpoint.c (set_breakpoint_condition): Update the condition
5493 expressions after checking that the input condition string parses
5494 successfully and does not contain junk at the end.
5495
5496 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * breakpoint.c (set_breakpoint_condition): Update the
5499 condition string after parsing the new condition successfully.
5500
5501 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5502
5503 * proc-api.c (_STRUCTURED_PROC): Don't define.
5504 * proc-events.c: Likewise.
5505 * proc-flags.c: Likewise.
5506 * proc-why.c: Likewise.
5507 * procfs.c: Likewise.
5508
5509 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5510 * configure, config.in: Regenerate.
5511
5512 2020-07-30 Tom de Vries <tdevries@suse.de>
5513
5514 PR build/26320
5515 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5516 m_red/m_green/m_blue in a union.
5517
5518 2020-07-29 Tom de Vries <tdevries@suse.de>
5519
5520 PR tdep/26280
5521 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5522
5523 2020-07-28 Tom Tromey <tromey@adacore.com>
5524
5525 PR symtab/26270:
5526 * symtab.h (find_pc_partial_function_sym): Declare.
5527 * cli/cli-cmds.c (disassemble_command): Use
5528 find_pc_partial_function_sym. Check asm_demangle.
5529 * blockframe.c (cache_pc_function_sym): New global.
5530 (cache_pc_function_name): Remove.
5531 (clear_pc_function_cache): Update.
5532 (find_pc_partial_function_sym): New function, from
5533 find_pc_partial_function.
5534 (find_pc_partial_function): Rewrite using
5535 find_pc_partial_function_sym.
5536
5537 2020-07-28 Tom Tromey <tromey@adacore.com>
5538
5539 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5540 help. Add usage.
5541
5542 2020-07-28 Tom Tromey <tromey@adacore.com>
5543
5544 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5545 <DW_OP_GNU_variable_value>: Cast to address type.
5546
5547 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5548
5549 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5550 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5551 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5552 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5553 (nbsd_get_siginfo_type): New.
5554 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5555 (_initialize_nbsd_tdep): New.
5556
5557 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5558
5559 PR binutils/26301
5560 * configure: Regenerated.
5561
5562 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5563
5564 PR binutils/26301
5565 * configure: Regenerated.
5566
5567 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * python/py-frame.c: Remove 'user-regs.h' include.
5570 (frapy_read_register): Rewrite to make use of
5571 gdbpy_parse_register_id.
5572 * python/py-registers.c (gdbpy_parse_register_id): New function,
5573 moved here from python/py-unwind.c. Updated the return type, and
5574 also accepts register descriptor objects.
5575 * python/py-unwind.c: Remove 'user-regs.h' include.
5576 (pyuw_parse_register_id): Moved to python/py-registers.c.
5577 (unwind_infopy_add_saved_register): Update to use
5578 gdbpy_parse_register_id.
5579 (pending_framepy_read_register): Likewise.
5580 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5581
5582 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * python/py-registers.c: Add 'user-regs.h' include.
5585 (register_descriptor_iter_find): New function.
5586 (register_descriptor_iterator_object_methods): New static global
5587 methods array.
5588 (register_descriptor_iterator_object_type): Add pointer to methods
5589 array.
5590
5591 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5592
5593 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5594 for all architectures on FreeBSD 11.3 and later.
5595
5596 2020-07-27 Tom Tromey <tromey@adacore.com>
5597
5598 * gcore.h (load_corefile): Don't declare.
5599
5600 2020-07-27 Tom de Vries <tdevries@suse.de>
5601
5602 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5603 * config.in: Regenerate.
5604 * configure: Regenerate.
5605
5606 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5607
5608 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5609 ws2tcpip.h. When checking whether socklen_t type is defined, use
5610 ws2tcpip.h if it is available and sys/socket.h isn't.
5611 * configure: Regenerate.
5612 * config.in: Regenerate.
5613
5614 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 PR fortran/23051
5617 PR fortran/26139
5618 * valops.c (value_ind): Pass address to
5619 readjust_indirect_value_type.
5620 * value.c (readjust_indirect_value_type): Make parameter
5621 non-const, and add extra address parameter. Resolve original type
5622 before using it.
5623 * value.h (readjust_indirect_value_type): Update function
5624 signature and comment.
5625
5626 2020-07-25 Tom de Vries <tdevries@suse.de>
5627
5628 PR symtab/26243
5629 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5630 entries.
5631
5632 2020-07-24 Aaron Merey <amerey@redhat.com>
5633
5634 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5635 * configure: Rebuild.
5636
5637 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5638
5639 PR corefiles/26294
5640 * corelow.c (_initialize_corelow): Add period to help text
5641 for "maintenance print core-file-backed-mappings".
5642
5643 2020-07-23 Pedro Alves <pedro@palves.net>
5644
5645 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5646 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5647 meanwhile.
5648 * frame.c (frame_cache_generation, get_frame_cache_generation):
5649 New.
5650 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5651 (get_prev_frame_if_no_cycle): On exception, don't touch
5652 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5653 * frame.h (get_frame_cache_generation): Declare.
5654
5655 2020-07-23 Tom de Vries <tdevries@suse.de>
5656
5657 PR tui/26282
5658 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5659 New default constructor.
5660
5661 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5662
5663 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5664 exclude non-statement entries.
5665
5666 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5667
5668 * NEWS (New commands): Mention new command
5669 "maintenance print core-file-backed-mappings".
5670
5671 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5672
5673 * corelow.c (gdbcmd.h): Include.
5674 (core_target::info_proc_mappings): New method.
5675 (get_current_core_target): New function.
5676 (maintenance_print_core_file_backed_mappings): New function.
5677 (_initialize_corelow): Add core-file-backed-mappings to
5678 "maint print" commands.
5679
5680 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5681
5682 * linux-tdep.c (dump_note_entry_p): New function.
5683 (linux_dump_mapping_p_ftype): New typedef.
5684 (linux_find_memory_regions_full): Add new parameter,
5685 should_dump_mapping_p.
5686 (linux_find_memory_regions): Adjust call to
5687 linux_find_memory_regions_full.
5688 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5689 call to linux_find_memory_regions_full.
5690
5691 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5692
5693 * corelow.c (solist.h, unordered_map): Include.
5694 (class core_target): Add field m_core_file_mappings and
5695 method build_file_mappings.
5696 (core_target::core_target): Call build_file_mappings.
5697 (core_target::~core_target): Free memory associated with
5698 m_core_file_mappings.
5699 (core_target::build_file_mappings): New method.
5700 (core_target::xfer_partial): Use m_core_file_mappings
5701 for memory transfers.
5702 * linux-tdep.c (linux_read_core_file_mappings): New
5703 function.
5704 (linux_core_info_proc_mappings): Rewrite to use
5705 linux_read_core_file_mappings.
5706 (linux_init_abi): Register linux_read_core_file_mappings.
5707
5708 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5709
5710 * arch-utils.c (default_read_core_file_mappings): New function.
5711 * arch-utils.c (default_read_core_file_mappings): Declare.
5712 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5713 * gdbarch.h, gdbarch.c: Regenerate.
5714
5715 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5716
5717 PR corefiles/25631
5718 * corelow.c (core_target:xfer_partial): Revise
5719 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5720 case after first checking the stratum beneath the core
5721 target.
5722 (has_all_memory): Return true.
5723 * target.c (raw_memory_xfer_partial): Revise comment
5724 regarding use of has_all_memory.
5725
5726 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5727
5728 * exec.h (section_table_xfer_memory): Revise declaration,
5729 replacing section name parameter with an optional callback
5730 predicate.
5731 * exec.c (section_table_xfer_memory): Likewise.
5732 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5733 of section_table_xfer_memory.
5734
5735 2020-07-22 Tom Tromey <tromey@adacore.com>
5736
5737 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5738 lookup_symbol_search_name.
5739
5740 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5743 redundant local variable.
5744 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5745 reference, not pointer, update code accordingly.
5746
5747 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5748 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5749
5750 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5751 * jit.c (jit_breakpoint_re_set_internal): Use the
5752 `skip_jit_symbol_lookup` field.
5753
5754 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5755 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5756
5757 * jit.c (jit_read_descriptor): Define the descriptor address once,
5758 use twice.
5759 (jit_breakpoint_deleted): Move the declaration of the loop variable
5760 `iter` into the loop header.
5761 (jit_breakpoint_re_set_internal): Move the declaration of the local
5762 variable `objf_data` to the first point of definition.
5763 (jit_event_handler): Move the declaration of local variables
5764 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5765 Rename `objf` to `jited`.
5766
5767 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5770 Remove.
5771 * jit.c (get_jiter_objfile_data): Update.
5772
5773 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5774 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * jit.c (struct jit_program_space_data): Remove.
5777 (jit_program_space_key): Remove.
5778 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5779 stuff.
5780 (get_jit_program_space_data): Remove.
5781 (jit_breakpoint_deleted): Iterate on all of the program space's
5782 objfiles.
5783 (jit_inferior_init): Likewise.
5784 (jit_breakpoint_re_set_internal): Likewise. Also change return
5785 type to void.
5786 (jit_breakpoint_re_set): Pass current_program_space to
5787 jit_breakpoint_re_set_internal.
5788
5789 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * jit.h (struct jiter_objfile_data) <cached_code_address,
5792 jit_breakpoint>: Move to here from ...
5793 * jit.c (jit_program_space_data): ... here.
5794 (jiter_objfile_data::~jiter_objfile_data): Update.
5795 (jit_breakpoint_deleted): Update.
5796 (jit_breakpoint_re_set_internal): Update.
5797
5798 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5799
5800 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5801 checks.
5802 (jit_read_descriptor): Remove NULL check.
5803 (jit_event_handler): Add an assertion.
5804
5805 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * jit.h (struct jit_objfile_data): Split into...
5808 (struct jiter_objfile_data): ... this ...
5809 (struct jited_objfile_data): ... and this.
5810 * objfiles.h (struct objfile) <jit_data>: Remove.
5811 <jiter_data, jited_data>: New fields.
5812 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5813 (jiter_objfile_data::~jiter_objfile_data): ... this.
5814 (get_jit_objfile_data): Rename to ...
5815 (get_jiter_objfile_data): ... this.
5816 (add_objfile_entry): Update.
5817 (jit_read_descriptor): Use get_jiter_objfile_data.
5818 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5819 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5820 (jit_inferior_exit_hook): Use objfile's jited_data field.
5821
5822 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * jit.h: Forward-declare `struct minimal_symbol`.
5825 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5826 constructor, destructor, and an objfile* field.
5827 * jit.c (jit_objfile_data): Remove.
5828 (struct jit_objfile_data): Migrate from here to jit.h.
5829 (jit_objfile_data::~jit_objfile_data): New destructor
5830 implementation with code moved from free_objfile_data.
5831 (free_objfile_data): Delete.
5832 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5833 (jit_find_objf_with_entry_addr): Ditto.
5834 (jit_inferior_exit_hook): Ditto.
5835 (_initialize_jit): Remove the call to
5836 register_objfile_data_with_cleanup.
5837 * objfiles.h (struct objfile) <jit_data>: New field.
5838
5839 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5840
5841 * jit.h: Forward-declare `struct objfile`.
5842 (jit_event_handler): Add a second parameter, the JITer objfile.
5843 * jit.c (jit_read_descriptor): Change the signature to take the
5844 JITer objfile as an argument instead of the jit_program_space_data.
5845 (jit_inferior_init): Update the call to jit_read_descriptor.
5846 (jit_event_handler): Use the new JITer objfile argument when calling
5847 jit_read_descriptor.
5848 * breakpoint.c (handle_jit_event): Update the call to
5849 jit_event_handler to pass the JITer objfile.
5850
5851 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5852
5853 * gdbarch.c: Regenerate.
5854 * gdbarch.h: Regenerate.
5855 * gdbarch.sh (handle_segmentation_fault): Remove method.
5856 * infrun.c (handle_segmentation_fault): Remove.
5857 (print_signal_received_reason): Remove call to
5858 handle_segmentation_fault.
5859
5860 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5861
5862 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5863 Rename to sparc64_linux_report_signal_info and add siggnal
5864 argument.
5865 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5866 instead of sparc64_linux_handle_segmentation_fault.
5867
5868 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5869
5870 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5871 i386_linux_report_signal_info instead of
5872 i386_linux_handle_segmentation_fault.
5873 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5874 to i386_linux_report_signal_info and add siggnal argument.
5875 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5876 of i386_linux_handle_segmentation_fault.
5877 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5878 to i386_linux_report_signal_info and add siggnal argument.
5879
5880 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5881
5882 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5883 hook if present.
5884
5885 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5886
5887 * gdbarch.c: Regenerate.
5888 * gdbarch.h: Regenerate.
5889 * gdbarch.sh (report_signal_info): New method.
5890 * infrun.c (print_signal_received_reason): Invoke gdbarch
5891 report_signal_info hook if present.
5892
5893 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * python/py-registers.c : Add 'unordered_map' include.
5896 (gdbpy_new_reggroup): Renamed to...
5897 (gdbpy_get_reggroup): ...this. Update to only create register
5898 group descriptors when needed.
5899 (gdbpy_reggroup_iter_next): Update.
5900
5901 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * python/py-registers.c (gdbpy_register_object_data): New static
5904 global.
5905 (gdbpy_register_object_data_init): New function.
5906 (gdbpy_new_register_descriptor): Renamed to...
5907 (gdbpy_get_register_descriptor): ...this, and update to reuse
5908 existing register descriptors where possible.
5909 (gdbpy_register_descriptor_iter_next): Update.
5910 (gdbpy_initialize_registers): Register new gdbarch data.
5911
5912 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * linux-nat.c (stopped_pids): Make static.
5915
5916 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 PR ada/26235
5919 * gdbtypes.c (ada_discrete_type_low_bound,
5920 ada_discrete_type_high_bound): Handle undefined bounds.
5921
5922 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5923
5924 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5925 declaration.
5926 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5927 function.
5928
5929 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5930
5931 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5932 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5933 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5934 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5935 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5936 method.
5937
5938 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5939
5940 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5941 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5942 which are deprecated in Guile 3.0.
5943 * configure.ac (try_guile_versions): Add "guile-3.0".
5944 * configure (try_guile_versions): Regenerate.
5945 * NEWS: Update entry.
5946
5947 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5948 Doug Evans <dje@google.com>
5949
5950 PR gdb/21104
5951 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5952 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5953 USING_GUILE_BEFORE_2_2.
5954 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5955 Change type to 'scm_t_port_type *'.
5956 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5957 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5958 parameter and honor it. Update callers.
5959 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5960 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5961 functions.
5962 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5963 USING_GUILE_BEFORE_2_2.
5964 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5965 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5966 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5967 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5968 and 'SCM_PORT_TYPE'.
5969 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5970 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5971 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5972 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5973 [!USING_GUILE_BEFORE_2_2]: New functions.
5974 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5975 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5976 'gdbscm_memory_port_read'.
5977 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5978 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5979 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5980 function.
5981 (ioscm_init_memory_port): Remove.
5982 (ioscm_init_memory_port_stream): New function
5983 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5984 function.
5985 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5986 Return scm_from_uint (0).
5987 (gdbscm_set_memory_port_read_buffer_size_x)
5988 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5989 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5990 Return scm_from_uint (0).
5991 (gdbscm_set_memory_port_write_buffer_size_x)
5992 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5993 * configure.ac (try_guile_versions): Add "guile-2.2".
5994 * configure: Regenerate.
5995 * NEWS: Add entry.
5996
5997 2020-07-18 Tom Tromey <tom@tromey.com>
5998
5999 * linux-nat.c (linux_multi_process): Remove.
6000 (linux_nat_target::supports_multi_process): Return true.
6001
6002 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6003
6004 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6005 (riscv_lookup_target_description): Return pointer out of
6006 unique_ptr.
6007 * target-descriptions.c (allocate_target_description): Add
6008 comment.
6009 (target_desc_deleter::operator()): Likewise.
6010 * target-descriptions.h (struct target_desc_deleter): Moved to
6011 gdbsupport/tdesc.h.
6012 (target_desc_up): Likewise.
6013
6014 2020-07-17 Tom Tromey <tromey@adacore.com>
6015
6016 * linux-nat.c (linux_nat_target::supports_non_stop)
6017 (linux_nat_target::always_non_stop_p): Use "true".
6018 (linux_nat_target::supports_disable_randomization): Use "true" and
6019 "false".
6020
6021 2020-07-16 Caroline Tice <cmtice@google.com>
6022
6023 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6024 (RNGLIST_HEADER_SIZE64): New constant definition.
6025 (struct dwop_section_names): Add rnglists_dwo.
6026 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6027 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6028 (struct dwo_sections): Add rnglists field.
6029 (read_attribut_reprocess): Add tag parameter.
6030 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6031 (cu_debug_rnglists_section): New function (decl & definition).
6032 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6033 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6034 die whose range is being checked; get rnglist section from
6035 cu_debug_rnglists_section, to get from either objfile or dwo file as
6036 appropriate. Add cases for DW_RLE_base_addressx,
6037 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6038 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6039 test inside if-condition and updating complaint message.
6040 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6041 dwarf2_rnglists_process.
6042 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6043 dwarf2_ranges_process.
6044 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6045 need_ranges_base and update comment appropriately. Also pass die tag
6046 to dwarf2_ranges_read.
6047 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6048 need_ranges_base and update comment appropriately. Also pass die tag
6049 to dwarf2_ranges_process.
6050 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6051 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6052 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6053 need_ranges_base and update comment appropriately. Also pass die tag
6054 to read_attribute_reprocess and dwarf2_ranges_read.
6055 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6056 and update function comment appropriately.
6057 (read_loclist_index): Call read_loclists_rnglists_header instead of
6058 read_loclist_header.
6059 (read_rnglist_index): New function.
6060 (read_attribute_reprocess): Add tag parameter. Add code for
6061 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6062 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6063
6064 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6067 being resolved.
6068
6069 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * arch-utils.c (show_architecture): Update formatting of messages.
6072
6073 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * gdbtypes.h (struct type) <bounds>: Handle array and string
6076 types.
6077 * ada-lang.c (assign_aggregate): Use type::bounds on
6078 array/string type.
6079 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6080 * c-varobj.c (c_number_of_children): Likewise.
6081 (c_describe_child): Likewise.
6082 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6083 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6084 (f_type_print_base): Likewise.
6085 * f-valprint.c (f77_array_offset_tbl): Likewise.
6086 (f77_get_upperbound): Likewise.
6087 (f77_print_array_1): Likewise.
6088 * guile/scm-type.c (gdbscm_type_range): Likewise.
6089 * m2-typeprint.c (m2_array): Likewise.
6090 (m2_is_long_set_of_type): Likewise.
6091 * m2-valprint.c (get_long_set_bounds): Likewise.
6092 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6093 * python/py-type.c (typy_range): Likewise.
6094 * rust-lang.c (rust_internal_print_type): Likewise.
6095 * type-stack.c (type_stack::follow_types): Likewise.
6096 * valarith.c (value_subscripted_rvalue): Likewise.
6097 * valops.c (value_cast): Likewise.
6098
6099 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6102 callers to use the equivalent accessor methods.
6103
6104 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6105
6106 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6107 (struct type) <bit_stride>: New method.
6108 (TYPE_BIT_STRIDE): Remove.
6109 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6110
6111 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6112
6113 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6114 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6115 callers to use the equivalent accessor methods instead.
6116
6117 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6120 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): 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_LOW_BOUND_KIND,
6126 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6127 to use dynamic_prop::kind.
6128
6129 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6132 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6133 to get the bound property's kind and check against
6134 PROP_UNDEFINED.
6135
6136 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6137
6138 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6139 all callers to use type::range_bounds followed by
6140 dynamic_prop::{low,high}.
6141
6142 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6145 const_val, set_const_val, baton, set_locexpr, set_loclist,
6146 set_addr_offset, variant_parts, set_variant_parts,
6147 original_type, set_original_type>: New methods.
6148 <kind>: Rename to...
6149 <m_kind>: ... this. Update all users to use the new methods
6150 instead.
6151 <data>: Rename to...
6152 <m_data>: ... this. Update all users to use the new methods
6153 instead.
6154
6155 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * gdbtypes.c (get_discrete_bounds): Return failure if
6158 the range type's bounds are not both defined and constant
6159 values.
6160 (get_array_bounds): Update comment. Remove undefined bound check.
6161
6162 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6165 the type::bounds method directly.
6166
6167 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6170 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6171 are used to set the range type's bounds to use set_bounds.
6172
6173 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6174
6175 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6176
6177 2020-07-10 Pedro Alves <pedro@palves.net>
6178
6179 * gdbthread.h (inferior_ref): Define.
6180 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6181 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6182 * thread.c
6183 (scoped_restore_current_thread::restore):
6184 Adjust to gdb::ref_ptr.
6185 (scoped_restore_current_thread::~scoped_restore_current_thread):
6186 Remove manual decref handling.
6187 (scoped_restore_current_thread::scoped_restore_current_thread):
6188 Adjust to use
6189 inferior_ref::new_reference/thread_info_ref::new_reference.
6190 Incref the thread before calling get_frame_id instead of after.
6191 Let TARGET_CLOSE_ERROR propagate.
6192
6193 2020-07-10 Pedro Alves <pedro@palves.net>
6194
6195 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6196 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6197 NOT_AVAILABLE_ERROR.
6198 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6199 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6200
6201 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6202 Pedro Alves <pedro@palves.net>
6203
6204 PR gdb/26199
6205 * infrun.c (threads_are_resumed_pending_p): Delete.
6206 (do_target_wait): Remove threads_are_executing and
6207 threads_are_resumed_pending_p checks from the inferior_matches
6208 lambda. Update comments.
6209
6210 2020-07-10 Pedro Alves <pedro@palves.net>
6211
6212 PR gdb/26199
6213 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6214 executing threads.
6215
6216 2020-07-10 Pedro Alves <pedro@palves.net>
6217
6218 PR gdb/26199
6219 * infrun.c (handle_no_resumed): Handle multiple targets.
6220
6221 2020-07-10 Pedro Alves <pedro@palves.net>
6222
6223 PR gdb/26199
6224 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6225 target_is_async_p.
6226
6227 2020-07-10 Pedro Alves <pedro@palves.net>
6228
6229 PR gdb/26199
6230 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6231 threads, not all threads.
6232
6233 2020-07-10 Pedro Alves <pedro@palves.net>
6234
6235 PR gdb/26199
6236 * remote.c (remote_target::open_1): Pass remote target pointer as
6237 data to create_async_event_handler.
6238 (remote_async_inferior_event_handler): Mark async event handler
6239 before returning if the remote target still has either pending
6240 events or unacknowledged notifications.
6241
6242 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6243
6244 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6245 declaration.
6246 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6247 function.
6248
6249 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6250
6251 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6252 inferior_ptid.
6253
6254 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6255
6256 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6257 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6258 AT_FREEBSD_PS_STRINGS.
6259
6260 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6261
6262 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6263 of debugfile path on Windows.
6264
6265 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6266
6267 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6268 argument to 'data'.
6269
6270 2020-07-08 Tom Tromey <tromey@adacore.com>
6271
6272 * ada-lang.c (ada_exception_message_1): Use read_memory.
6273
6274 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 PR python/22748
6277 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6278 special handling for inline frames.
6279 * findvar.c (value_of_register_lazy): Skip inline frames when
6280 creating lazy register values.
6281 * frame.c (frame_id_computed_p): Delete definition.
6282 * frame.h (frame_id_computed_p): Delete declaration.
6283
6284 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * NEWS: Mention additions to Python API.
6287 * python/py-arch.c (archpy_register_groups): New function.
6288 (arch_object_methods): Add 'register_groups' method.
6289 * python/py-registers.c (reggroup_iterator_object): New struct.
6290 (reggroup_object): New struct.
6291 (gdbpy_new_reggroup): New function.
6292 (gdbpy_reggroup_to_string): New function.
6293 (gdbpy_reggroup_name): New function.
6294 (gdbpy_reggroup_iter): New function.
6295 (gdbpy_reggroup_iter_next): New function.
6296 (gdbpy_new_reggroup_iterator): New function
6297 (gdbpy_initialize_registers): Register new types.
6298 (reggroup_iterator_object_type): Define new Python type.
6299 (gdbpy_reggroup_getset): New static global.
6300 (reggroup_object_type): Define new Python type.
6301 * python/python-internal.h
6302
6303 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6306 * python/py-arch.c (archpy_registers): New function.
6307 (arch_object_methods): Add 'registers' method.
6308 * python/py-registers.c: New file.
6309 * python/python-internal.h
6310 (gdbpy_new_register_descriptor_iterator): Declare.
6311 (gdbpy_initialize_registers): Declare.
6312 * python/python.c (do_start_initialization): Call
6313 gdbpy_initialize_registers.
6314 * NEWS: Mention additions to the Python API.
6315
6316 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * NEWS: Mention new Python API method.
6319 * python/py-unwind.c (pending_framepy_architecture): New function.
6320 (pending_frame_object_methods): Add architecture method.
6321
6322 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * gdbarch.c: Regenerate.
6325 * gdbarch.h: Regenerate.
6326 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6327 (gdbarch_data): Use internal_error for the case where
6328 deprecated_set_gdbarch_data was originally needed.
6329 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6330 and use passed in obstack.
6331 (libunwind_frame_set_descr): Should no longer get back NULL from
6332 gdbarch_data.
6333 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6334 type.
6335 * user-regs.c (user_regs_init): Update parameters, and use passed
6336 in obstack.
6337 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6338 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6339
6340 2020-07-06 Tom de Vries <tdevries@suse.de>
6341
6342 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6343 End-Of-Sequence in lte_is_less_than.
6344 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6345 "gdb: Don't reorder line table entries too much when sorting".
6346
6347 2020-07-06 Tom de Vries <tdevries@suse.de>
6348
6349 PR tui/26205
6350 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6351
6352 2020-07-05 Tom de Vries <tdevries@suse.de>
6353
6354 PR build/26187
6355 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6356 std::uncaught_exceptions instead of deprecated
6357 std::uncaught_exception.
6358
6359 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * macroexp.h (macro_stringify): Return
6362 gdb::unique_xmalloc_ptr<char>.
6363 * macroexp.c (macro_stringify): Likewise.
6364 * macrotab.c (fixup_definition): Update.
6365
6366 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6369 (lex_one_token): Update.
6370 * macroexp.c (struct macro_buffer) <release>: Return
6371 gdb::unique_xmalloc_ptr<char>.
6372 (macro_stringify): Update.
6373 (macro_expand): Update.
6374 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6375 * macroexp.h (macro_expand_next): Likewise.
6376
6377 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * macroexp.h (macro_lookup_ftype): Remove.
6380 (macro_expand, macro_expand_once, macro_expand_next): Remove
6381 lookup function parameters, add scope parameter.
6382 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6383 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6384 * macroscope.h (standard_macro_lookup): Change parameter type
6385 to macro_scope.
6386 * macroscope.c (standard_macro_lookup): Likewise.
6387 * c-exp.y (lex_one_token): Update.
6388 * macrocmd.c (macro_expand_command): Likewise.
6389 (macro_expand_once_command): Likewise.
6390
6391 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 * inf-loop.c (inferior_event_handler): Remove client_data param.
6394 * inf-loop.h (inferior_event_handler): Likewise.
6395 * infcmd.c (step_1): Adjust.
6396 * infrun.c (proceed): Adjust.
6397 (fetch_inferior_event): Remove client_data param.
6398 (infrun_async_inferior_event_handler): Adjust.
6399 * infrun.h (fetch_inferior_event): Remove `void *` param.
6400 * linux-nat.c (handle_target_event): Adjust.
6401 * record-btrace.c (record_btrace_handle_async_inferior_event):
6402 Adjust.
6403 * record-full.c (record_full_async_inferior_event_handler):
6404 Adjust.
6405 * remote.c (remote_async_inferior_event_handler): Adjust.
6406
6407 2020-07-01 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6410 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6411
6412 2020-07-01 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6415 tui_gen_win_info.
6416 (tui_win_info::make_window): Merge with
6417 tui_gen_win_info::make_window.
6418 (tui_win_info::make_visible): Move from tui_gen_win_info.
6419 * tui/tui-win.c (tui_win_info::max_width): Move from
6420 tui_gen_win_info.
6421 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6422 type.
6423 <window_factory>: Likewise.
6424 * tui/tui-layout.c (tui_win_info::resize): Move from
6425 tui_gen_win_info.
6426 (make_standard_window): Change return type.
6427 (get_locator_window, tui_get_window_by_name): Likewise.
6428 (tui_layout_window::apply): Remove a cast.
6429 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6430 (struct tui_win_info): Merge with tui_gen_win_info.
6431 (struct tui_gen_win_info): Remove.
6432
6433 2020-07-01 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-stack.h (struct tui_locator_window): Derive from
6436 tui_win_info.
6437 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6438 <can_box>: New method.
6439
6440 2020-07-01 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6443
6444 2020-07-01 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-regs.c (tui_data_window::display_registers_from)
6447 (tui_data_window::display_registers_from)
6448 (tui_data_window::first_data_item_displayed)
6449 (tui_data_window::delete_data_content_windows): Update.
6450 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6451 Remove.
6452 (tui_data_window::check_register_values): Update.
6453 (tui_data_item_window::rerender): Add parameters. Update.
6454 (tui_data_item_window::refresh_window): Remove.
6455 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6456 virtual.
6457 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6458 tui_gen_win_info.
6459 <refresh_window, max_height, min_height>: Remove.
6460 <rerender>: Add parameters.
6461 <x, y, visible>: New members.
6462 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6463 <m_item_width>: New member.
6464
6465 2020-07-01 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-regs.c (tui_data_window::show_register_group)
6468 (tui_data_window::check_register_values): Update.
6469 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6470 from item_no.
6471
6472 2020-07-01 Tom Tromey <tom@tromey.com>
6473
6474 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6475 useless "if".
6476
6477 2020-07-01 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6480 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6481
6482 2020-07-01 Tom Tromey <tom@tromey.com>
6483
6484 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6485 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6486 (struct tui_line_or_address): Move from tui-data.h.
6487 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6488 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6489 (tui_cmd_window, tui_source_window_base, tui_source_window)
6490 (tui_disasm_window): Don't declare.
6491 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6492 to tui-winsource.h.
6493 (SINGLE_KEY): Move to tui-stack.c.
6494
6495 2020-07-01 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6498 std::string.
6499 * tui/tui-regs.c (class tab_expansion_file): New.
6500 (tab_expansion_file::write): New method.
6501 (tui_register_format): Change return type. Use
6502 tab_expansion_file.
6503 (tui_get_register, tui_data_window::display_registers_from)
6504 (tui_data_item_window::rerender): Update.
6505 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6506 * tui/tui-io.c (tui_expand_tabs): Remove.
6507
6508 2020-07-01 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6511
6512 2020-07-01 Fangrui Song <maskray@google.com>
6513
6514 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6515
6516 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6517
6518 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6519 forms for DW_AT_associated and DW_AT_allocated attributes,
6520 which is already checked in function attr_to_dynamic_prop.
6521
6522 2020-06-30 Tom Tromey <tromey@adacore.com>
6523
6524 * dwarf2/read.c (quirk_rust_enum): Correctly call
6525 alloc_rust_variant for default-less enum.
6526
6527 2020-06-30 Tom Tromey <tromey@adacore.com>
6528
6529 PR build/26183:
6530 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6531 gdb::to_string.
6532
6533 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6536 * gdbarch.h: Re-generate.
6537
6538 2020-06-28 Tom Tromey <tom@tromey.com>
6539
6540 * command.h (cmd_types): Remove.
6541 (cmd_type): Don't declare.
6542 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6543 typedef.
6544 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6545 * cli/cli-decode.c (cmd_type): Remove.
6546
6547 2020-06-27 Pedro Alves <palves@redhat.com>
6548
6549 * fork-child.c (prefork_hook): Adjust.
6550 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6551 Delete.
6552 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6553 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6554 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6555 Remove declarations.
6556 (struct inferior) <set_tty, tty>: New methods.
6557 (struct inferior) <terminal>: Rename to ...
6558 (struct inferior) <m_terminal>: ... this and make private.
6559 * main.c (captured_main_1): Adjust.
6560 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6561 (mi_cmd_inferior_tty_show): Adjust.
6562 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6563 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6564
6565 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6566
6567 * configure.ac: Add --enable-libctf: handle --disable-static
6568 properly.
6569 * acinclude.m4: sinclude ../config/enable.m4.
6570 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6571 (LIBCTF): Substitute in.
6572 (CTF_DEPS): New, likewise.
6573 (CLIBS): libctf needs symbols from libbfd: move earlier.
6574 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6575 flags.
6576 * ctfread.c: Surround in ENABLE_LIBCTF.
6577 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6578 * configure: Regenerate.
6579 * config.in: Likewise.
6580
6581 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6584
6585 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * inferior.h (struct inferior) <terminal>: Change type to
6588 gdb::unique_xmalloc_ptr<char>.
6589 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6590 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6591 field, adjust to unique pointer.
6592 (get_inferior_io_terminal): Adjust to unique pointer.
6593
6594 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6597 registers, not just the known core set of registers.
6598
6599 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6600
6601 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6602 fflags, frm, and fcsr registers.
6603 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6604 restore groups.
6605 (riscv_tdesc_unknown_reg): New function.
6606 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6607 tdesc_use_registers.
6608 * riscv-tdep.h (struct gdbarch_tdep): Add
6609 unknown_csrs_first_regnum, unknown_csrs_count,
6610 duplicate_fflags_regnum, duplicate_frm_regnum, and
6611 duplicate_fcsr_regnum fields.
6612
6613 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6616 callback, use the callback (when not null) to help number unknown
6617 registers.
6618 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6619 (tdesc_use_registers): Add extra parameter to declaration.
6620
6621 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6624 in the file.
6625 (class riscv_pending_register_alias): Likewise.
6626 (riscv_register_feature::register_info): Change 'required_p' field
6627 to 'required', and change its type. Add 'check' member function.
6628 (riscv_register_feature::register_info::check): Define new member
6629 function.
6630 (riscv_xreg_feature): Change initialisation of 'required' field.
6631 (riscv_freg_feature): Likewise.
6632 (riscv_virtual_feature): Likewise.
6633 (riscv_csr_feature): Likewise.
6634 (riscv_check_tdesc_feature): Take extra parameter, the csr
6635 tdesc_feature, rewrite the function to use the new
6636 riscv_register_feature::register_info::check function.
6637 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6638
6639 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * features/Makefile: Remove all references to the deleted files
6642 below.
6643 * features/riscv/32bit-csr.c: Deleted.
6644 * features/riscv/32bit-csr.xml: Deleted.
6645 * features/riscv/64bit-csr.c: Deleted.
6646 * features/riscv/64bit-csr.xml: Deleted.
6647 * features/riscv/rebuild-csr-xml.sh: Deleted.
6648
6649 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6652 whitespace error for declaration of names member variable.
6653 (struct riscv_register_feature): Add new prefer_first_name member
6654 variable, and fix whitespace error in declaration of registers.
6655 (riscv_xreg_feature): Initialize prefer_first_name field.
6656 (riscv_freg_feature): Likewise.
6657 (riscv_virtual_feature): Likewise.
6658 (riscv_csr_feature): Likewise.
6659 (riscv_register_name): Expand on comments. Remove register name
6660 modifications for CSR and virtual registers.
6661
6662 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6665 errors.
6666
6667 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6670 riscv-opc.h.
6671 (class riscv_pending_register_alias): New class.
6672 (riscv_check_tdesc_feature): Take vector of pending aliases and
6673 populate it as appropriate.
6674 (riscv_setup_register_aliases): Delete.
6675 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6676 to riscv_check_tdesc_feature in all cases. Use the vector to
6677 create the register aliases.
6678
6679 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680
6681 * sol2-tdep.c (sol2_static_transform_name): Remove.
6682 (sol2_init_abi): Don't register it.
6683 * gdbarch.sh (static_transform_name): Remove.
6684 * gdbarch.c, gdbarch.h: Regenerate.
6685
6686 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6687 gdbarch_static_transform_name.
6688 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6689 * stabsread.c (define_symbol) <'X'>: Remove.
6690 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6691 handling.
6692 <'V'>: Likewise.
6693 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6694 <'S'>: Remove call to gdbarch_static_transform_name.
6695
6696 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6697
6698 * procfs.c (procfs_pre_trace): New function.
6699 (procfs_target::create_inferior): Pass it to fork_inferior.
6700
6701 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6702
6703 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6704 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6705 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6706 sol2-tdep.o, sparc-sol2-tdep.o.
6707 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6708 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6709 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6710 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6711
6712 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6713
6714 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6715 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6716 Call sol2_init_abi.
6717 Remove calls to set_gdbarch_skip_solib_resolver,
6718 set_gdbarch_core_pid_to_str.
6719 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6720 (i386_sol2_static_transform_name): Remove.
6721 (i386_sol2_init_abi): Call sol2_init_abi.
6722 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6723 set_gdbarch_static_transform_name,
6724 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6725 Use sol2_sigtramp_p.
6726 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6727 (sol2_sigtramp_p): New function.
6728 (sol2_static_transform_name): New function.
6729 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6730 (sol2_init_abi): New function.
6731 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6732 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6733 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6734 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6735 (sparc_sol2_static_transform_name): Remove.
6736 (sparc32_sol2_init_abi): Call sol2_init_abi.
6737 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6738 set_gdbarch_static_transform_name,
6739 set_gdbarch_skip_solib_resolver,
6740 set_gdbarch_core_pid_to_str.
6741 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6742 (sparc_sol2_static_transform_name): Remove
6743 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6744 call sol2_sigtramp_p.
6745 (sparc64_sol2_init_abi): Call sol2_init_abi.
6746 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6747 set_gdbarch_static_transform_name,
6748 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6749
6750 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6751
6752 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6753 * exec.c (validate_exec_file): If from_tty, set both
6754 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6755 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6756 and from_tty, unconditionally ask a confirmation.
6757
6758 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * target-descriptions.c (tdesc_architecture_name): Protect against
6761 NULL pointer dereference.
6762 (maint_print_xml_tdesc_cmd): New function.
6763 (_initialize_target_descriptions): Register new 'maint print
6764 xml-tdesc' command and give it the filename completer.
6765 * NEWS: Mention new 'maint print xml-tdesc' command.
6766
6767 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * target-descriptions.c (class tdesc_compatible_info): New class.
6770 (struct target_desc): Change type of compatible vector.
6771 (tdesc_compatible_p): Update for change in type of
6772 target_desc::compatible.
6773 (tdesc_compatible_info_list): New function.
6774 (tdesc_compatible_info_arch_name): New function.
6775 (tdesc_add_compatible): Update for change in type of
6776 target_desc::compatible.
6777 (print_c_tdesc::visit_pre): Likewise.
6778
6779 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6782 whitespace to underscore.
6783 (maint_print_c_tdesc_cmd): Use fake filename for target
6784 descriptions that came from the target.
6785 (_initialize_target_descriptions): Add filename command completion
6786 for 'maint print c-tdesc'.
6787
6788 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6791 lines.
6792
6793 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6794
6795 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6796 lines.
6797 (dwarf2_find_location_expression): Likewise.
6798 (call_site_parameter_matches): Likewise.
6799 (dwarf2_compile_expr_to_ax): Likewise.
6800 (disassemble_dwarf_expression): Likewise.
6801 (loclist_describe_location): Likewise.
6802
6803 2020-06-23 Pedro Alves <palves@redhat.com>
6804
6805 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6806 progspace-and-thread.h. Include scoped-mock-context.h instead.
6807 (register_to_value_test): Use scoped_mock_context.
6808 * regcache.c: Include "scoped-mock-context.h".
6809 (cooked_read_test): Don't error out if a target is already pushed.
6810 Use scoped_mock_context. Adjust.
6811 * scoped-mock-context.h: New file.
6812
6813 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6816 initializer.
6817 (ada_language::is_string_type_p): New member function.
6818 * c-lang.c (c_language_data): Delete la_is_string_type_p
6819 initializer.
6820 (cplus_language_data): Likewise.
6821 (asm_language_data): Likewise.
6822 (minimal_language_data): Likewise.
6823 * d-lang.c (d_language_data): Likewise.
6824 * f-lang.c (f_is_string_type_p): Delete function, implementation
6825 moved to f_language::is_string_type_p.
6826 (f_language_data): Delete la_is_string_type_p initializer.
6827 (f_language::is_string_type_p): New member function,
6828 implementation from f_is_string_type_p.
6829 * go-lang.c (go_is_string_type_p): Delete function, implementation
6830 moved to go_language::is_string_type_p.
6831 (go_language_data): Delete la_is_string_type_p initializer.
6832 (go_language::is_string_type_p): New member function,
6833 implementation from go_is_string_type_p.
6834 * language.c (language_defn::is_string_type_p): Define new member
6835 function.
6836 (default_is_string_type_p): Make static, add comment copied from
6837 header file.
6838 (unknown_language_data): Delete la_is_string_type_p initializer.
6839 (unknown_language::is_string_type_p): New member function.
6840 (auto_language_data): Delete la_is_string_type_p initializer.
6841 (auto_language::is_string_type_p): New member function.
6842 * language.h (language_data): Delete la_is_string_type_p field.
6843 (language_defn::is_string_type_p): Declare new function.
6844 (default_is_string_type_p): Delete desclaration, move comment to
6845 definition.
6846 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6847 moved to m2_language::is_string_type_p.
6848 (m2_language_data): Delete la_is_string_type_p initializer.
6849 (m2_language::is_string_type_p): New member function,
6850 implementation from m2_is_string_type_p.
6851 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6852 initializer.
6853 * opencl-lang.c (opencl_language_data): Likewise.
6854 * p-lang.c (pascal_is_string_type_p): Delete function,
6855 implementation moved to pascal_language::is_string_type_p.
6856 (pascal_language_data): Delete la_is_string_type_p initializer.
6857 (pascal_language::is_string_type_p): New member function,
6858 implementation from pascal_is_string_type_p.
6859 * rust-lang.c (rust_is_string_type_p): Delete function,
6860 implementation moved to rust_language::is_string_type_p.
6861 (rust_language_data): Delete la_is_string_type_p initializer.
6862 (rust_language::is_string_type_p): New member function,
6863 implementation from rust_is_string_type_p.
6864 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6865 is_string_type_p.
6866
6867 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6868
6869 * ada-lang.c (ada_language_data): Delete la_print_typedef
6870 initializer.
6871 (ada_language::print_typedef): New member function.
6872 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6873 (cplus_language_data): Likewise.
6874 (asm_language_data): Likewise.
6875 (minimal_language_data): Likewise.
6876 * d-lang.c (d_language_data): Likewise.
6877 * f-lang.c (f_language_data): Likewise.
6878 (f_language::print_typedef): New member function.
6879 * go-lang.c (go_language_data): Delete la_print_typedef
6880 initializer.
6881 * language.c (language_defn::print_typedef): Define member
6882 function.
6883 (unknown_language_data): Delete la_print_typedef initializer.
6884 (unknown_language::print_typedef): New member function.
6885 (auto_language_data): Delete la_print_typedef initializer.
6886 (auto_language::print_typedef): New member function.
6887 * language.h (language_data): Delete la_print_typedef field.
6888 (language_defn::print_typedef): Declare new member function.
6889 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6890 (default_print_typedef): Delete declaration.
6891 * m2-lang.c (m2_language_data): Delete la_print_typedef
6892 initializer.
6893 (m2_language::print_typedef): New member function.
6894 * objc-lang.c (objc_language_data): Delete la_print_typedef
6895 initializer.
6896 * opencl-lang.c (opencl_language_data): Likewise.
6897 * p-lang.c (pascal_language_data): Likewise.
6898 (pascal_language::print_typedef): New member function.
6899 * rust-lang.c (rust_print_typedef): Delete function,
6900 implementation moved to rust_language::print_typedef.
6901 (rust_language): Delete la_print_typedef initializer.
6902 (rust_language::print_typedef): New member function,
6903 implementation from rust_print_typedef.
6904 * typeprint.c (default_print_typedef): Delete.
6905
6906 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6907
6908 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6909 (ada_language::printstr): New member function.
6910 * c-lang.c (c_language_data): Delete la_printstr initializer.
6911 (cplus_language_data): Likewise.
6912 (asm_language_data): Likewise.
6913 (minimal_language_data): Likewise.
6914 * d-lang.c (d_language_data): Likewise.
6915 * f-lang.c (f_printstr): Rename to f_language::printstr.
6916 (f_language_data): Delete la_printstr initializer.
6917 (f_language::printstr): New member function, implementation from
6918 f_printstr.
6919 * go-lang.c (go_language_data): Delete la_printstr initializer.
6920 * language.c (language_defn::printstr): Define new member
6921 function.
6922 (unk_lang_printstr): Delete.
6923 (unknown_language_data): Delete la_printstr initializer.
6924 (unknown_language::printstr): New member function.
6925 (auto_language_data): Delete la_printstr initializer.
6926 (auto_language::printstr): New member function.
6927 * language.h (language_data): Delete la_printstr field.
6928 (language_defn::printstr): Declare new member function.
6929 (LA_PRINT_STRING): Update call to printstr.
6930 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6931 (m2_language_data): Delete la_printstr initializer.
6932 (m2_language::printstr): New member function, implementation from
6933 m2_printstr.
6934 * objc-lang.c (objc_language_data): Delete la_printstr
6935 initializer.
6936 * opencl-lang.c (opencl_language_data): Likewise.
6937 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6938 (pascal_language_data): Delete la_printstr initializer.
6939 (pascal_language::printstr): New member function, implementation
6940 from pascal_printstr.
6941 * p-lang.h (pascal_printstr): Delete declaration.
6942 * rust-lang.c (rust_printstr): Update header comment.
6943 (rust_language_data): Delete la_printstr initializer.
6944 (rust_language::printstr): New member function.
6945
6946 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6949 (ada_language::printchar): New member function.
6950 * c-lang.c (c_language_data): Delete la_printchar initializer.
6951 (cplus_language_data): Likewise.
6952 (asm_language_data): Likewise.
6953 (minimal_language_data): Likewise.
6954 * d-lang.c (d_language_data): Likewise.
6955 * f-lang.c (f_printchar): Rename to f_language::printchar.
6956 (f_language_data): Delete la_printchar initializer.
6957 (f_language::printchar): New member function, implementation from
6958 f_printchar.
6959 * go-lang.c (go_language_data): Delete la_printchar initializer.
6960 * language.c (unk_lang_printchar): Delete.
6961 (language_defn::printchar): Define new member function.
6962 (unknown_language_data): Delete la_printchar initializer.
6963 (unknown_language::printchar): New member function.
6964 (auto_language_data): Delete la_printchar initializer.
6965 (auto_language::printchar): New member function.
6966 * language.h (language_data): Delete la_printchar field.
6967 (language_defn::printchar): Declare new member function.
6968 (LA_PRINT_CHAR): Update call to printchar.
6969 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6970 (m2_language::printchar): New member function.
6971 * objc-lang.c (objc_language_data): Delete la_printchar
6972 initializer.
6973 * opencl-lang.c (opencl_language_data): Likewise.
6974 * p-lang.c (pascal_language_data): Delete la_printchar
6975 initializer.
6976 (pascal_language::printchar): New member function.
6977 * rust-lang.c (rust_printchar): Rename to
6978 rust_language::printchar.
6979 (rust_language_data): Delete la_printchar initializer.
6980 (rust_language::printchar): New member function, implementation
6981 from rust_printchar.
6982
6983 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6986 (ada_language_data): Delete la_emitchar initializer.
6987 (ada_language::emitchar): New member function, implementation from
6988 emit_char.
6989 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6990 (cplus_language_data): Likewise.
6991 (asm_language_data): Likewise.
6992 (minimal_language_data): Likewise.
6993 * d-lang.c (d_language_data): Likewise.
6994 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6995 (f_language_data): Delete la_emitchar initializer.
6996 (f_language::emitchar): New member function, implementation from
6997 f_emit_char.
6998 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6999 * language.c (unk_lang_emit_char): Delete.
7000 (language_defn::emitchar): New member function definition.
7001 (unknown_language_data): Delete la_emitchar initializer.
7002 (unknown_language::emitchar): New member function.
7003 (auto_language_data): Delete la_emitchar initializer.
7004 (auto_language::emitchar): New member function.
7005 * language.h (language_data): Delete la_emitchar field.
7006 (language_defn::emitchar): New member field declaration.
7007 (LA_EMIT_CHAR): Update call to emitchar.
7008 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7009 (m2_language_data): Delete la_emitchar initializer.
7010 (m2_language::emitchar): New member function, implementation from
7011 m2_emit_char.
7012 * objc-lang.c (objc_language_data): Delete la_emitchar
7013 initializer.
7014 * opencl-lang.c (opencl_language_data): Likewise.
7015 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7016 (pascal_language_data): Delete la_emitchar initializer.
7017 (pascal_language::emitchar): New member function, implementation
7018 from pascal_emit_char.
7019 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7020 (rust_language_data): Delete la_emitchar initializer.
7021 (rust_language::emitchar): New member function, implementation
7022 from rust_emitchar.
7023
7024 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7027 (ada_language_data): Delete la_post_parser initializer.
7028 (ada_language::post_parser): New member function.
7029 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7030 (cplus_language_data): Likewise.
7031 (asm_language_data): Likewise.
7032 (minimal_language_data): Likewise.
7033 * d-lang.c (d_language_data): Likewise.
7034 * f-lang.c (f_language_data): Likewise.
7035 * go-lang.c (go_language_data): Likewise.
7036 * language.c (unknown_language_data): Likewise.
7037 (auto_language_data): Likewise.
7038 * language.h (language_data): Delete la_post_parser field.
7039 (language_defn::post_parser): New member function.
7040 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7041 * objc-lang.c (objc_language_data): Likewise.
7042 * opencl-lang.c (opencl_language_data): Likewise.
7043 * p-lang.c (pascal_language_data): Likewise.
7044 * parse.c (parse_exp_in_context): Update call to post_parser.
7045 (null_post_parser): Delete definition.
7046 * parser-defs.h (null_post_parser): Delete declaration.
7047 * rust-lang.c (rust_language_data): Delete la_post_parser
7048 initializer.
7049
7050 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * ada-lang.c (parse): Rename to ada_language::parser.
7053 (ada_language_data): Delete la_parser initializer.
7054 (ada_language::parser): New member function, implementation from
7055 parse.
7056 * c-lang.c (c_language_data): Delete la_parser initializer.
7057 (cplus_language_data): Likewise.
7058 (asm_language_data): Likewise.
7059 (minimal_language_data): Likewise.
7060 * d-lang.c (d_language_data): Likewise.
7061 (d_language::parser): New member function.
7062 * f-lang.c (f_language_data): Delete la_parser initializer.
7063 (f_language::parser): New member function.
7064 * go-lang.c (go_language_data): Delete la_parser initializer.
7065 (go_language::parser): New member function.
7066 * language.c (unk_lang_parser): Delete.
7067 (language_defn::parser): Define new member function.
7068 (unknown_language_data): Delete la_parser initializer.
7069 (unknown_language::parser): New member function.
7070 (auto_language_data): Delete la_parser initializer.
7071 (auto_language::parser): New member function.
7072 * language.h (language_data): Delete la_parser field.
7073 (language_defn::parser): Declare new member function.
7074 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7075 (m2_language::parser): New member function.
7076 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7077 * opencl-lang.c (opencl_language_data): Likewise.
7078 * p-lang.c (pascal_language_data): Likewise.
7079 (pascal_language::parser): New member function.
7080 * parse.c (parse_exp_in_context): Update call to parser.
7081 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7082 (rust_language::parser): New member function.
7083
7084 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7085
7086 * top.c (print_gdb_configuration): Print --with-python-libdir
7087 configuration value.
7088
7089 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7090
7091 * NEWS: Mention change to the alias command.
7092
7093 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7094
7095 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7096 (alias_command_completer)
7097 (make_alias_options_def_group): New functions.
7098 (alias_opts, alias_option_defs): New struct and array.
7099 (alias_usage_error): Update usage.
7100 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7101 Use option framework.
7102 (_initialize_cli_cmds): Update alias command help.
7103 Update aliases command help.
7104 (show_user):
7105 Add NULL for new default_args lookup_cmd argument.
7106 (valid_command_p): Rename to validate_aliased_command.
7107 Add NULL for new default_args lookup_cmd argument. Verify that the
7108 aliased_command has no default args.
7109 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7110 (lookup_cmd_1, lookup_cmd): New argument default_args.
7111 (add_alias_cmd):
7112 Add NULL for new default_args lookup_cmd argument.
7113 (print_help_for_command): Show default args under the layout
7114 alias some_alias = some_aliased_cmd some_alias_default_arg.
7115 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7116 xfree default_args in destructor.
7117 * cli/cli-script.c (process_next_line, do_define_command):
7118 Add NULL for new default_args lookup_cmd argument.
7119 * command.h: Declare new default_args argument in lookup_cmd
7120 and lookup_cmd_1.
7121 * completer.c (complete_line_internal_1):
7122 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7123 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7124 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7125 Likewise.
7126 * infcmd.c (_initialize_infcmd): Likewise.
7127 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7128 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7129 * python/py-param.c (add_setshow_generic): Likewise.
7130 * remote.c (_initialize_remote): Likewise.
7131 * top.c (execute_command): Prepend default_args if command has some.
7132 (set_verbose):
7133 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7134 * tracepoint.c (validate_actionline, encode_actions_1):
7135 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7136
7137 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7138
7139 * jit.c (jit_read_descriptor): Use bool as the return type.
7140 (jit_breakpoint_re_set_internal): Use bool as the return type.
7141 Invert the return value logic; return true if the jit breakpoint
7142 has been successfully initialized.
7143 (jit_inferior_init): Update the call to
7144 jit_breakpoint_re_set_internal.
7145
7146 2020-06-22 Pedro Alves <palves@redhat.com>
7147
7148 PR gdb/25939
7149 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7150 Use the current inferior instead. Don't return
7151 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7152 wait again.
7153 * sol-thread.c (sol_thread_target::wait): Don't reference
7154 inferior_ptid.
7155 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7156 (sol_update_thread_list_callback): Use the current inferior's pid
7157 instead of inferior_ptid.
7158
7159 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7160
7161 * procfs.c: Cleanup many comments.
7162
7163 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7164 (AFTER_WATCHFLAG): Replace by value.
7165
7166 (MAIN_PROC_NAME_FORMAT): Inline ...
7167 (create_procinfo): ... here.
7168
7169 (procfs_debug_inferior): Remove SYS_exec handling.
7170 (syscall_is_exec): Likewise.
7171 (procfs_set_exec_trap): Likewise.
7172
7173 (syscall_is_lwp_exit): Inline in callers.
7174 (syscall_is_exit): Likewise.
7175 (syscall_is_exec): Likewise.
7176 (syscall_is_lwp_create): Likewise.
7177
7178 (invalidate_cache): Remove #if 0 code.
7179
7180 (make_signal_thread_runnable): Remove.
7181 (procfs_target::resume): Remove #if 0 code.
7182
7183 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7184
7185 PR gdb/25939
7186 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7187 call ...
7188 (procfs_target::create_inferior): ... here.
7189
7190 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7191
7192 * exec.c (validate_exec_file): Ensure the build-id is up to
7193 date by calling reopen_exec_file (that checks file timestamp
7194 to decide to re-read the file).
7195
7196 2020-06-18 Pedro Alves <palves@redhat.com>
7197
7198 PR gdb/25412
7199 * gdbthread.h (delete_thread, delete_thread_silent)
7200 (find_thread_ptid): Update comments.
7201 * thread.c (current_thread_): New global.
7202 (is_current_thread): Move higher, and reimplement.
7203 (inferior_thread): Reimplement.
7204 (set_thread_exited): Use bool. Add assertions.
7205 (add_thread_silent): Simplify thread-reuse handling by always
7206 calling delete_thread.
7207 (delete_thread): Remove intro comment.
7208 (find_thread_ptid): Skip exited threads.
7209 (switch_to_thread_no_regs): Write to current_thread_.
7210 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7211 INFERIOR_PTID. Clear current_thread_.
7212
7213 2020-06-18 Pedro Alves <palves@redhat.com>
7214
7215 * aix-thread.c (pd_update): Use switch_to_thread.
7216
7217 2020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * ravenscar-thread.c (ravenscar_thread_target): Update.
7220 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7221 (ravenscar_thread_target::add_active_thread): ... this. Don't
7222 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7223 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7224
7225 2020-06-18 Pedro Alves <palves@redhat.com>
7226
7227 * nat/windows-nat.c (current_windows_thread): Remove.
7228 * nat/windows-nat.h (current_windows_thread): Remove.
7229 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7230 Adjust.
7231 (display_selectors): Adjust to fetch the current
7232 windows_thread_info based on inferior_ptid.
7233 (fake_create_process): No longer write to current_windows_thread.
7234 (windows_nat_target::get_windows_debug_event):
7235 Don't set inferior_ptid or current_windows_thread.
7236 (windows_nat_target::wait): Adjust to not rely on
7237 current_windows_thread.
7238 (do_initial_windows_stuff): Now a method of windows_nat_target.
7239 Switch to the last_ptid thread.
7240 (windows_nat_target::attach): Adjust.
7241 (windows_nat_target::detach): Use switch_to_no_thread instead of
7242 writing to inferior_ptid directly.
7243 (windows_nat_target::create_inferior): Adjust.
7244
7245 2020-06-18 Pedro Alves <palves@redhat.com>
7246
7247 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7248
7249 2020-06-18 Pedro Alves <palves@redhat.com>
7250
7251 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7252 after creating it, instead of writing to inferior_ptid. Don't
7253 write to inferior_ptid.
7254
7255 2020-06-18 Pedro Alves <palves@redhat.com>
7256
7257 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7258
7259 2020-06-18 Pedro Alves <palves@redhat.com>
7260
7261 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7262 it, instead of writing to inferior_ptid.
7263
7264 2020-06-18 Pedro Alves <palves@redhat.com>
7265
7266 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7267 to inferior_ptid.
7268
7269 2020-06-18 Pedro Alves <palves@redhat.com>
7270
7271 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7272 instead of writing to inferior_ptid directly.
7273
7274 2020-06-18 Pedro Alves <palves@redhat.com>
7275
7276 * corelow.c (core_target::close): Use switch_to_no_thread instead
7277 of writing to inferior_ptid directly.
7278 (add_to_thread_list, core_target_open): Use switch_to_thread
7279 instead of writing to inferior_ptid directly.
7280
7281 2020-06-18 Pedro Alves <palves@redhat.com>
7282
7283 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7284 inferior_ptid.
7285 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7286 inferior_ptid.
7287 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7288 inferior_ptid directly.
7289 (darwin_nat_target::init_thread_list): Switch to thread, instead
7290 of writing to inferior_ptid.
7291 (darwin_nat_target::attach): Don't write to inferior_ptid.
7292 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7293
7294 2020-06-18 Pedro Alves <palves@redhat.com>
7295
7296 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7297 thread.
7298 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7299 Instead use switch_to_thread.
7300 (gnu_nat_target::detach): Use switch_to_no_thread
7301 instead of writing to inferior_ptid directly. Used passed-in
7302 inferior instead of looking up the inferior by pid.
7303
7304 2020-06-18 Pedro Alves <palves@redhat.com>
7305
7306 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7307 inferior_ptid.
7308
7309 2020-06-18 Pedro Alves <palves@redhat.com>
7310
7311 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7312 inferior_ptid.
7313 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7314 thread.
7315 (nto_procfs_target::detach): Avoid referencing
7316 inferior_ptid. Use switch_to_no_thread instead of writing to
7317 inferior_ptid directly.
7318 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7319 instead of writing to inferior_ptid directly.
7320 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7321 to thread.
7322
7323 2020-06-18 Pedro Alves <palves@redhat.com>
7324
7325 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7326 after creating it, instead of writing to inferior_ptid.
7327 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7328 to inferior_ptid directly.
7329 (gdbsim_target::wait): Don't write to inferior_ptid.
7330
7331 2020-06-18 Pedro Alves <palves@redhat.com>
7332
7333 * remote.c (remote_target::remote_notice_new_inferior): Use
7334 switch_to_thread instead of writing to inferior_ptid directly.
7335 (remote_target::add_current_inferior_and_thread): Use
7336 switch_to_no_thread instead of writing to inferior_ptid directly.
7337 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7338 and switch_to_thread instead of using set_current_inferior or
7339 writing to inferior_ptid directly.
7340
7341 2020-06-18 Pedro Alves <palves@redhat.com>
7342
7343 * tracectf.c (ctf_target_open): Switch to added thread instead of
7344 writing to inferior_ptid directly.
7345 (ctf_target::close): Use switch_to_no_thread instead of writing to
7346 inferior_ptid directly.
7347
7348 2020-06-18 Pedro Alves <palves@redhat.com>
7349
7350 * tracefile-tfile.c (tfile_target_open): Don't write to
7351 inferior_ptid directly, instead switch to added thread.
7352 (tfile_target::close): Use switch_to_no_thread instead of writing
7353 to inferior_ptid directly.
7354
7355 2020-06-18 Pedro Alves <palves@redhat.com>
7356
7357 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7358 (procfs_target::detach): Use switch_to_no_thread
7359 instead of writing to inferior_ptid directly.
7360 (do_attach): Change return type to void. Switch to the added
7361 thread.
7362 (procfs_target::create_inferior): Switch to the added thread.
7363 (procfs_do_thread_registers): Don't write to inferior_ptid.
7364
7365 2020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7368 of writing to inferior_ptid.
7369 (scoped_restore_exited_inferior): Delete.
7370 (handle_vfork_child_exec_or_exit): Simplify using
7371 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7372 instead of writing to inferior_ptid.
7373 (THREAD_STOPPED_BY): Delete.
7374 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7375 (thread_stopped_by_hw_breakpoint): Delete.
7376 (save_waitstatus): Use
7377 scoped_restore_current_thread+switch_to_thread, and call
7378 target_stopped_by_watchpoint instead of
7379 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7380 instead of thread_stopped_by_sw_breakpoint, and
7381 target_stopped_by_hw_breakpoint instead of
7382 thread_stopped_by_hw_breakpoint.
7383 (handle_inferior_event)
7384 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7385 inferior_ptid directly, nor
7386 set_current_inferior/set_current_program_space. Use
7387 switch_to_thread / switch_to_inferior_no_thread instead.
7388
7389 2020-06-18 Pedro Alves <palves@redhat.com>
7390
7391 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7392 instead of writing to inferior_ptid.
7393
7394 2020-06-18 Pedro Alves <palves@redhat.com>
7395
7396 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7397 added thread.
7398 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7399 to the added thread.
7400 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7401 instead of writing to inferior_ptid.
7402
7403 2020-06-18 Pedro Alves <palves@redhat.com>
7404
7405 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7406 (register_to_value_test): Mock a program_space too. Heap-allocate
7407 the address space. Don't write to inferior_ptid. Use
7408 switch_to_thread instead.
7409
7410 2020-06-18 Pedro Alves <palves@redhat.com>
7411
7412 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7413 Delete.
7414 (find_signalled_thread()): New, factored out from
7415 linux_make_corefile_notes and adjusted to handle exited threads.
7416 (linux_make_corefile_notes): Adjust to use the new
7417 find_signalled_thread.
7418
7419 2020-06-18 Pedro Alves <palves@redhat.com>
7420
7421 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7422 of saving/restoring inferior_ptid.
7423
7424 2020-06-17 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7427 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7428 declare.
7429 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7430
7431 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7434 of partial symtabs.
7435
7436 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * regformats/reg-arm.dat: Remove.
7439 * regformats/reg-bfin.dat: Remove.
7440 * regformats/reg-cris.dat: Remove.
7441 * regformats/reg-crisv32.dat: Remove.
7442 * regformats/reg-m32r.dat: Remove.
7443 * regformats/reg-tilegx.dat: Remove.
7444 * regformats/reg-tilegx32.dat: Remove.
7445
7446 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * features/Makefile (WHICH): Remove arm files.
7449 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7450 * regformats/arm/arm-with-neon.dat: Remove.
7451 * regformats/arm/arm-with-vfpv2.dat: Remove.
7452 * regformats/arm/arm-with-vfpv3.dat: Remove.
7453
7454 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * features/Makefile (XMLTOC): Remove rx.xml.
7457
7458 2020-06-17 Pedro Alves <palves@redhat.com>
7459
7460 * gdbthread.h (thread_control_state) <trap_expected> Update
7461 comments.
7462
7463 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7464
7465 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7466 ada_language::lookup_symbol_nonlocal.
7467 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7468 (ada_language::lookup_symbol_nonlocal): New member function,
7469 implementation from ada_lookup_symbol_nonlocal.
7470 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7471 initializer.
7472 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7473 initializer.
7474 (cplus_language::lookup_symbol_nonlocal): New member function.
7475 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7476 (minimal_language_data) Likewise.
7477 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7478 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7479 initializer.
7480 (d_language::lookup_symbol_nonlocal): New member function.
7481 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7482 initializer.
7483 (f_language::lookup_symbol_nonlocal): New member function.
7484 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7485 initializer.
7486 * language.c (unknown_language_data): Likewise.
7487 (auto_language_data): Likewise.
7488 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7489 field.
7490 (language_defn::lookup_symbol_nonlocal): New member function.
7491 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7492 initializer.
7493 * objc-lang.c (objc_language_data): Likewise.
7494 * opencl-lang.c (opencl_language_data): Likewise.
7495 * p-lang.c (pascal_language_data): Likewise.
7496 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7497 rust_language::lookup_symbol_nonlocal.
7498 (rust_language_data): Delete la_lookup_symbol_nonlocal
7499 initializer.
7500 (rust_language::lookup_symbol_nonlocal): New member function,
7501 implementation from rust_lookup_symbol_nonlocal.
7502 * symtab.c (lookup_symbol_aux): Update call to
7503 lookup_symbol_nonlocal.
7504 (basic_lookup_symbol_nonlocal): Rename to...
7505 (language_defn::lookup_symbol_nonlocal): ...this, and update
7506 header comment. Remove language_defn parameter, and replace with
7507 uses of `this'.
7508 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7509
7510 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7513 initializer.
7514 (ada_language::value_print_inner): New member function.
7515 * c-lang.c (c_language_data): Delete la_value_print_inner
7516 initializer.
7517 (cplus_language_data): Likewise.
7518 (asm_language_data): Likewise.
7519 (minimal_language_data): Likewise.
7520 * d-lang.c (d_language_data): Likewise.
7521 (d_language::value_print_inner): New member function.
7522 * f-lang.c (f_language_data): Delete la_value_print_inner
7523 initializer.
7524 (f_language::value_print_inner): New member function.
7525 * f-lang.h (f_value_print_innner): Rename to...
7526 (f_value_print_inner): ...this (note spelling of 'inner').
7527 * f-valprint.c (f_value_print_innner): Rename to...
7528 (f_value_print_inner): ...this (note spelling of 'inner').
7529 * go-lang.c (go_language_data): Delete la_value_print_inner
7530 initializer.
7531 (go_language::value_print_inner): New member function.
7532 * language.c (language_defn::value_print_inner): Define new member
7533 function.
7534 (unk_lang_value_print_inner): Delete.
7535 (unknown_language_data): Delete la_value_print_inner initializer.
7536 (unknown_language::value_print_inner): New member function.
7537 (auto_language_data): Delete la_value_print_inner initializer.
7538 (auto_language::value_print_inner): New member function.
7539 * language.h (language_data): Delete la_value_print_inner field.
7540 (language_defn::value_print_inner): Delcare new member function.
7541 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7542 initializer.
7543 (m2_language::value_print_inner): New member function.
7544 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7545 initializer.
7546 * opencl-lang.c (opencl_language_data): Likewise.
7547 * p-lang.c (pascal_language_data): Likewise.
7548 (pascal_language::value_print_inner): New member function.
7549 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7550 initializer.
7551 (rust_language::value_print_inner): New member function.
7552 * valprint.c (do_val_print): Update call to value_print_inner.
7553
7554 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7555
7556 * ada-lang.c (ada_language_data): Delete la_value_print
7557 initializer.
7558 (ada_language::value_print): New member function.
7559 * c-lang.c (c_language_data): Delete la_value_print initializer.
7560 (cplus_language_data): Likewise.
7561 (asm_language_data): Likewise.
7562 (minimal_language_data): Likewise.
7563 * d-lang.c (d_language_data): Likewise.
7564 * f-lang.c (f_language_data): Likewise.
7565 * go-lang.c (go_language_data): Likewise.
7566 * language.c (unk_lang_value_print): Delete.
7567 (language_defn::value_print): Define new member function.
7568 (unknown_language_data): Delete la_value_print initializer.
7569 (unknown_language::value_print): New member function.
7570 (auto_language_data): Delete la_value_print initializer.
7571 (auto_language::value_print): New member function.
7572 * language.h (language_data): Delete la_value_print field.
7573 (language_defn::value_print): Declare new member function.
7574 (LA_VALUE_PRINT): Update call to value_print.
7575 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7576 * objc-lang.c (objc_language_data): Likewise.
7577 * opencl-lang.c (opencl_language_data): Likewise.
7578 * p-lang.c (pascal_language_data): Likewise.
7579 (pascal_language::value_print): New member function.
7580 * rust-lang.c (rust_language_data): Delete la_value_print
7581 initializer.
7582
7583 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * ada-lang.c (ada_watch_location_expression): Rename to
7586 ada_language::watch_location_expression.
7587 (ada_language_data): Delete la_watch_location_expression
7588 initializer.
7589 (ada_language::watch_location_expression): New member function,
7590 implementation from ada_watch_location_expression.
7591 * breakpoint.c (watch_command_1): Update call to
7592 watch_location_expression.
7593 * c-lang.c (c_watch_location_expression): Rename to
7594 language_defn::watch_location_expression.
7595 (c_language_data): Delete la_watch_location_expression
7596 initializer.
7597 (cplus_language_data): Likewise.
7598 (asm_language_data): Likewise.
7599 (minimal_language_data): Likewise.
7600 * c-lang.h (c_watch_location_expression): Delete declaration.
7601 * d-lang.c (d_language_data): Delete la_watch_location_expression
7602 initializer.
7603 * f-lang.c (f_language_data): Likewise.
7604 * go-lang.c (go_language_data): Likewise.
7605 * language.c (language_defn::watch_location_expression): Member
7606 function implementation from c_watch_location_expression.
7607 (unknown_language_data): Delete la_watch_location_expression
7608 initializer.
7609 (auto_language_data): Likewise.
7610 * language.h (language_data): Delete la_watch_location_expression
7611 field.
7612 (language_defn::watch_location_expression): Declare new member
7613 function.
7614 * m2-lang.c (m2_language_data): Delete
7615 la_watch_location_expression initializer.
7616 * objc-lang.c (objc_language_data): Likewise.
7617 * opencl-lang.c (opencl_language_data): Likewise.
7618 * p-lang.c (pascal_language_data): Likewise.
7619 * rust-lang.c (rust_watch_location_expression): Rename to
7620 rust_language::watch_location_expression.
7621 (rust_language_data): Delete la_watch_location_expression
7622 initializer.
7623 (rust_language::watch_location_expression): New member function,
7624 implementation from rust_watch_location_expression.
7625
7626 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7629 ada_language::collect_symbol_completion_matches.
7630 (ada_language_data): Delete la_collect_symbol_completion_matches
7631 initializer.
7632 (ada_language::collect_symbol_completion_matches): New member
7633 function, implementation from
7634 ada_collect_symbol_completion_matches.
7635 * c-lang.c (c_language_data): Delete
7636 la_collect_symbol_completion_matches initializer.
7637 (cplus_language_data): Likewise.
7638 (asm_language_data): Likewise.
7639 (minimal_language_data): Likewise.
7640 * d-lang.c (d_language_data): Likewise.
7641 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7642 f_language::collect_symbol_completion_matches.
7643 (f_language_data): Delete la_collect_symbol_completion_matches
7644 initializer.
7645 (f_language::collect_symbol_completion_matches) New member
7646 function, implementation from f_collect_symbol_completion_matches.
7647 * go-lang.c (go_language_data): Delete
7648 la_collect_symbol_completion_matches initializer.
7649 * language.c (unknown_language_data): Likewise.
7650 (auto_language_data): Likewise.
7651 * language.h (language_data): Delete
7652 la_collect_symbol_completion_matches field.
7653 (language_defn::collect_symbol_completion_matches): New member
7654 function.
7655 * m2-lang.c (m2_language_data): Delete
7656 la_collect_symbol_completion_matches initializer.
7657 * objc-lang.c (objc_language_data): Likewise.
7658 * opencl-lang.c (opencl_language_data): Likewise.
7659 * p-lang.c (pascal_language_data): Likewise.
7660 * rust-lang.c (rust_language_data): Likewise.
7661 * symtab.c (default_collect_symbol_completion_matches): Delete.
7662 (collect_symbol_completion_matches): Update call to
7663 collect_symbol_completion_matches.
7664 (collect_symbol_completion_matches_type): Likewise.
7665 * symtab.h (default_collect_symbol_completion_matches): Delete
7666 declaration.
7667
7668 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7669
7670 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7671 (ada_language_data): Delete la_word_break_characters initializer.
7672 (ada_language::word_break_characters): New member function.
7673 * c-lang.c (c_language_data): Delete la_word_break_characters
7674 initializer.
7675 (cplus_language_data): Likewise.
7676 (asm_language_data): Likewise.
7677 (minimal_language_data): Likewise.
7678 * completer.c: Update global comment.
7679 (advance_to_expression_complete_word_point): Update call to
7680 word_break_characters.
7681 (complete_files_symbols): Likewise.
7682 (complete_line_internal_1): Likewise.
7683 (default_completer_handle_brkchars): Likewise.
7684 (skip_quoted_chars): Likewise.
7685 * d-lang.c (d_language_data): Delete la_word_break_characters
7686 initializer.
7687 * f-lang.c (f_word_break_characters): Delete.
7688 (f_language_data): Delete la_word_break_characters initializer.
7689 (f_language::word_break_characters): New member function.
7690 * go-lang.c (go_language_data): Delete la_word_break_characters
7691 initializer.
7692 * language.c (unknown_language_data): Likewise.
7693 (auto_language_data): Likewise.
7694 * language.h (default_word_break_characters): Move declaration to
7695 earlier in the file.
7696 (language_data): Delete la_word_break_characters field.
7697 (language_defn::word_break_characters): New member function.
7698 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7699 initializer.
7700 * objc-lang.c (objc_language_data): Likewise.
7701 * opencl-lang.c (opencl_language_data): Likewise.
7702 * p-lang.c (pascal_language_data): Likewise.
7703 * rust-lang.c (rust_language_data): Likewise.
7704
7705 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7706
7707 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7708 (ada_language_data): Delete la_get_symbol_name_matcher
7709 initializer.
7710 (language_defn::get_symbol_name_matcher_inner): New member
7711 function.
7712 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7713 initializer.
7714 (cplus_language_data): Likewise.
7715 (cplus_language::get_symbol_name_matcher_inner): New member
7716 function.
7717 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7718 (minimal_language_data): Likewise.
7719 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7720 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7721 initializer.
7722 * dictionary.c (iter_match_first_hashed): Update call to
7723 get_symbol_name_matcher.
7724 (iter_match_next_hashed): Likewise.
7725 (iter_match_next_linear): Likewise.
7726 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7727 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7728 initializer.
7729 (f_language::get_symbol_name_matcher_inner): New member function.
7730 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7731 initializer.
7732 * language.c (default_symbol_name_matcher): Update header comment,
7733 make static.
7734 (language_defn::get_symbol_name_matcher): New definition.
7735 (language_defn::get_symbol_name_matcher_inner): Likewise.
7736 (get_symbol_name_matcher): Delete.
7737 (unknown_language_data): Delete la_get_symbol_name_matcher
7738 initializer.
7739 (auto_language_data): Likewise.
7740 * language.h (language_data): Delete la_get_symbol_name_matcher
7741 field.
7742 (language_defn::get_symbol_name_matcher): New member function.
7743 (language_defn::get_symbol_name_matcher_inner): Likewise.
7744 (default_symbol_name_matcher): Delete declaration.
7745 * linespec.c (find_methods): Update call to
7746 get_symbol_name_matcher.
7747 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7748 initializer.
7749 * minsyms.c (lookup_minimal_symbol): Update call to
7750 get_symbol_name_matcher.
7751 (iterate_over_minimal_symbols): Likewise.
7752 * objc-lang.c (objc_language_data): Delete
7753 la_get_symbol_name_matcher initializer.
7754 * opencl-lang.c (opencl_language_data): Likewise.
7755 * p-lang.c (pascal_language_data): Likewise.
7756 * psymtab.c (psymbol_name_matches): Update call to
7757 get_symbol_name_matcher.
7758 * rust-lang.c (rust_language_data): Delete
7759 la_get_symbol_name_matcher initializer.
7760 * symtab.c (symbol_matches_search_name): Update call to
7761 get_symbol_name_matcher.
7762 (compare_symbol_name): Likewise.
7763
7764 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * ada-lang.c (ada_language_data): Delete la_compute_program
7767 initializer.
7768 * c-lang.c (c_language_data): Likewise.
7769 (c_language::compute_program): New member function.
7770 (cplus_language_data): Delete la_compute_program initializer.
7771 (cplus_language::compute_program): New member function.
7772 (asm_language_data): Delete la_compute_program initializer.
7773 (minimal_language_data): Likewise.
7774 * c-lang.h (c_compute_program): Update comment.
7775 (cplus_compute_program): Likewise.
7776 * compile/compile-c-support.c (c_compute_program): Likewise.
7777 (cplus_compute_program): Likewise.
7778 * compile/compile.c (compile_to_object): Update call to
7779 la_compute_program.
7780 * d-lang.c (d_language_data): Delete la_compute_program
7781 initializer.
7782 * f-lang.c (f_language_data): Likewise.
7783 * go-lang.c (go_language_data): Likewise.
7784 * language.c (unknown_language_data): Likewise.
7785 (auto_language_data): Likewise.
7786 * language.h (language_data): Delete la_compute_program field.
7787 (language_defn::compute_program): New member function.
7788 * m2-lang.c (m2_language_data): Delete la_compute_program
7789 initializer.
7790 * objc-lang.c (objc_language_data): Likewise.
7791 * opencl-lang.c (opencl_language_data): Likewise.
7792 * p-lang.c (pascal_language_data): Likewise.
7793 * rust-lang.c (rust_language_data): Likewise.
7794
7795 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 * ada-lang.c (ada_language_data) Delete
7798 la_class_name_from_physname initializer.
7799 * c-lang.c (c_language_data): Likewise.
7800 (cplus_language_data): Likewise.
7801 (cplus_language::class_name_from_physname): New member function.
7802 (asm_language_data): Delete la_class_name_from_physname
7803 initializer.
7804 (minimal_language_data): Likewise.
7805 * d-lang.c (d_language_data): Likewise.
7806 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7807 method on language_defn class.
7808 (guess_full_die_structure_name): Likewise.
7809 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7810 initializer.
7811 * go-lang.c (go_language_data): Likewise.
7812 * language.c (language_class_name_from_physname): Delete.
7813 (unk_lang_class_name): Delete.
7814 (unknown_language_data): Delete la_class_name_from_physname
7815 initializer.
7816 (auto_language_data): Likewise.
7817 * language.h (language_data): Delete la_class_name_from_physname
7818 field.
7819 (language_defn::class_name_from_physname): New function.
7820 (language_class_name_from_physname): Delete declaration.
7821 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7822 initializer.
7823 * objc-lang.c (objc_language_data): Likewise.
7824 * opencl-lang.c (opencl_language_data): Likewise.
7825 * p-lang.c (pascal_language_data): Likewise.
7826 * rust-lang.c (rust_language_data): Likewise.
7827
7828 2020-06-16 Tom Tromey <tom@tromey.com>
7829
7830 * tui/tui-data.h (STATUS_NAME): New macro.
7831 * tui/tui-layout.c (tui_remove_some_windows)
7832 (initialize_known_windows, tui_register_window)
7833 (tui_layout_split::remove_windows, initialize_layouts)
7834 (tui_new_layout_command): Don't use hard-coded window names.
7835
7836 2020-06-16 Tom Tromey <tom@tromey.com>
7837
7838 PR tui/25348:
7839 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7840 tui_initialize_readline. Only run once. Call rl_initialize.
7841 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7842 tui_initialize_readline.
7843 * tui/tui-io.c (tui_setup_io): Call
7844 tui_ensure_readline_initialized.
7845 * tui/tui-interp.c (tui_interp::init): Update.
7846
7847 2020-06-16 Tom Tromey <tom@tromey.com>
7848
7849 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7850 Also preserve the status window.
7851
7852 2020-06-16 Tom Tromey <tom@tromey.com>
7853
7854 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7855 where m_window==nullptr.
7856
7857 2020-06-15 Tom Tromey <tromey@adacore.com>
7858
7859 * windows-nat.c (windows_nat::handle_output_debug_string):
7860 Update.
7861 (windows_nat::handle_ms_vc_exception): Update.
7862 * target.h (target_read_string): Change API.
7863 * target.c (target_read_string): Change API.
7864 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7865 Update.
7866 * solib-frv.c (frv_current_sos): Update.
7867 * solib-dsbt.c (dsbt_current_sos): Update.
7868 * solib-darwin.c (darwin_current_sos): Update.
7869 * linux-thread-db.c (inferior_has_bug): Update.
7870 * expprint.c (print_subexp_standard): Update.
7871 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7872 (ada_exception_message_1): Update.
7873
7874 2020-06-15 Tom Tromey <tromey@adacore.com>
7875
7876 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7877
7878 2020-06-15 Tom Tromey <tromey@adacore.com>
7879
7880 * valprint.c (read_string): Update comment.
7881 * target.c (MIN): Remove.
7882 (target_read_string): Rewrite.
7883
7884 2020-06-15 Tom Tromey <tromey@adacore.com>
7885
7886 * corefile.c (read_memory_string): Remove.
7887 * ada-valprint.c (ada_value_print_ptr): Update.
7888 * ada-lang.h (ada_tag_name): Change return type.
7889 * ada-lang.c (type_from_tag): Update.
7890 (ada_tag_name_from_tsd): Change return type. Use
7891 target_read_string.
7892 (ada_tag_name): Likewise.
7893 * gdbcore.h (read_memory_string): Don't declare.
7894
7895 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7896
7897 * symtab.c (rbreak_command): Ignore Windows drive colon.
7898
7899 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * NEWS: Mention removed GDBserver host support.
7902
7903 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7904
7905 * features/riscv/rebuild-csr-xml.sh: Updated.
7906
7907 2020-06-11 Tom Tromey <tom@tromey.com>
7908
7909 PR gdb/18318:
7910 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7911
7912 2020-06-09 Jonny Grant <jg@jguk.org>
7913 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7914
7915 * main.c (captured_main_1): Don't print new line after help.
7916 (print_gdb_help): add mailing list and IRC channel information
7917 to --help. Add new lines between items in the footer. Remove
7918 quotes around bug url.
7919
7920 2020-06-11 Keith Seitz <keiths@redhat.com>
7921
7922 PR gdb/21356
7923 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7924 Resolve typedefs for type length calculations.
7925
7926 2020-06-10 Tom de Vries <tdevries@suse.de>
7927
7928 PR ada/24713
7929 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7930 (write_psymbols): Enable .gdb_index for ada.
7931 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7932 ada.
7933
7934 2020-06-10 Tom de Vries <tdevries@suse.de>
7935
7936 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7937 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7938 namei" instead of "const char *name" argument.
7939 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7940 dw2_symtab_iter_init.
7941
7942 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7945 to use type::field and field::type instead.
7946
7947 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7950 to use field::type instead.
7951
7952 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * gdbtypes.h (struct field) <type, set_type>: New methods.
7955 Rename `type` field to...
7956 <m_type>: ... this. Change references throughout to use type or
7957 set_type methods.
7958 (FIELD_TYPE): Use field::type. Change call sites that modify
7959 the field's type to use field::set_type instead.
7960
7961 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7964 to use type::index_type instead.
7965
7966 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7969 methods.
7970 (TYPE_INDEX_TYPE): Use type::index_type.
7971 * gdbtypes.c (create_array_type_with_stride): Likewise.
7972
7973 2020-06-07 Tom Tromey <tom@tromey.com>
7974
7975 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7976 parameter.
7977 (generic_value_print): Update.
7978
7979 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7980
7981 Revert commit 982a38f60b0.
7982 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7983
7984 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7987 avoid use after free.
7988
7989 2020-06-05 Tom de Vries <tdevries@suse.de>
7990
7991 * NEWS: Fix typos.
7992
7993 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7994
7995 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7996 the per_bfd object.
7997 (dwarf2_read_debug_names): Likewise.
7998 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7999 object when re-using a per_bfd object with an index.
8000
8001 2020-06-03 Tom de Vries <tdevries@suse.de>
8002
8003 PR symtab/26046
8004 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8005 children for C++.
8006 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8007 DW_TAG_subprogram.
8008
8009 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * ada-lang.c (ada_language_data): Delete skip_trampoline
8012 initializer.
8013 * c-lang.c (c_language_data): Likewise.
8014 (cplus_language_data): Likewise.
8015 (cplus_language::skip_trampoline): New member function.
8016 (asm_language_data): Delete skip_trampoline initializer.
8017 (minimal_language_data): Likewise.
8018 * d-lang.c (d_language_data): Likewise.
8019 * f-lang.c (f_language_data): Likewise.
8020 * go-lang.c (go_language_data): Likewise.
8021 * language.c (unk_lang_trampoline): Delete function.
8022 (skip_language_trampoline): Update.
8023 (unknown_language_data): Delete skip_trampoline initializer.
8024 (auto_language_data): Likewise.
8025 * language.h (language_data): Delete skip_trampoline field.
8026 (language_defn::skip_trampoline): New function.
8027 * m2-lang.c (m2_language_data): Delete skip_trampoline
8028 initializer.
8029 * objc-lang.c (objc_skip_trampoline): Delete function, move
8030 implementation to objc_language::skip_trampoline.
8031 (objc_language_data): Delete skip_trampoline initializer.
8032 (objc_language::skip_trampoline): New member function with
8033 implementation from objc_skip_trampoline.
8034 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8035 initializer.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 * rust-lang.c (rust_language_data): Likewise.
8038
8039 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8042 (ada_language::demangle): New member function.
8043 * c-lang.c (c_language_data): Delete la_demangle initializer.
8044 (cplus_language_data): Delete la_demangle initializer.
8045 (cplus_language::demangle): New member function.
8046 (asm_language_data): Delete la_demangle initializer.
8047 (minimal_language_data): Delete la_demangle initializer.
8048 * d-lang.c (d_language_data): Delete la_demangle initializer.
8049 (d_language::demangle): New member function.
8050 * f-lang.c (f_language_data): Delete la_demangle initializer.
8051 (f_language::demangle): New member function.
8052 * go-lang.c (go_language_data): Delete la_demangle initializer.
8053 (go_language::demangle): New member function.
8054 * language.c (language_demangle): Update.
8055 (unk_lang_demangle): Delete.
8056 (unknown_language_data): Delete la_demangle initializer.
8057 (unknown_language::demangle): New member function.
8058 (auto_language_data): Delete la_demangle initializer.
8059 (auto_language::demangle): New member function.
8060 * language.h (language_data): Delete la_demangle field.
8061 (language_defn::demangle): New function.
8062 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8063 * objc-lang.c (objc_language_data): Delete la_demangle
8064 initializer.
8065 (objc_language::demangle): New member function.
8066 * opencl-lang.c (opencl_language_data): Delete la_demangle
8067 initializer.
8068 * p-lang.c (pascal_language_data): Likewise.
8069 * rust-lang.c (rust_language_data): Likewise.
8070 (rust_language::demangle): New member function.
8071
8072 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * ada-lang.c (ada_language_data): Delete la_print_type
8075 initializer.
8076 (ada_language::print_type): New member function.
8077 * c-lang.c (c_language_data): Delete la_print_type initializer.
8078 (c_language::print_type): New member function.
8079 (cplus_language_data): Delete la_print_type initializer.
8080 (cplus_language::print_type): New member function.
8081 (asm_language_data): Delete la_print_type initializer.
8082 (asm_language::print_type): New member function.
8083 (minimal_language_data): Delete la_print_type initializer.
8084 (minimal_language::print_type): New member function.
8085 * d-lang.c (d_language_data): Delete la_print_type initializer.
8086 (d_language::print_type): New member function.
8087 * f-lang.c (f_language_data): Delete la_print_type initializer.
8088 (f_language::print_type): New member function.
8089 * go-lang.c (go_language_data): Delete la_print_type initializer.
8090 (go_language::print_type): New member function.
8091 * language.c (unk_lang_print_type): Delete.
8092 (unknown_language_data): Delete la_print_type initializer.
8093 (unknown_language::print_type): New member function.
8094 (auto_language_data): Delete la_print_type initializer.
8095 (auto_language::print_type): New member function.
8096 * language.h (language_data): Delete la_print_type field.
8097 (language_defn::print_type): New function.
8098 (LA_PRINT_TYPE): Update.
8099 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8100 (m2_language::print_type): New member function.
8101 * objc-lang.c (objc_language_data): Delete la_print_type
8102 initializer.
8103 (objc_language::print_type): New member function.
8104 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8105 to opencl_language::print_type.
8106 (opencl_language_data): Delete la_print_type initializer.
8107 (opencl_language::print_type): New member function, implementation
8108 from opencl_print_type.
8109 * p-lang.c (pascal_language_data): Delete la_print_type
8110 initializer.
8111 (pascal_language::print_type): New member function.
8112 * rust-lang.c (rust_print_type): Delete, implementation moved to
8113 rust_language::print_type.
8114 (rust_language_data): Delete la_print_type initializer.
8115 (rust_language::print_type): New member function, implementation
8116 from rust_print_type.
8117
8118 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8121 implementation moves to...
8122 (ada_language::sniff_from_mangled_name): ...here. Update return
8123 type.
8124 (ada_language_data): Delete la_sniff_from_mangled_name
8125 initializer.
8126 * c-lang.c (c_language_data): Likewise.
8127 (cplus_language_data): Likewise.
8128 (cplus_language::sniff_from_mangled_name): New member function,
8129 implementation taken from gdb_sniff_from_mangled_name.
8130 (asm_language_data): Delete la_sniff_from_mangled_name
8131 initializer.
8132 (minimal_language_data): Likewise.
8133 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8134 implementation moves to cplus_language::sniff_from_mangled_name.
8135 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8136 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8137 moves to...
8138 (d_language::sniff_from_mangled_name): ...here.
8139 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8140 * f-lang.c (f_language_data): Likewise.
8141 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8142 moves to...
8143 (go_language::sniff_from_mangled_name): ...here.
8144 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8145 * language.c (language_sniff_from_mangled_name): Delete.
8146 (unknown_language_data): Delete la_sniff_from_mangled_name
8147 initializer.
8148 (auto_language_data): Likewise.
8149 * language.h (language_data): Delete la_sniff_from_mangled_name
8150 field.
8151 (language_defn::sniff_from_mangled_name): New function.
8152 (language_sniff_from_mangled_name): Delete declaration.
8153 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8154 field.
8155 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8156 implementation moves to...
8157 (objc_language::sniff_from_mangled_name): ...here.
8158 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8159 * opencl-lang.c (opencl_language_data): Likewise.
8160 * p-lang.c (pascal_language_data): Likewise.
8161 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8162 implementation moves to...
8163 (rust_language::sniff_from_mangled_name): ...here.
8164 (rust_language_data): Delete la_sniff_from_mangled_name
8165 initializer.
8166 * symtab.c (symbol_find_demangled_name): Call
8167 sniff_from_mangled_name member function.
8168
8169 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8172 initializer.
8173 * c-lang.c (c_language_data): Likewise.
8174 (cplus_language_data): Likewise.
8175 (cplus_language::search_name_hash): New member function.
8176 (asm_language_data): Delete la_search_name_hash initializer.
8177 (minimal_language_data): Likewise.
8178 * d-lang.c (d_language_data): Likewise.
8179 * dictionary.c (default_search_name_hash): Rename to...
8180 (language_defn::search_name_hash): ...this.
8181 * f-lang.c (f_language_data): Likewise.
8182 (f_language::search_name_hash): New member function.
8183 * go-lang.c (go_language_data): Delete la_search_name_hash
8184 initializer.
8185 * language.c (unknown_language_data): Likewise.
8186 (auto_language_data): Likewise.
8187 * language.h (struct language_data): Delete la_search_name_hash
8188 field.
8189 (language_defn::search_name_hash): Declare new member function.
8190 (default_search_name_hash): Delete declaration.
8191 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8192 initializer.
8193 * objc-lang.c (objc_language_data): Likewise.
8194 * opencl-lang.c (opencl_language_data): Likewise.
8195 * p-lang.c (pascal_language_data): Likewise.
8196 * rust-lang.c (rust_language_data): Likewise.
8197 * symtab.c (search_name_hash): Update call.
8198
8199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8202 initializer.
8203 * c-lang.c (class compile_instance): Declare.
8204 (c_language_data): Delete la_get_compile_instance initializer.
8205 (c_language::get_compile_instance): New member function.
8206 (cplus_language_data): Delete la_get_compile_instance initializer.
8207 (cplus_language::get_compile_instance): New member function.
8208 (asm_language_data): Delete la_get_compile_instance initializer.
8209 (minimal_language_data): Likewise.
8210 * c-lang.h (c_get_compile_context): Update comment.
8211 (cplus_get_compile_context): Update comment.
8212 * compile/compile.c (compile_to_object): Update calls, don't rely
8213 on function pointer being NULL.
8214 * d-lang.c (d_language_data): Delete la_get_compile_instance
8215 initializer.
8216 * f-lang.c (f_language_data): Likewise.
8217 * go-lang.c (go_language_data): Likewise.
8218 * language.c (unknown_language_data): Likewise.
8219 (auto_language_data): Likewise.
8220 * language.h (language_data): Delete la_get_compile_instance field.
8221 (language_defn::get_compile_instance): New member function.
8222 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8223 initializer.
8224 * objc-lang.c (objc_language_data): Likewise.
8225 * opencl-lang.c (opencl_language_data): Likewise.
8226 * p-lang.c (pascal_language_data): Likewise.
8227 * rust-lang.c (rust_language_data): Likewise.
8228
8229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8230
8231 * ada-lang.c (ada_add_all_symbols): Update comment.
8232 (ada_iterate_over_symbols): Delete, move implementation to...
8233 (ada_language::iterate_over_symbols): ...here, a new member
8234 function, rewrite to use range based for loop.
8235 (ada_language_data): Delete la_iterate_over_symbols initializer.
8236 * c-lang.c (c_language_data): Likewise.
8237 (cplus_language_data): Likewise.
8238 (asm_language_data): Likewise.
8239 (minimal_language_data): Likewise.
8240 * d-lang.c (d_language_data): Likewise.
8241 * f-lang.c (f_language_data): Likewise.
8242 * go-lang.c (go_language_data): Likewise.
8243 * language.c (unknown_language_data): Likewise.
8244 (auto_language_data): Likewise.
8245 * language.h (language_data): Delete la_iterate_over_symbols field.
8246 (language_defn::iterate_over_symbols): New member function.
8247 (LA_ITERATE_OVER_SYMBOLS): Update.
8248 * linespec.c (iterate_over_all_matching_symtabs): Update.
8249 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8250 initializer.
8251 * objc-lang.c (objc_language_data): Likewise.
8252 * opencl-lang.c (opencl_language_data): Likewise.
8253 * p-lang.c (pascal_language_data): Likewise.
8254 * rust-lang.c (rust_language_data): Likewise.
8255
8256 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8257
8258 * ada-lang.c (ada_language_data): Delete
8259 la_lookup_transparent_type initializer.
8260 * c-lang.c (c_language_data): Likewise.
8261 (cplus_language_data): Likewise.
8262 (cplus_language::lookup_transparent_type): New member function.
8263 (asm_language_data): Delete la_lookup_transparent_type
8264 initializer.
8265 (minimal_language_data): Likewise.
8266 * d-lang.c (d_language_data): Likewise.
8267 * f-lang.c (f_language_data): Likewise.
8268 * go-lang.c (go_language_data): Likewise.
8269 * language.c (unknown_language_data): Likewise.
8270 (auto_language_data): Likewise.
8271 * language.h (struct language_data): Delete
8272 la_lookup_transparent_type field.
8273 (language_defn::lookup_transparent_type): New member function.
8274 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8275 initializer.
8276 * objc-lang.c (objc_language_data): Likewise.
8277 * opencl-lang.c (opencl_language_data): Likewise.
8278 * p-lang.c (pascal_language_data): Likewise.
8279 * rust-lang.c (rust_language_data): Likewise.
8280 * symtab.c (symbol_matches_domain): Update call.
8281
8282 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8283
8284 * ada-lang.c (ada_language_arch_info): Delete function, move
8285 implementation to...
8286 (ada_language::language_arch_info): ...here, a new member
8287 function.
8288 (ada_language_data): Delete la_language_arch_info.
8289 * c-lang.c (c_language_data): Likewise.
8290 (c_language::language_arch_info): New member function.
8291 (cplus_language_arch_info): Delete function, move
8292 implementation to...
8293 (cplus_language::language_arch_info): ...here, a new member
8294 function.
8295 (cplus_language_data): Delete la_language_arch_info.
8296 (asm_language_data): Likewise.
8297 (asm_language::language_arch_info): New member function.
8298 (minimal_language_data): Delete la_language_arch_info.
8299 (minimal_language::language_arch_info): New member function.
8300 * d-lang.c (d_language_arch_info): Delete function, move
8301 implementation to...
8302 (d_language::language_arch_info): ...here, a new member
8303 function.
8304 (d_language_data): Delete la_language_arch_info.
8305 * f-lang.c (f_language_arch_info): Delete function, move
8306 implementation to...
8307 (f_language::language_arch_info): ...here, a new member
8308 function.
8309 (f_language_data): Delete la_language_arch_info.
8310 * go-lang.c (go_language_arch_info): Delete function, move
8311 implementation to...
8312 (go_language::language_arch_info): ...here, a new member
8313 function.
8314 (go_language_data): Delete la_language_arch_info.
8315 * language.c (unknown_language_data): Likewise.
8316 (unknown_language::language_arch_info): New member function.
8317 (auto_language_data): Delete la_language_arch_info.
8318 (auto_language::language_arch_info): New member function.
8319 (language_gdbarch_post_init): Update call to
8320 la_language_arch_info.
8321 * language.h (language_data): Delete la_language_arch_info
8322 function pointer.
8323 (language_defn::language_arch_info): New function.
8324 * m2-lang.c (m2_language_arch_info): Delete function, move
8325 implementation to...
8326 (m2_language::language_arch_info): ...here, a new member
8327 function.
8328 (m2_language_data): Delete la_language_arch_info.
8329 * objc-lang.c (objc_language_arch_info): Delete function, move
8330 implementation to...
8331 (objc_language::language_arch_info): ...here, a new member
8332 function.
8333 (objc_language_data): Delete la_language_arch_info.
8334 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8335 implementation to...
8336 (opencl_language::language_arch_info): ...here, a new member
8337 function.
8338 (opencl_language_data): Delete la_language_arch_info.
8339 * p-lang.c (pascal_language_arch_info): Delete function, move
8340 implementation to...
8341 (pascal_language::language_arch_info): ...here, a new member
8342 function.
8343 (pascal_language_data): Delete la_language_arch_info.
8344 * rust-lang.c (rust_language_arch_info): Delete function, move
8345 implementation to...
8346 (rust_language::language_arch_info): ...here, a new member
8347 function.
8348 (rust_language_data): Delete la_language_arch_info.
8349
8350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8351
8352 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8353 initializer.
8354 * c-lang.c (c_language_data): Likewise.
8355 (cplus_language_data): Likewise.
8356 (cplus_language::pass_by_reference_info): New method.
8357 (asm_language_data): Delete la_pass_by_reference initializer.
8358 (minimal_language_data): Likewise.
8359 * cp-abi.c (cp_pass_by_reference): Remove use of
8360 default_pass_by_reference.
8361 * d-lang.c (d_language_data): Likewise.
8362 * f-lang.c (f_language_data): Likewise.
8363 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8364 default_pass_by_reference.
8365 * go-lang.c (go_language_data): Likewise.
8366 * language.c (language_pass_by_reference): Update.
8367 (default_pass_by_reference): Delete.
8368 (unknown_language_data): Delete la_pass_by_reference
8369 initializer.
8370 (auto_language_data): Likewise.
8371 * language.h (struct language_data): Delete la_pass_by_reference
8372 field.
8373 (language_defn::pass_by_reference_info): New member function.
8374 (default_pass_by_reference): Delete declaration.
8375 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8376 initializer.
8377 * objc-lang.c (objc_language_data): Likewise.
8378 * opencl-lang.c (opencl_language_data): Likewise.
8379 * p-lang.c (pascal_language_data): Likewise.
8380 * rust-lang.c (rust_language_data): Likewise.
8381
8382 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * ada-lang.c (ada_read_var_value): Delete function, move
8385 implementation to...
8386 (ada_language::read_var_value): ...here.
8387 (ada_language_data): Delete la_read_var_value initializer.
8388 * c-lang.c (c_language_data): Likewise.
8389 (cplus_language_data): Likewise.
8390 (minimal_language_data): Likewise.
8391 * d-lang.c (d_language_data): Likewise.
8392 * f-lang.c (f_language_data): Likewise.
8393 * findvar.c (default_read_var_value): Rename to...
8394 (language_defn::read_var_value): ...this.
8395 * findvar.c (read_var_value): Update header comment, and change to
8396 call member function instead of function pointer.
8397 * go-lang.c (go_language_data): Likewise.
8398 * language.c (unknown_language_data): Delete la_read_var_value
8399 initializer.
8400 (auto_language_data): Likewise.
8401 * language.h (struct language_data): Delete la_read_var_value
8402 field.
8403 (language_defn::read_var_value): New member function.
8404 (default_read_var_value): Delete declaration.
8405 * m2-lang.c (m2_language_data): Delete la_read_var_value
8406 initializer.
8407 * objc-lang.c (objc_language_data): Likewise.
8408 * opencl-lang.c (opencl_language_data): Likewise.
8409 * p-lang.c (pascal_language_data): Likewise.
8410 * rust-lang.c (rust_language_data): Likewise.
8411 * value.h (default_read_var_value): Delete declaration.
8412
8413 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * ada-lang.c (ada_print_array_index): Delete function, move
8416 implementation to...
8417 (ada_language::print_array_index): ...here.
8418 (ada_language_data): Delete la_print_array_index initializer.
8419 * c-lang.c (c_language_data): Likewise.
8420 (cplus_language_data): Likewise.
8421 (minimal_language_data): Likewise.
8422 * d-lang.c (d_language_data): Likewise.
8423 * f-lang.c (f_language_data): Likewise.
8424 * go-lang.c (go_language_data): Likewise.
8425 * language.c (default_print_array_index): Delete function, move
8426 implementation to...
8427 (language_defn::print_array_index): ...here.
8428 (unknown_language_data): Delete la_print_array_index initializer.
8429 (auto_language_data): Likewise.
8430 * language.h (struct language_data): Delete la_print_array_index
8431 field.
8432 (language_defn::print_array_index): New member function.
8433 (LA_PRINT_ARRAY_INDEX): Update.
8434 (default_print_array_index): Delete declaration.
8435 * m2-lang.c (m2_language_data): Delete la_print_array_index
8436 initializer.
8437 * objc-lang.c (objc_language_data): Likewise.
8438 * opencl-lang.c (opencl_language_data): Likewise.
8439 * p-lang.c (pascal_language_data): Likewise.
8440 * rust-lang.c (rust_language_data): Likewise.
8441
8442 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8443
8444 * gdb/ada-lang.c (ada_language_defn): Convert to...
8445 (ada_language_data): ...this.
8446 (class ada_language): New class.
8447 (ada_language_defn): New static global.
8448 * gdb/c-lang.c (c_language_defn): Convert to...
8449 (c_language_data): ...this.
8450 (class c_language): New class.
8451 (c_language_defn): New static global.
8452 (cplus_language_defn): Convert to...
8453 (cplus_language_data): ...this.
8454 (class cplus_language): New class.
8455 (cplus_language_defn): New static global.
8456 (asm_language_defn): Convert to...
8457 (asm_language_data): ...this.
8458 (class asm_language): New class.
8459 (asm_language_defn): New static global.
8460 (minimal_language_defn): Convert to...
8461 (minimal_language_data): ...this.
8462 (class minimal_language): New class.
8463 (minimal_language_defn): New static global.
8464 * gdb/d-lang.c (d_language_defn): Convert to...
8465 (d_language_data): ...this.
8466 (class d_language): New class.
8467 (d_language_defn): New static global.
8468 * gdb/f-lang.c (f_language_defn): Convert to...
8469 (f_language_data): ...this.
8470 (class f_language): New class.
8471 (f_language_defn): New static global.
8472 * gdb/go-lang.c (go_language_defn): Convert to...
8473 (go_language_data): ...this.
8474 (class go_language): New class.
8475 (go_language_defn): New static global.
8476 * gdb/language.c (unknown_language_defn): Remove declaration.
8477 (current_language): Initialize to nullptr, real initialization is
8478 moved to _initialize_language.
8479 (languages): Delete global.
8480 (language_defn::languages): Define.
8481 (set_language_command): Use language_defn::languages.
8482 (set_language): Likewise.
8483 (range_error): Likewise.
8484 (language_enum): Likewise.
8485 (language_def): Likewise.
8486 (add_set_language_command): Use language_def::languages for the
8487 language list, and language_def to lookup language pointers.
8488 (skip_language_trampoline): Use language_defn::languages.
8489 (unknown_language_defn): Convert to...
8490 (unknown_language_data): ...this.
8491 (class unknown_language): New class.
8492 (unknown_language_defn): New static global.
8493 (auto_language_defn): Convert to...
8494 (auto_language_data): ...this.
8495 (class auto_language): New class.
8496 (auto_language_defn): New static global.
8497 (language_gdbarch_post_init): Use language_defn::languages.
8498 (_initialize_language): Initialize current_language.
8499 * gdb/language.h (struct language_defn): Rename to...
8500 (struct language_data): ...this.
8501 (struct language_defn): New.
8502 (auto_language_defn): Delete.
8503 (unknown_language_defn): Delete.
8504 (minimal_language_defn): Delete.
8505 (ada_language_defn): Delete.
8506 (asm_language_defn): Delete.
8507 (c_language_defn): Delete.
8508 (cplus_language_defn): Delete.
8509 (d_language_defn): Delete.
8510 (f_language_defn): Delete.
8511 (go_language_defn): Delete.
8512 (m2_language_defn): Delete.
8513 (objc_language_defn): Delete.
8514 (opencl_language_defn): Delete.
8515 (pascal_language_defn): Delete.
8516 (rust_language_defn): Delete.
8517 * gdb/m2-lang.c (m2_language_defn): Convert to...
8518 (m2_language_data): ...this.
8519 (class m2_language): New class.
8520 (m2_language_defn): New static global.
8521 * gdb/objc-lang.c (objc_language_defn): Convert to...
8522 (objc_language_data): ...this.
8523 (class objc_language): New class.
8524 (objc_language_defn): New static global.
8525 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8526 (opencl_language_data): ...this.
8527 (class opencl_language): New class.
8528 (opencl_language_defn): New static global.
8529 * gdb/p-lang.c (pascal_language_defn): Convert to...
8530 (pascal_language_data): ...this.
8531 (class pascal_language): New class.
8532 (pascal_language_defn): New static global.
8533 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8534 language pointer, update comment format.
8535 * gdb/rust-lang.c (rust_language_defn): Convert to...
8536 (rust_language_data): ...this.
8537 (class rust_language): New class.
8538 (rust_language_defn): New static global.
8539
8540 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8541
8542 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8543 member variable.
8544 <m_stmt_at_address>: New member variable.
8545 (lnp_state_machine::record_line): Don't record some lines, update
8546 tracking of is_stmt at the same address.
8547 (lnp_state_machine::lnp_state_machine): Initialise new member
8548 variables.
8549
8550 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8551
8552 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8553 "-include gnu-nat-mig.h".
8554 * gnu-nat-mig.h: New file.
8555 * gnu-nat.c: Include "gnu-nat-mig.h".
8556 (exc_server, msg_reply_server, notify_server,
8557 process_reply_server): Remove declarations.
8558
8559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8560
8561 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8562 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8563 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8564 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8565 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8566 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8567 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8568 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8569 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8570 to gnu_nat_target class.
8571 * gnu-nat.c: Likewise.
8572 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8573 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8574 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8575 object.
8576 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8577 instead of `gnu_target'.
8578
8579 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8580
8581 * i386-gnu-tdep.c: Include "gdbcore.h"
8582 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8583 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8584 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8585 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8586 i386_gnu_sigcontext_addr): New functions
8587 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8588 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8589 tdep.
8590
8591 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8592
8593 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8594 before fork_inferior call. Avoid calling it if target_is_pushed returns
8595 true.
8596
8597 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8598
8599 * gnu-nat.h (gnu_target): New variable declaration.
8600 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8601 gnu_target.
8602 * gnu-nat.c (gnu_target): New variable.
8603 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8604 add_thread_silent, and add_thread calls.
8605 (gnu_nat_target::create_inferior): Pass gnu_target to
8606 add_thread_silent, thread_change_ptid call.
8607 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8608 call.
8609
8610 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8611
8612 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8613 (gnu_nat_target::find_memory_regions): Remove unused
8614 `old_address' variable.
8615
8616 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8617
8618 * gnu-nat.c: Include "gdbarch.h".
8619
8620 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8621
8622 * reply_mig_hack.awk (Error return): Cast function through
8623 void *, to bypass compiler function call check.
8624
8625 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8626
8627 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8628 $(srcdir)/reply_mig_hack.awk.
8629
8630 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8631
8632 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8633
8634 2020-05-30 Jonny Grant <jg@jguk.org>
8635
8636 * configure.ac (ACX_BUGURL): change bug URL to https.
8637
8638 2020-05-30 Pedro Alves <palves@redhat.com>
8639
8640 * cp-support.c (replace_typedefs_template): New.
8641 (replace_typedefs_qualified_name): Handle
8642 DEMANGLE_COMPONENT_TEMPLATE.
8643
8644 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8647 dwarf2/index-cache.h, dwarf2/index-write.c,
8648 dwarf2/index-write.h, dwarf2/line-header.c,
8649 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8650 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8651 variables and fields from `dwarf2_per_objfile` to just
8652 `per_objfile` throughout.
8653
8654 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8655
8656 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8657 <push_dwarf_reg_entry_value>: Add comment.
8658
8659 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8660 Keith Seitz <keiths@redhat.com>
8661
8662 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8663 instead of PyEval_ReleaseLock.
8664 (class gdbpy_gil): Move to earlier in file.
8665 (finalize_python): Set gdb_python_initialized.
8666 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8667 when not initialized.
8668
8669 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8672 <push_dwarf_reg_entry_value>: Remove assert. Override
8673 per_objfile with caller_per_objfile.
8674
8675 2020-05-28 Tom de Vries <tdevries@suse.de>
8676
8677 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8678 PR gold/15646 workaround to symbol kind "type".
8679
8680 2020-05-27 Tom Tromey <tromey@adacore.com>
8681
8682 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8683
8684 2020-05-27 Tom Tromey <tromey@adacore.com>
8685
8686 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8687 Use htab_find_with_hash.
8688 <add_abbrev>: Remove "abbrev_number" parameter.
8689 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8690 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8691 (hash_abbrev): Add comment.
8692 (abbrev_table::lookup_abbrev): Move to header file.
8693 (abbrev_table::read): Update.
8694
8695 2020-05-27 Tom Tromey <tromey@adacore.com>
8696
8697 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8698 method.
8699 <canonical_name>: New member.
8700 <raw_name>: Rename from "name".
8701 (partial_die_info): Initialize canonical_name.
8702 (scan_partial_symbols): Check raw_name.
8703 (partial_die_parent_scope, partial_die_full_name)
8704 (add_partial_symbol, add_partial_subprogram)
8705 (add_partial_enumeration, load_partial_dies): Use "name" method.
8706 (partial_die_info::name): New method.
8707 (partial_die_info::read, guess_partial_die_structure_name)
8708 (partial_die_info::fixup): Update.
8709
8710 2020-05-27 Tom Tromey <tromey@adacore.com>
8711
8712 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8713 <get_ref_die_offset>: Inline.
8714 <get_ref_die_offset_complaint>: New method.
8715 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8716 (attribute::get_ref_die_offset_complaint): Rename from
8717 get_ref_die_offset. Just issue complaint.
8718
8719 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8720
8721 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8722
8723 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8724
8725 * exec.c (exec_file_attach): Use errno value of first openp failure.
8726
8727 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8728
8729 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8730 Don't close thread handle.
8731
8732 2020-05-27 Tom Tromey <tom@tromey.com>
8733 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8736 shared_ptr.
8737 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8738 member.
8739 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8740 dwarf2_per_bfd_objfile_data_key>: New globals.
8741 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8742 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8743 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8744 shared.
8745 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8746 short-circuit when sharing.
8747 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8748 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8749
8750 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8753 to...
8754 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8755 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8756
8757 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8760 build_name_components, find_name_components_bounds>:
8761 Add per_objfile parameter.
8762 (struct mapped_index) <symbol_name_at>: Likewise.
8763 (struct mapped_debug_names): Remove constructor.
8764 <dwarf2_per_objfile>: Remove field.
8765 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8766 (mapped_index_base::find_name_components_bounds,
8767 mapped_index_base::build_name_components,
8768 dw2_expand_symtabs_matching_symbol): Likewise.
8769 (class mock_mapped_index) <symbol_name_at>: Likewise.
8770 (check_match): Likewise.
8771 (check_find_bounds_finds): Likewise.
8772 (test_mapped_index_find_name_component_bounds): Update.
8773 (CHECK_MATCH): Update.
8774 (dw2_expand_symtabs_matching): Update.
8775 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8776 per_objfile parameter.
8777 <find_vec_in_debug_names>: Likewise.
8778 <m_per_objfile>: New field.
8779 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8780 parameter.
8781 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8782 (dw2_debug_names_iterator::next): Update.
8783 (dw2_debug_names_lookup_symbol): Update.
8784 (dw2_debug_names_expand_symtabs_for_function): Update.
8785 (dw2_debug_names_map_matching_symbols): Update.
8786 (dw2_debug_names_expand_symtabs_matching): Update.
8787 (dwarf2_read_debug_names): Update.
8788
8789 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8790
8791 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8792 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8793 move to dwarf2_per_objfile.
8794 <read_in_chain>: Remove.
8795 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8796 remove_all_cus, age_comp_units>: New methods.
8797 <m_dwarf2_cus>: New member.
8798 (struct dwarf2_per_cu_data) <cu>: Remove.
8799 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8800 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8801 moved to methods of dwarf2_per_objfile.
8802 (dwarf2_clear_marks): Remove.
8803 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8804 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8805 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8806 (dwarf2_per_objfile::remove_all_cus): New.
8807 (class free_cached_comp_units) <~free_cached_comp_units>:
8808 Update.
8809 (load_cu): Update.
8810 (dw2_do_instantiate_symtab): Adjust.
8811 (fill_in_sig_entry_from_dwo_entry): Adjust.
8812 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8813 (cutu_reader::cutu_reader): Likewise.
8814 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8815 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8816 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8817 and dwarf2_per_objfile::age_comp_units.
8818 (load_partial_comp_unit): Update.
8819 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8820 (process_queue): Likewise.
8821 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8822 backlink.
8823 (dwarf2_read_addr_index): Likewise.
8824 (follow_die_offset): Likewise.
8825 (dwarf2_fetch_die_loc_sect_off): Likewise.
8826 (dwarf2_fetch_constant_bytes): Likewise.
8827 (dwarf2_fetch_die_type_sect_off): Likewise.
8828 (follow_die_sig_1): Likewise.
8829 (load_full_type_unit): Likewise.
8830 (read_signatured_type): Likewise.
8831 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8832 (dwarf2_cu::~dwarf2_cu): Remove.
8833 (dwarf2_per_objfile::get_cu): New.
8834 (dwarf2_per_objfile::set_cu): New.
8835 (age_cached_comp_units): Rename to...
8836 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8837 to std::unordered_map.
8838 (free_one_cached_comp_unit): Rename to...
8839 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8840 to std::unordered_map.
8841 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8842 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8843 a dwarf2_per_objfile in data.
8844 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8845 (dwarf2_clear_marks): Remove.
8846
8847 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8848
8849 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8850 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8851 (init_tu_and_read_dwo_dies): Likewise.
8852 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8853 (cutu_reader::cutu_reader): Likewise.
8854 (load_partial_comp_unit): Likewise.
8855 (process_psymtab_comp_unit): Update.
8856 (build_type_psymtabs_1): Update.
8857 (process_skeletonless_type_unit): Update.
8858 (load_full_comp_unit): Update.
8859 (find_partial_die): Update.
8860 (dwarf2_read_addr_index): Update.
8861 (read_signatured_type): Update.
8862
8863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8866 m_header_read_in>: New fields.
8867 <get_header>: New method.
8868 * dwarf2/read.c (per_cu_header_read_in): Remove.
8869 (dwarf2_per_cu_data::get_header): New.
8870 (dwarf2_per_cu_data::addr_size): Update.
8871 (dwarf2_per_cu_data::offset_size): Update.
8872 (dwarf2_per_cu_data::ref_addr_size): Update.
8873
8874 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8875
8876 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8877 (dw2_do_instantiate_symtab): Update.
8878 (queue_and_load_all_dwo_tus): Change parameter from
8879 dwarf2_per_cu_data to dwarf2_cu.
8880 (dwarf2_fetch_die_loc_sect_off): Update.
8881 (dwarf2_fetch_constant_bytes): Update.
8882 (dwarf2_fetch_die_type_sect_off): Update.
8883
8884 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8885
8886 * dwarf2/read.c (process_full_comp_unit,
8887 process_full_type_unit): Remove per_cu, per_objfile paramters.
8888 Add dwarf2_cu parameter.
8889 (process_queue): Update.
8890
8891 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8892
8893 * dwarf2/read.c (create_cu_from_index_list): Replace
8894 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8895 (create_cus_from_index_list): Likewise.
8896 (create_cus_from_index): Likewise.
8897 (create_signatured_type_table_from_index): Likewise.
8898 (create_cus_from_debug_names_list): Likewise.
8899 (create_cus_from_debug_names): Likewise.
8900 (dwarf2_read_gdb_index): Update.
8901 (dwarf2_read_debug_names): Update.
8902
8903 2020-05-27 Tom Tromey <tom@tromey.com>
8904 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * dwarf2/read.h (struct dwarf2_per_objfile)
8907 <get_type_for_signatured_type, set_type_for_signatured_type>:
8908 New methods.
8909 <m_type_map>: New member.
8910 (struct signatured_type) <type>: Remove.
8911 * dwarf2/read.c
8912 (dwarf2_per_objfile::get_type_for_signatured_type,
8913 dwarf2_per_objfile::set_type_for_signatured_type): New.
8914 (get_signatured_type): Use new methods.
8915
8916 2020-05-27 Tom Tromey <tom@tromey.com>
8917 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8920 (struct dwarf2_per_objfile) <type_units>: New member.
8921 <get_type_unit_group_unshareable>: New method.
8922 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8923 num_symtabs, symtabs>: Remove; move to
8924 type_unit_group_unshareable.
8925 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8926 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8927 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8928
8929 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8930
8931 * dwarf2/read.h (struct dwarf2_per_cu_data):
8932 <dwarf2_per_objfile>: Remove.
8933 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8934 dwarf2_per_objfile.
8935 (create_signatured_type_table_from_index): Likewise.
8936 (create_signatured_type_table_from_debug_names): Likewise.
8937 (create_debug_type_hash_table): Likewise.
8938 (fill_in_sig_entry_from_dwo_entry): Likewise.
8939 (create_type_unit_group): Likewise.
8940 (read_comp_units_from_section): Likewise.
8941 (create_cus_hash_table): Likewise.
8942
8943 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8944
8945 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8946 dwarf2_per_cu_data::dwarf2_per_objfile.
8947 (compute_compunit_symtab_includes): Likewise.
8948 (dwarf2_cu::start_symtab): Likewise.
8949
8950 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8951
8952 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8953 parameter.
8954 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8955 (read_namespace_alias): Update.
8956 (lookup_die_type): Update.
8957 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8958 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8959 Update.
8960 (disassemble_dwarf_expression): Update.
8961
8962 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * dwarf2/read.h (struct dwarf2_queue_item): Add
8965 dwarf2_per_objfile parameter, assign new parameter.
8966 <per_objfile>: New field.
8967 * dwarf2/read.c (free_one_cached_comp_unit): Add
8968 dwarf2_per_objfile parameter.
8969 (queue_comp_unit): Likewise.
8970 (dw2_do_instantiate_symtab): Update.
8971 (process_psymtab_comp_unit): Update.
8972 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8973 (process_imported_unit_die): Update.
8974 (queue_and_load_dwo_tu): Update.
8975 (follow_die_offset): Update.
8976 (follow_die_sig_1): Update.
8977
8978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8981 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8982 (read_call_site_scope): Assign per_objfile.
8983 (dwarf2_per_cu_data::objfile): Remove.
8984 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8985 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8986 dwarf2_per_objfile parameter.
8987 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8988 dwarf2_per_objfile parameter.
8989 (dwarf_expr_reg_to_entry_parameter): Add output
8990 dwarf2_per_objfile parameter.
8991 (locexpr_get_frame_base): Update.
8992 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8993 <push_dwarf_reg_entry_value>: Update.
8994 <call_site_to_target_addr>: Update.
8995 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8996 parameter.
8997 (value_of_dwarf_reg_entry): Update.
8998 (rw_pieced_value): Update.
8999 (indirect_synthetic_pointer): Update.
9000 (dwarf2_evaluate_property): Update.
9001 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9002 parameter.
9003 (locexpr_read_variable): Update.
9004 (locexpr_get_symbol_read_needs): Update.
9005 (loclist_read_variable): Update.
9006
9007 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9008
9009 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9010 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9011 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9012 parameter.
9013 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9014 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9015 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9016 parameter.
9017 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9018 sect_variable_value): Add dwarf2_per_objfile parameter.
9019 (class dwarf_evaluate_loc_desc) <dwarf_call,
9020 dwarf_variable_value>: Update.
9021 (fetch_const_value_from_synthetic_pointer): Add
9022 dwarf2_per_objfile parameter.
9023 (fetch_const_value_from_synthetic_pointer): Update.
9024 (coerced_pieced_ref): Update.
9025 (class symbol_needs_eval_context) <dwarf_call,
9026 dwarf_variable_value>: Update.
9027 (dwarf2_compile_expr_to_ax): Update.
9028
9029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9032 parameter.
9033 (dwarf2_evaluate_loc_desc_full): Update.
9034
9035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9038 parameter.
9039 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9040 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9041 dwarf2_per_objfile parameter.
9042 (decode_debug_loc_dwo_addresses): Likewise.
9043 (dwarf2_find_location_expression): Update.
9044 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9045 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9046 parameter.
9047 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9048 parameter.
9049 (locexpr_describe_location_1): Likewise.
9050 (locexpr_describe_location): Update.
9051
9052 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9055 Remove.
9056 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9057 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9058 (dwarf2_compile_property_to_c): Update.
9059 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9060 use text offset from objfile.
9061 (locexpr_tracepoint_var_ref): Update.
9062 (locexpr_generate_c_location): Update.
9063 (loclist_describe_location): Update.
9064 (loclist_tracepoint_var_ref): Update.
9065 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9066 dwarf2_per_objfile parameter.
9067 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9068 use text offset from objfile.
9069 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9070
9071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * dwarf2/expr.h (struct dwarf_expr_context)
9074 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9075 <offset>: Remove.
9076 <per_objfile>: New member.
9077 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9078 dwarf2_per_objfile parameter. Don't set offset, set
9079 per_objfile.
9080 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9081 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9082 a dwarf2_per_objfile object instead of an offset.
9083 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9084 constructor.
9085 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9086 to dwarf2_expr_executor constructor. Don't set offset.
9087 (dwarf2_fetch_cfa_info): Update.
9088 (struct dwarf2_frame_cache) <text_offset>: Remove.
9089 <per_objfile>: New field.
9090 (dwarf2_frame_cache): Update.
9091 (dwarf2_frame_prev_register): Update.
9092 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9093 <dwarf_evaluate_loc_desc>: Add constructor.
9094 (dwarf2_evaluate_loc_desc_full): Update.
9095 (dwarf2_locexpr_baton_eval): Update.
9096 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9097 Add constructor.
9098 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9099
9100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9101
9102 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9103 addr_sized_int_type>: Move to dwarf2_cu.
9104 <int_type>: Move to dwarf2_per_objfile.
9105 (struct dwarf2_per_objfile) <int_type>: Move here.
9106 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9107 addr_sized_int_type>: Move here.
9108 (read_func_scope): Update.
9109 (read_array_type): Update.
9110 (read_tag_string_type): Update.
9111 (attr_to_dynamic_prop): Update.
9112 (dwarf2_per_cu_data::int_type): Rename to...
9113 (dwarf2_per_objfile::int_type): ... this.
9114 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9115 (dwarf2_cu::addr_sized_int_type): ... this.
9116 (read_subrange_type): Update.
9117 (dwarf2_per_cu_data::addr_type): Rename to...
9118 (dwarf2_cu::addr_type): ... this.
9119 (set_die_type): Update.
9120
9121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9124 data through per_cu->cu.
9125
9126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9129 dwarf2_per_cu_data parameter fo dwarf2_cu.
9130 (lookup_dwo_type_unit): Likewise.
9131 (read_cutu_die_from_dwo): Likewise.
9132 (lookup_dwo_unit): Likewise.
9133 (open_and_init_dwo_file): Likewise.
9134 (lookup_dwo_cutu): Likewise.
9135 (lookup_dwo_comp_unit): Likewise.
9136 (lookup_dwo_type_unit): Likewise.
9137 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9138 (cutu_reader::cutu_reader): Update.
9139
9140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9143 parameter.
9144 (process_full_type_unit): Likewise.
9145 (process_queue): Update.
9146
9147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c (recursively_compute_inclusions): Add
9150 dwarf2_per_objfile parameter.
9151 (compute_compunit_symtab_includes): Likewise.
9152 (process_cu_includes): Update.
9153
9154 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9157 parameter.
9158 (create_type_unit_group): Update.
9159 (process_psymtab_comp_unit_reader): Update.
9160 (build_type_psymtabs_reader): Update.
9161
9162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9165 object through m_this_cu->cu.
9166
9167 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9168
9169 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9170 the info parameter.
9171 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9172
9173 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9174
9175 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9176 per_objfile parameter.
9177 (load_full_type_unit): Add per_objfile parameter.
9178 (read_signatured_type): Likewise.
9179 (load_full_comp_unit): Likewise.
9180 (load_cu): Likewise.
9181 (dw2_do_instantiate_symtab): Likewise.
9182 (dw2_get_file_names): Likewise.
9183 (dw2_map_symtabs_matching_filename): Update.
9184 (dw_expand_symtabs_matching_file_matcher): Update.
9185 (dw2_map_symbol_filenames): Update.
9186 (process_psymtab_comp_unit): Add per_objfile parameter.
9187 (build_type_psymtabs_1): Update.
9188 (process_skeletonless_type_unit): Update.
9189 (dwarf2_build_psymtabs_hard): Update.
9190 (load_partial_comp_unit): Add per_objfile parameter.
9191 (scan_partial_symbols): Update.
9192 (load_full_comp_unit): Add per_objfile parameter.
9193 (process_imported_unit_die): Update.
9194 (create_cus_hash_table): Update.
9195 (find_partial_die): Update.
9196 (dwarf2_read_addr_index): Update.
9197 (follow_die_offset): Update.
9198 (dwarf2_fetch_die_loc_sect_off): Update.
9199 (dwarf2_fetch_constant_bytes): Update.
9200 (dwarf2_fetch_die_type_sect_off): Update.
9201 (follow_die_sig_1): Update.
9202 (load_full_type_unit): Add per_objfile parameter.
9203 (read_signatured_type): Likewise.
9204
9205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9208 of objfile_name.
9209
9210 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9211
9212 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9213 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9214 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9215 field.
9216 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9217 (create_cus_from_index): Update.
9218 (dwarf2_read_gdb_index): Update.
9219 (create_cus_from_debug_names): Update.
9220 (dwarf2_read_debug_names): Update.
9221 (get_abbrev_section_for_cu): Update.
9222 (create_all_comp_units): Update.
9223 (read_attribute_value): Update.
9224 (get_debug_line_section): Update.
9225 * dwarf2/index-cache.c (index_cache::store): Update.
9226 * dwarf2/index-write.c (save_gdb_index_command): Update.
9227 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9228
9229 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9232 member.
9233 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9234 dwarf2_per_cu_data::per_bfd.
9235 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9236 (create_type_unit_group): Likewise.
9237 (queue_comp_unit): Remove reference to
9238 per_cu->dwarf2_per_objfile.
9239 (maybe_queue_comp_unit): Likewise.
9240 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9241 (create_cus_hash_table): Assign new field.
9242
9243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * dwarf2/read.c: Replace
9246 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9247 dwarf2_cu->per_objfile throughout.
9248
9249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9252 parameter, don't use per_cu->dwarf2_per_objfile.
9253 (dw2_instantiate_symtab): Likewise.
9254 (dw2_find_last_source_symtab): Update.
9255 (dw2_map_expand_apply): Update.
9256 (dw2_lookup_symbol): Update.
9257 (dw2_expand_symtabs_for_function): Update.
9258 (dw2_expand_all_symtabs): Update.
9259 (dw2_expand_symtabs_with_fullname): Update.
9260 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9261 don't use per_cu->dwarf2_per_objfile.
9262 (dw2_expand_marked_cus): Update.
9263 (dw2_find_pc_sect_compunit_symtab): Update.
9264 (dw2_debug_names_lookup_symbol): Update.
9265 (dw2_debug_names_expand_symtabs_for_function): Update.
9266 (dw2_debug_names_map_matching_symbols): Update.
9267 (dwarf2_psymtab::expand_psymtab): Update.
9268
9269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9272 <per_objfile>: New member.
9273 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9274 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9275 call to dwarf2_cu.
9276 (cutu_reader::cutu_reader): Update.
9277 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9278
9279 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9280
9281 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9282 struct dwarf2_per_objfile.
9283 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9284 dwarf2_per_bfd.
9285 * dwarf2/read.c (set_die_type): Update.
9286 (get_die_type_at_offset): Update.
9287
9288 2020-05-27 Tom Tromey <tom@tromey.com>
9289 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9292 method.
9293 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9294 get_symtab, set_symtab>: New methods.
9295 <m_symtabs>: New field.
9296 (struct dwarf2_psymtab): Derive from partial_symtab.
9297 <readin_p, get_compunit_symtab>: Declare methods.
9298 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9299 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9300 New methods.
9301 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9302 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9303 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9304 (dw2_symtab_iter_next, dw2_print_stats)
9305 (dw2_expand_symtabs_with_fullname)
9306 (dw2_expand_symtabs_matching_one)
9307 (dw_expand_symtabs_matching_file_matcher)
9308 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9309 (dw2_debug_names_iterator::next)
9310 (dw2_debug_names_map_matching_symbols)
9311 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9312 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9313 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9314 New methods.
9315 (get_compunit_symtab, process_full_comp_unit)
9316 (process_full_type_unit): Update.
9317 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9318
9319 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9320
9321 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9322 then introduce a new dwarf2_per_objfile type.
9323 <read_line_string>: Move to the new dwarf2_per_objfile type.
9324 <objfile>: Likewise.
9325 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9326 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9327 dwarf2_per_objfile->per_bfd.
9328 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9329 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9330 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9331 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9332 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9333 (dwarf2_per_objfile::locate_sections): Rename to...
9334 (dwarf2_per_bfd::locate_sections): ... this.
9335 (dwarf2_per_objfile::get_cutu): Rename to...
9336 (dwarf2_per_bfd::get_cutu): ... this.
9337 (dwarf2_per_objfile::get_cu): Rename to...
9338 (dwarf2_per_bfd::get_cu): ... this.
9339 (dwarf2_per_objfile::get_tu): Rename to...
9340 (dwarf2_per_bfd::get_tu): ... this.
9341 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9342 (dwarf2_per_bfd::allocate_per_cu): ... this.
9343 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9344 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9345 (get_gdb_index_contents_ftype): Change parameter from
9346 dwarf2_per_objfile to dwarf2_per_bfd.
9347 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9348 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9349
9350 2020-05-27 Tom Tromey <tom@tromey.com>
9351 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9354 (allocate_piece_closure): Set "per_objfile" member.
9355 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9356 (locexpr_describe_location, loclist_describe_location): Use new
9357 member.
9358 * dwarf2/read.c (read_call_site_scope)
9359 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9360 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9361 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9362 handle_data_member_location): Set per_objfile member.
9363 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9364 member.
9365 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9366
9367 2020-05-27 Tom Tromey <tom@tromey.com>
9368
9369 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9370 allocate_signatured_type>: Declare new methods.
9371 <m_num_psymtabs>: New member.
9372 (struct dwarf2_per_cu_data) <index>: New member.
9373 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9374 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9375 (create_cu_from_index_list): Use allocate_per_cu.
9376 (create_signatured_type_table_from_index)
9377 (create_signatured_type_table_from_debug_names)
9378 (create_debug_type_hash_table, add_type_unit)
9379 (read_comp_units_from_section): Use allocate_signatured_type.
9380
9381 2020-05-27 Tom Tromey <tom@tromey.com>
9382
9383 * psymtab.c (partial_map_expand_apply)
9384 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9385 (psym_lookup_global_symbol_language)
9386 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9387 (psym_print_stats, psym_expand_symtabs_for_function)
9388 (psym_map_symbol_filenames, psym_map_matching_symbols)
9389 (psym_expand_symtabs_matching)
9390 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9391 (maintenance_check_psymtabs): Update.
9392 * psympriv.h (struct partial_symtab) <readin_p,
9393 get_compunit_symtab>: Add objfile parameter.
9394 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9395 Likewise.
9396 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9397 get_compunit_symtab>: Likewise.
9398 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9399
9400 2020-05-27 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9403 member.
9404 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9405 (create_cu_from_index_list)
9406 (create_signatured_type_table_from_index)
9407 (create_signatured_type_table_from_debug_names)
9408 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9409 (dwarf2_create_include_psymtab)
9410 (create_debug_type_hash_table, add_type_unit)
9411 (create_type_unit_group, read_comp_units_from_section)
9412 (dwarf2_compute_name, create_cus_hash_table)
9413 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9414 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9415 obstack.
9416 (dw2_get_real_path): Likewise. Change argument to
9417 dwarf2_per_objfile.
9418
9419 2020-05-27 Luis Machado <luis.machado@linaro.org>
9420
9421 PR tdep/26000
9422 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9423 for ldrd (immediate).
9424
9425 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9426
9427 * command.h: Add comment giving the name of class_tui.
9428 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9429 create the fake command for the help for class_tui.
9430
9431 2020-05-26 Tom Tromey <tromey@adacore.com>
9432
9433 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9434 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9435 (val_atr): New function.
9436 (value_val_atr): Use it.
9437 * ada-valprint.c (print_optional_low_bound): Change low bound
9438 handling for enums.
9439 (val_print_packed_array_elements): Don't call discrete_position.
9440 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9441 discrete_position for enum types.
9442 * language.c (default_print_array_index): Change type.
9443 * language.h (struct language_defn) <la_print_array_index>: Add
9444 index_type parameter, change type of index_value.
9445 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9446 (default_print_array_index): Update.
9447 * valprint.c (maybe_print_array_index): Don't call
9448 value_from_longest. Update.
9449 (value_print_array_elements): Don't call discrete_position.
9450
9451 2020-05-26 Tom Tromey <tromey@adacore.com>
9452
9453 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9454 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9455
9456 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9457
9458 PR gdb/13519
9459 * avr-tdep.c (avr_integer_to_address): Return data or code
9460 address accordingly to the second 'type' argument of the
9461 function.
9462
9463 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9464
9465 * infcmd.c, inferior.h: (construct_inferior_arguments):
9466 Moved function from here to gdbsupport/common-inferior.{h,cc}
9467
9468 2020-05-23 Tom Tromey <tom@tromey.com>
9469
9470 Revert commit eca1f90c:
9471 * NEWS: Remove entry for completion styling.
9472 * completer.c (_rl_completion_prefix_display_length): Move
9473 declaration later.
9474 (gdb_fnprint): Revert.
9475 (gdb_display_match_list_1): Likewise.
9476 * cli/cli-style.c (completion_prefix_style)
9477 (completion_difference_style, completion_suffix_style): Remove.
9478 (_initialize_cli_style): Revert.
9479 * cli/cli-style.h (completion_prefix_style)
9480 (completion_difference_style, completion_suffix_style): Don't
9481 declare.
9482
9483 2020-05-24 Pedro Alves <palves@redhat.com>
9484
9485 * symtab.c (completion_list_add_name): Return boolean indication
9486 of whether the symbol matched.
9487 (completion_list_add_symbol): Don't try to remove C++ aliases if
9488 the symbol didn't match in the first place.
9489 * symtab.h (completion_list_add_name): Return bool.
9490
9491 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9492
9493 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9494 type::field.
9495
9496 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9497
9498 GDB 9.2 released.
9499
9500 2020-05-23 Tom Tromey <tom@tromey.com>
9501
9502 * NEWS: Add entry for completion styling.
9503 * completer.c (_rl_completion_prefix_display_length): Move
9504 declaration earlier.
9505 (gdb_fnprint): Use completion_style.
9506 (gdb_display_match_list_1): Likewise.
9507 * cli/cli-style.c (completion_prefix_style)
9508 (completion_difference_style, completion_suffix_style): New
9509 globals.
9510 (_initialize_cli_style): Register new globals.
9511 * cli/cli-style.h (completion_prefix_style)
9512 (completion_difference_style, completion_suffix_style): Declare.
9513
9514 2020-05-23 Pedro Alves <palves@redhat.com>
9515
9516 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9517 (parse_escape): Use ISDIGIT instead of isdigit.
9518 (puts_debug): Use gdb_isprint instead of isprint.
9519 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9520 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9521 ISSPACE instead of isspace.
9522 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9523 instead of isspace.
9524 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9525 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9526 instead of isxdigit and ISDIGIT instead of isdigit.
9527
9528 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * gdbtypes.h (struct type) <field>: New method.
9531 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9532 or type::field.
9533
9534 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9537 (TYPE_FIELDS): Use type::fields. Change all call sites that
9538 modify the propery to use type::set_fields instead.
9539
9540 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9543 type::num_fields instead.
9544
9545 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9548 methods.
9549 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9550 that modify the number of fields to use type::set_num_fields
9551 instead.
9552
9553 2020-05-22 Tom Tromey <tromey@adacore.com>
9554
9555 * compile/compile-object-load.h (munmap_list_free): Don't
9556 declare.
9557
9558 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9559
9560 * annotate.c (annotate_source_line): Update return type, add call
9561 to update current symtab and line.
9562 * annotate.h (annotate_source_line): Update return type, and
9563 extend header comment.
9564 * source.c (info_line_command): Check annotation_level before
9565 calling annotate_source_line.
9566 * stack.c (print_frame_info): If calling annotate_source_line
9567 returns true, then don't print any other source line information.
9568
9569 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9572
9573 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9574
9575 * coffread.c (patch_type): Remove NULL check before xfree.
9576 * corefile.c (set_gnutarget): Likewise.
9577 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9578 * exec.c (build_section_table): Likewise.
9579 * remote.c (remote_target::pass_signals): Likewise.
9580 * utils.c (n_spaces): Likewise.
9581 * cli/cli-script.c (document_command): Likewise.
9582 * i386-windows-tdep.c (core_process_module_section): Likewise.
9583 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9584
9585 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9586
9587 * symfile.c (reread_symbols): Clear objfile's section_offsets
9588 vector and section indices, re-compute them by calling
9589 sym_offsets.
9590
9591 2020-05-20 Tom Tromey <tromey@adacore.com>
9592
9593 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9594 (desc_one_bound, desc_index_type): Compute field name.
9595
9596 2020-05-20 Tom de Vries <tdevries@suse.de>
9597
9598 PR symtab/25833
9599 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9600
9601 2020-05-20 Alan Modra <amodra@gmail.com>
9602
9603 PR 25993
9604 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9605 bfd_set_filename.
9606 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9607 passed to bfd_set_filename.
9608 * symfile-mem.c (add_vsyscall_page): Likewise for string
9609 passed to symbol_file_add_from_memory.
9610 (symbol_file_add_from_memory): Make name param a const char* and
9611 don't strdup.
9612
9613 2020-05-20 Alan Modra <amodra@gmail.com>
9614
9615 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9616 rather than accessing bfd->filename directly.
9617 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9618 and use bfd_section_name.
9619 * dwarf2/frame.c (decode_frame_entry): Likewise.
9620 * exec.c (exec_set_section_address): Likewise.
9621 * solib-aix.c (solib_aix_bfd_open): Likewise.
9622 * stap-probe.c (get_stap_base_address): Likewise.
9623 * symfile.c (reread_symbols): Likewise.
9624
9625 2020-05-19 Tom Tromey <tromey@adacore.com>
9626
9627 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9628
9629 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9632
9633 2020-05-19 Pedro Alves <palves@redhat.com>
9634
9635 * NEWS (set exec-file-mismatch): Adjust entry.
9636 * exec.c: Include "build-id.h".
9637 (validate_exec_file): Try to match build IDs instead of filenames.
9638 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9639 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9640 and pass down 'warn_if_slow'.
9641 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9642 gdb_bfd_open_closure to pass it down.
9643 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9644
9645 2020-05-19 Pedro Alves <palves@redhat.com>
9646
9647 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9648 * target.c (target_fileio_open_1): Rename to target_fileio_open
9649 and make extern. Use bool.
9650 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9651 (target_fileio_read_alloc_1): Adjust.
9652 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9653 (target_fileio_open_warn_if_slow): Delete declaration.
9654
9655 2020-05-19 Pedro Alves <palves@redhat.com>
9656
9657 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9658 Adjust all callers.
9659
9660 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9661
9662 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9663 whether disp is negative.
9664
9665 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * symfile.h (struct symfile_segment_data)
9668 <~symfile_segment_data>: Remove.
9669 <segment_info>: Change to std::vector.
9670 * symfile.c (default_symfile_segments): Update.
9671 * elfread.c (elf_symfile_segments): Update.
9672
9673 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9676 <segments>: New.
9677 <segment_bases, segment_sizes>: Remove.
9678 * symfile.c (default_symfile_segments): Update.
9679 * elfread.c (elf_symfile_segments): Update.
9680 * remote.c (remote_target::get_offsets): Update.
9681 * solib-target.c (solib_target_relocate_section_addresses):
9682 Update.
9683
9684 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * symfile.h (struct symfile_segment_data): Initialize fields.
9687 <~symfile_segment_data>: Add.
9688 (symfile_segment_data_up): New.
9689 (struct sym_fns) <sym_segments>: Return a
9690 symfile_segment_data_up.
9691 (default_symfile_segments): Return a symfile_segment_data_up.
9692 (free_symfile_segment_data): Remove.
9693 (get_symfile_segment_data): Return a symfile_segment_data_up.
9694 * symfile.c (default_symfile_segments): Likewise.
9695 (get_symfile_segment_data): Likewise.
9696 (free_symfile_segment_data): Remove.
9697 (symfile_find_segment_sections): Update.
9698 * elfread.c (elf_symfile_segments): Return a
9699 symfile_segment_data_up.
9700 * remote.c (remote_target::get_offsets): Update.
9701 * solib-target.c (solib_target_relocate_section_addresses):
9702 Update.
9703 * symfile-debug.c (debug_sym_segments): Return a
9704 symfile_segment_data_up.
9705
9706 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9707
9708 PR build/25981
9709 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9710 Hardcode register numbers.
9711
9712 PR build/25981
9713 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9714 procfs_find_LDT_entry): Remove.
9715 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9716 procfs_find_LDT_entry): Remove.
9717 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9718 Remove.
9719
9720 2020-05-17 Pedro Alves <palves@redhat.com>
9721 Andrew Burgess <andrew.burgess@embecosm.com>
9722 Keno Fischer <keno@juliacomputing.com>
9723
9724 PR gdb/25741
9725 * breakpoint.c (build_target_condition_list): Update comments.
9726 (build_target_command_list): Update comments and skip matching
9727 locations.
9728 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9729 a separate function. Simplify "set breakpoint auto-hw off"
9730 handling.
9731 (insert_breakpoints): Update comment.
9732 (tracepoint_locations_match): New parameter. For breakpoints,
9733 compare location types too, if the caller wants to.
9734 (handle_automatic_hardware_breakpoints): New functions.
9735 (bp_location_is_less_than): Also sort by location type and
9736 hardware breakpoint length.
9737 (update_global_location_list): Handle "set breakpoint auto-hw on"
9738 here.
9739 (update_breakpoint_locations): Ask breakpoint_locations_match to
9740 ignore location types.
9741
9742 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9745 type::name instead.
9746
9747 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * gdbtypes.h (struct type) <name, set_name>: New methods.
9750 (TYPE_CODE): Use type::name. Change all call sites used to set
9751 the name to use type::set_name instead.
9752
9753 2020-05-16 Tom Tromey <tom@tromey.com>
9754
9755 * top.c (quit_force): Update.
9756 * infrun.c (handle_no_resumed): Update.
9757 * top.h (all_uis): New function.
9758 (ALL_UIS): Remove.
9759
9760 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9763
9764 2020-05-16 Pedro Alves <palves@redhat.com>
9765
9766 * ia64-linux-nat.c
9767 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9768 Declare method.
9769 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9770
9771 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9774 (sparc64_adi_info): Likewise.
9775
9776 2020-05-15 Tom Tromey <tom@tromey.com>
9777
9778 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9779 block_objfile.
9780 (lookup_objfile_from_block): Remove.
9781 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9782 (lookup_global_symbol): Use block_objfile.
9783 * symtab.h (lookup_objfile_from_block): Don't declare.
9784 * printcmd.c (clear_dangling_display_expressions): Use
9785 block_objfile.
9786 * parse.c (operator_check_standard): Use block_objfile.
9787
9788 2020-05-15 Tom Tromey <tom@tromey.com>
9789
9790 * language.c (language_alloc_type_symbol): Set
9791 SYMBOL_SECTION.
9792 * symtab.c (initialize_objfile_symbol): Remove.
9793 (allocate_symbol): Remove.
9794 (allocate_template_symbol): Remove.
9795 * dwarf2/read.c (fixup_go_packaging): Use "new".
9796 (new_symbol): Use "new".
9797 (read_variable): Don't call initialize_objfile_symbol. Use
9798 "new".
9799 (read_func_scope): Use "new".
9800 * xcoffread.c (process_xcoff_symbol): Don't call
9801 initialize_objfile_symbol.
9802 (SYMBOL_DUP): Remove.
9803 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9804 "new".
9805 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9806 (allocate_template_symbol): Don't declare.
9807 (struct symbol): Add copy constructor. Change defaults.
9808 * jit.c (finalize_symtab): Use "new".
9809 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9810 Use "new".
9811 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9812 (common_block_end): Use "new".
9813 * mdebugread.c (parse_symbol): Use "new".
9814 (new_symbol): Likewise.
9815
9816 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9817
9818 * NEWS: Mention changes to help and apropos.
9819
9820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9821
9822 * command.h (enum command_class): Improve comments, document
9823 that class_alias is for user-defined aliases, give the class
9824 name for each class, remove unused class_xdb.
9825 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9826 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9827 by a precise class.
9828 * infcmd.c (_initialize_infcmd): Likewise.
9829 * reverse.c (_initialize_reverse): Likewise.
9830 * stack.c (_initialize_stack): Likewise.
9831 * symfile.c (_initialize_symfile): Likewise.
9832 * tracepoint.c (_initialize_tracepoint): Likewise.
9833
9834 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9835
9836 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9837 when their aliased command is traversed.
9838 (help_cmd): Add fput_command_names_styled call to
9839 output command name and aliases when command has an alias.
9840
9841 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9842
9843 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9844 * cli/cli-decode.c (help_cmd_list): Declare as static,
9845 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9846 a command together with the command.
9847 (fput_command_name_styled, fput_command_names_styled): New functions.
9848 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9849 fput_command_name_styled.
9850 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9851 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9852
9853 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9854
9855 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9856 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9857 * command.h (cmd_show_list): Likewise.
9858 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9859 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9860
9861 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9862
9863 * unittests/command-def-selftests.c (traverse_command_structure):
9864 Verify all commands of a list have the same prefix command and
9865 that only the top cmdlist commands have a null prefix.
9866
9867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868
9869 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9870 as prefix, not one of its aliases.
9871 (set_cmd_prefix): Remove.
9872 (do_add_cmd): Centralize the setting of the prefix of a command, when
9873 command is defined after its full chain of prefix commands.
9874 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9875 (add_setshow_cmd_full): Likewise.
9876 (update_prefix_field_of_prefixed_commands): New function.
9877 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9878 update_prefix_field_of_prefixed_commands.
9879 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9880 addresses of remote_set_cmdlist and remote_show_cmdlist given
9881 as argument, not the address of an argument.
9882 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9883 * gdb/remote.c (_initialize_remote): Likewise.
9884
9885 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9886
9887 * cli/cli-cmds.c (alias_command): Check for an existing alias
9888 using lookup_cmd_composition, as valid_command_p is too strict
9889 and forbids aliases that are the prefix of an existing alias
9890 or command.
9891 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9892 command is properly recognised as a valid command.
9893
9894 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9895
9896 * unittests/help-doc-selftests.c: Rename to
9897 unittests/command-def-selftests.c
9898 * unittests/command-def-selftests.c (help_doc_tests): Update some
9899 comments.
9900 (command_structure_tests, traverse_command_structure): New namespace
9901 and function.
9902 (command_structure_invariants_tests): New function.
9903 (_initialize_command_def_selftests) Renamed from
9904 _initialize_help_doc_selftests, register command_structure_invariants
9905 selftest.
9906
9907 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9908
9909 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9910 an alias of 'show'.
9911
9912 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9913
9914 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9915 ada_is_fixed_point_type. Update all callers.
9916 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9917 all callers.
9918 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9919 Update all callers.
9920 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9921 print_fixed_point_type. Update all callers.
9922 * ada-valprint.c (ada_value_print_num): Replace call to
9923 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9924
9925 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9926
9927 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9928 processors.
9929 (cpu_supports_bts): Add CV_AMD case.
9930
9931 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9932 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * infrun.c (stop_all_threads): Collect multiple wait events at
9935 each pass.
9936
9937 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9940 type::code instead.
9941
9942 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * gdbtypes.h (struct type) <code, set_code>: New methods.
9945 (TYPE_CODE): Use type::code. Change all call sites used to set
9946 the code to use type::set_code instead.
9947
9948 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9949 Tom de Vries <tdevries@suse.de>
9950 Pedro Alves <palves@redhat.com>
9951
9952 PR threads/25478
9953 * infrun.c (stop_all_threads): Do NOT ignore
9954 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9955 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9956 received.
9957 (handle_no_resumed): Remove code handling a live inferior with no
9958 threads.
9959 * remote.c (has_single_non_exited_thread): New.
9960 (remote_target::update_thread_list): Do not delete a thread if is
9961 the last thread of the process.
9962 * thread.c (thread_select): Call delete_exited_threads instead of
9963 prune_threads.
9964
9965 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9966
9967 * infrun.c (stop_all_threads): Enable/disable thread events of all
9968 targets. Move a debug message denoting the end of the function
9969 into the SCOPED_EXIT block.
9970
9971 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9972
9973 * process-stratum-target.h: Include <set>.
9974 (all_non_exited_process_targets, switch_to_target_no_thread): New
9975 function declarations.
9976 * process-stratum-target.c (all_non_exited_process_targets)
9977 (switch_to_target_no_thread): New function implementations.
9978
9979 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9980
9981 * infrun.c (handle_inferior_event): Extract out a piece of code
9982 into...
9983 (mark_non_executing_threads): ...this new function.
9984
9985 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9986
9987 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9988 use.
9989
9990 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9991
9992 * regcache.c (regcache_read_pc_protected): New function
9993 implementation that returns 0 if the PC cannot read via
9994 'regcache_read_pc'.
9995 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9996 instead of 'regcache_read_pc'.
9997 (keep_going_pass_signal): Ditto.
9998
9999 2020-05-13 Tom Tromey <tromey@adacore.com>
10000
10001 * ada-lang.c (align_value): Remove.
10002 (ada_template_to_fixed_record_type_1): Use align_up.
10003
10004 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10005
10006 * async-event.c: Update the copyright year.
10007 * async-event.h: Update the copyright year.
10008
10009 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * objfiles.h (is_addr_in_objfile,
10012 shared_objfile_contains_address_p): Return bool.
10013 * objfile.c (is_addr_in_objfile,
10014 shared_objfile_contains_address_p): Return bool.
10015
10016 2020-05-11 Tom Tromey <tromey@adacore.com>
10017
10018 * cli/cli-cmds.c (info_command): Restore.
10019 (_initialize_cli_cmds): Use add_prefix_command for "info".
10020 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10021
10022 2020-05-11 Tom Tromey <tromey@adacore.com>
10023
10024 * ada-lang.c (ada_value_primitive_field): Now public.
10025 * ada-lang.h (ada_value_primitive_field): Declare.
10026 * ada-valprint.c (print_field_values): Use
10027 ada_value_primitive_field for wrapper fields.
10028
10029 2020-05-11 Tom de Vries <tdevries@suse.de>
10030
10031 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10032 MODULE_DOMAIN.
10033
10034 2020-05-11 Tom de Vries <tdevries@suse.de>
10035
10036 PR symtab/25941
10037 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10038 with length 0, if not gdb-produced.
10039 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10040
10041 2020-05-09 Tom de Vries <tdevries@suse.de>
10042
10043 PR gdb/25955
10044 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10045 calculation.
10046
10047 2020-05-09 Tom Tromey <tom@tromey.com>
10048
10049 * top.c (server_command): Now bool.
10050 * top.h (server_command): Now bool.
10051
10052 2020-05-08 Tom Tromey <tromey@adacore.com>
10053
10054 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10055 already being processed.
10056
10057 2020-05-08 Tom Tromey <tom@tromey.com>
10058
10059 * printcmd.c (struct display) <next>: Remove.
10060 <display>: New constructor.
10061 <exp_string>: Now a std::string.
10062 <enabled_p>: Now a bool.
10063 (display_number): Move definition earlier.
10064 (displays): Rename from display_chain. Now a std::vector.
10065 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10066 (display_command): Update.
10067 (do_one_display, disable_display)
10068 (enable_disable_display_command, do_enable_disable_display):
10069 Update.
10070 (free_display): Remove.
10071 (clear_displays): Rewrite.
10072 (delete_display): Update.
10073 (map_display_numbers): Use function_view. Remove "data"
10074 parameter. Update.
10075 (do_delete_display): Remove.
10076 (undisplay_command): Update.
10077 (do_one_display, do_displays, disable_display)
10078 (info_display_command): Update.
10079 (do_enable_disable_display): Remove.
10080 (enable_disable_display_command)
10081 (clear_dangling_display_expressions): Update.
10082
10083 2020-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * symtab.c (set_symbol_cache_size)
10086 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10087 (maintenance_print_symbol_cache_statistics): Update.
10088 * symmisc.c (print_symbol_bcache_statistics)
10089 (print_objfile_statistics, maintenance_print_objfiles)
10090 (maintenance_info_symtabs, maintenance_check_symtabs)
10091 (maintenance_expand_symtabs, maintenance_info_line_tables):
10092 Update.
10093 * symfile-debug.c (set_debug_symfile): Update.
10094 * source.c (forget_cached_source_info): Update.
10095 * python/python.c (gdbpy_progspaces): Update.
10096 * psymtab.c (maintenance_info_psymtabs): Update.
10097 * probe.c (parse_probes): Update.
10098 * linespec.c (iterate_over_all_matching_symtabs)
10099 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10100 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10101 * exec.c (exec_target::close): Update.
10102 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10103 * breakpoint.c (print_one_breakpoint_location)
10104 (create_longjmp_master_breakpoint)
10105 (create_std_terminate_master_breakpoint): Update.
10106 * progspace.c (program_spaces): Now a std::vector.
10107 (maybe_new_address_space): Update.
10108 (add_program_space): Remove.
10109 (program_space::program_space): Update.
10110 (remove_program_space): Update.
10111 (number_of_program_spaces): Remove.
10112 (print_program_space, update_address_spaces): Update.
10113 * progspace.h (program_spaces): Change type.
10114 (ALL_PSPACES): Remove.
10115 (number_of_program_spaces): Don't declare.
10116 (struct program_space) <next>: Remove.
10117
10118 2020-05-08 Tom Tromey <tom@tromey.com>
10119
10120 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10121 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10122 (enable_break): Update.
10123 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10124 (frv_fdpic_find_canonical_descriptor): Update.
10125 (frv_fetch_objfile_link_map): Update.
10126 * progspace.c (program_space::free_all_objfiles): Update.
10127 (program_space::solibs): New method.
10128 * progspace.h (struct program_space) <solibs>: New method.
10129 * solist.h (master_so_list): Don't declare.
10130 (ALL_SO_LIBS): Remove.
10131 * solib.h (so_list_head): Remove.
10132 (update_solib_list): Update comment.
10133 * solib.c (master_so_list): Remove.
10134 (solib_used, update_solib_list, solib_add)
10135 (info_sharedlibrary_command, clear_solib)
10136 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10137
10138 2020-05-08 Tom Tromey <tom@tromey.com>
10139
10140 * extension.c (extension_languages): Now a std::array.
10141 (ALL_EXTENSION_LANGUAGES): Remove.
10142 (get_ext_lang_defn, get_ext_lang_of_file)
10143 (eval_ext_lang_from_control_command): Update.
10144 (finish_ext_lang_initialization)
10145 (auto_load_ext_lang_scripts_for_objfile)
10146 (ext_lang_type_printers::ext_lang_type_printers)
10147 (apply_ext_lang_type_printers)
10148 (ext_lang_type_printers::~ext_lang_type_printers)
10149 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10150 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10151 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10152 (get_matching_xmethod_workers, ext_lang_colorize)
10153 (ext_lang_before_prompt): Update.
10154 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10155
10156 2020-05-08 Tom Tromey <tom@tromey.com>
10157
10158 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10159 overload.
10160 <swap_string, m_string>: Remove.
10161 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10162 Update.
10163 * stabsread.c (define_symbol, read_type): Update.
10164 * linespec.c (find_linespec_symbols): Update.
10165 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10166 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10167 * dbxread.c (read_dbx_symtab): Update.
10168 * cp-support.h (cp_canonicalize_string_full)
10169 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10170 Return unique_xmalloc_ptr.
10171 * cp-support.c (inspect_type): Update.
10172 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10173 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10174 Likewise.
10175 * c-typeprint.c (print_name_maybe_canonical): Update.
10176 * break-catch-throw.c (check_status_exception_catchpoint):
10177 Update.
10178
10179 2020-05-08 Tom de Vries <tdevries@suse.de>
10180
10181 * infrun.c (follow_fork): Copy current_line and current_symtab to
10182 child thread.
10183
10184 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * async-event.c (struct async_signal_handler, struct
10187 async_event_handler): Reformat, remove typedef.
10188
10189 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10192 access thistype->main_type->dyn_prop_list directly.
10193
10194 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10195
10196 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10197 (remove_dyn_prop): Remove. Update all users to use
10198 type::remove_dyn_prop.
10199 * gdbtypes.c (remove_dyn_prop): Rename to...
10200 (type::remove_dyn_prop): ... this.
10201
10202 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10203
10204 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10205 (add_dyn_prop): Remove. Update all users to use
10206 type::add_dyn_prop.
10207 * gdbtypes.c (add_dyn_prop): Rename to...
10208 (type::add_dyn_prop): ... this.
10209
10210 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10213 (get_dyn_prop): Remove. Update all users to use
10214 type::dyn_prop.
10215 * gdbtypes.c (get_dyn_prop): Rename to...
10216 (type::dyn_prop): ... this.
10217
10218 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10219
10220 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10221
10222 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10225 instruction, skip it if it's there.
10226
10227 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10228
10229 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10230
10231 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10232
10233 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10234 * gdbtypes.c (recursive_dump_type): Remove use of
10235 TYPE_INCOMPLETE.
10236
10237 2020-05-03 Tom Tromey <tom@tromey.com>
10238
10239 * breakpoint.c (catch_command, tcatch_command): Remove.
10240 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10241 add_show_prefix_cmd.
10242 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10243 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10244 Remove.
10245 (add_internal_problem_command): Use add_basic_prefix_cmd,
10246 add_show_prefix_cmd.
10247 * mips-tdep.c (set_mipsfpu_command): Remove.
10248 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10249 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10250 (_initialize_index_cache): Use add_basic_prefix_cmd.
10251 * memattr.c (dummy_cmd): Remove.
10252 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10253 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10254 (_initialize_tui_win): Use add_basic_prefix_cmd,
10255 add_show_prefix_cmd.
10256 * cli/cli-logging.c (set_logging_command): Remove.
10257 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10258 add_show_prefix_cmd.
10259 (show_logging_command): Remove.
10260 * target.c (target_command): Remove.
10261 (add_target): Use add_basic_prefix_cmd.
10262
10263 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10264
10265 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10266
10267 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10268
10269 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10270 info_command.
10271
10272 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10273
10274 * nbsd-nat.c (nbsd_enable_proc_events)
10275 (nbsd_nat_target::post_startup_inferior): Add.
10276 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10277 (nbsd_nat_target::update_thread_list): Rewrite.
10278 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10279 "PTRACE_LWP_CREATE".
10280 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10281
10282 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10283
10284 * stack.c (_initialize_stack): Remove duplicated creation
10285 of "frame" command and "f" alias.
10286
10287 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10288
10289 PR gdb/18706
10290 * gdbtypes.c (check_typedef): Calculate size of array of
10291 stubbed type.
10292
10293 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10294
10295 PR gdb/15559
10296 * i386-tdep.c (i386_push_dummy_call): Call
10297 i386_thiscall_push_dummy_call.
10298 (i386_thiscall_push_dummy_call): New function.
10299 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10300 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10301 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10302
10303 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * gdbarch.sh (do_read): Add shellcheck disable directive for
10306 warning SC2162.
10307
10308 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10311 "referenced but not assigned" warning.
10312
10313 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * gdbarch.sh: Remove code that sets fallbackdefault.
10316
10317 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10318
10319 * gdbarch.sh: Use shell operators && and || instead of
10320 -a and -o.
10321
10322 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * gdbarch.sh: Use $(...) instead of `...`.
10325
10326 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * gdbarch.sh: Use double quotes around variables.
10329
10330 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10331
10332 * gdbarch.sh: Use %s with printf, instead of variables in the
10333 format string.
10334
10335 2020-04-29 Tom Tromey <tromey@adacore.com>
10336
10337 PR ada/25875:
10338 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10339 type fields here.
10340 (read_enumeration_type): Call
10341 update_enumeration_type_from_children later. Update comments.
10342 (process_enumeration_scope): Don't create type fields.
10343
10344 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10345
10346 * nbsd-tdep.c: Include "xml-syscall.h".
10347 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10348
10349 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10350
10351 * nbsd-nat.c: Include "sys/wait.h".
10352 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10353 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10354 (nbsd_nat_target::remove_exec_catchpoint)
10355 (nbsd_nat_target::set_syscall_catchpoint): Add.
10356 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10357 (nbsd_nat_target::insert_exec_catchpoint)
10358 (nbsd_nat_target::remove_exec_catchpoint)
10359 (nbsd_nat_target::set_syscall_catchpoint): Add.
10360 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10361 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10362 `nbsd_get_syscall_number'.
10363
10364 2020-04-29 Tom Tromey <tom@tromey.com>
10365
10366 * stack.c (print_block_frame_labels): Remove.
10367
10368 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10369
10370 PR gdb/17320
10371 * ada-valprint.c (val_print_packed_array_elements): Move array
10372 end bracket to new line.
10373 (ada_val_print_string): Remove extra spaces before first array
10374 element.
10375 * c-valprint.c (c_value_print_array): Likewise.
10376 * m2-valprint.c (m2_print_array_contents): Likewise.
10377 (m2_value_print_inner): Likewise.
10378 * p-valprint.c (pascal_value_print_inner): Likewise.
10379 * valprint.c (generic_val_print_array): Likewise.
10380 (value_print_array_elements): Move first array element and array
10381 end bracket to new line.
10382
10383 2020-04-29 Tom de Vries <tdevries@suse.de>
10384
10385 PR symtab/25889
10386 * linespec.c (find_method): Fix ix calculation.
10387
10388 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10389
10390 * syscalls/update-netbsd.sh: New file.
10391 * syscalls/netbsd.xml: Regenerate.
10392 * data-directory/Makefile.in: Register `netbsd.xml' in
10393 `SYSCALLS_FILES'.
10394
10395 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * syscalls/update-freebsd.sh: Add double quotes.
10398
10399 2020-04-28 Tom Tromey <tom@tromey.com>
10400
10401 * NEWS: Update.
10402 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10403 (cmdpy_init): Allow class_tui.
10404
10405 2020-04-28 Mark Williams <mark@myosotissp.com>
10406
10407 PR gdb/24480
10408 * dwarf2read.c: Add missing assingments to list_in_scope when
10409 start_symtab was already called.
10410
10411 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10412
10413 PR gdb/25881
10414 * dwarf2/read.c (offset_map_type): Use
10415 gdb:hash_enum<sect_offset> as hash function.
10416
10417 2020-04-28 Tom de Vries <tdevries@suse.de>
10418
10419 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10420 with DW_AT_signature.
10421
10422 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * configure.ac: Remove check for fs_base/gs_base in
10425 user_regs_struct.
10426 * configure: Re-generate.
10427 * config.in: Re-generate.
10428 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10429 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10430 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10431
10432 2020-04-27 Luis Machado <luis.machado@linaro.org>
10433
10434 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10435 problematic inline frame unwinding situation.
10436 * frame.c (frame_id_computed_p): New function.
10437 * frame.h (frame_id_computed_p): New prototype.
10438
10439 2020-04-26 Tom Tromey <tom@tromey.com>
10440
10441 * command.h (enum command_class) <class_pseudo>: Remove.
10442
10443 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10444
10445 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10446 and whitespace.
10447
10448 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10449
10450 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10451 `PT_GET_PROCESS_STATE' block.
10452
10453 2020-04-24 Tom Tromey <tom@tromey.com>
10454
10455 * symtab.h (symbol_get_demangled_name): Don't declare.
10456 * symtab.c (symbol_get_demangled_name): Remove.
10457 (general_symbol_info::natural_name)
10458 (general_symbol_info::demangled_name): Update.
10459
10460 2020-04-24 Tom Tromey <tom@tromey.com>
10461
10462 PR rust/25025:
10463 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10464
10465 2020-04-24 Tom Tromey <tom@tromey.com>
10466
10467 PR symtab/12707:
10468 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10469 exists.
10470 (new_symbol): Likewise.
10471 * compile/compile-object-load.c (get_out_value_type): Use
10472 symbol_matches_search_name.
10473
10474 2020-04-24 Tom Tromey <tom@tromey.com>
10475
10476 * dwarf2/read.c (add_partial_symbol): Do not call
10477 compute_and_set_names.
10478
10479 2020-04-24 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10482 overload.
10483
10484 2020-04-24 Tom Tromey <tom@tromey.com>
10485
10486 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10487 (add_psymbol_to_list): New overload. Make old overload call new
10488 one.
10489 * psympriv.h (add_psymbol_to_list): New overload.
10490
10491 2020-04-24 Tom Tromey <tom@tromey.com>
10492
10493 * dwarf2/read.c (partial_die_info::read) <case
10494 DW_AT_linkage_name>: Use value_as_string.
10495 (dwarf2_string_attr): Use value_as_string.
10496 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10497 method.
10498 * dwarf2/attribute.c (attribute::value_as_string): New method.
10499
10500 2020-04-24 Tom Tromey <tom@tromey.com>
10501
10502 * symtab.c (general_symbol_info::natural_name)
10503 (general_symbol_info::demangled_name): Check for language_rust.
10504
10505 2020-04-24 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10508 (dwarf2_physname): ... from here.
10509 (partial_die_info::read): Add Rust "{" hack.
10510
10511 2020-04-24 Tom Tromey <tom@tromey.com>
10512
10513 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10514 method.
10515 (symbol_set_demangled_name): Don't declare.
10516 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10517 symbol_set_demangled_name.
10518 (general_symbol_info::set_language)
10519 (general_symbol_info::compute_and_set_names): Update.
10520 * minsyms.c (minimal_symbol_reader::install): Update.
10521 * dwarf2/read.c (new_symbol): Update.
10522
10523 2020-04-24 Tom Tromey <tromey@adacore.com>
10524
10525 PR python/23662:
10526 * python/py-type.c (convert_field): Handle
10527 FIELD_LOC_KIND_DWARF_BLOCK.
10528 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10529 (typy_get_dynamic): Nw function.
10530 (type_object_getset): Add "dynamic".
10531 * NEWS: Add entry.
10532
10533 2020-04-24 Tom Tromey <tromey@adacore.com>
10534
10535 * ada-typeprint.c (print_choices, print_variant_part)
10536 (print_record_field_types_dynamic): New functions.
10537 (print_record_field_types): Use print_record_field_types_dynamic.
10538
10539 2020-04-24 Tom Tromey <tromey@adacore.com>
10540
10541 * dwarf2/read.c (handle_data_member_location): New overload.
10542 (dwarf2_add_field): Use it.
10543 (decode_locdesc): Add "computed" parameter. Update comment.
10544 * gdbtypes.c (is_dynamic_type_internal): Also look for
10545 FIELD_LOC_KIND_DWARF_BLOCK.
10546 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10547 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10548 virtual base classes.
10549 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10550 FIELD_LOC_KIND_DWARF_BLOCK.
10551
10552 2020-04-24 Tom Tromey <tromey@adacore.com>
10553
10554 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10555 * gdbtypes.c (is_dynamic_type_internal): Check
10556 TYPE_HAS_DYNAMIC_LENGTH.
10557 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10558 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10559 New macros.
10560 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10561 constant.
10562
10563 2020-04-24 Tom Tromey <tromey@adacore.com>
10564
10565 * dwarf2/read.c (struct variant_field): Rewrite.
10566 (struct variant_part_builder): New.
10567 (struct nextfield): Remove "variant" field. Add "offset".
10568 (struct field_info): Add "current_variant_part" and
10569 "variant_parts".
10570 (alloc_discriminant_info): Remove.
10571 (alloc_rust_variant): New function.
10572 (quirk_rust_enum): Update.
10573 (dwarf2_add_field): Set "offset" member. Don't handle
10574 DW_TAG_variant_part.
10575 (offset_map_type): New typedef.
10576 (convert_variant_range, create_one_variant)
10577 (create_one_variant_part, create_variant_parts)
10578 (add_variant_property): New functions.
10579 (dwarf2_attach_fields_to_type): Call add_variant_property.
10580 (read_structure_type): Don't handle DW_TAG_variant_part.
10581 (handle_variant_part, handle_variant): New functions.
10582 (handle_struct_member_die): Use them.
10583 (process_structure_scope): Don't handle variant parts.
10584 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10585 (struct discriminant_info): Remove.
10586 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10587 (struct main_type) <flag_discriminated_union>: Remove.
10588 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10589 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10590 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10591 Update.
10592 * valops.c (value_union_variant): Remove.
10593 * value.h (value_union_variant): Don't declare.
10594
10595 2020-04-24 Tom Tromey <tromey@adacore.com>
10596
10597 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10598 (ada_value_primitive_packed_val): Update.
10599 * ada-valprint.c (ada_value_print_1): Update.
10600 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10601 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10602 just an address. Use evaluate_for_locexpr_baton.
10603 (dwarf2_evaluate_property): Update.
10604 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10605 array_view.
10606 * findvar.c (default_read_var_value): Update.
10607 * gdbtypes.c (compute_variant_fields_inner)
10608 (resolve_dynamic_type_internal): Update.
10609 (resolve_dynamic_type): Change type of valaddr parameter.
10610 * gdbtypes.h (resolve_dynamic_type): Update.
10611 * valarith.c (value_subscripted_rvalue): Update.
10612 * value.c (value_from_contents_and_address): Update.
10613
10614 2020-04-24 Tom Tromey <tromey@adacore.com>
10615
10616 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10617 "push_initial_value" parameter.
10618 (dwarf2_evaluate_property): Likewise.
10619 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10620
10621 2020-04-24 Tom Tromey <tromey@adacore.com>
10622
10623 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10624 (variant::matches, compute_variant_fields_recurse)
10625 (compute_variant_fields_inner, compute_variant_fields): New
10626 functions.
10627 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10628 Use resolved_type after type is made.
10629 (operator==): Add new cases.
10630 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10631 (struct discriminant_range, struct variant, struct variant_part):
10632 New.
10633 (union dynamic_prop_data) <variant_parts, original_type>: New
10634 members.
10635 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10636 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10637 constants.
10638 * value.c (unpack_bits_as_long): Now public.
10639 * value.h (unpack_bits_as_long): Declare.
10640
10641 2020-04-24 Tom Tromey <tromey@adacore.com>
10642
10643 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10644 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10645
10646 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10647
10648 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10649
10650 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10651
10652 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10653 (remove_fork_catchpoint, post_startup_inferior)
10654 (post_attach): Move...
10655 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10656 (remove_fork_catchpoint, post_startup_inferior)
10657 (post_attach): ...here.
10658 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10659 (remove_fork_catchpoint, post_startup_inferior)
10660 (post_attach): Move...
10661 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10662 (remove_fork_catchpoint, post_startup_inferior)
10663 (post_attach): ...here.
10664
10665 2020-04-24 Tom Tromey <tromey@adacore.com>
10666
10667 * nat/windows-nat.h (struct windows_thread_info)
10668 <pc_adjusted>: New member.
10669 * windows-nat.c (windows_fetch_one_register): Check
10670 pc_adjusted.
10671 (windows_nat_target::get_windows_debug_event)
10672 (windows_nat_target::wait): Set pc_adjusted.
10673
10674 2020-04-24 Tom de Vries <tdevries@suse.de>
10675
10676 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10677 Run gdb-add-index inside temp dir.
10678
10679 2020-04-23 Tom Tromey <tromey@adacore.com>
10680
10681 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10682 in loop.
10683
10684 2020-04-23 Luis Machado <luis.machado@linaro.org>
10685
10686 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10687 get_frame_register instead of gdbarch_unwind_pc.
10688
10689 2020-04-23 Tom de Vries <tdevries@suse.de>
10690
10691 * symtab.c (lookup_global_symbol): Prefer def over decl.
10692
10693 2020-04-23 Tom de Vries <tdevries@suse.de>
10694
10695 PR symtab/25807
10696 * block.c (best_symbol, better_symbol): Promote to external.
10697 * block.h (best_symbol, better_symbol): Declare.
10698 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10699 decl.
10700
10701 2020-04-23 Tom Tromey <tromey@adacore.com>
10702
10703 PR ada/25837:
10704 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10705 "const char *", not a "const std::string &".
10706 <name_and_matcher::operator==>: Update.
10707 * unittests/lookup_name_info-selftests.c: Change type of
10708 "result".
10709
10710 2020-04-23 Tom Tromey <tom@tromey.com>
10711
10712 * inferior.h (iterate_over_inferiors): Don't declare.
10713 * inferior.c (iterate_over_inferiors): Remove.
10714 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10715 Remove.
10716 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10717 use iterate_over_inferiors.
10718 (darwin_resume_inferior_it)
10719 (struct resume_inferior_threads_param)
10720 (darwin_resume_inferior_threads_it): Remove.
10721 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10722
10723 2020-04-23 Tom de Vries <tdevries@suse.de>
10724
10725 * blockframe.c (find_pc_partial_function): Use
10726 find_pc_sect_compunit_symtab rather than
10727 objfile->sf->qf->find_pc_sect_compunit_symtab.
10728
10729 2020-04-22 Tom de Vries <tdevries@suse.de>
10730
10731 PR symtab/25764
10732 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10733 in psymtabs.
10734
10735 2020-04-22 Tom de Vries <tdevries@suse.de>
10736
10737 PR symtab/25801
10738 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10739 symtabs.
10740
10741 2020-04-22 Tom de Vries <tdevries@suse.de>
10742
10743 PR symtab/25700
10744 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10745 CU if already created.
10746
10747 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10748
10749 * infrun.c (displaced_step_fixup): Switch to the event_thread
10750 before calling displaced_step_restore, not after.
10751
10752 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10753
10754 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10755 its inferior is not recorded by us.
10756 (record_btrace_target_open): Replace call to
10757 all_non_exited_threads () with call to current_inferior
10758 ()->non_exited_threads ().
10759 (record_btrace_target::stop_recording): Likewise.
10760 (record_btrace_target::close): Likewise.
10761 (record_btrace_target::wait): Likewise.
10762 (record_btrace_target::record_stop_replaying): Likewise.
10763
10764 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10765
10766 * btrace.c (btrace_enable): Throw an error on double enables and
10767 when enabling recording fails.
10768 (btrace_disable): Throw an error if the thread is not recorded.
10769
10770 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10771
10772 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10773 request if we do not have a thread_info.
10774
10775 2020-04-21 Tom de Vries <tdevries@suse.de>
10776
10777 PR gdb/25471
10778 * thread.c
10779 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10780 exception in get_frame_id.
10781
10782 2020-04-20 Tom Tromey <tromey@adacore.com>
10783
10784 * python/python.c (struct gdbpy_event): Mark move constructor as
10785 noexcept.
10786 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10787 constructor as noexcept.
10788 * completer.h (struct completion_result): Mark move constructor as
10789 noexcept.
10790 * completer.c (completion_result::completion_result): Use
10791 initialization style. Don't call reset_match_list.
10792
10793 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10794
10795 * MAINTAINERS (Write After Approval): Add myself.
10796
10797 2020-04-18 Tom Tromey <tom@tromey.com>
10798
10799 * windows-tdep.c (init_w32_command_list)
10800 (w32_prefix_command_valid): Restore.
10801 (_initialize_windows_tdep): Call init_w32_command_list.
10802
10803 2020-04-18 Tom Tromey <tom@tromey.com>
10804
10805 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10806 * value.c (value_fn_field): Update.
10807 * valops.c (find_function_in_inferior)
10808 (value_allocate_space_in_inferior): Update.
10809 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10810 Update.
10811 * tui/tui-source.c (tui_source_window::set_contents): Update.
10812 * symtab.c (lookup_global_or_static_symbol)
10813 (find_function_start_sal_1, skip_prologue_sal)
10814 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10815 * symmisc.c (dump_msymbols, dump_symtab_1)
10816 (maintenance_print_one_line_table): Update.
10817 * symfile.c (init_entry_point_info, section_is_mapped)
10818 (list_overlays_command, simple_read_overlay_table)
10819 (simple_overlay_update_1): Update.
10820 * stap-probe.c (handle_stap_probe): Update.
10821 * stabsread.c (dbx_init_float_type, define_symbol)
10822 (read_one_struct_field, read_enum_type, read_range_type): Update.
10823 * source.c (info_line_command): Update.
10824 * python/python.c (gdbpy_source_objfile_script)
10825 (gdbpy_execute_objfile_script): Update.
10826 * python/py-type.c (save_objfile_types): Update.
10827 * python/py-objfile.c (py_free_objfile): Update.
10828 * python/py-inferior.c (python_new_objfile): Update.
10829 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10830 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10831 (maintenance_check_psymtabs): Update.
10832 * printcmd.c (info_address_command): Update.
10833 * objfiles.h (struct objfile) <arch>: New method, from
10834 get_objfile_arch.
10835 (get_objfile_arch): Don't declare.
10836 * objfiles.c (get_objfile_arch): Remove.
10837 (filter_overlapping_sections): Update.
10838 * minsyms.c (msymbol_is_function): Update.
10839 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10840 (output_nondebug_symbol): Update.
10841 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10842 (mdebug_expand_psymtab): Update.
10843 * machoread.c (macho_add_oso_symfile): Update.
10844 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10845 Update.
10846 * linux-fork.c (checkpoint_command): Update.
10847 * linespec.c (convert_linespec_to_sals): Update.
10848 * jit.c (finalize_symtab): Update.
10849 * infrun.c (insert_exception_resume_from_probe): Update.
10850 * ia64-tdep.c (ia64_find_unwind_table): Update.
10851 * hppa-tdep.c (internalize_unwinds): Update.
10852 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10853 Update.
10854 * gcore.c (call_target_sbrk): Update.
10855 * elfread.c (record_minimal_symbol, elf_symtab_read)
10856 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10857 (elf_gnu_ifunc_resolve_by_got): Update.
10858 * dwarf2/read.c (create_addrmap_from_index)
10859 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10860 (read_debug_names_from_section)
10861 (process_psymtab_comp_unit_reader, add_partial_symbol)
10862 (add_partial_subprogram, process_full_comp_unit)
10863 (read_file_scope, read_func_scope, read_lexical_block_scope)
10864 (read_call_site_scope, dwarf2_ranges_read)
10865 (dwarf2_record_block_ranges, dwarf2_add_field)
10866 (mark_common_block_symbol_computed, read_tag_pointer_type)
10867 (read_tag_string_type, dwarf2_init_float_type)
10868 (dwarf2_init_complex_target_type, read_base_type)
10869 (partial_die_info::read, partial_die_info::read)
10870 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10871 (dwarf2_fetch_die_loc_sect_off): Update.
10872 * dwarf2/loc.c (dwarf2_find_location_expression)
10873 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10874 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10875 (dwarf2_loc_desc_get_symbol_read_needs)
10876 (locexpr_describe_location_piece, locexpr_describe_location_1)
10877 (loclist_describe_location): Update.
10878 * dwarf2/index-write.c (write_debug_names): Update.
10879 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10880 * dtrace-probe.c (dtrace_process_dof): Update.
10881 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10882 (process_one_symbol): Update.
10883 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10884 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10885 (coff_read_enum_type): Update.
10886 * cli/cli-cmds.c (edit_command, list_command): Update.
10887 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10888 * breakpoint.c (create_overlay_event_breakpoint)
10889 (create_longjmp_master_breakpoint)
10890 (create_std_terminate_master_breakpoint)
10891 (create_exception_master_breakpoint, get_sal_arch): Update.
10892 * block.c (block_gdbarch): Update.
10893 * annotate.c (annotate_source_line): Update.
10894
10895 2020-04-17 Tom Tromey <tromey@adacore.com>
10896
10897 * auto-load.c (show_auto_load_cmd): Remove.
10898 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10899 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10900 (maintenance_print_arc_command): Remove.
10901 * tui/tui-win.c (tui_command): Remove.
10902 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10903 * tui/tui-layout.c (tui_layout_command): Remove.
10904 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10905 * python/python.c (user_set_python, user_show_python): Remove.
10906 (_initialize_python): Use add_basic_prefix_cmd,
10907 add_show_prefix_cmd.
10908 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10909 (install_gdb_commands): Use add_basic_prefix_cmd,
10910 add_show_prefix_cmd.
10911 (info_guile_command): Remove.
10912 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10913 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10914 add_show_prefix_cmd.
10915 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10916 Remove do_set and do_show parameters.
10917 * cli/cli-style.c (set_style, show_style): Remove.
10918 (_initialize_cli_style): Use add_basic_prefix_cmd,
10919 add_show_prefix_cmd.
10920 (cli_style_option::add_setshow_commands): Remove do_set and
10921 do_show parameters.
10922 (cli_style_option::add_setshow_commands): Use
10923 add_basic_prefix_cmd, add_show_prefix_cmd.
10924 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10925 (set_style_name): Remove.
10926 * cli/cli-dump.c (dump_command, append_command): Remove.
10927 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10928 (tekhex_dump_command, binary_dump_command)
10929 (binary_append_command): Remove.
10930 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10931 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10932 (init_w32_command_list): Remove; move into ...
10933 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10934 * valprint.c (set_print, show_print, set_print_raw)
10935 (show_print_raw): Remove.
10936 (_initialize_valprint): Use add_basic_prefix_cmd,
10937 add_show_prefix_cmd.
10938 * typeprint.c (set_print_type, show_print_type): Remove.
10939 (_initialize_typeprint): Use add_basic_prefix_cmd,
10940 add_show_prefix_cmd.
10941 * record.c (set_record_command, show_record_command): Remove.
10942 (_initialize_record): Use add_basic_prefix_cmd,
10943 add_show_prefix_cmd.
10944 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10945 add_show_prefix_cmd.
10946 (info_command, show_command, set_debug, show_debug): Remove.
10947 * top.h (set_history, show_history): Don't declare.
10948 * top.c (set_history, show_history): Remove.
10949 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10950 (unset_tdesc_cmd): Remove.
10951 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10952 add_show_prefix_cmd.
10953 * symtab.c (info_module_command): Remove.
10954 (_initialize_symtab): Use add_basic_prefix_cmd.
10955 * symfile.c (overlay_command): Remove.
10956 (_initialize_symfile): Use add_basic_prefix_cmd.
10957 * sparc64-tdep.c (info_adi_command): Remove.
10958 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10959 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10960 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10961 add_show_prefix_cmd.
10962 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10963 (_initialize_serial): Use add_basic_prefix_cmd,
10964 add_show_prefix_cmd.
10965 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10966 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10967 add_show_prefix_cmd.
10968 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10969 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10970 add_show_prefix_cmd.
10971 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10972 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10973 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10974 add_show_prefix_cmd.
10975 * remote.c (remote_command, set_remote_cmd): Remove.
10976 (_initialize_remote): Use add_basic_prefix_cmd.
10977 * record-full.c (set_record_full_command)
10978 (show_record_full_command): Remove.
10979 (_initialize_record_full): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * record-btrace.c (cmd_set_record_btrace)
10982 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10983 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10984 (cmd_show_record_btrace_pt): Remove.
10985 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10986 add_show_prefix_cmd.
10987 * ravenscar-thread.c (set_ravenscar_command)
10988 (show_ravenscar_command): Remove.
10989 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10990 add_show_prefix_cmd.
10991 * mips-tdep.c (show_mips_command, set_mips_command)
10992 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10993 add_show_prefix_cmd.
10994 * maint.c (maintenance_command, maintenance_info_command)
10995 (maintenance_check_command, maintenance_print_command)
10996 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10997 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10998 add_show_prefix_cmd.
10999 (show_per_command_cmd): Remove.
11000 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11001 Remove.
11002 (maintenance_show_test_settings_cmd): Remove.
11003 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11004 add_show_prefix_cmd.
11005 * maint-test-options.c (maintenance_test_options_command):
11006 Remove.
11007 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11008 * macrocmd.c (macro_command): Remove
11009 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11010 * language.c (set_check, show_check): Remove.
11011 (_initialize_language): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 * infcmd.c (unset_command): Remove.
11014 (_initialize_infcmd): Use add_basic_prefix_cmd.
11015 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11016 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11017 add_show_prefix_cmd.
11018 * go32-nat.c (go32_info_dos_command): Remove.
11019 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11020 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11021 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11022 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11023 (_initialize_frame): Use add_basic_prefix_cmd,
11024 add_show_prefix_cmd.
11025 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11026 (_initialize_dcache): Use add_basic_prefix_cmd,
11027 add_show_prefix_cmd.
11028 * cp-support.c (maint_cplus_command): Remove.
11029 (_initialize_cp_support): Use add_basic_prefix_cmd.
11030 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11031 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11032 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11033 add_basic_prefix_cmd, add_show_prefix_cmd.
11034 * breakpoint.c (save_command): Remove.
11035 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11036 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11037 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11040 (set_ada_command, show_ada_command): Remove.
11041 (_initialize_ada_language): Use add_basic_prefix_cmd,
11042 add_show_prefix_cmd.
11043 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11044
11045 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11046
11047 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11048 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11049
11050 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11053 warning messages.
11054
11055 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11056
11057 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11058 import table is not at beginning of .idata section.
11059
11060 2020-04-16 Pedro Alves <palves@redhat.com>
11061
11062 * inferior.c (delete_inferior): Use delete operator directly
11063 instead of delete_program_space.
11064 * progspace.c (add_program_space): New, factored out from
11065 program_space::program_space.
11066 (remove_program_space): New, factored out from
11067 delete_program_space.
11068 (program_space::program_space): Remove intro comment. Rewrite.
11069 (program_space::~program_space): Remove intro comment. Call
11070 remove_program_space.
11071 (delete_program_space): Delete.
11072 * progspace.h (program_space::program_space): Make explicit. Move
11073 intro comment here, adjusted.
11074 (program_space::~program_space): Move intro comment here,
11075 adjusted.
11076 (delete_program_space): Remove.
11077
11078 2020-04-16 Tom Tromey <tromey@adacore.com>
11079
11080 * windows-nat.c (windows_nat::handle_access_violation): New
11081 function.
11082 * nat/windows-nat.h (handle_access_violation): Declare.
11083 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11084 windows-nat.c. Call handle_access_violation.
11085
11086 2020-04-16 Tom de Vries <tdevries@suse.de>
11087
11088 PR symtab/25791
11089 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11090 CUs without psymtab.
11091
11092 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11093
11094 * python/python.c (do_start_initialization): Don't call
11095 PyEval_InitThreads for Python 3.9 and beyond.
11096
11097 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11098
11099 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11100 thread functions.
11101 (obsd_nat_target::wait): Likewise.
11102
11103 2020-04-15 Tom Tromey <tromey@adacore.com>
11104
11105 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11106 (DEBUG_EXCEPT): Use debug_printf.
11107
11108 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * completer.c (class completion_tracker::completion_hash_entry)
11111 <hash_name>: New member function.
11112 (completion_tracker::discard_completions): New callback to hash a
11113 completion_hash_entry, pass this to htab_create_alloc.
11114
11115 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11116
11117 * windows-nat.c (windows_make_so): Warn rather than stopping with
11118 an error if realpath() fails.
11119
11120 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11121
11122 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11123 (nbsd_nat_target::info_proc): Add do_status.
11124
11125 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11126 Tom de Vries <tdevries@suse.de>
11127
11128 PR symtab/25718
11129 * psympriv.h (struct partial_symtab::read_symtab)
11130 (struct partial_symtab::expand_psymtab)
11131 (struct partial_symtab::read_dependencies): Update comments.
11132 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11133 read_symtab for includer.
11134 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11135 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11136 (struct dwarf2_include_psymtab::m_readin): Remove.
11137 (struct dwarf2_include_psymtab::includer): New member function.
11138 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11139
11140 2020-04-14 Tom de Vries <tdevries@suse.de>
11141
11142 PR symtab/25720
11143 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11144 with NULL symbol_matcher and lookup_name.
11145 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11146 and lookup_name.
11147 * dwarf2/read.c (dw2_expand_symtabs_matching)
11148 (dw2_debug_names_expand_symtabs_matching): Same.
11149 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11150 Make lookup_name a pointer. Update comment.
11151 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11152 lookup_name being a pointer.
11153 * symfile.c (expand_symtabs_matching): Same.
11154 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11155 * linespec.c (iterate_over_all_matching_symtabs): Same.
11156
11157 2020-04-13 Tom Tromey <tom@tromey.com>
11158
11159 * run-on-main-thread.c: Update include.
11160 * unittests/main-thread-selftests.c: Update include.
11161 * tui/tui-win.c: Update include.
11162 * tui/tui-io.c: Update include.
11163 * tui/tui-interp.c: Update include.
11164 * tui/tui-hooks.c: Update include.
11165 * top.h: Update include.
11166 * top.c: Update include.
11167 * ser-base.c: Update include.
11168 * remote.c: Update include.
11169 * remote-notif.c: Update include.
11170 * remote-fileio.c: Update include.
11171 * record-full.c: Update include.
11172 * record-btrace.c: Update include.
11173 * python/python.c: Update include.
11174 * posix-hdep.c: Update include.
11175 * mingw-hdep.c: Update include.
11176 * mi/mi-main.c: Update include.
11177 * mi/mi-interp.c: Update include.
11178 * main.c: Update include.
11179 * linux-nat.c: Update include.
11180 * interps.c: Update include.
11181 * infrun.c: Update include.
11182 * inf-loop.c: Update include.
11183 * event-top.c: Update include.
11184 * event-loop.c: Move to ../gdbsupport/.
11185 * event-loop.h: Move to ../gdbsupport/.
11186 * async-event.h: Update include.
11187 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11188
11189 2020-04-13 Tom Tromey <tom@tromey.com>
11190
11191 * tui/tui-win.c: Include async-event.h.
11192 * remote.c: Include async-event.h.
11193 * remote-notif.c: Include async-event.h.
11194 * record-full.c: Include async-event.h.
11195 * record-btrace.c: Include async-event.h.
11196 * infrun.c: Include async-event.h.
11197 * event-top.c: Include async-event.h.
11198 * event-loop.h: Move some declarations to async-event.h.
11199 * event-loop.c: Don't include ser-event.h or top.h. Move some
11200 code to async-event.c.
11201 * async-event.h: New file.
11202 * async-event.c: New file.
11203 * Makefile.in (COMMON_SFILES): Add async-event.c.
11204 (HFILES_NO_SRCDIR): Add async-event.h.
11205
11206 2020-04-13 Tom Tromey <tom@tromey.com>
11207
11208 * utils.c (flush_streams): New function.
11209 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11210
11211 2020-04-13 Tom Tromey <tom@tromey.com>
11212
11213 * event-loop.c (handle_file_event): Use warning, not
11214 printf_unfiltered.
11215
11216 2020-04-13 Tom Tromey <tom@tromey.com>
11217
11218 * event-loop.c: Include <chrono>.
11219
11220 2020-04-13 Tom Tromey <tom@tromey.com>
11221
11222 * gdb_select.h: Move to ../gdbsupport/.
11223 * event-loop.c: Update include path.
11224 * top.c: Update include path.
11225 * ser-base.c: Update include path.
11226 * ui-file.c: Update include path.
11227 * ser-tcp.c: Update include path.
11228 * guile/scm-ports.c: Update include path.
11229 * posix-hdep.c: Update include path.
11230 * ser-unix.c: Update include path.
11231 * gdb_usleep.c: Update include path.
11232 * mingw-hdep.c: Update include path.
11233 * inflow.c: Update include path.
11234 * infrun.c: Update include path.
11235 * event-top.c: Update include path.
11236
11237 2020-04-13 Tom Tromey <tom@tromey.com>
11238
11239 * configure: Rebuild.
11240 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11241
11242 2020-04-13 Tom Tromey <tom@tromey.com>
11243
11244 * event-loop.h (start_event_loop): Don't declare.
11245 * event-loop.c (start_event_loop): Move...
11246 * main.c (start_event_loop): ...here. Now static.
11247
11248 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11249
11250 * MAINTAINERS: Update my email address.
11251
11252 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11253
11254 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11255 IP_ALL.
11256
11257 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11258
11259 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11260 (nbsd_nat_target::info_proc): Add do_cmdline.
11261
11262 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11263
11264 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11265 (nbsd_nat_target::info_proc): Add do_cwd.
11266
11267 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11268
11269 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11270
11271 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11272
11273 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11274 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11275 (nbsd_nat_target::info_proc): New functions.
11276 * nbsd-nat.c (kinfo_get_vmmap): New function.
11277 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11278 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11279 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11280 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11281 functions.
11282 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11283 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11284 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11285 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11286 (KINFO_VME_FLAG_GROWS_DOWN): New.
11287
11288 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11289
11290 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11291 bit shift.
11292
11293 2020-04-10 Tom Tromey <tromey@adacore.com>
11294
11295 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11296
11297 2020-04-10 Tom Tromey <tromey@adacore.com>
11298
11299 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11300 separate debug files.
11301
11302 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11303
11304 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11305 Move to...
11306 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11307 ... here.
11308 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11309 Check for STATUS_WX86_BREAKPOINT.
11310 (windows_nat_target::wait): Same.
11311
11312 2020-04-10 Tom de Vries <tdevries@suse.de>
11313
11314 PR cli/25808
11315 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11316
11317 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11318
11319 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11320 (Write After Approval): Remove Tom de Vries.
11321
11322 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11323
11324 revert partially:
11325 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11326
11327 * buildsym.c (record_line): Fix undefined behavior and preserve
11328 lines at eof.
11329
11330 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11331
11332 * auxv.h (svr4_auxv_parse): New.
11333 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11334 and generic_auxv_parse.
11335 (svr4_auxv_parse): Add.
11336 * obsd-tdep.c: Include "auxv.h".
11337 (obsd_auxv_parse): Remove.
11338 (obsd_init_abi): Remove comment.
11339 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11340 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11341 * nbsd-tdep.c: Include "auxv.h".
11342 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11343
11344 2020-04-08 Tom Tromey <tromey@adacore.com>
11345
11346 * nat/windows-nat.h (last_wait_event): Don't declare.
11347 (wait_for_debug_event): Update comment.
11348 * nat/windows-nat.c (last_wait_event): Now static.
11349
11350 2020-04-08 Tom Tromey <tromey@adacore.com>
11351
11352 * windows-nat.c (wait_for_debug_event): Move to
11353 nat/windows-nat.c.
11354 * nat/windows-nat.h (wait_for_debug_event): Declare.
11355 * nat/windows-nat.c (wait_for_debug_event): Move from
11356 windows-nat.c. No longer static.
11357
11358 2020-04-08 Tom Tromey <tromey@adacore.com>
11359
11360 * windows-nat.c (get_windows_debug_event): Use
11361 fetch_pending_stop.
11362 * nat/windows-nat.h (fetch_pending_stop): Declare.
11363 * nat/windows-nat.c (fetch_pending_stop): New function.
11364
11365 2020-04-08 Tom Tromey <tromey@adacore.com>
11366
11367 * windows-nat.c (windows_continue): Use matching_pending_stop and
11368 continue_last_debug_event.
11369 * nat/windows-nat.h (matching_pending_stop)
11370 (continue_last_debug_event): Declare.
11371 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11372 (matching_pending_stop, continue_last_debug_event): New
11373 functions.
11374
11375 2020-04-08 Tom Tromey <tromey@adacore.com>
11376
11377 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11378 (handle_exception_result): Move to nat/windows-nat.h.
11379 (DEBUG_EXCEPTION_SIMPLE): Remove.
11380 (windows_nat::handle_ms_vc_exception): New function.
11381 (handle_exception): Move to nat/windows-nat.c.
11382 (get_windows_debug_event): Update.
11383 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11384 nat/windows-nat.c.
11385 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11386 (handle_exception_result): Move from windows-nat.c.
11387 (handle_exception): Declare.
11388 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11389 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11390 windows-nat.c.
11391
11392 2020-04-08 Tom Tromey <tromey@adacore.com>
11393
11394 * windows-nat.c (exception_count, event_count): Remove.
11395 (handle_exception, get_windows_debug_event)
11396 (do_initial_windows_stuff): Update.
11397
11398 2020-04-08 Tom Tromey <tromey@adacore.com>
11399
11400 * windows-nat.c (windows_nat::handle_load_dll)
11401 (windows_nat::handle_unload_dll): Rename. No longer static.
11402 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11403 Declare.
11404
11405 2020-04-08 Tom Tromey <tromey@adacore.com>
11406
11407 * complaints.h (stop_whining): Declare at top-level.
11408 (complaint): Don't declare stop_whining.
11409
11410 2020-04-08 Tom Tromey <tromey@adacore.com>
11411
11412 * windows-nat.c (windows_nat::handle_output_debug_string):
11413 Rename. No longer static.
11414 * nat/windows-nat.h (handle_output_debug_string): Declare.
11415
11416 2020-04-08 Tom Tromey <tromey@adacore.com>
11417
11418 * windows-nat.c (current_process_handle, current_process_id)
11419 (main_thread_id, last_sig, current_event, last_wait_event)
11420 (current_windows_thread, desired_stop_thread_id, pending_stops)
11421 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11422 (display_selectors, fake_create_process)
11423 (get_windows_debug_event): Update.
11424 * nat/windows-nat.h (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 from windows-nat.c.
11428 * nat/windows-nat.c (current_process_handle, current_process_id)
11429 (main_thread_id, last_sig, current_event, last_wait_event)
11430 (current_windows_thread, desired_stop_thread_id, pending_stops)
11431 (siginfo_er): New globals. Move from windows-nat.c.
11432
11433 2020-04-08 Tom Tromey <tromey@adacore.com>
11434
11435 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11436 (handle_load_dll): Update.
11437 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11438
11439 2020-04-08 Tom Tromey <tromey@adacore.com>
11440
11441 * windows-nat.c (enum thread_disposition_type): Move to
11442 nat/windows-nat.h.
11443 (windows_nat::thread_rec): Rename from thread_rec. No longer
11444 static.
11445 (windows_add_thread, windows_nat_target::fetch_registers)
11446 (windows_nat_target::store_registers, handle_exception)
11447 (windows_nat_target::resume, get_windows_debug_event)
11448 (windows_nat_target::get_tib_address)
11449 (windows_nat_target::thread_name)
11450 (windows_nat_target::thread_alive): Update.
11451 * nat/windows-nat.h (enum thread_disposition_type): Move from
11452 windows-nat.c.
11453 (thread_rec): Declare.
11454
11455 2020-04-08 Tom Tromey <tromey@adacore.com>
11456
11457 * windows-nat.c: Add "using namespace".
11458 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11459 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11460
11461 2020-04-08 Tom Tromey <tromey@adacore.com>
11462
11463 * nat/windows-nat.h (struct windows_thread_info): Declare
11464 destructor.
11465 * nat/windows-nat.c (~windows_thread_info): New.
11466
11467 2020-04-08 Tom Tromey <tromey@adacore.com>
11468
11469 PR gdb/22992
11470 * windows-nat.c (current_event): Update comment.
11471 (last_wait_event, desired_stop_thread_id): New globals.
11472 (struct pending_stop): New.
11473 (pending_stops): New global.
11474 (windows_nat_target) <stopped_by_sw_breakpoint>
11475 <supports_stopped_by_sw_breakpoint>: New methods.
11476 (windows_fetch_one_register): Add assertions. Adjust PC.
11477 (windows_continue): Handle pending stops. Suspend other threads
11478 when stepping. Use last_wait_event
11479 (wait_for_debug_event): New function.
11480 (get_windows_debug_event): Use wait_for_debug_event. Handle
11481 pending stops. Queue spurious stops.
11482 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11483 (windows_nat_target::kill): Use wait_for_debug_event.
11484 * nat/windows-nat.h (struct windows_thread_info)
11485 <stopped_at_software_breakpoint>: New field.
11486 * nat/windows-nat.c (windows_thread_info::resume): Clear
11487 stopped_at_software_breakpoint.
11488
11489 2020-04-08 Tom Tromey <tromey@adacore.com>
11490
11491 * windows-nat.c (enum thread_disposition_type): New.
11492 (thread_rec): Replace "get_context" parameter with "disposition";
11493 change type.
11494 (windows_add_thread, windows_nat_target::fetch_registers)
11495 (windows_nat_target::store_registers, handle_exception)
11496 (windows_nat_target::resume, get_windows_debug_event)
11497 (windows_nat_target::get_tib_address)
11498 (windows_nat_target::thread_name)
11499 (windows_nat_target::thread_alive): Update.
11500
11501 2020-04-08 Tom Tromey <tromey@adacore.com>
11502
11503 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11504 (windows_continue): Use windows_continue::resume.
11505 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11506 resume>: Declare new methods.
11507 * nat/windows-nat.c: New file.
11508 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11509
11510 2020-04-08 Tom Tromey <tromey@adacore.com>
11511
11512 * windows-nat.c (windows_add_thread, windows_delete_thread)
11513 (windows_nat_target::fetch_registers)
11514 (windows_nat_target::store_registers, fake_create_process)
11515 (windows_nat_target::resume, windows_nat_target::resume)
11516 (get_windows_debug_event, windows_nat_target::wait)
11517 (windows_nat_target::pid_to_str)
11518 (windows_nat_target::get_tib_address)
11519 (windows_nat_target::get_ada_task_ptid)
11520 (windows_nat_target::thread_name)
11521 (windows_nat_target::thread_alive): Use lwp, not tid.
11522
11523 2020-04-08 Tom Tromey <tromey@adacore.com>
11524
11525 * windows-nat.c (handle_exception)
11526 (windows_nat_target::thread_name): Update.
11527 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11528 <name>: Now unique_xmalloc_ptr.
11529
11530 2020-04-08 Tom Tromey <tromey@adacore.com>
11531
11532 * windows-nat.c (thread_rec)
11533 (windows_nat_target::fetch_registers): Update.
11534 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11535 Update comment.
11536 <debug_registers_changed, reload_context>: Now bool.
11537
11538 2020-04-08 Tom Tromey <tromey@adacore.com>
11539
11540 * windows-nat.c (windows_add_thread): Use new.
11541 (windows_init_thread_list, windows_delete_thread): Use delete.
11542 (get_windows_debug_event): Update.
11543 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11544 destructor, and initializers.
11545
11546 2020-04-08 Tom Tromey <tromey@adacore.com>
11547
11548 * windows-nat.c (struct windows_thread_info): Remove.
11549 * nat/windows-nat.h: New file.
11550
11551 2020-04-08 Tom Tromey <tromey@adacore.com>
11552
11553 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11554 (thread_rec, windows_add_thread, windows_delete_thread)
11555 (windows_continue): Update.
11556
11557 2020-04-08 Tom Tromey <tromey@adacore.com>
11558
11559 * windows-nat.c (struct windows_thread_info): Remove typedef.
11560 (thread_head): Remove.
11561 (thread_list): New global.
11562 (thread_rec, windows_add_thread, windows_init_thread_list)
11563 (windows_delete_thread, windows_continue): Update.
11564
11565 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11566
11567 * windows-tdep.h (windows_init_abi): Add comment.
11568 (cygwin_init_abi): New declaration.
11569 * windows-tdep.c: Split signal enumeration in two, one for
11570 Windows and one for Cygwin.
11571 (windows_gdb_signal_to_target): Only deal with signal of the
11572 Windows OS ABI.
11573 (cygwin_gdb_signal_to_target): New function.
11574 (windows_init_abi): Rename to windows_init_abi_common, don't set
11575 gdb_signal_to_target gdbarch method. Add new new function with
11576 this name.
11577 (cygwin_init_abi): New function.
11578 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11579 comment. Don't call windows_init_abi.
11580 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11581 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11582 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11583 i386_windows_init_abi_common, don't call windows_init_abi. Add
11584 a new function of this name.
11585 (i386_cygwin_init_abi): New function.
11586 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11587 OS ABI Cygwin.
11588
11589 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11590
11591 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11592 parameter.c.
11593 (dwarf2_read_gdb_index): Update.
11594
11595 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11596
11597 * nbsd-tdep.c: Include "objfiles.h".
11598 (nbsd_skip_solib_resolver): New.
11599 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11600
11601 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11602
11603 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11604 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11605 with DW_LLE_base_addressx are being emitted in DWARFv5.
11606 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11607 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11608 unsigned integer.
11609
11610 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11611
11612 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11613 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11614 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11615 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11616 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11617 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11618 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11619
11620
11621 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11622
11623 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11624 (read_loclist_index): New function definition.
11625 (lookup_loclist_base): New function definition.
11626 (read_loclist_header): New function definition.
11627 (dwarf2_cu): Add loclist_base and loclist_header field.
11628 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11629 (read_full_die_1): Read the value of DW_AT_loclists_base.
11630 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11631 (read_attribute_value): Handle DW_FORM_loclistx.
11632 (skip_one_die): Handle DW_FORM_loclistx.
11633 (loclist_header): New structure declaration.
11634 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11635
11636 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11637
11638 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11639 constructor. Remove `addr` parameter from other constructor and
11640 add `per_cu` parameter.
11641 * dwarf2/read.c (create_partial_symtab): Update.
11642
11643 2020-04-07 Tom de Vries <tdevries@suse.de>
11644
11645 PR symtab/25796
11646 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11647 (partial_die_info::fixup): Inherit has_const_value.
11648
11649 2020-04-07 Tom de Vries <tdevries@suse.de>
11650
11651 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11652 symbols without address.
11653
11654 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11655
11656 * nbsd-nat.h (struct thread_info): Add forward declaration.
11657 (nbsd_nat_target::thread_alive): Add.
11658 (nbsd_nat_target::thread_name): Likewise.
11659 (nbsd_nat_target::update_thread_list): Likewise.
11660 (update_thread_list::post_attach): Likewise.
11661 (post_attach::pid_to_str): Likewise.
11662 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11663 (nbsd_thread_lister): Add.
11664 (nbsd_nat_target::thread_alive): Likewise.
11665 (nbsd_nat_target::thread_name): Likewise.
11666 (nbsd_add_threads): Likewise.
11667 (update_thread_list::post_attach): Likewise.
11668 (nbsd_nat_target::update_thread_list): Likewise.
11669 (post_attach::pid_to_str): Likewise.
11670
11671 2020-04-06 Tom Tromey <tromey@adacore.com>
11672
11673 * ada-valprint.c (print_variant_part): Extract the variant field.
11674 (print_field_values): Use the field as the outer value when
11675 recursing.
11676
11677 2020-04-06 Tom Tromey <tromey@adacore.com>
11678
11679 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11680 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11681 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11682 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11683 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11684
11685 2020-04-06 Tom Tromey <tromey@adacore.com>
11686
11687 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11688 TYPE_CODE_ERROR.
11689
11690 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11691
11692 * nbsd-tdep.c: Include "gdbarch.h".
11693 Define enum with NetBSD signal numbers.
11694 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11695 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11696 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11697 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11698 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11699 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11700 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11701 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11702 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11703 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11704 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11705 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11706
11707 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11708
11709 PR gdb/25325
11710 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11711
11712 2020-04-03 Tom Tromey <tromey@adacore.com>
11713
11714 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11715 Read constant block.
11716
11717 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11718
11719 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11720 (gdb_bfd_get_full_section_contents): New declaration.
11721 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11722 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11723 gdb_bfd_get_full_section_contents.
11724
11725 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11726
11727 * exec.c (build_section_table): Replace internal_error with
11728 gdb_assert.
11729 (section_table_xfer_memory_partial): Likewise.
11730 * mdebugread.c (parse_partial_symbols): Likewise.
11731 * psymtab.c (lookup_partial_symbol): Likewise.
11732 * utils.c (wrap_here): Likewise.
11733
11734 2020-04-02 Tom Tromey <tromey@adacore.com>
11735
11736 * f-lang.c (build_fortran_types): Use arch_type to initialize
11737 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11738
11739 2020-04-02 Tom Tromey <tromey@adacore.com>
11740
11741 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11742 of attributes.
11743
11744 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11745 Bernd Edlinger <bernd.edlinger@hotmail.de>
11746 Tom Tromey <tromey@adacore.com>
11747
11748 * buildsym.c (buildsym_compunit::record_line): Remove
11749 deduplication code.
11750
11751 2020-04-02 Tom de Vries <tdevries@suse.de>
11752
11753 PR ada/24671
11754 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11755
11756 2020-04-02 Tom de Vries <tdevries@suse.de>
11757
11758 * dwarf2/read.c (dwarf2_gdb_index_functions,
11759 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11760 NULL.
11761 * psymtab.c (psym_lookup_global_symbol_language): New function.
11762 (psym_functions): Init psym_lookup_global_symbol_language with
11763 psym_lookup_global_symbol_language.
11764 * symfile-debug.c (debug_sym_quick_functions): Init
11765 lookup_global_symbol_language with NULL.
11766 * symfile.c (set_initial_language): Remove fixme comment.
11767 * symfile.h (struct quick_symbol_functions): Add
11768 lookup_global_symbol_language.
11769 * symtab.c (find_quick_global_symbol_language): New function.
11770 (find_main_name): Use find_quick_global_symbol_language.
11771
11772 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11775
11776 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11777
11778 * buildsym.c (record_line): Fix undefined behavior and preserve
11779 lines at eof.
11780
11781 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11782
11783 * buildsym.c (record_line): Fix the resizing condition.
11784
11785 2020-04-01 Tom Tromey <tom@tromey.com>
11786
11787 * value.h (value_literal_complex): Add comment.
11788 * valops.c (value_literal_complex): Refer to value.h.
11789
11790 2020-04-01 Tom Tromey <tom@tromey.com>
11791
11792 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11793 (scalar_type): New rule, from typebase.
11794 (typebase): Use scalar_type. Recognize complex types.
11795 (field_name): Handle FLOAT_KEYWORD.
11796 (ident_tokens): Add _Complex and __complex__.
11797
11798 2020-04-01 Tom Tromey <tom@tromey.com>
11799
11800 PR exp/25299:
11801 * valarith.c (promotion_type, complex_binop): New functions.
11802 (scalar_binop): Handle complex numbers. Use promotion_type.
11803 (value_pos, value_neg, value_complement): Handle complex numbers.
11804
11805 2020-04-01 Tom Tromey <tom@tromey.com>
11806
11807 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11808 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11809 (parse_number): Handle complex numbers.
11810
11811 2020-04-01 Tom Tromey <tom@tromey.com>
11812
11813 * c-valprint.c (c_decorations): Change complex suffix to "i".
11814
11815 2020-04-01 Tom Tromey <tom@tromey.com>
11816
11817 * valprint.c (generic_value_print_complex): Use accessors.
11818 * value.h (value_real_part, value_imaginary_part): Declare.
11819 * valops.c (value_real_part, value_imaginary_part): New
11820 functions.
11821 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11822
11823 2020-04-01 Tom Tromey <tom@tromey.com>
11824
11825 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11826 (read_range_type): Update.
11827 * mdebugread.c (basic_type): Update.
11828 * go-lang.c (build_go_types): Use init_complex_type.
11829 * gdbtypes.h (struct main_type) <complex_type>: New member.
11830 (init_complex_type): Update.
11831 (arch_complex_type): Don't declare.
11832 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11833 Make name if none given. Use alloc_type_copy. Look for cached
11834 complex type.
11835 (arch_complex_type): Remove.
11836 (gdbtypes_post_init): Use init_complex_type.
11837 * f-lang.c (build_fortran_types): Use init_complex_type.
11838 * dwarf2/read.c (read_base_type): Update.
11839 * d-lang.c (build_d_types): Use init_complex_type.
11840 * ctfread.c (read_base_type): Update.
11841
11842 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11843
11844 * infrun.c (stop_all_threads): Update assertion, plus when
11845 stopping threads, take into account that we might be trying
11846 to stop an all-stop target.
11847 (stop_waiting): Call 'stop_all_threads' if there exists a
11848 non-stop target.
11849
11850 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11851
11852 * target.h (exists_non_stop_target): New function declaration.
11853 * target.c (exists_non_stop_target): New function.
11854
11855 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11856
11857 PR gdb/24789
11858 * eval.c (is_integral_or_integral_reference): New function.
11859 (evaluate_subexp_standard): Allow integer references in
11860 pointer arithmetic.
11861
11862 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11863
11864 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11865 check for no ptid in the stop reply when the target is non-stop.
11866
11867 2020-04-01 Tom Tromey <tromey@adacore.com>
11868
11869 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11870 "name" parameter to rvalue reference. Initialize m_name_holder.
11871 <lookup_name_info>: New overloads.
11872 <name>: Return gdb::string_view.
11873 <c_str>: New method.
11874 <make_ignore_params>: Update.
11875 <search_name_hash>: Update.
11876 <language_lookup_name>: Return const char *.
11877 <m_name>: Change type.
11878 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11879 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11880 (lookup_name_info::match_any): Update.
11881 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11882 Update.
11883 * minsyms.c (linkage_name_str): Update.
11884 * language.c (default_symbol_name_matcher): Update.
11885 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11886 Update.
11887 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11888 (ada_lookup_name_info::ada_lookup_name_info): Update.
11889 (literal_symbol_name_matcher): Update.
11890
11891 2020-04-01 Tom Tromey <tromey@adacore.com>
11892
11893 * psymtab.c (psymtab_search_name): Remove function.
11894 (psym_lookup_symbol): Create search name and lookup name here.
11895 (lookup_partial_symbol): Remove "name" parameter; add
11896 lookup_name.
11897 (psym_expand_symtabs_for_function): Update.
11898
11899 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11900
11901 PR tui/25597:
11902 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11903
11904 2020-03-31 Tom Tromey <tromey@adacore.com>
11905
11906 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11907 memcpy.
11908
11909 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11910
11911 * features/riscv/32bit-csr.xml: Regenerated.
11912 * features/riscv/64bit-csr.xml: Regenerated.
11913
11914 2020-03-30 Tom Tromey <tromey@adacore.com>
11915
11916 * ada-valprint.c (print_variant_part): Update.
11917 * ada-lang.h (ada_which_variant_applies): Update.
11918 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11919 outer_valaddr parameters; replace with "outer" value parameter.
11920 (to_fixed_variant_branch_type): Update.
11921
11922 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11923
11924 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11925 <list>. Remove inclusion of observable.h.
11926 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11927 (struct arch_lwp_info): New struct.
11928 (class ppc_linux_dreg_interface): New class.
11929 (struct ppc_linux_process_info): New struct.
11930 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11931 <low_new_clone, low_forget_process, low_prepare_to_resume>
11932 <copy_thread_dreg_state, mark_thread_stale>
11933 <mark_debug_registers_changed, register_hw_breakpoint>
11934 <clear_hw_breakpoint, register_wp, clear_wp>
11935 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11936 <num_memory_accesses, get_trigger_type>
11937 <create_watchpoint_request, hwdebug_point_cmp>
11938 <init_arch_lwp_info, get_arch_lwp_info>
11939 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11940 methods.
11941 <struct ptid_hash>: New inner struct.
11942 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11943 members.
11944 (saved_dabr_value, hwdebug_info, max_slots_number)
11945 (struct hw_break_tuple, struct thread_points, ppc_threads)
11946 (have_ptrace_hwdebug_interface)
11947 (hwdebug_find_thread_points_by_tid)
11948 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11949 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11950 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11951 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11952 use m_dreg_interface.
11953 (hwdebug_point_cmp): Change to...
11954 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11955 reference arguments instead of pointers.
11956 (ppc_linux_nat_target::ranged_break_num_registers): Use
11957 m_dreg_interface.
11958 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11959 m_dreg_interface. Call register_hw_breakpoint.
11960 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11961 m_dreg_interface. Call clear_hw_breakpoint.
11962 (get_trigger_type): Change to...
11963 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11964 comment.
11965 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11966 use m_dreg_interface. Call register_hw_breakpoint.
11967 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11968 use m_dreg_interface. Call clear_hw_breakpoint.
11969 (can_use_watchpoint_cond_accel): Change to...
11970 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11971 method. Update comment, use m_dreg_interface and
11972 m_process_info.
11973 (calculate_dvc): Change to...
11974 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11975 m_dreg_interface.
11976 (num_memory_accesses): Change to...
11977 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11978 (check_condition): Change to...
11979 (ppc_linux_nat_target::check_condition): ...this method.
11980 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11981 comment, use m_dreg_interface.
11982 (create_watchpoint_request): Change to...
11983 (ppc_linux_nat_target::create_watchpoint_request): ...this
11984 method. Use m_dreg_interface.
11985 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11986 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11987 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11988 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11989 (ppc_linux_nat_target::low_forget_process)
11990 (ppc_linux_nat_target::low_new_fork)
11991 (ppc_linux_nat_target::low_new_clone)
11992 (ppc_linux_nat_target::low_delete_thread)
11993 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11994 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11995 only call mark_thread_stale.
11996 (ppc_linux_thread_exit): Remove.
11997 (ppc_linux_nat_target::stopped_data_address): Change to...
11998 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11999 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12000 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12001 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12002 comment. Call low_stopped_data_address.
12003 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12004 m_dreg_interface.
12005 (ppc_linux_nat_target::masked_watch_num_registers): Use
12006 m_dreg_interface.
12007 (ppc_linux_nat_target::copy_thread_dreg_state)
12008 (ppc_linux_nat_target::mark_thread_stale)
12009 (ppc_linux_nat_target::mark_debug_registers_changed)
12010 (ppc_linux_nat_target::register_hw_breakpoint)
12011 (ppc_linux_nat_target::clear_hw_breakpoint)
12012 (ppc_linux_nat_target::register_wp)
12013 (ppc_linux_nat_target::clear_wp)
12014 (ppc_linux_nat_target::init_arch_lwp_info)
12015 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12016 (_initialize_ppc_linux_nat): Remove observer callback.
12017
12018 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12019
12020 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12021 (ppc_linux_nat_target::auxv_parse)
12022 (ppc_linux_nat_target::read_description)
12023 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12024 Move up.
12025
12026 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12027
12028 * linux-nat.h (low_new_clone): New method.
12029 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12030
12031 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12032
12033 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12034 (dbx_expand_psymtab): ... this.
12035 (start_psymtab): Update.
12036 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12037 (mdebug_expand_psymtab): ... this.
12038 (parse_partial_symbols): Update.
12039 (new_psymtab): Update.
12040 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12041 (xcoff_expand_psymtab): ... this.
12042 (xcoff_start_psymtab): Update.
12043
12044 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12045
12046 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12047 <expand_dependencies>: ... this.
12048 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12049 (partial_symtab::expand_dependencies): ... this.
12050 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12051 Update.
12052 (dwarf2_psymtab::expand_psymtab): Update.
12053 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12054 * mdebugread.c (psymtab_to_symtab_1): Update.
12055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12056
12057 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12058
12059 * psympriv.h (discard_psymtab): Remove.
12060 * dbxread.c (dbx_end_psymtab): Update.
12061 * xcoffread.c (xcoff_end_psymtab): Update.
12062
12063 2020-03-28 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12066 comment.
12067
12068 2020-03-28 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12071
12072 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12073
12074 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12075
12076 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12077
12078 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12079
12080 2020-03-26 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12083 (mark_common_block_symbol_computed, read_tag_string_type)
12084 (attr_to_dynamic_prop, read_subrange_type): Update.
12085 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12086 to be methods on struct attribute.
12087 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12088 (read_call_site_scope, partial_die_info::read)
12089 (partial_die_info::read, lookup_die_type, follow_die_ref):
12090 Update.
12091 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12092 from dwarf2_get_ref_die_offset.
12093 (attribute::constant_value): New method, from
12094 dwarf2_get_attr_constant_value.
12095 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12096 Declare method.
12097 <constant_value>: New method.
12098
12099 2020-03-26 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12102 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12103 (dwarf_type_encoding_name): Move to stringify.c.
12104 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12105 * dwarf2/stringify.c: New file.
12106 * dwarf2/stringify.h: New file.
12107
12108 2020-03-26 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12111 Rewrite.
12112
12113 2020-03-26 Tom Tromey <tom@tromey.com>
12114
12115 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12116 methods.
12117 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12118 (lookup_ranges_base): Likewise.
12119 (read_cutu_die_from_dwo, read_full_die_1): Update.
12120
12121 2020-03-26 Tom Tromey <tom@tromey.com>
12122
12123 * dwarf2/read.c (read_import_statement, read_file_scope)
12124 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12125 (read_lexical_block_scope, read_call_site_scope)
12126 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12127 (handle_struct_member_die, process_structure_scope)
12128 (update_enumeration_type_from_children)
12129 (process_enumeration_scope, read_array_type, read_common_block)
12130 (read_namespace, read_module, read_subroutine_type): Update.
12131 (sibling_die): Remove.
12132
12133 2020-03-26 Tom Tromey <tom@tromey.com>
12134
12135 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12136 (build_type_psymtabs_reader, read_structure_type)
12137 (read_enumeration_type, read_full_die_1): Update.
12138 (dwarf2_attr_no_follow): Move to die.h.
12139 * dwarf2/die.h (struct die_info) <attr>: New method.
12140
12141 2020-03-26 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12144 <base_address>: Now an optional.
12145 (dwarf2_find_base_address, dwarf2_rnglists_process)
12146 (dwarf2_ranges_process, fill_in_loclist_baton)
12147 (dwarf2_symbol_mark_computed): Update.
12148
12149 2020-03-26 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/read.c (struct die_info): Move to die.h.
12152 * dwarf2/die.h: New file.
12153
12154 2020-03-26 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12157 * dwarf2/read.c
12158 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12159 Move to line-header.c.
12160 (read_checked_initial_length_and_offset, read_formatted_entries):
12161 Likewise.
12162 (dwarf_decode_line_header): Split into two.
12163 * dwarf2/line-header.c
12164 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12165 Move from read.c.
12166 (read_checked_initial_length_and_offset, read_formatted_entries):
12167 Likewise.
12168 (dwarf_decode_line_header): New function, split from read.c.
12169
12170 2020-03-26 Tom Tromey <tom@tromey.com>
12171
12172 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12173 Declare method.
12174 * dwarf2/read.c (read_attribute_value): Update.
12175 (dwarf2_per_objfile::read_line_string): Rename from
12176 read_indirect_line_string.
12177 (read_formatted_entries): Update.
12178
12179 2020-03-26 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12182 variable.
12183
12184 2020-03-26 Tom Tromey <tom@tromey.com>
12185
12186 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12187 const.
12188 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12189 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12190 parameter const.
12191
12192 2020-03-26 Tom Tromey <tom@tromey.com>
12193
12194 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12195 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12196 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12197 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12198
12199 2020-03-26 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12202 file_names_size, file_full_name, file_file_name>: Use const.
12203 <file_name_at, file_names>: Add const overload.
12204 * dwarf2/line-header.c (line_header::file_file_name)
12205 (line_header::file_full_name): Update.
12206
12207 2020-03-26 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12210 (macro_start_file, consume_improper_spaces)
12211 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12212 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12213 (dwarf_decode_macros): Move to macro.c.
12214 * dwarf2/macro.c: New file.
12215 * dwarf2/macro.h: New file.
12216 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12217
12218 2020-03-26 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12221 method.
12222 * dwarf2/section.c: New method. From
12223 read_indirect_string_at_offset_from.
12224 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12225 (read_indirect_string_at_offset_from): Move to section.c.
12226 (read_indirect_string_at_offset): Rewrite.
12227 (read_indirect_line_string_at_offset): Remove.
12228 (read_indirect_string, read_indirect_line_string)
12229 (dwarf_decode_macro_bytes): Update.
12230
12231 2020-03-26 Tom Tromey <tom@tromey.com>
12232
12233 * dwarf2/section.h (struct dwarf2_section_info)
12234 <overload_complaint>: Declare.
12235 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12236 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12237 Rename from dwarf2_section_buffer_overflow_complaint.
12238 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12239 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12240
12241 2020-03-26 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12244 Declare.
12245 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12246 Move from read.c.
12247 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12248 to section.c.
12249
12250 2020-03-26 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12253
12254 2020-03-26 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12257 "builder".
12258 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12259 parameter.
12260 (dwarf_decode_macros): Update.
12261
12262 2020-03-26 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/read.c (read_attribute_value): Update.
12265 (read_indirect_string_from_dwz): Move to dwz.c; change into
12266 method.
12267 (dwarf_decode_macro_bytes): Update.
12268 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12269 * dwarf2/dwz.c: New file.
12270 * Makefile.in (COMMON_SFILES): Add dwz.c.
12271
12272 2020-03-26 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12275 * dwarf2/read.c: Add include.
12276 * dwarf2/index-write.c: Add include.
12277 * dwarf2/index-cache.c: Add include.
12278 * dwarf2/dwz.h: New file.
12279
12280 2020-03-25 Tom Tromey <tom@tromey.com>
12281
12282 * compile/compile-object-load.c (get_out_value_type): Mention
12283 correct symbol name in error message.
12284
12285 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12286
12287 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12288
12289 2020-03-25 Tom de Vries <tdevries@suse.de>
12290
12291 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12292 * symmisc.c (dump_symtab_1): Print user and includes fields.
12293 (maintenance_info_symtabs): Same.
12294
12295 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12296
12297 PR gdb/25534
12298 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12299 (riscv_regcache_cooked_write): New function.
12300 (riscv_push_dummy_call): Use new function.
12301 (riscv_return_value): Likewise.
12302
12303 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12304
12305 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12306 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12307 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12308 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12309 * infrun.c (follow_fork): Likewise.
12310 (follow_fork_inferior): Likewise.
12311 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12312 * linux-nat.h (class linux_nat_target): Likewise.
12313 * remote.c (class remote_target) <follow_fork>: Likewise.
12314 (remote_target::follow_fork): Likewise.
12315 * target-delegates.c: Re-generate.
12316 * target.c (default_follow_fork): Likewise.
12317 (target_follow_fork): Likewise.
12318 * target.h (struct target_ops) <follow_fork>: Likewise.
12319 (target_follow_fork): Likewise.
12320
12321 2020-03-24 Tom de Vries <tdevries@suse.de>
12322
12323 * psymtab.c (maintenance_info_psymtabs): Print user field.
12324
12325 2020-03-20 Tom Tromey <tromey@adacore.com>
12326
12327 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12328 const.
12329 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12330 const.
12331
12332 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12333
12334 * ptrace.m4: Don't check for ptrace declaration.
12335 * config.in: Re-generate.
12336 * configure: Re-generate.
12337 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12338 not defined.
12339
12340 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12341
12342 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12343 `PTRACE_TYPE_RET'.
12344 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12345 * sparc-nat.c (gdb_ptrace): Likewise.
12346 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12347
12348 2020-03-20 Tom Tromey <tromey@adacore.com>
12349
12350 * c-exp.y (lex_one_token): Fix assert.
12351
12352 2020-03-20 Tom Tromey <tromey@adacore.com>
12353
12354 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12355 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12356 strncpy call.
12357
12358 2020-03-20 Tom Tromey <tromey@adacore.com>
12359
12360 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12361
12362 2020-03-20 Tom Tromey <tromey@adacore.com>
12363
12364 * ada-valprint.c (print_variant_part): Remove parameters; switch
12365 to value-based API.
12366 (print_field_values): Likewise.
12367 (ada_val_print_struct_union): Likewise.
12368 (ada_value_print_1): Update.
12369
12370 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12371
12372 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12373 nbsd_nat_target instead of inf_ptrace_target.
12374 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12375 nbsd_nat_target.
12376
12377 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12378
12379 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12380 it to the ptrace call.
12381 * (store_registers): Likewise.
12382
12383 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12384
12385 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12386 it to the ptrace call.
12387 * (store_registers): Likewise.
12388
12389 2020-03-19 Luis Machado <luis.machado@linaro.org>
12390
12391 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12392 valid, fetch vg value from ptrace.
12393
12394 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12395 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12396 * inf-ptrace.c: Likewise.
12397 * (gdb_ptrace): Add.
12398 * (inf_ptrace_target::resume): Update.
12399 * (inf_ptrace_target::xfer_partial): Likewise.
12400 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12401 * (inf_ptrace_peek_poke): Update.
12402
12403 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12404
12405 * x86-bsd-nat.c (gdb_ptrace): New.
12406 * (x86bsd_dr_set): Add new argument `ptid'.
12407 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12408 x86bsd_dr_set_addr): Update.
12409
12410 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12411
12412 * remote.c (remote_target::process_stop_reply): Handle events for
12413 all threads differently.
12414
12415 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12416
12417 * completer.c (completion_tracker::remove_completion): Define new
12418 function.
12419 * completer.h (completion_tracker::remove_completion): Declare new
12420 function.
12421 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12422 when adding a C++ function symbol.
12423
12424 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12425
12426 * completer.c (completion_tracker::completion_hash_entry): Define
12427 new class.
12428 (advance_to_filename_complete_word_point): Call
12429 recompute_lowest_common_denominator.
12430 (completion_tracker::completion_tracker): Call discard_completions
12431 to setup the hash table.
12432 (completion_tracker::discard_completions): Allow for being called
12433 from the constructor, pass new equal function, and element deleter
12434 when constructing the hash table. Initialise new class member
12435 variables.
12436 (completion_tracker::maybe_add_completion): Remove use of
12437 m_entries_vec, and store more information into m_entries_hash.
12438 (completion_tracker::recompute_lcd_visitor): New function, most
12439 content taken from...
12440 (completion_tracker::recompute_lowest_common_denominator):
12441 ...here, this now just visits each item in the hash calling the
12442 above visitor.
12443 (completion_tracker::build_completion_result): Remove use of
12444 m_entries_vec, call recompute_lowest_common_denominator.
12445 * completer.h (completion_tracker::have_completions): Remove use
12446 of m_entries_vec.
12447 (completion_tracker::completion_hash_entry): Declare new class.
12448 (completion_tracker::recompute_lowest_common_denominator): Change
12449 function signature.
12450 (completion_tracker::recompute_lcd_visitor): Declare new function.
12451 (completion_tracker::m_entries_vec): Delete.
12452 (completion_tracker::m_entries_hash): Initialize to NULL.
12453 (completion_tracker::m_lowest_common_denominator_valid): New
12454 member variable.
12455 (completion_tracker::m_lowest_common_denominator_max_length): New
12456 member variable.
12457
12458 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12459
12460 * regformats/regdef.h: Put reg in gdb namespace.
12461
12462 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12463
12464 * i386-bsd-nat.c (gdb_ptrace): New.
12465 * (i386bsd_fetch_inferior_registers,
12466 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12467 * (i386bsd_fetch_inferior_registers,
12468 i386bsd_store_inferior_registers) Use gdb_ptrace.
12469
12470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12471
12472 * amd64-bsd-nat.c (gdb_ptrace): New.
12473 * (amd64bsd_fetch_inferior_registers,
12474 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12475 * (amd64bsd_fetch_inferior_registers,
12476 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12477
12478 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12479
12480 * user-regs.c (user_reg::read): Rename to...
12481 (user_reg::xread): ...this.
12482 * (append_user_reg): Rename argument `read' to `xread'.
12483 * (user_reg_add_builtin): Likewise.
12484 * (user_reg_add): Likewise.
12485 * (value_of_user_reg): Likewise.
12486
12487 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12488
12489 * sparc-nat.c (gdb_ptrace): New.
12490 * sparc-nat.c (sparc_fetch_inferior_registers)
12491 (sparc_store_inferior_registers) Remove obsolete comment.
12492 * sparc-nat.c (sparc_fetch_inferior_registers)
12493 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12494 * sparc-nat.c (sparc_fetch_inferior_registers)
12495 (sparc_store_inferior_registers) Use gdb_ptrace.
12496
12497 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12498
12499 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12500 it to the ptrace call.
12501 * sh-nbsd-nat.c (store_registers): Likewise.
12502
12503 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12504
12505 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12506 nbsd_nat_target instead of inf_ptrace_target.
12507 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12508 nbsd_nat_target.
12509
12510 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12511
12512 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12513
12514 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12515
12516 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12517 <sys/sysctl.h>.
12518 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12519
12520 2020-03-17 Tom de Vries <tdevries@suse.de>
12521
12522 PR gdb/23710
12523 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12524 fields.
12525 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12526 fields.
12527 (process_imported_unit_die): Skip import of c++ CUs.
12528
12529 2020-03-16 Tom Tromey <tom@tromey.com>
12530
12531 * p-valprint.c (pascal_object_print_value): Initialize
12532 base_value.
12533
12534 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12535 Shahab Vahedi <shahab@synopsys.com>
12536
12537 * Makefile.in: Add arch/arc.o
12538 * configure.tgt: Likewise.
12539 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12540 (_initialize_arc_tdep): Don't initialize old target descriptions.
12541 (arc_read_description): New function to cache target descriptions.
12542 * arc-tdep.h (arc_read_description): Add proto type.
12543 * arch/arc.c: New file.
12544 * arch/arc.h: Likewise.
12545 * features/Makefile: Replace old target descriptions with new.
12546 * features/arc-arcompact.c: Remove.
12547 * features/arc-arcompact.xml: Likewise.
12548 * features/arc-v2.c: Likewise
12549 * features/arc-v2.xml: Likewise
12550 * features/arc/aux-arcompact.xml: New file.
12551 * features/arc/aux-v2.xml: Likewise.
12552 * features/arc/core-arcompact.xml: Likewise.
12553 * features/arc/core-v2.xml: Likewise.
12554 * features/arc/aux-arcompact.c: Generate.
12555 * features/arc/aux-v2.c: Likewise.
12556 * features/arc/core-arcompact.c: Likewise.
12557 * features/arc/core-v2.c: Likewise.
12558 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12559
12560 2020-03-16 Tom Tromey <tromey@adacore.com>
12561
12562 PR gdb/25663:
12563 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12564 putting value into bcache.
12565
12566 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12567
12568 PR gdb/21500
12569 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12570 to...
12571 (amd64_windows_init_abi_common): ... this. Don't set size of
12572 long type.
12573 (amd64_windows_init_abi): New function.
12574 (amd64_cygwin_init_abi): New function.
12575 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12576 the Cygwin OS ABI.
12577 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12578 comment.
12579
12580 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12581
12582 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12583 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12584 (pe_import_directory_entry): New struct type.
12585 (is_linked_with_cygwin_dll): New function.
12586 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12587 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12588 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12589
12590 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12591
12592 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12593 i386_cygwin_core_osabi_sniffer.
12594
12595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12596
12597 * i386-cygwin-tdep.c: Rename to...
12598 * i386-windows-tdep.c: ... this.
12599 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12600 i386-windows-tdep.c.
12601 * configure.tgt: Likewise.
12602
12603 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12604
12605 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12606 * osabi.c (gdb_osabi_names): Add "Windows".
12607 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12608 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12609 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12610 i386_cygwin_osabi_sniffer.
12611 (_initialize_i386_cygwin_tdep): Register OS ABI
12612 GDB_OSABI_WINDOWS for i386.
12613 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12614 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12615 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12616 for x86-64.
12617 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12618 when the target matches '*-*-mingw*'.
12619
12620 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12621
12622 * defs.h (enum gdb_osabi): Move to...
12623 * osabi.h (enum gdb_osabi): ... here.
12624 * gdbarch.sh: Include osabi.h in gdbarch.h.
12625 * gdbarch.h: Re-generate.
12626
12627 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12628
12629 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12630 function.
12631 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12632
12633 2020-03-14 Tom Tromey <tom@tromey.com>
12634
12635 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12636 for C++.
12637 (c_type_print_modifier): Likewise. Add "language" parameter.
12638 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12639 (c_type_print_base_1): Update.
12640 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12641 constants.
12642 * type-stack.c (type_stack::insert): Handle tp_atomic and
12643 tp_restrict.
12644 (type_stack::follow_type_instance_flags): Likewise.
12645 (type_stack::follow_types): Likewise. Merge type-following code.
12646 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12647 (space_identifier, cv_with_space_id)
12648 (const_or_volatile_or_space_identifier_noopt)
12649 (const_or_volatile_or_space_identifier): Remove.
12650 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12651 rules.
12652 (ptr_operator, typebase): Update.
12653 (enum token_flag) <FLAG_C>: New constant.
12654 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12655 "_Atomic".
12656 (lex_one_token): Handle FLAG_C.
12657
12658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12659
12660 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12661 it to the ptrace call.
12662 * m68k-bsd-nat.c (store_registers): Likewise.
12663
12664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12665
12666 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12667 gdb_byte *.
12668 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12669 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12670 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12671
12672 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12673
12674 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12675 nbsd_nat_target instead of inf_ptrace_target.
12676 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12677 nbsd_nat_target.
12678
12679 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12680
12681 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12682 register_t.
12683
12684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12685
12686 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12687 it to the ptrace call.
12688 * alpha-bsd-nat.c (store_registers): Likewise.
12689
12690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12691
12692 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12693 includes.
12694 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12695 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12696 fill_fpregset): Likewise.
12697
12698 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12699
12700 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12701 nbsd_nat_target instead of inf_ptrace_target.
12702 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12703 nbsd_nat_target.
12704
12705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12706
12707 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12708 register_t.
12709
12710 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12711
12712 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12713 it to the ptrace call.
12714 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12715 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12716 * arm-nbsd-nat.c (store_register): Likewise.
12717 * arm-nbsd-nat.c (store_regs): Likewise.
12718 * arm-nbsd-nat.c (store_fp_register): Likewise.
12719 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12720
12721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12722
12723 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12724 nbsd_nat_target instead of inf_ptrace_target.
12725 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12726 nbsd_nat_target.
12727
12728 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12729
12730 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12731 it to the ptrace call.
12732 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12733
12734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12735
12736 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12737 it to the ptrace call.
12738 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12739
12740 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12741
12742 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12743 gdb_byte *.
12744 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12745
12746 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12747
12748 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12749 instead of inf_ptrace_target.
12750 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12751 nbsd_nat_target.
12752
12753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12754
12755 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12756 register_t.
12757
12758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12759
12760 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12761 register_t.
12762
12763 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12764
12765 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12766 register_t.
12767
12768 2020-03-13 Tom Tromey <tom@tromey.com>
12769
12770 * value.h (val_print): Don't declare.
12771 * valprint.h (val_print_array_elements)
12772 (val_print_scalar_formatted, generic_val_print): Don't declare.
12773 * valprint.c (generic_val_print_array): Take a struct value.
12774 (generic_val_print_ptr, generic_val_print_memberptr)
12775 (generic_val_print_bool, generic_val_print_int)
12776 (generic_val_print_char, generic_val_print_complex)
12777 (generic_val_print): Remove.
12778 (generic_value_print): Update.
12779 (do_val_print): Remove unused parameters. Don't call
12780 la_val_print.
12781 (val_print): Remove.
12782 (common_val_print): Update. Don't call value_check_printable.
12783 (val_print_scalar_formatted, val_print_array_elements): Remove.
12784 * rust-lang.c (rust_val_print): Remove.
12785 (rust_language_defn): Update.
12786 * p-valprint.c (pascal_val_print): Remove.
12787 (pascal_value_print_inner): Update.
12788 (pascal_object_print_val_fields, pascal_object_print_val):
12789 Remove.
12790 (pascal_object_print_static_field): Update.
12791 * p-lang.h (pascal_val_print): Don't declare.
12792 * p-lang.c (pascal_language_defn): Update.
12793 * opencl-lang.c (opencl_language_defn): Update.
12794 * objc-lang.c (objc_language_defn): Update.
12795 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12796 * m2-lang.h (m2_val_print): Don't declare.
12797 * m2-lang.c (m2_language_defn): Update.
12798 * language.h (struct language_defn) <la_val_print>: Remove.
12799 * language.c (unk_lang_value_print_inner): Rename. Change
12800 argument types.
12801 (unknown_language_defn, auto_language_defn): Update.
12802 * go-valprint.c (go_val_print): Remove.
12803 * go-lang.h (go_val_print): Don't declare.
12804 * go-lang.c (go_language_defn): Update.
12805 * f-valprint.c (f_val_print): Remove.
12806 * f-lang.h (f_value_print): Don't declare.
12807 * f-lang.c (f_language_defn): Update.
12808 * d-valprint.c (d_val_print): Remove.
12809 * d-lang.h (d_value_print): Don't declare.
12810 * d-lang.c (d_language_defn): Update.
12811 * cp-valprint.c (cp_print_value_fields)
12812 (cp_print_value_fields_rtti, cp_print_value): Remove.
12813 (cp_print_static_field): Update.
12814 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12815 (c_val_print_struct, c_val_print_union, c_val_print_int)
12816 (c_val_print_memberptr, c_val_print): Remove.
12817 * c-lang.h (c_val_print_array, cp_print_value_fields)
12818 (cp_print_value_fields_rtti): Don't declare.
12819 * c-lang.c (c_language_defn, cplus_language_defn)
12820 (asm_language_defn, minimal_language_defn): Update.
12821 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12822 (ada_val_print_enum): Take a struct value.
12823 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12824 (ada_val_print): Remove.
12825 (ada_value_print_1): Update.
12826 (printable_val_type): Remove.
12827 * ada-lang.h (ada_val_print): Don't declare.
12828 * ada-lang.c (ada_language_defn): Update.
12829
12830 2020-03-13 Tom Tromey <tom@tromey.com>
12831
12832 * valprint.c (do_val_print): Update.
12833 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12834 a struct value.
12835 (value_to_value_object_no_release): Declare.
12836 * python/py-value.c (value_to_value_object_no_release): New
12837 function.
12838 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12839 struct value.
12840 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12841 function.
12842 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12843 a struct value.
12844 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12845 Declare.
12846 (gdbscm_apply_val_pretty_printer): Take a struct value.
12847 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12848 value.
12849 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12850 value.
12851 * extension-priv.h (struct extension_language_ops)
12852 <apply_val_pretty_printer>: Take a struct value.
12853 * cp-valprint.c (cp_print_value): Create a struct value.
12854 (cp_print_value): Update.
12855
12856 2020-03-13 Tom Tromey <tom@tromey.com>
12857
12858 * ada-valprint.c (print_field_values): Call common_val_print.
12859
12860 2020-03-13 Tom Tromey <tom@tromey.com>
12861
12862 * ada-valprint.c (val_print_packed_array_elements): Remove
12863 bitoffset and val parameters. Call common_val_print.
12864 (ada_val_print_string): Remove offset, address, and original_value
12865 parameters.
12866 (ada_val_print_array): Update.
12867 (ada_value_print_array): New function.
12868 (ada_value_print_1): Call it.
12869
12870 2020-03-13 Tom Tromey <tom@tromey.com>
12871
12872 * ada-valprint.c (ada_value_print): Use common_val_print.
12873
12874 2020-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12877
12878 2020-03-13 Tom Tromey <tom@tromey.com>
12879
12880 * ada-valprint.c (ada_value_print_num): New function.
12881 (ada_value_print_1): Use it.
12882
12883 2020-03-13 Tom Tromey <tom@tromey.com>
12884
12885 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12886
12887 2020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * ada-valprint.c (ada_value_print_ptr): New function.
12890 (ada_value_print_1): Use it.
12891
12892 2020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12895 call common_val_print.
12896 (ada_val_print_1): Update.
12897 (ada_value_print_1): New function.
12898 (ada_value_print_inner): Rewrite.
12899
12900 2020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * cp-valprint.c (cp_print_value_fields): Update.
12903 (cp_print_value): New function.
12904
12905 2020-03-13 Tom Tromey <tom@tromey.com>
12906
12907 * m2-valprint.c (m2_value_print_inner): Use
12908 cp_print_value_fields.
12909 * cp-valprint.c (cp_print_value_fields): New function.
12910 * c-valprint.c (c_value_print_struct): New function.
12911 (c_value_print_inner): Use c_value_print_struct.
12912 * c-lang.h (cp_print_value_fields): Declare.
12913
12914 2020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * c-valprint.c (c_value_print_array): New function.
12917 (c_value_print_inner): Use it.
12918
12919 2020-03-13 Tom Tromey <tom@tromey.com>
12920
12921 * c-valprint.c (c_value_print_memberptr): New function.
12922 (c_value_print_inner): Use it.
12923
12924 2020-03-13 Tom Tromey <tom@tromey.com>
12925
12926 * c-valprint.c (c_value_print_int): New function.
12927 (c_value_print_inner): Use it.
12928
12929 2020-03-13 Tom Tromey <tom@tromey.com>
12930
12931 * c-valprint.c (c_value_print_ptr): New function.
12932 (c_value_print_inner): Use it.
12933
12934 2020-03-13 Tom Tromey <tom@tromey.com>
12935
12936 * c-valprint.c (c_value_print_inner): Rewrite.
12937
12938 2020-03-13 Tom Tromey <tom@tromey.com>
12939
12940 * valprint.c (generic_value_print_complex): New function.
12941 (generic_value_print): Use it.
12942
12943 2020-03-13 Tom Tromey <tom@tromey.com>
12944
12945 * valprint.c (generic_val_print_float): Don't call
12946 val_print_scalar_formatted.
12947 (generic_val_print, generic_value_print): Update.
12948
12949 2020-03-13 Tom Tromey <tom@tromey.com>
12950
12951 * valprint.c (generic_value_print_char): New function
12952 (generic_value_print): Use it.
12953
12954 2020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * valprint.c (generic_value_print_int): New function.
12957 (generic_value_print): Use it.
12958
12959 2020-03-13 Tom Tromey <tom@tromey.com>
12960
12961 * valprint.c (generic_value_print_bool): New function.
12962 (generic_value_print): Use it.
12963
12964 2020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * valprint.c (generic_val_print_func): Simplify.
12967 (generic_val_print, generic_value_print): Update.
12968
12969 2020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * valprint.c (generic_val_print_flags): Remove.
12972 (generic_val_print, generic_value_print): Update.
12973 (val_print_type_code_flags): Add original_value parameter.
12974
12975 2020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * valprint.c (generic_val_print): Update.
12978 (generic_value_print): Update.
12979 * valprint.c (generic_val_print_enum): Don't call
12980 val_print_scalar_formatted.
12981
12982 2020-03-13 Tom Tromey <tom@tromey.com>
12983
12984 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12985 * valprint.c (generic_value_print_ptr): New function.
12986
12987 2020-03-13 Tom Tromey <tom@tromey.com>
12988
12989 * valprint.c (generic_value_print): Rewrite.
12990
12991 2020-03-13 Tom Tromey <tom@tromey.com>
12992
12993 * p-valprint.c (pascal_object_print_value_fields)
12994 (pascal_object_print_value): New functions.
12995
12996 2020-03-13 Tom Tromey <tom@tromey.com>
12997
12998 * p-valprint.c (pascal_value_print_inner): Rewrite.
12999
13000 2020-03-13 Tom Tromey <tom@tromey.com>
13001
13002 * f-valprint.c (f_value_print_innner): Rewrite.
13003
13004 2020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * m2-valprint.c (m2_print_unbounded_array): New overload.
13007 (m2_print_unbounded_array): Update.
13008 (m2_print_array_contents): Take a struct value.
13009 (m2_value_print_inner): Rewrite.
13010
13011 2020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13014 (d_value_print_inner): New function.
13015 * d-lang.h (d_value_print_inner): Declare.
13016 * d-lang.c (d_language_defn): Use d_value_print_inner.
13017
13018 2020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * go-valprint.c (go_value_print_inner): New function.
13021 * go-lang.h (go_value_print_inner): Declare.
13022 * go-lang.c (go_language_defn): Use go_value_print_inner.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13027 API.
13028 (rust_val_print): Rewrite.
13029 (rust_value_print_inner): New function, from rust_val_print.
13030 (rust_language_defn): Use rust_value_print_inner.
13031
13032 2020-03-13 Tom Tromey <tom@tromey.com>
13033
13034 * ada-valprint.c (ada_value_print_inner): New function.
13035 * ada-lang.h (ada_value_print_inner): Declare.
13036 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13037
13038 2020-03-13 Tom Tromey <tom@tromey.com>
13039
13040 * f-valprint.c (f_value_print_innner): New function.
13041 * f-lang.h (f_value_print_innner): Declare.
13042 * f-lang.c (f_language_defn): Use f_value_print_innner.
13043
13044 2020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * p-valprint.c (pascal_value_print_inner): New function.
13047 * p-lang.h (pascal_value_print_inner): Declare.
13048 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * m2-valprint.c (m2_value_print_inner): New function.
13053 * m2-lang.h (m2_value_print_inner): Declare.
13054 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13055
13056 2020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13059 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13060 * c-valprint.c (c_value_print_inner): New function.
13061 * c-lang.h (c_value_print_inner): Declare.
13062 * c-lang.c (c_language_defn, cplus_language_defn)
13063 (asm_language_defn, minimal_language_defn): Use
13064 c_value_print_inner.
13065
13066 2020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * p-valprint.c (pascal_object_print_value_fields): Now static.
13069 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13070
13071 2020-03-13 Tom Tromey <tom@tromey.com>
13072
13073 * c-valprint.c (c_val_print_array): Simplify.
13074
13075 2020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * valprint.c (value_print_array_elements): New function.
13078 * valprint.h (value_print_array_elements): Declare.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13083 * mips-tdep.c (mips_print_register): Use
13084 value_print_scalar_formatted.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * valprint.h (value_print_scalar_formatted): Declare.
13089 * valprint.c (value_print_scalar_formatted): New function.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * valprint.h (generic_value_print): Declare.
13094 * valprint.c (generic_value_print): New function.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.c (do_val_print): Call la_value_print_inner, if
13099 available.
13100 * rust-lang.c (rust_language_defn): Update.
13101 * p-lang.c (pascal_language_defn): Update.
13102 * opencl-lang.c (opencl_language_defn): Update.
13103 * objc-lang.c (objc_language_defn): Update.
13104 * m2-lang.c (m2_language_defn): Update.
13105 * language.h (struct language_defn) <la_value_print_inner>: New
13106 member.
13107 * language.c (unknown_language_defn, auto_language_defn): Update.
13108 * go-lang.c (go_language_defn): Update.
13109 * f-lang.c (f_language_defn): Update.
13110 * d-lang.c (d_language_defn): Update.
13111 * c-lang.c (c_language_defn, cplus_language_defn)
13112 (asm_language_defn, minimal_language_defn): Update.
13113 * ada-lang.c (ada_language_defn): Update.
13114
13115 2020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * c-valprint.c (c_value_print): Use common_val_print.
13118
13119 2020-03-13 Tom Tromey <tom@tromey.com>
13120
13121 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13122
13123 2020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * f-valprint.c (f77_print_array_1, f_val_print): Use
13126 common_val_print.
13127
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * riscv-tdep.c (riscv_print_one_register_info): Use
13131 common_val_print.
13132
13133 2020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * mi/mi-main.c (output_register): Use common_val_print.
13136
13137 2020-03-13 Tom Tromey <tom@tromey.com>
13138
13139 * infcmd.c (default_print_one_register_info): Use
13140 common_val_print.
13141
13142 2020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * valprint.h (common_val_print_checked): Declare.
13145 * valprint.c (common_val_print_checked): New function.
13146 * stack.c (print_frame_arg): Use common_val_print_checked.
13147
13148 2020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * valprint.c (do_val_print): New function, from val_print.
13151 (val_print): Use do_val_print.
13152 (common_val_print): Use do_val_print.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * valprint.c (value_print): Use scoped_value_mark.
13157
13158 2020-03-13 Tom de Vries <tdevries@suse.de>
13159
13160 PR symtab/25646
13161 * psymtab.c (partial_symtab::partial_symtab): Don't set
13162 globals_offset and statics_offset. Push element onto
13163 current_global_psymbols and current_static_psymbols stacks.
13164 (concat): New function.
13165 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13166 element from current_global_psymbols and current_static_psymbols
13167 stacks. Concat popped elements to global_psymbols and
13168 static_symbols.
13169 (add_psymbol_to_list): Use current_global_psymbols and
13170 current_static_psymbols stacks.
13171 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13172 current_static_psymbols fields.
13173
13174 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13175
13176 * corelow.c (sniff_core_bfd): Remove.
13177 (class core_target) <m_core_vec>: Remove.
13178 (core_target::core_target): Update.
13179 (core_file_fns): Remove.
13180 (deprecated_add_core_fns): Remove.
13181 (default_core_sniffer): Remove.
13182 (sniff_core_bfd): Remove.
13183 (default_check_format): Remove.
13184 (gdb_check_format): Remove.
13185 (core_target_open): Update.
13186 (core_target::get_core_register_section): Update.
13187 (get_core_registers_cb): Update.
13188 (core_target::fetch_registers): Update.
13189 * gdbcore.h (struct core_fns): Remove.
13190 (deprecated_add_core_fns): Remove.
13191 (default_core_sniffer): Remove.
13192 (default_check_format): Remove.
13193
13194 2020-03-12 Tom Tromey <tom@tromey.com>
13195
13196 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13197 CORE_ADDR.
13198 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13199
13200 2020-03-12 Tom Tromey <tom@tromey.com>
13201
13202 * remote.c (remote_target::download_tracepoint)
13203 (remote_target::enable_tracepoint)
13204 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13205 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13206 sprintf_vma.
13207
13208 2020-03-12 Tom Tromey <tom@tromey.com>
13209
13210 * symfile-mem.c: Update CORE_ADDR size assert.
13211
13212 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13213
13214 * selftest.m4: Move to gdbsupport/.
13215 * acinclude.m4: Update path to selftest.m4.
13216
13217 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13218
13219 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13220 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13221 gdbarch-selfselftests.c and selftest-arch.c.
13222 (SUBDIR_UNITTESTS_OBS): Rename to...
13223 (SELFTESTS_OBS): ... this.
13224 (COMMON_SFILES): Remove disasm-selftests.c and
13225 gdbarch-selftests.c.
13226 * configure.ac: Don't add selftest-arch.{c,o} to
13227 CONFIG_{SRCS,OBS}.
13228 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13229 preprocessor conditions.
13230
13231 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13232
13233 * configure.ac: Don't source bfd/development.sh.
13234 * selftest.m4: Modify comment.
13235 * configure: Re-generate.
13236
13237 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13238
13239 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13240 not "true" or "false".
13241 * configure: Re-generate.
13242
13243 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13244
13245 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13246 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13247 renamed to arm_nbsd_supply_gregset.
13248 (fetch_register): Update to call arm_nbsd_supply_gregset.
13249 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13250 (arm_netbsd_nat_target::fetch_registers): Update.
13251 (fetch_elfcore_registers): Removed.
13252 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13253 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13254 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13255 not require NetBSD system headers.
13256 (arm_nbsd_regset): New struct.
13257 (arm_nbsd_iterate_over_regset_sections): New function.
13258 (arm_netbsd_init_abi_common): Updated to call
13259 set_gdbarch_iterate_over_regset_sections.
13260 * arm-nbsd-tdep.h: New file.
13261
13262 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13263
13264 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13265 recursion.
13266
13267 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13268
13269 * configure: Re-generate.
13270
13271 2020-03-11 Tom Tromey <tromey@adacore.com>
13272
13273 * ada-typeprint.c (print_choices): Fix comment.
13274
13275 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13276
13277 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13278 previous item in the list, when the list has no items.
13279
13280 2020-03-11 Tom de Vries <tdevries@suse.de>
13281
13282 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13283 PROP_LOCLIST handling code.
13284
13285 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13286
13287 * buildsym-legacy.c (record_line): Pass extra parameter to
13288 record_line.
13289 * buildsym.c (buildsym_compunit::record_line): Take an extra
13290 parameter, reduce duplication in the line table, and record the
13291 is_stmt flag in the line table.
13292 * buildsym.h (buildsym_compunit::record_line): Add extra
13293 parameter.
13294 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13295 non-statement lines.
13296 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13297 this to the symtab builder.
13298 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13299 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13300 through to dwarf_record_line_1.
13301 * infrun.c (process_event_stop_test): When stepping, don't stop at
13302 a non-statement instruction, and only refresh the step info when
13303 we land in the middle of a line's range. Also add an extra
13304 comment.
13305 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13306 field.
13307 * record-btrace.c (btrace_find_line_range): Only record lines
13308 marked as is-statement.
13309 * stack.c (frame_show_address): Show the frame address if we are
13310 in a non-statement sal.
13311 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13312 (maintenance_print_one_line_table): Print a header for the is_stmt
13313 column, and include is_stmt information in the output.
13314 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13315 preference to non-statements.
13316 (find_pcs_for_symtab_line): Prefer is-statement entries.
13317 (find_line_common): Likewise.
13318 * symtab.h (struct linetable_entry): Add is_stmt field.
13319 (struct symtab_and_line): Likewise.
13320 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13321 arranging the line table.
13322
13323 2020-03-07 Tom de Vries <tdevries@suse.de>
13324
13325 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13326 DIE.
13327
13328 2020-03-07 Tom Tromey <tom@tromey.com>
13329
13330 * valops.c (value_literal_complex): Remove obsolete comment.
13331 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13332 comment.
13333
13334 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13335
13336 * infrun.h: Forward-declare thread_info.
13337 (set_step_info): Add thread_info parameter, add doc.
13338 * infrun.c (set_step_info): Add thread_info parameter, move doc
13339 to header.
13340 * infrun.c (process_event_stop_test): Pass thread to
13341 set_step_info call.
13342 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13343 set_step_info.
13344 (prepare_one_step): Add thread_info parameter, pass it to
13345 set_step_frame and prepare_one_step (recursive) call.
13346 (step_1): Pass thread to prepare_one_step call.
13347 (step_command_fsm::should_stop): Pass thread to
13348 prepare_one_step.
13349 (until_next_fsm): Pass thread to set_step_frame call.
13350 (finish_command): Pass thread to set_step_info call.
13351
13352 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13353
13354 * windows-tdep.c (windows_solib_create_inferior_hook):
13355 Check if inferior is running.
13356
13357 2020-03-06 Tom de Vries <tdevries@suse.de>
13358
13359 * NEWS: Fix "the the".
13360 * ctfread.c: Same.
13361
13362 2020-03-06 Tom de Vries <tdevries@suse.de>
13363
13364 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13365
13366 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13367
13368 * .dir-locals.el: Add a comment referencing the other copies of
13369 this file.
13370
13371 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13372
13373 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13374 psargs.
13375
13376 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13377
13378 * .gitattributes: New file.
13379
13380 2020-03-04 Tom Tromey <tom@tromey.com>
13381
13382 * symmisc.c (print_symbol_bcache_statistics)
13383 (print_objfile_statistics): Update.
13384 * symfile.c (allocate_symtab): Use intern.
13385 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13386 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13387 macro_cache>: Remove.
13388 <string_cache>: New member.
13389 (struct objfile) <intern>: New methods.
13390 * elfread.c (elf_symtab_read): Use intern.
13391 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13392 (dwarf2_compute_name, dwarf2_physname)
13393 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13394 names.
13395 (guess_partial_die_structure_name): Update.
13396 (partial_die_info::fixup): Intern name.
13397 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13398 name.
13399 (dwarf2_name): Intern name. Update.
13400 * buildsym.c (buildsym_compunit::get_macro_table): Use
13401 string_cache.
13402
13403 2020-03-04 Tom Tromey <tom@tromey.com>
13404
13405 * jit.c (bfd_open_from_target_memory): Make "target" const.
13406 * corefile.c (gnutarget): Now const.
13407 * gdbcore.h (gnutarget): Now const.
13408
13409 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13410
13411 * NEWS: Mention support for WOW64 processes.
13412 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13413 (amd64_windows_segment_register_p): Remove static.
13414 (_initialize_amd64_windows_nat): Update.
13415 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13416 * i386-windows-nat.c (context_offset): Update.
13417 (i386_mappings): Rename and remove static.
13418 (i386_windows_segment_register_p): Remove static.
13419 (_initialize_i386_windows_nat): Update.
13420 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13421 (STATUS_WX86_SINGLE_STEP): New macro.
13422 (EnumProcessModulesEx): New macro.
13423 (Wow64SuspendThread): New macro.
13424 (Wow64GetThreadContext): New macro.
13425 (Wow64SetThreadContext): New macro.
13426 (Wow64GetThreadSelectorEntry): New macro.
13427 (windows_set_context_register_offsets): Add static.
13428 (windows_set_segment_register_p): Likewise.
13429 (windows_add_thread): Adapt for WOW64 processes.
13430 (windows_fetch_one_register): Likewise.
13431 (windows_nat_target::fetch_registers): Likewise.
13432 (windows_store_one_register): Likewise.
13433 (display_selector): Likewise.
13434 (display_selectors): Likewise.
13435 (handle_exception): Likewise.
13436 (windows_continue): Likewise.
13437 (windows_nat_target::resume): Likewise.
13438 (windows_add_all_dlls): Likewise.
13439 (do_initial_windows_stuff): Likewise.
13440 (windows_nat_target::attach): Likewise.
13441 (windows_get_exec_module_filename): Likewise.
13442 (windows_nat_target::create_inferior): Likewise.
13443 (windows_xfer_siginfo): Likewise.
13444 (_initialize_loadable): Initialize Wow64SuspendThread,
13445 Wow64GetThreadContext, Wow64SetThreadContext,
13446 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13447 * windows-nat.h (windows_set_context_register_offsets):
13448 Remove declaration.
13449 (windows_set_segment_register_p): Likewise.
13450 (i386_windows_segment_register_p): Add declaration.
13451 (amd64_windows_segment_register_p): Likewise.
13452
13453 2020-03-04 Luis Machado <luis.machado@linaro.org>
13454
13455 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13456 in "info registers" for AArch64/ARM.
13457
13458 The change caused "info registers" to not print GPR's.
13459
13460 gdb/ChangeLog:
13461
13462 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13463
13464 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13465 when reg->group is empty and reggroup is not.
13466
13467 2020-03-03 Tom Tromey <tromey@adacore.com>
13468
13469 * dwarf2/frame.c (struct dwarf2_frame_cache)
13470 <checked_tailcall_bottom, entry_cfa_sp_offset,
13471 entry_cfa_sp_offset_p>: Remove members.
13472 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13473 (dwarf2_frame_prev_register): Don't call
13474 dwarf2_tailcall_sniffer_first.
13475 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13476 * frame-unwind.c (add_unwinder): New fuction.
13477 (frame_unwind_init): Use it. Add tailcall unwinder.
13478
13479 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13480 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13481
13482 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13483 value should be printed as true.
13484
13485 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13486
13487 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13488 (windows_init_abi): Set and use windows_so_ops.
13489
13490 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13491
13492 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13493 when verifying if dealing with a convenience variable.
13494
13495 2020-03-03 Luis Machado <luis.machado@linaro.org>
13496
13497 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13498
13499 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13500
13501 * infrun.c (gdbarch_supports_displaced_stepping): New.
13502 (use_displaced_stepping): Break up conditions in smaller pieces.
13503 Use gdbarch_supports_displaced_stepping.
13504 (displaced_step_prepare_throw): Use
13505 gdbarch_supports_displaced_stepping.
13506
13507 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13508
13509 * NEWS: Mention new behaviour of the history filename.
13510 * top.c (write_history_p): Add comment.
13511 (show_write_history_p): Add header comment, give a different
13512 message when history writing is on, but the history filename is
13513 empty.
13514 (history_filename): Add comment.
13515 (history_filename_empty): New function.
13516 (show_history_filename): Add header comment, give a different
13517 message when the filename is empty.
13518 (init_history): Compare history_filename against nullptr, and only
13519 read history if the filename is not empty.
13520 (set_history_filename): Add header comment, and only make
13521 non-empty filenames absolute.
13522 (init_main): Make the filename argument to 'set history filename'
13523 optional.
13524
13525 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13526
13527 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13528 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13529 (fetch_fp_register): Update.
13530 (fetch_fp_regs): Update.
13531 (store_fp_register): Update.
13532 (store_fp_regs): Update.
13533 (arm_netbsd_nat_target::read_description): New function.
13534 (fetch_elfcore_registers): Update.
13535
13536 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13537
13538 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13539 general_thread if the stop reply is missing a thread-id.
13540 (remote_target::process_stop_reply): Use the first non-exited
13541 thread if the target didn't pass a thread-id.
13542 * infrun.c (do_target_wait): Move call to
13543 switch_to_inferior_no_thread to ....
13544 (do_target_wait_1): ... here.
13545
13546 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13547
13548 * debuginfod-support.c: Include defs.h first.
13549
13550 2020-02-28 Tom de Vries <tdevries@suse.de>
13551
13552 * symfile.c (set_initial_language): Use default language for lookup.
13553
13554 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13555
13556 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13557 reader variable, pass `this` to read_cutu_die_from_dwo.
13558
13559 2020-02-27 Aaron Merey <amerey@redhat.com>
13560
13561 * source.c (open_source_file): Check for nullptr when computing
13562 srcpath.
13563
13564 2020-02-27 Tom Tromey <tromey@adacore.com>
13565
13566 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13567 member.
13568 (dwarf2_add_field): Don't update nfields.
13569 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13570
13571 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13572
13573 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13574 abs.
13575
13576 2020-02-26 Tom Tromey <tom@tromey.com>
13577
13578 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13579 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13580 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13581 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13582 per_cu_data.
13583
13584 2020-02-26 Tom Tromey <tom@tromey.com>
13585
13586 * dwarf2/index-write.c (psym_index_map): Change type.
13587 (add_address_entry_worker, write_one_signatured_type)
13588 (recursively_count_psymbols, recursively_write_psymbols)
13589 (class debug_names, psyms_seen_size, write_gdbindex)
13590 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13591
13592 2020-02-26 Aaron Merey <amerey@redhat.com>
13593
13594 * Makefile.in: Handle optional debuginfod support.
13595 * NEWS: Update.
13596 * README: Add --with-debuginfod summary.
13597 * config.in: Regenerate.
13598 * configure: Regenerate.
13599 * configure.ac: Handle optional debuginfod support.
13600 * debuginfod-support.c: debuginfod helper functions.
13601 * debuginfod-support.h: Ditto.
13602 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13603 summary.
13604 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13605 when a dwz file cannot be found.
13606 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13607 debuginfo file cannot be found.
13608 * source.c (open_source_file): Query debuginfod servers when a
13609 source file cannot be found.
13610 * top.c (print_gdb_configuration): Include
13611 --{with,without}-debuginfod in the output.
13612
13613 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13614
13615 * thread.c (thr_try_catch_cmd): Print thread name.
13616
13617 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13618
13619 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13621 dwarf2_fetch_die_type_sect_off): Move to...
13622 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13623 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13624 dwarf2_fetch_die_type_sect_off): ... here.
13625 * dwarf2/read.c (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 doc to header file.
13628
13629 2020-02-26 Tom de Vries <tdevries@suse.de>
13630
13631 PR gdb/25603
13632 * symfile.c (set_initial_language): Exit-early if
13633 language_mode == language_mode_manual.
13634
13635 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13636
13637 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13638 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13639 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13640
13641 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * gdbtypes.c (create_array_type_with_stride): Handle negative
13644 array strides.
13645 * valarith.c (value_subscripted_rvalue): Likewise.
13646
13647 2020-02-25 Luis Machado <luis.machado@linaro.org>
13648
13649 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13650
13651 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13652
13653 * loc.h (dwarf2_get_die_type): Move to...
13654 * read.h (dwarf2_get_die_type): ... here.
13655 * read.c (dwarf2_get_die_type): Move doc to header.
13656
13657 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13658
13659 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13660 'gnulib/Makefile.in' to the list.
13661
13662 2020-02-24 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13665 Remove.
13666 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13667 XOBNEWVEC.
13668
13669 2020-02-24 Tom Tromey <tom@tromey.com>
13670
13671 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13672 New method.
13673 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13674 (dw2_do_instantiate_symtab, dw2_get_file_names)
13675 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13676
13677 2020-02-24 Tom Tromey <tom@tromey.com>
13678
13679 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13680 make_scoped_restore.
13681 (dwarf2_psymtab::read_symtab): Don't clear
13682 reading_partial_symbols.
13683
13684 2020-02-24 Tom de Vries <tdevries@suse.de>
13685
13686 PR gdb/25592
13687 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13688
13689 2020-02-24 Tom de Vries <tdevries@suse.de>
13690
13691 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13692 commands layout next/prev/regs.
13693
13694 2020-02-22 Tom Tromey <tom@tromey.com>
13695
13696 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13697 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13698
13699 2020-02-22 Tom Tromey <tom@tromey.com>
13700
13701 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13702
13703 2020-02-22 Tom Tromey <tom@tromey.com>
13704
13705 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13706 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13707 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13708 * tui/tui.c (_initialize_tui): Add usage text.
13709
13710 2020-02-22 Tom Tromey <tom@tromey.com>
13711
13712 * tui/tui-win.c (tui_set_focus_command)
13713 (tui_set_win_height_command): Use error_no_arg.
13714 (_initialize_tui_win): Update help text.
13715 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13716
13717 2020-02-22 Tom Tromey <tom@tromey.com>
13718
13719 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13720 * tui/tui-disasm.h (struct tui_disasm_window)
13721 <display_start_addr>: Declare.
13722 * tui/tui-source.h (struct tui_source_window)
13723 <display_start_addr>: Declare.
13724 * tui/tui-winsource.h (struct tui_source_window_base)
13725 <show_source_line, display_start_addr>: New methods.
13726 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13727 Rename and move to protected section.
13728 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13729 (tui_source_window_base::do_erase_source_content): Update.
13730 (tui_source_window_base::show_source_line): Now a method.
13731 (tui_source_window_base::show_source_content)
13732 (tui_source_window_base::tui_source_window_base)
13733 (tui_source_window_base::rerender)
13734 (tui_source_window_base::refill)
13735 (tui_source_window_base::do_scroll_horizontal)
13736 (tui_source_window_base::set_is_exec_point_at)
13737 (tui_source_window_base::update_breakpoint_info)
13738 (tui_source_window_base::update_exec_info): Update.
13739 * tui/tui-source.c (tui_source_window::set_contents)
13740 (tui_source_window::showing_source_p)
13741 (tui_source_window::do_scroll_vertical)
13742 (tui_source_window::location_matches_p)
13743 (tui_source_window::line_is_displayed): Update.
13744 (tui_source_window::display_start_addr): New method.
13745 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13746 (tui_disasm_window::do_scroll_vertical)
13747 (tui_disasm_window::location_matches_p): Update.
13748 (tui_disasm_window::display_start_addr): New method.
13749
13750 2020-02-22 Tom Tromey <tom@tromey.com>
13751
13752 * NEWS: Add entry for gdb.register_window_type.
13753 * tui/tui-layout.h (window_factory): New typedef.
13754 (tui_register_window): Declare.
13755 * tui/tui-layout.c (saved_tui_windows): New global.
13756 (tui_apply_current_layout): Use it.
13757 (tui_register_window): New function.
13758 * python/python.c (do_start_initialization): Call
13759 gdbpy_initialize_tui.
13760 (python_GdbMethods): Add "register_window_type" function.
13761 * python/python-internal.h (gdbpy_register_tui_window)
13762 (gdbpy_initialize_tui): Declare.
13763 * python/py-tui.c: New file.
13764 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13765
13766 2020-02-22 Tom Tromey <tom@tromey.com>
13767
13768 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13769
13770 2020-02-22 Tom Tromey <tom@tromey.com>
13771
13772 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13773 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13774 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13775 (tui_set_win_focus_to): Move from tui-win.c.
13776
13777 2020-02-22 Tom Tromey <tom@tromey.com>
13778
13779 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13780 functions.
13781 (known_window_types): New global.
13782 (tui_get_window_by_name): Reimplement.
13783 (initialize_known_windows): New function.
13784 (validate_window_name): Rewrite.
13785 (_initialize_tui_layout): Call initialize_known_windows.
13786
13787 2020-02-22 Tom Tromey <tom@tromey.com>
13788
13789 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13790 Remove constants.
13791 * tui/tui-winsource.h (struct tui_source_window_base)
13792 <tui_source_window_base>: Remove parameter.
13793 * tui/tui-winsource.c
13794 (tui_source_window_base::tui_source_window_base): Remove
13795 parameter.
13796 (tui_source_window_base::refill): Update.
13797 * tui/tui-stack.h (struct tui_locator_window)
13798 <tui_locator_window>: Update.
13799 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13800 Default the constructor.
13801 * tui/tui-regs.h (struct tui_data_item_window)
13802 <tui_data_item_window>: Default the constructor.
13803 (struct tui_data_window) <tui_data_window>: Likewise.
13804 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13805 Default the constructor.
13806 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13807 Default the constructor.
13808 <type>: Remove.
13809 (struct tui_win_info) <tui_win_info>: Default the constructor.
13810 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13811 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13812 Default the constructor.
13813
13814 2020-02-22 Tom Tromey <tom@tromey.com>
13815
13816 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13817 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13818 * tui/tui-win.c (tui_resize_all): Don't call
13819 tui_delete_invisible_windows.
13820 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13821 done.
13822 (tui_set_layout): Update.
13823 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13824 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13825 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13826
13827 2020-02-22 Tom Tromey <tom@tromey.com>
13828
13829 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13830 correctly.
13831
13832 2020-02-22 Tom Tromey <tom@tromey.com>
13833
13834 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13835
13836 2020-02-22 Tom Tromey <tom@tromey.com>
13837
13838 * tui/tui-winsource.h (struct tui_source_window_iterator)
13839 <inner_iterator>: New etytypedef.
13840 <tui_source_window_iterator>: Take "end" parameter.
13841 <tui_source_window_iterator>: Take iterator.
13842 <operator*, advance>: Update.
13843 <m_iter>: Change type.
13844 <m_end>: New field.
13845 (struct tui_source_windows) <begin, end>: Update.
13846 * tui/tui-layout.c (tui_windows): New global.
13847 (tui_apply_current_layout): Clear tui_windows.
13848 (tui_layout_window::apply): Update tui_windows.
13849 * tui/tui-data.h (tui_windows): Declare.
13850 (all_tui_windows): Now inline function.
13851 (class tui_window_iterator, struct all_tui_windows): Remove.
13852
13853 2020-02-22 Tom Tromey <tom@tromey.com>
13854
13855 PR tui/17850:
13856 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13857 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13858 "height" argument.
13859 (class tui_layout_window) <get_sizes>: Likewise.
13860 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13861 argument.
13862 <get_sizes>: Add "height" argument.
13863 <m_vertical>: New field.
13864 * tui/tui-layout.c (tui_layout_split::clone): Update.
13865 (tui_layout_split::get_sizes): Add "height" argument.
13866 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13867 (tui_new_layout_command): Parse "-horizontal".
13868 (_initialize_tui_layout): Update help string.
13869 (tui_layout_split::specification): Add "-horizontal" when needed.
13870 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13871 argument.
13872 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13873 New methods.
13874
13875 2020-02-22 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui-layout.h (enum tui_adjust_result): New.
13878 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13879 (class tui_layout_window) <adjust_size>: Return
13880 tui_adjust_result. Rewrite.
13881 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13882 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13883
13884 2020-02-22 Tom Tromey <tom@tromey.com>
13885
13886 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13887 parameter and return types.
13888 (class tui_layout_base) <specification>: Add "depth".
13889 (class tui_layout_window) <specification>: Add "depth".
13890 (class tui_layout_split) <specification>: Add "depth".
13891 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13892 and return types.
13893 (tui_new_layout_command): Parse sub-layouts.
13894 (_initialize_tui_layout): Update help string.
13895 (tui_layout_window::specification): Add "depth".
13896 (add_layout_command): Update.
13897
13898 2020-02-22 Tom Tromey <tom@tromey.com>
13899
13900 * NEWS: Add "tui new-layout" item.
13901 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13902 Add new-layout command to help text.
13903 (validate_window_name): New function.
13904 (tui_new_layout_command): New function.
13905 (_initialize_tui_layout): Register "new-layout".
13906 (tui_layout_window::specification): New method.
13907 (tui_layout_window::specification): New method.
13908 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13909 method.
13910 (class tui_layout_window) <specification>: New method.
13911 (class tui_layout_split) <specification>: New method.
13912
13913 2020-02-22 Tom Tromey <tom@tromey.com>
13914
13915 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13916 * tui/tui-win.c (window_name_completer): Update comment.
13917 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13918 Declare method.
13919 (class tui_layout_window) <replace_window>: Likewise.
13920 (class tui_layout_split) <replace_window>: Likewise.
13921 (tui_set_layout): Don't declare.
13922 (tui_set_initial_layout): Declare function.
13923 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13924 (asm_regs_layout): New globals.
13925 (tui_current_layout, show_layout): Remove.
13926 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13927 (find_layout, tui_apply_layout): New function.
13928 (layout_completer): Remove.
13929 (tui_next_layout): Reimplement.
13930 (tui_next_layout_command): New function.
13931 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13932 (tui_regs_layout): Reimplement.
13933 (tui_regs_layout_command): New function.
13934 (extract_display_start_addr): Rewrite.
13935 (next_layout, prev_layout): Remove.
13936 (tui_layout_window::replace_window): New method.
13937 (tui_layout_split::replace_window): New method.
13938 (destroy_layout): New function.
13939 (layout_list): New global.
13940 (add_layout_command): New function.
13941 (initialize_layouts): Update.
13942 (tui_layout_command): New function.
13943 (_initialize_tui_layout): Install "layout" commands.
13944 * tui/tui-data.h (enum tui_layout_type): Remove.
13945 (tui_current_layout): Don't declare.
13946
13947 2020-02-22 Tom Tromey <tom@tromey.com>
13948
13949 * tui/tui-regs.c (tui_reg_layout): Remove.
13950 (tui_reg_command): Use tui_regs_layout.
13951 * tui/tui-layout.h (tui_reg_command): Declare.
13952 * tui/tui-layout.c (tui_reg_command): New function.
13953
13954 2020-02-22 Tom Tromey <tom@tromey.com>
13955
13956 * tui/tui.c (tui_rl_delete_other_windows): Call
13957 tui_remove_some_windows.
13958 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13959 Declare method.
13960 (class tui_layout_window) <remove_windows>: New method.
13961 (class tui_layout_split) <remove_windows>: Declare.
13962 (tui_remove_some_windows): Declare.
13963 * tui/tui-layout.c (tui_remove_some_windows): New function.
13964 (tui_layout_split::remove_windows): New method.
13965
13966 2020-02-22 Tom Tromey <tom@tromey.com>
13967
13968 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13969 * tui/tui-layout.h (tui_next_layout): Declare.
13970 * tui/tui-layout.c (tui_next_layout): New function.
13971
13972 2020-02-22 Tom Tromey <tom@tromey.com>
13973
13974 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13975 correct coordinates.
13976
13977 2020-02-22 Tom Tromey <tom@tromey.com>
13978
13979 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13980 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13981 DATA_WIN case.
13982
13983 2020-02-22 Tom Tromey <tom@tromey.com>
13984
13985 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13986 TUI_DISASM_WIN, not tui_win_list.
13987
13988 2020-02-22 Tom Tromey <tom@tromey.com>
13989
13990 * valprint.c (generic_val_print_enum_1)
13991 (val_print_type_code_flags): Style member names.
13992 * rust-lang.c (val_print_struct, rust_print_enum)
13993 (rust_print_struct_def, rust_internal_print_type): Style member
13994 names.
13995 * p-valprint.c (pascal_object_print_value_fields): Style member
13996 names. Only call fprintf_symbol_filtered for static members.
13997 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13998 * f-valprint.c (f_val_print): Style member names.
13999 * f-typeprint.c (f_type_print_base): Style member names.
14000 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14001 call fprintf_symbol_filtered for static members.
14002 (cp_print_class_member): Style member names.
14003 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14004 member names.
14005 * ada-valprint.c (ada_print_scalar): Style enum names.
14006 (ada_val_print_enum): Likewise.
14007 * ada-typeprint.c (print_enum_type): Style enum names.
14008
14009 2020-02-21 Tom Tromey <tom@tromey.com>
14010
14011 * psympriv.h (struct partial_symtab): Update comment.
14012
14013 2020-02-21 Tom Tromey <tromey@adacore.com>
14014
14015 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14016 type is CORE_ADDR.
14017
14018 2020-02-21 Tom de Vries <tdevries@suse.de>
14019
14020 PR gdb/25534
14021 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14022 if dependencies[i]->user != NULL.
14023
14024 2020-02-21 Ali Tamur <tamur@google.com>
14025
14026 * dwarf2/read.c (dwarf2_name): Add null check.
14027
14028 2020-02-20 Tom Tromey <tom@tromey.com>
14029
14030 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14031 ">=", in binary search.
14032 (dwarf2_find_containing_comp_unit): New overload.
14033 (run_test): New self-test.
14034 (_initialize_dwarf2_read): Register new test.
14035
14036 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14037
14038 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14039 * riscv-tdep.h: Likewise.
14040 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14041 rv32-only CSR.
14042 * features/riscv/64bit-csr.xml: Regenerated.
14043
14044 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14045 Tom Tromey <tom@tromey.com>
14046
14047 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14048 of 'fputc_unfiltered'.
14049 (putchar_unfiltered): Call 'fputc_unfiltered'.
14050 (fputc_unfiltered): Call 'fputs_unfiltered'.
14051
14052 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14053
14054 * config.in: Regenerate.
14055 * configure: Regenerate.
14056 * configure.ac: Add --with-python-libdir option.
14057 * main.c: Use WITH_PYTHON_LIBDIR.
14058
14059 2020-02-19 Tom Tromey <tom@tromey.com>
14060
14061 * symtab.c (general_symbol_info::compute_and_set_names): Use
14062 obstack_strndup. Simplify call to symbol_set_demangled_name.
14063
14064 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14065
14066 * dwarf2/read.c (allocate_signatured_type_table,
14067 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14068 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14069 Remove objfile parameter, update all callers.
14070
14071 2020-02-19 Doug Evans <dje@google.com>
14072
14073 PR rust/25535
14074 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14075 rust_enum_variant calculation.
14076
14077 2020-02-19 Tom Tromey <tromey@adacore.com>
14078
14079 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14080
14081 2020-02-19 Tom Tromey <tromey@adacore.com>
14082
14083 * ada-lang.c (cache_symbol): Use obstack_strdup.
14084
14085 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14086
14087 * configure: Regenerate.
14088
14089 2020-02-19 Tom Tromey <tromey@adacore.com>
14090
14091 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14092 NULL check.
14093
14094 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14095
14096 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14097
14098 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14099
14100 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14101 if GDBSERVER is not defined.
14102 (riscv_tdesc_cache): Likewise, also store const target_desc.
14103 (STATIC_IN_GDB): Define.
14104 (riscv_create_target_description): Update declaration with
14105 STATIC_IN_GDB.
14106 (riscv_lookup_target_description): New function, only define if
14107 GDBSERVER is not defined.
14108 * arch/riscv.h (riscv_create_target_description): Declare only
14109 when GDBSERVER is defined.
14110 (riscv_lookup_target_description): New declaration when GDBSERVER
14111 is not defined.
14112 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14113 (riscv_linux_read_features): ...this, and return
14114 riscv_gdbarch_features instead of target_desc.
14115 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14116 (riscv_linux_read_description): Rename to...
14117 (riscv_linux_read_features): ...this.
14118 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14119 Update to use riscv_gdbarch_features and
14120 riscv_lookup_target_description.
14121 * riscv-tdep.c (riscv_find_default_target_description): Use
14122 riscv_lookup_target_description instead of
14123 riscv_create_target_description.
14124
14125 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14126
14127 * valprint.c (generic_val_print_enum_1): When printing a flag
14128 enum with value 0 and there is no enumerator with value 0, print
14129 just "0" instead of "(unknown: 0x0)".
14130
14131 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * valprint.c (generic_val_print_enum_1): Print unknown part of
14134 flag enum in hex.
14135
14136 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14137
14138 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14139 flag enums to contain duplicate enumerators.
14140 * valprint.c (generic_val_print_enum_1): Update comment.
14141
14142 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14143
14144 * dwarf2/read.c: Include "count-one-bits.h".
14145 (update_enumeration_type_from_children): If an enumerator has
14146 multiple bits set, don't treat the enumeration as a "flag enum".
14147 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14148 of flag enums have 0 or 1 bit set.
14149
14150 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14151
14152 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14153 conversion.
14154 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14155 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14156 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14157 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14158 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14159
14160 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14161
14162 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14163
14164 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14165
14166 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14167 displaced_step_closure_up.
14168 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14169 (struct displaced_step_closure_up):
14170 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14171 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14172 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14173 Likewise.
14174 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14175 * gdbarch.c, gdbarch.h: Re-generate.
14176 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14177 displaced_step_closure_up.
14178 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14179 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14180 * infrun.h (displaced_step_closure_up): New type alias.
14181 (struct displaced_step_inferior_state) <step_closure>: Change
14182 type to displaced_step_closure_up.
14183 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14184 displaced_step_closure_up.
14185 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14186
14187 2020-02-14 Tom Tromey <tom@tromey.com>
14188
14189 * minidebug.c (gnu_debug_key): New global.
14190 (find_separate_debug_file_in_section): Use it.
14191
14192 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14193
14194 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14195 std::unique_ptr.
14196 * gdbarch.c: Re-generate.
14197 * gdbarch.h: Re-generate.
14198 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14199 change.
14200 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14201 type to std::unique_ptr.
14202 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14203 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14204 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14205 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14206 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14207 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14208 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14209 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14210 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14211
14212 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14213
14214 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14215 std::unique_ptr.
14216 (displaced_step_clear): Rename to...
14217 (displaced_step_reset): ... this. Just call displaced->reset ().
14218 (displaced_step_clear_cleanup): Rename to...
14219 (displaced_step_reset_cleanup): ... this.
14220 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14221 (displaced_step_fixup): Likewise.
14222 (resume_1): Likewise.
14223 (handle_inferior_event): Restore child's memory before calling
14224 displaced_step_fixup on the parent.
14225 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14226 to std::unique_ptr.
14227 <step_closure>: Change type to std::unique_ptr.
14228
14229 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14230
14231 * arm-tdep.c: Include count-one-bits.h.
14232 (cleanup_block_store_pc): Use count_one_bits.
14233 (cleanup_block_load_pc): Use count_one_bits.
14234 (arm_copy_block_xfer): Use count_one_bits.
14235 (thumb2_copy_block_xfer): Use count_one_bits.
14236 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14237 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14238 (thumb_get_next_pcs_raw): Use count_one_bits.
14239 (arm_get_next_pcs_raw): Use count_one_bits_l.
14240 * arch/arm.c (bitcount): Remove.
14241 * arch/arm.h (bitcount): Remove.
14242
14243 2020-02-14 Tom Tromey <tromey@adacore.com>
14244
14245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14246 Update.
14247 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14248 * dwarf2/loc.c (call_site_find_chain_1): Return
14249 unique_xmalloc_ptr.
14250 (call_site_find_chain): Likewise.
14251
14252 2020-02-14 Richard Biener <rguenther@suse.de>
14253
14254 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14255 on expression with division operators.
14256
14257 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14258
14259 * MAINTAINERS (Write After Approval): Adding myself.
14260
14261 2020-02-12 Tom Tromey <tom@tromey.com>
14262
14263 * event-loop.c (event_data, gdb_event, event_handler_func):
14264 Remove.
14265
14266 2020-02-12 Tom Tromey <tom@tromey.com>
14267
14268 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14269 (dwarf2_frame_objfile_data): Add comment.
14270 (find_comp_unit, set_comp_unit): New functions.
14271 (dwarf2_frame_find_fde): Use find_comp_unit.
14272 (dwarf2_build_frame_info): Use set_comp_unit.
14273
14274 2020-02-12 Tom Tromey <tom@tromey.com>
14275
14276 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14277 (comp_unit): Don't initialize objfile.
14278 (execute_cfa_program): Add text_offset parameter.
14279 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14280 (dwarf2_frame_cache): Update.
14281 (dwarf2_build_frame_info): Don't set "objfile" member.
14282
14283 2020-02-12 Tom Tromey <tom@tromey.com>
14284
14285 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14286 (decode_frame_entry): Likewise.
14287 (dwarf2_build_frame_info): Update.
14288
14289 2020-02-12 Tom Tromey <tom@tromey.com>
14290
14291 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14292 (decode_frame_entry_1): Use the comp_unit obstack.
14293
14294 2020-02-12 Tom Tromey <tom@tromey.com>
14295
14296 * dwarf2/frame.c (struct comp_unit): Add initializers and
14297 constructor.
14298 (dwarf2_frame_objfile_data): Store a comp_unit.
14299 (dwarf2_frame_find_fde): Update.
14300 (dwarf2_build_frame_info): Use "new".
14301
14302 2020-02-12 Tom Tromey <tom@tromey.com>
14303
14304 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14305 (dwarf2_fde_table): Typedef for std::vector.
14306 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14307 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14308 (decode_frame_entry): Update.
14309 (dwarf2_build_frame_info): Use "new".
14310
14311 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14312
14313 * arm-tdep.c (arm_gdbarch_init): Update.
14314 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14315 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14316 have_neon, is_m>: Change to bool.
14317
14318 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14319
14320 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14321
14322 2020-02-12 Tom Tromey <tom@tromey.com>
14323
14324 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14325
14326 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14327
14328 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14329 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14330
14331 2020-02-11 Tom Tromey <tom@tromey.com>
14332
14333 * psymtab.h: Update comment.
14334
14335 2020-02-11 Tom Tromey <tom@tromey.com>
14336
14337 * gdb_obstack.h (struct auto_obstack): Use
14338 DISABLE_COPY_AND_ASSIGN.
14339
14340 2020-02-11 Tom Tromey <tom@tromey.com>
14341
14342 * dwarf2/frame.h (struct objfile): Don't forward declare.
14343
14344 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14345
14346 * cris-tdep.c (cris_supply_gregset): Change signature to match
14347 what struct regset expects.
14348 (cris_regset): New struct.
14349 (fetch_core_registers): Remove.
14350 (cris_iterate_over_regset_sections): New function.
14351 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14352 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14353
14354 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14355
14356 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14357 registers.
14358
14359 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14360
14361 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14362
14363 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14364
14365 * configure: Re-generate.
14366
14367 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14368
14369 * configure: Re-generate.
14370
14371 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14372
14373 * acinclude: Update warning.m4 path.
14374 * warning.m4: Move to gdbsupport.
14375
14376 2020-02-11 Tom Tromey <tromey@adacore.com>
14377
14378 * remote.c (remote_console_output): Update.
14379 * printcmd.c (printf_command): Update.
14380 * event-loop.c (gdb_wait_for_event): Update.
14381 * linux-nat.c (sigchld_handler): Update.
14382 * remote-sim.c (gdb_os_write_stdout): Update.
14383 (gdb_os_flush_stdout): Update.
14384 (gdb_os_flush_stderr): Update.
14385 (gdb_os_write_stderr): Update.
14386 * exceptions.c (print_exception): Update.
14387 * remote-fileio.c (remote_fileio_func_read): Update.
14388 (remote_fileio_func_write): Update.
14389 * tui/tui.c (tui_enable): Update.
14390 * tui/tui-interp.c (tui_interp::init): Update.
14391 * utils.c (init_page_info): Update.
14392 (putchar_unfiltered, fputc_unfiltered): Update.
14393 (gdb_flush): Update.
14394 (emit_style_escape): Update.
14395 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14396 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14397 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14398 (stderr_file::write): Update.
14399 (stderr_file::puts): Update.
14400 * ui-file.h (ui_file_isatty, ui_file_write)
14401 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14402 (ui_file_puts): Don't declare.
14403
14404 2020-02-10 Tom de Vries <tdevries@suse.de>
14405
14406 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14407 sentinel to char *.
14408
14409 2020-02-09 Tom de Vries <tdevries@suse.de>
14410
14411 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14412 filename if it matches "<artificial>".
14413
14414 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14415
14416 * windows-tdep.c (struct enum_value_name): New struct.
14417 (create_enum): New function.
14418 (windows_get_siginfo_type): Create and use enum types.
14419
14420 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14421
14422 * NEWS: Mention $_siginfo support for Windows.
14423 * windows-nat.c (handle_exception): Set siginfo_er.
14424 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14425 (windows_xfer_siginfo): New function.
14426 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14427 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14428 (init_windows_gdbarch_data): New function.
14429 (get_windows_gdbarch_data): New function.
14430 (windows_get_siginfo_type): New function.
14431 (windows_init_abi): Register windows_get_siginfo_type.
14432 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14433
14434 2020-02-08 Tom Tromey <tom@tromey.com>
14435
14436 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14437 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14438 <keep>: Declare method.
14439 <m_keep>: Remove member.
14440 <~cutu_reader>: Remove.
14441 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14442 (cutu_reader::cutu_reader): Update.
14443 (cutu_reader::keep): Rename from ~cutu_reader.
14444 (process_psymtab_comp_unit, build_type_psymtabs_1)
14445 (process_skeletonless_type_unit, load_partial_comp_unit)
14446 (load_full_comp_unit, dwarf2_read_addr_index)
14447 (read_signatured_type): Update.
14448
14449 2020-02-08 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14452 "want_partial_unit" parameter.
14453 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14454 Inline check for DW_TAG_partial_unit.
14455 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14456
14457 2020-02-08 Tom Tromey <tom@tromey.com>
14458
14459 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14460 read.c.
14461 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14462 read.c.
14463
14464 2020-02-08 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/read.c (read_address): Move to comp-unit.c.
14467 (dwarf2_rnglists_process, dwarf2_ranges_process)
14468 (read_attribute_value, dwarf_decode_lines_1)
14469 (var_decode_location, decode_locdesc): Update.
14470 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14471 read.c. Remove "cu" parameter.
14472 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14473 method.
14474
14475 2020-02-08 Tom Tromey <tom@tromey.com>
14476
14477 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14478 (read_indirect_line_string): Update.
14479 * dwarf2/comp-unit.c (read_offset): Remove.
14480 (read_comp_unit_head): Update.
14481 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14482 method.
14483 (read_offset): Don't declare.
14484
14485 2020-02-08 Tom Tromey <tom@tromey.com>
14486
14487 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14488 * dwarf2/read.c (struct comp_unit_head): Move to
14489 dwarf2/comp-unit.h.
14490 (enum class rcuh_kind): Move to comp-unit.h.
14491 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14492 (read_comp_unit_head, error_check_comp_unit_head)
14493 (read_and_check_comp_unit_head): Move to comp-unit.c.
14494 (read_offset, dwarf_unit_type_name): Likewise.
14495 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14496 (cutu_reader::cutu_reader, read_call_site_scope)
14497 (find_partial_die, follow_die_offset): Update.
14498 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14499
14500 2020-02-08 Tom Tromey <tom@tromey.com>
14501
14502 * dwarf2/read.c (read_offset_1): Move to leb.c.
14503 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14504 (dwarf_decode_macro_bytes): Update.
14505 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14506 * dwarf2/leb.h (read_offset): Declare.
14507
14508 2020-02-08 Tom Tromey <tom@tromey.com>
14509
14510 * dwarf2/read.c (dwarf2_section_size): Remove.
14511 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14512 Update.
14513 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14514
14515 2020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2/read.c (read_initial_length): Move to leb.c.
14518 * dwarf2/leb.h (read_initial_length): Declare.
14519 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14520 handle_nonstd parameter.
14521 * dwarf2/frame.c (read_initial_length): Remove.
14522 (decode_frame_entry_1): Update.
14523
14524 2020-02-08 Tom Tromey <tom@tromey.com>
14525
14526 * dwarf2/loc.c (dwarf2_find_location_expression)
14527 (dwarf_evaluate_loc_desc::get_tls_address)
14528 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14529 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14530 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14531 (dwarf2_compile_property_to_c)
14532 (dwarf2_loc_desc_get_symbol_read_needs)
14533 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14534 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14535 (loclist_describe_location, loclist_tracepoint_var_ref)
14536 (loclist_generate_c_location): Update.
14537 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14538 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14539 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14540 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14541 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14542 (dwarf2_per_cu_data::addr_size)
14543 (dwarf2_per_cu_data::ref_addr_size)
14544 (dwarf2_per_cu_data::text_offset)
14545 (dwarf2_per_cu_data::addr_type): Now methods.
14546 (per_cu_header_read_in): Make per_cu "const".
14547 (dwarf2_version): Remove.
14548 (dwarf2_per_cu_data::int_type): Now a method.
14549 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14550 (set_die_type, read_array_type, read_subrange_index_type)
14551 (read_tag_string_type, read_subrange_type): Update.
14552 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14553 offset_size, ref_addr_size, text_offset, addr_type, version,
14554 objfile, int_type, addr_sized_int_type>: Declare methods.
14555
14556 2020-02-08 Tom Tromey <tom@tromey.com>
14557
14558 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14559 Move earlier.
14560
14561 2020-02-08 Tom Tromey <tom@tromey.com>
14562
14563 * dwarf2/read.h (dwarf_line_debug): Declare.
14564 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14565 * dwarf2/read.c: Move line_header code to new files.
14566 (dwarf_line_debug): No longer static.
14567 * dwarf2/line-header.c: New file.
14568 * dwarf2/line-header.h: New file.
14569
14570 2020-02-08 Tom Tromey <tom@tromey.com>
14571
14572 * dwarf2/read.c (struct line_header) <file_full_name,
14573 file_file_name>: Return unique_xmalloc_ptr.
14574 (line_header::file_file_name): Update.
14575 (line_header::file_full_name): Update.
14576 (dw2_get_file_names_reader): Update.
14577 (macro_start_file): Update.
14578
14579 2020-02-08 Tom Tromey <tom@tromey.com>
14580
14581 * dwarf2/read.c (struct line_header) <file_full_name,
14582 file_file_name>: Declare methods.
14583 (dw2_get_file_names_reader): Update.
14584 (file_file_name): Now a method.
14585 (file_full_name): Likewise.
14586 (macro_start_file): Update.
14587
14588 2020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2/read.c (dwarf_always_disassemble)
14591 (show_dwarf_always_disassemble): Move to loc.c.
14592 (_initialize_dwarf2_read): Move "always-disassemble" registration
14593 to loc.c.
14594 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14595 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14596 static.
14597 (show_dwarf_always_disassemble): Move from read.c.
14598 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14599
14600 2020-02-08 Tom Tromey <tom@tromey.com>
14601
14602 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14603 (create_quick_file_names_table): Return htab_up.
14604 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14605 Update.
14606 * dwarf2/read.h (struct dwarf2_per_objfile)
14607 <quick_file_names_table>: Now htab_up.
14608
14609 2020-02-08 Tom Tromey <tom@tromey.com>
14610
14611 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14612
14613 2020-02-08 Tom Tromey <tom@tromey.com>
14614
14615 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14616 Rewrite.
14617 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14618 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14619 (abbrev_table::abbrev_table): No longer inline.
14620 (ABBREV_HASH_SIZE): Remove.
14621 (abbrev_table::m_abbrevs): Now an htab_up.
14622
14623 2020-02-08 Tom Tromey <tom@tromey.com>
14624
14625 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14626 (cutu_reader): Update.
14627 (build_type_psymtabs_1): Update.
14628 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14629 (abbrev_table::alloc_abbrev): Update.
14630 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14631 (abbrev_table::read): New static method, renamed from
14632 abbrev_table_read_table.
14633 (abbrev_table::alloc_abbrev)
14634 (abbrev_table::add_abbrev): Now private.
14635 (abbrev_table::abbrev_table): Now private.
14636 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14637
14638 2020-02-08 Tom Tromey <tom@tromey.com>
14639
14640 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14641 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14642 htab_up.
14643
14644 2020-02-08 Tom Tromey <tom@tromey.com>
14645
14646 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14647 htab_up.
14648 (lookup_dwo_unit_in_dwp): Update.
14649 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14650 on obstack.
14651
14652 2020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14655 obstack.
14656
14657 2020-02-08 Tom Tromey <tom@tromey.com>
14658
14659 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14660 line_header_hash.
14661 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14662 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14663 Change type to htab_up.
14664
14665 2020-02-08 Tom Tromey <tom@tromey.com>
14666
14667 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14668 htab_up. Don't allocate on obstack.
14669 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14670 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14671 Change type to htab_up.
14672
14673 2020-02-08 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14676 Change type to htab_up.
14677 * dwarf2/read.c (create_signatured_type_table_from_index)
14678 (create_signatured_type_table_from_debug_names)
14679 (create_all_type_units, add_type_unit)
14680 (lookup_dwo_signatured_type, lookup_signatured_type)
14681 (process_skeletonless_type_unit): Update.
14682 (create_debug_type_hash_table, create_debug_types_hash_table):
14683 Change type of types_htab.
14684 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14685 htab_up. Don't allocate on obstack.
14686 (create_cus_hash_table): Change type of cus_htab parameter.
14687 (struct dwo_file) <cus, tus>: Now htab_up.
14688 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14689 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14690 (queue_and_load_all_dwo_tus): Update.
14691 * dwarf2/index-write.c (write_gdbindex): Update.
14692 (write_debug_names): Update.
14693
14694 2020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14697 dwarf2/read.c. Remove "next" member. Add constructor ntad
14698 destructor.
14699 (struct dwarf2_per_objfile) <queue>: New member.
14700 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14701 dwarf2/read.h.
14702 (dwarf2_queue, dwarf2_queue_tail): Remove.
14703 (class dwarf2_queue_guard): Add parameter to constructor. Use
14704 DISABLE_COPY_AND_ASSIGN.
14705 <m_per_objfile>: New member.
14706 <~dwarf2_queue_guard>: Rewrite.
14707 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14708 Update.
14709 (~dwarf2_queue_item): New.
14710
14711 2020-02-08 Tom Tromey <tom@tromey.com>
14712
14713 * dwarf2/read.c (struct die_info) <has_children>: New member.
14714 (dw2_get_file_names_reader): Remove has_children.
14715 (dw2_get_file_names): Update.
14716 (read_cutu_die_from_dwo): Remove has_children.
14717 (cutu_reader::init_tu_and_read_dwo_dies)
14718 (cutu_reader::cutu_reader): Update.
14719 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14720 Remove has_children.
14721 (build_type_psymtabs_1, process_skeletonless_type_unit)
14722 (load_partial_comp_unit, load_full_comp_unit): Update.
14723 (create_dwo_cu_reader): Remove has_children.
14724 (create_cus_hash_table, read_die_and_children): Update.
14725 (read_full_die_1,read_full_die): Remove has_children.
14726 (read_signatured_type): Update.
14727 (class cutu_reader) <has_children>: Remove.
14728
14729 2020-02-08 Tom Tromey <tom@tromey.com>
14730
14731 * dwarf2/expr.c: Rename from dwarf2expr.c.
14732 * dwarf2/expr.h: Rename from dwarf2expr.h.
14733 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14734 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14735 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14736 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14737 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14738 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14739 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14740 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14741 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14742 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14743 * dwarf2/loc.c: Rename from dwarf2loc.c.
14744 * dwarf2/loc.h: Rename from dwarf2loc.h.
14745 * dwarf2/read.c: Rename from dwarf2read.c.
14746 * dwarf2/read.h: Rename from dwarf2read.h.
14747 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14748 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14749 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14750 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14751 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14752 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14753 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14754 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14755 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14756 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14757 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14758 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14759 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14760 Update.
14761 * Makefile.in (COMMON_SFILES): Update.
14762 (HFILES_NO_SRCDIR): Update.
14763
14764 2020-02-08 Tom Tromey <tom@tromey.com>
14765
14766 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14767 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14768
14769 2020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2read.h (struct die_info): Don't declare.
14772
14773 2020-02-08 Tom Tromey <tom@tromey.com>
14774
14775 * dwarf2read.h (die_info_ptr): Remove typedef.
14776
14777 2020-02-08 Tom Tromey <tom@tromey.com>
14778
14779 * dwarf2read.c (read_call_site_scope)
14780 (handle_data_member_location, dwarf2_add_member_fn)
14781 (mark_common_block_symbol_computed, read_common_block)
14782 (attr_to_dynamic_prop, partial_die_info::read)
14783 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14784 (dwarf2_symbol_mark_computed, set_die_type): Update.
14785 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14786 method.
14787 (attr_form_is_block): Don't declare.
14788 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14789
14790 2020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2read.c (dwarf2_find_base_address, )
14793 (read_call_site_scope, rust_containing_type)
14794 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14795 (handle_data_member_location, dwarf2_add_member_fn)
14796 (get_alignment, read_structure_type, process_structure_scope)
14797 (mark_common_block_symbol_computed, read_common_block)
14798 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14799 (partial_die_info::read, read_attribute_value, new_symbol)
14800 (lookup_die_type, dwarf2_get_ref_die_offset)
14801 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14802 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14803 (dwarf2_symbol_mark_computed): Update.
14804 * dwarf2/attribute.h (struct attribute) <value_as_address,
14805 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14806 methods.
14807 (value_as_address, attr_form_is_section_offset)
14808 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14809 * dwarf2/attribute.c (attribute::value_as_address)
14810 (attribute::form_is_section_offset, attribute::form_is_constant)
14811 (attribute::form_is_ref): Now methods.
14812
14813 2020-02-08 Tom Tromey <tom@tromey.com>
14814
14815 * dwarf2read.c (struct attribute, DW_STRING)
14816 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14817 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14818 (attr_form_is_block, attr_form_is_section_offset)
14819 (attr_form_is_constant, attr_form_is_ref): Move.
14820 * dwarf2/attribute.h: New file.
14821 * dwarf2/attribute.c: New file, from dwarf2read.c.
14822 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14823
14824 2020-02-08 Tom Tromey <tom@tromey.com>
14825
14826 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14827 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14828 Move.
14829 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14830 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14831 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14832 abbrev.c.
14833 * dwarf2/abbrev.h: New file.
14834 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14835 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14836
14837 2020-02-08 Tom Tromey <tom@tromey.com>
14838
14839 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14840 (dwarf2_section_size, dwarf2_get_section_info)
14841 (create_signatured_type_table_from_debug_names)
14842 (create_addrmap_from_aranges, read_debug_names_from_section)
14843 (get_gdb_index_contents_from_section, read_comp_unit_head)
14844 (error_check_comp_unit_head, read_abbrev_offset)
14845 (create_debug_type_hash_table, init_cu_die_reader)
14846 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14847 (read_comp_units_from_section, create_cus_hash_table)
14848 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14849 (create_dwp_v2_section, dwarf2_rnglists_process)
14850 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14851 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14852 (read_indirect_string_from_dwz, read_addr_index_1)
14853 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14854 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14855 (fill_in_loclist_baton): Update.
14856 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14857 get_containing_section, get_bfd_owner, get_bfd_section,
14858 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14859 (dwarf2_read_section, get_section_name, get_section_file_name)
14860 (get_containing_section, get_section_bfd_owner)
14861 (get_section_bfd_section, get_section_name, get_section_file_name)
14862 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14863 declare.
14864 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14865 (dwarf2_section_info::get_bfd_owner)
14866 (dwarf2_section_info::get_bfd_section)
14867 (dwarf2_section_info::get_name)
14868 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14869 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14870 (dwarf2_section_info::read): Now methods.
14871 * dwarf-index-write.c (class debug_names): Update.
14872
14873 2020-02-08 Tom Tromey <tom@tromey.com>
14874
14875 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14876 Move to dwarf2/section.h.
14877 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14878 (get_section_bfd_section, get_section_name)
14879 (get_section_file_name, get_section_id, get_section_flags)
14880 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14881 dwarf2/section.c.
14882 * dwarf2/section.h: New file.
14883 * dwarf2/section.c: New file, from dwarf2read.c.
14884 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14885
14886 2020-02-08 Tom Tromey <tom@tromey.com>
14887
14888 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14889 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14890 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14891 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14892 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14893 * dwarf2/leb.h: New file, from dwarf2read.c.
14894 * dwarf2/leb.c: New file, from dwarf2read.c.
14895 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14896 Remove.
14897 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14898 (COMMON_SFILES): Add dwarf2/leb.c.
14899
14900 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14901
14902 GDB 9.1 released.
14903
14904 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14905
14906 PR gdb/25190:
14907 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14908 * gdb/remote.c (remote_console_output): Update.
14909 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14910 (ui_file_puts): ...this.
14911 * gdb/ui-file.h (ui_file_puts): Add declaration.
14912 * gdb/utils.c (emit_style_escape): Update.
14913 (flush_wrap_buffer): Update.
14914 (fputs_maybe_filtered): Update.
14915 (fputs_unfiltered): Add function.
14916
14917 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14918
14919 * gdb/event-loop.c (gdb_wait_for_event): Update.
14920 * gdb/printcmd.c (printf_command): Update.
14921 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14922 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14923 (gdb_os_flush_stderr): Update.
14924 * gdb/remote.c (remote_console_output): Update.
14925 * gdb/ui-file.c (gdb_flush): Rename to...
14926 (ui_file_flush): ...this.
14927 (stderr_file::write): Update.
14928 (stderr_file::puts): Update.
14929 * gdb/ui-file.h (gdb_flush): Rename to...
14930 (ui_file_flush): ...this.
14931 * gdb/utils.c (gdb_flush): Add function.
14932 * gdb/utils.h (gdb_flush): Add declaration.
14933
14934 2020-02-07 Tom Tromey <tromey@adacore.com>
14935
14936 PR breakpoints/24915:
14937 * source.c (find_and_open_source): Do not check basenames_may_differ.
14938
14939 2020-02-07 Tom Tromey <tom@tromey.com>
14940
14941 * README: Update gdbserver documentation.
14942 * gdbserver: Move to top level.
14943 * configure.tgt (build_gdbserver): Remove.
14944 * configure.ac: Remove --enable-gdbserver.
14945 * configure: Rebuild.
14946 * Makefile.in (distclean): Don't mention gdbserver.
14947
14948 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14949
14950 * source-cache.c (source_cache::ensure): Surround
14951 get_plain_source_lines with a try/catch.
14952 (source_cache::get_line_charpos): Get rid of try/catch
14953 and only check for the return value of "ensure".
14954 * tui/tui-source.c (tui_source_window::set_contents):
14955 Simplify "nlines" calculation.
14956
14957 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14958
14959 * MAINTAINERS (Write After Approval): Add myself.
14960
14961 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14962
14963 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14964 function call.
14965
14966 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14967
14968 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14969
14970 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14971
14972 * nat/riscv-linux-tdesc.h: New file.
14973 * nat/riscv-linux-tdesc.c: New file, taking code from...
14974 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14975 ... here.
14976 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14977 NATDEPFILES.
14978
14979 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14980
14981 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14982 we don't set the fake simulator ptid to the null_ptid.
14983
14984 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14985
14986 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14987 * gdbthread.h (class thread_info) <resumed>: Likewise.
14988 * infrun.c (resume_1): Likewise.
14989 (proceed): Likewise.
14990 (infrun_thread_stop_requested): Likewise.
14991 (stop_all_threads): Likewise.
14992 (handle_inferior_event): Likewise.
14993 (restart_threads): Likewise.
14994 (finish_step_over): Likewise.
14995 (keep_going_stepped_thread): Likewise.
14996 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14997 (linux_handle_extended_wait): Likewise.
14998 * record-btrace.c (get_thread_current_frame_id): Likewise.
14999 * record-full.c (record_full_wait_1): Likewise.
15000 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15001 * target.c (target_resume): Likewise.
15002 * thread.c (set_running_thread): Likewise.
15003
15004 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15005
15006 * f-valprint.c (f77_print_array_1): Changed datatype of index
15007 variable to LONGEST from int to enable it to contain bound
15008 values correctly.
15009
15010 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15011
15012 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15013 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15014 offsets according to FLEN determined.
15015 (riscv_linux_nat_target::read_description): Determine FLEN
15016 dynamically.
15017 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15018 according to FLEN determined.
15019 (riscv_linux_nat_target::store_registers): Likewise.
15020
15021 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15022
15023 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15024 when reg->group is empty and reggroup is not.
15025
15026 2020-01-31 Tom Tromey <tromey@adacore.com>
15027
15028 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15029 Call beneath target's mourn_inferior after unpushing.
15030
15031 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15032
15033 PR tui/9765
15034 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15035 have enough lines to fill the screen, still return the lowest
15036 address we found.
15037
15038 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15039
15040 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15041 '-', '<', and '>' commands.
15042
15043 2020-01-29 Pedro Alves <palves@redhat.com>
15044 Sergio Durigan Junior <sergiodj@redhat.com>
15045
15046 * infcmd.c (construct_inferior_arguments): Assert that
15047 'argc' is greater than 0.
15048
15049 2020-01-29 Luis Machado <luis.machado@linaro.org>
15050
15051 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15052 (BRK_INSN_MASK): Define to 0xd4200000.
15053 (aarch64_program_breakpoint_here_p): New function.
15054 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15055 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15056 breakpoint.c.
15057 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15058 breakpoint.h
15059 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15060 call gdbarch_program_breakpoint_here_p.
15061 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15062 default_program_breakpoint_here_p, changed return type to bool and
15063 simplified.
15064 * breakpoint.h (program_breakpoint_here): Moved prototype to
15065 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15066 return type to bool.
15067 * gdbarch.c: Regenerate.
15068 * gdbarch.h: Regenerate.
15069 * gdbarch.sh (program_breakpoint_here_p): New method.
15070 * infrun.c (handle_signal_stop): Call
15071 gdbarch_program_breakpoint_here_p.
15072
15073 2020-01-26 Tom Tromey <tom@tromey.com>
15074
15075 * ctfread.c (struct ctf_fp_info): Reindent.
15076 (_initialize_ctfread): Remove.
15077
15078 2020-01-26 Tom Tromey <tom@tromey.com>
15079
15080 * psymtab.c (partial_map_expand_apply)
15081 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15082 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15083 (psym_print_stats, psym_expand_symtabs_for_function)
15084 (psym_map_symbol_filenames, psym_map_matching_symbols)
15085 (psym_expand_symtabs_matching)
15086 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15087 (maintenance_check_psymtabs): Use new methods.
15088 * psympriv.h (struct partial_symtab) <readin_p,
15089 get_compunit_symtab>: New methods.
15090 <readin, compunit_symtab>: Remove members.
15091 (struct standard_psymtab): New.
15092 (struct legacy_psymtab): Derive from standard_psymtab.
15093 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15094 standard_psymtab.
15095 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15096
15097 2020-01-26 Tom Tromey <tom@tromey.com>
15098
15099 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15100 read_dependencies. Add assert.
15101 * psymtab.c (partial_symtab::read_dependencies): New method.
15102 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15103 method.
15104 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15105 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15106 read_dependencies.
15107 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15108 Add assert.
15109
15110 2020-01-26 Tom Tromey <tom@tromey.com>
15111
15112 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15113 Call expand_psymtab.
15114 (xcoff_read_symtab): Call expand_psymtab.
15115 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15116 legacy_expand_psymtab.
15117 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15118 method.
15119 (struct legacy_psymtab) <expand_psymtab>: Implement.
15120 <legacy_expand_psymtab>: New member.
15121 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15122 (parse_partial_symbols): Set legacy_expand_psymtab.
15123 (psymtab_to_symtab_1): Change argument order. Call
15124 expand_psymtab.
15125 (new_psymtab): Set legacy_expand_psymtab.
15126 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15127 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15128 expand_psymtab.
15129 (dwarf2_psymtab::expand_psymtab): Rename from
15130 psymtab_to_symtab_1. Call expand_psymtab.
15131 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15132 (dbx_end_psymtab): Likewise.
15133 (dbx_psymtab_to_symtab_1): Change argument order. Call
15134 expand_psymtab.
15135 (dbx_read_symtab): Call expand_psymtab.
15136 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15137 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15138 (ctf_psymtab::read_symtab): Call expand_psymtab.
15139
15140 2020-01-26 Tom Tromey <tom@tromey.com>
15141
15142 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15143 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15144 messages.
15145 * mdebugread.c (mdebug_read_symtab): Remove prints.
15146 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15147 assert.
15148 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15149
15150 2020-01-26 Tom Tromey <tom@tromey.com>
15151
15152 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15153 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15154 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15155 legacy_symtab.
15156 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15157 * psymtab.c (psymtab_to_symtab): Call method.
15158 (dump_psymtab): Update.
15159 * psympriv.h (struct partial_symtab): Add virtual destructor.
15160 <read_symtab>: New method.
15161 (struct legacy_symtab): New.
15162 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15163 (struct pst_map) <pst>: Now a legacy_psymtab.
15164 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15165 (new_psymtab): Use legacy_psymtab.
15166 * dwarf2read.h (struct dwarf2_psymtab): New.
15167 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15168 * dwarf2read.c (dwarf2_create_include_psymtab)
15169 (dwarf2_build_include_psymtabs, create_type_unit_group)
15170 (create_partial_symtab, process_psymtab_comp_unit_reader)
15171 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15172 (set_partial_user): Use dwarf2_psymtab.
15173 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15174 (psymtab_to_symtab_1, process_full_comp_unit)
15175 (process_full_type_unit, dwarf2_ranges_read)
15176 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15177 (dwarf_decode_lines): Use dwarf2_psymtab.
15178 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15179 (add_address_entry_worker, write_one_signatured_type)
15180 (recursively_count_psymbols, recursively_write_psymbols)
15181 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15182 (write_debug_names): Likewise.
15183 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15184 <pst>: Now a legacy_psymtab.
15185 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15186 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15187 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15188 * ctfread.c (struct ctf_psymtab): New.
15189 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15190 ctf_psymtab.
15191 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15192 (create_partial_symtab): Return a ctf_psymtab.
15193 (scan_partial_symbols): Update.
15194
15195 2020-01-26 Tom Tromey <tom@tromey.com>
15196
15197 * xcoffread.c (xcoff_start_psymtab): Use new.
15198 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15199 renamed from start_psymtab_common.
15200 * psympriv.h (struct partial_symtab): Add new constructor.
15201 (start_psymtab_common): Don't declare.
15202 * mdebugread.c (parse_partial_symbols): Use new.
15203 * dwarf2read.c (create_partial_symtab): Use new.
15204 * dbxread.c (start_psymtab): Use new.
15205 * ctfread.c (create_partial_symtab): Use new.
15206
15207 2020-01-26 Tom Tromey <tom@tromey.com>
15208
15209 * xcoffread.c (xcoff_end_psymtab): Use new.
15210 * psymtab.c (start_psymtab_common): Use new.
15211 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15212 Update.
15213 * psympriv.h (struct partial_symtab): Add parameters to
15214 constructor. Don't inline.
15215 (allocate_psymtab): Don't declare.
15216 * mdebugread.c (new_psymtab): Use new.
15217 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15218 * dbxread.c (dbx_end_psymtab): Use new.
15219
15220 2020-01-26 Tom Tromey <tom@tromey.com>
15221
15222 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15223 allocate_psymtab. Update documentation.
15224 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15225 allocate_psymtab. Do not use new.
15226 (allocate_psymtab): Use new. Update.
15227
15228 2020-01-26 Tom Tromey <tom@tromey.com>
15229
15230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15231 * psymtab.c (psym_print_stats): Update.
15232 * psympriv.h (struct partial_symtab) <readin,
15233 psymtabs_addrmap_supported, anonymous>: Now bool.
15234 * mdebugread.c (psymtab_to_symtab_1): Update.
15235 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15236 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15237 (process_full_comp_unit, process_full_type_unit): Update.
15238 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15239 * ctfread.c (psymtab_to_symtab): Update.
15240
15241 2020-01-26 Tom Tromey <tom@tromey.com>
15242
15243 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15244 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15245 * psymtab.c (psymtab_storage): Delete psymtabs.
15246 (psymtab_storage::allocate_psymtab): Use new.
15247 (psymtab_storage::discard_psymtab): Use delete.
15248 * psympriv.h (struct partial_symtab): Add constructor and
15249 initializers.
15250
15251 2020-01-26 Tom Tromey <tom@tromey.com>
15252
15253 * machoread.c: Do not include psympriv.h.
15254
15255 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15256
15257 * NEWS: Mention the new option and the set/show commands.
15258
15259 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15260
15261 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15262 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15263 (validate_exec_file): New variables, enums, functions.
15264 (exec_file_locate_attach, print_section_info): Style the filenames.
15265 (_initialize_exec): Install show_exec_file_mismatch_command and
15266 set_exec_file_mismatch_command.
15267 * gdbcore.h (validate_exec_file): Declare.
15268 * infcmd.c (attach_command): Call validate_exec_file.
15269 * remote.c ( remote_target::remote_add_inferior): Likewise.
15270
15271 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15272
15273 * frame.c (find_frame_sal): Move call to get_next_frame into more
15274 inner scope.
15275 * inline-frame.c (inilne_state) <inline_state>: Update argument
15276 types.
15277 (inilne_state) <skipped_symbol>: Rename to...
15278 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15279 (skip_inline_frames): Build vector of skipped symbols and use this
15280 to reate the inline_state.
15281 (inline_skipped_symbol): Add a comment and some assertions, fetch
15282 skipped symbol from the list.
15283
15284 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15285
15286 * buildsym.c (lte_is_less_than): Delete.
15287 (buildsym_compunit::end_symtab_with_blockvector): Create local
15288 lambda function to sort line table entries, and use
15289 std::stable_sort instead of std::sort.
15290 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15291 markers when looking for a previous line.
15292
15293 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15294
15295 * dwarf2read.c (lnp_state_machine::record_line): Include
15296 end_sequence parameter in debug print out. Record the line if we
15297 are at an end_sequence marker even if it's not the start of a
15298 statement.
15299 * symmisc.c (maintenance_print_one_line_table): Print end of
15300 sequence markers with 'END' not '0'.
15301
15302 2020-01-24 Pedro Alves <palves@redhat.com>
15303
15304 PR gdb/25410
15305 * thread.c (scoped_restore_current_thread::restore): Use
15306 switch_to_inferior_no_thread.
15307 * exec.c: Include "progspace-and-thread.h".
15308 (add_target_sections, remove_target_sections):
15309 scoped_restore_current_pspace_and_thread instead of
15310 scoped_restore_current_thread.
15311 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15312 and aspace to the inferior before calling clone_program_space.
15313 Remove stale comment.
15314
15315 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15316
15317 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15318 (arm_netbsd_nat_target::fetch_registers): ...this.
15319 (arm_nbsd_nat_target::store_registers): Rename to...
15320 (arm_netbsd_nat_target::store_registers): ...this.
15321
15322 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15323
15324 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15325 register_t.
15326
15327 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15328
15329 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15330 Update comment.
15331 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15332 Likewise.
15333 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15334 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15335 the correct replacement (iterate_over_regset_sections).
15336 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15337 Update comment.
15338
15339 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15340
15341 PR gdb/23718
15342 * gdb/python/python.c (execute_gdb_command): Call
15343 async_enable_stdin in catch block.
15344
15345 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15346
15347 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15348 SWITCH_THRU_ALL_UIS.
15349
15350 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15351
15352 PR tui/9765
15353 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15354 comment, add extra parameter, and update to store previous symbol
15355 when appropriate.
15356 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15357 add extra parameter.
15358 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15359 remove unneeded parameter, add try/catch around gdb_print_insn,
15360 rewrite to add items to asm_lines vector.
15361 (tui_find_backward_disassembly_start_address): New function.
15362 (tui_find_disassembly_address): Updated throughout.
15363 (tui_disasm_window::set_contents): Update for changes to
15364 tui_disassemble.
15365 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15366 number of lines to scroll.
15367
15368 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15369
15370 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15371 (SECT_OFF_DATA): Likewise.
15372 (SECT_OFF_RODATA): Likewise.
15373 (SECT_OFF_TEXT): Likewise.
15374 (SECT_OFF_BSS): Likewise.
15375 (struct objfile) <text_section_offset, data_section_offset>: New
15376 methods.
15377 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15378 objfile::text_section_offset.
15379 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15380 * coffread.c (coff_symtab_read): Likewise.
15381 (enter_linenos): Likewise.
15382 (process_coff_symbol): Likewise.
15383 * ctfread.c (get_objfile_text_range): Likewise.
15384 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15385 Use objfile::data_section_offset.
15386 * dwarf2-frame.c (execute_cfa_program): Use
15387 objfile::text_section_offset.
15388 (dwarf2_frame_find_fde): Likewise.
15389 * dwarf2read.c (create_addrmap_from_index): Likewise.
15390 (create_addrmap_from_aranges): Likewise.
15391 (dw2_find_pc_sect_compunit_symtab): Likewise.
15392 (process_psymtab_comp_unit_reader): Likewise.
15393 (add_partial_symbol): Likewise.
15394 (add_partial_subprogram): Likewise.
15395 (process_full_comp_unit): Likewise.
15396 (read_file_scope): Likewise.
15397 (read_func_scope): Likewise.
15398 (read_lexical_block_scope): Likewise.
15399 (read_call_site_scope): Likewise.
15400 (dwarf2_rnglists_process): Likewise.
15401 (dwarf2_ranges_process): Likewise.
15402 (dwarf2_ranges_read): Likewise.
15403 (dwarf_decode_lines_1): Likewise.
15404 (new_symbol): Likewise.
15405 (dwarf2_fetch_die_loc_sect_off): Likewise.
15406 (dwarf2_per_cu_text_offset): Likewise.
15407 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15408 * hppa-tdep.c (read_unwind_info): Likewise.
15409 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15410 * psympriv.h (struct partial_symtab): Likewise.
15411 * psymtab.c (find_pc_sect_psymtab): Likewise.
15412 * solib-svr4.c (enable_break): Likewise.
15413 * stap-probe.c (relocate_address): Use
15414 objfile::data_section_offset.
15415 * xcoffread.c (enter_line_range): Use
15416 objfile::text_section_offset.
15417 (read_xcoff_symtab): Likewise.
15418
15419 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15420
15421 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15422 declaration to narrower scopes.
15423
15424 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15425
15426 * darwin-nat.h (struct darwin_exception_msg, enum
15427 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15428 Move up.
15429 (class darwin_nat_target) <wait_1, check_new_threads,
15430 decode_exception_message, decode_message, stop_inferior,
15431 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15432 * darwin-nat.c (darwin_check_new_threads): Rename to...
15433 (darwin_nat_target::check_new_threads): ... this.
15434 (darwin_suspend_inferior_it): Remove.
15435 (darwin_decode_exception_message): Rename to...
15436 (darwin_nat_target::decode_exception_message): ... this.
15437 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15438 (darwin_decode_message): Rename to...
15439 (darwin_nat_target::decode_message): ... this.
15440 (cancel_breakpoint): Rename to...
15441 (darwin_nat_target::cancel_breakpoint): ... this.
15442 (darwin_wait): Rename to...
15443 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15444 instead of iterate_over_inferiors.
15445 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15446 (darwin_stop_inferior): Rename to...
15447 (darwin_nat_target::stop_inferior): ... this.
15448 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15449 (darwin_init_thread_list): Rename to...
15450 (darwin_nat_target::init_thread_list): ... this.
15451 (darwin_ptrace_him): Rename to...
15452 (darwin_nat_target::ptrace_him): ... this.
15453 (darwin_nat_target::create_inferior): Pass lambda function to
15454 fork_inferior.
15455 (darwin_nat_target::detach): Call stop_inferior instead of
15456 darwin_stop_inferior.
15457 * fork-inferior.h (fork_inferior): Change init_trace_fun
15458 parameter to gdb::function_view.
15459 * fork-inferior.c (fork_inferior): Likewise.
15460
15461 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15462
15463 * i386-cygwin-tdep.c (core_process_module_section): Update.
15464 * windows-nat.c (struct lm_info_windows): Add text_offset.
15465 (windows_xfer_shared_libraries): Update.
15466 * windows-tdep.c (windows_xfer_shared_library):
15467 Add text_offset_cached argument.
15468 * windows-tdep.h (windows_xfer_shared_library): Update.
15469
15470 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15471
15472 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15473
15474 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15475
15476 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15477 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15478 replace with range-based for.
15479 (gdbsim_interrupt_inferior): Remove.
15480 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15481 with a range-based for. Inline code from
15482 gdbsim_interrupt_inferior.
15483
15484 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15485
15486 * infrun.c (proceed): Fix indentation.
15487
15488 2020-01-21 Tom Tromey <tromey@adacore.com>
15489
15490 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15491 * python/python.c (python_extension_ops): Update.
15492 (gdbpy_colorize): New function.
15493 * python/lib/gdb/__init__.py (colorize): New function.
15494 * extension.h (ext_lang_colorize): Declare.
15495 * extension.c (ext_lang_colorize): New function.
15496 * extension-priv.h (struct extension_language_ops) <colorize>: New
15497 member.
15498 * cli/cli-style.c (_initialize_cli_style): Update help text.
15499
15500 2020-01-21 Luis Machado <luis.machado@linaro.org>
15501
15502 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15503 <cond>: Change type to bool.
15504 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15505 (aarch64_displaced_step_cb): Likewise.
15506 (aarch64_displaced_step_tb): Likewise.
15507
15508 2020-01-21 Luis Machado <luis.machado@linaro.org>
15509
15510 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15511 output.
15512
15513 2020-01-21 Luis Machado <luis.machado@linaro.org>
15514
15515 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15516 <pc_adjust>: Adjust the documentation.
15517 (aarch64_displaced_step_fixup): Check if PC really moved before
15518 adjusting it.
15519
15520 2020-01-19 Tom Tromey <tom@tromey.com>
15521
15522 * disasm.c (~gdb_disassembler): New destructor.
15523 (gdb_buffered_insn_length): Call disassemble_free_target.
15524 * disasm.h (class gdb_disassembler): Declare destructor. Use
15525 DISABLE_COPY_AND_ASSIGN.
15526
15527 2020-01-19 Tom Tromey <tom@tromey.com>
15528
15529 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15530 (die_reader_func_ftype): Remove.
15531 (cutu_reader): New class.
15532 (dw2_get_file_names_reader): Remove "data" parameter.
15533 (dw2_get_file_names): Use cutu_reader.
15534 (create_debug_type_hash_table): Update.
15535 (read_cutu_die_from_dwo): Update comment.
15536 (lookup_dwo_unit): Add dwo_name parameter.
15537 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15538 die_reader_func_ftype and data parameters.
15539 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15540 Remove die_reader_func_ftype and data parameters.
15541 (~cutu_reader): New; from init_cutu_and_read_dies.
15542 (cutu_reader::cutu_reader): Rename from
15543 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15544 and data parameters.
15545 (init_cutu_and_read_dies_simple): Remove.
15546 (struct process_psymtab_comp_unit_data): Remove.
15547 (process_psymtab_comp_unit_reader): Remove data parameter; add
15548 want_partial_unit and pretend_language parameters.
15549 (process_psymtab_comp_unit): Use cutu_reader.
15550 (build_type_psymtabs_reader): Remove data parameter.
15551 (build_type_psymtabs_1): Use cutu_reader.
15552 (process_skeletonless_type_unit): Likewise.
15553 (load_partial_comp_unit_reader): Remove.
15554 (load_partial_comp_unit): Use cutu_reader.
15555 (load_full_comp_unit_reader): Remove.
15556 (load_full_comp_unit): Use cutu_reader.
15557 (struct create_dwo_cu_data): Remove.
15558 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15559 dwo_unit parameters.
15560 (create_cus_hash_table): Use cutu_reader.
15561 (struct dwarf2_read_addr_index_data): Remove.
15562 (dwarf2_read_addr_index_reader): Remove.
15563 (dwarf2_read_addr_index): Use cutu_reader.
15564 (read_signatured_type_reader): Remove.
15565 (read_signatured_type): Use cutu_reader.
15566
15567 2020-01-19 Tom Tromey <tom@tromey.com>
15568
15569 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15570 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15571 (tui_wrefresh): Declare.
15572 * tui/tui-wingeneral.c (suppress_output): New global.
15573 (tui_suppress_output, ~tui_suppress_output): New constructor and
15574 destructor.
15575 (tui_wrefresh): New function.
15576 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15577 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15578 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15579 method.
15580 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15581 tui_wrefresh.
15582 (tui_data_window::no_refresh): New method.
15583 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15584 (tui_reg_command): Use tui_suppress_output
15585 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15586 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15587 method.
15588 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15589
15590 2020-01-19 Tom Tromey <tom@tromey.com>
15591
15592 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15593 Handle case where symtab is null.
15594
15595 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15596
15597 * linux-fork.c (one_fork_p): Simplify.
15598
15599 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15600
15601 * top.c (struct qt_args): Remove.
15602 (kill_or_detach): Change return type to void, replace `void *`
15603 parameter with a proper one.
15604 (print_inferior_quit_action): Likewise.
15605 (quit_confirm): Use range-based for loop to iterate over inferiors.
15606 (quit_force): Likewise.
15607
15608 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15609
15610 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15611 `void *` parameter with proper parameters.
15612 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15613 (print_one_inferior): Change return type to void, replace `void *`
15614 parameter with proper parameters.
15615 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15616 inferiors.
15617 (get_other_inferior): Remove.
15618 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15619 inferiors.
15620
15621 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15622
15623 * mi/mi-interp.c (report_initial_inferior): Remove.
15624 (mi_interp::init): Use range-based for to iterate over inferiors.
15625
15626 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15627
15628 * python/py-inferior.c (build_inferior_list): Remove.
15629 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15630
15631 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15632
15633 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15634 (btrace_stitch_trace): Likewise.
15635 * charset.c (intermediate_encoding): Likewise (vaild).
15636 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15637 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15638 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15639
15640 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15641
15642 * windows-tdep.c (windows_get_tlb_type):
15643 Add rtl_user_process_parameters type.
15644
15645 2020-01-16 Pedro Alves <palves@redhat.com>
15646 Norbert Lange <nolange79@gmail.com>
15647
15648 PR build/24805
15649 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15650 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15651 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15652 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15653 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15654 (ps_plog): Redeclare exported functions with default visibility.
15655
15656 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15657
15658 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15659 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15660
15661 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15662
15663 * infcmd.c (post_create_inferior): Use get_thread_regcache
15664 instead of get_current_regcache.
15665
15666 2020-01-14 Tom Tromey <tom@tromey.com>
15667
15668 PR symtab/12535:
15669 * python/python.c (gdbpy_decode_line): Treat empty string the same
15670 as no argument.
15671
15672 2020-01-14 Tom Tromey <tom@tromey.com>
15673
15674 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15675
15676 2020-01-14 Tom Tromey <tom@tromey.com>
15677
15678 * nat/linux-btrace.c: Don't include <config.h>.
15679 * nat/linux-ptrace.c: Don't include <config.h>.
15680 * nat/x86-linux-dregs.c: Don't include <config.h>.
15681
15682 2020-01-14 Tom Tromey <tom@tromey.com>
15683
15684 * configure: Rebuild.
15685 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15686
15687 2020-01-14 Tom Tromey <tom@tromey.com>
15688
15689 * nat/x86-linux-dregs.c: Include configh.h.
15690 * nat/linux-ptrace.c: Include configh.h.
15691 * nat/linux-btrace.c: Include configh.h.
15692 * defs.h: Include config.h, bfd.h.
15693 * configure.ac: Don't source common.host.
15694 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15695 * configure: Rebuild.
15696 * acinclude.m4: Update path.
15697 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15698 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15699 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15700 (CLIBS): Add LIBSUPPORT.
15701 (CDEPS): Likewise.
15702 (COMMON_SFILES): Remove gdbsupport files.
15703 (HFILES_NO_SRCDIR): Likewise.
15704 (stamp-version): Update path to create-version.sh.
15705 (ALLDEPFILES): Remove gdbsupport files.
15706
15707 2020-01-14 Tom Tromey <tom@tromey.com>
15708
15709 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15710 USE_WIN32API when needed.
15711 * configure.ac (USE_WIN32API): Don't define.
15712 (WIN32LIBS): Use WIN32APILIBS.
15713 * configure: Rebuild.
15714
15715 2020-01-14 Tom Tromey <tom@tromey.com>
15716
15717 * configure: Rebuild.
15718 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15719
15720 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15721
15722 * skip.c (skip_function_command): Make skip w/o arguments use the
15723 name of the inlined function if pc is inside any inlined function.
15724
15725 2020-01-14 Luis Machado <luis.machado@linaro.org>
15726
15727 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15728 * infrun.c (resume_1): Likewise.
15729 (handle_inferior_event): Remove stale comment.
15730 * linux-nat.c (linux_nat_target::resume): Update comments.
15731 (save_stop_reason): Likewise.
15732 (linux_nat_filter_event): Likewise.
15733 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15734
15735 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15736
15737 * elfread.c (record_minimal_symbol): Set section index to 0 for
15738 non-allocatable sections.
15739
15740
15741 2020-01-13 Ali Tamur <tamur@google.com>
15742
15743 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15744 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15745 to gdb::optional. Update comments.
15746 (dwo_file): Update comments.
15747 (read_attribute): Update API to take an additional out parameter,
15748 need_reprocess. This is used to mark attributes that need other
15749 attributes (e.g. str_offsets_base) for correct computation which may not
15750 have been read yet.
15751 (read_attribute_reprocess): New function declaration.
15752 (read_addr_index): Likewise.
15753 (read_dwo_str_index): Likewise.
15754 (read_stub_str_index): Likewise.
15755 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15756 (lookup_addr_base): New function definition.
15757 (lookup_ranges_base): Likewise.
15758 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15759 lookup_ranges_base.
15760 (init_cutu_and_read_dies): Update comments.
15761 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15762 unit. This is used to inherit parent's str_offsets_base and addr_base.
15763 Update comments.
15764 (init_cutu_and_read_dies_simple): Reflect API changes.
15765 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15766 (create_cus_hash_table): Change API to take parent compile unit.
15767 Reflect API changes.
15768 (open_and_init_dwo_file): Reflect API changes.
15769 (dwarf2_get_pc_bounds): Update comments.
15770 (dwarf2_record_block_ranges): Likewise.
15771 (read_full_die_1): Change implementation to reprocess attributes that
15772 need str_offsets_base and addr_base.
15773 (partial_die_info::read): Likewise.
15774 (read_attribute_reprocess): New function definition.
15775 (read_attribute_value): Change API to take an additional out parameter,
15776 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15777 when a non-dwo compile unit has index based attributes.
15778 (read_attribute): Reflect API changes.
15779 (read_addr_index_1): Reflect API changes. Update comments.
15780 (dwarf2_read_addr_index_data): Reflect API changes.
15781 (dwarf2_read_addr_index): Likewise.
15782 (read_str_index): Change API and implementation. This becomes a helper
15783 to be used by the new string index related methods. Update error
15784 message and comments.
15785 (read_dwo_str_index): New function definition.
15786 (read_stub_str_index): Likewise.
15787 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15788 * symfile.h (dwarf2_debug_sections): Likewise.
15789 * xcoffread.c (dwarf2_debug_sections): Likewise.
15790
15791 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15792
15793 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15794 core_reg_sect type to gdb_byte *.
15795 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15796 * cris-tdep.c (fetch_core_registers): Likewise.
15797 * corelow.c (core_target::get_core_register_section): Change
15798 type of `contents` to gdb::byte_vector.
15799
15800 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15801
15802 * tui/tui-wingeneral.c (box_win): Position the title in the center
15803 of the border.
15804
15805 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15806
15807 * corelow.c (core_target::get_core_register_section): Use
15808 std::vector instead of alloca.
15809
15810 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15811
15812 * warning.m4: Add -Wmissing-declarations to build_warnings.
15813 * configure: Re-generate.
15814
15815 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15816
15817 * python/python.c (init__gdb_module): Add declaration.
15818
15819 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15820
15821 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15822 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15823 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15824 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15825 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15826 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15827 * ada-exp.y (_initialize_ada_exp): Add declaration.
15828 * ada-lang.c (_initialize_ada_language): Add declaration.
15829 * ada-tasks.c (_initialize_tasks): Add declaration.
15830 * agent.c (_initialize_agent): Add declaration.
15831 * aix-thread.c (_initialize_aix_thread): Add declaration.
15832 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15833 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15834 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15835 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15836 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15837 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15838 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15839 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15840 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15841 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15842 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15843 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15844 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15845 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15846 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15847 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15848 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15849 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15850 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15851 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15852 * annotate.c (_initialize_annotate): Add declaration.
15853 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15854 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15855 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15856 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15857 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15858 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15859 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15860 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15861 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15862 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15863 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15864 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15865 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15866 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15867 * auto-load.c (_initialize_auto_load): Add declaration.
15868 * auxv.c (_initialize_auxv): Add declaration.
15869 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15870 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15871 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15872 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15873 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15874 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15875 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15876 * breakpoint.c (_initialize_breakpoint): Add declaration.
15877 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15878 * btrace.c (_initialize_btrace): Add declaration.
15879 * charset.c (_initialize_charset): Add declaration.
15880 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15881 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15882 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15883 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15884 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15885 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15886 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15887 * coffread.c (_initialize_coffread): Add declaration.
15888 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15889 * compile/compile.c (_initialize_compile): Add declaration.
15890 * complaints.c (_initialize_complaints): Add declaration.
15891 * completer.c (_initialize_completer): Add declaration.
15892 * copying.c (_initialize_copying): Add declaration.
15893 * corefile.c (_initialize_core): Add declaration.
15894 * corelow.c (_initialize_corelow): Add declaration.
15895 * cp-abi.c (_initialize_cp_abi): Add declaration.
15896 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15897 * cp-support.c (_initialize_cp_support): Add declaration.
15898 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15899 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15900 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15901 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15902 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15903 * ctfread.c (_initialize_ctfread): Add declaration.
15904 * d-lang.c (_initialize_d_language): Add declaration.
15905 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15906 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15907 * dbxread.c (_initialize_dbxread): Add declaration.
15908 * dcache.c (_initialize_dcache): Add declaration.
15909 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15910 * disasm.c (_initialize_disasm): Add declaration.
15911 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15912 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15913 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15914 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15915 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15916 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15917 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15918 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15919 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15920 * elfread.c (_initialize_elfread): Add declaration.
15921 * exec.c (_initialize_exec): Add declaration.
15922 * extension.c (_initialize_extension): Add declaration.
15923 * f-lang.c (_initialize_f_language): Add declaration.
15924 * f-valprint.c (_initialize_f_valprint): Add declaration.
15925 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15926 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15927 * filesystem.c (_initialize_filesystem): Add declaration.
15928 * findcmd.c (_initialize_mem_search): Add declaration.
15929 * findvar.c (_initialize_findvar): Add declaration.
15930 * fork-child.c (_initialize_fork_child): Add declaration.
15931 * frame-base.c (_initialize_frame_base): Add declaration.
15932 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15933 * frame.c (_initialize_frame): Add declaration.
15934 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15935 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15936 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15937 * gcore.c (_initialize_gcore): Add declaration.
15938 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15939 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15940 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15941 * gdbarch.c (_initialize_gdbarch): Add declaration.
15942 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15943 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15944 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15945 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15946 * go-lang.c (_initialize_go_language): Add declaration.
15947 * go32-nat.c (_initialize_go32_nat): Add declaration.
15948 * guile/guile.c (_initialize_guile): Add declaration.
15949 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15950 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15951 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15952 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15953 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15954 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15955 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15956 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15957 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15958 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15959 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15960 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15961 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15962 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15963 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15964 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15965 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15966 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15967 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15968 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15969 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15970 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15971 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15972 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15973 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15974 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15975 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15976 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15977 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15978 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15979 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15980 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15981 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15982 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15983 * infcall.c (_initialize_infcall): Add declaration.
15984 * infcmd.c (_initialize_infcmd): Add declaration.
15985 * inflow.c (_initialize_inflow): Add declaration.
15986 * infrun.c (_initialize_infrun): Add declaration.
15987 * interps.c (_initialize_interpreter): Add declaration.
15988 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15989 * jit.c (_initialize_jit): Add declaration.
15990 * language.c (_initialize_language): Add declaration.
15991 * linux-fork.c (_initialize_linux_fork): Add declaration.
15992 * linux-nat.c (_initialize_linux_nat): Add declaration.
15993 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15994 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15995 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15996 * m2-lang.c (_initialize_m2_language): Add declaration.
15997 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15998 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15999 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16000 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16001 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16002 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16003 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16004 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16005 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16006 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16007 * machoread.c (_initialize_machoread): Add declaration.
16008 * macrocmd.c (_initialize_macrocmd): Add declaration.
16009 * macroscope.c (_initialize_macroscope): Add declaration.
16010 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16011 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16012 * maint.c (_initialize_maint_cmds): Add declaration.
16013 * mdebugread.c (_initialize_mdebugread): Add declaration.
16014 * memattr.c (_initialize_mem): Add declaration.
16015 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16016 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16017 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16018 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16019 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16020 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16021 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16022 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16023 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16024 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16025 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16026 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16027 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16028 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16029 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16030 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16031 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16032 * mipsread.c (_initialize_mipsread): Add declaration.
16033 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16034 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16035 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16036 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16037 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16038 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16039 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16040 * nto-procfs.c (_initialize_procfs): Add declaration.
16041 * objc-lang.c (_initialize_objc_language): Add declaration.
16042 * observable.c (_initialize_observer): Add declaration.
16043 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16044 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16045 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16046 * osabi.c (_initialize_gdb_osabi): Add declaration.
16047 * osdata.c (_initialize_osdata): Add declaration.
16048 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16049 * parse.c (_initialize_parse): Add declaration.
16050 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16051 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16052 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16053 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16054 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16055 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16056 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16057 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16058 * printcmd.c (_initialize_printcmd): Add declaration.
16059 * probe.c (_initialize_probe): Add declaration.
16060 * proc-api.c (_initialize_proc_api): Add declaration.
16061 * proc-events.c (_initialize_proc_events): Add declaration.
16062 * proc-service.c (_initialize_proc_service): Add declaration.
16063 * procfs.c (_initialize_procfs): Add declaration.
16064 * producer.c (_initialize_producer): Add declaration.
16065 * psymtab.c (_initialize_psymtab): Add declaration.
16066 * python/python.c (_initialize_python): Add declaration.
16067 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16068 * record-btrace.c (_initialize_record_btrace): Add declaration.
16069 * record-full.c (_initialize_record_full): Add declaration.
16070 * record.c (_initialize_record): Add declaration.
16071 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16072 * regcache.c (_initialize_regcache): Add declaration.
16073 * reggroups.c (_initialize_reggroup): Add declaration.
16074 * remote-notif.c (_initialize_notif): Add declaration.
16075 * remote-sim.c (_initialize_remote_sim): Add declaration.
16076 * remote.c (_initialize_remote): Add declaration.
16077 * reverse.c (_initialize_reverse): Add declaration.
16078 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16079 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16080 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16081 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16082 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16083 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16084 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16085 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16086 Add declaration.
16087 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16088 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16089 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16090 * rust-exp.y (_initialize_rust_exp): Add declaration.
16091 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16092 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16093 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16094 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16095 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16096 * score-tdep.c (_initialize_score_tdep): Add declaration.
16097 * ser-go32.c (_initialize_ser_dos): Add declaration.
16098 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16099 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16100 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16101 * ser-uds.c (_initialize_ser_socket): Add declaration.
16102 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16103 * serial.c (_initialize_serial): Add declaration.
16104 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16105 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16106 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16107 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16108 * skip.c (_initialize_step_skip): Add declaration.
16109 * sol-thread.c (_initialize_sol_thread): Add declaration.
16110 * solib-aix.c (_initialize_solib_aix): Add declaration.
16111 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16112 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16113 * solib-frv.c (_initialize_frv_solib): Add declaration.
16114 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16115 * solib-target.c (_initialize_solib_target): Add declaration.
16116 * solib.c (_initialize_solib): Add declaration.
16117 * source-cache.c (_initialize_source_cache): Add declaration.
16118 * source.c (_initialize_source): Add declaration.
16119 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16120 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16121 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16122 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16123 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16124 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16125 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16126 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16127 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16128 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16129 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16130 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16131 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16132 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16133 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16134 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16135 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16136 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16137 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16138 * stabsread.c (_initialize_stabsread): Add declaration.
16139 * stack.c (_initialize_stack): Add declaration.
16140 * stap-probe.c (_initialize_stap_probe): Add declaration.
16141 * std-regs.c (_initialize_frame_reg): Add declaration.
16142 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16143 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16144 * symfile.c (_initialize_symfile): Add declaration.
16145 * symmisc.c (_initialize_symmisc): Add declaration.
16146 * symtab.c (_initialize_symtab): Add declaration.
16147 * target.c (_initialize_target): Add declaration.
16148 * target-connection.c (_initialize_target_connection): Add
16149 declaration.
16150 * target-dcache.c (_initialize_target_dcache): Add declaration.
16151 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16152 * thread.c (_initialize_thread): Add declaration.
16153 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16154 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16155 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16156 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16157 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16158 * tracectf.c (_initialize_ctf): Add declaration.
16159 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16160 * tracefile.c (_initialize_tracefile): Add declaration.
16161 * tracepoint.c (_initialize_tracepoint): Add declaration.
16162 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16163 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16164 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16165 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16166 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16167 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16168 * tui/tui.c (_initialize_tui): Add declaration.
16169 * typeprint.c (_initialize_typeprint): Add declaration.
16170 * ui-style.c (_initialize_ui_style): Add declaration.
16171 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16172 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16173 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16174 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16175 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16176 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16177 * unittests/filtered_iterator-selftests.c
16178 (_initialize_filtered_iterator_selftests): Add declaration.
16179 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16180 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16181 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16182 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16183 * unittests/main-thread-selftests.c
16184 (_initialize_main_thread_selftests): Add declaration.
16185 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16186 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16187 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16188 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16189 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16190 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16191 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16192 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16193 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16194 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16195 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16196 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16197 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16198 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16199 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16200 declaration.
16201 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16202 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16203 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16204 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16205 * user-regs.c (_initialize_user_regs): Add declaration.
16206 * utils.c (_initialize_utils): Add declaration.
16207 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16208 * valops.c (_initialize_valops): Add declaration.
16209 * valprint.c (_initialize_valprint): Add declaration.
16210 * value.c (_initialize_values): Add declaration.
16211 * varobj.c (_initialize_varobj): Add declaration.
16212 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16213 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16214 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16215 * windows-nat.c (_initialize_windows_nat): Add declaration.
16216 (_initialize_check_for_gdb_ini): Add declaration.
16217 (_initialize_loadable): Add declaration.
16218 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16219 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16220 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16221 * xcoffread.c (_initialize_xcoffread): Add declaration.
16222 * xml-support.c (_initialize_xml_support): Add declaration.
16223 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16224 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16225 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16226 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16227
16228 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16229
16230 * regformats/regdat.sh: Generate declaration for init function.
16231
16232 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16233
16234 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16235 up.
16236 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16237 close_one_inferior>: New methods.
16238 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16239 pass down target to find_inferior_pid.
16240 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16241 Pass down target to find_inferior_ptid.
16242 (gdbsim_target::create_inferior): Pass down target to
16243 add_thread_silent.
16244 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16245 target down to find_inferior_ptid and switch_to_thread.
16246 (gdbsim_target::close): Update to call close_one_inferior.
16247 (struct resume_data): Remove.
16248 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16249 directly, rather than through a void pointer.
16250 (gdbsim_target::resume): Update to call resume_one_inferior.
16251
16252 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16253
16254 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16255
16256 2020-01-12 Pedro Alves <palves@redhat.com>
16257
16258 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16259 directly for the current inferior instead of
16260 discard_all_inferiors.
16261 (discard_all_inferiors): Delete.
16262
16263 2020-01-11 Tom Tromey <tom@tromey.com>
16264
16265 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16266 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16267 deprecated_safe_get_selected_frame.
16268
16269 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16270
16271 * inferior.c (print_inferior): Switch inferior before printing it.
16272
16273 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16274 Pedro Alves <palves@redhat.com>
16275
16276 * progspace-and-thread.c (switch_to_program_space_and_thread):
16277 Assert there's an inferior for PSPACE. Use
16278 switch_to_inferior_no_thread to switch the inferior too.
16279 * progspace.c (program_space::~program_space): Call
16280 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16281 (program_space::free_all_objfiles): Don't call clear_symtab_users
16282 here.
16283 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16284
16285 2020-01-10 Pedro Alves <palves@redhat.com>
16286
16287 * NEWS: Mention multi-target debugging, "info connections", and
16288 "add-inferior -no-connection".
16289
16290 2020-01-10 Pedro Alves <palves@redhat.com>
16291
16292 * infrun.c: Include "target-connection.h".
16293 (check_multi_target_resumption): New.
16294 (proceed): Call it.
16295 * target-connection.c (make_target_connection_string): Make
16296 extern.
16297 * target-connection.h (make_target_connection_string): Declare.
16298
16299 2020-01-10 Pedro Alves <palves@redhat.com>
16300
16301 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16302 * inferior.c (uiout_field_connection): New function.
16303 (print_inferior): Add new "connection-id" column.
16304 (add_inferior_command): Show connection number/string of added
16305 inferior.
16306 * process-stratum-target.h
16307 (process_stratum_target::connection_string): New virtual method.
16308 (process_stratum_target::connection_number): New field.
16309 * remote.c (remote_target::connection_string): New override.
16310 * target-connection.c: New file.
16311 * target-connection.h: New file.
16312 * target.c (decref_target): Remove process_stratum targets from
16313 the connection list.
16314 (target_stack::push): Add process_stratum targets to the
16315 connection list.
16316
16317 2020-01-10 Pedro Alves <palves@redhat.com>
16318
16319 Revert:
16320 2016-04-12 Pedro Alves <palves@redhat.com>
16321 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16322 Remove references to name.
16323 * serial.h (struct serial) <name>: Delete.
16324
16325 2020-01-10 Pedro Alves <palves@redhat.com>
16326
16327 * gdbarch-selftests.c (register_to_value_test): Remove "target
16328 already pushed" check.
16329
16330 2020-01-10 Pedro Alves <palves@redhat.com>
16331 John Baldwin <jhb@FreeBSD.org>
16332
16333 * aarch64-linux-nat.c
16334 (aarch64_linux_nat_target::thread_architecture): Adjust.
16335 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16336 (task_command_1): Likewise.
16337 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16338 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16339 (aix_thread_target::store_registers)
16340 (aix_thread_target::thread_alive): Adjust.
16341 * amd64-fbsd-tdep.c: Include "inferior.h".
16342 (amd64fbsd_get_thread_local_address): Pass down target.
16343 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16344 thread's gdbarch instead of target_gdbarch.
16345 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16346 get_last_target_status.
16347 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16348 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16349 inferiors.
16350 (update_inserted_breakpoint_locations): Skip if inferiors with no
16351 execution.
16352 (update_global_location_list): When handling moribund locations,
16353 find representative inferior for location's pspace, and use thread
16354 count of its process_stratum target.
16355 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16356 * bsd-uthread.c (bsd_uthread_target::wait): Use
16357 as_process_stratum_target and adjust thread_change_ptid and
16358 add_thread calls.
16359 (bsd_uthread_target::update_thread_list): Use
16360 as_process_stratum_target and adjust find_thread_ptid,
16361 thread_change_ptid and add_thread calls.
16362 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16363 find_thread_ptid call.
16364 * corelow.c (add_to_thread_list): Adjust add_thread call.
16365 (core_target_open): Adjust add_thread_silent and thread_count
16366 calls.
16367 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16368 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16369 * event-top.c (async_disconnect): Pop targets from all inferiors.
16370 * exec.c (add_target_sections): Push exec target on all inferiors
16371 sharing the program space.
16372 (remove_target_sections): Remove the exec target from all
16373 inferiors sharing the program space.
16374 (exec_on_vfork): New.
16375 * exec.h (exec_on_vfork): Declare.
16376 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16377 Pass it down.
16378 (fbsd_nat_target::update_thread_list): Adjust.
16379 (fbsd_nat_target::resume): Adjust.
16380 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16381 down.
16382 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16383 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16384 get_thread_arch_regcache call.
16385 * fork-child.c (gdb_startup_inferior): Pass target down to
16386 startup_inferior and set_executing.
16387 * gdbthread.h (struct process_stratum_target): Forward declare.
16388 (add_thread, add_thread_silent, add_thread_with_info)
16389 (in_thread_list): Add process_stratum_target parameter.
16390 (find_thread_ptid(inferior*, ptid_t)): New overload.
16391 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16392 parameter.
16393 (all_threads()): Delete overload.
16394 (all_threads, all_non_exited_threads): Add process_stratum_target
16395 parameter.
16396 (all_threads_safe): Use brace initialization.
16397 (thread_count): Add process_stratum_target parameter.
16398 (set_resumed, set_running, set_stop_requested, set_executing)
16399 (threads_are_executing, finish_thread_state): Add
16400 process_stratum_target parameter.
16401 (switch_to_thread): Use is_current_thread.
16402 * i386-fbsd-tdep.c: Include "inferior.h".
16403 (i386fbsd_get_thread_local_address): Pass down target.
16404 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16405 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16406 have_inferiors check.
16407 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16408 (inf_ptrace_target::attach): Adjust.
16409 * infcall.c (run_inferior_call): Adjust.
16410 * infcmd.c (run_command_1): Pass target to
16411 scoped_finish_thread_state.
16412 (proceed_thread_callback): Skip inferiors with no execution.
16413 (continue_command): Rename 'all_threads' local to avoid hiding
16414 'all_threads' function. Adjust get_last_target_status call.
16415 (prepare_one_step): Adjust set_running call.
16416 (signal_command): Use user_visible_resume_target. Compare thread
16417 pointers instead of inferior_ptid.
16418 (info_program_command): Adjust to pass down target.
16419 (attach_command): Mark target's 'thread_executing' flag.
16420 (stop_current_target_threads_ns): New, factored out from ...
16421 (interrupt_target_1): ... this. Switch inferior before making
16422 target calls.
16423 * inferior-iter.h
16424 (struct all_inferiors_iterator, struct all_inferiors_range)
16425 (struct all_inferiors_safe_range)
16426 (struct all_non_exited_inferiors_range): Filter on
16427 process_stratum_target too. Remove explicit.
16428 * inferior.c (inferior::inferior): Push dummy target on target
16429 stack.
16430 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16431 Add process_stratum_target parameter, and pass it down.
16432 (have_live_inferiors): Adjust.
16433 (switch_to_inferior_and_push_target): New.
16434 (add_inferior_command, clone_inferior_command): Handle
16435 "-no-connection" parameter. Use
16436 switch_to_inferior_and_push_target.
16437 (_initialize_inferior): Mention "-no-connection" option in
16438 the help of "add-inferior" and "clone-inferior" commands.
16439 * inferior.h: Include "process-stratum-target.h".
16440 (interrupt_target_1): Use bool.
16441 (struct inferior) <push_target, unpush_target, target_is_pushed,
16442 find_target_beneath, top_target, process_target, target_at,
16443 m_stack>: New.
16444 (discard_all_inferiors): Delete.
16445 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16446 (all_inferiors, all_non_exited_inferiors): Add
16447 process_stratum_target parameter.
16448 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16449 (target_last_proc_target): New global.
16450 (follow_fork_inferior): Push target on new inferior. Pass target
16451 to add_thread_silent. Call exec_on_vfork. Handle target's
16452 reference count.
16453 (follow_fork): Adjust get_last_target_status call. Also consider
16454 target.
16455 (follow_exec): Push target on new inferior.
16456 (struct execution_control_state) <target>: New field.
16457 (user_visible_resume_target): New.
16458 (do_target_resume): Call target_async.
16459 (resume_1): Set target's threads_executing flag. Consider resume
16460 target.
16461 (commit_resume_all_targets): New.
16462 (proceed): Also consider resume target. Skip threads of inferiors
16463 with no execution. Commit resumtion in all targets.
16464 (start_remote): Pass current inferior to wait_for_inferior.
16465 (infrun_thread_stop_requested): Consider target as well. Pass
16466 thread_info pointer to clear_inline_frame_state instead of ptid.
16467 (infrun_thread_thread_exit): Consider target as well.
16468 (random_pending_event_thread): New inferior parameter. Use it.
16469 (do_target_wait): Rename to ...
16470 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16471 down.
16472 (threads_are_resumed_pending_p, do_target_wait): New.
16473 (prepare_for_detach): Adjust calls.
16474 (wait_for_inferior): New inferior parameter. Handle it. Use
16475 do_target_wait_1 instead of do_target_wait.
16476 (fetch_inferior_event): Adjust. Switch to representative
16477 inferior. Pass target down.
16478 (set_last_target_status): Add process_stratum_target parameter.
16479 Save target in global.
16480 (get_last_target_status): Add process_stratum_target parameter and
16481 handle it.
16482 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16483 (context_switch): Check inferior_ptid == null_ptid before calling
16484 inferior_thread().
16485 (get_inferior_stop_soon): Pass down target.
16486 (wait_one): Rename to ...
16487 (poll_one_curr_target): ... this.
16488 (struct wait_one_event): New.
16489 (wait_one): New.
16490 (stop_all_threads): Adjust.
16491 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16492 event's target.
16493 (switch_back_to_stepped_thread): Also consider target.
16494 (print_stop_event): Update.
16495 (normal_stop): Update. Also consider the resume target.
16496 * infrun.h (wait_for_inferior): Remove declaration.
16497 (user_visible_resume_target): New declaration.
16498 (get_last_target_status, set_last_target_status): New
16499 process_stratum_target parameter.
16500 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16501 process_stratum_target parameter, and use it.
16502 (clear_inline_frame_state (thread_info*)): New.
16503 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16504 process_stratum_target parameter.
16505 (clear_inline_frame_state (thread_info*)): Declare.
16506 * linux-fork.c (delete_checkpoint_command): Pass target down to
16507 find_thread_ptid.
16508 (checkpoint_command): Adjust.
16509 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16510 instead of just tweaking inferior_ptid.
16511 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16512 (exit_lwp): Pass target down to find_thread_ptid.
16513 (attach_proc_task_lwp_callback): Pass target down to
16514 add_thread/set_running/set_executing.
16515 (linux_nat_target::attach): Pass target down to
16516 thread_change_ptid.
16517 (get_detach_signal): Pass target down to find_thread_ptid.
16518 Consider last target status's target.
16519 (linux_resume_one_lwp_throw, resume_lwp)
16520 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16521 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16522 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16523 (linux_nat_target::async_wait_fd): New.
16524 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16525 target down.
16526 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16527 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16528 * linux-thread-db.c (struct thread_db_info::process_target): New
16529 field.
16530 (add_thread_db_info): Save target.
16531 (get_thread_db_info): New process_stratum_target parameter. Also
16532 match target.
16533 (delete_thread_db_info): New process_stratum_target parameter.
16534 Also match target.
16535 (thread_from_lwp): Adjust to pass down target.
16536 (thread_db_notice_clone): Pass down target.
16537 (check_thread_db_callback): Pass down target.
16538 (try_thread_db_load_1): Always push the thread_db target.
16539 (try_thread_db_load, record_thread): Pass target down.
16540 (thread_db_target::detach): Pass target down. Always unpush the
16541 thread_db target.
16542 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16543 target down. Always unpush the thread_db target.
16544 (find_new_threads_callback, thread_db_find_new_threads_2)
16545 (thread_db_target::update_thread_list): Pass target down.
16546 (thread_db_target::pid_to_str): Pass current inferior down.
16547 (thread_db_target::get_thread_local_address): Pass target down.
16548 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16549 target down.
16550 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16551 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16552 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16553 (procfs_init_inferior): Rename to ...
16554 (procfs_target::procfs_init_inferior): ... this and adjust.
16555 (procfs_target::create_inferior, procfs_notice_thread)
16556 (procfs_do_thread_registers): Adjust.
16557 * ppc-fbsd-tdep.c: Include "inferior.h".
16558 (ppcfbsd_get_thread_local_address): Pass down target.
16559 * proc-service.c (ps_xfer_memory): Switch current inferior and
16560 program space as well.
16561 (get_ps_regcache): Pass target down.
16562 * process-stratum-target.c
16563 (process_stratum_target::thread_address_space)
16564 (process_stratum_target::thread_architecture): Pass target down.
16565 * process-stratum-target.h
16566 (process_stratum_target::threads_executing): New field.
16567 (as_process_stratum_target): New.
16568 * ravenscar-thread.c
16569 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16570 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16571 down.
16572 * record-btrace.c (record_btrace_target::info_record): Adjust.
16573 (record_btrace_target::record_method)
16574 (record_btrace_target::record_is_replaying)
16575 (record_btrace_target::fetch_registers)
16576 (get_thread_current_frame_id, record_btrace_target::resume)
16577 (record_btrace_target::wait, record_btrace_target::stop): Pass
16578 target down.
16579 * record-full.c (record_full_wait_1): Switch to event thread.
16580 Pass target down.
16581 * regcache.c (regcache::regcache)
16582 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16583 process_stratum_target parameter and handle it.
16584 (current_thread_target): New global.
16585 (get_thread_regcache): Add process_stratum_target parameter and
16586 handle it. Switch inferior before calling target method.
16587 (get_thread_regcache): Pass target down.
16588 (get_thread_regcache_for_ptid): Pass target down.
16589 (registers_changed_ptid): Add process_stratum_target parameter and
16590 handle it.
16591 (registers_changed_thread, registers_changed): Pass target down.
16592 (test_get_thread_arch_aspace_regcache): New.
16593 (current_regcache_test): Define a couple local test_target_ops
16594 instances and use them for testing.
16595 (readwrite_regcache): Pass process_stratum_target parameter.
16596 (cooked_read_test, cooked_write_test): Pass mock_target down.
16597 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16598 (get_thread_arch_aspace_regcache): Add process_stratum_target
16599 parameter.
16600 (regcache::target): New method.
16601 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16602 (regcache::registers_changed_ptid): Add process_stratum_target
16603 parameter.
16604 (regcache::m_target): New field.
16605 (registers_changed_ptid): Add process_stratum_target parameter.
16606 * remote.c (remote_state::supports_vCont_probed): New field.
16607 (remote_target::async_wait_fd): New method.
16608 (remote_unpush_and_throw): Add remote_target parameter.
16609 (get_current_remote_target): Adjust.
16610 (remote_target::remote_add_inferior): Push target.
16611 (remote_target::remote_add_thread)
16612 (remote_target::remote_notice_new_inferior)
16613 (get_remote_thread_info): Pass target down.
16614 (remote_target::update_thread_list): Skip threads of inferiors
16615 bound to other targets. (remote_target::close): Don't discard
16616 inferiors. (remote_target::add_current_inferior_and_thread)
16617 (remote_target::process_initial_stop_replies)
16618 (remote_target::start_remote)
16619 (remote_target::remote_serial_quit_handler): Pass down target.
16620 (remote_target::remote_unpush_target): New remote_target
16621 parameter. Unpush the target from all inferiors.
16622 (remote_target::remote_unpush_and_throw): New remote_target
16623 parameter. Pass it down.
16624 (remote_target::open_1): Check whether the current inferior has
16625 execution instead of checking whether any inferior is live. Pass
16626 target down.
16627 (remote_target::remote_detach_1): Pass down target. Use
16628 remote_unpush_target.
16629 (extended_remote_target::attach): Pass down target.
16630 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16631 (remote_target::append_resumption): Pass down target.
16632 (remote_target::append_pending_thread_resumptions)
16633 (remote_target::remote_resume_with_hc, remote_target::resume)
16634 (remote_target::commit_resume): Pass down target.
16635 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16636 (remote_target::interrupt_query)
16637 (remote_target::remove_new_fork_children)
16638 (remote_target::check_pending_events_prevent_wildcard_vcont)
16639 (remote_target::remote_parse_stop_reply)
16640 (remote_target::process_stop_reply): Pass down target.
16641 (first_remote_resumed_thread): New remote_target parameter. Pass
16642 it down.
16643 (remote_target::wait_as): Pass down target.
16644 (unpush_and_perror): New remote_target parameter. Pass it down.
16645 (remote_target::readchar, remote_target::remote_serial_write)
16646 (remote_target::getpkt_or_notif_sane_1)
16647 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16648 down target.
16649 (remote_target::mourn_inferior): Pass down target. Use
16650 remote_unpush_target.
16651 (remote_target::core_of_thread)
16652 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16653 (remote_target::pid_to_exec_file)
16654 (remote_target::thread_handle_to_thread_info): Pass down target.
16655 (remote_target::async_wait_fd): New.
16656 * riscv-fbsd-tdep.c: Include "inferior.h".
16657 (riscv_fbsd_get_thread_local_address): Pass down target.
16658 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16659 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16660 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16661 Adjust.
16662 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16663 * solib-svr4.c (enable_break): Pass down target.
16664 * spu-multiarch.c (parse_spufs_run): Pass down target.
16665 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16666 * target-delegates.c: Regenerate.
16667 * target.c (g_target_stack): Delete.
16668 (current_top_target): Return the current inferior's top target.
16669 (target_has_execution_1): Refer to the passed-in inferior's top
16670 target.
16671 (target_supports_terminal_ours): Check whether the initial
16672 inferior was already created.
16673 (decref_target): New.
16674 (target_stack::push): Incref/decref the target.
16675 (push_target, push_target, unpush_target): Adjust.
16676 (target_stack::unpush): Defref target.
16677 (target_is_pushed): Return bool. Adjust to refer to the current
16678 inferior's target stack.
16679 (dispose_inferior): Delete, and inline parts ...
16680 (target_preopen): ... here. Only dispose of the current inferior.
16681 (target_detach): Hold strong target reference while detaching.
16682 Pass target down.
16683 (target_thread_name): Add assertion.
16684 (target_resume): Pass down target.
16685 (target_ops::beneath, find_target_at): Adjust to refer to the
16686 current inferior's target stack.
16687 (get_dummy_target): New.
16688 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16689 has a thread running.
16690 (initialize_targets): Rename to ...
16691 (_initialize_target): ... this.
16692 * target.h: Include "gdbsupport/refcounted-object.h".
16693 (struct target_ops): Inherit refcounted_object.
16694 (target_ops::shortname, target_ops::longname): Make const.
16695 (target_ops::async_wait_fd): New method.
16696 (decref_target): Declare.
16697 (struct target_ops_ref_policy): New.
16698 (target_ops_ref): New typedef.
16699 (get_dummy_target): Declare function.
16700 (target_is_pushed): Return bool.
16701 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16702 (all_matching_threads_iterator::all_matching_threads_iterator):
16703 Handle filter target.
16704 * thread-iter.h (struct all_matching_threads_iterator, struct
16705 all_matching_threads_range, class all_non_exited_threads_range):
16706 Filter by target too. Remove explicit.
16707 * thread.c (threads_executing): Delete.
16708 (inferior_thread): Pass down current inferior.
16709 (clear_thread_inferior_resources): Pass down thread pointer
16710 instead of ptid_t.
16711 (add_thread_silent, add_thread_with_info, add_thread): Add
16712 process_stratum_target parameter. Use it for thread and inferior
16713 searches.
16714 (is_current_thread): New.
16715 (thread_info::deletable): Use it.
16716 (find_thread_ptid, thread_count, in_thread_list)
16717 (thread_change_ptid, set_resumed, set_running): New
16718 process_stratum_target parameter. Pass it down.
16719 (set_executing): New process_stratum_target parameter. Pass it
16720 down. Adjust reference to 'threads_executing'.
16721 (threads_are_executing): New process_stratum_target parameter.
16722 Adjust reference to 'threads_executing'.
16723 (set_stop_requested, finish_thread_state): New
16724 process_stratum_target parameter. Pass it down.
16725 (switch_to_thread): Also match inferior.
16726 (switch_to_thread): New process_stratum_target parameter. Pass it
16727 down.
16728 (update_threads_executing): Reimplement.
16729 * top.c (quit_force): Pop targets from all inferior.
16730 (gdb_init): Don't call initialize_targets.
16731 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16732 Declare.
16733 (windows_add_thread, windows_delete_thread): Adjust.
16734 (get_windows_debug_event): Rename to ...
16735 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16736 * tracefile-tfile.c (tfile_target_open): Pass down target.
16737 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16738 Forward declare.
16739 (switch_to_thread): Add process_stratum_target parameter.
16740 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16741 parameter. Use it.
16742 (mi_on_resume): Pass target down.
16743 * nat/fork-inferior.c (startup_inferior): Add
16744 process_stratum_target parameter. Pass it down.
16745 * nat/fork-inferior.h (startup_inferior): Add
16746 process_stratum_target parameter.
16747 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16748
16749 2020-01-10 Pedro Alves <palves@redhat.com>
16750
16751 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16752 directly. Instead find the first thread in the thread list and
16753 use switch_to_thread.
16754
16755 2020-01-10 Pedro Alves <palves@redhat.com>
16756
16757 * remote.c (remote_target::remote_add_inferior): Don't bind a
16758 process to the current inferior if the current inferior is already
16759 bound to a process.
16760
16761 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16762 Pedro Alves <palves@redhat.com>
16763
16764 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16765 If no process is specified, return null_ptid instead of
16766 inferior_ptid.
16767 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16768 TARGET_WAITKIND_SIGNALLED with no pid.
16769
16770 2020-01-10 Pedro Alves <palves@redhat.com>
16771
16772 * remote.c (first_remote_resumed_thread): New.
16773 (remote_target::wait_as): Use it as default event_ptid instead of
16774 inferior_ptid.
16775
16776 2020-01-10 Pedro Alves <palves@redhat.com>
16777
16778 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16779
16780 2020-01-10 Pedro Alves <palves@redhat.com>
16781
16782 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16783 not -1.
16784
16785 2020-01-10 Pedro Alves <palves@redhat.com>
16786
16787 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16788 ptid to get_last_target_status.
16789 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16790 ptid to get_last_target_status.
16791 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16792 get_last_target_status.
16793 (info_program_command): Don't pass a target_waitstatus to
16794 get_last_target_status.
16795 * infrun.c (init_wait_for_inferior): Use
16796 nullify_last_target_wait_ptid.
16797 (get_last_target_status): Handle nullptr arguments.
16798 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16799 (print_stop_event): Don't pass a ptid to get_last_target_status.
16800 (normal_stop): Don't pass a ptid to get_last_target_status.
16801 * infrun.h (get_last_target_status, set_last_target_status): Move
16802 comments here and update.
16803 (nullify_last_target_wait_ptid): Declare.
16804 * linux-fork.c (fork_load_infrun_state): Remove local extern
16805 declaration of nullify_last_target_wait_ptid.
16806 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16807 to get_last_target_status.
16808
16809 2020-01-10 Pedro Alves <palves@redhat.com>
16810
16811 * gdbthread.h (scoped_restore_current_thread)
16812 <dont_restore, restore, m_dont_restore>: Declare.
16813 * thread.c (thread_alive): Add assertion. Return bool.
16814 (switch_to_thread_if_alive): New.
16815 (prune_threads): Switch inferior/thread.
16816 (print_thread_info_1): Switch thread before calling target methods.
16817 (scoped_restore_current_thread::restore): New, factored out from
16818 ...
16819 (scoped_restore_current_thread::~scoped_restore_current_thread):
16820 ... this.
16821 (scoped_restore_current_thread::scoped_restore_current_thread):
16822 Add assertion.
16823 (thread_apply_all_command, thread_select): Use
16824 switch_to_thread_if_alive.
16825 * infrun.c (proceed, restart_threads, handle_signal_stop)
16826 (switch_back_to_stepped_thread): Switch current thread before
16827 calling target methods.
16828
16829 2020-01-10 Pedro Alves <palves@redhat.com>
16830
16831 * inferior.c (switch_to_inferior_no_thread): New function,
16832 factored out from ...
16833 (inferior_command): ... here.
16834 * inferior.h (switch_to_inferior_no_thread): Declare.
16835 * mi/mi-main.c (run_one_inferior): Use
16836 switch_to_inferior_no_thread.
16837
16838 2020-01-10 Pedro Alves <palves@redhat.com>
16839
16840 * infcmd.c (kill_command): Remove dead code.
16841
16842 2020-01-10 Pedro Alves <palves@redhat.com>
16843
16844 * remote.c (remote_target::mourn_inferior): No longer check
16845 whether the target is running.
16846
16847 2020-01-10 Pedro Alves <palves@redhat.com>
16848
16849 * corelow.c (core_target::has_execution): Change parameter type to
16850 inferior pointer.
16851 * inferior.c (number_of_live_inferiors): Use
16852 inferior::has_execution instead of target_has_execution_1.
16853 * inferior.h (inferior::has_execution): New.
16854 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16855 inferior::has_execution instead of target_has_execution_1.
16856 * process-stratum-target.c
16857 (process_stratum_target::has_execution): Change parameter type to
16858 inferior pointer. Check the inferior's PID instead of
16859 inferior_ptid.
16860 * process-stratum-target.h
16861 (process_stratum_target::has_execution): Change parameter type to
16862 inferior pointer.
16863 * record-full.c (record_full_core_target::has_execution): Change
16864 parameter type to inferior pointer.
16865 * target.c (target_has_execution_1): Change parameter type to
16866 inferior pointer.
16867 (target_has_execution_current): Adjust.
16868 * target.h (target_ops::has_execution): Change parameter type to
16869 inferior pointer.
16870 (target_has_execution_1): Change parameter type to inferior
16871 pointer. Change return type to bool.
16872 * tracefile.h (tracefile_target::has_execution): Change parameter
16873 type to inferior pointer.
16874
16875 2020-01-10 Pedro Alves <palves@redhat.com>
16876
16877 * exceptions.c (print_flush): Remove current_top_target() check.
16878
16879 2020-01-10 Pedro Alves <palves@redhat.com>
16880
16881 * remote.c (show_remote_exec_file): Show the current inferior's
16882 exec-file instead of the command variable's value.
16883
16884 2020-01-10 Pedro Alves <palves@redhat.com>
16885
16886 * record-full.c (record_full_resume_ptid): New global.
16887 (record_full_target::resume): Set it.
16888 (record_full_wait_1): Use record_full_resume_ptid instead of
16889 inferior_ptid.
16890
16891 2020-01-10 Pedro Alves <palves@redhat.com>
16892
16893 * gdbthread.h (scoped_restore_current_thread)
16894 <dont_restore, restore, m_dont_restore>: Declare.
16895 * thread.c (thread_alive): Add assertion. Return bool.
16896 (switch_to_thread_if_alive): New.
16897 (prune_threads): Switch inferior/thread.
16898 (print_thread_info_1): Switch thread before calling target methods.
16899 (scoped_restore_current_thread::restore): New, factored out from
16900 ...
16901 (scoped_restore_current_thread::~scoped_restore_current_thread):
16902 ... this.
16903 (scoped_restore_current_thread::scoped_restore_current_thread):
16904 Add assertion.
16905 (thread_apply_all_command, thread_select): Use
16906 switch_to_thread_if_alive.
16907
16908 2020-01-10 George Barrett <bob@bob131.so>
16909
16910 * stap-probe.c (stap_modify_semaphore): Don't check for null
16911 semaphores.
16912 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16913 for null semaphores.
16914
16915 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16916
16917 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16918 all source windows, and maintain horizontal scroll status while
16919 doing so.
16920
16921 2020-01-09 Tom Tromey <tom@tromey.com>
16922
16923 PR tui/18932:
16924 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16925 update_source_window, not print_source_lines.
16926
16927 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16928
16929 * tui/tui.c (tui_enable): Register tui hooks after calling
16930 tui_display_main.
16931
16932 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16933
16934 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16935
16936 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16937
16938 * thread.c (print_thread_info_1): Fix indentation.
16939
16940 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16941
16942 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16943 unique_xmalloc_ptr outside the if to always free the demangled name.
16944
16945 2020-01-08 Tom Tromey <tromey@adacore.com>
16946
16947 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16948 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16949 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16950 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16951 Remove.
16952 (section_offsets): New typedef.
16953 * symtab.c (fixup_section, get_msymbol_address): Update.
16954 * symmisc.c (dump_msymbols): Update.
16955 * symfile.h (relative_addr_info_to_section_offsets)
16956 (symfile_map_offsets_to_segments): Update.
16957 * symfile.c (build_section_addr_info_from_objfile)
16958 (init_objfile_sect_indices): Update.
16959 (struct place_section_arg): Change type of "offsets".
16960 (place_section): Update.
16961 (relative_addr_info_to_section_offsets): Change type of
16962 "section_offsets". Remove "num_sections" parameter.
16963 (default_symfile_offsets, syms_from_objfile_1)
16964 (set_objfile_default_section_offset): Update.
16965 (reread_symbols): No need to preserve section offsets by hand.
16966 (symfile_map_offsets_to_segments): Change type of "offsets".
16967 * stap-probe.c (relocate_address): Update.
16968 * stabsread.h (process_one_symbol): Update.
16969 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16970 (solib_target_relocate_section_addresses): Update.
16971 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16972 Update.
16973 * solib-frv.c (frv_relocate_main_executable): Update.
16974 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16975 * solib-aix.c (solib_aix_get_section_offsets): Change return
16976 type.
16977 (solib_aix_solib_create_inferior_hook): Update.
16978 * remote.c (remote_target::get_offsets): Update.
16979 * psymtab.c (find_pc_sect_psymtab): Update.
16980 * psympriv.h (struct partial_symbol) <address, text_low,
16981 text_high>: Update.
16982 * objfiles.h (obj_section_offset): Update.
16983 (struct objfile) <section_offsets>: Change type.
16984 <num_sections>: Remove.
16985 (objfile_relocate): Update.
16986 * objfiles.c (entry_point_address_query): Update
16987 (relocate_one_symbol): Change type of "section_offsets".
16988 (objfile_relocate1, objfile_relocate1): Change type of
16989 "new_offsets".
16990 (objfile_rebase1): Update.
16991 * mipsread.c (mipscoff_symfile_read): Update.
16992 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16993 parameter.
16994 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16995 (parse_external, psymtab_to_symtab_1): Update.
16996 * machoread.c (macho_symfile_offsets): Update.
16997 * ia64-tdep.c (ia64_find_unwind_table): Update.
16998 * hppa-tdep.c (read_unwind_info): Update.
16999 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17000 * dwarf2read.c (create_addrmap_from_index)
17001 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17002 (process_psymtab_comp_unit_reader, add_partial_symbol)
17003 (add_partial_subprogram, process_full_comp_unit)
17004 (read_file_scope, read_func_scope, read_lexical_block_scope)
17005 (read_call_site_scope, dwarf2_rnglists_process)
17006 (dwarf2_ranges_process, dwarf2_ranges_read)
17007 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17008 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17009 Update.
17010 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17011 Update.
17012 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17013 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17014 (process_one_symbol): Change type of "section_offsets".
17015 * ctfread.c (get_objfile_text_range): Update.
17016 * coffread.c (coff_symtab_read, enter_linenos)
17017 (process_coff_symbol): Update.
17018 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17019 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17020
17021 2020-01-08 Tom Tromey <tromey@adacore.com>
17022
17023 * dwarf2read.c (parse_macro_definition): Use std::string.
17024 (parse_macro_definition): Likewise.
17025
17026 2020-01-08 Tom Tromey <tromey@adacore.com>
17027
17028 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17029 (ATTR_ALLOC_CHUNK): Remove.
17030
17031 2020-01-08 Tom Tromey <tromey@adacore.com>
17032
17033 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17034
17035 2020-01-08 Tom Tromey <tromey@adacore.com>
17036
17037 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17038 (dwarf2_compute_name, open_dwo_file): Likewise.
17039 (process_enumeration_scope): Use std::vector.
17040 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17041 (partial_die_info::fixup, dwarf2_start_subfile)
17042 (guess_full_die_structure_name, dwarf2_name): Likewise.
17043 (determine_prefix): Update.
17044 (guess_full_die_structure_name): Make return type const.
17045 (partial_die_full_name): Return unique_xmalloc_ptr.
17046 (DW_FIELD_ALLOC_CHUNK): Remove.
17047
17048 2020-01-07 Tom Tromey <tromey@adacore.com>
17049
17050 PR build/24937:
17051 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17052
17053 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17054
17055 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17056
17057 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17058
17059 * stack.c (print_frame_info): Move disassemble_next_line code
17060 inside source_print block.
17061
17062 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17063
17064 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17065 gdb/signals.h, as we are now using native signal symbols.
17066
17067 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17068
17069 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17070 overflow by an early check of content vs threshold.
17071 * tui/tui-source.c (tui_source_window::line_is_displayed):
17072 Likewise.
17073
17074 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17075
17076 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17077
17078 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17079
17080 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17081 export table if no section contains it's RVA.
17082
17083 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17084
17085 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17086
17087 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17088
17089 * source.c (print_source_lines_base): Set last_line_listed.
17090
17091 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17092
17093 * tui/tui-disasm.c: Remove trailing spaces.
17094
17095 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17096 Pedro Alves <palves@redhat.com>
17097
17098 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17099 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17100 (windows_gdb_signal_to_target): New function, uses the above
17101 enumeration to convert GDB internal signal codes to equivalent
17102 Windows codes.
17103 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17104 * windows-nat.c: Include "gdb_wait.h".
17105 (get_windows_debug_event): Extract the fatal exception from the
17106 exit status and convert to the equivalent Posix signal number.
17107 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17108 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17109 * gdbsupport/gdb_wait.c: New file, implements
17110 windows_status_to_termsig.
17111 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17112 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17113
17114 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17115
17116 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17117 show_layout.
17118
17119 2020-01-05 Luis Machado <luis.machado@linaro.org>
17120
17121 * aarch64-linux-nat.c
17122 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17123 and bfd_mach_aarch64.
17124
17125 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17126
17127 * ui-file.c (stdio_file::can_emit_style_escape)
17128 (tee_file::can_emit_style_escape): Ensure style is used also on
17129 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17130 to gdb_stdout.
17131 * main.c (set_gdb_data_directory): Use file style to output the
17132 warning that the given pathname is not a directory.
17133 * top.c (show_history_filename, gdb_safe_append_history)
17134 (show_gdb_datadir): Use file style.
17135
17136 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17137
17138 * solib-target.c (struct lm_info_target):
17139 Change offsets to be a unique_xmalloc_ptr.
17140 (solib_target_relocate_section_addresses): Update.
17141
17142 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17143
17144 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17145
17146 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17147
17148 * MAINTAINERS (Write After Approval): Add myself.
17149
17150 2020-01-02 Luis Machado <luis.machado@linaro.org>
17151
17152 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17153 Cell BE architecture.
17154 * target.h (struct target_ops) <thread_architecture>: Likewise.
17155
17156 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17157
17158 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17159
17160 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17161
17162 * MAINTAINERS (Write After Approval): Add myself.
17163
17164 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17165
17166 * gdbarch.sh: Update copyright year range of generated files.
17167
17168 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17169
17170 Update copyright year range in all GDB files.
17171
17172 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17173
17174 * copyright.py: Convert to Python 3.
17175
17176 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17177
17178 * copyright.py: Adapt after move of gnulib directory from gdb
17179 directory to toplevel directory.
17180
17181 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17182
17183 * copyright.py (main): Exit if run from the wrong directory.
17184
17185 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17186
17187 * top.c (print_gdb_version): Change copyright year to 2020.
17188
17189 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17190
17191 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17192
17193 For older changes see ChangeLog-2019.
17194 \f
17195 Local Variables:
17196 mode: change-log
17197 left-margin: 8
17198 fill-column: 74
17199 version-control: never
17200 coding: utf-8
17201 End:
This page took 0.634806 seconds and 5 git commands to generate.