gdb/s390: Correct recording of "store on condition" insns
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
2
3 PR tdep/26916
4 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
5 and STOCFH.
6
7 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
10
11 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
14 in `loop_cb` parameter.
15 * gdbarch.c: Re-generate.
16 * gdbarch.h: Re-generate.
17 * arch-utils.c (default_read_core_file_mappings): Remove `other`
18 parameter.
19 * arch-utils.h (default_read_core_file_mappings): Likewise.
20 * corelow.c (core_target::build_file_mappings): Likewise.
21 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
22 (linux_core_info_proc_mappings): Likewise.
23
24 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
27 * NEWS: Mention new options.
28 * f-array-walker.h: New file.
29 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
30 (repack_array_slices): New static global.
31 (show_repack_array_slices): New function.
32 (fortran_array_slicing_debug): New static global.
33 (show_fortran_array_slicing_debug): New function.
34 (value_f90_subarray): Delete.
35 (skip_undetermined_arglist): Delete.
36 (class fortran_array_repacker_base_impl): New class.
37 (class fortran_lazy_array_repacker_impl): New class.
38 (class fortran_array_repacker_impl): New class.
39 (fortran_value_subarray): Complete rewrite.
40 (set_fortran_list): New static global.
41 (show_fortran_list): Likewise.
42 (_initialize_f_language): Register new commands.
43 (fortran_adjust_dynamic_array_base_address_hack): New function.
44 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
45 Declare.
46 * f-valprint.c: Include 'f-array-walker.h'.
47 (class fortran_array_printer_impl): New class.
48 (f77_print_array_1): Delete.
49 (f77_print_array): Delete.
50 (fortran_print_array): New.
51 (f_value_print_inner): Update to call fortran_print_array.
52 * gdbtypes.c: Include 'f-lang.h'.
53 (resolve_dynamic_type_internal): Call
54 fortran_adjust_dynamic_array_base_address_hack.
55
56 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * breakpoint.c (struct watch_options): New struct.
59 (watch_option_defs): New static global.
60 (make_watch_options_def_group): New function.
61 (watch_maybe_just_location): Convert option parsing.
62 (watch_command_completer): New function.
63 (_initialize_breakpoint): Build help text using options mechanism.
64
65 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
68 (watch_command_1): Update parameter types. Convert locals to
69 bool.
70 (watch_command_wrapper): Change parameter type.
71 (watch_maybe_just_location): Change locals to bool.
72 (rwatch_command_wrapper): Update parameter type.
73 (awatch_command_wrapper): Update parameter type.
74 * breakpoint.h (watch_command_wrapper): Change parameter type.
75 (rwatch_command_wrapper): Update parameter type.
76 (awatch_command_wrapper): Update parameter type.
77 * eval.c (fetch_subexp_value): Change parameter type.
78 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
79 'false' not '0'.
80 * value.h (fetch_subexp_value): Change parameter type in
81 declaration.
82
83 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
86 skip_spaces.
87
88 2020-11-18 Keith Seitz <keiths@redhat.com>
89
90 * linux-tdep.c (dump_note_entry_p): Return true instead of
91 checking `filename'.
92
93 2020-11-18 Tom de Vries <tdevries@suse.de>
94
95 * debuginfod-support.c (debuginfod_source_query)
96 (debuginfod_debuginfo_query): Also do early exit if
97 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
98
99 2020-11-18 Tom de Vries <tdevries@suse.de>
100
101 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
102 warning.
103
104 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * gdbtypes.h (get_array_bounds): Return bool, adjust some
107 callers. Move doc here.
108 * gdbtypes.c (get_array_bounds): Return bool
109
110 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
113 assert.
114 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
115 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
116 case to the default.
117
118 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * printcmd.c: Include 'safe-ctype.c'.
121 (skip_over_slash_fmt): New function.
122 (print_command_completer): Call skip_over_slash_fmt.
123 (display_and_x_command_completer): New function.
124 (_initialize_printcmd): Add command completion for 'x' and
125 'display'.
126
127 2020-11-16 Pedro Alves <pedro@palves.net>
128
129 * frame.c (get_prev_frame): Move get_frame_id call from here ...
130 (get_prev_frame_always_1): ... to here.
131 * inline-frame.c (inline_frame_this_id): Mention
132 get_prev_frame_always_1 in comment.
133
134 2020-11-15 Joel Brobecker <brobecker@adacore.com>
135
136 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
137 handling.
138 (value_less): Add fixed-point handling.
139
140 2020-11-15 Joel Brobecker <brobecker@adacore.com>
141
142 * eval.c (binop_promote): Add fixed-point type handling.
143 * valarith.c (fixed_point_binop): New function.
144 (scalar_binop): Add fixed-point type handling.
145 (value_neg): Add fixed-point type handling.
146 * valops.c (value_cast_to_fixed_point): New function.
147 (value_cast): Add fixed-point type handling.
148
149 2020-11-15 Joel Brobecker <brobecker@adacore.com>
150
151 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
152 range types.
153 * c-typeprint.c (c_type_print_varspec_prefix)
154 (c_type_print_varspec_suffix, c_type_print_base_1): Add
155 TYPE_CODE_FIXED_POINT handling.
156 * p-typeprint.c (pascal_type_print_varspec_prefix)
157 (pascal_type_print_varspec_suffix): Likewise.
158 * typeprint.c (print_type_fixed_point): New function.
159 * typeprint.h (print_type_fixed_point): Add declaration.
160
161 2020-11-15 Joel Brobecker <brobecker@adacore.com>
162
163 * printcmd.c (print_scalar_formatted): Add fixed-point type
164 handling when options->format is set.
165
166 2020-11-15 Joel Brobecker <brobecker@adacore.com>
167
168 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
169 * dwarf2/read.c (get_dwarf2_rational_constant)
170 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
171 (has_zero_over_zero_small_attribute): New functions.
172 read_base_type, set_die_type): Add fixed-point type handling.
173 * gdb-gdb.py.in: Add fixed-point type handling.
174 * gdbtypes.c: #include "gmp-utils.h".
175 (create_range_type, set_type_code): Add fixed-point type handling.
176 (init_fixed_point_type): New function.
177 (is_integral_type, is_scalar_type): Add fixed-point type handling.
178 (print_fixed_point_type_info): New function.
179 (recursive_dump_type, copy_type_recursive): Add fixed-point type
180 handling.
181 (fixed_point_type_storage): New typedef.
182 (fixed_point_objfile_key): New static global.
183 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
184 (fixed_point_type_base_type, fixed_point_scaling_factor): New
185 functions.
186 * gdbtypes.h: #include "gmp-utils.h".
187 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
188 (union type_specific) <fixed_point_info>: New field.
189 (struct fixed_point_type_info): New struct.
190 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
191 (init_fixed_point_type, is_fixed_point_type)
192 (fixed_point_type_base_type, fixed_point_scaling_factor)
193 (allocate_fixed_point_type_info): Add declarations.
194 * valprint.c (generic_val_print_fixed_point): New function.
195 (generic_value_print): Add fixed-point type handling.
196 * value.c (value_as_address, unpack_long): Add fixed-point type
197 handling.
198
199 2020-11-15 Joel Brobecker <brobecker@adacore.com>
200
201 * utils.h (uinteger_pow): Add declaration.
202 * utils.c (uinteger_pow): Moved here (without changes)...
203 * valarith.c (uinteger_pow): ... from here.
204
205 2020-11-15 Joel Brobecker <brobecker@adacore.com>
206
207 * gmp-utils.h, gmp-utils.c: New file.
208 * unittests/gmp-utils-selftests.c: New file.
209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
210 unittests/gmp-utils-selftests.c.
211 (COMMON_SFILES) Add gmp-utils.c.
212 (HFILES_NO_SRCDIR): Add gmp-utils.h.
213
214 2020-11-15 Joel Brobecker <brobecker@adacore.com>
215
216 * configure.ac: Generate an error if a usable GMP library
217 could not be found.
218 * configure: Regenerate.
219
220 2020-11-15 Joel Brobecker <brobecker@adacore.com>
221
222 * configure.ac: Add support for --with-libgmp-prefix.
223 * Makefile.in (LIBGMP): New variable.
224 (CLIBS): Include $(LIBGMP).
225 * configure, config.in: Regenerate
226
227 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 PR cli/26879
230 * f-exp.y (COMPLETE): New token.
231 (exp): Two new rules for tab-completion.
232 (saw_name_at_eof): New static global.
233 (last_was_structop): Likewise.
234 (yylex): Set new variables, and return COMPLETE token at the end
235 of the input stream in some cases.
236
237 2020-11-14 Tom Tromey <tom@tromey.com>
238
239 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
240
241 2020-11-14 Tom Tromey <tom@tromey.com>
242
243 * opencl-lang.c (opencl_component_ref): Make "comps" const.
244
245 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
248
249 2020-11-13 Tom Tromey <tom@tromey.com>
250
251 * c-lang.c (convert_ucn, convert_octal, convert_hex)
252 (convert_escape, parse_one_string): Constify.
253
254 2020-11-13 Keith Seitz <keiths@redhat.com>
255
256 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
257 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
258 outside of ELF segments" warning for debugin
259
260 2020-11-13 Keith Seitz <keiths@redhat.com>
261
262 PR gdb/23034
263 * elfread.c (elf_symfile_segments): Output a BFD file name
264 for the "Loadable section ... outside of ELF segments" warning.
265
266 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
267
268 PR gdb/26835
269 * arm-tdep.c (class arm_instruction_reader): New.
270 (target_arm_instruction_reader): New.
271 (arm_analyze_prologue): Add instruction reader parameter and use
272 it. Use arm_expand_immediate.
273 (class target_arm_instruction_reader): Adjust.
274 (arm_skip_prologue): Adjust.
275 (arm_expand_immediate): New.
276 (arm_scan_prologue): Adjust.
277 (arm_analyze_prologue_test): New.
278 (class test_arm_instruction_reader): New.
279
280 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
281
282 * f-lang.c (fortran_argument_convert): Add declaration. Add
283 header comment, taken from f-lang.h. Make static.
284 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
285 (fortran_argument_convert): Delete declaration.
286
287 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * ada-exp.y (find_primitive_type): Make parameter const.
290 * ada-lang.c (enum ada_primitive_types): Delete.
291 (ada_language::language_arch_info): Update.
292 * c-lang.c (enum c_primitive_types): Delete.
293 (c_language_arch_info): Update.
294 (enum cplus_primitive_types): Delete.
295 (cplus_language::language_arch_info): Update.
296 * d-lang.c (enum d_primitive_types): Delete.
297 (d_language::language_arch_info): Update.
298 * f-lang.c (enum f_primitive_types): Delete.
299 (f_language::language_arch_info): Update.
300 * go-lang.c (enum go_primitive_types): Delete.
301 (go_language::language_arch_info): Update.
302 * language.c (auto_or_unknown_language::language_arch_info):
303 Update.
304 (language_gdbarch_post_init): Use obstack_new, use array indexing.
305 (language_string_char_type): Add header comment, call function in
306 language_arch_info.
307 (language_bool_type): Likewise
308 (language_arch_info::bool_type): Define.
309 (language_lookup_primitive_type_1): Delete.
310 (language_lookup_primitive_type): Rewrite as a templated function
311 to call function in language_arch_info, then instantiate twice.
312 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
313 (language_arch_info::lookup_primitive_type_and_symbol): Define.
314 (language_arch_info::lookup_primitive_type): Define twice with
315 different signatures.
316 (language_arch_info::lookup_primitive_type_as_symbol): Define.
317 (language_lookup_primitive_type_as_symbol): Rewrite to call a
318 member function in language_arch_info.
319 * language.h (language_arch_info): Complete rewrite.
320 (language_lookup_primitive_type): Make templated.
321 * m2-lang.c (enum m2_primitive_types): Delete.
322 (m2_language::language_arch_info): Update.
323 * opencl-lang.c (OCL_P_TYPE): Delete.
324 (enum opencl_primitive_types): Delete.
325 (opencl_type_data): Delete.
326 (builtin_opencl_type): Delete.
327 (lookup_opencl_vector_type): Update.
328 (opencl_language::language_arch_info): Update, lots of content
329 moved from...
330 (build_opencl_types): ...here. This function is now deleted.
331 (_initialize_opencl_language): Delete.
332 * p-lang.c (enum pascal_primitive_types): Delete.
333 (pascal_language::language_arch_info): Update.
334 * rust-lang.c (enum rust_primitive_types): Delete.
335 (rust_language::language_arch_info): Update.
336
337 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
340 dwarf2_queue_guard.
341
342 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
345 comment.
346
347 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * dwarf2/read.c (dwarf_read_debug_printf,
350 dwarf_read_debug_printf_v): New macros, use throughout the file.
351
352 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
353
354 * arc-linux-tdep.c (collect_register): Populate "eret" by
355 "pc" value from the regcache when asked for "pc" value.
356
357 2020-11-12 Tom Tromey <tom@tromey.com>
358
359 PR rust/26799:
360 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
361 exist.
362
363 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * features/Makefile (XMLTOC): Add rx.xml.
366 (FEATURE_XMLFILES): Remove rx.xml.
367 (FEATURE_CFILES rule): Pass '-single-feature' flag.
368 * features/rx.c: Regenerate.
369 * features/rx.xml: Wrap in `target` tags, and reindent.
370 * target-descriptions.c (struct maint_print_c_tdesc_options): New
371 structure.
372 (maint_print_c_tdesc_opt_def): New typedef.
373 (maint_print_c_tdesc_opt_defs): New static global.
374 (make_maint_print_c_tdesc_options_def_group): New function.
375 (maint_print_c_tdesc_cmd): Make use of command line flags, only
376 print single feature C file for target descriptions containing a
377 single feature.
378 (maint_print_c_tdesc_cmd_completer): New function.
379 (_initialize_target_descriptions): Update call to register command
380 completer, and include command line flag in help text.
381
382 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
385 numbers.
386 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
387 enum values.
388
389 2020-11-10 Tom Tromey <tom@tromey.com>
390
391 * value.h (internalvar_name): Update.
392 * value.c (internalvar_name): Make return type const.
393
394 2020-11-10 Tom Tromey <tom@tromey.com>
395
396 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
397 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
398 const.
399
400 2020-11-10 Tom Tromey <tom@tromey.com>
401
402 * objc-lang.h (value_nsstring): Update.
403 * objc-lang.c (value_nsstring): Make "ptr" const.
404
405 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * expprint.c (print_subexp_funcall): Increment expression position
408 after reading argument count.
409 * f-lang.c (print_subexp_f): Skip over opcode before calling
410 common function.
411 (dump_subexp_body_f): Likewise.
412
413 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
414
415 PR python/26832
416 * configure: Regenerate.
417 * configure.ac: Check for python modules ctypes instead of
418 itertools.
419
420 2020-11-06 Pedro Alves <pedro@palves.net>
421
422 * macroexp.c (struct macro_buffer): Split in two classes. Add
423 uses adjusted.
424 (struct shared_macro_buffer): New, factored out from struct
425 macro_buffer.
426 (struct growable_macro_buffer): New, factored out from struct
427 macro_buffer.
428 (set_token, get_comment, get_identifier, get_pp_number)
429 (get_character_constant, get_string_literal, get_punctuator)
430 (get_next_token_for_substitution): Constify parameters.
431 (substitute_args): Constify locals.
432
433 2020-11-05 Tom Tromey <tom@tromey.com>
434
435 * dwarf2/read.c (read_cutu_die_from_dwo)
436 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
437 (build_type_psymtabs_1): Update.
438 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
439 parameter.
440 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
441 Don't read section. Add assert.
442
443 2020-11-04 Tom Tromey <tromey@adacore.com>
444
445 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
446
447 2020-11-04 Tom Tromey <tromey@adacore.com>
448
449 * ada-typeprint.c (ada_print_type): Handle __T types.
450
451 2020-11-04 Tom Tromey <tromey@adacore.com>
452
453 * dwarf2/read.c (add_partial_symbol, process_die):
454 Handle DW_TAG_array_type.
455 (is_type_tag_for_partial): Add "lang" parameter.
456 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
457
458 2020-11-04 Tom Tromey <tromey@adacore.com>
459
460 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
461
462 2020-11-04 Tom Tromey <tromey@adacore.com>
463
464 * dwarf2/read.c (read_array_type): Only apply stride to innermost
465 array.
466
467 2020-11-04 Tom Tromey <tromey@adacore.com>
468
469 * gdbtypes.c (update_static_array_size): Handle bit stride.
470
471 2020-11-04 Tom Tromey <tromey@adacore.com>
472
473 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
474
475 2020-11-04 Tom Tromey <tromey@adacore.com>
476
477 * ada-lang.c (ada_is_any_packed_array_type): New function.
478 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
479
480 2020-11-04 Tom Tromey <tromey@adacore.com>
481
482 * dwarf2/read.c (recognize_bound_expression)
483 (quirk_ada_thick_pointer): New functions.
484 (read_array_type): Call quirk_ada_thick_pointer.
485 (set_die_type): Add "skip_data_location" parameter.
486 (quirk_ada_thick_pointer): New function.
487 (process_structure_scope): Call quirk_ada_thick_pointer.
488 * ada-lang.c (ada_is_unconstrained_packed_array_type)
489 (decode_packed_array_bitsize): Handle thick pointers without
490 parallel types.
491 (ada_is_gnat_encoded_packed_array_type): Rename from
492 ada_is_packed_array_type.
493 (ada_is_constrained_packed_array_type): Update.
494 * ada-valprint.c (ada_val_print_gnat_array): Remove.
495 (ada_value_print_1): Use ada_get_decoded_value.
496
497 2020-11-04 Tom Tromey <tromey@adacore.com>
498
499 * ada-lang.c (recursively_update_array_bitsize): New function.
500 (decode_constrained_packed_array_type): Call it.
501
502 2020-11-04 Tom Tromey <tromey@adacore.com>
503
504 * ada-lang.c (to_fixed_array_type): Error if
505 decode_constrained_packed_array_type returns NULL.
506
507 2020-11-04 Tom Tromey <tromey@adacore.com>
508
509 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
510
511 2020-11-02 Tom Tromey <tromey@adacore.com>
512
513 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
514 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
515 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
516 * amd64-ravenscar-thread.c: New file.
517 * amd64-ravenscar-thread.h: New file.
518 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
519 * configure.tgt (amd64_tobjs): Add ravenscar objects.
520
521 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * main.c (execute_cmdargs): New function.
524 (captured_main_1): Make use of execute_cmdargs.
525
526 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * NEWS: Mention changes to config file search path.
529 * main.c
530
531 2020-11-02 Tom Tromey <tromey@adacore.com>
532
533 * python/python.c: Consolidate two HAVE_PYTHON blocks.
534 (python_GdbModuleDef): Move earlier. Now static.
535 (do_start_initialization): Consolidate some IS_PY3K blocks.
536
537 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
538
539 * aarch64-linux-tdep.c: Fix indentation.
540 * aarch64-ravenscar-thread.c: Fix indentation.
541 * aarch64-tdep.c: Fix indentation.
542 * aarch64-tdep.h: Fix indentation.
543 * ada-lang.c: Fix indentation.
544 * ada-lang.h: Fix indentation.
545 * ada-tasks.c: Fix indentation.
546 * ada-typeprint.c: Fix indentation.
547 * ada-valprint.c: Fix indentation.
548 * ada-varobj.c: Fix indentation.
549 * addrmap.c: Fix indentation.
550 * addrmap.h: Fix indentation.
551 * agent.c: Fix indentation.
552 * aix-thread.c: Fix indentation.
553 * alpha-bsd-nat.c: Fix indentation.
554 * alpha-linux-tdep.c: Fix indentation.
555 * alpha-mdebug-tdep.c: Fix indentation.
556 * alpha-nbsd-tdep.c: Fix indentation.
557 * alpha-obsd-tdep.c: Fix indentation.
558 * alpha-tdep.c: Fix indentation.
559 * amd64-bsd-nat.c: Fix indentation.
560 * amd64-darwin-tdep.c: Fix indentation.
561 * amd64-linux-nat.c: Fix indentation.
562 * amd64-linux-tdep.c: Fix indentation.
563 * amd64-nat.c: Fix indentation.
564 * amd64-obsd-tdep.c: Fix indentation.
565 * amd64-tdep.c: Fix indentation.
566 * amd64-windows-tdep.c: Fix indentation.
567 * annotate.c: Fix indentation.
568 * arc-tdep.c: Fix indentation.
569 * arch-utils.c: Fix indentation.
570 * arch/arm-get-next-pcs.c: Fix indentation.
571 * arch/arm.c: Fix indentation.
572 * arm-linux-nat.c: Fix indentation.
573 * arm-linux-tdep.c: Fix indentation.
574 * arm-nbsd-tdep.c: Fix indentation.
575 * arm-pikeos-tdep.c: Fix indentation.
576 * arm-tdep.c: Fix indentation.
577 * arm-tdep.h: Fix indentation.
578 * arm-wince-tdep.c: Fix indentation.
579 * auto-load.c: Fix indentation.
580 * auxv.c: Fix indentation.
581 * avr-tdep.c: Fix indentation.
582 * ax-gdb.c: Fix indentation.
583 * ax-general.c: Fix indentation.
584 * bfin-linux-tdep.c: Fix indentation.
585 * block.c: Fix indentation.
586 * block.h: Fix indentation.
587 * blockframe.c: Fix indentation.
588 * bpf-tdep.c: Fix indentation.
589 * break-catch-sig.c: Fix indentation.
590 * break-catch-syscall.c: Fix indentation.
591 * break-catch-throw.c: Fix indentation.
592 * breakpoint.c: Fix indentation.
593 * breakpoint.h: Fix indentation.
594 * bsd-uthread.c: Fix indentation.
595 * btrace.c: Fix indentation.
596 * build-id.c: Fix indentation.
597 * buildsym-legacy.h: Fix indentation.
598 * buildsym.c: Fix indentation.
599 * c-typeprint.c: Fix indentation.
600 * c-valprint.c: Fix indentation.
601 * c-varobj.c: Fix indentation.
602 * charset.c: Fix indentation.
603 * cli/cli-cmds.c: Fix indentation.
604 * cli/cli-decode.c: Fix indentation.
605 * cli/cli-decode.h: Fix indentation.
606 * cli/cli-script.c: Fix indentation.
607 * cli/cli-setshow.c: Fix indentation.
608 * coff-pe-read.c: Fix indentation.
609 * coffread.c: Fix indentation.
610 * compile/compile-cplus-types.c: Fix indentation.
611 * compile/compile-object-load.c: Fix indentation.
612 * compile/compile-object-run.c: Fix indentation.
613 * completer.c: Fix indentation.
614 * corefile.c: Fix indentation.
615 * corelow.c: Fix indentation.
616 * cp-abi.h: Fix indentation.
617 * cp-namespace.c: Fix indentation.
618 * cp-support.c: Fix indentation.
619 * cp-valprint.c: Fix indentation.
620 * cris-linux-tdep.c: Fix indentation.
621 * cris-tdep.c: Fix indentation.
622 * darwin-nat-info.c: Fix indentation.
623 * darwin-nat.c: Fix indentation.
624 * darwin-nat.h: Fix indentation.
625 * dbxread.c: Fix indentation.
626 * dcache.c: Fix indentation.
627 * disasm.c: Fix indentation.
628 * dtrace-probe.c: Fix indentation.
629 * dwarf2/abbrev.c: Fix indentation.
630 * dwarf2/attribute.c: Fix indentation.
631 * dwarf2/expr.c: Fix indentation.
632 * dwarf2/frame.c: Fix indentation.
633 * dwarf2/index-cache.c: Fix indentation.
634 * dwarf2/index-write.c: Fix indentation.
635 * dwarf2/line-header.c: Fix indentation.
636 * dwarf2/loc.c: Fix indentation.
637 * dwarf2/macro.c: Fix indentation.
638 * dwarf2/read.c: Fix indentation.
639 * dwarf2/read.h: Fix indentation.
640 * elfread.c: Fix indentation.
641 * eval.c: Fix indentation.
642 * event-top.c: Fix indentation.
643 * exec.c: Fix indentation.
644 * exec.h: Fix indentation.
645 * expprint.c: Fix indentation.
646 * f-lang.c: Fix indentation.
647 * f-typeprint.c: Fix indentation.
648 * f-valprint.c: Fix indentation.
649 * fbsd-nat.c: Fix indentation.
650 * fbsd-tdep.c: Fix indentation.
651 * findvar.c: Fix indentation.
652 * fork-child.c: Fix indentation.
653 * frame-unwind.c: Fix indentation.
654 * frame-unwind.h: Fix indentation.
655 * frame.c: Fix indentation.
656 * frv-linux-tdep.c: Fix indentation.
657 * frv-tdep.c: Fix indentation.
658 * frv-tdep.h: Fix indentation.
659 * ft32-tdep.c: Fix indentation.
660 * gcore.c: Fix indentation.
661 * gdb_bfd.c: Fix indentation.
662 * gdbarch.sh: Fix indentation.
663 * gdbarch.c: Re-generate
664 * gdbarch.h: Re-generate.
665 * gdbcore.h: Fix indentation.
666 * gdbthread.h: Fix indentation.
667 * gdbtypes.c: Fix indentation.
668 * gdbtypes.h: Fix indentation.
669 * glibc-tdep.c: Fix indentation.
670 * gnu-nat.c: Fix indentation.
671 * gnu-nat.h: Fix indentation.
672 * gnu-v2-abi.c: Fix indentation.
673 * gnu-v3-abi.c: Fix indentation.
674 * go32-nat.c: Fix indentation.
675 * guile/guile-internal.h: Fix indentation.
676 * guile/scm-cmd.c: Fix indentation.
677 * guile/scm-frame.c: Fix indentation.
678 * guile/scm-iterator.c: Fix indentation.
679 * guile/scm-math.c: Fix indentation.
680 * guile/scm-ports.c: Fix indentation.
681 * guile/scm-pretty-print.c: Fix indentation.
682 * guile/scm-value.c: Fix indentation.
683 * h8300-tdep.c: Fix indentation.
684 * hppa-linux-nat.c: Fix indentation.
685 * hppa-linux-tdep.c: Fix indentation.
686 * hppa-nbsd-nat.c: Fix indentation.
687 * hppa-nbsd-tdep.c: Fix indentation.
688 * hppa-obsd-nat.c: Fix indentation.
689 * hppa-tdep.c: Fix indentation.
690 * hppa-tdep.h: Fix indentation.
691 * i386-bsd-nat.c: Fix indentation.
692 * i386-darwin-nat.c: Fix indentation.
693 * i386-darwin-tdep.c: Fix indentation.
694 * i386-dicos-tdep.c: Fix indentation.
695 * i386-gnu-nat.c: Fix indentation.
696 * i386-linux-nat.c: Fix indentation.
697 * i386-linux-tdep.c: Fix indentation.
698 * i386-nto-tdep.c: Fix indentation.
699 * i386-obsd-tdep.c: Fix indentation.
700 * i386-sol2-nat.c: Fix indentation.
701 * i386-tdep.c: Fix indentation.
702 * i386-tdep.h: Fix indentation.
703 * i386-windows-tdep.c: Fix indentation.
704 * i387-tdep.c: Fix indentation.
705 * i387-tdep.h: Fix indentation.
706 * ia64-libunwind-tdep.c: Fix indentation.
707 * ia64-libunwind-tdep.h: Fix indentation.
708 * ia64-linux-nat.c: Fix indentation.
709 * ia64-linux-tdep.c: Fix indentation.
710 * ia64-tdep.c: Fix indentation.
711 * ia64-tdep.h: Fix indentation.
712 * ia64-vms-tdep.c: Fix indentation.
713 * infcall.c: Fix indentation.
714 * infcmd.c: Fix indentation.
715 * inferior.c: Fix indentation.
716 * infrun.c: Fix indentation.
717 * iq2000-tdep.c: Fix indentation.
718 * language.c: Fix indentation.
719 * linespec.c: Fix indentation.
720 * linux-fork.c: Fix indentation.
721 * linux-nat.c: Fix indentation.
722 * linux-tdep.c: Fix indentation.
723 * linux-thread-db.c: Fix indentation.
724 * lm32-tdep.c: Fix indentation.
725 * m2-lang.c: Fix indentation.
726 * m2-typeprint.c: Fix indentation.
727 * m2-valprint.c: Fix indentation.
728 * m32c-tdep.c: Fix indentation.
729 * m32r-linux-tdep.c: Fix indentation.
730 * m32r-tdep.c: Fix indentation.
731 * m68hc11-tdep.c: Fix indentation.
732 * m68k-bsd-nat.c: Fix indentation.
733 * m68k-linux-nat.c: Fix indentation.
734 * m68k-linux-tdep.c: Fix indentation.
735 * m68k-tdep.c: Fix indentation.
736 * machoread.c: Fix indentation.
737 * macrocmd.c: Fix indentation.
738 * macroexp.c: Fix indentation.
739 * macroscope.c: Fix indentation.
740 * macrotab.c: Fix indentation.
741 * macrotab.h: Fix indentation.
742 * main.c: Fix indentation.
743 * mdebugread.c: Fix indentation.
744 * mep-tdep.c: Fix indentation.
745 * mi/mi-cmd-catch.c: Fix indentation.
746 * mi/mi-cmd-disas.c: Fix indentation.
747 * mi/mi-cmd-env.c: Fix indentation.
748 * mi/mi-cmd-stack.c: Fix indentation.
749 * mi/mi-cmd-var.c: Fix indentation.
750 * mi/mi-cmds.c: Fix indentation.
751 * mi/mi-main.c: Fix indentation.
752 * mi/mi-parse.c: Fix indentation.
753 * microblaze-tdep.c: Fix indentation.
754 * minidebug.c: Fix indentation.
755 * minsyms.c: Fix indentation.
756 * mips-linux-nat.c: Fix indentation.
757 * mips-linux-tdep.c: Fix indentation.
758 * mips-nbsd-tdep.c: Fix indentation.
759 * mips-tdep.c: Fix indentation.
760 * mn10300-linux-tdep.c: Fix indentation.
761 * mn10300-tdep.c: Fix indentation.
762 * moxie-tdep.c: Fix indentation.
763 * msp430-tdep.c: Fix indentation.
764 * namespace.h: Fix indentation.
765 * nat/fork-inferior.c: Fix indentation.
766 * nat/gdb_ptrace.h: Fix indentation.
767 * nat/linux-namespaces.c: Fix indentation.
768 * nat/linux-osdata.c: Fix indentation.
769 * nat/netbsd-nat.c: Fix indentation.
770 * nat/x86-dregs.c: Fix indentation.
771 * nbsd-nat.c: Fix indentation.
772 * nbsd-tdep.c: Fix indentation.
773 * nios2-linux-tdep.c: Fix indentation.
774 * nios2-tdep.c: Fix indentation.
775 * nto-procfs.c: Fix indentation.
776 * nto-tdep.c: Fix indentation.
777 * objfiles.c: Fix indentation.
778 * objfiles.h: Fix indentation.
779 * opencl-lang.c: Fix indentation.
780 * or1k-tdep.c: Fix indentation.
781 * osabi.c: Fix indentation.
782 * osabi.h: Fix indentation.
783 * osdata.c: Fix indentation.
784 * p-lang.c: Fix indentation.
785 * p-typeprint.c: Fix indentation.
786 * p-valprint.c: Fix indentation.
787 * parse.c: Fix indentation.
788 * ppc-linux-nat.c: Fix indentation.
789 * ppc-linux-tdep.c: Fix indentation.
790 * ppc-nbsd-nat.c: Fix indentation.
791 * ppc-nbsd-tdep.c: Fix indentation.
792 * ppc-obsd-nat.c: Fix indentation.
793 * ppc-ravenscar-thread.c: Fix indentation.
794 * ppc-sysv-tdep.c: Fix indentation.
795 * ppc64-tdep.c: Fix indentation.
796 * printcmd.c: Fix indentation.
797 * proc-api.c: Fix indentation.
798 * producer.c: Fix indentation.
799 * producer.h: Fix indentation.
800 * prologue-value.c: Fix indentation.
801 * prologue-value.h: Fix indentation.
802 * psymtab.c: Fix indentation.
803 * python/py-arch.c: Fix indentation.
804 * python/py-bpevent.c: Fix indentation.
805 * python/py-event.c: Fix indentation.
806 * python/py-event.h: Fix indentation.
807 * python/py-finishbreakpoint.c: Fix indentation.
808 * python/py-frame.c: Fix indentation.
809 * python/py-framefilter.c: Fix indentation.
810 * python/py-inferior.c: Fix indentation.
811 * python/py-infthread.c: Fix indentation.
812 * python/py-objfile.c: Fix indentation.
813 * python/py-prettyprint.c: Fix indentation.
814 * python/py-registers.c: Fix indentation.
815 * python/py-signalevent.c: Fix indentation.
816 * python/py-stopevent.c: Fix indentation.
817 * python/py-stopevent.h: Fix indentation.
818 * python/py-threadevent.c: Fix indentation.
819 * python/py-tui.c: Fix indentation.
820 * python/py-unwind.c: Fix indentation.
821 * python/py-value.c: Fix indentation.
822 * python/py-xmethods.c: Fix indentation.
823 * python/python-internal.h: Fix indentation.
824 * python/python.c: Fix indentation.
825 * ravenscar-thread.c: Fix indentation.
826 * record-btrace.c: Fix indentation.
827 * record-full.c: Fix indentation.
828 * record.c: Fix indentation.
829 * reggroups.c: Fix indentation.
830 * regset.h: Fix indentation.
831 * remote-fileio.c: Fix indentation.
832 * remote.c: Fix indentation.
833 * reverse.c: Fix indentation.
834 * riscv-linux-tdep.c: Fix indentation.
835 * riscv-ravenscar-thread.c: Fix indentation.
836 * riscv-tdep.c: Fix indentation.
837 * rl78-tdep.c: Fix indentation.
838 * rs6000-aix-tdep.c: Fix indentation.
839 * rs6000-lynx178-tdep.c: Fix indentation.
840 * rs6000-nat.c: Fix indentation.
841 * rs6000-tdep.c: Fix indentation.
842 * rust-lang.c: Fix indentation.
843 * rx-tdep.c: Fix indentation.
844 * s12z-tdep.c: Fix indentation.
845 * s390-linux-tdep.c: Fix indentation.
846 * score-tdep.c: Fix indentation.
847 * ser-base.c: Fix indentation.
848 * ser-mingw.c: Fix indentation.
849 * ser-uds.c: Fix indentation.
850 * ser-unix.c: Fix indentation.
851 * serial.c: Fix indentation.
852 * sh-linux-tdep.c: Fix indentation.
853 * sh-nbsd-tdep.c: Fix indentation.
854 * sh-tdep.c: Fix indentation.
855 * skip.c: Fix indentation.
856 * sol-thread.c: Fix indentation.
857 * solib-aix.c: Fix indentation.
858 * solib-darwin.c: Fix indentation.
859 * solib-frv.c: Fix indentation.
860 * solib-svr4.c: Fix indentation.
861 * solib.c: Fix indentation.
862 * source.c: Fix indentation.
863 * sparc-linux-tdep.c: Fix indentation.
864 * sparc-nbsd-tdep.c: Fix indentation.
865 * sparc-obsd-tdep.c: Fix indentation.
866 * sparc-ravenscar-thread.c: Fix indentation.
867 * sparc-tdep.c: Fix indentation.
868 * sparc64-linux-tdep.c: Fix indentation.
869 * sparc64-nbsd-tdep.c: Fix indentation.
870 * sparc64-obsd-tdep.c: Fix indentation.
871 * sparc64-tdep.c: Fix indentation.
872 * stabsread.c: Fix indentation.
873 * stack.c: Fix indentation.
874 * stap-probe.c: Fix indentation.
875 * stubs/ia64vms-stub.c: Fix indentation.
876 * stubs/m32r-stub.c: Fix indentation.
877 * stubs/m68k-stub.c: Fix indentation.
878 * stubs/sh-stub.c: Fix indentation.
879 * stubs/sparc-stub.c: Fix indentation.
880 * symfile-mem.c: Fix indentation.
881 * symfile.c: Fix indentation.
882 * symfile.h: Fix indentation.
883 * symmisc.c: Fix indentation.
884 * symtab.c: Fix indentation.
885 * symtab.h: Fix indentation.
886 * target-float.c: Fix indentation.
887 * target.c: Fix indentation.
888 * target.h: Fix indentation.
889 * tic6x-tdep.c: Fix indentation.
890 * tilegx-linux-tdep.c: Fix indentation.
891 * tilegx-tdep.c: Fix indentation.
892 * top.c: Fix indentation.
893 * tracefile-tfile.c: Fix indentation.
894 * tracepoint.c: Fix indentation.
895 * tui/tui-disasm.c: Fix indentation.
896 * tui/tui-io.c: Fix indentation.
897 * tui/tui-regs.c: Fix indentation.
898 * tui/tui-stack.c: Fix indentation.
899 * tui/tui-win.c: Fix indentation.
900 * tui/tui-winsource.c: Fix indentation.
901 * tui/tui.c: Fix indentation.
902 * typeprint.c: Fix indentation.
903 * ui-out.h: Fix indentation.
904 * unittests/copy_bitwise-selftests.c: Fix indentation.
905 * unittests/memory-map-selftests.c: Fix indentation.
906 * utils.c: Fix indentation.
907 * v850-tdep.c: Fix indentation.
908 * valarith.c: Fix indentation.
909 * valops.c: Fix indentation.
910 * valprint.c: Fix indentation.
911 * valprint.h: Fix indentation.
912 * value.c: Fix indentation.
913 * value.h: Fix indentation.
914 * varobj.c: Fix indentation.
915 * vax-tdep.c: Fix indentation.
916 * windows-nat.c: Fix indentation.
917 * windows-tdep.c: Fix indentation.
918 * xcoffread.c: Fix indentation.
919 * xml-syscall.c: Fix indentation.
920 * xml-tdesc.c: Fix indentation.
921 * xstormy16-tdep.c: Fix indentation.
922 * xtensa-config.c: Fix indentation.
923 * xtensa-linux-nat.c: Fix indentation.
924 * xtensa-linux-tdep.c: Fix indentation.
925 * xtensa-tdep.c: Fix indentation.
926
927 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
928 Craig Blackmore <craig.blackmore@embecosm.com>
929
930 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
931 as an unsigned value.
932
933 2020-11-01 Tom Tromey <tom@tromey.com>
934
935 * dbxread.c (dbx_end_psymtab): Update.
936 * dwarf2/read.c (process_psymtab_comp_unit_reader)
937 (build_type_psymtabs_reader): Update.
938 * xcoffread.c (xcoff_end_psymtab): Update.
939 * ctfread.c (scan_partial_symbols): Update.
940 * psymtab.c (sort_pst_symbols): Remove.
941 (partial_symtab::end): Rename from end_psymtab_common. Inline
942 sort_pst_symbols.
943 * psympriv.h (struct partial_symtab) <end>: New method.
944 (end_psymtab_common): Don't declare.
945
946 2020-11-01 Tom Tromey <tom@tromey.com>
947
948 * symmisc.c (count_psyms): New function.
949 (print_objfile_statistics): Use it.
950 * psymtab.c (append_psymbol_to_list): Remove.
951 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
952 * objfiles.h (struct objstats) <n_psyms>: Remove.
953
954 2020-11-01 Tom Tromey <tom@tromey.com>
955
956 * dbxread.c (dbx_end_psymtab): Update.
957 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
958 (build_type_psymtabs_reader): Update.
959 * xcoffread.c (xcoff_end_psymtab): Update.
960 * ctfread.c (scan_partial_symbols): Update.
961 * psympriv.h (end_psymtab_common): Update.
962 * psymtab.c (end_psymtab_common): Remove objfile parameter.
963 (sort_pst_symbols): Likewise.
964
965 2020-11-01 Tom Tromey <tom@tromey.com>
966
967 * dbxread.c (dbx_symfile_read): Update.
968 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
969 * xcoffread.c (xcoff_initial_scan): Update.
970 * psympriv.h (init_psymbol_list): Don't declare.
971 * psymtab.c (init_psymbol_list): Remove.
972
973 2020-11-01 Joel Brobecker <brobecker@adacore.com>
974
975 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
976 gnat_encoded_fixed_type_info. Update all callers.
977
978 2020-11-01 Joel Brobecker <brobecker@adacore.com>
979
980 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
981 line too long.
982
983 2020-11-01 Joel Brobecker <brobecker@adacore.com>
984
985 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
986 cast_from_fixed. Update all callers.
987 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
988 Update all callers.
989 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
990 Update all callers.
991 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
992 ada_scaling_factor.
993 * ada-typeprint.c: Replace call to ada_scaling_factor by call
994 to print_gnat_encoded_fixed_point_type.
995 * ada-valprint.c: Likewise.
996
997 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1000 (debug_prefixed_printf): Add check of debug_displaced flag.
1001 * linux-nat.c (linux_nat_debug_printf): Add check of
1002 debug_linux_nat flag.
1003
1004 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * infrun.c (infrun_debug_printf_1): Remove.
1007 (displaced_debug_printf_1): Remove.
1008 (stop_all_threads): Use debug_prefixed_printf.
1009 * infrun.h (infrun_debug_printf_1): Remove.
1010 (infrun_debug_printf): Use debug_prefixed_printf.
1011 (displaced_debug_printf_1): Remove.
1012 (displaced_debug_printf): Use debug_prefixed_printf.
1013 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1014 (linux_nat_debug_printf): Use debug_prefixed_printf.
1015
1016 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * configure: Re-generate.
1019 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1020 AC_LANG_PROGRAM.
1021
1022 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * configure: Re-generate.
1025
1026 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * configure: Re-generate.
1029
1030 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * configure: Re-generate.
1033
1034 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1035
1036 * configure: Re-generate.
1037
1038 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * acinclude.m4: Modernize.
1041 * configure: Re-generate.
1042
1043 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * configure.ac: Modernize.
1046 * configure: Re-generate.
1047
1048 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1051 * configure: Re-generate.
1052 * configure.ac: Remove AM_PROG_CC_STDC.
1053
1054 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1055
1056 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1057 AC_CANONICAL_SYSTEM.
1058 * configure: Re-generate.
1059
1060 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1061
1062 * infrun.h (displaced_debug_printf): New macro. Replace
1063 displaced debug prints throughout to use it.
1064 (displaced_debug_printf_1): New declaration.
1065 (displaced_step_dump_bytes): Return string, remove ui_file
1066 parameter, update all callers.
1067 * infrun.c (displaced_debug_printf_1): New function.
1068 (displaced_step_dump_bytes): Return string, remove ui_file
1069 parameter
1070
1071 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1074
1075 2020-10-30 Tom Tromey <tromey@adacore.com>
1076
1077 * Makefile.in (stamp-init): Depend on config.status.
1078
1079 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080
1081 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1082
1083 2020-10-30 Pedro Alves <pedro@palves.net>
1084
1085 * thread.c (lookup_selected_frame): Move ...
1086 * frame.c (lookup_selected_frame): ... here.
1087
1088 2020-10-30 Pedro Alves <pedro@palves.net>
1089
1090 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1091 * frame.c
1092 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1093 Use save_selected_frame. Save language as well.
1094 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1095 Use restore_selected_frame, and restore language as well.
1096 (selected_frame_id, selected_frame_level): New.
1097 (selected_frame): Update comments.
1098 (save_selected_frame, restore_selected_frame): New.
1099 (get_selected_frame): Use lookup_selected_frame.
1100 (get_selected_frame_if_set): Delete.
1101 (select_frame): Record selected_frame_level and selected_frame_id.
1102 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1103 fields.
1104 (get_selected_frame): Make 'message' parameter optional.
1105 (get_selected_frame_if_set): Delete declaration.
1106 (select_frame): Update comments.
1107 (save_selected_frame, restore_selected_frame)
1108 (lookup_selected_frame): Declare.
1109 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1110 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1111 New field.
1112 (save_infcall_control_state): Use save_selected_frame.
1113 (restore_selected_frame): Delete.
1114 (restore_infcall_control_state): Use restore_selected_frame.
1115 * stack.c (select_frame_command_core, frame_command_core): Use
1116 get_selected_frame.
1117 * thread.c (restore_selected_frame): Rename to ...
1118 (lookup_selected_frame): ... this and make extern. Select the
1119 current frame if the frame level is -1.
1120 (scoped_restore_current_thread::restore): Also restore the
1121 language.
1122 (scoped_restore_current_thread::~scoped_restore_current_thread):
1123 Don't try/catch.
1124 (scoped_restore_current_thread::scoped_restore_current_thread):
1125 Save the language as well. Use save_selected_frame.
1126
1127 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1128
1129 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1130 documentation.
1131 * gdbarch.h: Re-generate.
1132
1133 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1136 parameter.
1137 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1138 Likewise.
1139 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1140 Likewise.
1141 * arch-utils.c (default_displaced_step_hw_singlestep):
1142 Likewise.
1143 * arch-utils.h (default_displaced_step_hw_singlestep):
1144 Likewise.
1145 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1146 Likewise.
1147 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1148 Likewise.
1149 * gdbarch.c: Re-generate.
1150 * gdbarch.h: Re-generate.
1151 * infrun.c (resume_1): Adjust.
1152
1153 2020-10-29 Tom Tromey <tom@tromey.com>
1154
1155 * progspace.c (program_space::~program_space): Don't call
1156 exec_close.
1157
1158 2020-10-29 Tom Tromey <tom@tromey.com>
1159
1160 * exec.c (exec_target::close): Don't change current program
1161 space.
1162
1163 2020-10-29 Tom Tromey <tom@tromey.com>
1164
1165 * symfile.c (add_symbol_file_command): Update.
1166 * exec.c (program_space::add_target_sections): Rename.
1167 * symfile-mem.c (symbol_file_add_from_memory): Update.
1168 * progspace.h (struct program_space) <add_target_sections>:
1169 Declare new overload.
1170 * exec.h (add_target_sections_of_objfile): Don't declare.
1171
1172 2020-10-29 Tom Tromey <tom@tromey.com>
1173
1174 * solib.c (solib_map_sections): Update.
1175 * exec.c (program_space::add_target_sections): Now a method.
1176 (exec_file_attach): Update.
1177 * exec.h (add_target_sections): Don't declare.
1178 * progspace.h (struct program_space) <add_target_sections>:
1179 Declare.
1180
1181 2020-10-29 Tom Tromey <tom@tromey.com>
1182
1183 * progspace.h (struct program_space) <remove_target_sections>:
1184 Declare.
1185 * exec.c (program_space::remove_target_sections): Now a method.
1186 * exec.h (remove_target_sections): Don't declare.
1187
1188 2020-10-29 Tom Tromey <tom@tromey.com>
1189
1190 * inferior.c (delete_inferior): Update.
1191 * progspace.c (program_space::empty): Rename from
1192 program_space_empty_p. Return bool.
1193 * progspace.h (struct program_space) <empty>: New method.
1194 (program_space_empty_p): Don't declare.
1195
1196 2020-10-29 Tom Tromey <tom@tromey.com>
1197
1198 * progspace.c (program_space::~program_space): Don't call
1199 clear_program_space_solib_cache.
1200 (program_space::clear_solib_cache): Rename from
1201 clear_solib_cache.
1202 * solib.c (handle_solib_event): Update.
1203 * progspace.h (struct program_space) <clear_solib_cache>: New
1204 method.
1205 (clear_program_space_solib_cache): Don't declare.
1206
1207 2020-10-29 Tom Tromey <tom@tromey.com>
1208
1209 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1210 * target.c (info_target_command): Update.
1211 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1212 (symbol_file_clear, reread_symbols): Update.
1213 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1214 * stabsread.c (scan_file_globals): Update.
1215 * solib.c (update_solib_list): Update.
1216 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1217 (svr4_fetch_objfile_link_map, enable_break)
1218 (svr4_relocate_main_executable)
1219 (svr4_iterate_over_objfiles_in_search_order): Update.
1220 * solib-frv.c (lm_base, enable_break)
1221 (frv_relocate_main_executable): Update.
1222 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1223 (frv_fetch_objfile_link_map): Update.
1224 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1225 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1226 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1227 * remote.c (remote_target::get_offsets): Update.
1228 (remote_target::start_remote)
1229 (extended_remote_target::post_attach): Update.
1230 * objfiles.c (entry_point_address_query): Update.
1231 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1232 * minsyms.c (get_symbol_leading_char): Update.
1233 * frame.c (inside_main_func): Update.
1234 * progspace.h (symfile_objfile): Remove macro.
1235
1236 2020-10-29 Tom Tromey <tom@tromey.com>
1237
1238 * exec.c (exec_file_attach): Update.
1239 * progspace.c (program_space::exec_close): Update.
1240 * progspace.h (struct program_space) <ebfd>: Now a
1241 gdb_bfd_ref_ptr.
1242 <set_exec_bfd>: Change argument type.
1243 <exec_bfd>: Update.
1244
1245 2020-10-29 Tom Tromey <tom@tromey.com>
1246
1247 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1248 * symfile.c (reread_symbols): Update.
1249 * symfile-mem.c (add_symbol_file_from_memory_command)
1250 (add_vsyscall_page): Update.
1251 * source-cache.c (source_cache::get_plain_source_lines): Update.
1252 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1253 (svr4_current_sos_direct, svr4_exec_displacement)
1254 (svr4_relocate_main_executable): Update.
1255 (svr4_iterate_over_objfiles_in_search_order): Update.
1256 * solib-frv.c (enable_break2, enable_break): Update.
1257 * solib-dsbt.c (lm_base, enable_break): Update.
1258 * solib-darwin.c (find_program_interpreter)
1259 (darwin_solib_create_inferior_hook): Update.
1260 * sol-thread.c (rw_common, ps_pdmodel): Update.
1261 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1262 * remote.c (compare_sections_command)
1263 (remote_target::trace_set_readonly_regions): Update.
1264 * remote-sim.c (get_sim_inferior_data)
1265 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1266 (gdbsim_target_open, gdbsim_target::files_info): Update.
1267 * exec.h (exec_bfd): Remove macro.
1268 * progspace.c (initialize_progspace): Update.
1269 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1270 Update.
1271 * nto-procfs.c (nto_procfs_target::post_attach)
1272 (nto_procfs_target::create_inferior): Update.
1273 * maint.c (maintenance_info_sections): Update.
1274 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1275 Update.
1276 * infcmd.c (post_create_inferior): Update.
1277 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1278 (objfile_find_memory_regions): Update.
1279 * exec.c (validate_exec_file, exec_file_attach)
1280 (exec_read_partial_read_only, print_section_info): Update.
1281 * corelow.c (core_target_open): Update.
1282 * corefile.c (reopen_exec_file, validate_files): Update.
1283 * arm-tdep.c (gdb_print_insn_arm): Update.
1284 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1285 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1286 methods.
1287
1288 2020-10-29 Tom Tromey <tom@tromey.com>
1289
1290 * progspace.h (current_target_sections): Remove macro.
1291 * solib-svr4.c (scan_dyntag): Update.
1292 * solib-dsbt.c (scan_dyntag): Update.
1293 * exec.c (exec_target::close): Update.
1294 (add_target_sections, add_target_sections_of_objfile)
1295 (remove_target_sections, exec_target::get_section_table)
1296 (exec_target::files_info, set_section_command)
1297 (exec_set_section_address, exec_target::has_memory)
1298 (exec_target::has_memory): Update.
1299
1300 2020-10-29 Tom Tromey <tom@tromey.com>
1301
1302 * source-cache.c (source_cache::get_plain_source_lines): Use
1303 current_program_space.
1304 * corefile.c (reopen_exec_file): Use current_program_space.
1305 * exec.c (exec_file_attach): Use current_program_space.
1306 * exec.h (exec_bfd_mtime): Remove.
1307
1308 2020-10-29 Tom Tromey <tom@tromey.com>
1309
1310 * gcore.c (default_gcore_mach): Remove.
1311 (create_gcore_bfd): Update.
1312
1313 2020-10-29 Tom Tromey <tom@tromey.com>
1314
1315 * progspace.c (program_space::exec_close): New method, from
1316 exec_close in exec.c.
1317 * exec.c (exec_close): Move to progspace.c.
1318 (exec_target::close, exec_file_attach): Update.
1319 * progspace.h (struct program_space) <exec_close>: Declare
1320 method.
1321
1322 2020-10-29 Tom Tromey <tom@tromey.com>
1323
1324 * progspace.h (struct program_space) <exec_filename>: Rename from
1325 pspace_exec_filename. Now a unique_xmalloc_ptr.
1326 * inferior.c (print_selected_inferior): Update.
1327 (print_inferior): Update.
1328 * mi/mi-main.c (print_one_inferior): Update.
1329 * exec.h (exec_filename): Remove macro.
1330 * corefile.c (get_exec_file): Update.
1331 * exec.c (exec_close): Update.
1332 (exec_file_attach): Update.
1333 * progspace.c (clone_program_space): Update.
1334 (print_program_space): Update.
1335
1336 2020-10-29 Tom Tromey <tom@tromey.com>
1337
1338 * target-section.h (struct target_section): Add constructor.
1339 * exec.c (build_section_table, add_target_sections_of_objfile):
1340 Update.
1341 * corelow.c (core_target::build_file_mappings): Update.
1342
1343 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1344
1345 PR gdb/19318
1346 * inferior.c (detach_inferior_command): Restore the current thread.
1347 (kill_inferior_command): Ditto.
1348
1349 2020-10-28 Tom de Vries <tdevries@suse.de>
1350
1351 PR symtab/26772
1352 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1353 map, check it in the "best match" loop.
1354
1355 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * m32c-tdep.c: Remove unused includes.
1358
1359 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * xtensa-tdep.c: Remove includes.
1362
1363 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1364
1365 * breakpoint.c (struct condition_command_opts): New struct.
1366 (condition_command_option_defs): New static global.
1367 (make_condition_command_options_def_group): New function.
1368 (condition_completer): Update to consider the '-force' flag.
1369 (condition_command): Use gdb::option for the '-force' flag.
1370
1371 2020-10-27 Tom de Vries <tdevries@suse.de>
1372
1373 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1374 symbols in section check.
1375
1376 2020-10-27 Tom de Vries <tdevries@suse.de>
1377
1378 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1379
1380 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381
1382 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1383 * breakpoint.c: Update the help text of the 'condition' and 'break'
1384 commands.
1385 (set_breakpoint_condition): Take a new bool parameter
1386 to control whether condition definition should be forced even when
1387 the condition expression is invalid in all of the current locations.
1388 (condition_command): Update the call to 'set_breakpoint_condition'.
1389 (find_condition_and_thread): Take the "-force-condition" flag into
1390 account.
1391 * linespec.c (linespec_keywords): Add "-force-condition" as an
1392 element.
1393 (FORCE_KEYWORD_INDEX): New #define.
1394 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1395 as a keyword.
1396 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1397 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1398 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1399 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1400
1401 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402
1403 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1404 * breakpoint.c (set_breakpoint_location_condition): New function.
1405 (set_breakpoint_condition): Disable a breakpoint location if parsing
1406 the condition string gives an error.
1407 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1408 (build_target_condition_list): Ditto.
1409 (build_target_command_list): Ditto.
1410 (build_bpstat_chain): Ditto.
1411 (print_one_breakpoint_location): Ditto.
1412 (print_one_breakpoint): Ditto.
1413 (breakpoint_1): Ditto.
1414 (bp_location::bp_location): Ditto.
1415 (locations_are_equal): Ditto.
1416 (update_breakpoint_locations): Ditto.
1417 (enable_disable_bp_num_loc): Ditto.
1418 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1419 (find_condition_and_thread_for_sals): New static function.
1420 (create_breakpoint): Call find_condition_and_thread_for_sals.
1421 (location_to_sals): Call find_condition_and_thread_for_sals instead
1422 of find_condition_and_thread.
1423
1424 2020-10-26 Tom de Vries <tdevries@suse.de>
1425
1426 * dwarf2/read.c (process_full_comp_unit): Call
1427 dwarf2_find_base_address.
1428
1429 2020-10-26 Tom Tromey <tromey@adacore.com>
1430
1431 * gdbtypes.c (create_range_type): Revert previous patch. Add
1432 comment.
1433
1434 2020-10-26 Pedro Alves <pedro@palves.net>
1435
1436 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1437 (my_waitpid): Use gdb::handle_eintr.
1438
1439 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * acinclude.m4: Update ptrace.m4 path.
1442 * ptrace.m4: Moved to gdbsupport.
1443
1444 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1447 instead of target_gdbarch.
1448
1449 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * jit.c (jit_reader_load_command): Pass current inferior.
1452 (jit_inferior_init): Change parameter type to inferior, use it.
1453 (jit_inferior_created): Remove.
1454 (jit_inferior_created_hook): Pass inferior parameter down.
1455 (_initialize_jit): Use jit_inferior_created_hook instead of
1456 jit_inferior_created.
1457 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1458 * infrun.c (follow_exec): Pass inferior to
1459 jit_inferior_created_hook.
1460
1461 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1462
1463 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1464 parameter and use it.
1465 (thread_db_inferior_created): Pass inferior argument.
1466
1467 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * aix-thread.c (aix_thread_inferior_created): Add inferior
1470 parameter.
1471 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1472 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1473 * jit.c (jit_inferior_created): Likewise.
1474 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1475 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1476 * observable.h (inferior_created): Likewise.
1477 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1478 * symfile-mem.c (add_vsyscall_page): Likewise.
1479 * infcmd.c (post_create_inferior): Pass inferior argument.
1480
1481 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1482
1483 GDB 10.1 released.
1484
1485 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1486
1487 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1488 to ada_check_typedef.
1489
1490 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * f-exp.y (f_parse): Rename to...
1493 (f_language::parser): ...this.
1494 * f-lang.c (f_get_encoding): Rename to...
1495 (f_language::get_encoding): ...this.
1496 (f_op_print_tab): Rename to...
1497 (f_language::op_print_tab): ...this.
1498 (exp_descriptor_f): Rename to...
1499 (f_language::exp_descriptor_tab): ...this.
1500 (class f_language): Moved to f-lang.h.
1501 (f_language::language_arch_info): New function, moved out of class
1502 declaration.
1503 (f_language::search_name_hash): Likewise.
1504 (f_language::lookup_symbol_nonlocal): Likewise.
1505 (f_language::get_symbol_name_matcher_inner): Likewise.
1506 * f-lang.h: Add 'valprint.h' include.
1507 (class f_language): Moved here from f-lang.c.
1508 * f-typeprint.c (f_type_print_args): Delete commented out
1509 declaration.
1510 (f_print_typedef): Rename to...
1511 (f_language::print_typedef): ...this.
1512 (f_print_type): Rename to...
1513 (f_language::print_type): ...this.
1514 (f_type_print_varspec_prefix): Delete declaration and rename to...
1515 (f_language::f_type_print_varspec_prefix): ...this.
1516 (f_type_print_varspec_suffix): Delete declaration and rename to...
1517 (f_language::f_type_print_varspec_suffix): ...this.
1518 (f_type_print_base): Delete declaration and rename to...
1519 (f_language::f_type_print_base): ...this.
1520 * f-valprint.c (f_value_print_inner): Rename to...
1521 (f_language::value_print_inner): ...this.
1522 * parse.c: Delete 'f-lang.h' include.
1523
1524 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * language.h (language_defn::print_type): Add variable names in
1527 declaration, and update header comment.
1528
1529 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * ada-lang.c (ada_language::demangle): Rename to...
1532 (ada_language::demangle_symbol): ...this.
1533 * c-lang.c (cplus_language::demangle): Rename to...
1534 (cplus_language::demangle_symbol): ...this.
1535 * d-lang.c (d_language::demangle): Rename to...
1536 (d_language::demangle_symbol): ...this.
1537 * f-lang.c (f_language::demangle): Rename to...
1538 (f_language::demangle_symbol): ...this.
1539 * go-lang.c (go_language::demangle): Rename to...
1540 (go_language::demangle_symbol): ...this.
1541 * language.c (language_demangle): Update call to demangle_symbol.
1542 (auto_or_unknown_language::demangle): Rename to...
1543 (auto_or_unknown_language::demangle_symbol): ...this.
1544 * language.h (language_defn::demangle): Rename to...
1545 (language_defn::demangle_symbol): ...this.
1546 * objc-lang.c (objc_language::demangle): Rename to...
1547 (objc_language::demangle_symbol): ...this.
1548 * rust-lang.c (rust_language::demangle): Rename to...
1549 (rust_language::demangle_symbol): ...this.
1550
1551 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1554 (iterate_over_file_blocks): Replace use of macro with the macros
1555 definition.
1556
1557 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1560 * valprint.c (maybe_print_array_index): Replace use of macro with
1561 the macros definition.
1562
1563 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 * ada-lang.c (ada_language::print_array_index): Call value_print
1566 directly.
1567 * language.c (language_defn::print_array_index): Likewise.
1568 * language.h (LA_VALUE_PRINT): Delete.
1569 * valprint.c (value_print): Call value_print on the
1570 current_language directly.
1571
1572 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * language.h (LA_PRINT_TYPEDEF): Delete.
1575 * typeprint.c (typedef_print): Call print_typedef directly on the
1576 current_language object.
1577
1578 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * m2-exp.y (m2_parse): Rename to...
1581 (m2_language::parser): ...this. Update function signature.
1582 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1583 (m2_op_print): Rename to...
1584 (m2_language::op_print_tab): ...this, and make const.
1585 (exp_descriptor_modula2): Rename to...
1586 (m2_language::exp_descriptor_modula2): ...this.
1587 (class m2_language): Move to m2-lang.h.
1588 (m2_language::language_arch_info): New function, moved out of
1589 class declaration.
1590 (m2_language::printchar): New function, body from m2_printchar.
1591 (m2_language::printstr): New function, moved out of class
1592 declaration.
1593 (m2_language::emitchar): Likewise.
1594 * m2-lang.h (m2_parse): Delete declaration.
1595 (m2_print_typedef): Delete declaration.
1596 (m2_value_print_inner): Delete declaration.
1597 (class m2_language): Class declaration moved from m2-lang.c,
1598 larger functions are left in m2-lang.c.
1599 * m2-typeprint.c (m2_print_typedef): Rename to...
1600 (m2_language::print_typedef): ...this, and update function
1601 signature.
1602 * m2-valprint.c (m2_value_print_inner): Rename to...
1603 (m2_language::value_print_inner): ...this, replace use of
1604 LA_PRINT_STRING with a direct call to printstr member function,
1605 and update recursive call.
1606
1607 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * language.c (default_is_string_type_p): Delete, implementation
1610 moved into auto_or_unknown_language::is_string_type_p.
1611 (unk_op_print_tab): Moved into
1612 auto_or_unknown_language::opcode_print_table.
1613 (unknown_language_arch_info): Delete, implementation moved into
1614 auto_or_unknown_language::language_arch_info.
1615 (class auto_or_unknown_language): New class, member functions
1616 copied from unknown_language class, with some updates.
1617 (class unknown_language): Most member functions moved into
1618 auto_or_unknown_language class. Inherit from
1619 auto_or_unknown_language class.
1620 (class auto_language): Inherit from auto_or_unknown_language.
1621 Delete most member functions.
1622
1623 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1624
1625 * stabsread.c (read_member_functions): Remove gdb_assert.
1626
1627 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1628
1629 * gdbtypes.c (init_complex_type): Check target type name.
1630
1631 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * target-debug.h (target_debug_print_struct_target_ops_p):
1634 Remove.
1635 (target_debug_print_async_callback_ftype_p): Remove.
1636 (target_debug_print_struct_trace_state_variable_p): Remove.
1637 (target_debug_print_struct_traceframe_info_p): Remove.
1638 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1639 (target_debug_print_enum_btrace_format): Remove.
1640 (target_debug_print_enum_info_proc_what): Remove.
1641 (target_debug_print_thread_info_pp): Remove.
1642
1643 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1644
1645 * target.h (struct target_ops) <make_corefile_notes>:
1646 Change return type to unique pointer.
1647 * target.c (dummy_make_corefile_notes): Likewise.
1648 * exec.c (struct exec_target) <make_corefile_notes>:
1649 Likewise.
1650 (exec_target::make_corefile_notes): Likewise.
1651 * procfs.c (class procfs_target) <make_corefile_notes>:
1652 Likewise.
1653 (procfs_do_thread_registers): Adjust to unique pointer.
1654 (struct procfs_corefile_thread_data): Add constructor.
1655 <note_data>: Change type to unique pointer.
1656 (procfs_corefile_thread_callback): Adjust to unique pointer.
1657 (procfs_target::make_corefile_notes): Change return type to
1658 unique pointer.
1659 * target-delegates.c: Re-generate.
1660 * gcore.c (write_gcore_file_1): Adjust.
1661 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1662 New.
1663
1664 2020-10-22 Tom de Vries <tdevries@suse.de>
1665
1666 * block.c (find_block_in_blockvector): Make sure the returned block
1667 contains pc.
1668
1669 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 PR gdb/26693
1672 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1673 parameter.
1674 (load_cu): Pass existing CU.
1675 (process_imported_unit_die): Likewise.
1676 (follow_die_offset): Likewise.
1677
1678 2020-10-22 Luis Machado <luis.machado@linaro.org>
1679
1680 * corelow.c (core_target::xfer_partial): Also check for an empty
1681 m_core_unavailable_mappings vector.
1682
1683 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1686 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1687 * f-exp.y (arglist): Allow for a series of subranges.
1688 (subrange): Add cases for subranges with strides.
1689 * f-lang.c (value_f90_subarray): Catch use of array strides and
1690 throw an error.
1691 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1692
1693 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * expprint.c (print_subexp_standard): Change enum range_type to
1696 range_flag and rename variables to match.
1697 (dump_subexp_body_standard): Likewise.
1698 * expression.h (enum range_type): Rename to...
1699 (enum range_flag): ...this.
1700 (range_types): Rename to...
1701 (range_flags): ...this.
1702 * f-lang.c (value_f90_subarray): Change enum range_type to
1703 range_flag and rename variables to match.
1704 * parse.c (operator_length_standard): Likewise.
1705 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1706 range_type to range_flag.
1707 * rust-lang.c (rust_evaluate_funcall): Likewise.
1708 (rust_range): Likewise.
1709 (rust_compute_range): Likewise.
1710 (rust_subscript): Likewise.
1711
1712 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * expprint.c (print_subexp_standard): Update to reflect changes to
1715 enum range_type.
1716 (dump_subexp_body_standard): Likewise.
1717 * expression.h (enum range_type): Convert to a bit field enum, and
1718 make the enum unsigned.
1719 * f-exp.y (subrange): Update to reflect changes to enum
1720 range_type.
1721 * f-lang.c (value_f90_subarray): Likewise.
1722 * parse.c (operator_length_standard): Likewise.
1723 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1724 * rust-lang.c (rust_range): Likewise.
1725 (rust_compute_range): Likewise.
1726 (rust_subscript): Likewise.
1727
1728 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1731 (displaced_step_in_progress): Fix comment.
1732
1733 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1734
1735 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1736 * gdbarch.c: Re-generate.
1737 * gdbarch.h: Re-generate.
1738 * gcore.c (write_gcore_file_1): Adjust.
1739 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1740 constructor.
1741 <note_data>: Change type to unique pointer.
1742 <abort_iteration>: Change type to bool.
1743 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1744 (fbsd_collect_thread_registers): Return void, adjust.
1745 (struct fbsd_corefile_thread_data): Add construtor.
1746 <note_data>: Change type to unique pointer.
1747 (fbsd_corefile_thread): Adjust.
1748 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1749 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1750 to unique pointer, adjust.
1751 (struct linux_collect_regset_section_cb_data): Add constructor.
1752 <note_data>: Change type to unique pointer.
1753 <abort_iteration>: Change type to bool.
1754 (linux_collect_thread_registers): Return void, adjust.
1755 (struct linux_corefile_thread_data): Add constructor.
1756 <note_data>: Change type to unique pointer.
1757 (linux_corefile_thread): Adjust.
1758 (linux_make_corefile_notes): Return unique pointer, adjust.
1759
1760 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1763 * gdbarch.c: Re-generate.
1764 * gdbarch.h: Re-generate.
1765 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1766 bool.
1767 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1768 Likewise.
1769 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1770 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1771 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1772 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1773
1774 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * gdbarch.sh: Make generated predicates return bool.
1777 * gdbarch.c: Re-generate.
1778 * gdbarch.h: Re-generate.
1779
1780 2020-10-20 Tom Tromey <tom@tromey.com>
1781
1782 * varobj-iter.h (struct varobj_item): Remove typedef.
1783
1784 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * infrun.c (currently_stepping): Change int to bool
1787 (maybe_software_singlestep): Likewise.
1788 (show_stop_on_solib_events): Likewise.
1789 (stepping_past_nonsteppable_watchpoint): Likewise.
1790 (displaced_step_in_progress_any_inferior): Likewise.
1791 (displaced_step_in_progress_thread): Likewise.
1792 (keep_going_stepped_thread): Likewise.
1793 (thread_still_needs_step_over): Likewise.
1794 (start_step_over): Likewise.
1795 (do_target_resume): Likewise.
1796 (resume_1): Likewise.
1797 (clear_proceed_status): Likewise.
1798 (thread_still_needs_step_over_bp): Likewise.
1799 (proceed): Likewise.
1800 (switch_back_to_stepped_thread): Likewise.
1801 (adjust_pc_after_break): Likewise.
1802 (stepped_in_from): Likewise.
1803 (handle_stop_requested): Likewise.
1804 (handle_syscall_event): Likewise.
1805 (handle_no_resumed): Likewise.
1806 (handle_inferior_event): Likewise.
1807 (finish_step_over): Likewise.
1808 (handle_signal_stop): Likewise.
1809 (process_event_stop_test): Likewise.
1810
1811 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * infrun.c (get_displaced_stepping_state): Fix comment.
1814
1815 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1816
1817 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1818
1819 2020-10-19 Tom Tromey <tromey@adacore.com>
1820
1821 PR tui/26719
1822 * tui/tui-winsource.h (struct tui_source_window_base)
1823 <refresh_window>: Rename from refresh_pad.
1824 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1825 Rename from refresh_pad.
1826 (tui_source_window_base::show_source_content)
1827 (tui_source_window_base::do_scroll_horizontal): Update.
1828
1829 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1830
1831 * thread.c (_initialize_thread): Fine-tune the help text of
1832 'info threads'.
1833
1834 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1835
1836 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1837
1838 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1839
1840 * breakpoint.c (handle_jit_event): Add an argument, change how
1841 `jit_event_handler` is called.
1842
1843 2020-10-17 Tom Tromey <tom@tromey.com>
1844
1845 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1846 (scan_xcoff_symtab): Update.
1847 * psymtab.h (class psymtab_storage) <global_psymbols,
1848 static_psymbols, current_global_psymbols,
1849 current_static_psymbols>: Remove.
1850 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1851 (match_partial_symbol, lookup_partial_symbol): Update.
1852 (print_partial_symbols): Change parameters.
1853 (dump_psymtab, recursively_search_psymtabs)
1854 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1855 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1856 (concat): Remove.
1857 (end_psymtab_common): Simplify.
1858 (append_psymbol_to_list): Change parameters.
1859 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1860 (init_psymbol_list): Simplify.
1861 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1862 * psympriv.h (struct partial_symtab) <empty>: New method.
1863 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1864 Remove.
1865 <global_psymbols, static_psymbols>: New members.
1866 <add_psymbol>: New methods.
1867 (add_psymbol_to_list): Don't declare.
1868 (psymbol_placement): Move earlier.
1869 * mdebugread.c (parse_partial_symbols): Update.
1870 (handle_psymbol_enumerators): Change parameters.
1871 (mdebug_expand_psymtab): Update.
1872 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1873 (add_partial_symbol): Update.
1874 * dwarf2/index-write.c (write_psymbols): Change parameters.
1875 (write_one_signatured_type): Update.
1876 (recursively_count_psymbols): Update.
1877 (recursively_write_psymbols): Update.
1878 (class debug_names) <recursively_write_psymbols>: Update.
1879 <write_psymbols>: Change parameters.
1880 <write_one_signatured_type>: Update.
1881 * dbxread.c (read_dbx_symtab): Update.
1882 (dbx_end_psymtab): Use partial_symtab::empty.
1883 * ctfread.c (struct ctf_context) <pst>: New member.
1884 (create_partial_symtab): Set it.
1885 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1886 (scan_partial_symbols): Use the psymtab's context. Update.
1887
1888 2020-10-17 Tom Tromey <tom@tromey.com>
1889
1890 * valprint.c (generic_value_print): Remove comment.
1891 * m2-valprint.c (m2_value_print_inner): Remove comment.
1892 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1893 type.
1894
1895 2020-10-17 Tom de Vries <tdevries@suse.de>
1896
1897 PR symtab/26317
1898 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1899 symbol main.
1900
1901 2020-10-14 Tom de Vries <tdevries@suse.de>
1902
1903 PR gdb/26733
1904 * solib.c (solib_contains_address_p): Handle
1905 'solib->sections == nullptr'.
1906
1907 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 PR gdb/26642
1910 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1911 target can't do async.
1912 * target.c (target_wait): Assert that we don't pass
1913 TARGET_WNOHANG to a target that can't async.
1914
1915 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1916
1917 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1918 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1919 * alpha-bsd-nat.c: Adjust include.
1920 * alpha-bsd-tdep.h: Adjust comment.
1921 * alpha-nbsd-tdep.c: Rename to ...
1922 * alpha-netbsd-tdep.c: ... this, adjust include.
1923 * amd64-nbsd-nat.c: Rename to ...
1924 * amd64-netbsd-nat.c: ... this, adjust include.
1925 * amd64-nbsd-tdep.c: Rename to ...
1926 * amd64-netbsd-tdep.c: ... this, adjust include.
1927 * amd64-tdep.h: Adjust include.
1928 * arm-nbsd-nat.c: Rename to ...
1929 * arm-netbsd-nat.c: ... this, adjust include.
1930 * arm-nbsd-tdep.c: Rename to ...
1931 * arm-netbsd-tdep.c: ... this, adjust include.
1932 * arm-nbsd-tdep.h: Rename to ...
1933 * arm-netbsd-tdep.h: ... this, adjust include.
1934 * configure.nat: Adjust file lists.
1935 * configure.tgt: Likewise.
1936 * hppa-nbsd-nat.c: Rename to ...
1937 * hppa-netbsd-nat.c: ... this, adjust include.
1938 * hppa-nbsd-tdep.c: Rename to ...
1939 * hppa-netbsd-tdep.c: ... this, adjust include.
1940 * i386-nbsd-nat.c: Rename to ...
1941 * i386-netbsd-nat.c: ... this, adjust include.
1942 * i386-nbsd-tdep.c: Rename to ...
1943 * i386-netbsd-tdep.c: ... this, adjust include.
1944 * m68k-bsd-nat.c: Adjust include.
1945 * mips-nbsd-nat.c: Rename to ...
1946 * mips-netbsd-nat.c: ... this, adjust include.
1947 * mips-nbsd-tdep.c: Rename to ...
1948 * mips-netbsd-tdep.c: ... this, adjust include.
1949 * mips-nbsd-tdep.h: Rename to ...
1950 * mips-netbsd-tdep.h: ... this.
1951 * nbsd-nat.c: Rename to ...
1952 * netbsd-nat.c: ... this, adjust include.
1953 * nbsd-nat.h: Rename to ...
1954 * netbsd-nat.h: ... this, adjust include.
1955 * nbsd-tdep.c: Rename to ...
1956 * netbsd-tdep.c: ... this, adjust include.
1957 * nbsd-tdep.h: Rename to ...
1958 * netbsd-tdep.h: ... this.
1959 * ppc-nbsd-nat.c: Rename to ...
1960 * ppc-netbsd-nat.c: ... this, adjust include.
1961 * ppc-nbsd-tdep.c: Rename to ...
1962 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1963 * ppc-nbsd-tdep.h: Rename to ...
1964 * ppc-netbsd-tdep.h: ... this.
1965 * sh-nbsd-nat.c: Rename to ...
1966 * sh-netbsd-nat.c: ... this, adjust include.
1967 * sh-nbsd-tdep.c: Rename to ...
1968 * sh-netbsd-tdep.c: ... this, adjust include.
1969 * sparc-nbsd-nat.c: Rename to ...
1970 * sparc-netbsd-nat.c: ... this.
1971 * sparc-nbsd-tdep.c: Rename to ...
1972 * sparc-netbsd-tdep.c: ... this, adjust include.
1973 * sparc64-nbsd-nat.c: Rename to ...
1974 * sparc64-netbsd-nat.c: ... this.
1975 * sparc64-nbsd-tdep.c: Rename to ...
1976 * sparc64-netbsd-tdep.c: ... this, adjust include.
1977 * sparc64-tdep.h: Adjust comment.
1978 * vax-bsd-nat.c: Adjust include.
1979 * vax-nbsd-tdep.c: Rename to ...
1980 * vax-netbsd-tdep.c: ... this, adjust include.
1981
1982 2020-10-12 Tom Tromey <tom@tromey.com>
1983
1984 * target.h (struct target_ops) <get_section_table>: Update.
1985 (target_get_section_table): Update.
1986 * target.c (target_get_section_table, target_section_by_addr)
1987 (memory_xfer_partial_1): Update.
1988 * target-section.h (target_section_table): Now an alias.
1989 * target-delegates.c: Rebuild.
1990 * target-debug.h (target_debug_print_target_section_table_p):
1991 Rename from target_debug_print_struct_target_section_table_p.
1992 * symfile.c (build_section_addr_info_from_section_table): Update.
1993 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1994 * solib-svr4.c (scan_dyntag): Update.
1995 * solib-dsbt.c (scan_dyntag): Update.
1996 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1997 Update.
1998 * record-full.c (record_full_core_target::xfer_partial): Update.
1999 * progspace.h (struct program_space) <target_sections>: Update.
2000 * exec.h (print_section_info): Update.
2001 * exec.c (exec_target::close, build_section_table)
2002 (add_target_sections, add_target_sections_of_objfile)
2003 (remove_target_sections, exec_on_vfork)
2004 (section_table_available_memory)
2005 (section_table_xfer_memory_partial)
2006 (exec_target::get_section_table, exec_target::xfer_partial)
2007 (print_section_info, set_section_command)
2008 (exec_set_section_address, exec_target::has_memory): Update.
2009 * corelow.c (core_target::build_file_mappings)
2010 (core_target::xfer_partial, core_target::info_proc_mappings)
2011 (core_target::info_proc_mappings): Update.
2012 * bfd-target.c (class target_bfd): Update
2013
2014 2020-10-12 Tom Tromey <tom@tromey.com>
2015
2016 * progspace.c (program_space::~program_space): Don't call
2017 clear_section_table.
2018 * exec.h (clear_section_table): Don't declare.
2019 * exec.c (exec_target::close): Update.
2020 (clear_section_table): Remove.
2021
2022 2020-10-12 Tom Tromey <tom@tromey.com>
2023
2024 * exec.c (add_target_sections_of_objfile): Simplify.
2025
2026 2020-10-12 Tom Tromey <tom@tromey.com>
2027
2028 * solib.c (solib_map_sections): Update.
2029 * record-full.c (record_full_core_open_1): Update.
2030 * exec.h (build_section_table): Return a target_section_table.
2031 * exec.c (exec_file_attach): Update.
2032 (build_section_table): Return a target_section_table.
2033 * corelow.c (core_target::core_target): Update.
2034 * bfd-target.c (target_bfd::target_bfd): Update.
2035
2036 2020-10-12 Tom Tromey <tom@tromey.com>
2037
2038 * target.c (target_section_by_addr, memory_xfer_partial_1):
2039 Update.
2040 * target-section.h (struct target_section_table): Use
2041 std::vector.
2042 * symfile.h (build_section_addr_info_from_section_table): Take a
2043 target_section_table.
2044 * symfile.c (build_section_addr_info_from_section_table): Take a
2045 target_section_table.
2046 * solist.h (struct so_list) <sections>: Change type.
2047 <sections_end>: Remove.
2048 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2049 (solib_contains_address_p): Update.
2050 * solib-svr4.c (scan_dyntag): Update.
2051 * solib-dsbt.c (scan_dyntag): Update.
2052 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2053 Update.
2054 * record-full.c (record_full_core_start, record_full_core_end):
2055 Remove.
2056 (record_full_core_sections): New global.
2057 (record_full_core_open_1, record_full_core_target::xfer_partial):
2058 Update.
2059 * exec.h (build_section_table, section_table_xfer_memory_partial)
2060 (add_target_sections): Take a target_section_table.
2061 * exec.c (exec_file_attach, clear_section_table): Update.
2062 (resize_section_table): Remove.
2063 (build_section_table, add_target_sections): Take a
2064 target_section_table.
2065 (add_target_sections_of_objfile, remove_target_sections)
2066 (exec_on_vfork): Update.
2067 (section_table_available_memory): Take a target_section_table.
2068 (section_table_read_available_memory): Update.
2069 (section_table_xfer_memory_partial): Take a target_section_table.
2070 (print_section_info, set_section_command)
2071 (exec_set_section_address, exec_target::has_memory): Update.
2072 * corelow.c (class core_target) <m_core_section_table,
2073 m_core_file_mappings>: Remove braces.
2074 <~core_target>: Remove.
2075 (core_target::core_target): Update.
2076 (core_target::~core_target): Remove.
2077 (core_target::build_file_mappings)
2078 (core_target::xfer_memory_via_mappings)
2079 (core_target::xfer_partial, core_target::info_proc_mappings):
2080 Update.
2081 * bfd-target.c (target_bfd::xfer_partial): Update.
2082 (target_bfd::target_bfd): Update.
2083 (target_bfd::~target_bfd): Remove.
2084
2085 2020-10-12 Tom Tromey <tom@tromey.com>
2086
2087 * target.h (struct target_section, struct target_section_table):
2088 Move to target-section.h.
2089 * target-section.h: New file.
2090
2091 2020-10-12 Pedro Alves <pedro@palves.net>
2092
2093 PR exp/26602
2094 * valops.c (struct struct_field_searcher): New.
2095 (update_search_result): Rename to ...
2096 (struct_field_searcher::update_result): ... this. Simplify
2097 prototype. Record all found fields.
2098 (do_search_struct_field): Rename to ...
2099 (struct_field_searcher::search): ... this. Simplify prototype.
2100 Maintain stack of visited baseclass path. Call update_result for
2101 fields too. Keep searching fields in baseclasses instead of
2102 stopping at the first found field.
2103 (search_struct_field): Use struct_field_searcher. When looking
2104 for fields, report ambiguous access attempts.
2105
2106 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * frame.c (inside_main_func): Check full symbols as well as
2109 minimal symbols.
2110
2111 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2112
2113 * ada-lang.c (advance_wild_match): Rewrite the function's
2114 description. Change the type of target0, t0 and t1 to char.
2115
2116 2020-10-09 Tom Tromey <tromey@adacore.com>
2117
2118 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2119
2120 2020-10-09 Tom Tromey <tromey@adacore.com>
2121
2122 * ada-lang.h (ada_encode): Return std::string.
2123 * ada-lang.c (ada_encode_1): Return std::string.
2124 (ada_encode): Likewise.
2125 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2126 Update.
2127 * ada-exp.y (block_lookup, write_var_or_type): Update.
2128
2129 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2130
2131 PR exp/26714
2132 * printcmd.c (print_formatted): Handle void results as
2133 unformatted prints.
2134
2135 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * arch/aarch32.c (aarch32_create_target_description): Release the
2138 target_desc_up as late as possible.
2139 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2140 * arch/amd64.c (amd64_create_target_description): Likewise.
2141 * arch/arc.c (arc_create_target_description): Return a
2142 target_desc_up, don't release it.
2143 * arch/arc.h (arc_create_target_description): Update declaration.
2144 (arc_lookup_target_description): Move target_desc_up into the
2145 cache, and return a borrowed pointer.
2146 * arch/arm.c (arm_create_target_description): Release the
2147 target_desc_up as late as possible.
2148 * arch/i386.c (i386_create_target_description): Likewise.
2149 * arch/riscv.h (riscv_create_target_description): Update
2150 declaration to match definition.
2151 * arch/tic6x.c (tic6x_create_target_description): Release the
2152 target_desc_up as late as possible.
2153
2154 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2157 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2158
2159 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2160
2161 * source.c (directory_command): Notify observers that "directories"
2162 parameter has changed.
2163
2164 2020-10-08 Tom Tromey <tom@tromey.com>
2165
2166 * cli/cli-cmds.c (print_disassembly): Style function name and
2167 addresses. Add _() wrappers.
2168
2169 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2170
2171 * NEWS: Mention ARC support in GDBserver.
2172
2173 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * arch/aarch32.c (aarch32_create_target_description): Release
2176 unique_ptr returned from allocate_target_description.
2177 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2178 * arch/amd64.c (amd64_create_target_description): Likewise.
2179 * arch/arc.c (arc_create_target_description): Likewise.
2180 * arch/arm.c (arm_create_target_description): Likewise.
2181 * arch/i386.c (i386_create_target_description): Likewise.
2182 * arch/riscv.c (riscv_create_target_description): Update return
2183 type. Handle allocate_target_description returning a unique_ptr.
2184 (riscv_lookup_target_description): Update to handle unique_ptr.
2185 * arch/tic6x.c (tic6x_create_target_description): Release
2186 unique_ptr returned from allocate_target_description.
2187 * features/microblaze-with-stack-protect.c: Regenerate.
2188 * features/microblaze.c: Regenerate.
2189 * features/mips-dsp-linux.c: Regenerate.
2190 * features/mips-linux.c: Regenerate.
2191 * features/mips64-dsp-linux.c: Regenerate.
2192 * features/mips64-linux.c: Regenerate.
2193 * features/nds32.c: Regenerate.
2194 * features/nios2.c: Regenerate.
2195 * features/or1k.c: Regenerate.
2196 * features/rs6000/powerpc-32.c: Regenerate.
2197 * features/rs6000/powerpc-32l.c: Regenerate.
2198 * features/rs6000/powerpc-403.c: Regenerate.
2199 * features/rs6000/powerpc-403gc.c: Regenerate.
2200 * features/rs6000/powerpc-405.c: Regenerate.
2201 * features/rs6000/powerpc-505.c: Regenerate.
2202 * features/rs6000/powerpc-601.c: Regenerate.
2203 * features/rs6000/powerpc-602.c: Regenerate.
2204 * features/rs6000/powerpc-603.c: Regenerate.
2205 * features/rs6000/powerpc-604.c: Regenerate.
2206 * features/rs6000/powerpc-64.c: Regenerate.
2207 * features/rs6000/powerpc-64l.c: Regenerate.
2208 * features/rs6000/powerpc-7400.c: Regenerate.
2209 * features/rs6000/powerpc-750.c: Regenerate.
2210 * features/rs6000/powerpc-860.c: Regenerate.
2211 * features/rs6000/powerpc-altivec32.c: Regenerate.
2212 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2213 * features/rs6000/powerpc-altivec64.c: Regenerate.
2214 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2215 * features/rs6000/powerpc-e500.c: Regenerate.
2216 * features/rs6000/powerpc-e500l.c: Regenerate.
2217 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2218 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2219 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2220 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2221 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2222 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2223 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2224 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2225 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2226 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2227 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2228 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2229 * features/rs6000/powerpc-vsx32.c: Regenerate.
2230 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2231 * features/rs6000/powerpc-vsx64.c: Regenerate.
2232 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2233 * features/rs6000/rs6000.c: Regenerate.
2234 * features/rx.c: Regenerate.
2235 * features/s390-gs-linux64.c: Regenerate.
2236 * features/s390-linux32.c: Regenerate.
2237 * features/s390-linux32v1.c: Regenerate.
2238 * features/s390-linux32v2.c: Regenerate.
2239 * features/s390-linux64.c: Regenerate.
2240 * features/s390-linux64v1.c: Regenerate.
2241 * features/s390-linux64v2.c: Regenerate.
2242 * features/s390-te-linux64.c: Regenerate.
2243 * features/s390-tevx-linux64.c: Regenerate.
2244 * features/s390-vx-linux64.c: Regenerate.
2245 * features/s390x-gs-linux64.c: Regenerate.
2246 * features/s390x-linux64.c: Regenerate.
2247 * features/s390x-linux64v1.c: Regenerate.
2248 * features/s390x-linux64v2.c: Regenerate.
2249 * features/s390x-te-linux64.c: Regenerate.
2250 * features/s390x-tevx-linux64.c: Regenerate.
2251 * features/s390x-vx-linux64.c: Regenerate.
2252 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2253 from allocate_target_description.
2254 * target-descriptions.c (allocate_target_description): Update
2255 return type.
2256 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2257 allocate_target_description.
2258
2259 2020-10-07 Tom Tromey <tromey@adacore.com>
2260
2261 * unittests/search-memory-selftests.c: New file.
2262 * Makefile.in (SELFTESTS_SRCS): Add
2263 unittests/search-memory-selftests.c.
2264
2265 2020-10-07 Tom Tromey <tromey@adacore.com>
2266
2267 PR gdb/16930:
2268 * findcmd.c (_initialize_mem_search): Mention that the range is
2269 inclusive.
2270
2271 2020-10-07 Tom Tromey <tromey@adacore.com>
2272
2273 * target.h (simple_search_memory): Don't declare.
2274 * target.c (simple_search_memory): Move to gdbsupport.
2275 (default_search_memory): Update.
2276 * remote.c (remote_target::search_memory): Update.
2277
2278 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2279
2280 * Makefile.in (COMPILE): Add CXXFLAGS.
2281 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2282 (check-headers): Add CXXFLAGS.
2283
2284 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2285
2286 * arc-linux-tdep.h: New file.
2287 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2288 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2289 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2290 arc_linux_gregset, arc_linux_v2_regset,
2291 arc_linux_iterate_over_regset_sections,
2292 arc_linux_core_read_description): Implement.
2293 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2294 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2295 (arc_gdbarch_features_create): Add.
2296 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2297
2298 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2299
2300 * arch/arc.h: Rename "arc_gdbarch_features" to
2301 "arc_arch_features".
2302 * arc-tdep.h: Likewise.
2303 * arc-tdep.c: Likewise.
2304
2305 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2306
2307 * infcmd.c (attach_command): Remove the redundant call to
2308 `clear_proceed_status`.
2309
2310 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2311
2312 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2313
2314 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2315
2316 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2317 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2318 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2319
2320 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2323 (_initialize_break_catch_sig): Don't allocate array.
2324
2325 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * symtab.c (find_pc_line): Return unmapped addresses when the
2328 requested address is also unmapped.
2329
2330 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2331
2332 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2333 tui/tui-out.h.
2334
2335 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2336
2337 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2338 type::is_vector instead of TYPE_VECTOR.
2339
2340 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2341
2342 * auto-load.c (auto_load_objfile_script_1): Don't use
2343 debugfile_holder as temporary variable when stripping drive
2344 letter.
2345
2346 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2347
2348 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2349 Add TYPE_CODE_COMPLEX.
2350 (amd64_windows_return_value): Fix types returned via XMM0.
2351
2352 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2353
2354 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2355 AArch64/ARM maintainers.
2356
2357 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * NEWS: Mention set/show debug event-loop.
2360
2361 2020-10-02 Tom Tromey <tromey@adacore.com>
2362
2363 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2364 REG_EXTENDED.
2365
2366 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2369 * procfs.c (procfs_inferior_created): Remove.
2370 (_initialize_procfs): Don't register procfs_inferior_created.
2371
2372 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * async-event.c (invoke_async_signal_handlers): Add debug
2375 print.
2376 (check_async_event_handlers): Likewise.
2377 * event-top.c (show_debug_event_loop): New function.
2378 (_initialize_event_top): Register "set debug event-loop"
2379 setting.
2380
2381 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2384 * debug.h: Remove.
2385 * infrun.c: Include gdbsupport/common-debug.h.
2386 * linux-nat.c: Likewise.
2387
2388 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * async-event.h (create_async_signal_handler): Add name
2391 parameter.
2392 (create_async_event_handler): Likewise.
2393 * async-event.c (struct async_signal_handler) <name>: New field.
2394 (struct async_event_handler) <name>: New field.
2395 (create_async_signal_handler): Assign name.
2396 (create_async_event_handler): Assign name.
2397 * event-top.c (async_init_signals): Pass name when creating
2398 handler.
2399 * infrun.c (_initialize_infrun): Likewise.
2400 * record-btrace.c (record_btrace_push_target): Likewise.
2401 * record-full.c (record_full_open): Likewise.
2402 * remote-notif.c (remote_notif_state_allocate): Likewise.
2403 * remote.c (remote_target::open_1): Likewise.
2404 * tui/tui-win.c (tui_initialize_win): Likewise.
2405
2406 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 * async-event.c (initialize_async_signal_handlers): Pass name to
2409 add_file_handler
2410 * event-top.c (ui_register_input_event_handler): Likewise.
2411 * linux-nat.c (linux_nat_target::async): Likewise.
2412 * run-on-main-thread.c (_initialize_run_on_main_thread):
2413 Likewise
2414 * ser-base.c (reschedule): Likewise.
2415 (ser_base_async): Likewise.
2416 * tui/tui-io.c: Likewise.
2417 * top.h (struct ui) <num>: New field.
2418 * top.c (highest_ui_num): New variable.
2419 (ui::ui): Initialize num.
2420
2421 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2422
2423 * observable.h <inferior_created>: Remove parameters. Update all
2424 listeners.
2425 * inferior.h (post_create_inferior): Remove target parameter.
2426 Update all callers.
2427
2428 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2429
2430 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2431 and DW_MACRO_undef_strx.
2432 (dwarf_decode_macros): Likewise
2433 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2434 which is the value of DW_AT_str_offsets_base.
2435 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2436 str_offsets_base.
2437
2438 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2439
2440 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2441
2442 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2443
2444 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2445 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2446
2447 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2448
2449 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2450
2451 2020-09-30 Tom de Vries <tdevries@suse.de>
2452
2453 PR symtab/26683
2454 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2455
2456 2020-09-30 Tom Tromey <tromey@adacore.com>
2457
2458 * dwarf2/read.c (handle_variant): Use constant_value.
2459
2460 2020-09-29 Tom Tromey <tom@tromey.com>
2461
2462 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2463 (read_file_scope, dwarf2_get_pc_bounds)
2464 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2465 (read_structure_type, handle_struct_member_die)
2466 (read_enumeration_type, read_array_type, read_set_type)
2467 (read_tag_pointer_type, read_tag_reference_type)
2468 (read_subroutine_type, read_base_type, read_subrange_type)
2469 (read_full_die_1, partial_die_info::read)
2470 (partial_die_info::read, by, new_symbol)
2471 (dwarf2_const_value_data, dwarf2_const_value_attr)
2472 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2473 (prepare_one_comp_unit): Update.
2474 * dwarf2/attribute.h (DW_UNSND): Remove.
2475
2476 2020-09-29 Tom Tromey <tom@tromey.com>
2477
2478 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2479 (read_subroutine_type, partial_die_info::read)
2480 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2481 (dwarf2_add_member_fn): Update.
2482 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2483 * dwarf2/attribute.c (attribute::as_boolean): New method.
2484
2485 2020-09-29 Tom Tromey <tom@tromey.com>
2486
2487 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2488 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2489 method.
2490 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2491
2492 2020-09-29 Tom Tromey <tom@tromey.com>
2493
2494 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2495 the attribute's form.
2496
2497 2020-09-29 Tom Tromey <tom@tromey.com>
2498
2499 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2500 (dwarf2_add_member_fn): Update.
2501 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2502 * dwarf2/attribute.c (attribute::defaulted): New method, from
2503 is_valid_DW_AT_defaulted.
2504
2505 2020-09-29 Tom Tromey <tom@tromey.com>
2506
2507 * dwarf2/read.c (dw2_get_file_names_reader)
2508 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2509 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2510 (dwarf2_symbol_mark_computed): Use as_unsigned.
2511 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2512 method.
2513 <form_is_section_offset>: Update comment.
2514
2515 2020-09-29 Tom Tromey <tom@tromey.com>
2516
2517 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2518 dwarf2_default_access_attribute. Look up attribute.
2519 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2520 Update.
2521
2522 2020-09-29 Tom Tromey <tom@tromey.com>
2523
2524 * dwarf2/read.c (skip_one_die): Update.
2525 (read_full_die_1): Change how reprocessing is done.
2526 (partial_die_info::read): Update.
2527 (read_attribute_value): Remove need_reprocess parameter.
2528 (read_attribute): Likewise.
2529 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2530 New method.
2531
2532 2020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2535 (dwarf2_const_value_attr, dump_die_shallow)
2536 (dwarf2_fetch_constant_bytes): Update.
2537 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2538 comment.
2539 <set_address>: New method.
2540 (DW_ADDR): Remove.
2541 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2542 (attribute::as_string, attribute::as_address): Add assert.
2543
2544 2020-09-29 Tom Tromey <tom@tromey.com>
2545
2546 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2547 (read_attribute_reprocess, read_attribute_value): Update.
2548 (read_attribute): Clear requires_reprocessing.
2549 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2550 form_requires_reprocessing>: New methods.
2551 <string_init>: Clear requires_reprocessing.
2552 <set_unsigned_reprocess>: New method.
2553 <name>: Shrink by one bit.
2554 <requires_reprocessing>: New member.
2555 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2556 method.
2557
2558 2020-09-29 Tom Tromey <tom@tromey.com>
2559
2560 * dwarf2/read.c (read_attribute_value): Update.
2561 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2562 set_unsigned>: New methods.
2563 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2564
2565 2020-09-29 Tom Tromey <tom@tromey.com>
2566
2567 * dwarf2/read.c (get_alignment, read_array_order)
2568 (read_attribute_value, dwarf2_const_value_attr)
2569 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2570 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2571 New methods.
2572 (DW_SND): Remove.
2573
2574 2020-09-29 Tom Tromey <tom@tromey.com>
2575
2576 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2577 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2578 Update.
2579 * dwarf2/attribute.h (struct attribute) <as_signature,
2580 set_signature>: New methods.
2581 (DW_SIGNATURE): Remove.
2582
2583 2020-09-29 Tom Tromey <tom@tromey.com>
2584
2585 * dwarf2/read.c (read_call_site_scope)
2586 (handle_data_member_location, dwarf2_add_member_fn)
2587 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2588 (partial_die_info::read, read_attribute_value)
2589 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2590 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2591 (dwarf2_symbol_mark_computed): Update.
2592 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2593 methods.
2594 (DW_BLOCK): Remove.
2595 * dwarf2/attribute.c (attribute::form_is_block): Add
2596 DW_FORM_data16.
2597
2598 2020-09-29 Tom Tromey <tom@tromey.com>
2599
2600 * dwarf2/read.c (read_cutu_die_from_dwo)
2601 (read_attribute_reprocess, read_attribute_value, read_attribute)
2602 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2603 (dwarf2_fetch_constant_bytes): Update.
2604 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2605 <set_string_noncanonical, set_string_canonical>: New methods.
2606 <string_is_canonical>: Update comment.
2607 <canonical_string_p>: Add assert.
2608 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2609 * dwarf2/attribute.c (attribute::form_is_string): New method.
2610 (attribute::string): Use it.
2611
2612 2020-09-29 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2615 (dump_die_shallow): Use canonical_string_p.
2616 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2617 method.
2618
2619 2020-09-29 Tom Tromey <tom@tromey.com>
2620
2621 * dwarf2/read.c (partial_die_info::read)
2622 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2623 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2624 attribute::as_string.
2625
2626 2020-09-29 Tom Tromey <tom@tromey.com>
2627
2628 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2629 DW_ADDR.
2630 (attribute::string): Don't use DW_STRING.
2631 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2632 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2633
2634 2020-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2637 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2638 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2639 * dwarf2/attribute.h (struct attribute): Rename methods.
2640 * dwarf2/attribute.c (attribute::as_address): Rename from
2641 value_as_address.
2642 (attribute::as_string): Rename from value_as_string.
2643
2644 2020-09-29 Tom Tromey <tom@tromey.com>
2645
2646 * dwarf2/read.c (partial_die_info::read) <case
2647 DW_AT_linkage_name>: Use value_as_string.
2648 (dwarf2_string_attr): Use value_as_string.
2649 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2650 method.
2651 * dwarf2/attribute.c (attribute::value_as_string): New method.
2652
2653 2020-09-29 Pedro Alves <pedro@palves.net>
2654
2655 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2656 defined before using '#pragma GCC diagnostic' instead of checking
2657 __clang__.
2658
2659 2020-09-28 Tom Tromey <tom@tromey.com>
2660
2661 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2662 (handle_signal_stop): Update.
2663 * procfs.c (procfs_target::insert_watchpoint): Update.
2664 * target.h (target_have_steppable_watchpoint): Now a function.
2665
2666 2020-09-28 Tom Tromey <tom@tromey.com>
2667
2668 * infrun.c (set_schedlock_func): Update.
2669 * target.h (target_can_lock_scheduler): Now a function.
2670
2671 2020-09-28 Tom Tromey <tom@tromey.com>
2672
2673 * inferior.h (class inferior) <has_execution>: Update.
2674 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2675 * valops.c (find_function_in_inferior)
2676 (value_allocate_space_in_inferior): Update.
2677 * top.c (kill_or_detach): Update.
2678 * target.c (target_preopen, set_target_permissions): Update.
2679 (target_has_execution_current): Remove.
2680 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2681 Update.
2682 * solib.c (update_solib_list, reload_shared_libraries): Update.
2683 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2684 * solib-dsbt.c (enable_break): Update.
2685 * score-tdep.c (score7_fetch_inst): Update.
2686 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2687 Update.
2688 * remote.c (remote_target::start_remote)
2689 (remote_target::remote_check_symbols, remote_target::open_1)
2690 (remote_target::remote_detach_1, remote_target::verify_memory)
2691 (remote_target::xfer_partial, remote_target::read_description)
2692 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2693 * record-full.c (record_full_open_1): Update.
2694 * record-btrace.c (record_btrace_target_open): Update.
2695 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2696 (value_nsstring): Update.
2697 * linux-thread-db.c (add_thread_db_info)
2698 (thread_db_find_new_threads_silently, check_thread_db_callback)
2699 (try_thread_db_load_1, record_thread): Update.
2700 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2701 Update.
2702 * linux-fork.c (checkpoint_command): Update.
2703 * infrun.c (set_non_stop, set_observer_mode)
2704 (check_multi_target_resumption, for_each_just_stopped_thread)
2705 (maybe_remove_breakpoints, normal_stop)
2706 (class infcall_suspend_state): Update.
2707 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2708 (info_program_command, attach_command): Update.
2709 * infcall.c (call_function_by_hand_dummy): Update.
2710 * inf-loop.c (inferior_event_handler): Update.
2711 * gcore.c (gcore_command, derive_heap_segment): Update.
2712 * exec.c (exec_file_command): Update.
2713 * eval.c (evaluate_subexp): Update.
2714 * compile/compile.c (compile_to_object): Update.
2715 * cli/cli-dump.c (restore_command): Update.
2716 * breakpoint.c (update_watchpoint)
2717 (update_inserted_breakpoint_locations)
2718 (insert_breakpoint_locations, get_bpstat_thread): Update.
2719 * target.h (target_has_execution): Remove macro.
2720 (target_has_execution_current): Don't declare.
2721 (target_has_execution): Rename from target_has_execution_1. Add
2722 argument default.
2723
2724 2020-09-28 Tom Tromey <tom@tromey.com>
2725
2726 * mi/mi-main.c (exec_reverse_continue)
2727 (mi_cmd_list_target_features): Update.
2728 * infrun.c (set_exec_direction_func): Update.
2729 * target.c (default_execution_direction): Update.
2730 * reverse.c (exec_reverse_once): Update.
2731 * target.h (target_can_execute_reverse): Now a function.
2732
2733 2020-09-28 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-regs.c (tui_get_register)
2736 (tui_data_window::show_registers): Update.
2737 * thread.c (scoped_restore_current_thread::restore)
2738 (scoped_restore_current_thread::scoped_restore_current_thread):
2739 Update.
2740 * regcache-dump.c (regcache_print): Update.
2741 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2742 Update.
2743 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2744 * mep-tdep.c (current_me_module, current_options): Update.
2745 * linux-thread-db.c (thread_db_load): Update.
2746 * infcmd.c (registers_info, info_vector_command)
2747 (info_float_command): Update.
2748 * ia64-tdep.c (ia64_frame_prev_register)
2749 (ia64_sigtramp_frame_prev_register): Update.
2750 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2751 * gcore.c (derive_stack_segment): Update.
2752 * frame.c (get_current_frame, has_stack_frames): Update.
2753 * findvar.c (language_defn::read_var_value): Update.
2754 * arm-tdep.c (arm_pc_is_thumb): Update.
2755 * target.c (target_has_registers): Rename from
2756 target_has_registers_1.
2757 * target.h (target_has_registers): Remove macro.
2758 (target_has_registers): Rename from target_has_registers_1.
2759
2760 2020-09-28 Tom Tromey <tom@tromey.com>
2761
2762 * windows-tdep.c (tlb_make_value): Update.
2763 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2764 * thread.c (scoped_restore_current_thread::restore)
2765 (scoped_restore_current_thread::scoped_restore_current_thread)
2766 (thread_command): Update.
2767 * stack.c (backtrace_command_1, frame_apply_level_command)
2768 (frame_apply_all_command, frame_apply_command): Update.
2769 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2770 Update.
2771 * gcore.c (derive_stack_segment): Update.
2772 * frame.c (get_current_frame, has_stack_frames): Update.
2773 * auxv.c (info_auxv_command): Update.
2774 * ada-tasks.c (ada_build_task_list): Update.
2775 * target.c (target_has_stack): Rename from target_has_stack_1.
2776 * target.h (target_has_stack): Remove macro.
2777 (target_has_stack): Rename from target_has_stack_1.
2778
2779 2020-09-28 Tom Tromey <tom@tromey.com>
2780
2781 * target.c (target_has_memory): Rename from target_has_memory_1.
2782 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2783 * thread.c (scoped_restore_current_thread::restore)
2784 (scoped_restore_current_thread::scoped_restore_current_thread):
2785 Update.
2786 * frame.c (get_current_frame, has_stack_frames): Update.
2787 * target.h (target_has_memory): Remove macro.
2788 (target_has_memory): Rename from target_has_memory_1.
2789
2790 2020-09-28 Tom Tromey <tom@tromey.com>
2791
2792 * target.c (target_has_all_memory_1): Remove.
2793 * target.h (target_has_all_memory): Remove define.
2794 (target_has_all_memory_1): Don't declare.
2795
2796 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * ser-base.c: Adjust comments formatting.
2799
2800 2020-09-27 Tom Tromey <tom@tromey.com>
2801
2802 PR tui/25342:
2803 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2804
2805 2020-09-27 Tom Tromey <tom@tromey.com>
2806
2807 PR tui/25342:
2808 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2809
2810 2020-09-27 Tom Tromey <tom@tromey.com>
2811
2812 * unittests/tui-selftests.c: Update.
2813 * tui/tui-winsource.h (struct tui_source_window_base)
2814 <extra_margin, show_line_number, refresh_pad>: New methods.
2815 <m_max_length, m_pad>: New members.
2816 (tui_copy_source_line): Update.
2817 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2818 first_col, line_width, ndigits parameters. Add length.
2819 (tui_source_window_base::show_source_line): Write to pad. Line
2820 number now 0-based.
2821 (tui_source_window_base::refresh_pad): New method.
2822 (tui_source_window_base::show_source_content): Write to pad. Call
2823 refresh_pad.
2824 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2825 not refill.
2826 (tui_source_window_base::update_exec_info): Call
2827 show_line_number.
2828 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2829 method.
2830 <m_digits>: New member.
2831 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2832 and m_max_length.
2833 (tui_source_window::show_line_number): New method.
2834 * tui/tui-io.h (tui_puts): Fix comment.
2835 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2836 m_max_length.
2837
2838 2020-09-27 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-winsource.c
2841 (tui_source_window_base::set_is_exec_point_at): Don't call
2842 show_source_line.
2843
2844 2020-09-27 Tom Tromey <tom@tromey.com>
2845
2846 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2847 method.
2848 <erase>: Update.
2849 <cursor_x, cursor_y>: Remove.
2850 <m_inner_window>: New member.
2851 (tui_py_window::rerender): Create inner window.
2852 (tui_py_window::output): Write to inner window.
2853
2854 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2855
2856 PR python/26586
2857 * cli/cli-script.c (execute_control_commands): don't set
2858 instream to nullptr here as this breaks the from_tty argument
2859 to gdb.execute in Python.
2860 (execute_user_command): set instream to nullptr here instead.
2861
2862 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * infrun.h (infrun_debug_printf): Fix formatting.
2865 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2866
2867 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2868
2869 * compile/compile-object-load.h (struct munmap_list): Add
2870 explicitly-defined move constructor.
2871
2872 2020-09-24 Tom Tromey <tromey@adacore.com>
2873
2874 PR tui/26638:
2875 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2876 method.
2877 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2878 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2879 (tui_prev_win): Rewrite.
2880
2881 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2882
2883 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2884 in WOW64 processes as SIGINT.
2885 * nat/windows-nat.h: Make wow64_process a shared variable.
2886 * windows-nat.c: Remove static wow64_process variable.
2887
2888 2020-09-23 Tom Tromey <tom@tromey.com>
2889
2890 PR symtab/25470:
2891 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2892 offset and bit size.
2893 * printcmd.c (print_scalar_formatted): Handle zero-length
2894 integer.
2895 (print_scalar_formatted): Use bit_size_differs_p.
2896 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2897 constant.
2898 (union type_specific): <int_stuff>: New member.
2899 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2900 methods.
2901 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2902 TYPE_SPECIFIC_FIELD.
2903 (recursive_dump_type, copy_type_recursive): Update.
2904 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2905 DW_AT_data_bit_offset.
2906
2907 2020-09-23 Tom Tromey <tom@tromey.com>
2908
2909 * utils.h (class gdb_argv): Add move operators.
2910 <append>: New methods.
2911 * compile/compile.c (build_argc_argv): Remove.
2912 (compile_args_argc): Remove.
2913 (compile_args_argv): Change type.
2914 (set_compile_args): Simplify.
2915 (append_args): Remove.
2916 (filter_args): Remove argcp parameter.
2917 (get_args): Return gdb_argv. Simplify.
2918 (compile_to_object): Update.
2919
2920 2020-09-23 Tom Tromey <tom@tromey.com>
2921
2922 * compile/compile-object-run.c (do_module_cleanup)
2923 <~do_module_cleanup> :Remove.
2924 (do_module_cleanup): Update.
2925 * compile/compile-object-load.h (struct munmap_list): Add move
2926 assignment operator.
2927 <source_file>: Now a std::string.
2928 <munmap_list>: Rename. No longer a pointer.
2929 * compile/compile-object-load.c (struct setup_sections_data): Add
2930 constructor.
2931 <setup_one_section>: Declare.
2932 <munmap_list>: Move earlier.
2933 <m_bfd>: New member.
2934 <m_last_size, m_last_section_first, m_last_prot,
2935 m_last_max_alignment>: Rename, add initializers where needed.
2936 (setup_sections_data::setup_one_section): Rename from
2937 setup_sections. Update.
2938 (compile_object_load): Update. Don't use bfd_map_over_sections.
2939
2940 2020-09-23 Tom Tromey <tom@tromey.com>
2941
2942 * compile/compile-object-run.c (struct do_module_cleanup): Add
2943 parameters to constructor. Update destructor.
2944 <source_file, scope, scope_data, out_value_type, out_value_addr,
2945 munmap_list_head, objfile_name_string>: Remove.
2946 <module>: New member.
2947 (do_module_cleanup): Update.
2948 (compile_object_run): Update.
2949
2950 2020-09-23 Tom Tromey <tom@tromey.com>
2951
2952 * compile/compile.c (eval_compile_command): Update.
2953 * compile/compile-object-run.h (compile_object_run): Take a
2954 compile_module_up.
2955 * compile/compile-object-run.c (compile_object_run): Take a
2956 compile_module_up.
2957 * compile/compile-object-load.h (struct compile_module): Add
2958 constructor, destructor.
2959 (compile_module_up): New typedef.
2960 (compile_object_load): Return compile_object_up.
2961 * compile/compile-object-load.c (compile_object_load): Return
2962 compile_module_up.
2963
2964 2020-09-23 Tom Tromey <tom@tromey.com>
2965
2966 * compile/compile-object-run.c (struct do_module_cleanup): Add
2967 constructor, destructor.
2968 <objfile_name_string>: Don't use struct hack.
2969 (do_module_cleanup): Use delete.
2970 (compile_object_run): Use new.
2971
2972 2020-09-23 Tom Tromey <tom@tromey.com>
2973
2974 * compile/compile-cplus-types.c
2975 (compile_cplus_convert_struct_or_union): Use std::vector.
2976 (compile_cplus_convert_func): Likewise.
2977 * compile/compile-c-types.c (convert_func): Use std::vector.
2978
2979 2020-09-21 Tom Tromey <tromey@adacore.com>
2980
2981 * sparc-tdep.c (sparc32_skip_prologue): Use
2982 skip_prologue_using_sal.
2983
2984 2020-09-19 Tom Tromey <tom@tromey.com>
2985
2986 * symfile.c (add_section_size_callback): Remove.
2987 (load_one_section): Rename from load_section_callback. Change
2988 parameters.
2989 (generic_load): Use foreach.
2990
2991 2020-09-19 Tom Tromey <tom@tromey.com>
2992
2993 * exec.c (add_to_section_table): Remove.
2994 (build_section_table): Use foreach.
2995
2996 2020-09-19 Tom Tromey <tom@tromey.com>
2997
2998 * elfread.c (elf_locate_sections): Change parameters.
2999 (elf_symfile_read): Use foreach.
3000
3001 2020-09-19 Tom Tromey <tom@tromey.com>
3002
3003 * cli/cli-dump.c (struct callback_data): Remove.
3004 (restore_one_section): Rename from restore_section_callback.
3005 Change parameters.
3006 (restore_binary_file): Change parameters.
3007 (restore_command): Use foreach.
3008
3009 2020-09-19 Tom Tromey <tom@tromey.com>
3010
3011 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3012 (gcore_copy_callback): Likewise.
3013 (gcore_memory_sections): Use foreach.
3014
3015 2020-09-19 Tom Tromey <tom@tromey.com>
3016
3017 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3018 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3019 parameters.
3020 (generic_elf_osabi_sniffer): Use foreach.
3021 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3022 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3023
3024 2020-09-19 Tom Tromey <tom@tromey.com>
3025
3026 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3027 (dwarf2_get_dwz_file): Use foreach.
3028 (dwarf2_locate_dwo_sections): Change parameters.
3029 (open_and_init_dwo_file): Use foreach.
3030 (dwarf2_locate_common_dwp_sections): Change parameters.
3031 (open_and_init_dwp_file): Use foreach.
3032
3033 2020-09-19 Tom Tromey <tom@tromey.com>
3034
3035 * symfile.h: (find_lowest_section): Don't declare.
3036 * symfile.c (find_lowest_section): Now static. Change
3037 parameters.
3038 (struct place_section_arg): Remove.
3039 (place_section): Change parameters.
3040 (addr_info_make_relative): Use foreach.
3041 (symfile_dummy_outputs): Remove.
3042 (default_symfile_relocate): Use foreach.
3043
3044 2020-09-19 Tom Tromey <tom@tromey.com>
3045
3046 * objfiles.c (add_to_objfile_sections): Rename from
3047 add_to_objfile_sections_full.
3048 (add_to_objfile_sections): Remove.
3049 (build_objfile_section_table): Use foreach.
3050
3051 2020-09-19 Tom Tromey <tom@tromey.com>
3052
3053 * stap-probe.c (get_stap_base_address_1): Remove.
3054 (get_stap_base_address): Use foreach.
3055
3056 2020-09-19 Tom Tromey <tom@tromey.com>
3057
3058 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3059 parameters.
3060 (gdb_bfd_close_or_warn): Use foreach.
3061
3062 2020-09-19 Tom Tromey <tom@tromey.com>
3063
3064 * corelow.c (add_to_thread_list): Change parameters.
3065 (core_target_open): Use foreach.
3066
3067 2020-09-19 Tom Tromey <tom@tromey.com>
3068
3069 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3070 existing function.
3071
3072 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3075 for arrays.
3076
3077 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * eval.c: Remove 'f-lang.h' include.
3080 (value_f90_subarray): Moved to f-lang.c.
3081 (eval_call): Renamed to...
3082 (evaluate_subexp_do_call): ...this, is no longer static, header
3083 comment moved into header file.
3084 (evaluate_funcall): Update call to eval_call.
3085 (skip_undetermined_arglist): Moved to f-lang.c.
3086 (fortran_value_subarray): Likewise.
3087 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3088 moved to evaluate_subexp_f.
3089 (calc_f77_array_dims): Moved to f-lang.c
3090 * expprint.c (print_subexp_funcall): New function.
3091 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3092 moved to print_subexp_f, OP_FUNCALL uses new function.
3093 (dump_subexp_body_funcall): New function.
3094 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3095 moved to dump_subexp_f, OP_FUNCALL uses new function.
3096 * expression.h (evaluate_subexp_do_call): Declare.
3097 * f-lang.c (value_f90_subarray): Moved from eval.c.
3098 (skip_undetermined_arglist): Likewise.
3099 (calc_f77_array_dims): Likewise.
3100 (fortran_value_subarray): Likewise.
3101 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3102 (operator_length_f): Likewise.
3103 (print_subexp_f): Likewise.
3104 (dump_subexp_body_f): Likewise.
3105 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3106 declaration of this operation to here.
3107 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3108 support moved to operator_length_f.
3109 * parser-defs.h (dump_subexp_body_funcall): Declare.
3110 (print_subexp_funcall): Declare.
3111 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3112 fortran-operator.def.
3113
3114 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * eval.c (fortran_value_subarray): New function, content is taken
3117 from...
3118 (evaluate_subexp_standard): ...here, in two places. Now arrays
3119 and strings both call the new function.
3120 (calc_f77_array_dims): Add header comment, handle strings.
3121
3122 2020-09-18 Victor Collod <vcollod@nvidia.com>
3123
3124 PR gdb/26635
3125 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3126 (i386_analyze_prologue): Call i386_skip_endbr.
3127
3128 2020-09-18 Tom Tromey <tromey@adacore.com>
3129
3130 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3131 (windows_nat_target::wait): Update.
3132 * target/wait.h (enum target_wait_flag): New. Use
3133 DEF_ENUM_FLAGS_TYPE.
3134 * target/target.h (target_wait): Change type of options.
3135 * target.h (target_options_to_string, default_target_wait):
3136 Update.
3137 (struct target_ops) <wait>: Change type of options.
3138 * target.c (target_wait, default_target_wait, do_option): Change
3139 type of "options".
3140 (target_options_to_string): Likewise.
3141 * target-delegates.c: Rebuild.
3142 * target-debug.h (target_debug_print_target_wait_flags): Rename
3143 from target_debug_print_options.
3144 * sol-thread.c (class sol_thread_target) <wait>: Update.
3145 (sol_thread_target::wait): Update.
3146 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3147 (rs6000_nat_target::wait): Update.
3148 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3149 Update.
3150 (remote_target::wait_ns, remote_target::wait_as): Change type of
3151 "options".
3152 (remote_target::wait): Update.
3153 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3154 (gdbsim_target::wait): Update.
3155 * record-full.c (class record_full_base_target) <wait>: Update.
3156 (record_full_wait_1): Change type of "options".
3157 (record_full_base_target::wait): Update.
3158 * record-btrace.c (class record_btrace_target) <wait>: Update.
3159 (record_btrace_target::wait): Update.
3160 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3161 Update.
3162 (ravenscar_thread_target::wait): Update.
3163 * procfs.c (class procfs_target) <wait>: Update.
3164 (procfs_target::wait): Update.
3165 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3166 * obsd-nat.c (obsd_nat_target::wait): Update.
3167 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3168 (nto_procfs_target::wait): Update.
3169 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3170 * nbsd-nat.c (nbsd_wait): Change type of "options".
3171 (nbsd_nat_target::wait): Update.
3172 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3173 (thread_db_target::wait): Update.
3174 * linux-nat.h (class linux_nat_target) <wait>: Update.
3175 * linux-nat.c (linux_nat_target::wait): Update.
3176 (linux_nat_wait_1): Update.
3177 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3178 "options".
3179 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3180 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3181 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3182 (go32_nat_target::wait): Update.
3183 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3184 * gnu-nat.c (gnu_nat_target::wait): Update.
3185 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3186 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3187 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3188 * darwin-nat.c (darwin_nat_target::wait): Update.
3189 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3190 (bsd_uthread_target::wait): Update.
3191 * aix-thread.c (class aix_thread_target) <wait>: Update.
3192 (aix_thread_target::wait): Update.
3193
3194 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * compile/compile-object-run.c (create_copied_type_recursive): New
3197 function.
3198 (compile_object_run): Use new function.
3199
3200 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3201
3202 * NEWS: Mention x86_64 Cygwin core file support.
3203
3204 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3205
3206 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3207 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3208
3209 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3210
3211 * windows-tdep.h: Add prototypes.
3212 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3213 (i386_windows_core_pid_to_str): Move and rename ...
3214 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3215 (windows_core_pid_to_str): ... and here.
3216 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3217
3218 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3219 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3220 (amd64_windows_init_abi_common): ... and register.
3221
3222 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3223
3224 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3225 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3226
3227 2020-09-18 Pedro Alves <pedro@palves.net>
3228
3229 PR gdb/26631
3230 * thread.c (thread_find_command): Switch inferior before calling
3231 target methods.
3232
3233 2020-09-17 Tom Tromey <tromey@adacore.com>
3234
3235 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3236 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3237 (tdesc_arch_data_up): New typedef.
3238 (tdesc_use_registers, tdesc_data_alloc): Update.
3239 (tdesc_data_cleanup): Don't declare.
3240 * target-descriptions.c (tdesc_data_alloc): Return a
3241 tdesc_arch_data_up.
3242 (tdesc_arch_data_deleter::operator()): Rename from
3243 tdesc_data_cleanup. Change argument type.
3244 (tdesc_use_registers): Change early_data to an rvalue reference.
3245 (tdesc_use_registers): Don't use delete.
3246 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3247 * s390-tdep.c (s390_gdbarch_init): Update.
3248 * rx-tdep.c (rx_gdbarch_init): Update.
3249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3250 * riscv-tdep.c (riscv_gdbarch_init): Update.
3251 * or1k-tdep.c (or1k_gdbarch_init): Update.
3252 * nios2-tdep.c (nios2_gdbarch_init): Update.
3253 * nds32-tdep.c (nds32_gdbarch_init): Update.
3254 * mips-tdep.c (mips_gdbarch_init): Update.
3255 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3256 * m68k-tdep.c (m68k_gdbarch_init): Update.
3257 * i386-tdep.c (i386_gdbarch_init): Update.
3258 * arm-tdep.c (arm_gdbarch_init): Update.
3259 * arc-tdep.c (arc_tdesc_init): Update.
3260 (arc_gdbarch_init): Update.
3261 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3262
3263 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3264
3265 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3266 for WOW64 processes.
3267
3268 2020-09-17 Tom Tromey <tom@tromey.com>
3269
3270 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3271
3272 2020-09-17 Tom Tromey <tom@tromey.com>
3273
3274 * value.c (preserve_values): Update.
3275 * python/py-type.c (save_objfile_types): Update.
3276 * guile/scm-type.c (save_objfile_types): Update.
3277 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3278 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3279 * compile/compile-object-run.c (compile_object_run): Update.
3280
3281 2020-09-17 Tom Tromey <tom@tromey.com>
3282
3283 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3284 Remove.
3285 <m_table>: Now htab_up.
3286 * typeprint.c (typedef_hash_table::recursively_update)
3287 (typedef_hash_table::add_template_parameters)
3288 (typedef_hash_table::typedef_hash_table): Update.
3289 (typedef_hash_table::~typedef_hash_table): Remove.
3290 (typedef_hash_table::typedef_hash_table)
3291 (typedef_hash_table::find_global_typedef)
3292 (typedef_hash_table::find_typedef): Update.
3293
3294 2020-09-17 Tom Tromey <tom@tromey.com>
3295
3296 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3297
3298 2020-09-17 Tom Tromey <tom@tromey.com>
3299
3300 * linespec.c (class decode_compound_collector)
3301 <~decode_compound_collector>: Remove.
3302 <m_unique_syms>: Now htab_up.
3303 (decode_compound_collector::operator ()): Update.
3304 (class symtab_collector) <~symtab_collector>: Remove.
3305 <m_symtab_table>: Now htab_up.
3306 (symtab_collector::operator ()): Update.
3307
3308 2020-09-17 Tom Tromey <tom@tromey.com>
3309
3310 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3311 (filename_seen_cache::clear): Update.
3312 (~filename_seen_cache): Remove.
3313 (filename_seen_cache::seen): Update.
3314 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3315 htab_up.
3316 <~filename_seen_cache>: Remove.
3317 <traverse>: Update.
3318
3319 2020-09-17 Tom Tromey <tom@tromey.com>
3320
3321 * completer.c (completion_tracker::discard_completions)
3322 (completion_tracker::~completion_tracker)
3323 (completion_tracker::maybe_add_completion)
3324 (completion_tracker::remove_completion)
3325 (completion_tracker::recompute_lowest_common_denominator)
3326 (completion_tracker::build_completion_result): Update.
3327 * completer.h (class completion_tracker) <have_completions>:
3328 Update.
3329 <m_entries_hash>: Now htab_up.
3330
3331 2020-09-17 Tom Tromey <tom@tromey.com>
3332
3333 * breakpoint.c (ambiguous_names_p): Use htab_up.
3334
3335 2020-09-17 Tom Tromey <tom@tromey.com>
3336
3337 * auto-load.c (struct auto_load_pspace_info)
3338 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3339 <loaded_script_files, loaded_script_texts>: Change type to
3340 htab_up.
3341 (~auto_load_pspace_info) Remove.
3342 (init_loaded_scripts_info, maybe_add_script_file)
3343 (maybe_add_script_text, auto_load_info_scripts): Update.
3344
3345 2020-09-17 Tom Tromey <tromey@adacore.com>
3346
3347 * c-exp.y (name_obstack): Now static.
3348
3349 2020-09-17 Chungyi Chi <demonic@csie.io>
3350
3351 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3352
3353 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3356 (add_solib_catchpoint): Likewise.
3357 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3358 to bool.
3359 (add_solib_catchpoint): Change int parameter/variable to bool.
3360 (catch_load_or_unload): Likewise.
3361 (init_catchpoint): Likewise.
3362 (create_fork_vfork_event_catchpoint): Likewise.
3363 (catch_fork_command_1): Likewise.
3364 (catch_exec_command_1): Likewise.
3365
3366 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3369 Change instance_flags to m_instance_flags.
3370
3371 2020-09-16 Tom Tromey <tromey@adacore.com>
3372
3373 PR gdb/26598:
3374 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3375
3376 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3377
3378 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3379 PL_FLAG_EXEC.
3380 (fbsd_nat_target::insert_exec_catchpoint)
3381 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3382 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3383 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3384
3385 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3386
3387 * configure.ac: Remove check for kinfo_getvmmap().
3388 * configure, config.in: Regenerate.
3389 * fbsd-nat.c (fbsd_read_mapping): Remove
3390 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3391 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3392 kinfo_get_vmmap() are always present.
3393
3394 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3395
3396 * fbsd-nat.c: Always include support for
3397 TARGET_OBJECT_SIGNAL_INFO.
3398
3399 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3400
3401 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3402 sysctl and remove procfs fallback.
3403
3404 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3405
3406 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3407 * fbsd-nat.h: Likewise.
3408
3409 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3410
3411 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3412 argument.
3413
3414 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * ada-lang.c (ada_language_data): Delete.
3417 (ada_language): Remove references to ada_language_data.
3418 * c-lang.c (c_language_data): Delete.
3419 (c_language): Remove references to c_language_data.
3420 (cplus_language_data): Delete.
3421 (cplus_language): Remove references to cplus_language_data.
3422 (asm_language_data): Delete.
3423 (asm_language): Remove references to asm_language_data.
3424 (minimal_language_data): Delete.
3425 (minimal_language): Remove references to minimal_language_data.
3426 * d-lang.c (d_language_data): Delete.
3427 (d_language): Remove references to d_language_data.
3428 * f-lang.c (f_language_data): Delete.
3429 (f_language): Remove references to f_language_data.
3430 * go-lang.c (go_language_data): Delete.
3431 (go_language): Remove references to go_language_data.
3432 * language.c (unknown_language_data): Delete.
3433 (unknown_language): Remove references to unknown_language_data.
3434 (auto_language_data): Delete.
3435 (auto_language): Remove references to auto_language_data.
3436 * language.h (language_data): Delete struct.
3437 (language_defn): No longer inherit from language_data.
3438 * m2-lang.c (m2_language_data): Delete.
3439 (m2_language): Remove references to m2_language_data.
3440 * objc-lang.c (objc_language_data): Delete.
3441 (objc_language): Remove references to objc_language_data.
3442 * opencl-lang.c (opencl_language_data): Delete.
3443 (opencl_language): Remove references to opencl_language_data.
3444 * p-lang.c (pascal_language_data): Delete.
3445 (pascal_language): Remove references to pascal_language_data.
3446 * rust-lang.c (rust_language_data): Delete.
3447 (rust_language): Remove references to rust_language_data.
3448
3449 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3452 initializer.
3453 (ada_language::opcode_print_table): New member function.
3454 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3455 (c_language::opcode_print_table): New member function.
3456 (cplus_language_data): Remove la_op_print_tab initializer.
3457 (cplus_language::opcode_print_table): New member function.
3458 (asm_language_data): Remove la_op_print_tab initializer.
3459 (asm_language::opcode_print_table): New member function.
3460 (minimal_language_data): Remove la_op_print_tab initializer.
3461 (minimal_language::opcode_print_table): New member function.
3462 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3463 (d_language::opcode_print_table): New member function.
3464 * expprint.c (print_subexp_standard): Update call to
3465 opcode_print_table.
3466 (op_string): Likewise.
3467 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3468 (f_language::opcode_print_table): New member function.
3469 * go-lang.c (go_language_data): Remove la_op_print_tab
3470 initializer.
3471 (go_language::opcode_print_table): New member function.
3472 * language.c (unknown_language_data): Remove la_op_print_tab
3473 initializer.
3474 (unknown_language::opcode_print_table): New member function.
3475 (auto_language_data): Remove la_op_print_tab initializer.
3476 (auto_language::opcode_print_table): New member function.
3477 * language.h (language_data): Remove la_op_print_tab field.
3478 (language_defn::opcode_print_table): Declare new member function.
3479 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3480 initializer.
3481 (m2_language::opcode_print_table): New member function.
3482 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3483 initializer.
3484 (objc_language::opcode_print_table): New member function.
3485 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3486 initializer.
3487 (opencl_language::opcode_print_table): New member function.
3488 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3489 initializer.
3490 (pascal_language::opcode_print_table): New member function.
3491 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3492 initializer.
3493 (rust_language::opcode_print_table): New member function.
3494
3495 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3498 (ada_language::expression_ops): New member function.
3499 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3500 (c_language::expression_ops): New member function.
3501 (cplus_language_data): Remove la_exp_desc initializer.
3502 (cplus_language::expression_ops): New member function.
3503 (asm_language_data): Remove la_exp_desc initializer.
3504 (asm_language::expression_ops): New member function.
3505 (minimal_language_data): Remove la_exp_desc initializer.
3506 (minimal_language::expression_ops): New member function.
3507 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3508 (d_language::expression_ops): New member function.
3509 * eval.c (evaluate_subexp): Update call to expression_ops.
3510 * expprint.c (print_subexp): Likewise.
3511 (op_name): Likewise.
3512 (dump_subexp_body): Likewise.
3513 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3514 (f_language::expression_ops): New member function.
3515 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3516 (go_language::expression_ops): New member function.
3517 * language.c (language_defn::expression_ops): New function.
3518 (unknown_language_data): Remove la_exp_desc initializer.
3519 (auto_language_data): Likewise.
3520 * language.h (language_data): Remove la_exp_desc field.
3521 (language_defn::expression_ops): Declare new member function.
3522 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3523 (m2_language::expression_ops): New member function.
3524 * objc-lang.c (objc_language_data): Remove la_exp_desc
3525 initializer.
3526 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3527 initializer.
3528 (opencl_language::expression_ops): New member function.
3529 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3530 * parse.c (operator_length): Update call to expression_ops.
3531 (exp_iterate): Likewise.
3532 * rust-lang.c (rust_language_data): Remove la_exp_desc
3533 initializer.
3534 (ruse_language::expression_ops): New member function.
3535
3536 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3539 initializer.
3540 (ada_language::varobj_ops): New member function.
3541 * c-lang.c (c_language_data): Remove la_varobj_ops
3542 initializer.
3543 (cplus_language_data): Likewise.
3544 (cplus_language::varobj_ops): New member function.
3545 (asm_language_data): Remove la_varobj_ops initializer.
3546 (minimal_language_data): Likewise.
3547 * d-lang.c (d_language_data): Likewise.
3548 * f-lang.c (f_language_data): Likewise.
3549 * go-lang.c (go_language_data): Likewise.
3550 * language.c (language_defn::varobj_ops): New function.
3551 (unknown_language_data): Remove la_varobj_ops
3552 initializer.
3553 (auto_language_data): Likewise.
3554 * language.h (language_data): Remove la_varobj_ops field.
3555 (language_defn::varobj_ops): Declare new member function.
3556 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3557 * objc-lang.c (objc_language_data): Likewise.
3558 * opencl-lang.c (opencl_language_data): Likewise.
3559 * p-lang.c (pascal_language_data): Likewise.
3560 * rust-lang.c (rust_language_data): Likewise.
3561 * varobj.c (varobj_create): Update call to varobj_ops.
3562 * varobj.h (default_varobj_ops): Delete define.
3563
3564 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3567 initializer.
3568 * c-lang.c (c_language_data): Likewise.
3569 (c_language::macro_expansion): New member function.
3570 (cplus_language_data): Likewise.
3571 (cplus_language::macro_expansion): New member function.
3572 (asm_language_data): Likewise.
3573 (asm_language::macro_expansion): New member function.
3574 (minimal_language_data): Likewise.
3575 (minimal_language::macro_expansion): New member function.
3576 * d-lang.c (d_language_data): Remove la_macro_expansion
3577 initializer.
3578 * f-lang.c (f_language_data): Likewise.
3579 * go-lang.c (go_language_data): Likewise.
3580 * language.c (unknown_language_data): Likewise.
3581 (auto_language_data): Likewise.
3582 * language.h (language_data): Remove la_macro_expansion field.
3583 (language_defn::macro_expansion): New member function.
3584 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3585 initializer.
3586 * objc-lang.c (objc_language_data): Likewise.
3587 (objc_language::macro_expansion): New member function.
3588 * opencl-lang.c (opencl_language_data): Likewise.
3589 (opencl_language::macro_expansion): New member function.
3590 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3591 initializer.
3592 * rust-lang.c (rust_language_data): Likewise.
3593 * symtab.c (default_collect_symbol_completion_matches_break_on):
3594 Update call to macro_expansion.
3595
3596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * ada-lang.c (ada_language_data): Remove la_array_ordering
3599 initializer.
3600 * c-lang.c (c_language_data): Likewise.
3601 (cplus_language_data): Likewise.
3602 (asm_language_data): Likewise.
3603 (minimal_language_data): Likewise.
3604 * d-lang.c (d_language_data): Likewise.
3605 * dwarf2/read.c (read_array_order): Update for call to
3606 array_ordering.
3607 * f-lang.c (f_language_data): Remove la_array_ordering
3608 initializer.
3609 (f_language::array_ordering): New member function.
3610 * go-lang.c (go_language_data): Remove la_array_ordering
3611 initializer.
3612 * language.c (unknown_language_data): Likewise.
3613 (auto_language_data): Likewise.
3614 * language.h (language_data): Delete la_array_ordering field.
3615 (language_defn::array_ordering): New member function.
3616 * m2-lang.c (m2_language_data): Remove la_array_ordering
3617 initializer.
3618 * objc-lang.c (objc_language_data): Likewise.
3619 * opencl-lang.c (opencl_language_data): Likewise.
3620 * p-lang.c (pascal_language_data): Likewise.
3621 * rust-lang.c (rust_language_data): Likewise.
3622
3623 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3626 initializer.
3627 * c-lang.c (c_language_data): Likewise.
3628 (cplus_language_data): Likewise.
3629 (asm_language_data): Likewise.
3630 (minimal_language_data): Likewise.
3631 * d-lang.c (d_language_data): Likewise.
3632 * f-lang.c (f_language_data): Likewise.
3633 (f_language::case_sensitivity): New member function.
3634 * go-lang.c (go_language_data): Remove la_case_sensitivity
3635 initializer.
3636 * language.c (enum case_mode): Moved here from language.h.
3637 (case_mode): Make static.
3638 (show_case_command): Update for case_sensitivity being a method.
3639 (set_case_command): Likewise.
3640 (set_range_case): Likewise.
3641 (unknown_language_data): Remove la_case_sensitivity initializer.
3642 (auto_language_data): Likewise.
3643 * language.h (case_mode): Delete, move enum declaration to
3644 language.c.
3645 (language_data): Delete la_case_sensitivity field.
3646 (language_defn::case_sensitivity): New member function.
3647 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3648 initializer.
3649 * objc-lang.c (objc_language_data): Likewise.
3650 * opencl-lang.c (opencl_language_data): Likewise.
3651 * p-lang.c (pascal_language_data): Likewise.
3652 * rust-lang.c (rust_language_data): Likewise.
3653
3654 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (ada_language_data): Remove la_range_check
3657 initializer.
3658 * c-lang.c (c_language_data): Likewise.
3659 (cplus_language_data): Likewise.
3660 (asm_language_data): Likewise.
3661 (minimal_language_data): Likewise.
3662 * d-lang.c (d_language_data): Likewise.
3663 * f-lang.c (f_language_data): Likewise.
3664 (f_language::range_checking_on_by_default): New member function.
3665 * go-lang.c (go_language_data): Remove la_range_check initializer.
3666 * language.c (enum range_mode): Moved here from language.h.
3667 (range_mode): Made static.
3668 (show_range_command): Update to use
3669 range_checking_on_by_default.
3670 (set_range_command): Likewise.
3671 (set_range_case): Likewise.
3672 (unknown_language_data): Remove la_range_check initializer.
3673 (auto_language_data): Likewise.
3674 * language.h (range_mode): Delete. Enum definition moved to
3675 language.c.
3676 (language_data): Remove la_range_check field.
3677 (language_defn::range_checking_on_by_default): New member
3678 function.
3679 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3680 (m2_language::range_checking_on_by_default): New member function.
3681 * objc-lang.c (objc_language_data): Remove la_range_check
3682 initializer.
3683 * opencl-lang.c (opencl_language_data): Likewise.
3684 * p-lang.c (pascal_language_data): Likewise.
3685 (pascal_language::range_checking_on_by_default): New member
3686 function.
3687 * rust-lang.c (rust_language_data): Remove la_range_check
3688 initializer.
3689 (rust_language::range_checking_on_by_default): New member
3690 function.
3691
3692 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3693
3694 * dwarf2/read.c (dwarf2_physname): Remove special case for
3695 language_go.
3696 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3697 member function.
3698
3699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * ada-lang.c (ada_language_data): Remove
3702 la_store_sym_names_in_linkage_form_p initializer.
3703 (ada_language::store_sym_names_in_linkage_form_p): New member
3704 function.
3705 * c-lang.c (c_language_data): Remove
3706 la_store_sym_names_in_linkage_form_p initializer.
3707 (c_language::store_sym_names_in_linkage_form_p): New member
3708 function.
3709 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3710 initializer.
3711 (asm_language_data): Likewise.
3712 (asm_language::store_sym_names_in_linkage_form_p): New member
3713 function.
3714 (minimal_language_data): Remove
3715 la_store_sym_names_in_linkage_form_p initializer.
3716 (minimal_language::store_sym_names_in_linkage_form_p): New member
3717 function.
3718 * d-lang.c (d_language_data): Remove
3719 la_store_sym_names_in_linkage_form_p initializer.
3720 * dwarf2/read.c (dwarf2_physname): Update call to
3721 store_sym_names_in_linkage_form_p.
3722 * f-lang.c (f_language_data): Remove
3723 la_store_sym_names_in_linkage_form_p initializer.
3724 * go-lang.c (go_language_data): Remove
3725 la_store_sym_names_in_linkage_form_p initializer.
3726 * language.c (unknown_language_data): Remove
3727 la_store_sym_names_in_linkage_form_p initializer.
3728 (unknown_language::store_sym_names_in_linkage_form_p): New member
3729 function.
3730 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3731 initializer.
3732 (auto_language::store_sym_names_in_linkage_form_p): New member
3733 function.
3734 * language.h (language_data): Remove
3735 la_store_sym_names_in_linkage_form_p member variable.
3736 (language_defn::store_sym_names_in_linkage_form_p): New member
3737 function.
3738 * m2-lang.c (m2_language_data): Remove
3739 la_store_sym_names_in_linkage_form_p initializer.
3740 * objc-lang.c (objc_language_data): Likewise.
3741 * opencl-lang.c (opencl_language_data): Likewise.
3742 * p-lang.c (pascal_language_data): Likewise.
3743 * rust-lang.c (rust_language_data): Likewise.
3744
3745 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3746
3747 * ada-lang.c (ada_language_data): Remove string_lower_bound
3748 initializer.
3749 * c-lang.c (c_language_data): Likewise.
3750 (cplus_language_data): Likewise.
3751 (asm_language_data): Likewise.
3752 (minimal_language_data): Likewise.
3753 * d-lang.c (d_language_data): Likewise.
3754 * f-lang.c (f_language_data): Likewise.
3755 * go-lang.c (go_language_data): Likewise.
3756 * language.c (unknown_language_data): Likewise.
3757 (auto_language_data): Likewise.
3758 * language.h (language_data): Remove string_lower_bound field.
3759 (language_defn::string_lower_bound): New member function.
3760 * m2-lang.c (m2_language_data): Remove string_lower_bound
3761 initializer.
3762 (m2_language::string_lower_bound): New member function.
3763 * objc-lang.c (objc_language_data): Remove string_lower_bound
3764 initializer.
3765 * opencl-lang.c (opencl_language_data): Likewise.
3766 * p-lang.c (pascal_language_data): Likewise.
3767 * rust-lang.c (rust_language_data): Likewise.
3768 * valops.c (value_cstring): Update call to string_lower_bound.
3769 (value_string): Likewise.
3770 * value.c (allocate_repeated_value): Likewise.
3771
3772 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * valops.c (value_repeat): Fix incorrect argument name in comment.
3775
3776 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_language_data): Remove c_style_arrays
3779 initializer.
3780 (ada_language::c_style_arrays_p): New member fuction.
3781 * c-lang.c (c_language_data): Remove c_style_arrays
3782 initializer.
3783 (cplus_language_data): Likewise.
3784 (asm_language_data): Likewise.
3785 (minimal_language_data): Likewise.
3786 * d-lang.c (d_language_data): Likewise.
3787 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3788 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3789 (f_language::c_style_arrays_p): New member function.
3790 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3791 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3792 * language.c (unknown_language_data): Remove c_style_arrays
3793 initializer.
3794 (auto_language_data): Likewise.
3795 * language.h (language_data): Remove c_style_arrays field.
3796 (language_defn::c_style_arrays_p): New member function.
3797 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3798 (m2_language::c_style_arrays_p): New member function.
3799 * objc-lang.c (objc_language_data): Remove c_style_arrays
3800 initializer.
3801 * opencl-lang.c (opencl_language_data): Likewise.
3802 * p-lang.c (pascal_language_data): Likewise.
3803 * rust-lang.c (rust_language_data): Likewise.
3804 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3805 and update local variable to a bool.
3806 * valops.c (value_cast): Update call to c_style_arrays_p.
3807 (value_array): Likewise.
3808 * value.c (coerce_array): Likewise.
3809
3810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * ada-lang.c (ada_language_data): Remove la_language initializer.
3813 * c-lang.c (c_language_data): Likewise.
3814 (cplus_language_data): Likewise.
3815 (asm_language_data): Likewise.
3816 (minimal_language_data): Likewise.
3817 * d-lang.c (d_language_data): Likewise.
3818 * f-lang.c (f_language_data): Likewise.
3819 * go-lang.c (go_language_data): Likewise.
3820 * language.c (unknown_language_data): Likewise.
3821 (auto_language_data): Likewise.
3822 * language.h (language_data): Remove la_language field.
3823 (language_defn::language_defn): Initialise la_language field.
3824 (language_defn::la_language): New member variable.
3825 * m2-lang.c (m2_language_data): Remove la_language field.
3826 * objc-lang.c (objc_language_data): Likewise.
3827 * opencl-lang.c (opencl_language_data): Likewise.
3828 * p-lang.c (pascal_language_data): Likewise.
3829 * rust-lang.c (rust_language_data): Likewise.
3830
3831 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * ada-lang.c (ada_extensions): Delete, moved into
3834 ada_language::filename_extensions.
3835 (ada_language_data): Remove la_filename_extensions initializer.
3836 (ada_language::filename_extensions): New member function.
3837 * c-lang.c (c_extensions): Delete, moved into
3838 c_language::filename_extensions.
3839 (c_language_data): Remove la_filename_extensions initializer.
3840 (c_language::filename_extensions): New member function.
3841 (cplus_extensions): Delete, moved into
3842 cplus_language::filename_extensions.
3843 (cplus_language_data): Remove la_filename_extensions initializer.
3844 (cplus_language::filename_extensions): New member function.
3845 (asm_extensions): Delete, moved into
3846 asm_language::filename_extensions.
3847 (asm_language_data): Remove la_filename_extensions initializer.
3848 (asm_language::filename_extensions): New member function.
3849 (minimal_language_data): Remove la_filename_extensions
3850 initializer.
3851 * d-lang.c (d_extensions): Delete, moved into
3852 d_language::filename_extensions.
3853 (d_language_data): Remove la_filename_extensions initializer.
3854 (d_language::filename_extensions): New member function.
3855 * f-lang.c (f_extensions): Delete, moved into
3856 f_language::filename_extensions.
3857 (f_language_data): Remove la_filename_extensions initializer.
3858 (f_language::filename_extensions): New member function.
3859 * go-lang.c (go_language_data): Remove la_filename_extensions
3860 initializer.
3861 * language.c (add_set_language_command): Update now that
3862 filename_extensions returns a vector.
3863 (unknown_language_data): Remove la_filename_extensions
3864 initializer.
3865 (auto_language_data): Likewise.
3866 * language.h (language_data): Remove la_filename_extensions field.
3867 (language_defn::filename_extensions): New member function.
3868 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3869 initializer.
3870 * objc-lang.c (objc_extensions): Delete, moved into
3871 objc_language::filename_extensions.
3872 (objc_language_data): Remove la_filename_extensions initializer.
3873 (objc_language::filename_extensions): New member function.
3874 * opencl-lang.c (opencl_language_data): Remove
3875 la_filename_extensions initializer.
3876 * p-lang.c (pascal_extensions): Delete, moved into
3877 pascal_language::filename_extensions.
3878 (pascal_language_data): Remove la_filename_extensions initializer.
3879 (pascal_language::filename_extensions): New member function.
3880 * rust-lang.c (rust_extensions): Delete, moved into
3881 rust_language::filename_extensions.
3882 (rust_language_data): Remove la_filename_extensions initializer.
3883 (rust_language::filename_extensions): New member function.
3884 * symfile.c (add_filename_language): Add new assert.
3885
3886 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3887
3888 * ada-lang.c (ada_language_data): Remove la_name and
3889 la_natural_name initializers.
3890 (ada_language::name): New member function.
3891 (ada_language::natural_name): New member function.
3892 * c-lang.c (c_language_data): Remove la_name and
3893 la_natural_name initializers.
3894 (c_language::name): New member function.
3895 (c_language::natural_name): New member function.
3896 (cplus_language_data): Remove la_name and
3897 la_natural_name initializers.
3898 (cplus_language::name): New member function.
3899 (cplus_language::natural_name): New member function.
3900 (asm_language_data): Remove la_name and
3901 la_natural_name initializers.
3902 (asm_language::name): New member function.
3903 (asm_language::natural_name): New member function.
3904 (minimal_language_data): Remove la_name and
3905 la_natural_name initializers.
3906 (minimal_language::name): New member function.
3907 (minimal_language::natural_name): New member function.
3908 * compile/compile.c (compile_to_object): Update call to
3909 lanugage_defn::name.
3910 * d-lang.c (d_language_data): Remove la_name and
3911 la_natural_name initializers.
3912 (d_language::name): New member function.
3913 (d_language::natural_name): New member function.
3914 * expprint.c (print_subexp_standard): Update call to
3915 language_defn::name.
3916 (dump_raw_expression): Likewise
3917 (dump_prefix_expression): Likewise.
3918 * f-lang.c (f_language_data): Remove la_name and
3919 la_natural_name initializers.
3920 (f_language::name): New member function.
3921 (f_language::natural_name): New member function.
3922 * go-lang.c (go_language_data): Remove la_name and
3923 la_natural_name initializers.
3924 (go_language::name): New member function.
3925 (go_language::natural_name): New member function.
3926 * language.c (show_language_command): Update call to
3927 language_defn::name.
3928 (set_language_command): Likewise.
3929 (language_enum): Likewise.
3930 (language_str): Likewise.
3931 (add_set_language_command): Likewise, use
3932 language_defn::natural_name in the doc string.
3933 (unknown_language_data): Remove la_name and
3934 la_natural_name initializers.
3935 (unknown_language::name): New member function.
3936 (unknown_language::natural_name): New member function.
3937 (auto_language_data): Remove la_name and
3938 la_natural_name initializers.
3939 (auto_language::name): New member function.
3940 (auto_language::natural_name): New member function.
3941 (language_lookup_primitive_type_as_symbol): Update call to
3942 language_defn::name.
3943 * language.h (language_data): Remove la_name and la_natural_name
3944 member variables.
3945 (language_defn::name): New member function.
3946 (language_defn::natural_name): New member function.
3947 * m2-lang.c (m2_language_data): Remove la_name and
3948 la_natural_name initializers.
3949 (m2_language::name): New member function.
3950 (m2_language::natural_name): New member function.
3951 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3952 language_defn::natural_name.
3953 * objc-lang.c (objc_language_data): Remove la_name and
3954 la_natural_name initializers.
3955 (objc_language::name): New member function.
3956 (objc_language::natural_name): New member function.
3957 * opencl-lang.c (opencl_language_data): Remove la_name and
3958 la_natural_name initializers.
3959 (opencl_language::name): New member function.
3960 (opencl_language::natural_name): New member function.
3961 * p-lang.c (pascal_language_data): Remove la_name and
3962 la_natural_name initializers.
3963 (pascal_language::name): New member function.
3964 (pascal_language::natural_name): New member function.
3965 * rust-lang.c (rust_language_data): Remove la_name and
3966 la_natural_name initializers.
3967 (rust_language::name): New member function.
3968 (rust_language::natural_name): New member function.
3969 * symtab.c (lookup_language_this): Update call to
3970 language_defn::name.
3971
3972 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * ada-lang.c (ada_language_data): Remove la_name_of_this
3975 initializer.
3976 * ax-gdb.c (gen_expr): Update call to name_of_this.
3977 * c-exp.y (classify_name): Likewise.
3978 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3979 (cplus_language_data): Likewise.
3980 (cplus_language::name_of_this): New member function.
3981 (asm_language_data): Remove la_name_of_this initializer.
3982 (minimal_language_data): Likewise.
3983 * d-lang.c (d_language_data): Likewise.
3984 (d_language::name_of_this): New member function.
3985 * expprint.c (print_subexp_standard): Update call to name_of_this.
3986 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3987 * go-lang.c (go_language_data): Likewise.
3988 * language.c (unknown_language_data): Likewise.
3989 (unknown_language::name_of_this): New member function.
3990 (auto_language_data): Remove la_name_of_this initializer.
3991 (auto_language::name_of_this): New member function.
3992 * language.h (language_data): Delete la_name_of_this member
3993 variable.
3994 (language_defn::name_of_this): New member function.
3995 * m2-lang.c (m2_language_data): Remove la_name_of_this
3996 initializer.
3997 * objc-lang.c (objc_language_data): Likewise.
3998 (objc_language::name_of_this): New member function.
3999 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4000 initializer.
4001 * p-lang.c (pascal_language_data): Likewise.
4002 (pascal_language::name_of_this): New member function.
4003 * rust-lang.c (rust_language_data): Remove la_name_of_this
4004 initializer.
4005 * symtab.c (lookup_language_this): Update call to name_of_this.
4006 (lookup_symbol_aux): Likewise.
4007 * valops.c (value_of_this): Likewise.
4008
4009 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * ada-lang.c (ada_language_data): Remove
4012 la_struct_too_deep_ellipsis initializer.
4013 (ada_language::struct_too_deep_ellipsis): New member function.
4014 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4015 initializer.
4016 (cplus_language_data): Likewise.
4017 (asm_language_data): Likewise.
4018 (minimal_language_data): Likewise.
4019 * cp-valprint.c (cp_print_value): Update call to
4020 struct_too_deep_ellipsis.
4021 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4022 initializer.
4023 * f-lang.c (f_language_data): Likewise.
4024 (f_language::struct_too_deep_ellipsis): New member function.
4025 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4026 initializer.
4027 * language.c (unknown_language_data): Likewise.
4028 (auto_language_data): Likewise.
4029 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4030 member variable.
4031 (language_defn::struct_too_deep_ellipsis): New member function.
4032 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4033 initializer.Q
4034 * objc-lang.c (objc_language_data): Likewise.
4035 * opencl-lang.c (opencl_language_data): Likewise.
4036 * p-lang.c (pascal_language_data): Likewise.
4037 * rust-lang.c (rust_language_data): Likewise.
4038 * valprint.c (val_print_check_max_depth): Update call to
4039 struct_too_deep_ellipsis.
4040
4041 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4042
4043 * MAINTAINERS (Write After Approval): Add myself.
4044
4045 2020-09-15 Tom Tromey <tom@tromey.com>
4046
4047 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4048 Remove.
4049
4050 2020-09-15 Tom Tromey <tom@tromey.com>
4051
4052 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4053 and TYPE_CODE_METHODPTR cases.
4054 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4055 (c_value_print_inner): Update.
4056 * valprint.c (generic_value_print_memberptr): New function, from
4057 c_value_print_memberptr.
4058 (generic_value_print): Use it. Call cplus_print_method_ptr.
4059
4060 2020-09-15 Tom Tromey <tromey@adacore.com>
4061
4062 * python/python-internal.h (PyInt_FromLong): Remove define.
4063 * python/py-value.c (convert_value_from_python): Use
4064 gdb_py_object_from_longest.
4065 * python/py-type.c (typy_get_code): Use
4066 gdb_py_object_from_longest.
4067 * python/py-symtab.c (salpy_get_line): Use
4068 gdb_py_object_from_longest.
4069 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4070 gdb_py_object_from_longest.
4071 * python/py-record.c (recpy_gap_reason_code): Use
4072 gdb_py_object_from_longest.
4073 * python/py-record-btrace.c (recpy_bt_insn_size)
4074 (recpy_bt_func_level, btpy_list_count): Use
4075 gdb_py_object_from_longest.
4076 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4077 gdb_py_object_from_longest. Fix error handling.
4078 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4079 gdb_py_object_from_longest.
4080 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4081 gdb_py_object_from_longest.
4082 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4083 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4084 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4085
4086 2020-09-15 Tom Tromey <tromey@adacore.com>
4087
4088 * python/python.c (gdbpy_parameter_value): Use
4089 gdb_py_object_from_ulongest.
4090
4091 2020-09-15 Tom Tromey <tromey@adacore.com>
4092
4093 * python/py-infevents.c (create_register_changed_event_object):
4094 Use gdb_py_object_from_longest.
4095 * python/py-exitedevent.c (create_exited_event_object): Use
4096 gdb_py_object_from_longest.
4097
4098 2020-09-15 Tom Tromey <tromey@adacore.com>
4099
4100 * python/python.c (gdbpy_parameter_value): Use
4101 gdb_py_object_from_longest.
4102 * python/py-type.c (convert_field, typy_range): Use
4103 gdb_py_object_from_longest.
4104 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4105 gdb_py_object_from_longest.
4106 * python/py-lazy-string.c (stpy_get_length): Use
4107 gdb_py_object_from_longest.
4108 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4109 gdb_py_object_from_longest.
4110 * python/py-infevents.c (create_memory_changed_event_object): Use
4111 gdb_py_object_from_longest.
4112 * python/py-inferior.c (infpy_get_num): Use
4113 gdb_py_object_from_longest.
4114 (infpy_get_pid): Likewise.
4115
4116 2020-09-15 Tom Tromey <tromey@adacore.com>
4117
4118 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4119 defines.
4120 * python/py-value.c (valpy_long): Use
4121 gdb_py_object_from_ulongest.
4122 * python/py-symtab.c (salpy_get_pc): Use
4123 gdb_py_object_from_ulongest.
4124 (salpy_get_last): Likewise.
4125 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4126 gdb_py_object_from_ulongest.
4127 * python/py-lazy-string.c (stpy_get_address): Use
4128 gdb_py_object_from_ulongest.
4129 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4130 * python/py-arch.c (archpy_disassemble): Use
4131 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4132 error handling.
4133
4134 2020-09-15 Tom Tromey <tromey@adacore.com>
4135
4136 * python/python-internal.h (gdb_py_long_from_longest): Remove
4137 defines.
4138 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4139 * python/py-type.c (convert_field, typy_get_sizeof): Use
4140 gdb_py_object_from_longest.
4141 * python/py-record-btrace.c (btpy_list_index): Use
4142 gdb_py_object_from_longest.
4143
4144 2020-09-15 Tom Tromey <tromey@adacore.com>
4145
4146 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4147 * python/py-record.c (recpy_element_number): Use
4148 gdb_py_object_from_longest.
4149 (recpy_gap_number): Likewise.
4150
4151 2020-09-15 Tom Tromey <tromey@adacore.com>
4152
4153 * top.c (ui::ui): Update.
4154 (highest_ui_num): Remove.
4155 * top.h (struct ui) <num>: Remove.
4156
4157 2020-09-15 Tom Tromey <tromey@adacore.com>
4158
4159 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4160 * ui-style.c (ansi_regex_text): Now array.
4161 * rust-exp.y (number_regex_text): Now array.
4162 * linespec.c (linespec_quote_characters): Now array.
4163 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4164 Now arrays.
4165
4166 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4167
4168 * debuginfod-support.c (debuginfod_client_deleter): New.
4169 (debuginfod_client_up): New.
4170 (debuginfod_init): Return debuginfod_client_up.
4171 (debuginfod_source_query): Adjust.
4172 (debuginfod_debuginfo_query): Adjust.
4173
4174 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4175
4176 * debuginfod-support.c (debuginfod_source_query): Use
4177 make_unique_xstrdup.
4178
4179 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4182 with `type::instance_flags`.
4183
4184 2020-09-14 Michael Mullin <masmullin@gmail.com>
4185
4186 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4187 Remove baton parameter.
4188
4189 2020-09-14 Pedro Alves <pedro@palves.net>
4190
4191 * Makefile.in (SELFTESTS_SRCS): Add
4192 unittests/enum-flags-selftests.c.
4193 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4194 btrace_function_flags instead of enum btrace_function_flag.
4195 * compile/compile-c-types.c (convert_qualified): Use
4196 enum_flags::raw.
4197 * compile/compile-cplus-symbols.c (convert_one_symbol)
4198 (convert_symbol_bmsym):
4199 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4200 (compile_cplus_convert_struct_or_union_methods)
4201 (compile_cplus_instance::convert_qualified_base):
4202 * go-exp.y (parse_string_or_char): Add cast to int.
4203 * unittests/enum-flags-selftests.c: New file.
4204 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4205 type to btrace_thread_flags from btrace_thread_flag.
4206 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4207 local's type to btrace_thread_flags from btrace_thread_flag. Add
4208 cast in DEBUG call.
4209
4210 2020-09-14 Pedro Alves <pedro@palves.net>
4211
4212 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4213 * gdbtypes.c (address_space_name_to_int): Rename to ...
4214 (address_space_name_to_type_instance_flags): ... this.
4215 (address_space_int_to_name): Rename to ...
4216 (address_space_type_instance_flags_to_name): ... this.
4217 * gdbtypes.h (address_space_name_to_int): Rename to ...
4218 (address_space_name_to_type_instance_flags): ... this.
4219 (address_space_int_to_name): Rename to ...
4220 (address_space_type_instance_flags_to_name): ... this.
4221 * type-stack.c (type_stack::insert): Adjust to rename.
4222 * type-stack.h (type_stack::insert): Likewise.
4223
4224 2020-09-14 Pedro Alves <pedro@palves.net>
4225 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * avr-tdep.c (avr_address_class_type_flags): Return
4228 type_instance_flags.
4229 (avr_address_class_type_flags_to_name): Take a
4230 type_instance_flags.
4231 (avr_address_class_name_to_type_flags): Return bool and take a
4232 type_instance_flags.
4233 * d-lang.c (build_d_types): Use type::set_instance_flags.
4234 * ft32-tdep.c (ft32_address_class_type_flags): Return
4235 type_instance_flags.
4236 (ft32_address_class_type_flags_to_name): Take a
4237 type_instance_flags.
4238 (ft32_address_class_name_to_type_flags): Return bool and take a
4239 type_instance_flags.
4240 (ft32_gdbarch_init): Use type::set_instance_flags.
4241 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4242 * gdbarch.h, gdbarch.c: Regenerate.
4243 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4244 (address_class_name_to_type_flags): Use type_instance_flags and
4245 bool.
4246 * gdbtypes.c (address_space_name_to_int)
4247 (address_space_int_to_name, make_qualified_type): Use
4248 type_instance_flags.
4249 (make_qualified_type): Use type_instance_flags and
4250 type::set_instance_flags.
4251 (make_type_with_address_space, make_cv_type, make_vector_type)
4252 (check_typedef): Use type_instance_flags.
4253 (recursive_dump_type): Cast type_instance_flags to unsigned for
4254 printing.
4255 (copy_type_recursive): Use type::set_instance_flags.
4256 (gdbtypes_post_init): Use type::set_instance_flags.
4257 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4258 <m_instance_flags>: ... this.
4259 <instance_flags, set_instance_flags>: New methods.
4260 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4261 (SET_TYPE_INSTANCE_FLAGS): New.
4262 (address_space_name_to_int, address_space_int_to_name)
4263 (make_type_with_address_space): Pass flags using
4264 type_instance_flags instead of int.
4265 * stabsread.c (cleanup_undefined_types_noname): Use
4266 type::set_instance_flags.
4267 * s390-tdep.c (s390_address_class_type_flags): Return
4268 type_instance_flags.
4269 (s390_address_class_type_flags_to_name): Take a
4270 type_instance_flags.
4271 (s390_address_class_name_to_type_flags): Return bool and take a
4272 type_instance_flags.
4273 * type-stack.c (type_stack::follow_types): Use
4274 type_instance_flags.
4275 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4276
4277 2020-09-14 Tom Tromey <tromey@adacore.com>
4278
4279 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4280 * x86-tdep.c (x86_is_thunk_register_name)
4281 (x86_in_indirect_branch_thunk): Update.
4282 * sparc64-tdep.c (sparc64_fpu_register_names)
4283 (sparc64_cp0_register_names, sparc64_register_names)
4284 (sparc64_pseudo_register_names): Now const.
4285 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4286 cp0_registers_num>: Now const.
4287 * sparc-tdep.c (sparc_core_register_names)
4288 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4289 (sparc32_pseudo_register_names): Now const.
4290 (validate_tdesc_registers): Update.
4291 * rust-lang.c (rust_extensions): Now const.
4292 * p-lang.c (p_extensions): Now const.
4293 * objc-lang.c (objc_extensions): Now const.
4294 * nto-tdep.c (nto_thread_state_str): Now const.
4295 * moxie-tdep.c (moxie_register_names): Now const.
4296 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4297 Now const.
4298 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4299 (mips_linux_reg_names): Now const.
4300 (mips_gdbarch_init): Update.
4301 * microblaze-tdep.c (microblaze_register_names): Now const.
4302 * m68k-tdep.c (m68k_register_names): Now const.
4303 * m32r-tdep.c (m32r_register_names): Now const.
4304 * ia64-tdep.c (ia64_register_names): Now const.
4305 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4306 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4307 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4308 ymm_avx512_register_names, pkeys_register_names>: Now const.
4309 * i386-tdep.c (i386_register_names, i386_zmm_names)
4310 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4311 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4312 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4313 * f-lang.c (f_extensions): Now const.
4314 * d-lang.c (d_extensions): Now const.
4315 * csky-tdep.c (csky_register_names): Now const.
4316 * charset.c (default_charset_names, charset_enum): Now const.
4317 (_initialize_charset): Update.
4318 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4319 const.
4320 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4321 (bsd_uthread_solib_loaded): Update.
4322 (bsd_uthread_state): Now const.
4323 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4324 (amd64_ymm_avx512_names, amd64_ymmh_names)
4325 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4326 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4327 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4328 (amd64_dword_names): Now const.
4329 * agent.c (can_use_agent_enum): Now const.
4330 * ada-tasks.c (task_states, long_task_states): Now const.
4331 * ada-lang.c (known_runtime_file_name_patterns)
4332 (known_auxiliary_function_name_patterns, attribute_names)
4333 (standard_exc, ada_extensions): Now const.
4334
4335 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * bcache.h (struct bcache) <bcache>: Remove constructor.
4338 <m_hash_function, m_compare_function>: Remove.
4339 <~bcache>: Make virtual.
4340 <compare>: Remove static method, introduce virtual method.
4341 <default_hash>: Remove.
4342 <hash>: New virtual method.
4343 * bcache.c (bcache::expand_hash_table): Update.
4344 (bcache::insert): Update.
4345 (bcache::hash): New.
4346 (bcache::compare): Update comment and parameter names.
4347 * gdbtypes.c (types_deeply_equal): Update.
4348 * psymtab.h (struct psymbol_bcache): New struct.
4349 (class psymtab_storage) <psymtab_storage>: Make default.
4350 <psymbol_cache>: Change type to psymbol_bcache.
4351 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4352 (psymbol_hash): Change to...
4353 (psymbol_bcache::hash): ... this.
4354 (psymbol_compare): Change to...
4355 (psymbol_bcache::compare): ... this.
4356
4357 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4358
4359 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4360 checking for initial lwp.
4361
4362 2020-09-14 Tom Tromey <tromey@adacore.com>
4363
4364 * m68k-tdep.c (m68k_extract_return_value): Use
4365 pointer_result_regnum.
4366 (m68k_store_return_value): Likewise.
4367 (m68k_reg_struct_return_p): Handle vectors and arrays.
4368 (m68k_return_value): Handle arrays.
4369 (m68k_svr4_return_value): Fix single-element aggregate handling.
4370 Handle long double. Adjust for embedded ABI.
4371 (m68k_svr4_init_abi): Set pointer_result_regnum.
4372 (m68k_embedded_init_abi): New function.
4373 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4374 (m68k_osabi_sniffer): New function.
4375 (_initialize_m68k_tdep): Register osabi sniffer.
4376 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4377 member.
4378
4379 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4382 with gdb::unique_xmalloc_ptr<char>.
4383
4384 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4385
4386 * xml-support.h (xml_fetch_another): Change type to be a
4387 function_view.
4388 (xml_process_xincludes): Remove baton parameter.
4389 (xml_fetch_content_from_file): Change baton parameter to
4390 dirname.
4391 * xml-support.c (struct xinclude_parsing_data)
4392 <xinclude_parsing_data>: Remove baton parameter.
4393 <fetcher_baton>: Remove.
4394 (xinclude_start_include): Adjust.
4395 (xml_process_xincludes): Adjust.
4396 (xml_fetch_content_from_file): Replace baton parameter with
4397 dirname.
4398 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4399 (xml_init_syscalls_info): Use a lambda.
4400 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4401 (file_read_description_xml): Use a lambda.
4402 (fetch_available_features_from_target): Change baton parameter
4403 to target_ops.
4404 (target_read_description_xml): Use a lambda.
4405 (target_fetch_description_xml): Use a lambda.
4406 (string_read_description_xml): Update.
4407
4408 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4409
4410 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4411 uses with type::endianity_is_not_default.
4412
4413 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * gdbtypes.h (struct type) <endianity_is_not_default,
4416 set_endianity_is_not_default>: New methods.
4417 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4418 type::endianity_is_not_default, change all write call sites to
4419 use type::set_endianity_is_not_default.
4420
4421 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4424 uses with type::is_fixed_instance.
4425
4426 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbtypes.h (struct type) <is_fixed_instance,
4429 set_is_fixed_instance>: New methods.
4430 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4431 write call sites to use type::set_is_fixed_instance.
4432
4433 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4436 uses with type::is_gnu_ifunc.
4437
4438 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4441 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4442 use type::set_is_gnu_ifunc.
4443
4444 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4447 uses with type::stub_is_supported.
4448
4449 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4452 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4453 use type::set_stub_is_supported.
4454
4455 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4458 uses with type::is_vector.
4459
4460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4463 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4464 use type::set_is_vector.
4465
4466 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4467
4468 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4469 uses with type::has_varargs.
4470
4471 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4474 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4475 use type::set_has_varargs.
4476
4477 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4480 uses with type::is_prototyped.
4481
4482 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4485 New methods.
4486 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4487 call sites to use type::set_is_prototyped.
4488
4489 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4492 uses with type::target_is_stub.
4493
4494 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4497 New methods.
4498 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4499 sites to use type::set_target_is_stub.
4500
4501 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (TYPE_STUB): Remove, replace all
4504 uses with type::is_stub.
4505
4506 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4509 (TYPE_STUB): Use type::is_stub, change all write call sites to
4510 use type::set_is_stub.
4511
4512 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4515 type::has_no_signedness.
4516
4517 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.h (struct type) <has_no_signedness,
4520 set_has_no_signedness>: New methods.
4521 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4522 call sites to use type::set_has_no_signedness.
4523
4524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4527 type::is_unsigned.
4528
4529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4532 methods.
4533 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4534 sites to use type::set_is_unsigned.
4535
4536 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4537 Adam Renquinha <arenquinha@cimeq.qc.ca>
4538
4539 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4540 pointer and stack frame offset when unwinding.
4541
4542 2020-09-13 Pedro Alves <pedro@palves.net>
4543
4544 * NEWS: Document "-break-insert --qualified".
4545 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4546
4547 2020-09-13 Pedro Alves <pedro@palves.net>
4548
4549 * linespec.c (classify_mtype, compare_msyms): Delete.
4550 (search_minsyms_for_name): Remove classification logic. Instead
4551 filter out trampoline symbols if we also found an external
4552 function of the same name.
4553
4554 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4555
4556 * NEWS: Create a new section for the next release branch.
4557 Rename the section of the current branch, now that it has
4558 been cut.
4559
4560 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4561
4562 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4563 * version.in: Bump version to 11.0.50.DATE-git.
4564
4565 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4566
4567 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4568
4569 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4570 Felix Willgerodt <Felix.Willgerodt@intel.com>
4571
4572 * gdbarch.sh: Added bfloat16 type.
4573 * gdbarch.c: Regenerated.
4574 * gdbarch.h: Regenerated.
4575 * gdbtypes.c (floatformats_bfloat16): New struct.
4576 (gdbtypes_post_init): Add builtin_bfloat16.
4577 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4578 (floatformats_bfloat16): New struct.
4579 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4580 (i386_ymm_type): Add field "v16_bfloat16"
4581 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4582 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4583 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4584 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4585 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4586 * features/i386/64bit-avx512.c: Regenerated.
4587 * features/i386/64bit-sse.xml: Add bfloat16 type.
4588 * features/i386/64bit-sse.c: Regenerated.
4589
4590 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4591
4592 * i386-tdep.c (i386_zmm_type): Fix field names.
4593 (i386_ymm_type): Fix field names.
4594
4595 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4596
4597 * breakpoint.c: Fix typo in the help message of the
4598 "set breakpoint condition-evaluation" command.
4599
4600 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4601
4602 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4603 * (nbsd_nat_target::pid_to_exec_file)
4604 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4605 (nbsd_nat_target::post_startup_inferior)
4606 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4607 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4608 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4609 * (nbsd_thread_lister): Remove.
4610
4611 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4612
4613 * fork-inferior.c (startup_inferior): Avoid double free.
4614
4615 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4616
4617 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4618 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4619
4620 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4621
4622 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4623 * netbsd-nat.c: Include <sys/ptrace.h>.
4624 * (netbsd_nat::enable_proc_events): Add.
4625
4626 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4627
4628 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4629 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4630 (netbsd_nat::for_each_thread): Add.
4631 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4632 "gdbsupport/common-debug.h".
4633 * (netbsd_nat::netbsd_thread_lister)
4634 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4635 (netbsd_nat::for_each_thread): Add.
4636
4637 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4638
4639 * netbsd-nat.h: Include <unistd.h>.
4640 * (netbsd_nat::pid_to_exec_file): Add.
4641 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4642 * (netbsd_nat::pid_to_exec_file) Add.
4643
4644 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4645
4646 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4647
4648 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4649
4650 * netbsd-nat.h: New file.
4651 * netbsd-nat.c: Likewise.
4652
4653 2020-09-09 Tom Tromey <tromey@adacore.com>
4654
4655 * ada-lang.c (remove_extra_symbols): Do not increment when
4656 removing an element
4657
4658 2020-09-08 Tom Tromey <tromey@adacore.com>
4659
4660 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4661
4662 2020-09-08 Tom Tromey <tromey@adacore.com>
4663
4664 PR win32/25302:
4665 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4666 (gdb_bfd_init_data): New function.
4667 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4668
4669 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4670
4671 * infrun.c (fetch_inferior_event): Use
4672 `switch_to_target_no_thread` to switch the target.
4673
4674 2020-09-06 Tom Tromey <tom@tromey.com>
4675
4676 * symfile.h (dwarf2_free_objfile): Don't declare.
4677
4678 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4679
4680 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4681 to match 16 byte real/complex type generated by Flang compiler.
4682
4683 2020-09-03 Tom de Vries <tdevries@suse.de>
4684
4685 PR breakpoint/26546
4686 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4687 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4688
4689 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4690
4691 * maint.c (index_digits): New function.
4692 (struct maint_print_section_data): Remove.
4693 (print_bfd_section_info): Remove print_data parameter, add arg
4694 and index_digits.
4695 (print_objfile_section_info): Likewise.
4696 (print_bfd_section_info_maybe_relocated): Likewise (plus
4697 objfile).
4698 (maintenance_info_sections): Adjust calls.
4699
4700 2020-09-02 Tom Tromey <tromey@adacore.com>
4701
4702 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4703 for null pointers.
4704 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4705
4706 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * bcache.h (struct bcache) <insert>: Change type of `added` to
4709 pointer to bool.
4710 * bcache.c (bcache::insert): Likewise.
4711 * gdbtypes.c (check_types_worklist): Adjust.
4712 * psymtab.c (add_psymbol_to_bcache): Adjust.
4713
4714 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4715
4716 * corelow.c (unordered_set): Include.
4717 (class core_target): Add field 'm_core_unavailable_mappings'.
4718 (core_target::build_file_mappings): Print only one warning
4719 per inaccessible file. Add unavailable/broken mappings
4720 to m_core_unavailable_mappings.
4721 (core_target::xfer_partial): Call...
4722 (core_target::xfer_memory_via_mappings): New method.
4723
4724 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4727 type to bool.
4728
4729 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * dwarf2/read.c (struct field_info): Fix indentation.
4732
4733 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4734
4735 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4736 ordering in comment.
4737 * frame.c (frame_id_eq): Fix indentation.
4738
4739 2020-08-31 Scott Linder <scott@scottlinder.com>
4740 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4743 inline frame ids in outer frame.
4744
4745 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4748 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4749 (outer_frame_id): Use FID_STACK_OUTER instead of
4750 FID_STACK_INVALID.
4751 (frame_id_p): Don't check for outer_frame_id.
4752
4753 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4756 regnum/frame in value. Call allocate_value_lazy.
4757 * frame.c (frame_unwind_register_value): Use
4758 val_print_not_saved.
4759
4760 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4763
4764 2020-08-29 Pedro Alves <pedro@palves.net>
4765
4766 * progspace.c (print_program_space): Use all_inferiors. Switch to
4767 the inferior before calling target_pid_to_str.
4768
4769 2020-08-28 Tom Tromey <tom@tromey.com>
4770
4771 * xcoffread.c (xcoff_end_psymtab): Update comment.
4772 * dbxread.c (dbx_end_psymtab): Update comment.
4773
4774 2020-08-28 Tom de Vries <tdevries@suse.de>
4775
4776 PR breakpoint/26544
4777 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4778 event_location.
4779 (create_breakpoint): Same.
4780 (base_breakpoint_decode_location): Same.
4781 (bkpt_create_sals_from_location): Same.
4782 (bkpt_decode_location): Same.
4783 (bkpt_probe_create_sals_from_location): Same.
4784 (bkpt_probe_decode_location): Same.
4785 (tracepoint_create_sals_from_location): Same.
4786 (tracepoint_decode_location): Same.
4787 (tracepoint_probe_decode_location): Same.
4788 (strace_marker_create_sals_from_location): Same.
4789 (strace_marker_decode_location): Same.
4790 (create_sals_from_location_default): Same.
4791 (decode_location_default): Same.
4792 * breakpoint.h (struct breakpoint_ops): Same.
4793 (create_breakpoint): Same.
4794 * linespec.h (decode_line_full): Same.
4795 * linespec.c (decode_line_full): Same. Throw error if
4796 result.size () == 0.
4797
4798 2020-08-27 Pedro Alves <pedro@palves.net>
4799
4800 PR gdb/26524
4801 * breakpoint.c (until_break_fsm) <location_breakpoint,
4802 caller_breakpoint>: Delete fields.
4803 <breakpoints>: New field.
4804 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4805 two individual breakpoints.
4806 (until_break_fsm::should_stop): Loop over breakpoints in the
4807 breakpoint vector.
4808 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4809 vector.
4810 (until_break_command): Handle location expanding into multiple
4811 sals.
4812
4813 2020-08-27 Pedro Alves <pedro@palves.net>
4814
4815 PR gdb/26523
4816 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4817 bp_until breakpoints user-specified locations. Update intro
4818 comment.
4819
4820 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4821
4822 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4823 gdb_bfd_sections): New.
4824 * maint.c (print_bfd_section_info): Change param type to
4825 maint_print_section_data.
4826 (print_objfile_section_info): Likewise.
4827 (print_bfd_section_info_maybe_relocated): Likewise.
4828 (maintenance_info_sections): Use gdb_bfd_sections.
4829
4830 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4831
4832 * MAINTAINERS: Add ARC target and maintainer.
4833
4834 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4835
4836 * configure.tgt: ARC support for GNU/Linux.
4837 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4838 * arc-linux-tdep.c: New file.
4839 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4840 * arc-tdep.c (arc_write_pc): Use it.
4841
4842 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4843
4844 * arc-tdep.c (arc_check_for_hardware_loop): New.
4845 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4846
4847 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4848
4849 * arc-tdep.h: Include "gdbarch.h".
4850
4851 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4852
4853 * arch/arc.h
4854 (arc_gdbarch_features): New class to stir the selection of target XML.
4855 (arc_create_target_description): Use FEATURES to choose XML target.
4856 (arc_lookup_target_description): Use arc_create_target_description
4857 to create _new_ target descriptions or return the already created
4858 ones if the FEATURES is the same.
4859 * arch/arc.c: Implementation of prototypes described above.
4860 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4861 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4862 * arc-tdep.c (*_feature_name): Make feature names consistent.
4863 (arc_register_feature): A new struct to hold information about
4864 registers of a particular target/feature.
4865 (arc_check_tdesc_feature): Check if XML provides registers in
4866 compliance with ARC_REGISTER_FEATURE structs.
4867 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4868 (determine_*_reg_feature_set): Which feature name to look for.
4869 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4870 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4871 to expected ISA enums to be used in arc_gdbarch_features structs.
4872 * features/Makefile (FEATURE_XMLFILES): Add new files.
4873 * gdb/features/arc/v1-aux.c: New file.
4874 * gdb/features/arc/v1-aux.xml: Likewise.
4875 * gdb/features/arc/v1-core.c: Likewise.
4876 * gdb/features/arc/v1-core.xml: Likewise.
4877 * gdb/features/arc/v2-aux.c: Likewise.
4878 * gdb/features/arc/v2-aux.xml: Likewise.
4879 * gdb/features/arc/v2-core.c: Likewise.
4880 * gdb/features/arc/v2-core.xml: Likewise.
4881 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4882
4883 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4884 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 PR m2/26372
4887 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4888 an assert. Remove single element array indexing pattern as the
4889 MULTI_SUBSCRIPT support will handle this case too.
4890
4891 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4892
4893 * value.h (valprint_check_validity): Move declaration from
4894 here...
4895 * valprint.h (valprint_check_validity): ... to here.
4896
4897 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * debug.h: New file.
4900 * debug.c (debug_prefixed_vprintf): New function.
4901 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4902 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4903
4904 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4905
4906 * infrun.h (infrun_debug_printf_1): New function declaration.
4907 (infrun_debug_printf): New macro.
4908 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4909 throughout.
4910 (infrun_debug_printf): New function.
4911 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4912 (handle_jit_event): Likewise.
4913
4914 2020-08-21 Mark Wielaard <mark@klomp.org>
4915
4916 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4917
4918 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * frame.c (enum class frame_id_status): New.
4921 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4922 (fprintf_frame): Update.
4923 (compute_frame_id): Set frame id status to "computing" on entry.
4924 Set it back to "not_computed" on failure and to "computed" on
4925 success.
4926 (get_frame_id): Assert the frame id is not being computed.
4927 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4928 (create_new_frame): Likewise.
4929 (frame_cleanup_after_sniffer): Update assert.
4930
4931 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * regcache.c (pid_ptid_regcache_map): New type.
4934 (target_ptid_regcache_map): Remove.
4935 (target_pid_ptid_regcache_map): New type.
4936 (regcaches): Change type to target_pid_ptid_regcache_map.
4937 (get_thread_arch_aspace_regcache): Update.
4938 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4939 case.
4940 (regcaches_size): Update.
4941 (regcache_count): Update.
4942 (registers_changed_ptid_target_pid_test): New.
4943 (_initialize_regcache): Register new test.
4944
4945 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4946
4947 * regcache.c (regcache_count): New.
4948 (struct regcache_test_data): New.
4949 (regcache_test_data_up): New.
4950 (populate_regcaches_for_test): New.
4951 (regcaches_test): Remove.
4952 (get_thread_arch_aspace_regcache_test): New.
4953 (registers_changed_ptid_all_test): New.
4954 (registers_changed_ptid_target_test): New.
4955 (registers_changed_ptid_target_ptid_test): New.
4956 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4957 (_initialize_regcache): Register new tests.
4958
4959 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4962 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4963 gdbarch and aspace parameter. Use current inferior's aspace.
4964 Validate regcache's arch value.
4965 (regcaches_test): Update.
4966
4967 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4968
4969 * regcache.c (regcaches_test): Call registers_changed.
4970
4971 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4972
4973 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4974
4975 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4976
4977 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4978 to find the end of prologue for flang compiled binaries.
4979 * arm-tdep.c (arm_skip_prologue): Likewise.
4980 * i386-tdep.c (i386_skip_prologue): Likewise.
4981 * producer.c (producer_is_llvm): New function.
4982 (producer_parsing_tests): Added new tests for clang/flang.
4983 * producer.h (producer_is_llvm): New declaration.
4984
4985 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * linux-nat.c (linux_nat_debug_printf): New function.
4988 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4989
4990 2020-08-18 Aaron Merey <amerey@redhat.com>
4991
4992 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4993 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4994 (CLIBS): Add DEBUGINFOD_LIBS.
4995
4996 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4997
4998 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4999 'gdbarch_num_regs'.
5000
5001 2020-08-17 Tom Tromey <tromey@adacore.com>
5002
5003 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5004 ada_get_decoded_value returns NULL.
5005
5006 2020-08-17 Tom Tromey <tromey@adacore.com>
5007
5008 * python/py-inferior.c (infpy_search_memory): Use
5009 gdb_py_object_from_ulongest.
5010 * python/py-infevents.c (create_inferior_call_event_object)
5011 (create_memory_changed_event_object): Use
5012 gdb_py_object_from_ulongest.
5013 * python/py-linetable.c (ltpy_entry_get_pc): Use
5014 gdb_py_object_from_ulongest.
5015
5016 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5017
5018 * loc.c (class symbol_needs_eval_context): Fix indentation.
5019
5020 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5023 bool.
5024
5025 2020-08-17 Tom de Vries <tdevries@suse.de>
5026
5027 PR gdb/26393
5028 * gdbtypes.c (dump_dynamic_prop): New function.
5029 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5030
5031 2020-08-15 Tom de Vries <tdevries@suse.de>
5032
5033 PR backtrace/26390
5034 * stack.c (print_frame_args): Temporarily set the selected
5035 frame to FRAME while printing the frame's arguments.
5036
5037 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5038
5039 PR breakpoints/26385
5040 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5041 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5042
5043 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5044
5045 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5046 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5047 and >= to check return value instead of == -1 and != -1.
5048
5049 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * utils.h (class gdb_argv) <as_array_view>: New method.
5052 * utils.c (gdb_argv_as_array_view_test): New.
5053 (_initialize_utils): Register selftest.
5054 * maint.c (maintenance_selftest): Use the new method.
5055
5056 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5057
5058 * target.h (supports_dumpcore, dumpcore): New
5059 function declarations.
5060 * target.c (supports_dumpcore, dumpcore): New
5061 functions.
5062 * target-delegates.c: Rebuild.
5063 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5064 and target_dumpcore ().
5065
5066 2020-08-13 Aaron Merey <amerey@redhat.com>
5067
5068 * debuginfod-support.c: Replace global variables with user_data.
5069
5070 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5071
5072 * maint.c (maintenance_selftest): Split args and pass array_view
5073 to run_tests.
5074
5075 2020-08-12 Luis Machado <luis.machado@linaro.org>
5076
5077 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5078 type's length.
5079 Use %s and pulongest to print the length.
5080
5081 2020-08-12 Pedro Alves <palves@redhat.com>
5082
5083 * NEWS: Move "Multi-target debugging support" item to the
5084 "Changes since GDB 9" section.
5085
5086 2020-08-12 Pedro Alves <palves@redhat.com>
5087
5088 PR gdb/26336
5089 * progspace.c (program_space::remove_objfile): Invalidate the
5090 frame cache.
5091
5092 2020-08-11 Tom de Vries <tdevries@suse.de>
5093
5094 * MAINTAINERS: Mark ms1 as deleted.
5095
5096 2020-08-10 Luis Machado <luis.machado@linaro.org>
5097
5098 PR gdb/26310
5099
5100 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5101 act accordingly.
5102 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5103 movz/str/stur/stp skipping behavior.
5104
5105 2020-08-10 Luis Machado <luis.machado@linaro.org>
5106
5107 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5108 struct user_sve_header instead of struct sve_context.
5109
5110 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5111
5112 * read.h (dwarf2_fetch_die_loc_sect_off,
5113 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5114 `void *` parameter with function_view.
5115 * read.c (dwarf2_fetch_die_loc_sect_off,
5116 dwarf2_fetch_die_loc_cu_off): Likewise.
5117 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5118 (per_cu_dwarf_call): Adjust.
5119 (get_frame_address_in_block_wrapper): Remove.
5120 (indirect_synthetic_pointer): Adjust.
5121 (get_ax_pc): Remove.
5122 (dwarf2_compile_expr_to_ax): Adjust.
5123
5124 2020-08-08 Tom de Vries <tdevries@suse.de>
5125
5126 PR build/26344
5127 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5128 constructor.
5129 * regcache.c (get_thread_arch_aspace_regcache): Same.
5130
5131 2020-08-07 Tom Tromey <tromey@adacore.com>
5132
5133 * ravenscar-thread.c
5134 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5135 New method.
5136 (ravenscar_thread_target::wait): Check
5137 runtime_initialized.
5138 (ravenscar_thread_target::prepare_to_store)
5139 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5140 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5141 (ravenscar_thread_target::stopped_by_watchpoint)
5142 (ravenscar_thread_target::stopped_data_address)
5143 (ravenscar_thread_target::core_of_thread): Use
5144 scoped_restore_current_thread and
5145 set_base_thread_from_ravenscar_task.
5146
5147 2020-08-07 Tom Tromey <tromey@adacore.com>
5148
5149 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5150
5151 2020-08-07 Tom Tromey <tromey@adacore.com>
5152
5153 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5154 update_inferior_ptid before update_thread_list.
5155 (temporarily_change_regcache_ptid): New class.
5156 (ravenscar_thread_target::fetch_registers)
5157 (ravenscar_thread_target::store_registers)
5158 (ravenscar_thread_target::prepare_to_store): Use base thread when
5159 forwarding operation.
5160
5161 2020-08-07 Tom Tromey <tromey@adacore.com>
5162
5163 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5164 "is_pid" case.
5165
5166 2020-08-07 Tom Tromey <tromey@adacore.com>
5167
5168 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5169 New methods.
5170 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5171 first.
5172 (ravenscar_thread_target::add_thread): Rename from
5173 ravenscar_add_thread.
5174 (ravenscar_thread_target::update_thread_list): Use a lambda.
5175 (ravenscar_thread_target::xfer_partial): New method.
5176
5177 2020-08-07 Tom Tromey <tromey@adacore.com>
5178
5179 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5180 gdb::function_view.
5181 (iterate_over_live_ada_tasks): Change type of argument.
5182 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5183 of argument.
5184
5185 2020-08-07 Tom Tromey <tromey@adacore.com>
5186
5187 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5188 Remove.
5189 (ravenscar_thread_target::extra_thread_info): Remove.
5190 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5191 defer to target beneath for non-Ravenscar threads.
5192
5193 2020-08-07 Tom Tromey <tromey@adacore.com>
5194
5195 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5196 get_base_thread_from_ravenscar_task>: Now methods.
5197 <m_cpu_map>: New member.
5198 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5199 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5200 (ravenscar_thread_target::task_is_currently_active): Update.
5201 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5202 Now a method.
5203 (ravenscar_thread_target::add_active_thread): Put initial thread
5204 into the m_cpu_map.
5205
5206 2020-08-07 Tom Tromey <tromey@adacore.com>
5207
5208 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5209 event_ptid.
5210
5211 2020-08-07 Tom Tromey <tromey@adacore.com>
5212
5213 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5214 runtime_initialized.
5215
5216 2020-08-07 Tom Tromey <tromey@adacore.com>
5217
5218 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5219 add_active_thread.
5220 (ravenscar_thread_target::add_active_thread): Now public.
5221 (ravenscar_inferior_created): Call add_active_thread after pushing
5222 the target.
5223
5224 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 * regcache.c (ptid_regcache_map): New type.
5227 (target_ptid_regcache_map): New type.
5228 (regcaches): Change type to target_ptid_regcache_map.
5229 (get_thread_arch_aspace_regcache): Update to regcaches' new
5230 type.
5231 (regcache_thread_ptid_changed): Likewise.
5232 (registers_changed_ptid): Likewise.
5233 (regcaches_size): Likewise.
5234 (regcaches_test): Update.
5235 (regcache_thread_ptid_changed): Update.
5236 * regcache.h (regcache_up): New type.
5237 * gdbsupport/ptid.h (hash_ptid): New struct.
5238
5239 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * observable.h (thread_ptid_changed): Add parameter
5242 `process_stratum_target *`.
5243 * infrun.c (infrun_thread_ptid_changed): Add parameter
5244 `process_stratum_target *` and use it.
5245 (selftests): New namespace.
5246 (infrun_thread_ptid_changed): New function.
5247 (_initialize_infrun): Register selftest.
5248 * regcache.c (regcache_thread_ptid_changed): Add parameter
5249 `process_stratum_target *` and use it.
5250 (regcache_thread_ptid_changed): New function.
5251 (_initialize_regcache): Register selftest.
5252 * thread.c (thread_change_ptid): Pass target to
5253 thread_ptid_changed observable.
5254
5255 2020-08-06 Caroline Tice <cmtice@google.com>
5256
5257 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5258 (struct dwp_sections): Update field comments. Add loclists and
5259 rnglists fields.
5260 (struct virtual_v2_dwo_sections): Rename struct to
5261 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5262 size & offset fields for loclists and rnglists.
5263 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5264 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5265 skipping dummy type units.
5266 (create_dwp_hash_table): Update the large comment above the function to
5267 discuss Version 5 DWP files as well, with references. Update all the
5268 version checks in the function to check for version 5 as well. Add new
5269 section at the end to create dwp hash table for version 5.
5270 (create_dwp_v2_section): Rename function to
5271 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5272 Add V5 to error message text.
5273 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5274 into calls to create_dwp_v2_or_v5_section.
5275 (create_dwo_unit_in_dwp_v5): New function.
5276 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5277 check for version2; add else clause to handle version 5.
5278 (open_and_init_dwo_file): Add code to check dwarf version & only call
5279 create_debug_types_hash_table (with sections.types) if version is not 5;
5280 else call create_debug_type_hash_table, with sections.info.
5281 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5282 version 5.
5283 (dwarf2_locate_v5_dwp_sections): New function.
5284 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5285 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5286
5287 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5288
5289 * regcache.h (class regcache): Remove friend
5290 registers_changed_ptid.
5291 <regcache_thread_ptid_changed>: Remove.
5292 <regcaches>: Remove.
5293 * regcache.c (regcache::regcaches): Rename to...
5294 (regcaches): ... this. Make static.
5295 (get_thread_arch_aspace_regcache): Update.
5296 (regcache::regcache_thread_ptid_changed): Rename to...
5297 (regcache_thread_ptid_changed): ... this. Update.
5298 (class regcache_access): Remove.
5299 (regcaches_test): Update.
5300 (_initialize_regcache): Update.
5301 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5302 <forward_list>.
5303
5304 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * regcache.h (class regcache) <current_regcache>: Rename to...
5307 <regcaches>: ... this. Move doc here.
5308 * regcache.c (regcache::current_regcache) Rename to...
5309 (regcache::regcaches): ... this. Move doc to header.
5310 (get_thread_arch_aspace_regcache): Update.
5311 (regcache::regcache_thread_ptid_changed): Update.
5312 (registers_changed_ptid): Update.
5313 (class regcache_access) <current_regcache_size>: Rename to...
5314 <regcaches_size>: ... this.
5315 (current_regcache_test): Rename to...
5316 (regcaches_test): ... this.
5317 (_initialize_regcache): Update.
5318
5319 2020-08-06 Victor Collod <vcollod@nvidia.com>
5320
5321 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5322
5323 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5324
5325 * corelow.c (core_target::build_file_mappings): Don't output
5326 null pathname in warning.
5327
5328 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5329
5330 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5331 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5332 gdb.dwarf2/dw2-single-line-discriminators.exp,
5333 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5334
5335 2020-08-05 Tom Tromey <tromey@adacore.com>
5336
5337 PR rust/26197:
5338 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5339 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5340 Fix off-by-one and type size errors in ordinary case.
5341
5342 2020-08-05 Tom de Vries <tdevries@suse.de>
5343
5344 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5345 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5346
5347 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * frame.h (frame_id_p): Return bool.
5350 (frame_id_artificial_p): Return bool.
5351 (frame_id_eq): Return bool.
5352 (has_stack_frames): Return bool.
5353 (get_selected_frame): Fix typo in comment.
5354 (get_frame_pc_if_available): Return bool.
5355 (get_frame_address_in_block_if_available): Return bool.
5356 (get_frame_func_if_available): Return bool.
5357 (read_frame_register_unsigned): Return bool.
5358 (get_frame_register_bytes): Return bool.
5359 (safe_frame_unwind_memory): Return bool.
5360 (deprecated_frame_register_read): Return bool.
5361 (frame_unwinder_is): Return bool.
5362 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5363 bool.
5364 <this_id::p>: Likewise.
5365 <prev_p>: Likewise.
5366 (frame_stash_add): Return bool.
5367 (get_frame_id): Use bool.
5368 (frame_id_build_special) Use bool.
5369 (frame_id_build_unavailable_stack): Use bool.
5370 (frame_id_build): Use bool.
5371 (frame_id_p): Return bool, use true/false instead of 1/0.
5372 (frame_id_artificial_p): Likewise.
5373 (frame_id_eq): Likewise.
5374 (frame_id_inner): Likewise.
5375 (get_frame_func_if_available): Likewise.
5376 (read_frame_register_unsigned): Likewise.
5377 (deprecated_frame_register_read): Likewise.
5378 (get_frame_register_bytes): Likewise.
5379 (has_stack_frames): Likewise.
5380 (inside_main_func): Likewise.
5381 (inside_entry_func): Likewise.
5382 (get_frame_pc_if_available): Likewise.
5383 (get_frame_address_in_block_if_available): Likewise.
5384 (frame_unwinder_is): Likewise.
5385 (safe_frame_unwind_memory): Likewise.
5386 (frame_unwind_arch): Likewise.
5387
5388 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5389
5390 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5391 type to cached_copy_status.
5392 (fprintf_frame): Adjust.
5393 (get_frame_func_if_available): Adjust.
5394 (frame_cleanup_after_sniffer): Adjust.
5395
5396 2020-08-04 Mark Wielaard <mark@klomp.org>
5397
5398 * MAINTAINERS (Write After Approval): Update email address.
5399
5400 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5403 dynamic_prop::const_val.
5404
5405 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5406
5407 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5408 dynamic_prop::kind.
5409
5410 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5413
5414 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5415
5416 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5417
5418 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5419 Jose E. Marchesi <jose.marchesi@oracle.com>
5420
5421 * configure.tgt: Add entry for bpf-*-*.
5422 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5423 (ALLDEPFILES): Add bpf-tdep.c.
5424 * bpf-tdep.c: New file.
5425 * MAINTAINERS: Add bpf target and maintainer.
5426 * NEWS: Mention the support for the new target.
5427
5428 2020-08-04 Tom de Vries <tdevries@suse.de>
5429
5430 PR symtab/23270
5431 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5432 Error.
5433
5434 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5435
5436 * syscalls/freebsd.xml: Regenerate.
5437
5438 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5439
5440 * syscalls/update-freebsd.sh: Fix usage and year range.
5441
5442 2020-08-03 Tom de Vries <tdevries@suse.de>
5443
5444 PR symtab/26333
5445 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5446 DW_LNE_lo_user/DW_LNE_hi_user range.
5447
5448 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 PR ada/26318
5451 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5452 kind.
5453
5454 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5455
5456 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5457
5458 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5459
5460 * breakpoint.c (set_breakpoint_condition): Update the condition
5461 expressions after checking that the input condition string parses
5462 successfully and does not contain junk at the end.
5463
5464 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5465
5466 * breakpoint.c (set_breakpoint_condition): Update the
5467 condition string after parsing the new condition successfully.
5468
5469 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5470
5471 * proc-api.c (_STRUCTURED_PROC): Don't define.
5472 * proc-events.c: Likewise.
5473 * proc-flags.c: Likewise.
5474 * proc-why.c: Likewise.
5475 * procfs.c: Likewise.
5476
5477 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5478 * configure, config.in: Regenerate.
5479
5480 2020-07-30 Tom de Vries <tdevries@suse.de>
5481
5482 PR build/26320
5483 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5484 m_red/m_green/m_blue in a union.
5485
5486 2020-07-29 Tom de Vries <tdevries@suse.de>
5487
5488 PR tdep/26280
5489 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5490
5491 2020-07-28 Tom Tromey <tromey@adacore.com>
5492
5493 PR symtab/26270:
5494 * symtab.h (find_pc_partial_function_sym): Declare.
5495 * cli/cli-cmds.c (disassemble_command): Use
5496 find_pc_partial_function_sym. Check asm_demangle.
5497 * blockframe.c (cache_pc_function_sym): New global.
5498 (cache_pc_function_name): Remove.
5499 (clear_pc_function_cache): Update.
5500 (find_pc_partial_function_sym): New function, from
5501 find_pc_partial_function.
5502 (find_pc_partial_function): Rewrite using
5503 find_pc_partial_function_sym.
5504
5505 2020-07-28 Tom Tromey <tromey@adacore.com>
5506
5507 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5508 help. Add usage.
5509
5510 2020-07-28 Tom Tromey <tromey@adacore.com>
5511
5512 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5513 <DW_OP_GNU_variable_value>: Cast to address type.
5514
5515 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5516
5517 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5518 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5519 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5520 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5521 (nbsd_get_siginfo_type): New.
5522 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5523 (_initialize_nbsd_tdep): New.
5524
5525 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5526
5527 PR binutils/26301
5528 * configure: Regenerated.
5529
5530 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5531
5532 PR binutils/26301
5533 * configure: Regenerated.
5534
5535 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5536
5537 * python/py-frame.c: Remove 'user-regs.h' include.
5538 (frapy_read_register): Rewrite to make use of
5539 gdbpy_parse_register_id.
5540 * python/py-registers.c (gdbpy_parse_register_id): New function,
5541 moved here from python/py-unwind.c. Updated the return type, and
5542 also accepts register descriptor objects.
5543 * python/py-unwind.c: Remove 'user-regs.h' include.
5544 (pyuw_parse_register_id): Moved to python/py-registers.c.
5545 (unwind_infopy_add_saved_register): Update to use
5546 gdbpy_parse_register_id.
5547 (pending_framepy_read_register): Likewise.
5548 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5549
5550 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5551
5552 * python/py-registers.c: Add 'user-regs.h' include.
5553 (register_descriptor_iter_find): New function.
5554 (register_descriptor_iterator_object_methods): New static global
5555 methods array.
5556 (register_descriptor_iterator_object_type): Add pointer to methods
5557 array.
5558
5559 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5560
5561 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5562 for all architectures on FreeBSD 11.3 and later.
5563
5564 2020-07-27 Tom Tromey <tromey@adacore.com>
5565
5566 * gcore.h (load_corefile): Don't declare.
5567
5568 2020-07-27 Tom de Vries <tdevries@suse.de>
5569
5570 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5571 * config.in: Regenerate.
5572 * configure: Regenerate.
5573
5574 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5575
5576 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5577 ws2tcpip.h. When checking whether socklen_t type is defined, use
5578 ws2tcpip.h if it is available and sys/socket.h isn't.
5579 * configure: Regenerate.
5580 * config.in: Regenerate.
5581
5582 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 PR fortran/23051
5585 PR fortran/26139
5586 * valops.c (value_ind): Pass address to
5587 readjust_indirect_value_type.
5588 * value.c (readjust_indirect_value_type): Make parameter
5589 non-const, and add extra address parameter. Resolve original type
5590 before using it.
5591 * value.h (readjust_indirect_value_type): Update function
5592 signature and comment.
5593
5594 2020-07-25 Tom de Vries <tdevries@suse.de>
5595
5596 PR symtab/26243
5597 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5598 entries.
5599
5600 2020-07-24 Aaron Merey <amerey@redhat.com>
5601
5602 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5603 * configure: Rebuild.
5604
5605 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5606
5607 PR corefiles/26294
5608 * corelow.c (_initialize_corelow): Add period to help text
5609 for "maintenance print core-file-backed-mappings".
5610
5611 2020-07-23 Pedro Alves <pedro@palves.net>
5612
5613 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5614 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5615 meanwhile.
5616 * frame.c (frame_cache_generation, get_frame_cache_generation):
5617 New.
5618 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5619 (get_prev_frame_if_no_cycle): On exception, don't touch
5620 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5621 * frame.h (get_frame_cache_generation): Declare.
5622
5623 2020-07-23 Tom de Vries <tdevries@suse.de>
5624
5625 PR tui/26282
5626 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5627 New default constructor.
5628
5629 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5632 exclude non-statement entries.
5633
5634 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5635
5636 * NEWS (New commands): Mention new command
5637 "maintenance print core-file-backed-mappings".
5638
5639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5640
5641 * corelow.c (gdbcmd.h): Include.
5642 (core_target::info_proc_mappings): New method.
5643 (get_current_core_target): New function.
5644 (maintenance_print_core_file_backed_mappings): New function.
5645 (_initialize_corelow): Add core-file-backed-mappings to
5646 "maint print" commands.
5647
5648 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5649
5650 * linux-tdep.c (dump_note_entry_p): New function.
5651 (linux_dump_mapping_p_ftype): New typedef.
5652 (linux_find_memory_regions_full): Add new parameter,
5653 should_dump_mapping_p.
5654 (linux_find_memory_regions): Adjust call to
5655 linux_find_memory_regions_full.
5656 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5657 call to linux_find_memory_regions_full.
5658
5659 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5660
5661 * corelow.c (solist.h, unordered_map): Include.
5662 (class core_target): Add field m_core_file_mappings and
5663 method build_file_mappings.
5664 (core_target::core_target): Call build_file_mappings.
5665 (core_target::~core_target): Free memory associated with
5666 m_core_file_mappings.
5667 (core_target::build_file_mappings): New method.
5668 (core_target::xfer_partial): Use m_core_file_mappings
5669 for memory transfers.
5670 * linux-tdep.c (linux_read_core_file_mappings): New
5671 function.
5672 (linux_core_info_proc_mappings): Rewrite to use
5673 linux_read_core_file_mappings.
5674 (linux_init_abi): Register linux_read_core_file_mappings.
5675
5676 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5677
5678 * arch-utils.c (default_read_core_file_mappings): New function.
5679 * arch-utils.c (default_read_core_file_mappings): Declare.
5680 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5681 * gdbarch.h, gdbarch.c: Regenerate.
5682
5683 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5684
5685 PR corefiles/25631
5686 * corelow.c (core_target:xfer_partial): Revise
5687 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5688 case after first checking the stratum beneath the core
5689 target.
5690 (has_all_memory): Return true.
5691 * target.c (raw_memory_xfer_partial): Revise comment
5692 regarding use of has_all_memory.
5693
5694 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5695
5696 * exec.h (section_table_xfer_memory): Revise declaration,
5697 replacing section name parameter with an optional callback
5698 predicate.
5699 * exec.c (section_table_xfer_memory): Likewise.
5700 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5701 of section_table_xfer_memory.
5702
5703 2020-07-22 Tom Tromey <tromey@adacore.com>
5704
5705 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5706 lookup_symbol_search_name.
5707
5708 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5711 redundant local variable.
5712 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5713 reference, not pointer, update code accordingly.
5714
5715 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5716 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5717
5718 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5719 * jit.c (jit_breakpoint_re_set_internal): Use the
5720 `skip_jit_symbol_lookup` field.
5721
5722 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5723 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5724
5725 * jit.c (jit_read_descriptor): Define the descriptor address once,
5726 use twice.
5727 (jit_breakpoint_deleted): Move the declaration of the loop variable
5728 `iter` into the loop header.
5729 (jit_breakpoint_re_set_internal): Move the declaration of the local
5730 variable `objf_data` to the first point of definition.
5731 (jit_event_handler): Move the declaration of local variables
5732 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5733 Rename `objf` to `jited`.
5734
5735 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5738 Remove.
5739 * jit.c (get_jiter_objfile_data): Update.
5740
5741 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5742 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * jit.c (struct jit_program_space_data): Remove.
5745 (jit_program_space_key): Remove.
5746 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5747 stuff.
5748 (get_jit_program_space_data): Remove.
5749 (jit_breakpoint_deleted): Iterate on all of the program space's
5750 objfiles.
5751 (jit_inferior_init): Likewise.
5752 (jit_breakpoint_re_set_internal): Likewise. Also change return
5753 type to void.
5754 (jit_breakpoint_re_set): Pass current_program_space to
5755 jit_breakpoint_re_set_internal.
5756
5757 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5758
5759 * jit.h (struct jiter_objfile_data) <cached_code_address,
5760 jit_breakpoint>: Move to here from ...
5761 * jit.c (jit_program_space_data): ... here.
5762 (jiter_objfile_data::~jiter_objfile_data): Update.
5763 (jit_breakpoint_deleted): Update.
5764 (jit_breakpoint_re_set_internal): Update.
5765
5766 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5769 checks.
5770 (jit_read_descriptor): Remove NULL check.
5771 (jit_event_handler): Add an assertion.
5772
5773 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5774
5775 * jit.h (struct jit_objfile_data): Split into...
5776 (struct jiter_objfile_data): ... this ...
5777 (struct jited_objfile_data): ... and this.
5778 * objfiles.h (struct objfile) <jit_data>: Remove.
5779 <jiter_data, jited_data>: New fields.
5780 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5781 (jiter_objfile_data::~jiter_objfile_data): ... this.
5782 (get_jit_objfile_data): Rename to ...
5783 (get_jiter_objfile_data): ... this.
5784 (add_objfile_entry): Update.
5785 (jit_read_descriptor): Use get_jiter_objfile_data.
5786 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5787 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5788 (jit_inferior_exit_hook): Use objfile's jited_data field.
5789
5790 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * jit.h: Forward-declare `struct minimal_symbol`.
5793 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5794 constructor, destructor, and an objfile* field.
5795 * jit.c (jit_objfile_data): Remove.
5796 (struct jit_objfile_data): Migrate from here to jit.h.
5797 (jit_objfile_data::~jit_objfile_data): New destructor
5798 implementation with code moved from free_objfile_data.
5799 (free_objfile_data): Delete.
5800 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5801 (jit_find_objf_with_entry_addr): Ditto.
5802 (jit_inferior_exit_hook): Ditto.
5803 (_initialize_jit): Remove the call to
5804 register_objfile_data_with_cleanup.
5805 * objfiles.h (struct objfile) <jit_data>: New field.
5806
5807 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5808
5809 * jit.h: Forward-declare `struct objfile`.
5810 (jit_event_handler): Add a second parameter, the JITer objfile.
5811 * jit.c (jit_read_descriptor): Change the signature to take the
5812 JITer objfile as an argument instead of the jit_program_space_data.
5813 (jit_inferior_init): Update the call to jit_read_descriptor.
5814 (jit_event_handler): Use the new JITer objfile argument when calling
5815 jit_read_descriptor.
5816 * breakpoint.c (handle_jit_event): Update the call to
5817 jit_event_handler to pass the JITer objfile.
5818
5819 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5820
5821 * gdbarch.c: Regenerate.
5822 * gdbarch.h: Regenerate.
5823 * gdbarch.sh (handle_segmentation_fault): Remove method.
5824 * infrun.c (handle_segmentation_fault): Remove.
5825 (print_signal_received_reason): Remove call to
5826 handle_segmentation_fault.
5827
5828 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5829
5830 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5831 Rename to sparc64_linux_report_signal_info and add siggnal
5832 argument.
5833 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5834 instead of sparc64_linux_handle_segmentation_fault.
5835
5836 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5837
5838 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5839 i386_linux_report_signal_info instead of
5840 i386_linux_handle_segmentation_fault.
5841 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5842 to i386_linux_report_signal_info and add siggnal argument.
5843 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5844 of i386_linux_handle_segmentation_fault.
5845 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5846 to i386_linux_report_signal_info and add siggnal argument.
5847
5848 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5849
5850 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5851 hook if present.
5852
5853 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5854
5855 * gdbarch.c: Regenerate.
5856 * gdbarch.h: Regenerate.
5857 * gdbarch.sh (report_signal_info): New method.
5858 * infrun.c (print_signal_received_reason): Invoke gdbarch
5859 report_signal_info hook if present.
5860
5861 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5862
5863 * python/py-registers.c : Add 'unordered_map' include.
5864 (gdbpy_new_reggroup): Renamed to...
5865 (gdbpy_get_reggroup): ...this. Update to only create register
5866 group descriptors when needed.
5867 (gdbpy_reggroup_iter_next): Update.
5868
5869 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5870
5871 * python/py-registers.c (gdbpy_register_object_data): New static
5872 global.
5873 (gdbpy_register_object_data_init): New function.
5874 (gdbpy_new_register_descriptor): Renamed to...
5875 (gdbpy_get_register_descriptor): ...this, and update to reuse
5876 existing register descriptors where possible.
5877 (gdbpy_register_descriptor_iter_next): Update.
5878 (gdbpy_initialize_registers): Register new gdbarch data.
5879
5880 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * linux-nat.c (stopped_pids): Make static.
5883
5884 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 PR ada/26235
5887 * gdbtypes.c (ada_discrete_type_low_bound,
5888 ada_discrete_type_high_bound): Handle undefined bounds.
5889
5890 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5891
5892 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5893 declaration.
5894 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5895 function.
5896
5897 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5898
5899 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5900 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5901 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5902 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5903 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5904 method.
5905
5906 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5907
5908 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5909 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5910 which are deprecated in Guile 3.0.
5911 * configure.ac (try_guile_versions): Add "guile-3.0".
5912 * configure (try_guile_versions): Regenerate.
5913 * NEWS: Update entry.
5914
5915 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5916 Doug Evans <dje@google.com>
5917
5918 PR gdb/21104
5919 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5920 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5921 USING_GUILE_BEFORE_2_2.
5922 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5923 Change type to 'scm_t_port_type *'.
5924 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5925 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5926 parameter and honor it. Update callers.
5927 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5928 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5929 functions.
5930 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5931 USING_GUILE_BEFORE_2_2.
5932 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5933 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5934 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5935 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5936 and 'SCM_PORT_TYPE'.
5937 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5938 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5939 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5940 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5941 [!USING_GUILE_BEFORE_2_2]: New functions.
5942 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5943 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5944 'gdbscm_memory_port_read'.
5945 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5946 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5947 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5948 function.
5949 (ioscm_init_memory_port): Remove.
5950 (ioscm_init_memory_port_stream): New function
5951 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5952 function.
5953 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5954 Return scm_from_uint (0).
5955 (gdbscm_set_memory_port_read_buffer_size_x)
5956 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5957 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5958 Return scm_from_uint (0).
5959 (gdbscm_set_memory_port_write_buffer_size_x)
5960 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5961 * configure.ac (try_guile_versions): Add "guile-2.2".
5962 * configure: Regenerate.
5963 * NEWS: Add entry.
5964
5965 2020-07-18 Tom Tromey <tom@tromey.com>
5966
5967 * linux-nat.c (linux_multi_process): Remove.
5968 (linux_nat_target::supports_multi_process): Return true.
5969
5970 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5973 (riscv_lookup_target_description): Return pointer out of
5974 unique_ptr.
5975 * target-descriptions.c (allocate_target_description): Add
5976 comment.
5977 (target_desc_deleter::operator()): Likewise.
5978 * target-descriptions.h (struct target_desc_deleter): Moved to
5979 gdbsupport/tdesc.h.
5980 (target_desc_up): Likewise.
5981
5982 2020-07-17 Tom Tromey <tromey@adacore.com>
5983
5984 * linux-nat.c (linux_nat_target::supports_non_stop)
5985 (linux_nat_target::always_non_stop_p): Use "true".
5986 (linux_nat_target::supports_disable_randomization): Use "true" and
5987 "false".
5988
5989 2020-07-16 Caroline Tice <cmtice@google.com>
5990
5991 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5992 (RNGLIST_HEADER_SIZE64): New constant definition.
5993 (struct dwop_section_names): Add rnglists_dwo.
5994 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5995 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5996 (struct dwo_sections): Add rnglists field.
5997 (read_attribut_reprocess): Add tag parameter.
5998 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5999 (cu_debug_rnglists_section): New function (decl & definition).
6000 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6001 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6002 die whose range is being checked; get rnglist section from
6003 cu_debug_rnglists_section, to get from either objfile or dwo file as
6004 appropriate. Add cases for DW_RLE_base_addressx,
6005 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6006 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6007 test inside if-condition and updating complaint message.
6008 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6009 dwarf2_rnglists_process.
6010 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6011 dwarf2_ranges_process.
6012 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6013 need_ranges_base and update comment appropriately. Also pass die tag
6014 to dwarf2_ranges_read.
6015 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6016 need_ranges_base and update comment appropriately. Also pass die tag
6017 to dwarf2_ranges_process.
6018 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6019 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6020 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6021 need_ranges_base and update comment appropriately. Also pass die tag
6022 to read_attribute_reprocess and dwarf2_ranges_read.
6023 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6024 and update function comment appropriately.
6025 (read_loclist_index): Call read_loclists_rnglists_header instead of
6026 read_loclist_header.
6027 (read_rnglist_index): New function.
6028 (read_attribute_reprocess): Add tag parameter. Add code for
6029 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6030 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6031
6032 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6035 being resolved.
6036
6037 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * arch-utils.c (show_architecture): Update formatting of messages.
6040
6041 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6042
6043 * gdbtypes.h (struct type) <bounds>: Handle array and string
6044 types.
6045 * ada-lang.c (assign_aggregate): Use type::bounds on
6046 array/string type.
6047 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6048 * c-varobj.c (c_number_of_children): Likewise.
6049 (c_describe_child): Likewise.
6050 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6051 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6052 (f_type_print_base): Likewise.
6053 * f-valprint.c (f77_array_offset_tbl): Likewise.
6054 (f77_get_upperbound): Likewise.
6055 (f77_print_array_1): Likewise.
6056 * guile/scm-type.c (gdbscm_type_range): Likewise.
6057 * m2-typeprint.c (m2_array): Likewise.
6058 (m2_is_long_set_of_type): Likewise.
6059 * m2-valprint.c (get_long_set_bounds): Likewise.
6060 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6061 * python/py-type.c (typy_range): Likewise.
6062 * rust-lang.c (rust_internal_print_type): Likewise.
6063 * type-stack.c (type_stack::follow_types): Likewise.
6064 * valarith.c (value_subscripted_rvalue): Likewise.
6065 * valops.c (value_cast): Likewise.
6066
6067 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6070 callers to use the equivalent accessor methods.
6071
6072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6075 (struct type) <bit_stride>: New method.
6076 (TYPE_BIT_STRIDE): Remove.
6077 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6078
6079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6082 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6083 callers to use the equivalent accessor methods instead.
6084
6085 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6088 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6089 callers to use the equivalent accessor methods instead.
6090
6091 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6094 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6095 to use dynamic_prop::kind.
6096
6097 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6100 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6101 to get the bound property's kind and check against
6102 PROP_UNDEFINED.
6103
6104 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6105
6106 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6107 all callers to use type::range_bounds followed by
6108 dynamic_prop::{low,high}.
6109
6110 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6113 const_val, set_const_val, baton, set_locexpr, set_loclist,
6114 set_addr_offset, variant_parts, set_variant_parts,
6115 original_type, set_original_type>: New methods.
6116 <kind>: Rename to...
6117 <m_kind>: ... this. Update all users to use the new methods
6118 instead.
6119 <data>: Rename to...
6120 <m_data>: ... this. Update all users to use the new methods
6121 instead.
6122
6123 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * gdbtypes.c (get_discrete_bounds): Return failure if
6126 the range type's bounds are not both defined and constant
6127 values.
6128 (get_array_bounds): Update comment. Remove undefined bound check.
6129
6130 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6133 the type::bounds method directly.
6134
6135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6138 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6139 are used to set the range type's bounds to use set_bounds.
6140
6141 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6142
6143 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6144
6145 2020-07-10 Pedro Alves <pedro@palves.net>
6146
6147 * gdbthread.h (inferior_ref): Define.
6148 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6149 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6150 * thread.c
6151 (scoped_restore_current_thread::restore):
6152 Adjust to gdb::ref_ptr.
6153 (scoped_restore_current_thread::~scoped_restore_current_thread):
6154 Remove manual decref handling.
6155 (scoped_restore_current_thread::scoped_restore_current_thread):
6156 Adjust to use
6157 inferior_ref::new_reference/thread_info_ref::new_reference.
6158 Incref the thread before calling get_frame_id instead of after.
6159 Let TARGET_CLOSE_ERROR propagate.
6160
6161 2020-07-10 Pedro Alves <pedro@palves.net>
6162
6163 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6164 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6165 NOT_AVAILABLE_ERROR.
6166 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6167 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6168
6169 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6170 Pedro Alves <pedro@palves.net>
6171
6172 PR gdb/26199
6173 * infrun.c (threads_are_resumed_pending_p): Delete.
6174 (do_target_wait): Remove threads_are_executing and
6175 threads_are_resumed_pending_p checks from the inferior_matches
6176 lambda. Update comments.
6177
6178 2020-07-10 Pedro Alves <pedro@palves.net>
6179
6180 PR gdb/26199
6181 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6182 executing threads.
6183
6184 2020-07-10 Pedro Alves <pedro@palves.net>
6185
6186 PR gdb/26199
6187 * infrun.c (handle_no_resumed): Handle multiple targets.
6188
6189 2020-07-10 Pedro Alves <pedro@palves.net>
6190
6191 PR gdb/26199
6192 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6193 target_is_async_p.
6194
6195 2020-07-10 Pedro Alves <pedro@palves.net>
6196
6197 PR gdb/26199
6198 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6199 threads, not all threads.
6200
6201 2020-07-10 Pedro Alves <pedro@palves.net>
6202
6203 PR gdb/26199
6204 * remote.c (remote_target::open_1): Pass remote target pointer as
6205 data to create_async_event_handler.
6206 (remote_async_inferior_event_handler): Mark async event handler
6207 before returning if the remote target still has either pending
6208 events or unacknowledged notifications.
6209
6210 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6211
6212 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6213 declaration.
6214 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6215 function.
6216
6217 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6218
6219 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6220 inferior_ptid.
6221
6222 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6223
6224 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6225 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6226 AT_FREEBSD_PS_STRINGS.
6227
6228 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6229
6230 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6231 of debugfile path on Windows.
6232
6233 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6234
6235 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6236 argument to 'data'.
6237
6238 2020-07-08 Tom Tromey <tromey@adacore.com>
6239
6240 * ada-lang.c (ada_exception_message_1): Use read_memory.
6241
6242 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6243
6244 PR python/22748
6245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6246 special handling for inline frames.
6247 * findvar.c (value_of_register_lazy): Skip inline frames when
6248 creating lazy register values.
6249 * frame.c (frame_id_computed_p): Delete definition.
6250 * frame.h (frame_id_computed_p): Delete declaration.
6251
6252 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * NEWS: Mention additions to Python API.
6255 * python/py-arch.c (archpy_register_groups): New function.
6256 (arch_object_methods): Add 'register_groups' method.
6257 * python/py-registers.c (reggroup_iterator_object): New struct.
6258 (reggroup_object): New struct.
6259 (gdbpy_new_reggroup): New function.
6260 (gdbpy_reggroup_to_string): New function.
6261 (gdbpy_reggroup_name): New function.
6262 (gdbpy_reggroup_iter): New function.
6263 (gdbpy_reggroup_iter_next): New function.
6264 (gdbpy_new_reggroup_iterator): New function
6265 (gdbpy_initialize_registers): Register new types.
6266 (reggroup_iterator_object_type): Define new Python type.
6267 (gdbpy_reggroup_getset): New static global.
6268 (reggroup_object_type): Define new Python type.
6269 * python/python-internal.h
6270
6271 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6274 * python/py-arch.c (archpy_registers): New function.
6275 (arch_object_methods): Add 'registers' method.
6276 * python/py-registers.c: New file.
6277 * python/python-internal.h
6278 (gdbpy_new_register_descriptor_iterator): Declare.
6279 (gdbpy_initialize_registers): Declare.
6280 * python/python.c (do_start_initialization): Call
6281 gdbpy_initialize_registers.
6282 * NEWS: Mention additions to the Python API.
6283
6284 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * NEWS: Mention new Python API method.
6287 * python/py-unwind.c (pending_framepy_architecture): New function.
6288 (pending_frame_object_methods): Add architecture method.
6289
6290 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6291
6292 * gdbarch.c: Regenerate.
6293 * gdbarch.h: Regenerate.
6294 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6295 (gdbarch_data): Use internal_error for the case where
6296 deprecated_set_gdbarch_data was originally needed.
6297 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6298 and use passed in obstack.
6299 (libunwind_frame_set_descr): Should no longer get back NULL from
6300 gdbarch_data.
6301 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6302 type.
6303 * user-regs.c (user_regs_init): Update parameters, and use passed
6304 in obstack.
6305 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6306 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6307
6308 2020-07-06 Tom de Vries <tdevries@suse.de>
6309
6310 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6311 End-Of-Sequence in lte_is_less_than.
6312 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6313 "gdb: Don't reorder line table entries too much when sorting".
6314
6315 2020-07-06 Tom de Vries <tdevries@suse.de>
6316
6317 PR tui/26205
6318 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6319
6320 2020-07-05 Tom de Vries <tdevries@suse.de>
6321
6322 PR build/26187
6323 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6324 std::uncaught_exceptions instead of deprecated
6325 std::uncaught_exception.
6326
6327 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * macroexp.h (macro_stringify): Return
6330 gdb::unique_xmalloc_ptr<char>.
6331 * macroexp.c (macro_stringify): Likewise.
6332 * macrotab.c (fixup_definition): Update.
6333
6334 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6337 (lex_one_token): Update.
6338 * macroexp.c (struct macro_buffer) <release>: Return
6339 gdb::unique_xmalloc_ptr<char>.
6340 (macro_stringify): Update.
6341 (macro_expand): Update.
6342 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6343 * macroexp.h (macro_expand_next): Likewise.
6344
6345 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * macroexp.h (macro_lookup_ftype): Remove.
6348 (macro_expand, macro_expand_once, macro_expand_next): Remove
6349 lookup function parameters, add scope parameter.
6350 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6351 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6352 * macroscope.h (standard_macro_lookup): Change parameter type
6353 to macro_scope.
6354 * macroscope.c (standard_macro_lookup): Likewise.
6355 * c-exp.y (lex_one_token): Update.
6356 * macrocmd.c (macro_expand_command): Likewise.
6357 (macro_expand_once_command): Likewise.
6358
6359 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * inf-loop.c (inferior_event_handler): Remove client_data param.
6362 * inf-loop.h (inferior_event_handler): Likewise.
6363 * infcmd.c (step_1): Adjust.
6364 * infrun.c (proceed): Adjust.
6365 (fetch_inferior_event): Remove client_data param.
6366 (infrun_async_inferior_event_handler): Adjust.
6367 * infrun.h (fetch_inferior_event): Remove `void *` param.
6368 * linux-nat.c (handle_target_event): Adjust.
6369 * record-btrace.c (record_btrace_handle_async_inferior_event):
6370 Adjust.
6371 * record-full.c (record_full_async_inferior_event_handler):
6372 Adjust.
6373 * remote.c (remote_async_inferior_event_handler): Adjust.
6374
6375 2020-07-01 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6378 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6379
6380 2020-07-01 Tom Tromey <tom@tromey.com>
6381
6382 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6383 tui_gen_win_info.
6384 (tui_win_info::make_window): Merge with
6385 tui_gen_win_info::make_window.
6386 (tui_win_info::make_visible): Move from tui_gen_win_info.
6387 * tui/tui-win.c (tui_win_info::max_width): Move from
6388 tui_gen_win_info.
6389 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6390 type.
6391 <window_factory>: Likewise.
6392 * tui/tui-layout.c (tui_win_info::resize): Move from
6393 tui_gen_win_info.
6394 (make_standard_window): Change return type.
6395 (get_locator_window, tui_get_window_by_name): Likewise.
6396 (tui_layout_window::apply): Remove a cast.
6397 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6398 (struct tui_win_info): Merge with tui_gen_win_info.
6399 (struct tui_gen_win_info): Remove.
6400
6401 2020-07-01 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-stack.h (struct tui_locator_window): Derive from
6404 tui_win_info.
6405 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6406 <can_box>: New method.
6407
6408 2020-07-01 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6411
6412 2020-07-01 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-regs.c (tui_data_window::display_registers_from)
6415 (tui_data_window::display_registers_from)
6416 (tui_data_window::first_data_item_displayed)
6417 (tui_data_window::delete_data_content_windows): Update.
6418 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6419 Remove.
6420 (tui_data_window::check_register_values): Update.
6421 (tui_data_item_window::rerender): Add parameters. Update.
6422 (tui_data_item_window::refresh_window): Remove.
6423 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6424 virtual.
6425 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6426 tui_gen_win_info.
6427 <refresh_window, max_height, min_height>: Remove.
6428 <rerender>: Add parameters.
6429 <x, y, visible>: New members.
6430 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6431 <m_item_width>: New member.
6432
6433 2020-07-01 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-regs.c (tui_data_window::show_register_group)
6436 (tui_data_window::check_register_values): Update.
6437 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6438 from item_no.
6439
6440 2020-07-01 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6443 useless "if".
6444
6445 2020-07-01 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6448 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6449
6450 2020-07-01 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6453 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6454 (struct tui_line_or_address): Move from tui-data.h.
6455 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6456 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6457 (tui_cmd_window, tui_source_window_base, tui_source_window)
6458 (tui_disasm_window): Don't declare.
6459 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6460 to tui-winsource.h.
6461 (SINGLE_KEY): Move to tui-stack.c.
6462
6463 2020-07-01 Tom Tromey <tom@tromey.com>
6464
6465 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6466 std::string.
6467 * tui/tui-regs.c (class tab_expansion_file): New.
6468 (tab_expansion_file::write): New method.
6469 (tui_register_format): Change return type. Use
6470 tab_expansion_file.
6471 (tui_get_register, tui_data_window::display_registers_from)
6472 (tui_data_item_window::rerender): Update.
6473 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6474 * tui/tui-io.c (tui_expand_tabs): Remove.
6475
6476 2020-07-01 Tom Tromey <tom@tromey.com>
6477
6478 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6479
6480 2020-07-01 Fangrui Song <maskray@google.com>
6481
6482 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6483
6484 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6485
6486 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6487 forms for DW_AT_associated and DW_AT_allocated attributes,
6488 which is already checked in function attr_to_dynamic_prop.
6489
6490 2020-06-30 Tom Tromey <tromey@adacore.com>
6491
6492 * dwarf2/read.c (quirk_rust_enum): Correctly call
6493 alloc_rust_variant for default-less enum.
6494
6495 2020-06-30 Tom Tromey <tromey@adacore.com>
6496
6497 PR build/26183:
6498 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6499 gdb::to_string.
6500
6501 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6504 * gdbarch.h: Re-generate.
6505
6506 2020-06-28 Tom Tromey <tom@tromey.com>
6507
6508 * command.h (cmd_types): Remove.
6509 (cmd_type): Don't declare.
6510 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6511 typedef.
6512 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6513 * cli/cli-decode.c (cmd_type): Remove.
6514
6515 2020-06-27 Pedro Alves <palves@redhat.com>
6516
6517 * fork-child.c (prefork_hook): Adjust.
6518 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6519 Delete.
6520 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6521 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6522 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6523 Remove declarations.
6524 (struct inferior) <set_tty, tty>: New methods.
6525 (struct inferior) <terminal>: Rename to ...
6526 (struct inferior) <m_terminal>: ... this and make private.
6527 * main.c (captured_main_1): Adjust.
6528 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6529 (mi_cmd_inferior_tty_show): Adjust.
6530 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6531 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6532
6533 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6534
6535 * configure.ac: Add --enable-libctf: handle --disable-static
6536 properly.
6537 * acinclude.m4: sinclude ../config/enable.m4.
6538 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6539 (LIBCTF): Substitute in.
6540 (CTF_DEPS): New, likewise.
6541 (CLIBS): libctf needs symbols from libbfd: move earlier.
6542 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6543 flags.
6544 * ctfread.c: Surround in ENABLE_LIBCTF.
6545 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6546 * configure: Regenerate.
6547 * config.in: Likewise.
6548
6549 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6550
6551 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6552
6553 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * inferior.h (struct inferior) <terminal>: Change type to
6556 gdb::unique_xmalloc_ptr<char>.
6557 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6558 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6559 field, adjust to unique pointer.
6560 (get_inferior_io_terminal): Adjust to unique pointer.
6561
6562 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6565 registers, not just the known core set of registers.
6566
6567 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6570 fflags, frm, and fcsr registers.
6571 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6572 restore groups.
6573 (riscv_tdesc_unknown_reg): New function.
6574 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6575 tdesc_use_registers.
6576 * riscv-tdep.h (struct gdbarch_tdep): Add
6577 unknown_csrs_first_regnum, unknown_csrs_count,
6578 duplicate_fflags_regnum, duplicate_frm_regnum, and
6579 duplicate_fcsr_regnum fields.
6580
6581 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6584 callback, use the callback (when not null) to help number unknown
6585 registers.
6586 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6587 (tdesc_use_registers): Add extra parameter to declaration.
6588
6589 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6592 in the file.
6593 (class riscv_pending_register_alias): Likewise.
6594 (riscv_register_feature::register_info): Change 'required_p' field
6595 to 'required', and change its type. Add 'check' member function.
6596 (riscv_register_feature::register_info::check): Define new member
6597 function.
6598 (riscv_xreg_feature): Change initialisation of 'required' field.
6599 (riscv_freg_feature): Likewise.
6600 (riscv_virtual_feature): Likewise.
6601 (riscv_csr_feature): Likewise.
6602 (riscv_check_tdesc_feature): Take extra parameter, the csr
6603 tdesc_feature, rewrite the function to use the new
6604 riscv_register_feature::register_info::check function.
6605 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6606
6607 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * features/Makefile: Remove all references to the deleted files
6610 below.
6611 * features/riscv/32bit-csr.c: Deleted.
6612 * features/riscv/32bit-csr.xml: Deleted.
6613 * features/riscv/64bit-csr.c: Deleted.
6614 * features/riscv/64bit-csr.xml: Deleted.
6615 * features/riscv/rebuild-csr-xml.sh: Deleted.
6616
6617 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6620 whitespace error for declaration of names member variable.
6621 (struct riscv_register_feature): Add new prefer_first_name member
6622 variable, and fix whitespace error in declaration of registers.
6623 (riscv_xreg_feature): Initialize prefer_first_name field.
6624 (riscv_freg_feature): Likewise.
6625 (riscv_virtual_feature): Likewise.
6626 (riscv_csr_feature): Likewise.
6627 (riscv_register_name): Expand on comments. Remove register name
6628 modifications for CSR and virtual registers.
6629
6630 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6633 errors.
6634
6635 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6638 riscv-opc.h.
6639 (class riscv_pending_register_alias): New class.
6640 (riscv_check_tdesc_feature): Take vector of pending aliases and
6641 populate it as appropriate.
6642 (riscv_setup_register_aliases): Delete.
6643 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6644 to riscv_check_tdesc_feature in all cases. Use the vector to
6645 create the register aliases.
6646
6647 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6648
6649 * sol2-tdep.c (sol2_static_transform_name): Remove.
6650 (sol2_init_abi): Don't register it.
6651 * gdbarch.sh (static_transform_name): Remove.
6652 * gdbarch.c, gdbarch.h: Regenerate.
6653
6654 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6655 gdbarch_static_transform_name.
6656 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6657 * stabsread.c (define_symbol) <'X'>: Remove.
6658 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6659 handling.
6660 <'V'>: Likewise.
6661 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6662 <'S'>: Remove call to gdbarch_static_transform_name.
6663
6664 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6665
6666 * procfs.c (procfs_pre_trace): New function.
6667 (procfs_target::create_inferior): Pass it to fork_inferior.
6668
6669 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6670
6671 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6672 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6673 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6674 sol2-tdep.o, sparc-sol2-tdep.o.
6675 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6676 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6677 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6678 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6679
6680 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6681
6682 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6683 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6684 Call sol2_init_abi.
6685 Remove calls to set_gdbarch_skip_solib_resolver,
6686 set_gdbarch_core_pid_to_str.
6687 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6688 (i386_sol2_static_transform_name): Remove.
6689 (i386_sol2_init_abi): Call sol2_init_abi.
6690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6691 set_gdbarch_static_transform_name,
6692 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6693 Use sol2_sigtramp_p.
6694 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6695 (sol2_sigtramp_p): New function.
6696 (sol2_static_transform_name): New function.
6697 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6698 (sol2_init_abi): New function.
6699 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6700 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6701 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6702 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6703 (sparc_sol2_static_transform_name): Remove.
6704 (sparc32_sol2_init_abi): Call sol2_init_abi.
6705 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6706 set_gdbarch_static_transform_name,
6707 set_gdbarch_skip_solib_resolver,
6708 set_gdbarch_core_pid_to_str.
6709 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6710 (sparc_sol2_static_transform_name): Remove
6711 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6712 call sol2_sigtramp_p.
6713 (sparc64_sol2_init_abi): Call sol2_init_abi.
6714 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6715 set_gdbarch_static_transform_name,
6716 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6717
6718 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6719
6720 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6721 * exec.c (validate_exec_file): If from_tty, set both
6722 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6723 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6724 and from_tty, unconditionally ask a confirmation.
6725
6726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6727
6728 * target-descriptions.c (tdesc_architecture_name): Protect against
6729 NULL pointer dereference.
6730 (maint_print_xml_tdesc_cmd): New function.
6731 (_initialize_target_descriptions): Register new 'maint print
6732 xml-tdesc' command and give it the filename completer.
6733 * NEWS: Mention new 'maint print xml-tdesc' command.
6734
6735 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * target-descriptions.c (class tdesc_compatible_info): New class.
6738 (struct target_desc): Change type of compatible vector.
6739 (tdesc_compatible_p): Update for change in type of
6740 target_desc::compatible.
6741 (tdesc_compatible_info_list): New function.
6742 (tdesc_compatible_info_arch_name): New function.
6743 (tdesc_add_compatible): Update for change in type of
6744 target_desc::compatible.
6745 (print_c_tdesc::visit_pre): Likewise.
6746
6747 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6750 whitespace to underscore.
6751 (maint_print_c_tdesc_cmd): Use fake filename for target
6752 descriptions that came from the target.
6753 (_initialize_target_descriptions): Add filename command completion
6754 for 'maint print c-tdesc'.
6755
6756 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6759 lines.
6760
6761 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6762
6763 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6764 lines.
6765 (dwarf2_find_location_expression): Likewise.
6766 (call_site_parameter_matches): Likewise.
6767 (dwarf2_compile_expr_to_ax): Likewise.
6768 (disassemble_dwarf_expression): Likewise.
6769 (loclist_describe_location): Likewise.
6770
6771 2020-06-23 Pedro Alves <palves@redhat.com>
6772
6773 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6774 progspace-and-thread.h. Include scoped-mock-context.h instead.
6775 (register_to_value_test): Use scoped_mock_context.
6776 * regcache.c: Include "scoped-mock-context.h".
6777 (cooked_read_test): Don't error out if a target is already pushed.
6778 Use scoped_mock_context. Adjust.
6779 * scoped-mock-context.h: New file.
6780
6781 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6784 initializer.
6785 (ada_language::is_string_type_p): New member function.
6786 * c-lang.c (c_language_data): Delete la_is_string_type_p
6787 initializer.
6788 (cplus_language_data): Likewise.
6789 (asm_language_data): Likewise.
6790 (minimal_language_data): Likewise.
6791 * d-lang.c (d_language_data): Likewise.
6792 * f-lang.c (f_is_string_type_p): Delete function, implementation
6793 moved to f_language::is_string_type_p.
6794 (f_language_data): Delete la_is_string_type_p initializer.
6795 (f_language::is_string_type_p): New member function,
6796 implementation from f_is_string_type_p.
6797 * go-lang.c (go_is_string_type_p): Delete function, implementation
6798 moved to go_language::is_string_type_p.
6799 (go_language_data): Delete la_is_string_type_p initializer.
6800 (go_language::is_string_type_p): New member function,
6801 implementation from go_is_string_type_p.
6802 * language.c (language_defn::is_string_type_p): Define new member
6803 function.
6804 (default_is_string_type_p): Make static, add comment copied from
6805 header file.
6806 (unknown_language_data): Delete la_is_string_type_p initializer.
6807 (unknown_language::is_string_type_p): New member function.
6808 (auto_language_data): Delete la_is_string_type_p initializer.
6809 (auto_language::is_string_type_p): New member function.
6810 * language.h (language_data): Delete la_is_string_type_p field.
6811 (language_defn::is_string_type_p): Declare new function.
6812 (default_is_string_type_p): Delete desclaration, move comment to
6813 definition.
6814 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6815 moved to m2_language::is_string_type_p.
6816 (m2_language_data): Delete la_is_string_type_p initializer.
6817 (m2_language::is_string_type_p): New member function,
6818 implementation from m2_is_string_type_p.
6819 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6820 initializer.
6821 * opencl-lang.c (opencl_language_data): Likewise.
6822 * p-lang.c (pascal_is_string_type_p): Delete function,
6823 implementation moved to pascal_language::is_string_type_p.
6824 (pascal_language_data): Delete la_is_string_type_p initializer.
6825 (pascal_language::is_string_type_p): New member function,
6826 implementation from pascal_is_string_type_p.
6827 * rust-lang.c (rust_is_string_type_p): Delete function,
6828 implementation moved to rust_language::is_string_type_p.
6829 (rust_language_data): Delete la_is_string_type_p initializer.
6830 (rust_language::is_string_type_p): New member function,
6831 implementation from rust_is_string_type_p.
6832 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6833 is_string_type_p.
6834
6835 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6836
6837 * ada-lang.c (ada_language_data): Delete la_print_typedef
6838 initializer.
6839 (ada_language::print_typedef): New member function.
6840 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6841 (cplus_language_data): Likewise.
6842 (asm_language_data): Likewise.
6843 (minimal_language_data): Likewise.
6844 * d-lang.c (d_language_data): Likewise.
6845 * f-lang.c (f_language_data): Likewise.
6846 (f_language::print_typedef): New member function.
6847 * go-lang.c (go_language_data): Delete la_print_typedef
6848 initializer.
6849 * language.c (language_defn::print_typedef): Define member
6850 function.
6851 (unknown_language_data): Delete la_print_typedef initializer.
6852 (unknown_language::print_typedef): New member function.
6853 (auto_language_data): Delete la_print_typedef initializer.
6854 (auto_language::print_typedef): New member function.
6855 * language.h (language_data): Delete la_print_typedef field.
6856 (language_defn::print_typedef): Declare new member function.
6857 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6858 (default_print_typedef): Delete declaration.
6859 * m2-lang.c (m2_language_data): Delete la_print_typedef
6860 initializer.
6861 (m2_language::print_typedef): New member function.
6862 * objc-lang.c (objc_language_data): Delete la_print_typedef
6863 initializer.
6864 * opencl-lang.c (opencl_language_data): Likewise.
6865 * p-lang.c (pascal_language_data): Likewise.
6866 (pascal_language::print_typedef): New member function.
6867 * rust-lang.c (rust_print_typedef): Delete function,
6868 implementation moved to rust_language::print_typedef.
6869 (rust_language): Delete la_print_typedef initializer.
6870 (rust_language::print_typedef): New member function,
6871 implementation from rust_print_typedef.
6872 * typeprint.c (default_print_typedef): Delete.
6873
6874 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6877 (ada_language::printstr): New member function.
6878 * c-lang.c (c_language_data): Delete la_printstr initializer.
6879 (cplus_language_data): Likewise.
6880 (asm_language_data): Likewise.
6881 (minimal_language_data): Likewise.
6882 * d-lang.c (d_language_data): Likewise.
6883 * f-lang.c (f_printstr): Rename to f_language::printstr.
6884 (f_language_data): Delete la_printstr initializer.
6885 (f_language::printstr): New member function, implementation from
6886 f_printstr.
6887 * go-lang.c (go_language_data): Delete la_printstr initializer.
6888 * language.c (language_defn::printstr): Define new member
6889 function.
6890 (unk_lang_printstr): Delete.
6891 (unknown_language_data): Delete la_printstr initializer.
6892 (unknown_language::printstr): New member function.
6893 (auto_language_data): Delete la_printstr initializer.
6894 (auto_language::printstr): New member function.
6895 * language.h (language_data): Delete la_printstr field.
6896 (language_defn::printstr): Declare new member function.
6897 (LA_PRINT_STRING): Update call to printstr.
6898 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6899 (m2_language_data): Delete la_printstr initializer.
6900 (m2_language::printstr): New member function, implementation from
6901 m2_printstr.
6902 * objc-lang.c (objc_language_data): Delete la_printstr
6903 initializer.
6904 * opencl-lang.c (opencl_language_data): Likewise.
6905 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6906 (pascal_language_data): Delete la_printstr initializer.
6907 (pascal_language::printstr): New member function, implementation
6908 from pascal_printstr.
6909 * p-lang.h (pascal_printstr): Delete declaration.
6910 * rust-lang.c (rust_printstr): Update header comment.
6911 (rust_language_data): Delete la_printstr initializer.
6912 (rust_language::printstr): New member function.
6913
6914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6917 (ada_language::printchar): New member function.
6918 * c-lang.c (c_language_data): Delete la_printchar initializer.
6919 (cplus_language_data): Likewise.
6920 (asm_language_data): Likewise.
6921 (minimal_language_data): Likewise.
6922 * d-lang.c (d_language_data): Likewise.
6923 * f-lang.c (f_printchar): Rename to f_language::printchar.
6924 (f_language_data): Delete la_printchar initializer.
6925 (f_language::printchar): New member function, implementation from
6926 f_printchar.
6927 * go-lang.c (go_language_data): Delete la_printchar initializer.
6928 * language.c (unk_lang_printchar): Delete.
6929 (language_defn::printchar): Define new member function.
6930 (unknown_language_data): Delete la_printchar initializer.
6931 (unknown_language::printchar): New member function.
6932 (auto_language_data): Delete la_printchar initializer.
6933 (auto_language::printchar): New member function.
6934 * language.h (language_data): Delete la_printchar field.
6935 (language_defn::printchar): Declare new member function.
6936 (LA_PRINT_CHAR): Update call to printchar.
6937 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6938 (m2_language::printchar): New member function.
6939 * objc-lang.c (objc_language_data): Delete la_printchar
6940 initializer.
6941 * opencl-lang.c (opencl_language_data): Likewise.
6942 * p-lang.c (pascal_language_data): Delete la_printchar
6943 initializer.
6944 (pascal_language::printchar): New member function.
6945 * rust-lang.c (rust_printchar): Rename to
6946 rust_language::printchar.
6947 (rust_language_data): Delete la_printchar initializer.
6948 (rust_language::printchar): New member function, implementation
6949 from rust_printchar.
6950
6951 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6954 (ada_language_data): Delete la_emitchar initializer.
6955 (ada_language::emitchar): New member function, implementation from
6956 emit_char.
6957 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6958 (cplus_language_data): Likewise.
6959 (asm_language_data): Likewise.
6960 (minimal_language_data): Likewise.
6961 * d-lang.c (d_language_data): Likewise.
6962 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6963 (f_language_data): Delete la_emitchar initializer.
6964 (f_language::emitchar): New member function, implementation from
6965 f_emit_char.
6966 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6967 * language.c (unk_lang_emit_char): Delete.
6968 (language_defn::emitchar): New member function definition.
6969 (unknown_language_data): Delete la_emitchar initializer.
6970 (unknown_language::emitchar): New member function.
6971 (auto_language_data): Delete la_emitchar initializer.
6972 (auto_language::emitchar): New member function.
6973 * language.h (language_data): Delete la_emitchar field.
6974 (language_defn::emitchar): New member field declaration.
6975 (LA_EMIT_CHAR): Update call to emitchar.
6976 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6977 (m2_language_data): Delete la_emitchar initializer.
6978 (m2_language::emitchar): New member function, implementation from
6979 m2_emit_char.
6980 * objc-lang.c (objc_language_data): Delete la_emitchar
6981 initializer.
6982 * opencl-lang.c (opencl_language_data): Likewise.
6983 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6984 (pascal_language_data): Delete la_emitchar initializer.
6985 (pascal_language::emitchar): New member function, implementation
6986 from pascal_emit_char.
6987 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6988 (rust_language_data): Delete la_emitchar initializer.
6989 (rust_language::emitchar): New member function, implementation
6990 from rust_emitchar.
6991
6992 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6995 (ada_language_data): Delete la_post_parser initializer.
6996 (ada_language::post_parser): New member function.
6997 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6998 (cplus_language_data): Likewise.
6999 (asm_language_data): Likewise.
7000 (minimal_language_data): Likewise.
7001 * d-lang.c (d_language_data): Likewise.
7002 * f-lang.c (f_language_data): Likewise.
7003 * go-lang.c (go_language_data): Likewise.
7004 * language.c (unknown_language_data): Likewise.
7005 (auto_language_data): Likewise.
7006 * language.h (language_data): Delete la_post_parser field.
7007 (language_defn::post_parser): New member function.
7008 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7009 * objc-lang.c (objc_language_data): Likewise.
7010 * opencl-lang.c (opencl_language_data): Likewise.
7011 * p-lang.c (pascal_language_data): Likewise.
7012 * parse.c (parse_exp_in_context): Update call to post_parser.
7013 (null_post_parser): Delete definition.
7014 * parser-defs.h (null_post_parser): Delete declaration.
7015 * rust-lang.c (rust_language_data): Delete la_post_parser
7016 initializer.
7017
7018 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7019
7020 * ada-lang.c (parse): Rename to ada_language::parser.
7021 (ada_language_data): Delete la_parser initializer.
7022 (ada_language::parser): New member function, implementation from
7023 parse.
7024 * c-lang.c (c_language_data): Delete la_parser initializer.
7025 (cplus_language_data): Likewise.
7026 (asm_language_data): Likewise.
7027 (minimal_language_data): Likewise.
7028 * d-lang.c (d_language_data): Likewise.
7029 (d_language::parser): New member function.
7030 * f-lang.c (f_language_data): Delete la_parser initializer.
7031 (f_language::parser): New member function.
7032 * go-lang.c (go_language_data): Delete la_parser initializer.
7033 (go_language::parser): New member function.
7034 * language.c (unk_lang_parser): Delete.
7035 (language_defn::parser): Define new member function.
7036 (unknown_language_data): Delete la_parser initializer.
7037 (unknown_language::parser): New member function.
7038 (auto_language_data): Delete la_parser initializer.
7039 (auto_language::parser): New member function.
7040 * language.h (language_data): Delete la_parser field.
7041 (language_defn::parser): Declare new member function.
7042 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7043 (m2_language::parser): New member function.
7044 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7045 * opencl-lang.c (opencl_language_data): Likewise.
7046 * p-lang.c (pascal_language_data): Likewise.
7047 (pascal_language::parser): New member function.
7048 * parse.c (parse_exp_in_context): Update call to parser.
7049 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7050 (rust_language::parser): New member function.
7051
7052 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7053
7054 * top.c (print_gdb_configuration): Print --with-python-libdir
7055 configuration value.
7056
7057 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7058
7059 * NEWS: Mention change to the alias command.
7060
7061 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7062
7063 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7064 (alias_command_completer)
7065 (make_alias_options_def_group): New functions.
7066 (alias_opts, alias_option_defs): New struct and array.
7067 (alias_usage_error): Update usage.
7068 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7069 Use option framework.
7070 (_initialize_cli_cmds): Update alias command help.
7071 Update aliases command help.
7072 (show_user):
7073 Add NULL for new default_args lookup_cmd argument.
7074 (valid_command_p): Rename to validate_aliased_command.
7075 Add NULL for new default_args lookup_cmd argument. Verify that the
7076 aliased_command has no default args.
7077 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7078 (lookup_cmd_1, lookup_cmd): New argument default_args.
7079 (add_alias_cmd):
7080 Add NULL for new default_args lookup_cmd argument.
7081 (print_help_for_command): Show default args under the layout
7082 alias some_alias = some_aliased_cmd some_alias_default_arg.
7083 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7084 xfree default_args in destructor.
7085 * cli/cli-script.c (process_next_line, do_define_command):
7086 Add NULL for new default_args lookup_cmd argument.
7087 * command.h: Declare new default_args argument in lookup_cmd
7088 and lookup_cmd_1.
7089 * completer.c (complete_line_internal_1):
7090 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7091 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7092 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7093 Likewise.
7094 * infcmd.c (_initialize_infcmd): Likewise.
7095 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7096 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7097 * python/py-param.c (add_setshow_generic): Likewise.
7098 * remote.c (_initialize_remote): Likewise.
7099 * top.c (execute_command): Prepend default_args if command has some.
7100 (set_verbose):
7101 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7102 * tracepoint.c (validate_actionline, encode_actions_1):
7103 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7104
7105 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7106
7107 * jit.c (jit_read_descriptor): Use bool as the return type.
7108 (jit_breakpoint_re_set_internal): Use bool as the return type.
7109 Invert the return value logic; return true if the jit breakpoint
7110 has been successfully initialized.
7111 (jit_inferior_init): Update the call to
7112 jit_breakpoint_re_set_internal.
7113
7114 2020-06-22 Pedro Alves <palves@redhat.com>
7115
7116 PR gdb/25939
7117 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7118 Use the current inferior instead. Don't return
7119 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7120 wait again.
7121 * sol-thread.c (sol_thread_target::wait): Don't reference
7122 inferior_ptid.
7123 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7124 (sol_update_thread_list_callback): Use the current inferior's pid
7125 instead of inferior_ptid.
7126
7127 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7128
7129 * procfs.c: Cleanup many comments.
7130
7131 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7132 (AFTER_WATCHFLAG): Replace by value.
7133
7134 (MAIN_PROC_NAME_FORMAT): Inline ...
7135 (create_procinfo): ... here.
7136
7137 (procfs_debug_inferior): Remove SYS_exec handling.
7138 (syscall_is_exec): Likewise.
7139 (procfs_set_exec_trap): Likewise.
7140
7141 (syscall_is_lwp_exit): Inline in callers.
7142 (syscall_is_exit): Likewise.
7143 (syscall_is_exec): Likewise.
7144 (syscall_is_lwp_create): Likewise.
7145
7146 (invalidate_cache): Remove #if 0 code.
7147
7148 (make_signal_thread_runnable): Remove.
7149 (procfs_target::resume): Remove #if 0 code.
7150
7151 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7152
7153 PR gdb/25939
7154 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7155 call ...
7156 (procfs_target::create_inferior): ... here.
7157
7158 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7159
7160 * exec.c (validate_exec_file): Ensure the build-id is up to
7161 date by calling reopen_exec_file (that checks file timestamp
7162 to decide to re-read the file).
7163
7164 2020-06-18 Pedro Alves <palves@redhat.com>
7165
7166 PR gdb/25412
7167 * gdbthread.h (delete_thread, delete_thread_silent)
7168 (find_thread_ptid): Update comments.
7169 * thread.c (current_thread_): New global.
7170 (is_current_thread): Move higher, and reimplement.
7171 (inferior_thread): Reimplement.
7172 (set_thread_exited): Use bool. Add assertions.
7173 (add_thread_silent): Simplify thread-reuse handling by always
7174 calling delete_thread.
7175 (delete_thread): Remove intro comment.
7176 (find_thread_ptid): Skip exited threads.
7177 (switch_to_thread_no_regs): Write to current_thread_.
7178 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7179 INFERIOR_PTID. Clear current_thread_.
7180
7181 2020-06-18 Pedro Alves <palves@redhat.com>
7182
7183 * aix-thread.c (pd_update): Use switch_to_thread.
7184
7185 2020-06-18 Pedro Alves <palves@redhat.com>
7186
7187 * ravenscar-thread.c (ravenscar_thread_target): Update.
7188 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7189 (ravenscar_thread_target::add_active_thread): ... this. Don't
7190 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7191 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7192
7193 2020-06-18 Pedro Alves <palves@redhat.com>
7194
7195 * nat/windows-nat.c (current_windows_thread): Remove.
7196 * nat/windows-nat.h (current_windows_thread): Remove.
7197 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7198 Adjust.
7199 (display_selectors): Adjust to fetch the current
7200 windows_thread_info based on inferior_ptid.
7201 (fake_create_process): No longer write to current_windows_thread.
7202 (windows_nat_target::get_windows_debug_event):
7203 Don't set inferior_ptid or current_windows_thread.
7204 (windows_nat_target::wait): Adjust to not rely on
7205 current_windows_thread.
7206 (do_initial_windows_stuff): Now a method of windows_nat_target.
7207 Switch to the last_ptid thread.
7208 (windows_nat_target::attach): Adjust.
7209 (windows_nat_target::detach): Use switch_to_no_thread instead of
7210 writing to inferior_ptid directly.
7211 (windows_nat_target::create_inferior): Adjust.
7212
7213 2020-06-18 Pedro Alves <palves@redhat.com>
7214
7215 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7216
7217 2020-06-18 Pedro Alves <palves@redhat.com>
7218
7219 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7220 after creating it, instead of writing to inferior_ptid. Don't
7221 write to inferior_ptid.
7222
7223 2020-06-18 Pedro Alves <palves@redhat.com>
7224
7225 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7226
7227 2020-06-18 Pedro Alves <palves@redhat.com>
7228
7229 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7230 it, instead of writing to inferior_ptid.
7231
7232 2020-06-18 Pedro Alves <palves@redhat.com>
7233
7234 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7235 to inferior_ptid.
7236
7237 2020-06-18 Pedro Alves <palves@redhat.com>
7238
7239 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7240 instead of writing to inferior_ptid directly.
7241
7242 2020-06-18 Pedro Alves <palves@redhat.com>
7243
7244 * corelow.c (core_target::close): Use switch_to_no_thread instead
7245 of writing to inferior_ptid directly.
7246 (add_to_thread_list, core_target_open): Use switch_to_thread
7247 instead of writing to inferior_ptid directly.
7248
7249 2020-06-18 Pedro Alves <palves@redhat.com>
7250
7251 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7252 inferior_ptid.
7253 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7254 inferior_ptid.
7255 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7256 inferior_ptid directly.
7257 (darwin_nat_target::init_thread_list): Switch to thread, instead
7258 of writing to inferior_ptid.
7259 (darwin_nat_target::attach): Don't write to inferior_ptid.
7260 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7261
7262 2020-06-18 Pedro Alves <palves@redhat.com>
7263
7264 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7265 thread.
7266 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7267 Instead use switch_to_thread.
7268 (gnu_nat_target::detach): Use switch_to_no_thread
7269 instead of writing to inferior_ptid directly. Used passed-in
7270 inferior instead of looking up the inferior by pid.
7271
7272 2020-06-18 Pedro Alves <palves@redhat.com>
7273
7274 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7275 inferior_ptid.
7276
7277 2020-06-18 Pedro Alves <palves@redhat.com>
7278
7279 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7280 inferior_ptid.
7281 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7282 thread.
7283 (nto_procfs_target::detach): Avoid referencing
7284 inferior_ptid. Use switch_to_no_thread instead of writing to
7285 inferior_ptid directly.
7286 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7287 instead of writing to inferior_ptid directly.
7288 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7289 to thread.
7290
7291 2020-06-18 Pedro Alves <palves@redhat.com>
7292
7293 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7294 after creating it, instead of writing to inferior_ptid.
7295 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7296 to inferior_ptid directly.
7297 (gdbsim_target::wait): Don't write to inferior_ptid.
7298
7299 2020-06-18 Pedro Alves <palves@redhat.com>
7300
7301 * remote.c (remote_target::remote_notice_new_inferior): Use
7302 switch_to_thread instead of writing to inferior_ptid directly.
7303 (remote_target::add_current_inferior_and_thread): Use
7304 switch_to_no_thread instead of writing to inferior_ptid directly.
7305 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7306 and switch_to_thread instead of using set_current_inferior or
7307 writing to inferior_ptid directly.
7308
7309 2020-06-18 Pedro Alves <palves@redhat.com>
7310
7311 * tracectf.c (ctf_target_open): Switch to added thread instead of
7312 writing to inferior_ptid directly.
7313 (ctf_target::close): Use switch_to_no_thread instead of writing to
7314 inferior_ptid directly.
7315
7316 2020-06-18 Pedro Alves <palves@redhat.com>
7317
7318 * tracefile-tfile.c (tfile_target_open): Don't write to
7319 inferior_ptid directly, instead switch to added thread.
7320 (tfile_target::close): Use switch_to_no_thread instead of writing
7321 to inferior_ptid directly.
7322
7323 2020-06-18 Pedro Alves <palves@redhat.com>
7324
7325 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7326 (procfs_target::detach): Use switch_to_no_thread
7327 instead of writing to inferior_ptid directly.
7328 (do_attach): Change return type to void. Switch to the added
7329 thread.
7330 (procfs_target::create_inferior): Switch to the added thread.
7331 (procfs_do_thread_registers): Don't write to inferior_ptid.
7332
7333 2020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7336 of writing to inferior_ptid.
7337 (scoped_restore_exited_inferior): Delete.
7338 (handle_vfork_child_exec_or_exit): Simplify using
7339 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7340 instead of writing to inferior_ptid.
7341 (THREAD_STOPPED_BY): Delete.
7342 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7343 (thread_stopped_by_hw_breakpoint): Delete.
7344 (save_waitstatus): Use
7345 scoped_restore_current_thread+switch_to_thread, and call
7346 target_stopped_by_watchpoint instead of
7347 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7348 instead of thread_stopped_by_sw_breakpoint, and
7349 target_stopped_by_hw_breakpoint instead of
7350 thread_stopped_by_hw_breakpoint.
7351 (handle_inferior_event)
7352 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7353 inferior_ptid directly, nor
7354 set_current_inferior/set_current_program_space. Use
7355 switch_to_thread / switch_to_inferior_no_thread instead.
7356
7357 2020-06-18 Pedro Alves <palves@redhat.com>
7358
7359 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7360 instead of writing to inferior_ptid.
7361
7362 2020-06-18 Pedro Alves <palves@redhat.com>
7363
7364 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7365 added thread.
7366 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7367 to the added thread.
7368 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7369 instead of writing to inferior_ptid.
7370
7371 2020-06-18 Pedro Alves <palves@redhat.com>
7372
7373 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7374 (register_to_value_test): Mock a program_space too. Heap-allocate
7375 the address space. Don't write to inferior_ptid. Use
7376 switch_to_thread instead.
7377
7378 2020-06-18 Pedro Alves <palves@redhat.com>
7379
7380 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7381 Delete.
7382 (find_signalled_thread()): New, factored out from
7383 linux_make_corefile_notes and adjusted to handle exited threads.
7384 (linux_make_corefile_notes): Adjust to use the new
7385 find_signalled_thread.
7386
7387 2020-06-18 Pedro Alves <palves@redhat.com>
7388
7389 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7390 of saving/restoring inferior_ptid.
7391
7392 2020-06-17 Tom Tromey <tom@tromey.com>
7393
7394 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7395 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7396 declare.
7397 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7398
7399 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7400
7401 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7402 of partial symtabs.
7403
7404 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * regformats/reg-arm.dat: Remove.
7407 * regformats/reg-bfin.dat: Remove.
7408 * regformats/reg-cris.dat: Remove.
7409 * regformats/reg-crisv32.dat: Remove.
7410 * regformats/reg-m32r.dat: Remove.
7411 * regformats/reg-tilegx.dat: Remove.
7412 * regformats/reg-tilegx32.dat: Remove.
7413
7414 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * features/Makefile (WHICH): Remove arm files.
7417 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7418 * regformats/arm/arm-with-neon.dat: Remove.
7419 * regformats/arm/arm-with-vfpv2.dat: Remove.
7420 * regformats/arm/arm-with-vfpv3.dat: Remove.
7421
7422 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7423
7424 * features/Makefile (XMLTOC): Remove rx.xml.
7425
7426 2020-06-17 Pedro Alves <palves@redhat.com>
7427
7428 * gdbthread.h (thread_control_state) <trap_expected> Update
7429 comments.
7430
7431 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7432
7433 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7434 ada_language::lookup_symbol_nonlocal.
7435 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7436 (ada_language::lookup_symbol_nonlocal): New member function,
7437 implementation from ada_lookup_symbol_nonlocal.
7438 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7439 initializer.
7440 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7441 initializer.
7442 (cplus_language::lookup_symbol_nonlocal): New member function.
7443 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7444 (minimal_language_data) Likewise.
7445 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7446 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7447 initializer.
7448 (d_language::lookup_symbol_nonlocal): New member function.
7449 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7450 initializer.
7451 (f_language::lookup_symbol_nonlocal): New member function.
7452 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7453 initializer.
7454 * language.c (unknown_language_data): Likewise.
7455 (auto_language_data): Likewise.
7456 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7457 field.
7458 (language_defn::lookup_symbol_nonlocal): New member function.
7459 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7460 initializer.
7461 * objc-lang.c (objc_language_data): Likewise.
7462 * opencl-lang.c (opencl_language_data): Likewise.
7463 * p-lang.c (pascal_language_data): Likewise.
7464 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7465 rust_language::lookup_symbol_nonlocal.
7466 (rust_language_data): Delete la_lookup_symbol_nonlocal
7467 initializer.
7468 (rust_language::lookup_symbol_nonlocal): New member function,
7469 implementation from rust_lookup_symbol_nonlocal.
7470 * symtab.c (lookup_symbol_aux): Update call to
7471 lookup_symbol_nonlocal.
7472 (basic_lookup_symbol_nonlocal): Rename to...
7473 (language_defn::lookup_symbol_nonlocal): ...this, and update
7474 header comment. Remove language_defn parameter, and replace with
7475 uses of `this'.
7476 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7477
7478 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7479
7480 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7481 initializer.
7482 (ada_language::value_print_inner): New member function.
7483 * c-lang.c (c_language_data): Delete la_value_print_inner
7484 initializer.
7485 (cplus_language_data): Likewise.
7486 (asm_language_data): Likewise.
7487 (minimal_language_data): Likewise.
7488 * d-lang.c (d_language_data): Likewise.
7489 (d_language::value_print_inner): New member function.
7490 * f-lang.c (f_language_data): Delete la_value_print_inner
7491 initializer.
7492 (f_language::value_print_inner): New member function.
7493 * f-lang.h (f_value_print_innner): Rename to...
7494 (f_value_print_inner): ...this (note spelling of 'inner').
7495 * f-valprint.c (f_value_print_innner): Rename to...
7496 (f_value_print_inner): ...this (note spelling of 'inner').
7497 * go-lang.c (go_language_data): Delete la_value_print_inner
7498 initializer.
7499 (go_language::value_print_inner): New member function.
7500 * language.c (language_defn::value_print_inner): Define new member
7501 function.
7502 (unk_lang_value_print_inner): Delete.
7503 (unknown_language_data): Delete la_value_print_inner initializer.
7504 (unknown_language::value_print_inner): New member function.
7505 (auto_language_data): Delete la_value_print_inner initializer.
7506 (auto_language::value_print_inner): New member function.
7507 * language.h (language_data): Delete la_value_print_inner field.
7508 (language_defn::value_print_inner): Delcare new member function.
7509 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7510 initializer.
7511 (m2_language::value_print_inner): New member function.
7512 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7513 initializer.
7514 * opencl-lang.c (opencl_language_data): Likewise.
7515 * p-lang.c (pascal_language_data): Likewise.
7516 (pascal_language::value_print_inner): New member function.
7517 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7518 initializer.
7519 (rust_language::value_print_inner): New member function.
7520 * valprint.c (do_val_print): Update call to value_print_inner.
7521
7522 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * ada-lang.c (ada_language_data): Delete la_value_print
7525 initializer.
7526 (ada_language::value_print): New member function.
7527 * c-lang.c (c_language_data): Delete la_value_print initializer.
7528 (cplus_language_data): Likewise.
7529 (asm_language_data): Likewise.
7530 (minimal_language_data): Likewise.
7531 * d-lang.c (d_language_data): Likewise.
7532 * f-lang.c (f_language_data): Likewise.
7533 * go-lang.c (go_language_data): Likewise.
7534 * language.c (unk_lang_value_print): Delete.
7535 (language_defn::value_print): Define new member function.
7536 (unknown_language_data): Delete la_value_print initializer.
7537 (unknown_language::value_print): New member function.
7538 (auto_language_data): Delete la_value_print initializer.
7539 (auto_language::value_print): New member function.
7540 * language.h (language_data): Delete la_value_print field.
7541 (language_defn::value_print): Declare new member function.
7542 (LA_VALUE_PRINT): Update call to value_print.
7543 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7544 * objc-lang.c (objc_language_data): Likewise.
7545 * opencl-lang.c (opencl_language_data): Likewise.
7546 * p-lang.c (pascal_language_data): Likewise.
7547 (pascal_language::value_print): New member function.
7548 * rust-lang.c (rust_language_data): Delete la_value_print
7549 initializer.
7550
7551 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * ada-lang.c (ada_watch_location_expression): Rename to
7554 ada_language::watch_location_expression.
7555 (ada_language_data): Delete la_watch_location_expression
7556 initializer.
7557 (ada_language::watch_location_expression): New member function,
7558 implementation from ada_watch_location_expression.
7559 * breakpoint.c (watch_command_1): Update call to
7560 watch_location_expression.
7561 * c-lang.c (c_watch_location_expression): Rename to
7562 language_defn::watch_location_expression.
7563 (c_language_data): Delete la_watch_location_expression
7564 initializer.
7565 (cplus_language_data): Likewise.
7566 (asm_language_data): Likewise.
7567 (minimal_language_data): Likewise.
7568 * c-lang.h (c_watch_location_expression): Delete declaration.
7569 * d-lang.c (d_language_data): Delete la_watch_location_expression
7570 initializer.
7571 * f-lang.c (f_language_data): Likewise.
7572 * go-lang.c (go_language_data): Likewise.
7573 * language.c (language_defn::watch_location_expression): Member
7574 function implementation from c_watch_location_expression.
7575 (unknown_language_data): Delete la_watch_location_expression
7576 initializer.
7577 (auto_language_data): Likewise.
7578 * language.h (language_data): Delete la_watch_location_expression
7579 field.
7580 (language_defn::watch_location_expression): Declare new member
7581 function.
7582 * m2-lang.c (m2_language_data): Delete
7583 la_watch_location_expression initializer.
7584 * objc-lang.c (objc_language_data): Likewise.
7585 * opencl-lang.c (opencl_language_data): Likewise.
7586 * p-lang.c (pascal_language_data): Likewise.
7587 * rust-lang.c (rust_watch_location_expression): Rename to
7588 rust_language::watch_location_expression.
7589 (rust_language_data): Delete la_watch_location_expression
7590 initializer.
7591 (rust_language::watch_location_expression): New member function,
7592 implementation from rust_watch_location_expression.
7593
7594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7597 ada_language::collect_symbol_completion_matches.
7598 (ada_language_data): Delete la_collect_symbol_completion_matches
7599 initializer.
7600 (ada_language::collect_symbol_completion_matches): New member
7601 function, implementation from
7602 ada_collect_symbol_completion_matches.
7603 * c-lang.c (c_language_data): Delete
7604 la_collect_symbol_completion_matches initializer.
7605 (cplus_language_data): Likewise.
7606 (asm_language_data): Likewise.
7607 (minimal_language_data): Likewise.
7608 * d-lang.c (d_language_data): Likewise.
7609 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7610 f_language::collect_symbol_completion_matches.
7611 (f_language_data): Delete la_collect_symbol_completion_matches
7612 initializer.
7613 (f_language::collect_symbol_completion_matches) New member
7614 function, implementation from f_collect_symbol_completion_matches.
7615 * go-lang.c (go_language_data): Delete
7616 la_collect_symbol_completion_matches initializer.
7617 * language.c (unknown_language_data): Likewise.
7618 (auto_language_data): Likewise.
7619 * language.h (language_data): Delete
7620 la_collect_symbol_completion_matches field.
7621 (language_defn::collect_symbol_completion_matches): New member
7622 function.
7623 * m2-lang.c (m2_language_data): Delete
7624 la_collect_symbol_completion_matches initializer.
7625 * objc-lang.c (objc_language_data): Likewise.
7626 * opencl-lang.c (opencl_language_data): Likewise.
7627 * p-lang.c (pascal_language_data): Likewise.
7628 * rust-lang.c (rust_language_data): Likewise.
7629 * symtab.c (default_collect_symbol_completion_matches): Delete.
7630 (collect_symbol_completion_matches): Update call to
7631 collect_symbol_completion_matches.
7632 (collect_symbol_completion_matches_type): Likewise.
7633 * symtab.h (default_collect_symbol_completion_matches): Delete
7634 declaration.
7635
7636 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7639 (ada_language_data): Delete la_word_break_characters initializer.
7640 (ada_language::word_break_characters): New member function.
7641 * c-lang.c (c_language_data): Delete la_word_break_characters
7642 initializer.
7643 (cplus_language_data): Likewise.
7644 (asm_language_data): Likewise.
7645 (minimal_language_data): Likewise.
7646 * completer.c: Update global comment.
7647 (advance_to_expression_complete_word_point): Update call to
7648 word_break_characters.
7649 (complete_files_symbols): Likewise.
7650 (complete_line_internal_1): Likewise.
7651 (default_completer_handle_brkchars): Likewise.
7652 (skip_quoted_chars): Likewise.
7653 * d-lang.c (d_language_data): Delete la_word_break_characters
7654 initializer.
7655 * f-lang.c (f_word_break_characters): Delete.
7656 (f_language_data): Delete la_word_break_characters initializer.
7657 (f_language::word_break_characters): New member function.
7658 * go-lang.c (go_language_data): Delete la_word_break_characters
7659 initializer.
7660 * language.c (unknown_language_data): Likewise.
7661 (auto_language_data): Likewise.
7662 * language.h (default_word_break_characters): Move declaration to
7663 earlier in the file.
7664 (language_data): Delete la_word_break_characters field.
7665 (language_defn::word_break_characters): New member function.
7666 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7667 initializer.
7668 * objc-lang.c (objc_language_data): Likewise.
7669 * opencl-lang.c (opencl_language_data): Likewise.
7670 * p-lang.c (pascal_language_data): Likewise.
7671 * rust-lang.c (rust_language_data): Likewise.
7672
7673 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7674
7675 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7676 (ada_language_data): Delete la_get_symbol_name_matcher
7677 initializer.
7678 (language_defn::get_symbol_name_matcher_inner): New member
7679 function.
7680 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7681 initializer.
7682 (cplus_language_data): Likewise.
7683 (cplus_language::get_symbol_name_matcher_inner): New member
7684 function.
7685 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7686 (minimal_language_data): Likewise.
7687 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7688 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7689 initializer.
7690 * dictionary.c (iter_match_first_hashed): Update call to
7691 get_symbol_name_matcher.
7692 (iter_match_next_hashed): Likewise.
7693 (iter_match_next_linear): Likewise.
7694 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7695 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7696 initializer.
7697 (f_language::get_symbol_name_matcher_inner): New member function.
7698 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7699 initializer.
7700 * language.c (default_symbol_name_matcher): Update header comment,
7701 make static.
7702 (language_defn::get_symbol_name_matcher): New definition.
7703 (language_defn::get_symbol_name_matcher_inner): Likewise.
7704 (get_symbol_name_matcher): Delete.
7705 (unknown_language_data): Delete la_get_symbol_name_matcher
7706 initializer.
7707 (auto_language_data): Likewise.
7708 * language.h (language_data): Delete la_get_symbol_name_matcher
7709 field.
7710 (language_defn::get_symbol_name_matcher): New member function.
7711 (language_defn::get_symbol_name_matcher_inner): Likewise.
7712 (default_symbol_name_matcher): Delete declaration.
7713 * linespec.c (find_methods): Update call to
7714 get_symbol_name_matcher.
7715 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7716 initializer.
7717 * minsyms.c (lookup_minimal_symbol): Update call to
7718 get_symbol_name_matcher.
7719 (iterate_over_minimal_symbols): Likewise.
7720 * objc-lang.c (objc_language_data): Delete
7721 la_get_symbol_name_matcher initializer.
7722 * opencl-lang.c (opencl_language_data): Likewise.
7723 * p-lang.c (pascal_language_data): Likewise.
7724 * psymtab.c (psymbol_name_matches): Update call to
7725 get_symbol_name_matcher.
7726 * rust-lang.c (rust_language_data): Delete
7727 la_get_symbol_name_matcher initializer.
7728 * symtab.c (symbol_matches_search_name): Update call to
7729 get_symbol_name_matcher.
7730 (compare_symbol_name): Likewise.
7731
7732 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 * ada-lang.c (ada_language_data): Delete la_compute_program
7735 initializer.
7736 * c-lang.c (c_language_data): Likewise.
7737 (c_language::compute_program): New member function.
7738 (cplus_language_data): Delete la_compute_program initializer.
7739 (cplus_language::compute_program): New member function.
7740 (asm_language_data): Delete la_compute_program initializer.
7741 (minimal_language_data): Likewise.
7742 * c-lang.h (c_compute_program): Update comment.
7743 (cplus_compute_program): Likewise.
7744 * compile/compile-c-support.c (c_compute_program): Likewise.
7745 (cplus_compute_program): Likewise.
7746 * compile/compile.c (compile_to_object): Update call to
7747 la_compute_program.
7748 * d-lang.c (d_language_data): Delete la_compute_program
7749 initializer.
7750 * f-lang.c (f_language_data): Likewise.
7751 * go-lang.c (go_language_data): Likewise.
7752 * language.c (unknown_language_data): Likewise.
7753 (auto_language_data): Likewise.
7754 * language.h (language_data): Delete la_compute_program field.
7755 (language_defn::compute_program): New member function.
7756 * m2-lang.c (m2_language_data): Delete la_compute_program
7757 initializer.
7758 * objc-lang.c (objc_language_data): Likewise.
7759 * opencl-lang.c (opencl_language_data): Likewise.
7760 * p-lang.c (pascal_language_data): Likewise.
7761 * rust-lang.c (rust_language_data): Likewise.
7762
7763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * ada-lang.c (ada_language_data) Delete
7766 la_class_name_from_physname initializer.
7767 * c-lang.c (c_language_data): Likewise.
7768 (cplus_language_data): Likewise.
7769 (cplus_language::class_name_from_physname): New member function.
7770 (asm_language_data): Delete la_class_name_from_physname
7771 initializer.
7772 (minimal_language_data): Likewise.
7773 * d-lang.c (d_language_data): Likewise.
7774 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7775 method on language_defn class.
7776 (guess_full_die_structure_name): Likewise.
7777 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7778 initializer.
7779 * go-lang.c (go_language_data): Likewise.
7780 * language.c (language_class_name_from_physname): Delete.
7781 (unk_lang_class_name): Delete.
7782 (unknown_language_data): Delete la_class_name_from_physname
7783 initializer.
7784 (auto_language_data): Likewise.
7785 * language.h (language_data): Delete la_class_name_from_physname
7786 field.
7787 (language_defn::class_name_from_physname): New function.
7788 (language_class_name_from_physname): Delete declaration.
7789 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7790 initializer.
7791 * objc-lang.c (objc_language_data): Likewise.
7792 * opencl-lang.c (opencl_language_data): Likewise.
7793 * p-lang.c (pascal_language_data): Likewise.
7794 * rust-lang.c (rust_language_data): Likewise.
7795
7796 2020-06-16 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-data.h (STATUS_NAME): New macro.
7799 * tui/tui-layout.c (tui_remove_some_windows)
7800 (initialize_known_windows, tui_register_window)
7801 (tui_layout_split::remove_windows, initialize_layouts)
7802 (tui_new_layout_command): Don't use hard-coded window names.
7803
7804 2020-06-16 Tom Tromey <tom@tromey.com>
7805
7806 PR tui/25348:
7807 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7808 tui_initialize_readline. Only run once. Call rl_initialize.
7809 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7810 tui_initialize_readline.
7811 * tui/tui-io.c (tui_setup_io): Call
7812 tui_ensure_readline_initialized.
7813 * tui/tui-interp.c (tui_interp::init): Update.
7814
7815 2020-06-16 Tom Tromey <tom@tromey.com>
7816
7817 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7818 Also preserve the status window.
7819
7820 2020-06-16 Tom Tromey <tom@tromey.com>
7821
7822 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7823 where m_window==nullptr.
7824
7825 2020-06-15 Tom Tromey <tromey@adacore.com>
7826
7827 * windows-nat.c (windows_nat::handle_output_debug_string):
7828 Update.
7829 (windows_nat::handle_ms_vc_exception): Update.
7830 * target.h (target_read_string): Change API.
7831 * target.c (target_read_string): Change API.
7832 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7833 Update.
7834 * solib-frv.c (frv_current_sos): Update.
7835 * solib-dsbt.c (dsbt_current_sos): Update.
7836 * solib-darwin.c (darwin_current_sos): Update.
7837 * linux-thread-db.c (inferior_has_bug): Update.
7838 * expprint.c (print_subexp_standard): Update.
7839 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7840 (ada_exception_message_1): Update.
7841
7842 2020-06-15 Tom Tromey <tromey@adacore.com>
7843
7844 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7845
7846 2020-06-15 Tom Tromey <tromey@adacore.com>
7847
7848 * valprint.c (read_string): Update comment.
7849 * target.c (MIN): Remove.
7850 (target_read_string): Rewrite.
7851
7852 2020-06-15 Tom Tromey <tromey@adacore.com>
7853
7854 * corefile.c (read_memory_string): Remove.
7855 * ada-valprint.c (ada_value_print_ptr): Update.
7856 * ada-lang.h (ada_tag_name): Change return type.
7857 * ada-lang.c (type_from_tag): Update.
7858 (ada_tag_name_from_tsd): Change return type. Use
7859 target_read_string.
7860 (ada_tag_name): Likewise.
7861 * gdbcore.h (read_memory_string): Don't declare.
7862
7863 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7864
7865 * symtab.c (rbreak_command): Ignore Windows drive colon.
7866
7867 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * NEWS: Mention removed GDBserver host support.
7870
7871 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7872
7873 * features/riscv/rebuild-csr-xml.sh: Updated.
7874
7875 2020-06-11 Tom Tromey <tom@tromey.com>
7876
7877 PR gdb/18318:
7878 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7879
7880 2020-06-09 Jonny Grant <jg@jguk.org>
7881 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7882
7883 * main.c (captured_main_1): Don't print new line after help.
7884 (print_gdb_help): add mailing list and IRC channel information
7885 to --help. Add new lines between items in the footer. Remove
7886 quotes around bug url.
7887
7888 2020-06-11 Keith Seitz <keiths@redhat.com>
7889
7890 PR gdb/21356
7891 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7892 Resolve typedefs for type length calculations.
7893
7894 2020-06-10 Tom de Vries <tdevries@suse.de>
7895
7896 PR ada/24713
7897 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7898 (write_psymbols): Enable .gdb_index for ada.
7899 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7900 ada.
7901
7902 2020-06-10 Tom de Vries <tdevries@suse.de>
7903
7904 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7905 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7906 namei" instead of "const char *name" argument.
7907 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7908 dw2_symtab_iter_init.
7909
7910 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7913 to use type::field and field::type instead.
7914
7915 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7918 to use field::type instead.
7919
7920 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * gdbtypes.h (struct field) <type, set_type>: New methods.
7923 Rename `type` field to...
7924 <m_type>: ... this. Change references throughout to use type or
7925 set_type methods.
7926 (FIELD_TYPE): Use field::type. Change call sites that modify
7927 the field's type to use field::set_type instead.
7928
7929 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7932 to use type::index_type instead.
7933
7934 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7937 methods.
7938 (TYPE_INDEX_TYPE): Use type::index_type.
7939 * gdbtypes.c (create_array_type_with_stride): Likewise.
7940
7941 2020-06-07 Tom Tromey <tom@tromey.com>
7942
7943 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7944 parameter.
7945 (generic_value_print): Update.
7946
7947 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7948
7949 Revert commit 982a38f60b0.
7950 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7951
7952 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7953
7954 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7955 avoid use after free.
7956
7957 2020-06-05 Tom de Vries <tdevries@suse.de>
7958
7959 * NEWS: Fix typos.
7960
7961 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7964 the per_bfd object.
7965 (dwarf2_read_debug_names): Likewise.
7966 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7967 object when re-using a per_bfd object with an index.
7968
7969 2020-06-03 Tom de Vries <tdevries@suse.de>
7970
7971 PR symtab/26046
7972 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7973 children for C++.
7974 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7975 DW_TAG_subprogram.
7976
7977 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * ada-lang.c (ada_language_data): Delete skip_trampoline
7980 initializer.
7981 * c-lang.c (c_language_data): Likewise.
7982 (cplus_language_data): Likewise.
7983 (cplus_language::skip_trampoline): New member function.
7984 (asm_language_data): Delete skip_trampoline initializer.
7985 (minimal_language_data): Likewise.
7986 * d-lang.c (d_language_data): Likewise.
7987 * f-lang.c (f_language_data): Likewise.
7988 * go-lang.c (go_language_data): Likewise.
7989 * language.c (unk_lang_trampoline): Delete function.
7990 (skip_language_trampoline): Update.
7991 (unknown_language_data): Delete skip_trampoline initializer.
7992 (auto_language_data): Likewise.
7993 * language.h (language_data): Delete skip_trampoline field.
7994 (language_defn::skip_trampoline): New function.
7995 * m2-lang.c (m2_language_data): Delete skip_trampoline
7996 initializer.
7997 * objc-lang.c (objc_skip_trampoline): Delete function, move
7998 implementation to objc_language::skip_trampoline.
7999 (objc_language_data): Delete skip_trampoline initializer.
8000 (objc_language::skip_trampoline): New member function with
8001 implementation from objc_skip_trampoline.
8002 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8003 initializer.
8004 * p-lang.c (pascal_language_data): Likewise.
8005 * rust-lang.c (rust_language_data): Likewise.
8006
8007 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8010 (ada_language::demangle): New member function.
8011 * c-lang.c (c_language_data): Delete la_demangle initializer.
8012 (cplus_language_data): Delete la_demangle initializer.
8013 (cplus_language::demangle): New member function.
8014 (asm_language_data): Delete la_demangle initializer.
8015 (minimal_language_data): Delete la_demangle initializer.
8016 * d-lang.c (d_language_data): Delete la_demangle initializer.
8017 (d_language::demangle): New member function.
8018 * f-lang.c (f_language_data): Delete la_demangle initializer.
8019 (f_language::demangle): New member function.
8020 * go-lang.c (go_language_data): Delete la_demangle initializer.
8021 (go_language::demangle): New member function.
8022 * language.c (language_demangle): Update.
8023 (unk_lang_demangle): Delete.
8024 (unknown_language_data): Delete la_demangle initializer.
8025 (unknown_language::demangle): New member function.
8026 (auto_language_data): Delete la_demangle initializer.
8027 (auto_language::demangle): New member function.
8028 * language.h (language_data): Delete la_demangle field.
8029 (language_defn::demangle): New function.
8030 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8031 * objc-lang.c (objc_language_data): Delete la_demangle
8032 initializer.
8033 (objc_language::demangle): New member function.
8034 * opencl-lang.c (opencl_language_data): Delete la_demangle
8035 initializer.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 * rust-lang.c (rust_language_data): Likewise.
8038 (rust_language::demangle): New member function.
8039
8040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8041
8042 * ada-lang.c (ada_language_data): Delete la_print_type
8043 initializer.
8044 (ada_language::print_type): New member function.
8045 * c-lang.c (c_language_data): Delete la_print_type initializer.
8046 (c_language::print_type): New member function.
8047 (cplus_language_data): Delete la_print_type initializer.
8048 (cplus_language::print_type): New member function.
8049 (asm_language_data): Delete la_print_type initializer.
8050 (asm_language::print_type): New member function.
8051 (minimal_language_data): Delete la_print_type initializer.
8052 (minimal_language::print_type): New member function.
8053 * d-lang.c (d_language_data): Delete la_print_type initializer.
8054 (d_language::print_type): New member function.
8055 * f-lang.c (f_language_data): Delete la_print_type initializer.
8056 (f_language::print_type): New member function.
8057 * go-lang.c (go_language_data): Delete la_print_type initializer.
8058 (go_language::print_type): New member function.
8059 * language.c (unk_lang_print_type): Delete.
8060 (unknown_language_data): Delete la_print_type initializer.
8061 (unknown_language::print_type): New member function.
8062 (auto_language_data): Delete la_print_type initializer.
8063 (auto_language::print_type): New member function.
8064 * language.h (language_data): Delete la_print_type field.
8065 (language_defn::print_type): New function.
8066 (LA_PRINT_TYPE): Update.
8067 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8068 (m2_language::print_type): New member function.
8069 * objc-lang.c (objc_language_data): Delete la_print_type
8070 initializer.
8071 (objc_language::print_type): New member function.
8072 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8073 to opencl_language::print_type.
8074 (opencl_language_data): Delete la_print_type initializer.
8075 (opencl_language::print_type): New member function, implementation
8076 from opencl_print_type.
8077 * p-lang.c (pascal_language_data): Delete la_print_type
8078 initializer.
8079 (pascal_language::print_type): New member function.
8080 * rust-lang.c (rust_print_type): Delete, implementation moved to
8081 rust_language::print_type.
8082 (rust_language_data): Delete la_print_type initializer.
8083 (rust_language::print_type): New member function, implementation
8084 from rust_print_type.
8085
8086 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8087
8088 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8089 implementation moves to...
8090 (ada_language::sniff_from_mangled_name): ...here. Update return
8091 type.
8092 (ada_language_data): Delete la_sniff_from_mangled_name
8093 initializer.
8094 * c-lang.c (c_language_data): Likewise.
8095 (cplus_language_data): Likewise.
8096 (cplus_language::sniff_from_mangled_name): New member function,
8097 implementation taken from gdb_sniff_from_mangled_name.
8098 (asm_language_data): Delete la_sniff_from_mangled_name
8099 initializer.
8100 (minimal_language_data): Likewise.
8101 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8102 implementation moves to cplus_language::sniff_from_mangled_name.
8103 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8104 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8105 moves to...
8106 (d_language::sniff_from_mangled_name): ...here.
8107 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8108 * f-lang.c (f_language_data): Likewise.
8109 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8110 moves to...
8111 (go_language::sniff_from_mangled_name): ...here.
8112 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8113 * language.c (language_sniff_from_mangled_name): Delete.
8114 (unknown_language_data): Delete la_sniff_from_mangled_name
8115 initializer.
8116 (auto_language_data): Likewise.
8117 * language.h (language_data): Delete la_sniff_from_mangled_name
8118 field.
8119 (language_defn::sniff_from_mangled_name): New function.
8120 (language_sniff_from_mangled_name): Delete declaration.
8121 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8122 field.
8123 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8124 implementation moves to...
8125 (objc_language::sniff_from_mangled_name): ...here.
8126 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8127 * opencl-lang.c (opencl_language_data): Likewise.
8128 * p-lang.c (pascal_language_data): Likewise.
8129 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8130 implementation moves to...
8131 (rust_language::sniff_from_mangled_name): ...here.
8132 (rust_language_data): Delete la_sniff_from_mangled_name
8133 initializer.
8134 * symtab.c (symbol_find_demangled_name): Call
8135 sniff_from_mangled_name member function.
8136
8137 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8138
8139 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8140 initializer.
8141 * c-lang.c (c_language_data): Likewise.
8142 (cplus_language_data): Likewise.
8143 (cplus_language::search_name_hash): New member function.
8144 (asm_language_data): Delete la_search_name_hash initializer.
8145 (minimal_language_data): Likewise.
8146 * d-lang.c (d_language_data): Likewise.
8147 * dictionary.c (default_search_name_hash): Rename to...
8148 (language_defn::search_name_hash): ...this.
8149 * f-lang.c (f_language_data): Likewise.
8150 (f_language::search_name_hash): New member function.
8151 * go-lang.c (go_language_data): Delete la_search_name_hash
8152 initializer.
8153 * language.c (unknown_language_data): Likewise.
8154 (auto_language_data): Likewise.
8155 * language.h (struct language_data): Delete la_search_name_hash
8156 field.
8157 (language_defn::search_name_hash): Declare new member function.
8158 (default_search_name_hash): Delete declaration.
8159 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8160 initializer.
8161 * objc-lang.c (objc_language_data): Likewise.
8162 * opencl-lang.c (opencl_language_data): Likewise.
8163 * p-lang.c (pascal_language_data): Likewise.
8164 * rust-lang.c (rust_language_data): Likewise.
8165 * symtab.c (search_name_hash): Update call.
8166
8167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8168
8169 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8170 initializer.
8171 * c-lang.c (class compile_instance): Declare.
8172 (c_language_data): Delete la_get_compile_instance initializer.
8173 (c_language::get_compile_instance): New member function.
8174 (cplus_language_data): Delete la_get_compile_instance initializer.
8175 (cplus_language::get_compile_instance): New member function.
8176 (asm_language_data): Delete la_get_compile_instance initializer.
8177 (minimal_language_data): Likewise.
8178 * c-lang.h (c_get_compile_context): Update comment.
8179 (cplus_get_compile_context): Update comment.
8180 * compile/compile.c (compile_to_object): Update calls, don't rely
8181 on function pointer being NULL.
8182 * d-lang.c (d_language_data): Delete la_get_compile_instance
8183 initializer.
8184 * f-lang.c (f_language_data): Likewise.
8185 * go-lang.c (go_language_data): Likewise.
8186 * language.c (unknown_language_data): Likewise.
8187 (auto_language_data): Likewise.
8188 * language.h (language_data): Delete la_get_compile_instance field.
8189 (language_defn::get_compile_instance): New member function.
8190 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8191 initializer.
8192 * objc-lang.c (objc_language_data): Likewise.
8193 * opencl-lang.c (opencl_language_data): Likewise.
8194 * p-lang.c (pascal_language_data): Likewise.
8195 * rust-lang.c (rust_language_data): Likewise.
8196
8197 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8198
8199 * ada-lang.c (ada_add_all_symbols): Update comment.
8200 (ada_iterate_over_symbols): Delete, move implementation to...
8201 (ada_language::iterate_over_symbols): ...here, a new member
8202 function, rewrite to use range based for loop.
8203 (ada_language_data): Delete la_iterate_over_symbols initializer.
8204 * c-lang.c (c_language_data): Likewise.
8205 (cplus_language_data): Likewise.
8206 (asm_language_data): Likewise.
8207 (minimal_language_data): Likewise.
8208 * d-lang.c (d_language_data): Likewise.
8209 * f-lang.c (f_language_data): Likewise.
8210 * go-lang.c (go_language_data): Likewise.
8211 * language.c (unknown_language_data): Likewise.
8212 (auto_language_data): Likewise.
8213 * language.h (language_data): Delete la_iterate_over_symbols field.
8214 (language_defn::iterate_over_symbols): New member function.
8215 (LA_ITERATE_OVER_SYMBOLS): Update.
8216 * linespec.c (iterate_over_all_matching_symtabs): Update.
8217 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8218 initializer.
8219 * objc-lang.c (objc_language_data): Likewise.
8220 * opencl-lang.c (opencl_language_data): Likewise.
8221 * p-lang.c (pascal_language_data): Likewise.
8222 * rust-lang.c (rust_language_data): Likewise.
8223
8224 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * ada-lang.c (ada_language_data): Delete
8227 la_lookup_transparent_type initializer.
8228 * c-lang.c (c_language_data): Likewise.
8229 (cplus_language_data): Likewise.
8230 (cplus_language::lookup_transparent_type): New member function.
8231 (asm_language_data): Delete la_lookup_transparent_type
8232 initializer.
8233 (minimal_language_data): Likewise.
8234 * d-lang.c (d_language_data): Likewise.
8235 * f-lang.c (f_language_data): Likewise.
8236 * go-lang.c (go_language_data): Likewise.
8237 * language.c (unknown_language_data): Likewise.
8238 (auto_language_data): Likewise.
8239 * language.h (struct language_data): Delete
8240 la_lookup_transparent_type field.
8241 (language_defn::lookup_transparent_type): New member function.
8242 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8243 initializer.
8244 * objc-lang.c (objc_language_data): Likewise.
8245 * opencl-lang.c (opencl_language_data): Likewise.
8246 * p-lang.c (pascal_language_data): Likewise.
8247 * rust-lang.c (rust_language_data): Likewise.
8248 * symtab.c (symbol_matches_domain): Update call.
8249
8250 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * ada-lang.c (ada_language_arch_info): Delete function, move
8253 implementation to...
8254 (ada_language::language_arch_info): ...here, a new member
8255 function.
8256 (ada_language_data): Delete la_language_arch_info.
8257 * c-lang.c (c_language_data): Likewise.
8258 (c_language::language_arch_info): New member function.
8259 (cplus_language_arch_info): Delete function, move
8260 implementation to...
8261 (cplus_language::language_arch_info): ...here, a new member
8262 function.
8263 (cplus_language_data): Delete la_language_arch_info.
8264 (asm_language_data): Likewise.
8265 (asm_language::language_arch_info): New member function.
8266 (minimal_language_data): Delete la_language_arch_info.
8267 (minimal_language::language_arch_info): New member function.
8268 * d-lang.c (d_language_arch_info): Delete function, move
8269 implementation to...
8270 (d_language::language_arch_info): ...here, a new member
8271 function.
8272 (d_language_data): Delete la_language_arch_info.
8273 * f-lang.c (f_language_arch_info): Delete function, move
8274 implementation to...
8275 (f_language::language_arch_info): ...here, a new member
8276 function.
8277 (f_language_data): Delete la_language_arch_info.
8278 * go-lang.c (go_language_arch_info): Delete function, move
8279 implementation to...
8280 (go_language::language_arch_info): ...here, a new member
8281 function.
8282 (go_language_data): Delete la_language_arch_info.
8283 * language.c (unknown_language_data): Likewise.
8284 (unknown_language::language_arch_info): New member function.
8285 (auto_language_data): Delete la_language_arch_info.
8286 (auto_language::language_arch_info): New member function.
8287 (language_gdbarch_post_init): Update call to
8288 la_language_arch_info.
8289 * language.h (language_data): Delete la_language_arch_info
8290 function pointer.
8291 (language_defn::language_arch_info): New function.
8292 * m2-lang.c (m2_language_arch_info): Delete function, move
8293 implementation to...
8294 (m2_language::language_arch_info): ...here, a new member
8295 function.
8296 (m2_language_data): Delete la_language_arch_info.
8297 * objc-lang.c (objc_language_arch_info): Delete function, move
8298 implementation to...
8299 (objc_language::language_arch_info): ...here, a new member
8300 function.
8301 (objc_language_data): Delete la_language_arch_info.
8302 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8303 implementation to...
8304 (opencl_language::language_arch_info): ...here, a new member
8305 function.
8306 (opencl_language_data): Delete la_language_arch_info.
8307 * p-lang.c (pascal_language_arch_info): Delete function, move
8308 implementation to...
8309 (pascal_language::language_arch_info): ...here, a new member
8310 function.
8311 (pascal_language_data): Delete la_language_arch_info.
8312 * rust-lang.c (rust_language_arch_info): Delete function, move
8313 implementation to...
8314 (rust_language::language_arch_info): ...here, a new member
8315 function.
8316 (rust_language_data): Delete la_language_arch_info.
8317
8318 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8319
8320 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8321 initializer.
8322 * c-lang.c (c_language_data): Likewise.
8323 (cplus_language_data): Likewise.
8324 (cplus_language::pass_by_reference_info): New method.
8325 (asm_language_data): Delete la_pass_by_reference initializer.
8326 (minimal_language_data): Likewise.
8327 * cp-abi.c (cp_pass_by_reference): Remove use of
8328 default_pass_by_reference.
8329 * d-lang.c (d_language_data): Likewise.
8330 * f-lang.c (f_language_data): Likewise.
8331 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8332 default_pass_by_reference.
8333 * go-lang.c (go_language_data): Likewise.
8334 * language.c (language_pass_by_reference): Update.
8335 (default_pass_by_reference): Delete.
8336 (unknown_language_data): Delete la_pass_by_reference
8337 initializer.
8338 (auto_language_data): Likewise.
8339 * language.h (struct language_data): Delete la_pass_by_reference
8340 field.
8341 (language_defn::pass_by_reference_info): New member function.
8342 (default_pass_by_reference): Delete declaration.
8343 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8344 initializer.
8345 * objc-lang.c (objc_language_data): Likewise.
8346 * opencl-lang.c (opencl_language_data): Likewise.
8347 * p-lang.c (pascal_language_data): Likewise.
8348 * rust-lang.c (rust_language_data): Likewise.
8349
8350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8351
8352 * ada-lang.c (ada_read_var_value): Delete function, move
8353 implementation to...
8354 (ada_language::read_var_value): ...here.
8355 (ada_language_data): Delete la_read_var_value initializer.
8356 * c-lang.c (c_language_data): Likewise.
8357 (cplus_language_data): Likewise.
8358 (minimal_language_data): Likewise.
8359 * d-lang.c (d_language_data): Likewise.
8360 * f-lang.c (f_language_data): Likewise.
8361 * findvar.c (default_read_var_value): Rename to...
8362 (language_defn::read_var_value): ...this.
8363 * findvar.c (read_var_value): Update header comment, and change to
8364 call member function instead of function pointer.
8365 * go-lang.c (go_language_data): Likewise.
8366 * language.c (unknown_language_data): Delete la_read_var_value
8367 initializer.
8368 (auto_language_data): Likewise.
8369 * language.h (struct language_data): Delete la_read_var_value
8370 field.
8371 (language_defn::read_var_value): New member function.
8372 (default_read_var_value): Delete declaration.
8373 * m2-lang.c (m2_language_data): Delete la_read_var_value
8374 initializer.
8375 * objc-lang.c (objc_language_data): Likewise.
8376 * opencl-lang.c (opencl_language_data): Likewise.
8377 * p-lang.c (pascal_language_data): Likewise.
8378 * rust-lang.c (rust_language_data): Likewise.
8379 * value.h (default_read_var_value): Delete declaration.
8380
8381 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8382
8383 * ada-lang.c (ada_print_array_index): Delete function, move
8384 implementation to...
8385 (ada_language::print_array_index): ...here.
8386 (ada_language_data): Delete la_print_array_index initializer.
8387 * c-lang.c (c_language_data): Likewise.
8388 (cplus_language_data): Likewise.
8389 (minimal_language_data): Likewise.
8390 * d-lang.c (d_language_data): Likewise.
8391 * f-lang.c (f_language_data): Likewise.
8392 * go-lang.c (go_language_data): Likewise.
8393 * language.c (default_print_array_index): Delete function, move
8394 implementation to...
8395 (language_defn::print_array_index): ...here.
8396 (unknown_language_data): Delete la_print_array_index initializer.
8397 (auto_language_data): Likewise.
8398 * language.h (struct language_data): Delete la_print_array_index
8399 field.
8400 (language_defn::print_array_index): New member function.
8401 (LA_PRINT_ARRAY_INDEX): Update.
8402 (default_print_array_index): Delete declaration.
8403 * m2-lang.c (m2_language_data): Delete la_print_array_index
8404 initializer.
8405 * objc-lang.c (objc_language_data): Likewise.
8406 * opencl-lang.c (opencl_language_data): Likewise.
8407 * p-lang.c (pascal_language_data): Likewise.
8408 * rust-lang.c (rust_language_data): Likewise.
8409
8410 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * gdb/ada-lang.c (ada_language_defn): Convert to...
8413 (ada_language_data): ...this.
8414 (class ada_language): New class.
8415 (ada_language_defn): New static global.
8416 * gdb/c-lang.c (c_language_defn): Convert to...
8417 (c_language_data): ...this.
8418 (class c_language): New class.
8419 (c_language_defn): New static global.
8420 (cplus_language_defn): Convert to...
8421 (cplus_language_data): ...this.
8422 (class cplus_language): New class.
8423 (cplus_language_defn): New static global.
8424 (asm_language_defn): Convert to...
8425 (asm_language_data): ...this.
8426 (class asm_language): New class.
8427 (asm_language_defn): New static global.
8428 (minimal_language_defn): Convert to...
8429 (minimal_language_data): ...this.
8430 (class minimal_language): New class.
8431 (minimal_language_defn): New static global.
8432 * gdb/d-lang.c (d_language_defn): Convert to...
8433 (d_language_data): ...this.
8434 (class d_language): New class.
8435 (d_language_defn): New static global.
8436 * gdb/f-lang.c (f_language_defn): Convert to...
8437 (f_language_data): ...this.
8438 (class f_language): New class.
8439 (f_language_defn): New static global.
8440 * gdb/go-lang.c (go_language_defn): Convert to...
8441 (go_language_data): ...this.
8442 (class go_language): New class.
8443 (go_language_defn): New static global.
8444 * gdb/language.c (unknown_language_defn): Remove declaration.
8445 (current_language): Initialize to nullptr, real initialization is
8446 moved to _initialize_language.
8447 (languages): Delete global.
8448 (language_defn::languages): Define.
8449 (set_language_command): Use language_defn::languages.
8450 (set_language): Likewise.
8451 (range_error): Likewise.
8452 (language_enum): Likewise.
8453 (language_def): Likewise.
8454 (add_set_language_command): Use language_def::languages for the
8455 language list, and language_def to lookup language pointers.
8456 (skip_language_trampoline): Use language_defn::languages.
8457 (unknown_language_defn): Convert to...
8458 (unknown_language_data): ...this.
8459 (class unknown_language): New class.
8460 (unknown_language_defn): New static global.
8461 (auto_language_defn): Convert to...
8462 (auto_language_data): ...this.
8463 (class auto_language): New class.
8464 (auto_language_defn): New static global.
8465 (language_gdbarch_post_init): Use language_defn::languages.
8466 (_initialize_language): Initialize current_language.
8467 * gdb/language.h (struct language_defn): Rename to...
8468 (struct language_data): ...this.
8469 (struct language_defn): New.
8470 (auto_language_defn): Delete.
8471 (unknown_language_defn): Delete.
8472 (minimal_language_defn): Delete.
8473 (ada_language_defn): Delete.
8474 (asm_language_defn): Delete.
8475 (c_language_defn): Delete.
8476 (cplus_language_defn): Delete.
8477 (d_language_defn): Delete.
8478 (f_language_defn): Delete.
8479 (go_language_defn): Delete.
8480 (m2_language_defn): Delete.
8481 (objc_language_defn): Delete.
8482 (opencl_language_defn): Delete.
8483 (pascal_language_defn): Delete.
8484 (rust_language_defn): Delete.
8485 * gdb/m2-lang.c (m2_language_defn): Convert to...
8486 (m2_language_data): ...this.
8487 (class m2_language): New class.
8488 (m2_language_defn): New static global.
8489 * gdb/objc-lang.c (objc_language_defn): Convert to...
8490 (objc_language_data): ...this.
8491 (class objc_language): New class.
8492 (objc_language_defn): New static global.
8493 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8494 (opencl_language_data): ...this.
8495 (class opencl_language): New class.
8496 (opencl_language_defn): New static global.
8497 * gdb/p-lang.c (pascal_language_defn): Convert to...
8498 (pascal_language_data): ...this.
8499 (class pascal_language): New class.
8500 (pascal_language_defn): New static global.
8501 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8502 language pointer, update comment format.
8503 * gdb/rust-lang.c (rust_language_defn): Convert to...
8504 (rust_language_data): ...this.
8505 (class rust_language): New class.
8506 (rust_language_defn): New static global.
8507
8508 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8511 member variable.
8512 <m_stmt_at_address>: New member variable.
8513 (lnp_state_machine::record_line): Don't record some lines, update
8514 tracking of is_stmt at the same address.
8515 (lnp_state_machine::lnp_state_machine): Initialise new member
8516 variables.
8517
8518 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8519
8520 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8521 "-include gnu-nat-mig.h".
8522 * gnu-nat-mig.h: New file.
8523 * gnu-nat.c: Include "gnu-nat-mig.h".
8524 (exc_server, msg_reply_server, notify_server,
8525 process_reply_server): Remove declarations.
8526
8527 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8528
8529 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8530 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8531 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8532 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8533 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8534 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8535 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8536 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8537 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8538 to gnu_nat_target class.
8539 * gnu-nat.c: Likewise.
8540 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8541 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8542 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8543 object.
8544 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8545 instead of `gnu_target'.
8546
8547 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8548
8549 * i386-gnu-tdep.c: Include "gdbcore.h"
8550 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8551 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8552 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8553 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8554 i386_gnu_sigcontext_addr): New functions
8555 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8556 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8557 tdep.
8558
8559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8560
8561 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8562 before fork_inferior call. Avoid calling it if target_is_pushed returns
8563 true.
8564
8565 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8566
8567 * gnu-nat.h (gnu_target): New variable declaration.
8568 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8569 gnu_target.
8570 * gnu-nat.c (gnu_target): New variable.
8571 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8572 add_thread_silent, and add_thread calls.
8573 (gnu_nat_target::create_inferior): Pass gnu_target to
8574 add_thread_silent, thread_change_ptid call.
8575 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8576 call.
8577
8578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8579
8580 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8581 (gnu_nat_target::find_memory_regions): Remove unused
8582 `old_address' variable.
8583
8584 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8585
8586 * gnu-nat.c: Include "gdbarch.h".
8587
8588 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8589
8590 * reply_mig_hack.awk (Error return): Cast function through
8591 void *, to bypass compiler function call check.
8592
8593 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8594
8595 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8596 $(srcdir)/reply_mig_hack.awk.
8597
8598 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8599
8600 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8601
8602 2020-05-30 Jonny Grant <jg@jguk.org>
8603
8604 * configure.ac (ACX_BUGURL): change bug URL to https.
8605
8606 2020-05-30 Pedro Alves <palves@redhat.com>
8607
8608 * cp-support.c (replace_typedefs_template): New.
8609 (replace_typedefs_qualified_name): Handle
8610 DEMANGLE_COMPONENT_TEMPLATE.
8611
8612 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8615 dwarf2/index-cache.h, dwarf2/index-write.c,
8616 dwarf2/index-write.h, dwarf2/line-header.c,
8617 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8618 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8619 variables and fields from `dwarf2_per_objfile` to just
8620 `per_objfile` throughout.
8621
8622 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8623
8624 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8625 <push_dwarf_reg_entry_value>: Add comment.
8626
8627 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8628 Keith Seitz <keiths@redhat.com>
8629
8630 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8631 instead of PyEval_ReleaseLock.
8632 (class gdbpy_gil): Move to earlier in file.
8633 (finalize_python): Set gdb_python_initialized.
8634 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8635 when not initialized.
8636
8637 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8640 <push_dwarf_reg_entry_value>: Remove assert. Override
8641 per_objfile with caller_per_objfile.
8642
8643 2020-05-28 Tom de Vries <tdevries@suse.de>
8644
8645 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8646 PR gold/15646 workaround to symbol kind "type".
8647
8648 2020-05-27 Tom Tromey <tromey@adacore.com>
8649
8650 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8651
8652 2020-05-27 Tom Tromey <tromey@adacore.com>
8653
8654 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8655 Use htab_find_with_hash.
8656 <add_abbrev>: Remove "abbrev_number" parameter.
8657 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8658 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8659 (hash_abbrev): Add comment.
8660 (abbrev_table::lookup_abbrev): Move to header file.
8661 (abbrev_table::read): Update.
8662
8663 2020-05-27 Tom Tromey <tromey@adacore.com>
8664
8665 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8666 method.
8667 <canonical_name>: New member.
8668 <raw_name>: Rename from "name".
8669 (partial_die_info): Initialize canonical_name.
8670 (scan_partial_symbols): Check raw_name.
8671 (partial_die_parent_scope, partial_die_full_name)
8672 (add_partial_symbol, add_partial_subprogram)
8673 (add_partial_enumeration, load_partial_dies): Use "name" method.
8674 (partial_die_info::name): New method.
8675 (partial_die_info::read, guess_partial_die_structure_name)
8676 (partial_die_info::fixup): Update.
8677
8678 2020-05-27 Tom Tromey <tromey@adacore.com>
8679
8680 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8681 <get_ref_die_offset>: Inline.
8682 <get_ref_die_offset_complaint>: New method.
8683 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8684 (attribute::get_ref_die_offset_complaint): Rename from
8685 get_ref_die_offset. Just issue complaint.
8686
8687 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8688
8689 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8690
8691 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8692
8693 * exec.c (exec_file_attach): Use errno value of first openp failure.
8694
8695 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8698 Don't close thread handle.
8699
8700 2020-05-27 Tom Tromey <tom@tromey.com>
8701 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8704 shared_ptr.
8705 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8706 member.
8707 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8708 dwarf2_per_bfd_objfile_data_key>: New globals.
8709 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8710 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8711 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8712 shared.
8713 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8714 short-circuit when sharing.
8715 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8716 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8717
8718 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8721 to...
8722 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8723 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8724
8725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8728 build_name_components, find_name_components_bounds>:
8729 Add per_objfile parameter.
8730 (struct mapped_index) <symbol_name_at>: Likewise.
8731 (struct mapped_debug_names): Remove constructor.
8732 <dwarf2_per_objfile>: Remove field.
8733 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8734 (mapped_index_base::find_name_components_bounds,
8735 mapped_index_base::build_name_components,
8736 dw2_expand_symtabs_matching_symbol): Likewise.
8737 (class mock_mapped_index) <symbol_name_at>: Likewise.
8738 (check_match): Likewise.
8739 (check_find_bounds_finds): Likewise.
8740 (test_mapped_index_find_name_component_bounds): Update.
8741 (CHECK_MATCH): Update.
8742 (dw2_expand_symtabs_matching): Update.
8743 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8744 per_objfile parameter.
8745 <find_vec_in_debug_names>: Likewise.
8746 <m_per_objfile>: New field.
8747 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8748 parameter.
8749 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8750 (dw2_debug_names_iterator::next): Update.
8751 (dw2_debug_names_lookup_symbol): Update.
8752 (dw2_debug_names_expand_symtabs_for_function): Update.
8753 (dw2_debug_names_map_matching_symbols): Update.
8754 (dw2_debug_names_expand_symtabs_matching): Update.
8755 (dwarf2_read_debug_names): Update.
8756
8757 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8760 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8761 move to dwarf2_per_objfile.
8762 <read_in_chain>: Remove.
8763 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8764 remove_all_cus, age_comp_units>: New methods.
8765 <m_dwarf2_cus>: New member.
8766 (struct dwarf2_per_cu_data) <cu>: Remove.
8767 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8768 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8769 moved to methods of dwarf2_per_objfile.
8770 (dwarf2_clear_marks): Remove.
8771 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8772 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8773 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8774 (dwarf2_per_objfile::remove_all_cus): New.
8775 (class free_cached_comp_units) <~free_cached_comp_units>:
8776 Update.
8777 (load_cu): Update.
8778 (dw2_do_instantiate_symtab): Adjust.
8779 (fill_in_sig_entry_from_dwo_entry): Adjust.
8780 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8781 (cutu_reader::cutu_reader): Likewise.
8782 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8783 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8784 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8785 and dwarf2_per_objfile::age_comp_units.
8786 (load_partial_comp_unit): Update.
8787 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8788 (process_queue): Likewise.
8789 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8790 backlink.
8791 (dwarf2_read_addr_index): Likewise.
8792 (follow_die_offset): Likewise.
8793 (dwarf2_fetch_die_loc_sect_off): Likewise.
8794 (dwarf2_fetch_constant_bytes): Likewise.
8795 (dwarf2_fetch_die_type_sect_off): Likewise.
8796 (follow_die_sig_1): Likewise.
8797 (load_full_type_unit): Likewise.
8798 (read_signatured_type): Likewise.
8799 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8800 (dwarf2_cu::~dwarf2_cu): Remove.
8801 (dwarf2_per_objfile::get_cu): New.
8802 (dwarf2_per_objfile::set_cu): New.
8803 (age_cached_comp_units): Rename to...
8804 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8805 to std::unordered_map.
8806 (free_one_cached_comp_unit): Rename to...
8807 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8808 to std::unordered_map.
8809 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8810 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8811 a dwarf2_per_objfile in data.
8812 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8813 (dwarf2_clear_marks): Remove.
8814
8815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8818 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8819 (init_tu_and_read_dwo_dies): Likewise.
8820 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8821 (cutu_reader::cutu_reader): Likewise.
8822 (load_partial_comp_unit): Likewise.
8823 (process_psymtab_comp_unit): Update.
8824 (build_type_psymtabs_1): Update.
8825 (process_skeletonless_type_unit): Update.
8826 (load_full_comp_unit): Update.
8827 (find_partial_die): Update.
8828 (dwarf2_read_addr_index): Update.
8829 (read_signatured_type): Update.
8830
8831 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8832
8833 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8834 m_header_read_in>: New fields.
8835 <get_header>: New method.
8836 * dwarf2/read.c (per_cu_header_read_in): Remove.
8837 (dwarf2_per_cu_data::get_header): New.
8838 (dwarf2_per_cu_data::addr_size): Update.
8839 (dwarf2_per_cu_data::offset_size): Update.
8840 (dwarf2_per_cu_data::ref_addr_size): Update.
8841
8842 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8843
8844 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8845 (dw2_do_instantiate_symtab): Update.
8846 (queue_and_load_all_dwo_tus): Change parameter from
8847 dwarf2_per_cu_data to dwarf2_cu.
8848 (dwarf2_fetch_die_loc_sect_off): Update.
8849 (dwarf2_fetch_constant_bytes): Update.
8850 (dwarf2_fetch_die_type_sect_off): Update.
8851
8852 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8853
8854 * dwarf2/read.c (process_full_comp_unit,
8855 process_full_type_unit): Remove per_cu, per_objfile paramters.
8856 Add dwarf2_cu parameter.
8857 (process_queue): Update.
8858
8859 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * dwarf2/read.c (create_cu_from_index_list): Replace
8862 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8863 (create_cus_from_index_list): Likewise.
8864 (create_cus_from_index): Likewise.
8865 (create_signatured_type_table_from_index): Likewise.
8866 (create_cus_from_debug_names_list): Likewise.
8867 (create_cus_from_debug_names): Likewise.
8868 (dwarf2_read_gdb_index): Update.
8869 (dwarf2_read_debug_names): Update.
8870
8871 2020-05-27 Tom Tromey <tom@tromey.com>
8872 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * dwarf2/read.h (struct dwarf2_per_objfile)
8875 <get_type_for_signatured_type, set_type_for_signatured_type>:
8876 New methods.
8877 <m_type_map>: New member.
8878 (struct signatured_type) <type>: Remove.
8879 * dwarf2/read.c
8880 (dwarf2_per_objfile::get_type_for_signatured_type,
8881 dwarf2_per_objfile::set_type_for_signatured_type): New.
8882 (get_signatured_type): Use new methods.
8883
8884 2020-05-27 Tom Tromey <tom@tromey.com>
8885 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8888 (struct dwarf2_per_objfile) <type_units>: New member.
8889 <get_type_unit_group_unshareable>: New method.
8890 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8891 num_symtabs, symtabs>: Remove; move to
8892 type_unit_group_unshareable.
8893 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8894 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8895 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8896
8897 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * dwarf2/read.h (struct dwarf2_per_cu_data):
8900 <dwarf2_per_objfile>: Remove.
8901 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8902 dwarf2_per_objfile.
8903 (create_signatured_type_table_from_index): Likewise.
8904 (create_signatured_type_table_from_debug_names): Likewise.
8905 (create_debug_type_hash_table): Likewise.
8906 (fill_in_sig_entry_from_dwo_entry): Likewise.
8907 (create_type_unit_group): Likewise.
8908 (read_comp_units_from_section): Likewise.
8909 (create_cus_hash_table): Likewise.
8910
8911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8914 dwarf2_per_cu_data::dwarf2_per_objfile.
8915 (compute_compunit_symtab_includes): Likewise.
8916 (dwarf2_cu::start_symtab): Likewise.
8917
8918 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8921 parameter.
8922 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8923 (read_namespace_alias): Update.
8924 (lookup_die_type): Update.
8925 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8927 Update.
8928 (disassemble_dwarf_expression): Update.
8929
8930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * dwarf2/read.h (struct dwarf2_queue_item): Add
8933 dwarf2_per_objfile parameter, assign new parameter.
8934 <per_objfile>: New field.
8935 * dwarf2/read.c (free_one_cached_comp_unit): Add
8936 dwarf2_per_objfile parameter.
8937 (queue_comp_unit): Likewise.
8938 (dw2_do_instantiate_symtab): Update.
8939 (process_psymtab_comp_unit): Update.
8940 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8941 (process_imported_unit_die): Update.
8942 (queue_and_load_dwo_tu): Update.
8943 (follow_die_offset): Update.
8944 (follow_die_sig_1): Update.
8945
8946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8947
8948 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8949 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8950 (read_call_site_scope): Assign per_objfile.
8951 (dwarf2_per_cu_data::objfile): Remove.
8952 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8953 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8954 dwarf2_per_objfile parameter.
8955 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8956 dwarf2_per_objfile parameter.
8957 (dwarf_expr_reg_to_entry_parameter): Add output
8958 dwarf2_per_objfile parameter.
8959 (locexpr_get_frame_base): Update.
8960 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8961 <push_dwarf_reg_entry_value>: Update.
8962 <call_site_to_target_addr>: Update.
8963 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8964 parameter.
8965 (value_of_dwarf_reg_entry): Update.
8966 (rw_pieced_value): Update.
8967 (indirect_synthetic_pointer): Update.
8968 (dwarf2_evaluate_property): Update.
8969 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8970 parameter.
8971 (locexpr_read_variable): Update.
8972 (locexpr_get_symbol_read_needs): Update.
8973 (loclist_read_variable): Update.
8974
8975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8976
8977 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8978 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8979 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8980 parameter.
8981 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8982 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8983 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8984 parameter.
8985 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8986 sect_variable_value): Add dwarf2_per_objfile parameter.
8987 (class dwarf_evaluate_loc_desc) <dwarf_call,
8988 dwarf_variable_value>: Update.
8989 (fetch_const_value_from_synthetic_pointer): Add
8990 dwarf2_per_objfile parameter.
8991 (fetch_const_value_from_synthetic_pointer): Update.
8992 (coerced_pieced_ref): Update.
8993 (class symbol_needs_eval_context) <dwarf_call,
8994 dwarf_variable_value>: Update.
8995 (dwarf2_compile_expr_to_ax): Update.
8996
8997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9000 parameter.
9001 (dwarf2_evaluate_loc_desc_full): Update.
9002
9003 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9004
9005 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9006 parameter.
9007 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9008 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9009 dwarf2_per_objfile parameter.
9010 (decode_debug_loc_dwo_addresses): Likewise.
9011 (dwarf2_find_location_expression): Update.
9012 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9013 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9014 parameter.
9015 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9016 parameter.
9017 (locexpr_describe_location_1): Likewise.
9018 (locexpr_describe_location): Update.
9019
9020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9023 Remove.
9024 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9025 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9026 (dwarf2_compile_property_to_c): Update.
9027 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9028 use text offset from objfile.
9029 (locexpr_tracepoint_var_ref): Update.
9030 (locexpr_generate_c_location): Update.
9031 (loclist_describe_location): Update.
9032 (loclist_tracepoint_var_ref): Update.
9033 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9034 dwarf2_per_objfile parameter.
9035 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9036 use text offset from objfile.
9037 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9038
9039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * dwarf2/expr.h (struct dwarf_expr_context)
9042 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9043 <offset>: Remove.
9044 <per_objfile>: New member.
9045 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9046 dwarf2_per_objfile parameter. Don't set offset, set
9047 per_objfile.
9048 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9049 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9050 a dwarf2_per_objfile object instead of an offset.
9051 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9052 constructor.
9053 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9054 to dwarf2_expr_executor constructor. Don't set offset.
9055 (dwarf2_fetch_cfa_info): Update.
9056 (struct dwarf2_frame_cache) <text_offset>: Remove.
9057 <per_objfile>: New field.
9058 (dwarf2_frame_cache): Update.
9059 (dwarf2_frame_prev_register): Update.
9060 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9061 <dwarf_evaluate_loc_desc>: Add constructor.
9062 (dwarf2_evaluate_loc_desc_full): Update.
9063 (dwarf2_locexpr_baton_eval): Update.
9064 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9065 Add constructor.
9066 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9067
9068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9069
9070 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9071 addr_sized_int_type>: Move to dwarf2_cu.
9072 <int_type>: Move to dwarf2_per_objfile.
9073 (struct dwarf2_per_objfile) <int_type>: Move here.
9074 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9075 addr_sized_int_type>: Move here.
9076 (read_func_scope): Update.
9077 (read_array_type): Update.
9078 (read_tag_string_type): Update.
9079 (attr_to_dynamic_prop): Update.
9080 (dwarf2_per_cu_data::int_type): Rename to...
9081 (dwarf2_per_objfile::int_type): ... this.
9082 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9083 (dwarf2_cu::addr_sized_int_type): ... this.
9084 (read_subrange_type): Update.
9085 (dwarf2_per_cu_data::addr_type): Rename to...
9086 (dwarf2_cu::addr_type): ... this.
9087 (set_die_type): Update.
9088
9089 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9092 data through per_cu->cu.
9093
9094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9097 dwarf2_per_cu_data parameter fo dwarf2_cu.
9098 (lookup_dwo_type_unit): Likewise.
9099 (read_cutu_die_from_dwo): Likewise.
9100 (lookup_dwo_unit): Likewise.
9101 (open_and_init_dwo_file): Likewise.
9102 (lookup_dwo_cutu): Likewise.
9103 (lookup_dwo_comp_unit): Likewise.
9104 (lookup_dwo_type_unit): Likewise.
9105 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9106 (cutu_reader::cutu_reader): Update.
9107
9108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9111 parameter.
9112 (process_full_type_unit): Likewise.
9113 (process_queue): Update.
9114
9115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * dwarf2/read.c (recursively_compute_inclusions): Add
9118 dwarf2_per_objfile parameter.
9119 (compute_compunit_symtab_includes): Likewise.
9120 (process_cu_includes): Update.
9121
9122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9123
9124 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9125 parameter.
9126 (create_type_unit_group): Update.
9127 (process_psymtab_comp_unit_reader): Update.
9128 (build_type_psymtabs_reader): Update.
9129
9130 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9131
9132 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9133 object through m_this_cu->cu.
9134
9135 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9136
9137 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9138 the info parameter.
9139 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9140
9141 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9142
9143 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9144 per_objfile parameter.
9145 (load_full_type_unit): Add per_objfile parameter.
9146 (read_signatured_type): Likewise.
9147 (load_full_comp_unit): Likewise.
9148 (load_cu): Likewise.
9149 (dw2_do_instantiate_symtab): Likewise.
9150 (dw2_get_file_names): Likewise.
9151 (dw2_map_symtabs_matching_filename): Update.
9152 (dw_expand_symtabs_matching_file_matcher): Update.
9153 (dw2_map_symbol_filenames): Update.
9154 (process_psymtab_comp_unit): Add per_objfile parameter.
9155 (build_type_psymtabs_1): Update.
9156 (process_skeletonless_type_unit): Update.
9157 (dwarf2_build_psymtabs_hard): Update.
9158 (load_partial_comp_unit): Add per_objfile parameter.
9159 (scan_partial_symbols): Update.
9160 (load_full_comp_unit): Add per_objfile parameter.
9161 (process_imported_unit_die): Update.
9162 (create_cus_hash_table): Update.
9163 (find_partial_die): Update.
9164 (dwarf2_read_addr_index): Update.
9165 (follow_die_offset): Update.
9166 (dwarf2_fetch_die_loc_sect_off): Update.
9167 (dwarf2_fetch_constant_bytes): Update.
9168 (dwarf2_fetch_die_type_sect_off): Update.
9169 (follow_die_sig_1): Update.
9170 (load_full_type_unit): Add per_objfile parameter.
9171 (read_signatured_type): Likewise.
9172
9173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9176 of objfile_name.
9177
9178 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9179
9180 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9181 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9182 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9183 field.
9184 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9185 (create_cus_from_index): Update.
9186 (dwarf2_read_gdb_index): Update.
9187 (create_cus_from_debug_names): Update.
9188 (dwarf2_read_debug_names): Update.
9189 (get_abbrev_section_for_cu): Update.
9190 (create_all_comp_units): Update.
9191 (read_attribute_value): Update.
9192 (get_debug_line_section): Update.
9193 * dwarf2/index-cache.c (index_cache::store): Update.
9194 * dwarf2/index-write.c (save_gdb_index_command): Update.
9195 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9196
9197 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9198
9199 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9200 member.
9201 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9202 dwarf2_per_cu_data::per_bfd.
9203 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9204 (create_type_unit_group): Likewise.
9205 (queue_comp_unit): Remove reference to
9206 per_cu->dwarf2_per_objfile.
9207 (maybe_queue_comp_unit): Likewise.
9208 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9209 (create_cus_hash_table): Assign new field.
9210
9211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * dwarf2/read.c: Replace
9214 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9215 dwarf2_cu->per_objfile throughout.
9216
9217 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9218
9219 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9220 parameter, don't use per_cu->dwarf2_per_objfile.
9221 (dw2_instantiate_symtab): Likewise.
9222 (dw2_find_last_source_symtab): Update.
9223 (dw2_map_expand_apply): Update.
9224 (dw2_lookup_symbol): Update.
9225 (dw2_expand_symtabs_for_function): Update.
9226 (dw2_expand_all_symtabs): Update.
9227 (dw2_expand_symtabs_with_fullname): Update.
9228 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9229 don't use per_cu->dwarf2_per_objfile.
9230 (dw2_expand_marked_cus): Update.
9231 (dw2_find_pc_sect_compunit_symtab): Update.
9232 (dw2_debug_names_lookup_symbol): Update.
9233 (dw2_debug_names_expand_symtabs_for_function): Update.
9234 (dw2_debug_names_map_matching_symbols): Update.
9235 (dwarf2_psymtab::expand_psymtab): Update.
9236
9237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9240 <per_objfile>: New member.
9241 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9242 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9243 call to dwarf2_cu.
9244 (cutu_reader::cutu_reader): Update.
9245 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9246
9247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9250 struct dwarf2_per_objfile.
9251 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9252 dwarf2_per_bfd.
9253 * dwarf2/read.c (set_die_type): Update.
9254 (get_die_type_at_offset): Update.
9255
9256 2020-05-27 Tom Tromey <tom@tromey.com>
9257 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9260 method.
9261 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9262 get_symtab, set_symtab>: New methods.
9263 <m_symtabs>: New field.
9264 (struct dwarf2_psymtab): Derive from partial_symtab.
9265 <readin_p, get_compunit_symtab>: Declare methods.
9266 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9267 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9268 New methods.
9269 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9270 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9271 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9272 (dw2_symtab_iter_next, dw2_print_stats)
9273 (dw2_expand_symtabs_with_fullname)
9274 (dw2_expand_symtabs_matching_one)
9275 (dw_expand_symtabs_matching_file_matcher)
9276 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9277 (dw2_debug_names_iterator::next)
9278 (dw2_debug_names_map_matching_symbols)
9279 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9280 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9281 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9282 New methods.
9283 (get_compunit_symtab, process_full_comp_unit)
9284 (process_full_type_unit): Update.
9285 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9286
9287 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9288
9289 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9290 then introduce a new dwarf2_per_objfile type.
9291 <read_line_string>: Move to the new dwarf2_per_objfile type.
9292 <objfile>: Likewise.
9293 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9294 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9295 dwarf2_per_objfile->per_bfd.
9296 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9297 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9298 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9299 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9300 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9301 (dwarf2_per_objfile::locate_sections): Rename to...
9302 (dwarf2_per_bfd::locate_sections): ... this.
9303 (dwarf2_per_objfile::get_cutu): Rename to...
9304 (dwarf2_per_bfd::get_cutu): ... this.
9305 (dwarf2_per_objfile::get_cu): Rename to...
9306 (dwarf2_per_bfd::get_cu): ... this.
9307 (dwarf2_per_objfile::get_tu): Rename to...
9308 (dwarf2_per_bfd::get_tu): ... this.
9309 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9310 (dwarf2_per_bfd::allocate_per_cu): ... this.
9311 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9312 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9313 (get_gdb_index_contents_ftype): Change parameter from
9314 dwarf2_per_objfile to dwarf2_per_bfd.
9315 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9316 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9317
9318 2020-05-27 Tom Tromey <tom@tromey.com>
9319 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9322 (allocate_piece_closure): Set "per_objfile" member.
9323 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9324 (locexpr_describe_location, loclist_describe_location): Use new
9325 member.
9326 * dwarf2/read.c (read_call_site_scope)
9327 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9328 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9329 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9330 handle_data_member_location): Set per_objfile member.
9331 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9332 member.
9333 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9334
9335 2020-05-27 Tom Tromey <tom@tromey.com>
9336
9337 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9338 allocate_signatured_type>: Declare new methods.
9339 <m_num_psymtabs>: New member.
9340 (struct dwarf2_per_cu_data) <index>: New member.
9341 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9342 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9343 (create_cu_from_index_list): Use allocate_per_cu.
9344 (create_signatured_type_table_from_index)
9345 (create_signatured_type_table_from_debug_names)
9346 (create_debug_type_hash_table, add_type_unit)
9347 (read_comp_units_from_section): Use allocate_signatured_type.
9348
9349 2020-05-27 Tom Tromey <tom@tromey.com>
9350
9351 * psymtab.c (partial_map_expand_apply)
9352 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9353 (psym_lookup_global_symbol_language)
9354 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9355 (psym_print_stats, psym_expand_symtabs_for_function)
9356 (psym_map_symbol_filenames, psym_map_matching_symbols)
9357 (psym_expand_symtabs_matching)
9358 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9359 (maintenance_check_psymtabs): Update.
9360 * psympriv.h (struct partial_symtab) <readin_p,
9361 get_compunit_symtab>: Add objfile parameter.
9362 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9363 Likewise.
9364 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9365 get_compunit_symtab>: Likewise.
9366 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9367
9368 2020-05-27 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9371 member.
9372 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9373 (create_cu_from_index_list)
9374 (create_signatured_type_table_from_index)
9375 (create_signatured_type_table_from_debug_names)
9376 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9377 (dwarf2_create_include_psymtab)
9378 (create_debug_type_hash_table, add_type_unit)
9379 (create_type_unit_group, read_comp_units_from_section)
9380 (dwarf2_compute_name, create_cus_hash_table)
9381 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9382 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9383 obstack.
9384 (dw2_get_real_path): Likewise. Change argument to
9385 dwarf2_per_objfile.
9386
9387 2020-05-27 Luis Machado <luis.machado@linaro.org>
9388
9389 PR tdep/26000
9390 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9391 for ldrd (immediate).
9392
9393 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9394
9395 * command.h: Add comment giving the name of class_tui.
9396 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9397 create the fake command for the help for class_tui.
9398
9399 2020-05-26 Tom Tromey <tromey@adacore.com>
9400
9401 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9402 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9403 (val_atr): New function.
9404 (value_val_atr): Use it.
9405 * ada-valprint.c (print_optional_low_bound): Change low bound
9406 handling for enums.
9407 (val_print_packed_array_elements): Don't call discrete_position.
9408 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9409 discrete_position for enum types.
9410 * language.c (default_print_array_index): Change type.
9411 * language.h (struct language_defn) <la_print_array_index>: Add
9412 index_type parameter, change type of index_value.
9413 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9414 (default_print_array_index): Update.
9415 * valprint.c (maybe_print_array_index): Don't call
9416 value_from_longest. Update.
9417 (value_print_array_elements): Don't call discrete_position.
9418
9419 2020-05-26 Tom Tromey <tromey@adacore.com>
9420
9421 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9422 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9423
9424 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9425
9426 PR gdb/13519
9427 * avr-tdep.c (avr_integer_to_address): Return data or code
9428 address accordingly to the second 'type' argument of the
9429 function.
9430
9431 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9432
9433 * infcmd.c, inferior.h: (construct_inferior_arguments):
9434 Moved function from here to gdbsupport/common-inferior.{h,cc}
9435
9436 2020-05-23 Tom Tromey <tom@tromey.com>
9437
9438 Revert commit eca1f90c:
9439 * NEWS: Remove entry for completion styling.
9440 * completer.c (_rl_completion_prefix_display_length): Move
9441 declaration later.
9442 (gdb_fnprint): Revert.
9443 (gdb_display_match_list_1): Likewise.
9444 * cli/cli-style.c (completion_prefix_style)
9445 (completion_difference_style, completion_suffix_style): Remove.
9446 (_initialize_cli_style): Revert.
9447 * cli/cli-style.h (completion_prefix_style)
9448 (completion_difference_style, completion_suffix_style): Don't
9449 declare.
9450
9451 2020-05-24 Pedro Alves <palves@redhat.com>
9452
9453 * symtab.c (completion_list_add_name): Return boolean indication
9454 of whether the symbol matched.
9455 (completion_list_add_symbol): Don't try to remove C++ aliases if
9456 the symbol didn't match in the first place.
9457 * symtab.h (completion_list_add_name): Return bool.
9458
9459 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9460
9461 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9462 type::field.
9463
9464 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9465
9466 GDB 9.2 released.
9467
9468 2020-05-23 Tom Tromey <tom@tromey.com>
9469
9470 * NEWS: Add entry for completion styling.
9471 * completer.c (_rl_completion_prefix_display_length): Move
9472 declaration earlier.
9473 (gdb_fnprint): Use completion_style.
9474 (gdb_display_match_list_1): Likewise.
9475 * cli/cli-style.c (completion_prefix_style)
9476 (completion_difference_style, completion_suffix_style): New
9477 globals.
9478 (_initialize_cli_style): Register new globals.
9479 * cli/cli-style.h (completion_prefix_style)
9480 (completion_difference_style, completion_suffix_style): Declare.
9481
9482 2020-05-23 Pedro Alves <palves@redhat.com>
9483
9484 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9485 (parse_escape): Use ISDIGIT instead of isdigit.
9486 (puts_debug): Use gdb_isprint instead of isprint.
9487 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9488 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9489 ISSPACE instead of isspace.
9490 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9491 instead of isspace.
9492 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9493 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9494 instead of isxdigit and ISDIGIT instead of isdigit.
9495
9496 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9497
9498 * gdbtypes.h (struct type) <field>: New method.
9499 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9500 or type::field.
9501
9502 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9505 (TYPE_FIELDS): Use type::fields. Change all call sites that
9506 modify the propery to use type::set_fields instead.
9507
9508 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9511 type::num_fields instead.
9512
9513 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9516 methods.
9517 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9518 that modify the number of fields to use type::set_num_fields
9519 instead.
9520
9521 2020-05-22 Tom Tromey <tromey@adacore.com>
9522
9523 * compile/compile-object-load.h (munmap_list_free): Don't
9524 declare.
9525
9526 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * annotate.c (annotate_source_line): Update return type, add call
9529 to update current symtab and line.
9530 * annotate.h (annotate_source_line): Update return type, and
9531 extend header comment.
9532 * source.c (info_line_command): Check annotation_level before
9533 calling annotate_source_line.
9534 * stack.c (print_frame_info): If calling annotate_source_line
9535 returns true, then don't print any other source line information.
9536
9537 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9538
9539 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9540
9541 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * coffread.c (patch_type): Remove NULL check before xfree.
9544 * corefile.c (set_gnutarget): Likewise.
9545 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9546 * exec.c (build_section_table): Likewise.
9547 * remote.c (remote_target::pass_signals): Likewise.
9548 * utils.c (n_spaces): Likewise.
9549 * cli/cli-script.c (document_command): Likewise.
9550 * i386-windows-tdep.c (core_process_module_section): Likewise.
9551 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9552
9553 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9554
9555 * symfile.c (reread_symbols): Clear objfile's section_offsets
9556 vector and section indices, re-compute them by calling
9557 sym_offsets.
9558
9559 2020-05-20 Tom Tromey <tromey@adacore.com>
9560
9561 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9562 (desc_one_bound, desc_index_type): Compute field name.
9563
9564 2020-05-20 Tom de Vries <tdevries@suse.de>
9565
9566 PR symtab/25833
9567 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9568
9569 2020-05-20 Alan Modra <amodra@gmail.com>
9570
9571 PR 25993
9572 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9573 bfd_set_filename.
9574 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9575 passed to bfd_set_filename.
9576 * symfile-mem.c (add_vsyscall_page): Likewise for string
9577 passed to symbol_file_add_from_memory.
9578 (symbol_file_add_from_memory): Make name param a const char* and
9579 don't strdup.
9580
9581 2020-05-20 Alan Modra <amodra@gmail.com>
9582
9583 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9584 rather than accessing bfd->filename directly.
9585 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9586 and use bfd_section_name.
9587 * dwarf2/frame.c (decode_frame_entry): Likewise.
9588 * exec.c (exec_set_section_address): Likewise.
9589 * solib-aix.c (solib_aix_bfd_open): Likewise.
9590 * stap-probe.c (get_stap_base_address): Likewise.
9591 * symfile.c (reread_symbols): Likewise.
9592
9593 2020-05-19 Tom Tromey <tromey@adacore.com>
9594
9595 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9596
9597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9600
9601 2020-05-19 Pedro Alves <palves@redhat.com>
9602
9603 * NEWS (set exec-file-mismatch): Adjust entry.
9604 * exec.c: Include "build-id.h".
9605 (validate_exec_file): Try to match build IDs instead of filenames.
9606 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9607 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9608 and pass down 'warn_if_slow'.
9609 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9610 gdb_bfd_open_closure to pass it down.
9611 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9612
9613 2020-05-19 Pedro Alves <palves@redhat.com>
9614
9615 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9616 * target.c (target_fileio_open_1): Rename to target_fileio_open
9617 and make extern. Use bool.
9618 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9619 (target_fileio_read_alloc_1): Adjust.
9620 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9621 (target_fileio_open_warn_if_slow): Delete declaration.
9622
9623 2020-05-19 Pedro Alves <palves@redhat.com>
9624
9625 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9626 Adjust all callers.
9627
9628 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9629
9630 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9631 whether disp is negative.
9632
9633 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9634
9635 * symfile.h (struct symfile_segment_data)
9636 <~symfile_segment_data>: Remove.
9637 <segment_info>: Change to std::vector.
9638 * symfile.c (default_symfile_segments): Update.
9639 * elfread.c (elf_symfile_segments): Update.
9640
9641 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9644 <segments>: New.
9645 <segment_bases, segment_sizes>: Remove.
9646 * symfile.c (default_symfile_segments): Update.
9647 * elfread.c (elf_symfile_segments): Update.
9648 * remote.c (remote_target::get_offsets): Update.
9649 * solib-target.c (solib_target_relocate_section_addresses):
9650 Update.
9651
9652 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * symfile.h (struct symfile_segment_data): Initialize fields.
9655 <~symfile_segment_data>: Add.
9656 (symfile_segment_data_up): New.
9657 (struct sym_fns) <sym_segments>: Return a
9658 symfile_segment_data_up.
9659 (default_symfile_segments): Return a symfile_segment_data_up.
9660 (free_symfile_segment_data): Remove.
9661 (get_symfile_segment_data): Return a symfile_segment_data_up.
9662 * symfile.c (default_symfile_segments): Likewise.
9663 (get_symfile_segment_data): Likewise.
9664 (free_symfile_segment_data): Remove.
9665 (symfile_find_segment_sections): Update.
9666 * elfread.c (elf_symfile_segments): Return a
9667 symfile_segment_data_up.
9668 * remote.c (remote_target::get_offsets): Update.
9669 * solib-target.c (solib_target_relocate_section_addresses):
9670 Update.
9671 * symfile-debug.c (debug_sym_segments): Return a
9672 symfile_segment_data_up.
9673
9674 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9675
9676 PR build/25981
9677 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9678 Hardcode register numbers.
9679
9680 PR build/25981
9681 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9682 procfs_find_LDT_entry): Remove.
9683 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9684 procfs_find_LDT_entry): Remove.
9685 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9686 Remove.
9687
9688 2020-05-17 Pedro Alves <palves@redhat.com>
9689 Andrew Burgess <andrew.burgess@embecosm.com>
9690 Keno Fischer <keno@juliacomputing.com>
9691
9692 PR gdb/25741
9693 * breakpoint.c (build_target_condition_list): Update comments.
9694 (build_target_command_list): Update comments and skip matching
9695 locations.
9696 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9697 a separate function. Simplify "set breakpoint auto-hw off"
9698 handling.
9699 (insert_breakpoints): Update comment.
9700 (tracepoint_locations_match): New parameter. For breakpoints,
9701 compare location types too, if the caller wants to.
9702 (handle_automatic_hardware_breakpoints): New functions.
9703 (bp_location_is_less_than): Also sort by location type and
9704 hardware breakpoint length.
9705 (update_global_location_list): Handle "set breakpoint auto-hw on"
9706 here.
9707 (update_breakpoint_locations): Ask breakpoint_locations_match to
9708 ignore location types.
9709
9710 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9713 type::name instead.
9714
9715 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * gdbtypes.h (struct type) <name, set_name>: New methods.
9718 (TYPE_CODE): Use type::name. Change all call sites used to set
9719 the name to use type::set_name instead.
9720
9721 2020-05-16 Tom Tromey <tom@tromey.com>
9722
9723 * top.c (quit_force): Update.
9724 * infrun.c (handle_no_resumed): Update.
9725 * top.h (all_uis): New function.
9726 (ALL_UIS): Remove.
9727
9728 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9729
9730 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9731
9732 2020-05-16 Pedro Alves <palves@redhat.com>
9733
9734 * ia64-linux-nat.c
9735 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9736 Declare method.
9737 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9738
9739 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9740
9741 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9742 (sparc64_adi_info): Likewise.
9743
9744 2020-05-15 Tom Tromey <tom@tromey.com>
9745
9746 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9747 block_objfile.
9748 (lookup_objfile_from_block): Remove.
9749 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9750 (lookup_global_symbol): Use block_objfile.
9751 * symtab.h (lookup_objfile_from_block): Don't declare.
9752 * printcmd.c (clear_dangling_display_expressions): Use
9753 block_objfile.
9754 * parse.c (operator_check_standard): Use block_objfile.
9755
9756 2020-05-15 Tom Tromey <tom@tromey.com>
9757
9758 * language.c (language_alloc_type_symbol): Set
9759 SYMBOL_SECTION.
9760 * symtab.c (initialize_objfile_symbol): Remove.
9761 (allocate_symbol): Remove.
9762 (allocate_template_symbol): Remove.
9763 * dwarf2/read.c (fixup_go_packaging): Use "new".
9764 (new_symbol): Use "new".
9765 (read_variable): Don't call initialize_objfile_symbol. Use
9766 "new".
9767 (read_func_scope): Use "new".
9768 * xcoffread.c (process_xcoff_symbol): Don't call
9769 initialize_objfile_symbol.
9770 (SYMBOL_DUP): Remove.
9771 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9772 "new".
9773 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9774 (allocate_template_symbol): Don't declare.
9775 (struct symbol): Add copy constructor. Change defaults.
9776 * jit.c (finalize_symtab): Use "new".
9777 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9778 Use "new".
9779 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9780 (common_block_end): Use "new".
9781 * mdebugread.c (parse_symbol): Use "new".
9782 (new_symbol): Likewise.
9783
9784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9785
9786 * NEWS: Mention changes to help and apropos.
9787
9788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9789
9790 * command.h (enum command_class): Improve comments, document
9791 that class_alias is for user-defined aliases, give the class
9792 name for each class, remove unused class_xdb.
9793 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9794 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9795 by a precise class.
9796 * infcmd.c (_initialize_infcmd): Likewise.
9797 * reverse.c (_initialize_reverse): Likewise.
9798 * stack.c (_initialize_stack): Likewise.
9799 * symfile.c (_initialize_symfile): Likewise.
9800 * tracepoint.c (_initialize_tracepoint): Likewise.
9801
9802 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9803
9804 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9805 when their aliased command is traversed.
9806 (help_cmd): Add fput_command_names_styled call to
9807 output command name and aliases when command has an alias.
9808
9809 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9810
9811 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9812 * cli/cli-decode.c (help_cmd_list): Declare as static,
9813 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9814 a command together with the command.
9815 (fput_command_name_styled, fput_command_names_styled): New functions.
9816 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9817 fput_command_name_styled.
9818 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9819 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9820
9821 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9822
9823 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9824 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9825 * command.h (cmd_show_list): Likewise.
9826 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9827 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9828
9829 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9830
9831 * unittests/command-def-selftests.c (traverse_command_structure):
9832 Verify all commands of a list have the same prefix command and
9833 that only the top cmdlist commands have a null prefix.
9834
9835 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9836
9837 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9838 as prefix, not one of its aliases.
9839 (set_cmd_prefix): Remove.
9840 (do_add_cmd): Centralize the setting of the prefix of a command, when
9841 command is defined after its full chain of prefix commands.
9842 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9843 (add_setshow_cmd_full): Likewise.
9844 (update_prefix_field_of_prefixed_commands): New function.
9845 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9846 update_prefix_field_of_prefixed_commands.
9847 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9848 addresses of remote_set_cmdlist and remote_show_cmdlist given
9849 as argument, not the address of an argument.
9850 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9851 * gdb/remote.c (_initialize_remote): Likewise.
9852
9853 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9854
9855 * cli/cli-cmds.c (alias_command): Check for an existing alias
9856 using lookup_cmd_composition, as valid_command_p is too strict
9857 and forbids aliases that are the prefix of an existing alias
9858 or command.
9859 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9860 command is properly recognised as a valid command.
9861
9862 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863
9864 * unittests/help-doc-selftests.c: Rename to
9865 unittests/command-def-selftests.c
9866 * unittests/command-def-selftests.c (help_doc_tests): Update some
9867 comments.
9868 (command_structure_tests, traverse_command_structure): New namespace
9869 and function.
9870 (command_structure_invariants_tests): New function.
9871 (_initialize_command_def_selftests) Renamed from
9872 _initialize_help_doc_selftests, register command_structure_invariants
9873 selftest.
9874
9875 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9876
9877 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9878 an alias of 'show'.
9879
9880 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9881
9882 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9883 ada_is_fixed_point_type. Update all callers.
9884 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9885 all callers.
9886 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9887 Update all callers.
9888 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9889 print_fixed_point_type. Update all callers.
9890 * ada-valprint.c (ada_value_print_num): Replace call to
9891 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9892
9893 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9894
9895 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9896 processors.
9897 (cpu_supports_bts): Add CV_AMD case.
9898
9899 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9900 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * infrun.c (stop_all_threads): Collect multiple wait events at
9903 each pass.
9904
9905 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9908 type::code instead.
9909
9910 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * gdbtypes.h (struct type) <code, set_code>: New methods.
9913 (TYPE_CODE): Use type::code. Change all call sites used to set
9914 the code to use type::set_code instead.
9915
9916 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9917 Tom de Vries <tdevries@suse.de>
9918 Pedro Alves <palves@redhat.com>
9919
9920 PR threads/25478
9921 * infrun.c (stop_all_threads): Do NOT ignore
9922 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9923 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9924 received.
9925 (handle_no_resumed): Remove code handling a live inferior with no
9926 threads.
9927 * remote.c (has_single_non_exited_thread): New.
9928 (remote_target::update_thread_list): Do not delete a thread if is
9929 the last thread of the process.
9930 * thread.c (thread_select): Call delete_exited_threads instead of
9931 prune_threads.
9932
9933 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9934
9935 * infrun.c (stop_all_threads): Enable/disable thread events of all
9936 targets. Move a debug message denoting the end of the function
9937 into the SCOPED_EXIT block.
9938
9939 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9940
9941 * process-stratum-target.h: Include <set>.
9942 (all_non_exited_process_targets, switch_to_target_no_thread): New
9943 function declarations.
9944 * process-stratum-target.c (all_non_exited_process_targets)
9945 (switch_to_target_no_thread): New function implementations.
9946
9947 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9948
9949 * infrun.c (handle_inferior_event): Extract out a piece of code
9950 into...
9951 (mark_non_executing_threads): ...this new function.
9952
9953 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9954
9955 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9956 use.
9957
9958 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9959
9960 * regcache.c (regcache_read_pc_protected): New function
9961 implementation that returns 0 if the PC cannot read via
9962 'regcache_read_pc'.
9963 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9964 instead of 'regcache_read_pc'.
9965 (keep_going_pass_signal): Ditto.
9966
9967 2020-05-13 Tom Tromey <tromey@adacore.com>
9968
9969 * ada-lang.c (align_value): Remove.
9970 (ada_template_to_fixed_record_type_1): Use align_up.
9971
9972 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9973
9974 * async-event.c: Update the copyright year.
9975 * async-event.h: Update the copyright year.
9976
9977 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * objfiles.h (is_addr_in_objfile,
9980 shared_objfile_contains_address_p): Return bool.
9981 * objfile.c (is_addr_in_objfile,
9982 shared_objfile_contains_address_p): Return bool.
9983
9984 2020-05-11 Tom Tromey <tromey@adacore.com>
9985
9986 * cli/cli-cmds.c (info_command): Restore.
9987 (_initialize_cli_cmds): Use add_prefix_command for "info".
9988 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9989
9990 2020-05-11 Tom Tromey <tromey@adacore.com>
9991
9992 * ada-lang.c (ada_value_primitive_field): Now public.
9993 * ada-lang.h (ada_value_primitive_field): Declare.
9994 * ada-valprint.c (print_field_values): Use
9995 ada_value_primitive_field for wrapper fields.
9996
9997 2020-05-11 Tom de Vries <tdevries@suse.de>
9998
9999 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10000 MODULE_DOMAIN.
10001
10002 2020-05-11 Tom de Vries <tdevries@suse.de>
10003
10004 PR symtab/25941
10005 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10006 with length 0, if not gdb-produced.
10007 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10008
10009 2020-05-09 Tom de Vries <tdevries@suse.de>
10010
10011 PR gdb/25955
10012 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10013 calculation.
10014
10015 2020-05-09 Tom Tromey <tom@tromey.com>
10016
10017 * top.c (server_command): Now bool.
10018 * top.h (server_command): Now bool.
10019
10020 2020-05-08 Tom Tromey <tromey@adacore.com>
10021
10022 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10023 already being processed.
10024
10025 2020-05-08 Tom Tromey <tom@tromey.com>
10026
10027 * printcmd.c (struct display) <next>: Remove.
10028 <display>: New constructor.
10029 <exp_string>: Now a std::string.
10030 <enabled_p>: Now a bool.
10031 (display_number): Move definition earlier.
10032 (displays): Rename from display_chain. Now a std::vector.
10033 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10034 (display_command): Update.
10035 (do_one_display, disable_display)
10036 (enable_disable_display_command, do_enable_disable_display):
10037 Update.
10038 (free_display): Remove.
10039 (clear_displays): Rewrite.
10040 (delete_display): Update.
10041 (map_display_numbers): Use function_view. Remove "data"
10042 parameter. Update.
10043 (do_delete_display): Remove.
10044 (undisplay_command): Update.
10045 (do_one_display, do_displays, disable_display)
10046 (info_display_command): Update.
10047 (do_enable_disable_display): Remove.
10048 (enable_disable_display_command)
10049 (clear_dangling_display_expressions): Update.
10050
10051 2020-05-08 Tom Tromey <tom@tromey.com>
10052
10053 * symtab.c (set_symbol_cache_size)
10054 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10055 (maintenance_print_symbol_cache_statistics): Update.
10056 * symmisc.c (print_symbol_bcache_statistics)
10057 (print_objfile_statistics, maintenance_print_objfiles)
10058 (maintenance_info_symtabs, maintenance_check_symtabs)
10059 (maintenance_expand_symtabs, maintenance_info_line_tables):
10060 Update.
10061 * symfile-debug.c (set_debug_symfile): Update.
10062 * source.c (forget_cached_source_info): Update.
10063 * python/python.c (gdbpy_progspaces): Update.
10064 * psymtab.c (maintenance_info_psymtabs): Update.
10065 * probe.c (parse_probes): Update.
10066 * linespec.c (iterate_over_all_matching_symtabs)
10067 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10068 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10069 * exec.c (exec_target::close): Update.
10070 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10071 * breakpoint.c (print_one_breakpoint_location)
10072 (create_longjmp_master_breakpoint)
10073 (create_std_terminate_master_breakpoint): Update.
10074 * progspace.c (program_spaces): Now a std::vector.
10075 (maybe_new_address_space): Update.
10076 (add_program_space): Remove.
10077 (program_space::program_space): Update.
10078 (remove_program_space): Update.
10079 (number_of_program_spaces): Remove.
10080 (print_program_space, update_address_spaces): Update.
10081 * progspace.h (program_spaces): Change type.
10082 (ALL_PSPACES): Remove.
10083 (number_of_program_spaces): Don't declare.
10084 (struct program_space) <next>: Remove.
10085
10086 2020-05-08 Tom Tromey <tom@tromey.com>
10087
10088 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10089 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10090 (enable_break): Update.
10091 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10092 (frv_fdpic_find_canonical_descriptor): Update.
10093 (frv_fetch_objfile_link_map): Update.
10094 * progspace.c (program_space::free_all_objfiles): Update.
10095 (program_space::solibs): New method.
10096 * progspace.h (struct program_space) <solibs>: New method.
10097 * solist.h (master_so_list): Don't declare.
10098 (ALL_SO_LIBS): Remove.
10099 * solib.h (so_list_head): Remove.
10100 (update_solib_list): Update comment.
10101 * solib.c (master_so_list): Remove.
10102 (solib_used, update_solib_list, solib_add)
10103 (info_sharedlibrary_command, clear_solib)
10104 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10105
10106 2020-05-08 Tom Tromey <tom@tromey.com>
10107
10108 * extension.c (extension_languages): Now a std::array.
10109 (ALL_EXTENSION_LANGUAGES): Remove.
10110 (get_ext_lang_defn, get_ext_lang_of_file)
10111 (eval_ext_lang_from_control_command): Update.
10112 (finish_ext_lang_initialization)
10113 (auto_load_ext_lang_scripts_for_objfile)
10114 (ext_lang_type_printers::ext_lang_type_printers)
10115 (apply_ext_lang_type_printers)
10116 (ext_lang_type_printers::~ext_lang_type_printers)
10117 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10118 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10119 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10120 (get_matching_xmethod_workers, ext_lang_colorize)
10121 (ext_lang_before_prompt): Update.
10122 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10123
10124 2020-05-08 Tom Tromey <tom@tromey.com>
10125
10126 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10127 overload.
10128 <swap_string, m_string>: Remove.
10129 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10130 Update.
10131 * stabsread.c (define_symbol, read_type): Update.
10132 * linespec.c (find_linespec_symbols): Update.
10133 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10134 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10135 * dbxread.c (read_dbx_symtab): Update.
10136 * cp-support.h (cp_canonicalize_string_full)
10137 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10138 Return unique_xmalloc_ptr.
10139 * cp-support.c (inspect_type): Update.
10140 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10141 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10142 Likewise.
10143 * c-typeprint.c (print_name_maybe_canonical): Update.
10144 * break-catch-throw.c (check_status_exception_catchpoint):
10145 Update.
10146
10147 2020-05-08 Tom de Vries <tdevries@suse.de>
10148
10149 * infrun.c (follow_fork): Copy current_line and current_symtab to
10150 child thread.
10151
10152 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * async-event.c (struct async_signal_handler, struct
10155 async_event_handler): Reformat, remove typedef.
10156
10157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10160 access thistype->main_type->dyn_prop_list directly.
10161
10162 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10165 (remove_dyn_prop): Remove. Update all users to use
10166 type::remove_dyn_prop.
10167 * gdbtypes.c (remove_dyn_prop): Rename to...
10168 (type::remove_dyn_prop): ... this.
10169
10170 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10171
10172 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10173 (add_dyn_prop): Remove. Update all users to use
10174 type::add_dyn_prop.
10175 * gdbtypes.c (add_dyn_prop): Rename to...
10176 (type::add_dyn_prop): ... this.
10177
10178 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10181 (get_dyn_prop): Remove. Update all users to use
10182 type::dyn_prop.
10183 * gdbtypes.c (get_dyn_prop): Rename to...
10184 (type::dyn_prop): ... this.
10185
10186 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10187
10188 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10189
10190 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10193 instruction, skip it if it's there.
10194
10195 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10198
10199 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10202 * gdbtypes.c (recursive_dump_type): Remove use of
10203 TYPE_INCOMPLETE.
10204
10205 2020-05-03 Tom Tromey <tom@tromey.com>
10206
10207 * breakpoint.c (catch_command, tcatch_command): Remove.
10208 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10209 add_show_prefix_cmd.
10210 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10211 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10212 Remove.
10213 (add_internal_problem_command): Use add_basic_prefix_cmd,
10214 add_show_prefix_cmd.
10215 * mips-tdep.c (set_mipsfpu_command): Remove.
10216 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10217 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10218 (_initialize_index_cache): Use add_basic_prefix_cmd.
10219 * memattr.c (dummy_cmd): Remove.
10220 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10221 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10222 (_initialize_tui_win): Use add_basic_prefix_cmd,
10223 add_show_prefix_cmd.
10224 * cli/cli-logging.c (set_logging_command): Remove.
10225 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10226 add_show_prefix_cmd.
10227 (show_logging_command): Remove.
10228 * target.c (target_command): Remove.
10229 (add_target): Use add_basic_prefix_cmd.
10230
10231 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10232
10233 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10234
10235 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10236
10237 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10238 info_command.
10239
10240 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10241
10242 * nbsd-nat.c (nbsd_enable_proc_events)
10243 (nbsd_nat_target::post_startup_inferior): Add.
10244 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10245 (nbsd_nat_target::update_thread_list): Rewrite.
10246 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10247 "PTRACE_LWP_CREATE".
10248 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10249
10250 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10251
10252 * stack.c (_initialize_stack): Remove duplicated creation
10253 of "frame" command and "f" alias.
10254
10255 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10256
10257 PR gdb/18706
10258 * gdbtypes.c (check_typedef): Calculate size of array of
10259 stubbed type.
10260
10261 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10262
10263 PR gdb/15559
10264 * i386-tdep.c (i386_push_dummy_call): Call
10265 i386_thiscall_push_dummy_call.
10266 (i386_thiscall_push_dummy_call): New function.
10267 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10268 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10269 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10270
10271 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * gdbarch.sh (do_read): Add shellcheck disable directive for
10274 warning SC2162.
10275
10276 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10279 "referenced but not assigned" warning.
10280
10281 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * gdbarch.sh: Remove code that sets fallbackdefault.
10284
10285 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10286
10287 * gdbarch.sh: Use shell operators && and || instead of
10288 -a and -o.
10289
10290 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * gdbarch.sh: Use $(...) instead of `...`.
10293
10294 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * gdbarch.sh: Use double quotes around variables.
10297
10298 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * gdbarch.sh: Use %s with printf, instead of variables in the
10301 format string.
10302
10303 2020-04-29 Tom Tromey <tromey@adacore.com>
10304
10305 PR ada/25875:
10306 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10307 type fields here.
10308 (read_enumeration_type): Call
10309 update_enumeration_type_from_children later. Update comments.
10310 (process_enumeration_scope): Don't create type fields.
10311
10312 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10313
10314 * nbsd-tdep.c: Include "xml-syscall.h".
10315 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10316
10317 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10318
10319 * nbsd-nat.c: Include "sys/wait.h".
10320 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10321 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10322 (nbsd_nat_target::remove_exec_catchpoint)
10323 (nbsd_nat_target::set_syscall_catchpoint): Add.
10324 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10325 (nbsd_nat_target::insert_exec_catchpoint)
10326 (nbsd_nat_target::remove_exec_catchpoint)
10327 (nbsd_nat_target::set_syscall_catchpoint): Add.
10328 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10329 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10330 `nbsd_get_syscall_number'.
10331
10332 2020-04-29 Tom Tromey <tom@tromey.com>
10333
10334 * stack.c (print_block_frame_labels): Remove.
10335
10336 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10337
10338 PR gdb/17320
10339 * ada-valprint.c (val_print_packed_array_elements): Move array
10340 end bracket to new line.
10341 (ada_val_print_string): Remove extra spaces before first array
10342 element.
10343 * c-valprint.c (c_value_print_array): Likewise.
10344 * m2-valprint.c (m2_print_array_contents): Likewise.
10345 (m2_value_print_inner): Likewise.
10346 * p-valprint.c (pascal_value_print_inner): Likewise.
10347 * valprint.c (generic_val_print_array): Likewise.
10348 (value_print_array_elements): Move first array element and array
10349 end bracket to new line.
10350
10351 2020-04-29 Tom de Vries <tdevries@suse.de>
10352
10353 PR symtab/25889
10354 * linespec.c (find_method): Fix ix calculation.
10355
10356 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10357
10358 * syscalls/update-netbsd.sh: New file.
10359 * syscalls/netbsd.xml: Regenerate.
10360 * data-directory/Makefile.in: Register `netbsd.xml' in
10361 `SYSCALLS_FILES'.
10362
10363 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * syscalls/update-freebsd.sh: Add double quotes.
10366
10367 2020-04-28 Tom Tromey <tom@tromey.com>
10368
10369 * NEWS: Update.
10370 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10371 (cmdpy_init): Allow class_tui.
10372
10373 2020-04-28 Mark Williams <mark@myosotissp.com>
10374
10375 PR gdb/24480
10376 * dwarf2read.c: Add missing assingments to list_in_scope when
10377 start_symtab was already called.
10378
10379 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10380
10381 PR gdb/25881
10382 * dwarf2/read.c (offset_map_type): Use
10383 gdb:hash_enum<sect_offset> as hash function.
10384
10385 2020-04-28 Tom de Vries <tdevries@suse.de>
10386
10387 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10388 with DW_AT_signature.
10389
10390 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * configure.ac: Remove check for fs_base/gs_base in
10393 user_regs_struct.
10394 * configure: Re-generate.
10395 * config.in: Re-generate.
10396 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10397 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10398 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10399
10400 2020-04-27 Luis Machado <luis.machado@linaro.org>
10401
10402 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10403 problematic inline frame unwinding situation.
10404 * frame.c (frame_id_computed_p): New function.
10405 * frame.h (frame_id_computed_p): New prototype.
10406
10407 2020-04-26 Tom Tromey <tom@tromey.com>
10408
10409 * command.h (enum command_class) <class_pseudo>: Remove.
10410
10411 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10412
10413 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10414 and whitespace.
10415
10416 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10417
10418 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10419 `PT_GET_PROCESS_STATE' block.
10420
10421 2020-04-24 Tom Tromey <tom@tromey.com>
10422
10423 * symtab.h (symbol_get_demangled_name): Don't declare.
10424 * symtab.c (symbol_get_demangled_name): Remove.
10425 (general_symbol_info::natural_name)
10426 (general_symbol_info::demangled_name): Update.
10427
10428 2020-04-24 Tom Tromey <tom@tromey.com>
10429
10430 PR rust/25025:
10431 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10432
10433 2020-04-24 Tom Tromey <tom@tromey.com>
10434
10435 PR symtab/12707:
10436 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10437 exists.
10438 (new_symbol): Likewise.
10439 * compile/compile-object-load.c (get_out_value_type): Use
10440 symbol_matches_search_name.
10441
10442 2020-04-24 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2/read.c (add_partial_symbol): Do not call
10445 compute_and_set_names.
10446
10447 2020-04-24 Tom Tromey <tom@tromey.com>
10448
10449 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10450 overload.
10451
10452 2020-04-24 Tom Tromey <tom@tromey.com>
10453
10454 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10455 (add_psymbol_to_list): New overload. Make old overload call new
10456 one.
10457 * psympriv.h (add_psymbol_to_list): New overload.
10458
10459 2020-04-24 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/read.c (partial_die_info::read) <case
10462 DW_AT_linkage_name>: Use value_as_string.
10463 (dwarf2_string_attr): Use value_as_string.
10464 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10465 method.
10466 * dwarf2/attribute.c (attribute::value_as_string): New method.
10467
10468 2020-04-24 Tom Tromey <tom@tromey.com>
10469
10470 * symtab.c (general_symbol_info::natural_name)
10471 (general_symbol_info::demangled_name): Check for language_rust.
10472
10473 2020-04-24 Tom Tromey <tom@tromey.com>
10474
10475 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10476 (dwarf2_physname): ... from here.
10477 (partial_die_info::read): Add Rust "{" hack.
10478
10479 2020-04-24 Tom Tromey <tom@tromey.com>
10480
10481 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10482 method.
10483 (symbol_set_demangled_name): Don't declare.
10484 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10485 symbol_set_demangled_name.
10486 (general_symbol_info::set_language)
10487 (general_symbol_info::compute_and_set_names): Update.
10488 * minsyms.c (minimal_symbol_reader::install): Update.
10489 * dwarf2/read.c (new_symbol): Update.
10490
10491 2020-04-24 Tom Tromey <tromey@adacore.com>
10492
10493 PR python/23662:
10494 * python/py-type.c (convert_field): Handle
10495 FIELD_LOC_KIND_DWARF_BLOCK.
10496 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10497 (typy_get_dynamic): Nw function.
10498 (type_object_getset): Add "dynamic".
10499 * NEWS: Add entry.
10500
10501 2020-04-24 Tom Tromey <tromey@adacore.com>
10502
10503 * ada-typeprint.c (print_choices, print_variant_part)
10504 (print_record_field_types_dynamic): New functions.
10505 (print_record_field_types): Use print_record_field_types_dynamic.
10506
10507 2020-04-24 Tom Tromey <tromey@adacore.com>
10508
10509 * dwarf2/read.c (handle_data_member_location): New overload.
10510 (dwarf2_add_field): Use it.
10511 (decode_locdesc): Add "computed" parameter. Update comment.
10512 * gdbtypes.c (is_dynamic_type_internal): Also look for
10513 FIELD_LOC_KIND_DWARF_BLOCK.
10514 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10515 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10516 virtual base classes.
10517 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10518 FIELD_LOC_KIND_DWARF_BLOCK.
10519
10520 2020-04-24 Tom Tromey <tromey@adacore.com>
10521
10522 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10523 * gdbtypes.c (is_dynamic_type_internal): Check
10524 TYPE_HAS_DYNAMIC_LENGTH.
10525 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10526 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10527 New macros.
10528 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10529 constant.
10530
10531 2020-04-24 Tom Tromey <tromey@adacore.com>
10532
10533 * dwarf2/read.c (struct variant_field): Rewrite.
10534 (struct variant_part_builder): New.
10535 (struct nextfield): Remove "variant" field. Add "offset".
10536 (struct field_info): Add "current_variant_part" and
10537 "variant_parts".
10538 (alloc_discriminant_info): Remove.
10539 (alloc_rust_variant): New function.
10540 (quirk_rust_enum): Update.
10541 (dwarf2_add_field): Set "offset" member. Don't handle
10542 DW_TAG_variant_part.
10543 (offset_map_type): New typedef.
10544 (convert_variant_range, create_one_variant)
10545 (create_one_variant_part, create_variant_parts)
10546 (add_variant_property): New functions.
10547 (dwarf2_attach_fields_to_type): Call add_variant_property.
10548 (read_structure_type): Don't handle DW_TAG_variant_part.
10549 (handle_variant_part, handle_variant): New functions.
10550 (handle_struct_member_die): Use them.
10551 (process_structure_scope): Don't handle variant parts.
10552 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10553 (struct discriminant_info): Remove.
10554 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10555 (struct main_type) <flag_discriminated_union>: Remove.
10556 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10557 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10558 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10559 Update.
10560 * valops.c (value_union_variant): Remove.
10561 * value.h (value_union_variant): Don't declare.
10562
10563 2020-04-24 Tom Tromey <tromey@adacore.com>
10564
10565 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10566 (ada_value_primitive_packed_val): Update.
10567 * ada-valprint.c (ada_value_print_1): Update.
10568 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10569 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10570 just an address. Use evaluate_for_locexpr_baton.
10571 (dwarf2_evaluate_property): Update.
10572 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10573 array_view.
10574 * findvar.c (default_read_var_value): Update.
10575 * gdbtypes.c (compute_variant_fields_inner)
10576 (resolve_dynamic_type_internal): Update.
10577 (resolve_dynamic_type): Change type of valaddr parameter.
10578 * gdbtypes.h (resolve_dynamic_type): Update.
10579 * valarith.c (value_subscripted_rvalue): Update.
10580 * value.c (value_from_contents_and_address): Update.
10581
10582 2020-04-24 Tom Tromey <tromey@adacore.com>
10583
10584 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10585 "push_initial_value" parameter.
10586 (dwarf2_evaluate_property): Likewise.
10587 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10588
10589 2020-04-24 Tom Tromey <tromey@adacore.com>
10590
10591 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10592 (variant::matches, compute_variant_fields_recurse)
10593 (compute_variant_fields_inner, compute_variant_fields): New
10594 functions.
10595 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10596 Use resolved_type after type is made.
10597 (operator==): Add new cases.
10598 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10599 (struct discriminant_range, struct variant, struct variant_part):
10600 New.
10601 (union dynamic_prop_data) <variant_parts, original_type>: New
10602 members.
10603 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10604 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10605 constants.
10606 * value.c (unpack_bits_as_long): Now public.
10607 * value.h (unpack_bits_as_long): Declare.
10608
10609 2020-04-24 Tom Tromey <tromey@adacore.com>
10610
10611 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10612 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10613
10614 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10615
10616 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10617
10618 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10619
10620 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10621 (remove_fork_catchpoint, post_startup_inferior)
10622 (post_attach): Move...
10623 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10624 (remove_fork_catchpoint, post_startup_inferior)
10625 (post_attach): ...here.
10626 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10627 (remove_fork_catchpoint, post_startup_inferior)
10628 (post_attach): Move...
10629 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10630 (remove_fork_catchpoint, post_startup_inferior)
10631 (post_attach): ...here.
10632
10633 2020-04-24 Tom Tromey <tromey@adacore.com>
10634
10635 * nat/windows-nat.h (struct windows_thread_info)
10636 <pc_adjusted>: New member.
10637 * windows-nat.c (windows_fetch_one_register): Check
10638 pc_adjusted.
10639 (windows_nat_target::get_windows_debug_event)
10640 (windows_nat_target::wait): Set pc_adjusted.
10641
10642 2020-04-24 Tom de Vries <tdevries@suse.de>
10643
10644 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10645 Run gdb-add-index inside temp dir.
10646
10647 2020-04-23 Tom Tromey <tromey@adacore.com>
10648
10649 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10650 in loop.
10651
10652 2020-04-23 Luis Machado <luis.machado@linaro.org>
10653
10654 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10655 get_frame_register instead of gdbarch_unwind_pc.
10656
10657 2020-04-23 Tom de Vries <tdevries@suse.de>
10658
10659 * symtab.c (lookup_global_symbol): Prefer def over decl.
10660
10661 2020-04-23 Tom de Vries <tdevries@suse.de>
10662
10663 PR symtab/25807
10664 * block.c (best_symbol, better_symbol): Promote to external.
10665 * block.h (best_symbol, better_symbol): Declare.
10666 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10667 decl.
10668
10669 2020-04-23 Tom Tromey <tromey@adacore.com>
10670
10671 PR ada/25837:
10672 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10673 "const char *", not a "const std::string &".
10674 <name_and_matcher::operator==>: Update.
10675 * unittests/lookup_name_info-selftests.c: Change type of
10676 "result".
10677
10678 2020-04-23 Tom Tromey <tom@tromey.com>
10679
10680 * inferior.h (iterate_over_inferiors): Don't declare.
10681 * inferior.c (iterate_over_inferiors): Remove.
10682 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10683 Remove.
10684 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10685 use iterate_over_inferiors.
10686 (darwin_resume_inferior_it)
10687 (struct resume_inferior_threads_param)
10688 (darwin_resume_inferior_threads_it): Remove.
10689 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10690
10691 2020-04-23 Tom de Vries <tdevries@suse.de>
10692
10693 * blockframe.c (find_pc_partial_function): Use
10694 find_pc_sect_compunit_symtab rather than
10695 objfile->sf->qf->find_pc_sect_compunit_symtab.
10696
10697 2020-04-22 Tom de Vries <tdevries@suse.de>
10698
10699 PR symtab/25764
10700 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10701 in psymtabs.
10702
10703 2020-04-22 Tom de Vries <tdevries@suse.de>
10704
10705 PR symtab/25801
10706 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10707 symtabs.
10708
10709 2020-04-22 Tom de Vries <tdevries@suse.de>
10710
10711 PR symtab/25700
10712 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10713 CU if already created.
10714
10715 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10716
10717 * infrun.c (displaced_step_fixup): Switch to the event_thread
10718 before calling displaced_step_restore, not after.
10719
10720 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10721
10722 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10723 its inferior is not recorded by us.
10724 (record_btrace_target_open): Replace call to
10725 all_non_exited_threads () with call to current_inferior
10726 ()->non_exited_threads ().
10727 (record_btrace_target::stop_recording): Likewise.
10728 (record_btrace_target::close): Likewise.
10729 (record_btrace_target::wait): Likewise.
10730 (record_btrace_target::record_stop_replaying): Likewise.
10731
10732 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10733
10734 * btrace.c (btrace_enable): Throw an error on double enables and
10735 when enabling recording fails.
10736 (btrace_disable): Throw an error if the thread is not recorded.
10737
10738 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10739
10740 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10741 request if we do not have a thread_info.
10742
10743 2020-04-21 Tom de Vries <tdevries@suse.de>
10744
10745 PR gdb/25471
10746 * thread.c
10747 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10748 exception in get_frame_id.
10749
10750 2020-04-20 Tom Tromey <tromey@adacore.com>
10751
10752 * python/python.c (struct gdbpy_event): Mark move constructor as
10753 noexcept.
10754 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10755 constructor as noexcept.
10756 * completer.h (struct completion_result): Mark move constructor as
10757 noexcept.
10758 * completer.c (completion_result::completion_result): Use
10759 initialization style. Don't call reset_match_list.
10760
10761 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10762
10763 * MAINTAINERS (Write After Approval): Add myself.
10764
10765 2020-04-18 Tom Tromey <tom@tromey.com>
10766
10767 * windows-tdep.c (init_w32_command_list)
10768 (w32_prefix_command_valid): Restore.
10769 (_initialize_windows_tdep): Call init_w32_command_list.
10770
10771 2020-04-18 Tom Tromey <tom@tromey.com>
10772
10773 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10774 * value.c (value_fn_field): Update.
10775 * valops.c (find_function_in_inferior)
10776 (value_allocate_space_in_inferior): Update.
10777 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10778 Update.
10779 * tui/tui-source.c (tui_source_window::set_contents): Update.
10780 * symtab.c (lookup_global_or_static_symbol)
10781 (find_function_start_sal_1, skip_prologue_sal)
10782 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10783 * symmisc.c (dump_msymbols, dump_symtab_1)
10784 (maintenance_print_one_line_table): Update.
10785 * symfile.c (init_entry_point_info, section_is_mapped)
10786 (list_overlays_command, simple_read_overlay_table)
10787 (simple_overlay_update_1): Update.
10788 * stap-probe.c (handle_stap_probe): Update.
10789 * stabsread.c (dbx_init_float_type, define_symbol)
10790 (read_one_struct_field, read_enum_type, read_range_type): Update.
10791 * source.c (info_line_command): Update.
10792 * python/python.c (gdbpy_source_objfile_script)
10793 (gdbpy_execute_objfile_script): Update.
10794 * python/py-type.c (save_objfile_types): Update.
10795 * python/py-objfile.c (py_free_objfile): Update.
10796 * python/py-inferior.c (python_new_objfile): Update.
10797 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10798 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10799 (maintenance_check_psymtabs): Update.
10800 * printcmd.c (info_address_command): Update.
10801 * objfiles.h (struct objfile) <arch>: New method, from
10802 get_objfile_arch.
10803 (get_objfile_arch): Don't declare.
10804 * objfiles.c (get_objfile_arch): Remove.
10805 (filter_overlapping_sections): Update.
10806 * minsyms.c (msymbol_is_function): Update.
10807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10808 (output_nondebug_symbol): Update.
10809 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10810 (mdebug_expand_psymtab): Update.
10811 * machoread.c (macho_add_oso_symfile): Update.
10812 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10813 Update.
10814 * linux-fork.c (checkpoint_command): Update.
10815 * linespec.c (convert_linespec_to_sals): Update.
10816 * jit.c (finalize_symtab): Update.
10817 * infrun.c (insert_exception_resume_from_probe): Update.
10818 * ia64-tdep.c (ia64_find_unwind_table): Update.
10819 * hppa-tdep.c (internalize_unwinds): Update.
10820 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10821 Update.
10822 * gcore.c (call_target_sbrk): Update.
10823 * elfread.c (record_minimal_symbol, elf_symtab_read)
10824 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10825 (elf_gnu_ifunc_resolve_by_got): Update.
10826 * dwarf2/read.c (create_addrmap_from_index)
10827 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10828 (read_debug_names_from_section)
10829 (process_psymtab_comp_unit_reader, add_partial_symbol)
10830 (add_partial_subprogram, process_full_comp_unit)
10831 (read_file_scope, read_func_scope, read_lexical_block_scope)
10832 (read_call_site_scope, dwarf2_ranges_read)
10833 (dwarf2_record_block_ranges, dwarf2_add_field)
10834 (mark_common_block_symbol_computed, read_tag_pointer_type)
10835 (read_tag_string_type, dwarf2_init_float_type)
10836 (dwarf2_init_complex_target_type, read_base_type)
10837 (partial_die_info::read, partial_die_info::read)
10838 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10839 (dwarf2_fetch_die_loc_sect_off): Update.
10840 * dwarf2/loc.c (dwarf2_find_location_expression)
10841 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10842 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10843 (dwarf2_loc_desc_get_symbol_read_needs)
10844 (locexpr_describe_location_piece, locexpr_describe_location_1)
10845 (loclist_describe_location): Update.
10846 * dwarf2/index-write.c (write_debug_names): Update.
10847 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10848 * dtrace-probe.c (dtrace_process_dof): Update.
10849 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10850 (process_one_symbol): Update.
10851 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10852 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10853 (coff_read_enum_type): Update.
10854 * cli/cli-cmds.c (edit_command, list_command): Update.
10855 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10856 * breakpoint.c (create_overlay_event_breakpoint)
10857 (create_longjmp_master_breakpoint)
10858 (create_std_terminate_master_breakpoint)
10859 (create_exception_master_breakpoint, get_sal_arch): Update.
10860 * block.c (block_gdbarch): Update.
10861 * annotate.c (annotate_source_line): Update.
10862
10863 2020-04-17 Tom Tromey <tromey@adacore.com>
10864
10865 * auto-load.c (show_auto_load_cmd): Remove.
10866 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10867 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10868 (maintenance_print_arc_command): Remove.
10869 * tui/tui-win.c (tui_command): Remove.
10870 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10871 * tui/tui-layout.c (tui_layout_command): Remove.
10872 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10873 * python/python.c (user_set_python, user_show_python): Remove.
10874 (_initialize_python): Use add_basic_prefix_cmd,
10875 add_show_prefix_cmd.
10876 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10877 (install_gdb_commands): Use add_basic_prefix_cmd,
10878 add_show_prefix_cmd.
10879 (info_guile_command): Remove.
10880 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10881 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10882 add_show_prefix_cmd.
10883 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10884 Remove do_set and do_show parameters.
10885 * cli/cli-style.c (set_style, show_style): Remove.
10886 (_initialize_cli_style): Use add_basic_prefix_cmd,
10887 add_show_prefix_cmd.
10888 (cli_style_option::add_setshow_commands): Remove do_set and
10889 do_show parameters.
10890 (cli_style_option::add_setshow_commands): Use
10891 add_basic_prefix_cmd, add_show_prefix_cmd.
10892 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10893 (set_style_name): Remove.
10894 * cli/cli-dump.c (dump_command, append_command): Remove.
10895 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10896 (tekhex_dump_command, binary_dump_command)
10897 (binary_append_command): Remove.
10898 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10899 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10900 (init_w32_command_list): Remove; move into ...
10901 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10902 * valprint.c (set_print, show_print, set_print_raw)
10903 (show_print_raw): Remove.
10904 (_initialize_valprint): Use add_basic_prefix_cmd,
10905 add_show_prefix_cmd.
10906 * typeprint.c (set_print_type, show_print_type): Remove.
10907 (_initialize_typeprint): Use add_basic_prefix_cmd,
10908 add_show_prefix_cmd.
10909 * record.c (set_record_command, show_record_command): Remove.
10910 (_initialize_record): Use add_basic_prefix_cmd,
10911 add_show_prefix_cmd.
10912 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10913 add_show_prefix_cmd.
10914 (info_command, show_command, set_debug, show_debug): Remove.
10915 * top.h (set_history, show_history): Don't declare.
10916 * top.c (set_history, show_history): Remove.
10917 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10918 (unset_tdesc_cmd): Remove.
10919 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10920 add_show_prefix_cmd.
10921 * symtab.c (info_module_command): Remove.
10922 (_initialize_symtab): Use add_basic_prefix_cmd.
10923 * symfile.c (overlay_command): Remove.
10924 (_initialize_symfile): Use add_basic_prefix_cmd.
10925 * sparc64-tdep.c (info_adi_command): Remove.
10926 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10927 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10928 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10929 add_show_prefix_cmd.
10930 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10931 (_initialize_serial): Use add_basic_prefix_cmd,
10932 add_show_prefix_cmd.
10933 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10934 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10935 add_show_prefix_cmd.
10936 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10937 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10938 add_show_prefix_cmd.
10939 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10940 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10941 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10942 add_show_prefix_cmd.
10943 * remote.c (remote_command, set_remote_cmd): Remove.
10944 (_initialize_remote): Use add_basic_prefix_cmd.
10945 * record-full.c (set_record_full_command)
10946 (show_record_full_command): Remove.
10947 (_initialize_record_full): Use add_basic_prefix_cmd,
10948 add_show_prefix_cmd.
10949 * record-btrace.c (cmd_set_record_btrace)
10950 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10951 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10952 (cmd_show_record_btrace_pt): Remove.
10953 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10954 add_show_prefix_cmd.
10955 * ravenscar-thread.c (set_ravenscar_command)
10956 (show_ravenscar_command): Remove.
10957 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10958 add_show_prefix_cmd.
10959 * mips-tdep.c (show_mips_command, set_mips_command)
10960 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10961 add_show_prefix_cmd.
10962 * maint.c (maintenance_command, maintenance_info_command)
10963 (maintenance_check_command, maintenance_print_command)
10964 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10965 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10966 add_show_prefix_cmd.
10967 (show_per_command_cmd): Remove.
10968 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10969 Remove.
10970 (maintenance_show_test_settings_cmd): Remove.
10971 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10972 add_show_prefix_cmd.
10973 * maint-test-options.c (maintenance_test_options_command):
10974 Remove.
10975 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10976 * macrocmd.c (macro_command): Remove
10977 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10978 * language.c (set_check, show_check): Remove.
10979 (_initialize_language): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * infcmd.c (unset_command): Remove.
10982 (_initialize_infcmd): Use add_basic_prefix_cmd.
10983 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10984 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10985 add_show_prefix_cmd.
10986 * go32-nat.c (go32_info_dos_command): Remove.
10987 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10988 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10989 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10990 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10991 (_initialize_frame): Use add_basic_prefix_cmd,
10992 add_show_prefix_cmd.
10993 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10994 (_initialize_dcache): Use add_basic_prefix_cmd,
10995 add_show_prefix_cmd.
10996 * cp-support.c (maint_cplus_command): Remove.
10997 (_initialize_cp_support): Use add_basic_prefix_cmd.
10998 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10999 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11000 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11001 add_basic_prefix_cmd, add_show_prefix_cmd.
11002 * breakpoint.c (save_command): Remove.
11003 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11004 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11005 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11006 add_show_prefix_cmd.
11007 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11008 (set_ada_command, show_ada_command): Remove.
11009 (_initialize_ada_language): Use add_basic_prefix_cmd,
11010 add_show_prefix_cmd.
11011 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11012
11013 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11014
11015 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11016 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11017
11018 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11019
11020 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11021 warning messages.
11022
11023 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11024
11025 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11026 import table is not at beginning of .idata section.
11027
11028 2020-04-16 Pedro Alves <palves@redhat.com>
11029
11030 * inferior.c (delete_inferior): Use delete operator directly
11031 instead of delete_program_space.
11032 * progspace.c (add_program_space): New, factored out from
11033 program_space::program_space.
11034 (remove_program_space): New, factored out from
11035 delete_program_space.
11036 (program_space::program_space): Remove intro comment. Rewrite.
11037 (program_space::~program_space): Remove intro comment. Call
11038 remove_program_space.
11039 (delete_program_space): Delete.
11040 * progspace.h (program_space::program_space): Make explicit. Move
11041 intro comment here, adjusted.
11042 (program_space::~program_space): Move intro comment here,
11043 adjusted.
11044 (delete_program_space): Remove.
11045
11046 2020-04-16 Tom Tromey <tromey@adacore.com>
11047
11048 * windows-nat.c (windows_nat::handle_access_violation): New
11049 function.
11050 * nat/windows-nat.h (handle_access_violation): Declare.
11051 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11052 windows-nat.c. Call handle_access_violation.
11053
11054 2020-04-16 Tom de Vries <tdevries@suse.de>
11055
11056 PR symtab/25791
11057 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11058 CUs without psymtab.
11059
11060 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11061
11062 * python/python.c (do_start_initialization): Don't call
11063 PyEval_InitThreads for Python 3.9 and beyond.
11064
11065 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11066
11067 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11068 thread functions.
11069 (obsd_nat_target::wait): Likewise.
11070
11071 2020-04-15 Tom Tromey <tromey@adacore.com>
11072
11073 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11074 (DEBUG_EXCEPT): Use debug_printf.
11075
11076 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * completer.c (class completion_tracker::completion_hash_entry)
11079 <hash_name>: New member function.
11080 (completion_tracker::discard_completions): New callback to hash a
11081 completion_hash_entry, pass this to htab_create_alloc.
11082
11083 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11084
11085 * windows-nat.c (windows_make_so): Warn rather than stopping with
11086 an error if realpath() fails.
11087
11088 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11089
11090 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11091 (nbsd_nat_target::info_proc): Add do_status.
11092
11093 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11094 Tom de Vries <tdevries@suse.de>
11095
11096 PR symtab/25718
11097 * psympriv.h (struct partial_symtab::read_symtab)
11098 (struct partial_symtab::expand_psymtab)
11099 (struct partial_symtab::read_dependencies): Update comments.
11100 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11101 read_symtab for includer.
11102 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11103 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11104 (struct dwarf2_include_psymtab::m_readin): Remove.
11105 (struct dwarf2_include_psymtab::includer): New member function.
11106 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11107
11108 2020-04-14 Tom de Vries <tdevries@suse.de>
11109
11110 PR symtab/25720
11111 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11112 with NULL symbol_matcher and lookup_name.
11113 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11114 and lookup_name.
11115 * dwarf2/read.c (dw2_expand_symtabs_matching)
11116 (dw2_debug_names_expand_symtabs_matching): Same.
11117 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11118 Make lookup_name a pointer. Update comment.
11119 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11120 lookup_name being a pointer.
11121 * symfile.c (expand_symtabs_matching): Same.
11122 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11123 * linespec.c (iterate_over_all_matching_symtabs): Same.
11124
11125 2020-04-13 Tom Tromey <tom@tromey.com>
11126
11127 * run-on-main-thread.c: Update include.
11128 * unittests/main-thread-selftests.c: Update include.
11129 * tui/tui-win.c: Update include.
11130 * tui/tui-io.c: Update include.
11131 * tui/tui-interp.c: Update include.
11132 * tui/tui-hooks.c: Update include.
11133 * top.h: Update include.
11134 * top.c: Update include.
11135 * ser-base.c: Update include.
11136 * remote.c: Update include.
11137 * remote-notif.c: Update include.
11138 * remote-fileio.c: Update include.
11139 * record-full.c: Update include.
11140 * record-btrace.c: Update include.
11141 * python/python.c: Update include.
11142 * posix-hdep.c: Update include.
11143 * mingw-hdep.c: Update include.
11144 * mi/mi-main.c: Update include.
11145 * mi/mi-interp.c: Update include.
11146 * main.c: Update include.
11147 * linux-nat.c: Update include.
11148 * interps.c: Update include.
11149 * infrun.c: Update include.
11150 * inf-loop.c: Update include.
11151 * event-top.c: Update include.
11152 * event-loop.c: Move to ../gdbsupport/.
11153 * event-loop.h: Move to ../gdbsupport/.
11154 * async-event.h: Update include.
11155 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11156
11157 2020-04-13 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui-win.c: Include async-event.h.
11160 * remote.c: Include async-event.h.
11161 * remote-notif.c: Include async-event.h.
11162 * record-full.c: Include async-event.h.
11163 * record-btrace.c: Include async-event.h.
11164 * infrun.c: Include async-event.h.
11165 * event-top.c: Include async-event.h.
11166 * event-loop.h: Move some declarations to async-event.h.
11167 * event-loop.c: Don't include ser-event.h or top.h. Move some
11168 code to async-event.c.
11169 * async-event.h: New file.
11170 * async-event.c: New file.
11171 * Makefile.in (COMMON_SFILES): Add async-event.c.
11172 (HFILES_NO_SRCDIR): Add async-event.h.
11173
11174 2020-04-13 Tom Tromey <tom@tromey.com>
11175
11176 * utils.c (flush_streams): New function.
11177 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11178
11179 2020-04-13 Tom Tromey <tom@tromey.com>
11180
11181 * event-loop.c (handle_file_event): Use warning, not
11182 printf_unfiltered.
11183
11184 2020-04-13 Tom Tromey <tom@tromey.com>
11185
11186 * event-loop.c: Include <chrono>.
11187
11188 2020-04-13 Tom Tromey <tom@tromey.com>
11189
11190 * gdb_select.h: Move to ../gdbsupport/.
11191 * event-loop.c: Update include path.
11192 * top.c: Update include path.
11193 * ser-base.c: Update include path.
11194 * ui-file.c: Update include path.
11195 * ser-tcp.c: Update include path.
11196 * guile/scm-ports.c: Update include path.
11197 * posix-hdep.c: Update include path.
11198 * ser-unix.c: Update include path.
11199 * gdb_usleep.c: Update include path.
11200 * mingw-hdep.c: Update include path.
11201 * inflow.c: Update include path.
11202 * infrun.c: Update include path.
11203 * event-top.c: Update include path.
11204
11205 2020-04-13 Tom Tromey <tom@tromey.com>
11206
11207 * configure: Rebuild.
11208 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11209
11210 2020-04-13 Tom Tromey <tom@tromey.com>
11211
11212 * event-loop.h (start_event_loop): Don't declare.
11213 * event-loop.c (start_event_loop): Move...
11214 * main.c (start_event_loop): ...here. Now static.
11215
11216 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11217
11218 * MAINTAINERS: Update my email address.
11219
11220 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11221
11222 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11223 IP_ALL.
11224
11225 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11226
11227 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11228 (nbsd_nat_target::info_proc): Add do_cmdline.
11229
11230 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11231
11232 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11233 (nbsd_nat_target::info_proc): Add do_cwd.
11234
11235 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11236
11237 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11238
11239 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11240
11241 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11242 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11243 (nbsd_nat_target::info_proc): New functions.
11244 * nbsd-nat.c (kinfo_get_vmmap): New function.
11245 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11246 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11247 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11248 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11249 functions.
11250 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11251 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11252 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11253 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11254 (KINFO_VME_FLAG_GROWS_DOWN): New.
11255
11256 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11257
11258 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11259 bit shift.
11260
11261 2020-04-10 Tom Tromey <tromey@adacore.com>
11262
11263 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11264
11265 2020-04-10 Tom Tromey <tromey@adacore.com>
11266
11267 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11268 separate debug files.
11269
11270 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11271
11272 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11273 Move to...
11274 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11275 ... here.
11276 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11277 Check for STATUS_WX86_BREAKPOINT.
11278 (windows_nat_target::wait): Same.
11279
11280 2020-04-10 Tom de Vries <tdevries@suse.de>
11281
11282 PR cli/25808
11283 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11284
11285 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11286
11287 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11288 (Write After Approval): Remove Tom de Vries.
11289
11290 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11291
11292 revert partially:
11293 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11294
11295 * buildsym.c (record_line): Fix undefined behavior and preserve
11296 lines at eof.
11297
11298 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11299
11300 * auxv.h (svr4_auxv_parse): New.
11301 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11302 and generic_auxv_parse.
11303 (svr4_auxv_parse): Add.
11304 * obsd-tdep.c: Include "auxv.h".
11305 (obsd_auxv_parse): Remove.
11306 (obsd_init_abi): Remove comment.
11307 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11308 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11309 * nbsd-tdep.c: Include "auxv.h".
11310 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11311
11312 2020-04-08 Tom Tromey <tromey@adacore.com>
11313
11314 * nat/windows-nat.h (last_wait_event): Don't declare.
11315 (wait_for_debug_event): Update comment.
11316 * nat/windows-nat.c (last_wait_event): Now static.
11317
11318 2020-04-08 Tom Tromey <tromey@adacore.com>
11319
11320 * windows-nat.c (wait_for_debug_event): Move to
11321 nat/windows-nat.c.
11322 * nat/windows-nat.h (wait_for_debug_event): Declare.
11323 * nat/windows-nat.c (wait_for_debug_event): Move from
11324 windows-nat.c. No longer static.
11325
11326 2020-04-08 Tom Tromey <tromey@adacore.com>
11327
11328 * windows-nat.c (get_windows_debug_event): Use
11329 fetch_pending_stop.
11330 * nat/windows-nat.h (fetch_pending_stop): Declare.
11331 * nat/windows-nat.c (fetch_pending_stop): New function.
11332
11333 2020-04-08 Tom Tromey <tromey@adacore.com>
11334
11335 * windows-nat.c (windows_continue): Use matching_pending_stop and
11336 continue_last_debug_event.
11337 * nat/windows-nat.h (matching_pending_stop)
11338 (continue_last_debug_event): Declare.
11339 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11340 (matching_pending_stop, continue_last_debug_event): New
11341 functions.
11342
11343 2020-04-08 Tom Tromey <tromey@adacore.com>
11344
11345 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11346 (handle_exception_result): Move to nat/windows-nat.h.
11347 (DEBUG_EXCEPTION_SIMPLE): Remove.
11348 (windows_nat::handle_ms_vc_exception): New function.
11349 (handle_exception): Move to nat/windows-nat.c.
11350 (get_windows_debug_event): Update.
11351 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11352 nat/windows-nat.c.
11353 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11354 (handle_exception_result): Move from windows-nat.c.
11355 (handle_exception): Declare.
11356 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11357 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11358 windows-nat.c.
11359
11360 2020-04-08 Tom Tromey <tromey@adacore.com>
11361
11362 * windows-nat.c (exception_count, event_count): Remove.
11363 (handle_exception, get_windows_debug_event)
11364 (do_initial_windows_stuff): Update.
11365
11366 2020-04-08 Tom Tromey <tromey@adacore.com>
11367
11368 * windows-nat.c (windows_nat::handle_load_dll)
11369 (windows_nat::handle_unload_dll): Rename. No longer static.
11370 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11371 Declare.
11372
11373 2020-04-08 Tom Tromey <tromey@adacore.com>
11374
11375 * complaints.h (stop_whining): Declare at top-level.
11376 (complaint): Don't declare stop_whining.
11377
11378 2020-04-08 Tom Tromey <tromey@adacore.com>
11379
11380 * windows-nat.c (windows_nat::handle_output_debug_string):
11381 Rename. No longer static.
11382 * nat/windows-nat.h (handle_output_debug_string): Declare.
11383
11384 2020-04-08 Tom Tromey <tromey@adacore.com>
11385
11386 * windows-nat.c (current_process_handle, current_process_id)
11387 (main_thread_id, last_sig, current_event, last_wait_event)
11388 (current_windows_thread, desired_stop_thread_id, pending_stops)
11389 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11390 (display_selectors, fake_create_process)
11391 (get_windows_debug_event): Update.
11392 * nat/windows-nat.h (current_process_handle, current_process_id)
11393 (main_thread_id, last_sig, current_event, last_wait_event)
11394 (current_windows_thread, desired_stop_thread_id, pending_stops)
11395 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11396 * nat/windows-nat.c (current_process_handle, current_process_id)
11397 (main_thread_id, last_sig, current_event, last_wait_event)
11398 (current_windows_thread, desired_stop_thread_id, pending_stops)
11399 (siginfo_er): New globals. Move from windows-nat.c.
11400
11401 2020-04-08 Tom Tromey <tromey@adacore.com>
11402
11403 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11404 (handle_load_dll): Update.
11405 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11406
11407 2020-04-08 Tom Tromey <tromey@adacore.com>
11408
11409 * windows-nat.c (enum thread_disposition_type): Move to
11410 nat/windows-nat.h.
11411 (windows_nat::thread_rec): Rename from thread_rec. No longer
11412 static.
11413 (windows_add_thread, windows_nat_target::fetch_registers)
11414 (windows_nat_target::store_registers, handle_exception)
11415 (windows_nat_target::resume, get_windows_debug_event)
11416 (windows_nat_target::get_tib_address)
11417 (windows_nat_target::thread_name)
11418 (windows_nat_target::thread_alive): Update.
11419 * nat/windows-nat.h (enum thread_disposition_type): Move from
11420 windows-nat.c.
11421 (thread_rec): Declare.
11422
11423 2020-04-08 Tom Tromey <tromey@adacore.com>
11424
11425 * windows-nat.c: Add "using namespace".
11426 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11427 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11428
11429 2020-04-08 Tom Tromey <tromey@adacore.com>
11430
11431 * nat/windows-nat.h (struct windows_thread_info): Declare
11432 destructor.
11433 * nat/windows-nat.c (~windows_thread_info): New.
11434
11435 2020-04-08 Tom Tromey <tromey@adacore.com>
11436
11437 PR gdb/22992
11438 * windows-nat.c (current_event): Update comment.
11439 (last_wait_event, desired_stop_thread_id): New globals.
11440 (struct pending_stop): New.
11441 (pending_stops): New global.
11442 (windows_nat_target) <stopped_by_sw_breakpoint>
11443 <supports_stopped_by_sw_breakpoint>: New methods.
11444 (windows_fetch_one_register): Add assertions. Adjust PC.
11445 (windows_continue): Handle pending stops. Suspend other threads
11446 when stepping. Use last_wait_event
11447 (wait_for_debug_event): New function.
11448 (get_windows_debug_event): Use wait_for_debug_event. Handle
11449 pending stops. Queue spurious stops.
11450 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11451 (windows_nat_target::kill): Use wait_for_debug_event.
11452 * nat/windows-nat.h (struct windows_thread_info)
11453 <stopped_at_software_breakpoint>: New field.
11454 * nat/windows-nat.c (windows_thread_info::resume): Clear
11455 stopped_at_software_breakpoint.
11456
11457 2020-04-08 Tom Tromey <tromey@adacore.com>
11458
11459 * windows-nat.c (enum thread_disposition_type): New.
11460 (thread_rec): Replace "get_context" parameter with "disposition";
11461 change type.
11462 (windows_add_thread, windows_nat_target::fetch_registers)
11463 (windows_nat_target::store_registers, handle_exception)
11464 (windows_nat_target::resume, get_windows_debug_event)
11465 (windows_nat_target::get_tib_address)
11466 (windows_nat_target::thread_name)
11467 (windows_nat_target::thread_alive): Update.
11468
11469 2020-04-08 Tom Tromey <tromey@adacore.com>
11470
11471 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11472 (windows_continue): Use windows_continue::resume.
11473 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11474 resume>: Declare new methods.
11475 * nat/windows-nat.c: New file.
11476 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11477
11478 2020-04-08 Tom Tromey <tromey@adacore.com>
11479
11480 * windows-nat.c (windows_add_thread, windows_delete_thread)
11481 (windows_nat_target::fetch_registers)
11482 (windows_nat_target::store_registers, fake_create_process)
11483 (windows_nat_target::resume, windows_nat_target::resume)
11484 (get_windows_debug_event, windows_nat_target::wait)
11485 (windows_nat_target::pid_to_str)
11486 (windows_nat_target::get_tib_address)
11487 (windows_nat_target::get_ada_task_ptid)
11488 (windows_nat_target::thread_name)
11489 (windows_nat_target::thread_alive): Use lwp, not tid.
11490
11491 2020-04-08 Tom Tromey <tromey@adacore.com>
11492
11493 * windows-nat.c (handle_exception)
11494 (windows_nat_target::thread_name): Update.
11495 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11496 <name>: Now unique_xmalloc_ptr.
11497
11498 2020-04-08 Tom Tromey <tromey@adacore.com>
11499
11500 * windows-nat.c (thread_rec)
11501 (windows_nat_target::fetch_registers): Update.
11502 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11503 Update comment.
11504 <debug_registers_changed, reload_context>: Now bool.
11505
11506 2020-04-08 Tom Tromey <tromey@adacore.com>
11507
11508 * windows-nat.c (windows_add_thread): Use new.
11509 (windows_init_thread_list, windows_delete_thread): Use delete.
11510 (get_windows_debug_event): Update.
11511 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11512 destructor, and initializers.
11513
11514 2020-04-08 Tom Tromey <tromey@adacore.com>
11515
11516 * windows-nat.c (struct windows_thread_info): Remove.
11517 * nat/windows-nat.h: New file.
11518
11519 2020-04-08 Tom Tromey <tromey@adacore.com>
11520
11521 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11522 (thread_rec, windows_add_thread, windows_delete_thread)
11523 (windows_continue): Update.
11524
11525 2020-04-08 Tom Tromey <tromey@adacore.com>
11526
11527 * windows-nat.c (struct windows_thread_info): Remove typedef.
11528 (thread_head): Remove.
11529 (thread_list): New global.
11530 (thread_rec, windows_add_thread, windows_init_thread_list)
11531 (windows_delete_thread, windows_continue): Update.
11532
11533 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11534
11535 * windows-tdep.h (windows_init_abi): Add comment.
11536 (cygwin_init_abi): New declaration.
11537 * windows-tdep.c: Split signal enumeration in two, one for
11538 Windows and one for Cygwin.
11539 (windows_gdb_signal_to_target): Only deal with signal of the
11540 Windows OS ABI.
11541 (cygwin_gdb_signal_to_target): New function.
11542 (windows_init_abi): Rename to windows_init_abi_common, don't set
11543 gdb_signal_to_target gdbarch method. Add new new function with
11544 this name.
11545 (cygwin_init_abi): New function.
11546 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11547 comment. Don't call windows_init_abi.
11548 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11549 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11550 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11551 i386_windows_init_abi_common, don't call windows_init_abi. Add
11552 a new function of this name.
11553 (i386_cygwin_init_abi): New function.
11554 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11555 OS ABI Cygwin.
11556
11557 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11558
11559 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11560 parameter.c.
11561 (dwarf2_read_gdb_index): Update.
11562
11563 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11564
11565 * nbsd-tdep.c: Include "objfiles.h".
11566 (nbsd_skip_solib_resolver): New.
11567 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11568
11569 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11570
11571 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11572 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11573 with DW_LLE_base_addressx are being emitted in DWARFv5.
11574 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11575 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11576 unsigned integer.
11577
11578 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11579
11580 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11581 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11582 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11583 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11584 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11585 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11586 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11587
11588
11589 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11590
11591 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11592 (read_loclist_index): New function definition.
11593 (lookup_loclist_base): New function definition.
11594 (read_loclist_header): New function definition.
11595 (dwarf2_cu): Add loclist_base and loclist_header field.
11596 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11597 (read_full_die_1): Read the value of DW_AT_loclists_base.
11598 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11599 (read_attribute_value): Handle DW_FORM_loclistx.
11600 (skip_one_die): Handle DW_FORM_loclistx.
11601 (loclist_header): New structure declaration.
11602 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11603
11604 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11605
11606 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11607 constructor. Remove `addr` parameter from other constructor and
11608 add `per_cu` parameter.
11609 * dwarf2/read.c (create_partial_symtab): Update.
11610
11611 2020-04-07 Tom de Vries <tdevries@suse.de>
11612
11613 PR symtab/25796
11614 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11615 (partial_die_info::fixup): Inherit has_const_value.
11616
11617 2020-04-07 Tom de Vries <tdevries@suse.de>
11618
11619 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11620 symbols without address.
11621
11622 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11623
11624 * nbsd-nat.h (struct thread_info): Add forward declaration.
11625 (nbsd_nat_target::thread_alive): Add.
11626 (nbsd_nat_target::thread_name): Likewise.
11627 (nbsd_nat_target::update_thread_list): Likewise.
11628 (update_thread_list::post_attach): Likewise.
11629 (post_attach::pid_to_str): Likewise.
11630 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11631 (nbsd_thread_lister): Add.
11632 (nbsd_nat_target::thread_alive): Likewise.
11633 (nbsd_nat_target::thread_name): Likewise.
11634 (nbsd_add_threads): Likewise.
11635 (update_thread_list::post_attach): Likewise.
11636 (nbsd_nat_target::update_thread_list): Likewise.
11637 (post_attach::pid_to_str): Likewise.
11638
11639 2020-04-06 Tom Tromey <tromey@adacore.com>
11640
11641 * ada-valprint.c (print_variant_part): Extract the variant field.
11642 (print_field_values): Use the field as the outer value when
11643 recursing.
11644
11645 2020-04-06 Tom Tromey <tromey@adacore.com>
11646
11647 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11648 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11649 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11650 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11651 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11652
11653 2020-04-06 Tom Tromey <tromey@adacore.com>
11654
11655 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11656 TYPE_CODE_ERROR.
11657
11658 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11659
11660 * nbsd-tdep.c: Include "gdbarch.h".
11661 Define enum with NetBSD signal numbers.
11662 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11663 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11664 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11665 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11666 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11667 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11668 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11669 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11670 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11671 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11672 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11673 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11674
11675 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11676
11677 PR gdb/25325
11678 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11679
11680 2020-04-03 Tom Tromey <tromey@adacore.com>
11681
11682 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11683 Read constant block.
11684
11685 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11686
11687 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11688 (gdb_bfd_get_full_section_contents): New declaration.
11689 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11690 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11691 gdb_bfd_get_full_section_contents.
11692
11693 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11694
11695 * exec.c (build_section_table): Replace internal_error with
11696 gdb_assert.
11697 (section_table_xfer_memory_partial): Likewise.
11698 * mdebugread.c (parse_partial_symbols): Likewise.
11699 * psymtab.c (lookup_partial_symbol): Likewise.
11700 * utils.c (wrap_here): Likewise.
11701
11702 2020-04-02 Tom Tromey <tromey@adacore.com>
11703
11704 * f-lang.c (build_fortran_types): Use arch_type to initialize
11705 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11706
11707 2020-04-02 Tom Tromey <tromey@adacore.com>
11708
11709 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11710 of attributes.
11711
11712 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11713 Bernd Edlinger <bernd.edlinger@hotmail.de>
11714 Tom Tromey <tromey@adacore.com>
11715
11716 * buildsym.c (buildsym_compunit::record_line): Remove
11717 deduplication code.
11718
11719 2020-04-02 Tom de Vries <tdevries@suse.de>
11720
11721 PR ada/24671
11722 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11723
11724 2020-04-02 Tom de Vries <tdevries@suse.de>
11725
11726 * dwarf2/read.c (dwarf2_gdb_index_functions,
11727 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11728 NULL.
11729 * psymtab.c (psym_lookup_global_symbol_language): New function.
11730 (psym_functions): Init psym_lookup_global_symbol_language with
11731 psym_lookup_global_symbol_language.
11732 * symfile-debug.c (debug_sym_quick_functions): Init
11733 lookup_global_symbol_language with NULL.
11734 * symfile.c (set_initial_language): Remove fixme comment.
11735 * symfile.h (struct quick_symbol_functions): Add
11736 lookup_global_symbol_language.
11737 * symtab.c (find_quick_global_symbol_language): New function.
11738 (find_main_name): Use find_quick_global_symbol_language.
11739
11740 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11741
11742 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11743
11744 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11745
11746 * buildsym.c (record_line): Fix undefined behavior and preserve
11747 lines at eof.
11748
11749 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11750
11751 * buildsym.c (record_line): Fix the resizing condition.
11752
11753 2020-04-01 Tom Tromey <tom@tromey.com>
11754
11755 * value.h (value_literal_complex): Add comment.
11756 * valops.c (value_literal_complex): Refer to value.h.
11757
11758 2020-04-01 Tom Tromey <tom@tromey.com>
11759
11760 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11761 (scalar_type): New rule, from typebase.
11762 (typebase): Use scalar_type. Recognize complex types.
11763 (field_name): Handle FLOAT_KEYWORD.
11764 (ident_tokens): Add _Complex and __complex__.
11765
11766 2020-04-01 Tom Tromey <tom@tromey.com>
11767
11768 PR exp/25299:
11769 * valarith.c (promotion_type, complex_binop): New functions.
11770 (scalar_binop): Handle complex numbers. Use promotion_type.
11771 (value_pos, value_neg, value_complement): Handle complex numbers.
11772
11773 2020-04-01 Tom Tromey <tom@tromey.com>
11774
11775 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11776 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11777 (parse_number): Handle complex numbers.
11778
11779 2020-04-01 Tom Tromey <tom@tromey.com>
11780
11781 * c-valprint.c (c_decorations): Change complex suffix to "i".
11782
11783 2020-04-01 Tom Tromey <tom@tromey.com>
11784
11785 * valprint.c (generic_value_print_complex): Use accessors.
11786 * value.h (value_real_part, value_imaginary_part): Declare.
11787 * valops.c (value_real_part, value_imaginary_part): New
11788 functions.
11789 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11790
11791 2020-04-01 Tom Tromey <tom@tromey.com>
11792
11793 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11794 (read_range_type): Update.
11795 * mdebugread.c (basic_type): Update.
11796 * go-lang.c (build_go_types): Use init_complex_type.
11797 * gdbtypes.h (struct main_type) <complex_type>: New member.
11798 (init_complex_type): Update.
11799 (arch_complex_type): Don't declare.
11800 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11801 Make name if none given. Use alloc_type_copy. Look for cached
11802 complex type.
11803 (arch_complex_type): Remove.
11804 (gdbtypes_post_init): Use init_complex_type.
11805 * f-lang.c (build_fortran_types): Use init_complex_type.
11806 * dwarf2/read.c (read_base_type): Update.
11807 * d-lang.c (build_d_types): Use init_complex_type.
11808 * ctfread.c (read_base_type): Update.
11809
11810 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11811
11812 * infrun.c (stop_all_threads): Update assertion, plus when
11813 stopping threads, take into account that we might be trying
11814 to stop an all-stop target.
11815 (stop_waiting): Call 'stop_all_threads' if there exists a
11816 non-stop target.
11817
11818 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11819
11820 * target.h (exists_non_stop_target): New function declaration.
11821 * target.c (exists_non_stop_target): New function.
11822
11823 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11824
11825 PR gdb/24789
11826 * eval.c (is_integral_or_integral_reference): New function.
11827 (evaluate_subexp_standard): Allow integer references in
11828 pointer arithmetic.
11829
11830 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11831
11832 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11833 check for no ptid in the stop reply when the target is non-stop.
11834
11835 2020-04-01 Tom Tromey <tromey@adacore.com>
11836
11837 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11838 "name" parameter to rvalue reference. Initialize m_name_holder.
11839 <lookup_name_info>: New overloads.
11840 <name>: Return gdb::string_view.
11841 <c_str>: New method.
11842 <make_ignore_params>: Update.
11843 <search_name_hash>: Update.
11844 <language_lookup_name>: Return const char *.
11845 <m_name>: Change type.
11846 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11847 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11848 (lookup_name_info::match_any): Update.
11849 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11850 Update.
11851 * minsyms.c (linkage_name_str): Update.
11852 * language.c (default_symbol_name_matcher): Update.
11853 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11854 Update.
11855 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11856 (ada_lookup_name_info::ada_lookup_name_info): Update.
11857 (literal_symbol_name_matcher): Update.
11858
11859 2020-04-01 Tom Tromey <tromey@adacore.com>
11860
11861 * psymtab.c (psymtab_search_name): Remove function.
11862 (psym_lookup_symbol): Create search name and lookup name here.
11863 (lookup_partial_symbol): Remove "name" parameter; add
11864 lookup_name.
11865 (psym_expand_symtabs_for_function): Update.
11866
11867 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11868
11869 PR tui/25597:
11870 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11871
11872 2020-03-31 Tom Tromey <tromey@adacore.com>
11873
11874 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11875 memcpy.
11876
11877 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11878
11879 * features/riscv/32bit-csr.xml: Regenerated.
11880 * features/riscv/64bit-csr.xml: Regenerated.
11881
11882 2020-03-30 Tom Tromey <tromey@adacore.com>
11883
11884 * ada-valprint.c (print_variant_part): Update.
11885 * ada-lang.h (ada_which_variant_applies): Update.
11886 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11887 outer_valaddr parameters; replace with "outer" value parameter.
11888 (to_fixed_variant_branch_type): Update.
11889
11890 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11891
11892 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11893 <list>. Remove inclusion of observable.h.
11894 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11895 (struct arch_lwp_info): New struct.
11896 (class ppc_linux_dreg_interface): New class.
11897 (struct ppc_linux_process_info): New struct.
11898 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11899 <low_new_clone, low_forget_process, low_prepare_to_resume>
11900 <copy_thread_dreg_state, mark_thread_stale>
11901 <mark_debug_registers_changed, register_hw_breakpoint>
11902 <clear_hw_breakpoint, register_wp, clear_wp>
11903 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11904 <num_memory_accesses, get_trigger_type>
11905 <create_watchpoint_request, hwdebug_point_cmp>
11906 <init_arch_lwp_info, get_arch_lwp_info>
11907 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11908 methods.
11909 <struct ptid_hash>: New inner struct.
11910 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11911 members.
11912 (saved_dabr_value, hwdebug_info, max_slots_number)
11913 (struct hw_break_tuple, struct thread_points, ppc_threads)
11914 (have_ptrace_hwdebug_interface)
11915 (hwdebug_find_thread_points_by_tid)
11916 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11917 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11918 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11919 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11920 use m_dreg_interface.
11921 (hwdebug_point_cmp): Change to...
11922 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11923 reference arguments instead of pointers.
11924 (ppc_linux_nat_target::ranged_break_num_registers): Use
11925 m_dreg_interface.
11926 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11927 m_dreg_interface. Call register_hw_breakpoint.
11928 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11929 m_dreg_interface. Call clear_hw_breakpoint.
11930 (get_trigger_type): Change to...
11931 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11932 comment.
11933 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11934 use m_dreg_interface. Call register_hw_breakpoint.
11935 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11936 use m_dreg_interface. Call clear_hw_breakpoint.
11937 (can_use_watchpoint_cond_accel): Change to...
11938 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11939 method. Update comment, use m_dreg_interface and
11940 m_process_info.
11941 (calculate_dvc): Change to...
11942 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11943 m_dreg_interface.
11944 (num_memory_accesses): Change to...
11945 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11946 (check_condition): Change to...
11947 (ppc_linux_nat_target::check_condition): ...this method.
11948 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11949 comment, use m_dreg_interface.
11950 (create_watchpoint_request): Change to...
11951 (ppc_linux_nat_target::create_watchpoint_request): ...this
11952 method. Use m_dreg_interface.
11953 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11954 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11955 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11956 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11957 (ppc_linux_nat_target::low_forget_process)
11958 (ppc_linux_nat_target::low_new_fork)
11959 (ppc_linux_nat_target::low_new_clone)
11960 (ppc_linux_nat_target::low_delete_thread)
11961 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11962 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11963 only call mark_thread_stale.
11964 (ppc_linux_thread_exit): Remove.
11965 (ppc_linux_nat_target::stopped_data_address): Change to...
11966 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11967 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11968 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11969 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11970 comment. Call low_stopped_data_address.
11971 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11972 m_dreg_interface.
11973 (ppc_linux_nat_target::masked_watch_num_registers): Use
11974 m_dreg_interface.
11975 (ppc_linux_nat_target::copy_thread_dreg_state)
11976 (ppc_linux_nat_target::mark_thread_stale)
11977 (ppc_linux_nat_target::mark_debug_registers_changed)
11978 (ppc_linux_nat_target::register_hw_breakpoint)
11979 (ppc_linux_nat_target::clear_hw_breakpoint)
11980 (ppc_linux_nat_target::register_wp)
11981 (ppc_linux_nat_target::clear_wp)
11982 (ppc_linux_nat_target::init_arch_lwp_info)
11983 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11984 (_initialize_ppc_linux_nat): Remove observer callback.
11985
11986 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11987
11988 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11989 (ppc_linux_nat_target::auxv_parse)
11990 (ppc_linux_nat_target::read_description)
11991 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11992 Move up.
11993
11994 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11995
11996 * linux-nat.h (low_new_clone): New method.
11997 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11998
11999 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12000
12001 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12002 (dbx_expand_psymtab): ... this.
12003 (start_psymtab): Update.
12004 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12005 (mdebug_expand_psymtab): ... this.
12006 (parse_partial_symbols): Update.
12007 (new_psymtab): Update.
12008 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12009 (xcoff_expand_psymtab): ... this.
12010 (xcoff_start_psymtab): Update.
12011
12012 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12013
12014 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12015 <expand_dependencies>: ... this.
12016 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12017 (partial_symtab::expand_dependencies): ... this.
12018 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12019 Update.
12020 (dwarf2_psymtab::expand_psymtab): Update.
12021 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12022 * mdebugread.c (psymtab_to_symtab_1): Update.
12023 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12024
12025 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12026
12027 * psympriv.h (discard_psymtab): Remove.
12028 * dbxread.c (dbx_end_psymtab): Update.
12029 * xcoffread.c (xcoff_end_psymtab): Update.
12030
12031 2020-03-28 Tom Tromey <tom@tromey.com>
12032
12033 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12034 comment.
12035
12036 2020-03-28 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12039
12040 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12041
12042 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12043
12044 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12045
12046 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12047
12048 2020-03-26 Tom Tromey <tom@tromey.com>
12049
12050 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12051 (mark_common_block_symbol_computed, read_tag_string_type)
12052 (attr_to_dynamic_prop, read_subrange_type): Update.
12053 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12054 to be methods on struct attribute.
12055 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12056 (read_call_site_scope, partial_die_info::read)
12057 (partial_die_info::read, lookup_die_type, follow_die_ref):
12058 Update.
12059 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12060 from dwarf2_get_ref_die_offset.
12061 (attribute::constant_value): New method, from
12062 dwarf2_get_attr_constant_value.
12063 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12064 Declare method.
12065 <constant_value>: New method.
12066
12067 2020-03-26 Tom Tromey <tom@tromey.com>
12068
12069 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12070 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12071 (dwarf_type_encoding_name): Move to stringify.c.
12072 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12073 * dwarf2/stringify.c: New file.
12074 * dwarf2/stringify.h: New file.
12075
12076 2020-03-26 Tom Tromey <tom@tromey.com>
12077
12078 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12079 Rewrite.
12080
12081 2020-03-26 Tom Tromey <tom@tromey.com>
12082
12083 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12084 methods.
12085 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12086 (lookup_ranges_base): Likewise.
12087 (read_cutu_die_from_dwo, read_full_die_1): Update.
12088
12089 2020-03-26 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2/read.c (read_import_statement, read_file_scope)
12092 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12093 (read_lexical_block_scope, read_call_site_scope)
12094 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12095 (handle_struct_member_die, process_structure_scope)
12096 (update_enumeration_type_from_children)
12097 (process_enumeration_scope, read_array_type, read_common_block)
12098 (read_namespace, read_module, read_subroutine_type): Update.
12099 (sibling_die): Remove.
12100
12101 2020-03-26 Tom Tromey <tom@tromey.com>
12102
12103 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12104 (build_type_psymtabs_reader, read_structure_type)
12105 (read_enumeration_type, read_full_die_1): Update.
12106 (dwarf2_attr_no_follow): Move to die.h.
12107 * dwarf2/die.h (struct die_info) <attr>: New method.
12108
12109 2020-03-26 Tom Tromey <tom@tromey.com>
12110
12111 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12112 <base_address>: Now an optional.
12113 (dwarf2_find_base_address, dwarf2_rnglists_process)
12114 (dwarf2_ranges_process, fill_in_loclist_baton)
12115 (dwarf2_symbol_mark_computed): Update.
12116
12117 2020-03-26 Tom Tromey <tom@tromey.com>
12118
12119 * dwarf2/read.c (struct die_info): Move to die.h.
12120 * dwarf2/die.h: New file.
12121
12122 2020-03-26 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12125 * dwarf2/read.c
12126 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12127 Move to line-header.c.
12128 (read_checked_initial_length_and_offset, read_formatted_entries):
12129 Likewise.
12130 (dwarf_decode_line_header): Split into two.
12131 * dwarf2/line-header.c
12132 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12133 Move from read.c.
12134 (read_checked_initial_length_and_offset, read_formatted_entries):
12135 Likewise.
12136 (dwarf_decode_line_header): New function, split from read.c.
12137
12138 2020-03-26 Tom Tromey <tom@tromey.com>
12139
12140 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12141 Declare method.
12142 * dwarf2/read.c (read_attribute_value): Update.
12143 (dwarf2_per_objfile::read_line_string): Rename from
12144 read_indirect_line_string.
12145 (read_formatted_entries): Update.
12146
12147 2020-03-26 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12150 variable.
12151
12152 2020-03-26 Tom Tromey <tom@tromey.com>
12153
12154 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12155 const.
12156 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12157 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12158 parameter const.
12159
12160 2020-03-26 Tom Tromey <tom@tromey.com>
12161
12162 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12163 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12164 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12165 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12166
12167 2020-03-26 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12170 file_names_size, file_full_name, file_file_name>: Use const.
12171 <file_name_at, file_names>: Add const overload.
12172 * dwarf2/line-header.c (line_header::file_file_name)
12173 (line_header::file_full_name): Update.
12174
12175 2020-03-26 Tom Tromey <tom@tromey.com>
12176
12177 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12178 (macro_start_file, consume_improper_spaces)
12179 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12180 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12181 (dwarf_decode_macros): Move to macro.c.
12182 * dwarf2/macro.c: New file.
12183 * dwarf2/macro.h: New file.
12184 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12185
12186 2020-03-26 Tom Tromey <tom@tromey.com>
12187
12188 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12189 method.
12190 * dwarf2/section.c: New method. From
12191 read_indirect_string_at_offset_from.
12192 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12193 (read_indirect_string_at_offset_from): Move to section.c.
12194 (read_indirect_string_at_offset): Rewrite.
12195 (read_indirect_line_string_at_offset): Remove.
12196 (read_indirect_string, read_indirect_line_string)
12197 (dwarf_decode_macro_bytes): Update.
12198
12199 2020-03-26 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/section.h (struct dwarf2_section_info)
12202 <overload_complaint>: Declare.
12203 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12204 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12205 Rename from dwarf2_section_buffer_overflow_complaint.
12206 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12207 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12208
12209 2020-03-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12212 Declare.
12213 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12214 Move from read.c.
12215 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12216 to section.c.
12217
12218 2020-03-26 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12221
12222 2020-03-26 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12225 "builder".
12226 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12227 parameter.
12228 (dwarf_decode_macros): Update.
12229
12230 2020-03-26 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.c (read_attribute_value): Update.
12233 (read_indirect_string_from_dwz): Move to dwz.c; change into
12234 method.
12235 (dwarf_decode_macro_bytes): Update.
12236 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12237 * dwarf2/dwz.c: New file.
12238 * Makefile.in (COMMON_SFILES): Add dwz.c.
12239
12240 2020-03-26 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12243 * dwarf2/read.c: Add include.
12244 * dwarf2/index-write.c: Add include.
12245 * dwarf2/index-cache.c: Add include.
12246 * dwarf2/dwz.h: New file.
12247
12248 2020-03-25 Tom Tromey <tom@tromey.com>
12249
12250 * compile/compile-object-load.c (get_out_value_type): Mention
12251 correct symbol name in error message.
12252
12253 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12254
12255 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12256
12257 2020-03-25 Tom de Vries <tdevries@suse.de>
12258
12259 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12260 * symmisc.c (dump_symtab_1): Print user and includes fields.
12261 (maintenance_info_symtabs): Same.
12262
12263 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12264
12265 PR gdb/25534
12266 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12267 (riscv_regcache_cooked_write): New function.
12268 (riscv_push_dummy_call): Use new function.
12269 (riscv_return_value): Likewise.
12270
12271 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12272
12273 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12274 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12275 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12276 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12277 * infrun.c (follow_fork): Likewise.
12278 (follow_fork_inferior): Likewise.
12279 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12280 * linux-nat.h (class linux_nat_target): Likewise.
12281 * remote.c (class remote_target) <follow_fork>: Likewise.
12282 (remote_target::follow_fork): Likewise.
12283 * target-delegates.c: Re-generate.
12284 * target.c (default_follow_fork): Likewise.
12285 (target_follow_fork): Likewise.
12286 * target.h (struct target_ops) <follow_fork>: Likewise.
12287 (target_follow_fork): Likewise.
12288
12289 2020-03-24 Tom de Vries <tdevries@suse.de>
12290
12291 * psymtab.c (maintenance_info_psymtabs): Print user field.
12292
12293 2020-03-20 Tom Tromey <tromey@adacore.com>
12294
12295 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12296 const.
12297 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12298 const.
12299
12300 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12301
12302 * ptrace.m4: Don't check for ptrace declaration.
12303 * config.in: Re-generate.
12304 * configure: Re-generate.
12305 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12306 not defined.
12307
12308 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12309
12310 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12311 `PTRACE_TYPE_RET'.
12312 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12313 * sparc-nat.c (gdb_ptrace): Likewise.
12314 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12315
12316 2020-03-20 Tom Tromey <tromey@adacore.com>
12317
12318 * c-exp.y (lex_one_token): Fix assert.
12319
12320 2020-03-20 Tom Tromey <tromey@adacore.com>
12321
12322 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12323 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12324 strncpy call.
12325
12326 2020-03-20 Tom Tromey <tromey@adacore.com>
12327
12328 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12329
12330 2020-03-20 Tom Tromey <tromey@adacore.com>
12331
12332 * ada-valprint.c (print_variant_part): Remove parameters; switch
12333 to value-based API.
12334 (print_field_values): Likewise.
12335 (ada_val_print_struct_union): Likewise.
12336 (ada_value_print_1): Update.
12337
12338 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12339
12340 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12341 nbsd_nat_target instead of inf_ptrace_target.
12342 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12343 nbsd_nat_target.
12344
12345 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12346
12347 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12348 it to the ptrace call.
12349 * (store_registers): Likewise.
12350
12351 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12352
12353 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12354 it to the ptrace call.
12355 * (store_registers): Likewise.
12356
12357 2020-03-19 Luis Machado <luis.machado@linaro.org>
12358
12359 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12360 valid, fetch vg value from ptrace.
12361
12362 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12363 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12364 * inf-ptrace.c: Likewise.
12365 * (gdb_ptrace): Add.
12366 * (inf_ptrace_target::resume): Update.
12367 * (inf_ptrace_target::xfer_partial): Likewise.
12368 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12369 * (inf_ptrace_peek_poke): Update.
12370
12371 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12372
12373 * x86-bsd-nat.c (gdb_ptrace): New.
12374 * (x86bsd_dr_set): Add new argument `ptid'.
12375 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12376 x86bsd_dr_set_addr): Update.
12377
12378 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12379
12380 * remote.c (remote_target::process_stop_reply): Handle events for
12381 all threads differently.
12382
12383 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * completer.c (completion_tracker::remove_completion): Define new
12386 function.
12387 * completer.h (completion_tracker::remove_completion): Declare new
12388 function.
12389 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12390 when adding a C++ function symbol.
12391
12392 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12393
12394 * completer.c (completion_tracker::completion_hash_entry): Define
12395 new class.
12396 (advance_to_filename_complete_word_point): Call
12397 recompute_lowest_common_denominator.
12398 (completion_tracker::completion_tracker): Call discard_completions
12399 to setup the hash table.
12400 (completion_tracker::discard_completions): Allow for being called
12401 from the constructor, pass new equal function, and element deleter
12402 when constructing the hash table. Initialise new class member
12403 variables.
12404 (completion_tracker::maybe_add_completion): Remove use of
12405 m_entries_vec, and store more information into m_entries_hash.
12406 (completion_tracker::recompute_lcd_visitor): New function, most
12407 content taken from...
12408 (completion_tracker::recompute_lowest_common_denominator):
12409 ...here, this now just visits each item in the hash calling the
12410 above visitor.
12411 (completion_tracker::build_completion_result): Remove use of
12412 m_entries_vec, call recompute_lowest_common_denominator.
12413 * completer.h (completion_tracker::have_completions): Remove use
12414 of m_entries_vec.
12415 (completion_tracker::completion_hash_entry): Declare new class.
12416 (completion_tracker::recompute_lowest_common_denominator): Change
12417 function signature.
12418 (completion_tracker::recompute_lcd_visitor): Declare new function.
12419 (completion_tracker::m_entries_vec): Delete.
12420 (completion_tracker::m_entries_hash): Initialize to NULL.
12421 (completion_tracker::m_lowest_common_denominator_valid): New
12422 member variable.
12423 (completion_tracker::m_lowest_common_denominator_max_length): New
12424 member variable.
12425
12426 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12427
12428 * regformats/regdef.h: Put reg in gdb namespace.
12429
12430 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12431
12432 * i386-bsd-nat.c (gdb_ptrace): New.
12433 * (i386bsd_fetch_inferior_registers,
12434 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12435 * (i386bsd_fetch_inferior_registers,
12436 i386bsd_store_inferior_registers) Use gdb_ptrace.
12437
12438 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12439
12440 * amd64-bsd-nat.c (gdb_ptrace): New.
12441 * (amd64bsd_fetch_inferior_registers,
12442 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12443 * (amd64bsd_fetch_inferior_registers,
12444 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12445
12446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12447
12448 * user-regs.c (user_reg::read): Rename to...
12449 (user_reg::xread): ...this.
12450 * (append_user_reg): Rename argument `read' to `xread'.
12451 * (user_reg_add_builtin): Likewise.
12452 * (user_reg_add): Likewise.
12453 * (value_of_user_reg): Likewise.
12454
12455 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12456
12457 * sparc-nat.c (gdb_ptrace): New.
12458 * sparc-nat.c (sparc_fetch_inferior_registers)
12459 (sparc_store_inferior_registers) Remove obsolete comment.
12460 * sparc-nat.c (sparc_fetch_inferior_registers)
12461 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12462 * sparc-nat.c (sparc_fetch_inferior_registers)
12463 (sparc_store_inferior_registers) Use gdb_ptrace.
12464
12465 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12466
12467 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12468 it to the ptrace call.
12469 * sh-nbsd-nat.c (store_registers): Likewise.
12470
12471 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12472
12473 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12474 nbsd_nat_target instead of inf_ptrace_target.
12475 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12476 nbsd_nat_target.
12477
12478 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12479
12480 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12481
12482 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12483
12484 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12485 <sys/sysctl.h>.
12486 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12487
12488 2020-03-17 Tom de Vries <tdevries@suse.de>
12489
12490 PR gdb/23710
12491 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12492 fields.
12493 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12494 fields.
12495 (process_imported_unit_die): Skip import of c++ CUs.
12496
12497 2020-03-16 Tom Tromey <tom@tromey.com>
12498
12499 * p-valprint.c (pascal_object_print_value): Initialize
12500 base_value.
12501
12502 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12503 Shahab Vahedi <shahab@synopsys.com>
12504
12505 * Makefile.in: Add arch/arc.o
12506 * configure.tgt: Likewise.
12507 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12508 (_initialize_arc_tdep): Don't initialize old target descriptions.
12509 (arc_read_description): New function to cache target descriptions.
12510 * arc-tdep.h (arc_read_description): Add proto type.
12511 * arch/arc.c: New file.
12512 * arch/arc.h: Likewise.
12513 * features/Makefile: Replace old target descriptions with new.
12514 * features/arc-arcompact.c: Remove.
12515 * features/arc-arcompact.xml: Likewise.
12516 * features/arc-v2.c: Likewise
12517 * features/arc-v2.xml: Likewise
12518 * features/arc/aux-arcompact.xml: New file.
12519 * features/arc/aux-v2.xml: Likewise.
12520 * features/arc/core-arcompact.xml: Likewise.
12521 * features/arc/core-v2.xml: Likewise.
12522 * features/arc/aux-arcompact.c: Generate.
12523 * features/arc/aux-v2.c: Likewise.
12524 * features/arc/core-arcompact.c: Likewise.
12525 * features/arc/core-v2.c: Likewise.
12526 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12527
12528 2020-03-16 Tom Tromey <tromey@adacore.com>
12529
12530 PR gdb/25663:
12531 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12532 putting value into bcache.
12533
12534 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12535
12536 PR gdb/21500
12537 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12538 to...
12539 (amd64_windows_init_abi_common): ... this. Don't set size of
12540 long type.
12541 (amd64_windows_init_abi): New function.
12542 (amd64_cygwin_init_abi): New function.
12543 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12544 the Cygwin OS ABI.
12545 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12546 comment.
12547
12548 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12551 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12552 (pe_import_directory_entry): New struct type.
12553 (is_linked_with_cygwin_dll): New function.
12554 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12555 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12556 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12557
12558 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12559
12560 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12561 i386_cygwin_core_osabi_sniffer.
12562
12563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12564
12565 * i386-cygwin-tdep.c: Rename to...
12566 * i386-windows-tdep.c: ... this.
12567 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12568 i386-windows-tdep.c.
12569 * configure.tgt: Likewise.
12570
12571 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12572
12573 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12574 * osabi.c (gdb_osabi_names): Add "Windows".
12575 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12576 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12577 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12578 i386_cygwin_osabi_sniffer.
12579 (_initialize_i386_cygwin_tdep): Register OS ABI
12580 GDB_OSABI_WINDOWS for i386.
12581 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12582 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12583 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12584 for x86-64.
12585 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12586 when the target matches '*-*-mingw*'.
12587
12588 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12589
12590 * defs.h (enum gdb_osabi): Move to...
12591 * osabi.h (enum gdb_osabi): ... here.
12592 * gdbarch.sh: Include osabi.h in gdbarch.h.
12593 * gdbarch.h: Re-generate.
12594
12595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12596
12597 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12598 function.
12599 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12600
12601 2020-03-14 Tom Tromey <tom@tromey.com>
12602
12603 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12604 for C++.
12605 (c_type_print_modifier): Likewise. Add "language" parameter.
12606 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12607 (c_type_print_base_1): Update.
12608 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12609 constants.
12610 * type-stack.c (type_stack::insert): Handle tp_atomic and
12611 tp_restrict.
12612 (type_stack::follow_type_instance_flags): Likewise.
12613 (type_stack::follow_types): Likewise. Merge type-following code.
12614 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12615 (space_identifier, cv_with_space_id)
12616 (const_or_volatile_or_space_identifier_noopt)
12617 (const_or_volatile_or_space_identifier): Remove.
12618 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12619 rules.
12620 (ptr_operator, typebase): Update.
12621 (enum token_flag) <FLAG_C>: New constant.
12622 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12623 "_Atomic".
12624 (lex_one_token): Handle FLAG_C.
12625
12626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12627
12628 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12629 it to the ptrace call.
12630 * m68k-bsd-nat.c (store_registers): Likewise.
12631
12632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12633
12634 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12635 gdb_byte *.
12636 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12637 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12638 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12639
12640 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12641
12642 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12643 nbsd_nat_target instead of inf_ptrace_target.
12644 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12645 nbsd_nat_target.
12646
12647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12648
12649 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12650 register_t.
12651
12652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12653
12654 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12655 it to the ptrace call.
12656 * alpha-bsd-nat.c (store_registers): Likewise.
12657
12658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12659
12660 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12661 includes.
12662 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12663 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12664 fill_fpregset): Likewise.
12665
12666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12667
12668 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12669 nbsd_nat_target instead of inf_ptrace_target.
12670 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12671 nbsd_nat_target.
12672
12673 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12674
12675 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12676 register_t.
12677
12678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12679
12680 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12681 it to the ptrace call.
12682 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12683 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12684 * arm-nbsd-nat.c (store_register): Likewise.
12685 * arm-nbsd-nat.c (store_regs): Likewise.
12686 * arm-nbsd-nat.c (store_fp_register): Likewise.
12687 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12688
12689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12690
12691 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12692 nbsd_nat_target instead of inf_ptrace_target.
12693 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12694 nbsd_nat_target.
12695
12696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12697
12698 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12699 it to the ptrace call.
12700 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12701
12702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12703
12704 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12705 it to the ptrace call.
12706 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12707
12708 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12709
12710 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12711 gdb_byte *.
12712 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12713
12714 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12715
12716 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12717 instead of inf_ptrace_target.
12718 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12719 nbsd_nat_target.
12720
12721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12722
12723 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12724 register_t.
12725
12726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12727
12728 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12729 register_t.
12730
12731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12732
12733 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12734 register_t.
12735
12736 2020-03-13 Tom Tromey <tom@tromey.com>
12737
12738 * value.h (val_print): Don't declare.
12739 * valprint.h (val_print_array_elements)
12740 (val_print_scalar_formatted, generic_val_print): Don't declare.
12741 * valprint.c (generic_val_print_array): Take a struct value.
12742 (generic_val_print_ptr, generic_val_print_memberptr)
12743 (generic_val_print_bool, generic_val_print_int)
12744 (generic_val_print_char, generic_val_print_complex)
12745 (generic_val_print): Remove.
12746 (generic_value_print): Update.
12747 (do_val_print): Remove unused parameters. Don't call
12748 la_val_print.
12749 (val_print): Remove.
12750 (common_val_print): Update. Don't call value_check_printable.
12751 (val_print_scalar_formatted, val_print_array_elements): Remove.
12752 * rust-lang.c (rust_val_print): Remove.
12753 (rust_language_defn): Update.
12754 * p-valprint.c (pascal_val_print): Remove.
12755 (pascal_value_print_inner): Update.
12756 (pascal_object_print_val_fields, pascal_object_print_val):
12757 Remove.
12758 (pascal_object_print_static_field): Update.
12759 * p-lang.h (pascal_val_print): Don't declare.
12760 * p-lang.c (pascal_language_defn): Update.
12761 * opencl-lang.c (opencl_language_defn): Update.
12762 * objc-lang.c (objc_language_defn): Update.
12763 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12764 * m2-lang.h (m2_val_print): Don't declare.
12765 * m2-lang.c (m2_language_defn): Update.
12766 * language.h (struct language_defn) <la_val_print>: Remove.
12767 * language.c (unk_lang_value_print_inner): Rename. Change
12768 argument types.
12769 (unknown_language_defn, auto_language_defn): Update.
12770 * go-valprint.c (go_val_print): Remove.
12771 * go-lang.h (go_val_print): Don't declare.
12772 * go-lang.c (go_language_defn): Update.
12773 * f-valprint.c (f_val_print): Remove.
12774 * f-lang.h (f_value_print): Don't declare.
12775 * f-lang.c (f_language_defn): Update.
12776 * d-valprint.c (d_val_print): Remove.
12777 * d-lang.h (d_value_print): Don't declare.
12778 * d-lang.c (d_language_defn): Update.
12779 * cp-valprint.c (cp_print_value_fields)
12780 (cp_print_value_fields_rtti, cp_print_value): Remove.
12781 (cp_print_static_field): Update.
12782 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12783 (c_val_print_struct, c_val_print_union, c_val_print_int)
12784 (c_val_print_memberptr, c_val_print): Remove.
12785 * c-lang.h (c_val_print_array, cp_print_value_fields)
12786 (cp_print_value_fields_rtti): Don't declare.
12787 * c-lang.c (c_language_defn, cplus_language_defn)
12788 (asm_language_defn, minimal_language_defn): Update.
12789 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12790 (ada_val_print_enum): Take a struct value.
12791 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12792 (ada_val_print): Remove.
12793 (ada_value_print_1): Update.
12794 (printable_val_type): Remove.
12795 * ada-lang.h (ada_val_print): Don't declare.
12796 * ada-lang.c (ada_language_defn): Update.
12797
12798 2020-03-13 Tom Tromey <tom@tromey.com>
12799
12800 * valprint.c (do_val_print): Update.
12801 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12802 a struct value.
12803 (value_to_value_object_no_release): Declare.
12804 * python/py-value.c (value_to_value_object_no_release): New
12805 function.
12806 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12807 struct value.
12808 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12809 function.
12810 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12811 a struct value.
12812 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12813 Declare.
12814 (gdbscm_apply_val_pretty_printer): Take a struct value.
12815 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12816 value.
12817 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12818 value.
12819 * extension-priv.h (struct extension_language_ops)
12820 <apply_val_pretty_printer>: Take a struct value.
12821 * cp-valprint.c (cp_print_value): Create a struct value.
12822 (cp_print_value): Update.
12823
12824 2020-03-13 Tom Tromey <tom@tromey.com>
12825
12826 * ada-valprint.c (print_field_values): Call common_val_print.
12827
12828 2020-03-13 Tom Tromey <tom@tromey.com>
12829
12830 * ada-valprint.c (val_print_packed_array_elements): Remove
12831 bitoffset and val parameters. Call common_val_print.
12832 (ada_val_print_string): Remove offset, address, and original_value
12833 parameters.
12834 (ada_val_print_array): Update.
12835 (ada_value_print_array): New function.
12836 (ada_value_print_1): Call it.
12837
12838 2020-03-13 Tom Tromey <tom@tromey.com>
12839
12840 * ada-valprint.c (ada_value_print): Use common_val_print.
12841
12842 2020-03-13 Tom Tromey <tom@tromey.com>
12843
12844 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12845
12846 2020-03-13 Tom Tromey <tom@tromey.com>
12847
12848 * ada-valprint.c (ada_value_print_num): New function.
12849 (ada_value_print_1): Use it.
12850
12851 2020-03-13 Tom Tromey <tom@tromey.com>
12852
12853 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12854
12855 2020-03-13 Tom Tromey <tom@tromey.com>
12856
12857 * ada-valprint.c (ada_value_print_ptr): New function.
12858 (ada_value_print_1): Use it.
12859
12860 2020-03-13 Tom Tromey <tom@tromey.com>
12861
12862 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12863 call common_val_print.
12864 (ada_val_print_1): Update.
12865 (ada_value_print_1): New function.
12866 (ada_value_print_inner): Rewrite.
12867
12868 2020-03-13 Tom Tromey <tom@tromey.com>
12869
12870 * cp-valprint.c (cp_print_value_fields): Update.
12871 (cp_print_value): New function.
12872
12873 2020-03-13 Tom Tromey <tom@tromey.com>
12874
12875 * m2-valprint.c (m2_value_print_inner): Use
12876 cp_print_value_fields.
12877 * cp-valprint.c (cp_print_value_fields): New function.
12878 * c-valprint.c (c_value_print_struct): New function.
12879 (c_value_print_inner): Use c_value_print_struct.
12880 * c-lang.h (cp_print_value_fields): Declare.
12881
12882 2020-03-13 Tom Tromey <tom@tromey.com>
12883
12884 * c-valprint.c (c_value_print_array): New function.
12885 (c_value_print_inner): Use it.
12886
12887 2020-03-13 Tom Tromey <tom@tromey.com>
12888
12889 * c-valprint.c (c_value_print_memberptr): New function.
12890 (c_value_print_inner): Use it.
12891
12892 2020-03-13 Tom Tromey <tom@tromey.com>
12893
12894 * c-valprint.c (c_value_print_int): New function.
12895 (c_value_print_inner): Use it.
12896
12897 2020-03-13 Tom Tromey <tom@tromey.com>
12898
12899 * c-valprint.c (c_value_print_ptr): New function.
12900 (c_value_print_inner): Use it.
12901
12902 2020-03-13 Tom Tromey <tom@tromey.com>
12903
12904 * c-valprint.c (c_value_print_inner): Rewrite.
12905
12906 2020-03-13 Tom Tromey <tom@tromey.com>
12907
12908 * valprint.c (generic_value_print_complex): New function.
12909 (generic_value_print): Use it.
12910
12911 2020-03-13 Tom Tromey <tom@tromey.com>
12912
12913 * valprint.c (generic_val_print_float): Don't call
12914 val_print_scalar_formatted.
12915 (generic_val_print, generic_value_print): Update.
12916
12917 2020-03-13 Tom Tromey <tom@tromey.com>
12918
12919 * valprint.c (generic_value_print_char): New function
12920 (generic_value_print): Use it.
12921
12922 2020-03-13 Tom Tromey <tom@tromey.com>
12923
12924 * valprint.c (generic_value_print_int): New function.
12925 (generic_value_print): Use it.
12926
12927 2020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * valprint.c (generic_value_print_bool): New function.
12930 (generic_value_print): Use it.
12931
12932 2020-03-13 Tom Tromey <tom@tromey.com>
12933
12934 * valprint.c (generic_val_print_func): Simplify.
12935 (generic_val_print, generic_value_print): Update.
12936
12937 2020-03-13 Tom Tromey <tom@tromey.com>
12938
12939 * valprint.c (generic_val_print_flags): Remove.
12940 (generic_val_print, generic_value_print): Update.
12941 (val_print_type_code_flags): Add original_value parameter.
12942
12943 2020-03-13 Tom Tromey <tom@tromey.com>
12944
12945 * valprint.c (generic_val_print): Update.
12946 (generic_value_print): Update.
12947 * valprint.c (generic_val_print_enum): Don't call
12948 val_print_scalar_formatted.
12949
12950 2020-03-13 Tom Tromey <tom@tromey.com>
12951
12952 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12953 * valprint.c (generic_value_print_ptr): New function.
12954
12955 2020-03-13 Tom Tromey <tom@tromey.com>
12956
12957 * valprint.c (generic_value_print): Rewrite.
12958
12959 2020-03-13 Tom Tromey <tom@tromey.com>
12960
12961 * p-valprint.c (pascal_object_print_value_fields)
12962 (pascal_object_print_value): New functions.
12963
12964 2020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * p-valprint.c (pascal_value_print_inner): Rewrite.
12967
12968 2020-03-13 Tom Tromey <tom@tromey.com>
12969
12970 * f-valprint.c (f_value_print_innner): Rewrite.
12971
12972 2020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * m2-valprint.c (m2_print_unbounded_array): New overload.
12975 (m2_print_unbounded_array): Update.
12976 (m2_print_array_contents): Take a struct value.
12977 (m2_value_print_inner): Rewrite.
12978
12979 2020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12982 (d_value_print_inner): New function.
12983 * d-lang.h (d_value_print_inner): Declare.
12984 * d-lang.c (d_language_defn): Use d_value_print_inner.
12985
12986 2020-03-13 Tom Tromey <tom@tromey.com>
12987
12988 * go-valprint.c (go_value_print_inner): New function.
12989 * go-lang.h (go_value_print_inner): Declare.
12990 * go-lang.c (go_language_defn): Use go_value_print_inner.
12991
12992 2020-03-13 Tom Tromey <tom@tromey.com>
12993
12994 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12995 API.
12996 (rust_val_print): Rewrite.
12997 (rust_value_print_inner): New function, from rust_val_print.
12998 (rust_language_defn): Use rust_value_print_inner.
12999
13000 2020-03-13 Tom Tromey <tom@tromey.com>
13001
13002 * ada-valprint.c (ada_value_print_inner): New function.
13003 * ada-lang.h (ada_value_print_inner): Declare.
13004 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13005
13006 2020-03-13 Tom Tromey <tom@tromey.com>
13007
13008 * f-valprint.c (f_value_print_innner): New function.
13009 * f-lang.h (f_value_print_innner): Declare.
13010 * f-lang.c (f_language_defn): Use f_value_print_innner.
13011
13012 2020-03-13 Tom Tromey <tom@tromey.com>
13013
13014 * p-valprint.c (pascal_value_print_inner): New function.
13015 * p-lang.h (pascal_value_print_inner): Declare.
13016 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13017
13018 2020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * m2-valprint.c (m2_value_print_inner): New function.
13021 * m2-lang.h (m2_value_print_inner): Declare.
13022 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13027 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13028 * c-valprint.c (c_value_print_inner): New function.
13029 * c-lang.h (c_value_print_inner): Declare.
13030 * c-lang.c (c_language_defn, cplus_language_defn)
13031 (asm_language_defn, minimal_language_defn): Use
13032 c_value_print_inner.
13033
13034 2020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * p-valprint.c (pascal_object_print_value_fields): Now static.
13037 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13038
13039 2020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * c-valprint.c (c_val_print_array): Simplify.
13042
13043 2020-03-13 Tom Tromey <tom@tromey.com>
13044
13045 * valprint.c (value_print_array_elements): New function.
13046 * valprint.h (value_print_array_elements): Declare.
13047
13048 2020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13051 * mips-tdep.c (mips_print_register): Use
13052 value_print_scalar_formatted.
13053
13054 2020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * valprint.h (value_print_scalar_formatted): Declare.
13057 * valprint.c (value_print_scalar_formatted): New function.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * valprint.h (generic_value_print): Declare.
13062 * valprint.c (generic_value_print): New function.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * valprint.c (do_val_print): Call la_value_print_inner, if
13067 available.
13068 * rust-lang.c (rust_language_defn): Update.
13069 * p-lang.c (pascal_language_defn): Update.
13070 * opencl-lang.c (opencl_language_defn): Update.
13071 * objc-lang.c (objc_language_defn): Update.
13072 * m2-lang.c (m2_language_defn): Update.
13073 * language.h (struct language_defn) <la_value_print_inner>: New
13074 member.
13075 * language.c (unknown_language_defn, auto_language_defn): Update.
13076 * go-lang.c (go_language_defn): Update.
13077 * f-lang.c (f_language_defn): Update.
13078 * d-lang.c (d_language_defn): Update.
13079 * c-lang.c (c_language_defn, cplus_language_defn)
13080 (asm_language_defn, minimal_language_defn): Update.
13081 * ada-lang.c (ada_language_defn): Update.
13082
13083 2020-03-13 Tom Tromey <tom@tromey.com>
13084
13085 * c-valprint.c (c_value_print): Use common_val_print.
13086
13087 2020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * f-valprint.c (f77_print_array_1, f_val_print): Use
13094 common_val_print.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * riscv-tdep.c (riscv_print_one_register_info): Use
13099 common_val_print.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * mi/mi-main.c (output_register): Use common_val_print.
13104
13105 2020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * infcmd.c (default_print_one_register_info): Use
13108 common_val_print.
13109
13110 2020-03-13 Tom Tromey <tom@tromey.com>
13111
13112 * valprint.h (common_val_print_checked): Declare.
13113 * valprint.c (common_val_print_checked): New function.
13114 * stack.c (print_frame_arg): Use common_val_print_checked.
13115
13116 2020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * valprint.c (do_val_print): New function, from val_print.
13119 (val_print): Use do_val_print.
13120 (common_val_print): Use do_val_print.
13121
13122 2020-03-13 Tom Tromey <tom@tromey.com>
13123
13124 * valprint.c (value_print): Use scoped_value_mark.
13125
13126 2020-03-13 Tom de Vries <tdevries@suse.de>
13127
13128 PR symtab/25646
13129 * psymtab.c (partial_symtab::partial_symtab): Don't set
13130 globals_offset and statics_offset. Push element onto
13131 current_global_psymbols and current_static_psymbols stacks.
13132 (concat): New function.
13133 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13134 element from current_global_psymbols and current_static_psymbols
13135 stacks. Concat popped elements to global_psymbols and
13136 static_symbols.
13137 (add_psymbol_to_list): Use current_global_psymbols and
13138 current_static_psymbols stacks.
13139 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13140 current_static_psymbols fields.
13141
13142 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13143
13144 * corelow.c (sniff_core_bfd): Remove.
13145 (class core_target) <m_core_vec>: Remove.
13146 (core_target::core_target): Update.
13147 (core_file_fns): Remove.
13148 (deprecated_add_core_fns): Remove.
13149 (default_core_sniffer): Remove.
13150 (sniff_core_bfd): Remove.
13151 (default_check_format): Remove.
13152 (gdb_check_format): Remove.
13153 (core_target_open): Update.
13154 (core_target::get_core_register_section): Update.
13155 (get_core_registers_cb): Update.
13156 (core_target::fetch_registers): Update.
13157 * gdbcore.h (struct core_fns): Remove.
13158 (deprecated_add_core_fns): Remove.
13159 (default_core_sniffer): Remove.
13160 (default_check_format): Remove.
13161
13162 2020-03-12 Tom Tromey <tom@tromey.com>
13163
13164 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13165 CORE_ADDR.
13166 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13167
13168 2020-03-12 Tom Tromey <tom@tromey.com>
13169
13170 * remote.c (remote_target::download_tracepoint)
13171 (remote_target::enable_tracepoint)
13172 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13173 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13174 sprintf_vma.
13175
13176 2020-03-12 Tom Tromey <tom@tromey.com>
13177
13178 * symfile-mem.c: Update CORE_ADDR size assert.
13179
13180 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13181
13182 * selftest.m4: Move to gdbsupport/.
13183 * acinclude.m4: Update path to selftest.m4.
13184
13185 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13186
13187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13188 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13189 gdbarch-selfselftests.c and selftest-arch.c.
13190 (SUBDIR_UNITTESTS_OBS): Rename to...
13191 (SELFTESTS_OBS): ... this.
13192 (COMMON_SFILES): Remove disasm-selftests.c and
13193 gdbarch-selftests.c.
13194 * configure.ac: Don't add selftest-arch.{c,o} to
13195 CONFIG_{SRCS,OBS}.
13196 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13197 preprocessor conditions.
13198
13199 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13200
13201 * configure.ac: Don't source bfd/development.sh.
13202 * selftest.m4: Modify comment.
13203 * configure: Re-generate.
13204
13205 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13206
13207 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13208 not "true" or "false".
13209 * configure: Re-generate.
13210
13211 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13212
13213 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13214 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13215 renamed to arm_nbsd_supply_gregset.
13216 (fetch_register): Update to call arm_nbsd_supply_gregset.
13217 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13218 (arm_netbsd_nat_target::fetch_registers): Update.
13219 (fetch_elfcore_registers): Removed.
13220 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13221 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13222 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13223 not require NetBSD system headers.
13224 (arm_nbsd_regset): New struct.
13225 (arm_nbsd_iterate_over_regset_sections): New function.
13226 (arm_netbsd_init_abi_common): Updated to call
13227 set_gdbarch_iterate_over_regset_sections.
13228 * arm-nbsd-tdep.h: New file.
13229
13230 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13231
13232 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13233 recursion.
13234
13235 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13236
13237 * configure: Re-generate.
13238
13239 2020-03-11 Tom Tromey <tromey@adacore.com>
13240
13241 * ada-typeprint.c (print_choices): Fix comment.
13242
13243 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13244
13245 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13246 previous item in the list, when the list has no items.
13247
13248 2020-03-11 Tom de Vries <tdevries@suse.de>
13249
13250 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13251 PROP_LOCLIST handling code.
13252
13253 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13254
13255 * buildsym-legacy.c (record_line): Pass extra parameter to
13256 record_line.
13257 * buildsym.c (buildsym_compunit::record_line): Take an extra
13258 parameter, reduce duplication in the line table, and record the
13259 is_stmt flag in the line table.
13260 * buildsym.h (buildsym_compunit::record_line): Add extra
13261 parameter.
13262 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13263 non-statement lines.
13264 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13265 this to the symtab builder.
13266 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13267 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13268 through to dwarf_record_line_1.
13269 * infrun.c (process_event_stop_test): When stepping, don't stop at
13270 a non-statement instruction, and only refresh the step info when
13271 we land in the middle of a line's range. Also add an extra
13272 comment.
13273 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13274 field.
13275 * record-btrace.c (btrace_find_line_range): Only record lines
13276 marked as is-statement.
13277 * stack.c (frame_show_address): Show the frame address if we are
13278 in a non-statement sal.
13279 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13280 (maintenance_print_one_line_table): Print a header for the is_stmt
13281 column, and include is_stmt information in the output.
13282 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13283 preference to non-statements.
13284 (find_pcs_for_symtab_line): Prefer is-statement entries.
13285 (find_line_common): Likewise.
13286 * symtab.h (struct linetable_entry): Add is_stmt field.
13287 (struct symtab_and_line): Likewise.
13288 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13289 arranging the line table.
13290
13291 2020-03-07 Tom de Vries <tdevries@suse.de>
13292
13293 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13294 DIE.
13295
13296 2020-03-07 Tom Tromey <tom@tromey.com>
13297
13298 * valops.c (value_literal_complex): Remove obsolete comment.
13299 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13300 comment.
13301
13302 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13303
13304 * infrun.h: Forward-declare thread_info.
13305 (set_step_info): Add thread_info parameter, add doc.
13306 * infrun.c (set_step_info): Add thread_info parameter, move doc
13307 to header.
13308 * infrun.c (process_event_stop_test): Pass thread to
13309 set_step_info call.
13310 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13311 set_step_info.
13312 (prepare_one_step): Add thread_info parameter, pass it to
13313 set_step_frame and prepare_one_step (recursive) call.
13314 (step_1): Pass thread to prepare_one_step call.
13315 (step_command_fsm::should_stop): Pass thread to
13316 prepare_one_step.
13317 (until_next_fsm): Pass thread to set_step_frame call.
13318 (finish_command): Pass thread to set_step_info call.
13319
13320 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13321
13322 * windows-tdep.c (windows_solib_create_inferior_hook):
13323 Check if inferior is running.
13324
13325 2020-03-06 Tom de Vries <tdevries@suse.de>
13326
13327 * NEWS: Fix "the the".
13328 * ctfread.c: Same.
13329
13330 2020-03-06 Tom de Vries <tdevries@suse.de>
13331
13332 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13333
13334 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13335
13336 * .dir-locals.el: Add a comment referencing the other copies of
13337 this file.
13338
13339 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13340
13341 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13342 psargs.
13343
13344 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13345
13346 * .gitattributes: New file.
13347
13348 2020-03-04 Tom Tromey <tom@tromey.com>
13349
13350 * symmisc.c (print_symbol_bcache_statistics)
13351 (print_objfile_statistics): Update.
13352 * symfile.c (allocate_symtab): Use intern.
13353 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13354 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13355 macro_cache>: Remove.
13356 <string_cache>: New member.
13357 (struct objfile) <intern>: New methods.
13358 * elfread.c (elf_symtab_read): Use intern.
13359 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13360 (dwarf2_compute_name, dwarf2_physname)
13361 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13362 names.
13363 (guess_partial_die_structure_name): Update.
13364 (partial_die_info::fixup): Intern name.
13365 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13366 name.
13367 (dwarf2_name): Intern name. Update.
13368 * buildsym.c (buildsym_compunit::get_macro_table): Use
13369 string_cache.
13370
13371 2020-03-04 Tom Tromey <tom@tromey.com>
13372
13373 * jit.c (bfd_open_from_target_memory): Make "target" const.
13374 * corefile.c (gnutarget): Now const.
13375 * gdbcore.h (gnutarget): Now const.
13376
13377 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13378
13379 * NEWS: Mention support for WOW64 processes.
13380 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13381 (amd64_windows_segment_register_p): Remove static.
13382 (_initialize_amd64_windows_nat): Update.
13383 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13384 * i386-windows-nat.c (context_offset): Update.
13385 (i386_mappings): Rename and remove static.
13386 (i386_windows_segment_register_p): Remove static.
13387 (_initialize_i386_windows_nat): Update.
13388 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13389 (STATUS_WX86_SINGLE_STEP): New macro.
13390 (EnumProcessModulesEx): New macro.
13391 (Wow64SuspendThread): New macro.
13392 (Wow64GetThreadContext): New macro.
13393 (Wow64SetThreadContext): New macro.
13394 (Wow64GetThreadSelectorEntry): New macro.
13395 (windows_set_context_register_offsets): Add static.
13396 (windows_set_segment_register_p): Likewise.
13397 (windows_add_thread): Adapt for WOW64 processes.
13398 (windows_fetch_one_register): Likewise.
13399 (windows_nat_target::fetch_registers): Likewise.
13400 (windows_store_one_register): Likewise.
13401 (display_selector): Likewise.
13402 (display_selectors): Likewise.
13403 (handle_exception): Likewise.
13404 (windows_continue): Likewise.
13405 (windows_nat_target::resume): Likewise.
13406 (windows_add_all_dlls): Likewise.
13407 (do_initial_windows_stuff): Likewise.
13408 (windows_nat_target::attach): Likewise.
13409 (windows_get_exec_module_filename): Likewise.
13410 (windows_nat_target::create_inferior): Likewise.
13411 (windows_xfer_siginfo): Likewise.
13412 (_initialize_loadable): Initialize Wow64SuspendThread,
13413 Wow64GetThreadContext, Wow64SetThreadContext,
13414 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13415 * windows-nat.h (windows_set_context_register_offsets):
13416 Remove declaration.
13417 (windows_set_segment_register_p): Likewise.
13418 (i386_windows_segment_register_p): Add declaration.
13419 (amd64_windows_segment_register_p): Likewise.
13420
13421 2020-03-04 Luis Machado <luis.machado@linaro.org>
13422
13423 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13424 in "info registers" for AArch64/ARM.
13425
13426 The change caused "info registers" to not print GPR's.
13427
13428 gdb/ChangeLog:
13429
13430 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13431
13432 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13433 when reg->group is empty and reggroup is not.
13434
13435 2020-03-03 Tom Tromey <tromey@adacore.com>
13436
13437 * dwarf2/frame.c (struct dwarf2_frame_cache)
13438 <checked_tailcall_bottom, entry_cfa_sp_offset,
13439 entry_cfa_sp_offset_p>: Remove members.
13440 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13441 (dwarf2_frame_prev_register): Don't call
13442 dwarf2_tailcall_sniffer_first.
13443 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13444 * frame-unwind.c (add_unwinder): New fuction.
13445 (frame_unwind_init): Use it. Add tailcall unwinder.
13446
13447 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13448 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13449
13450 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13451 value should be printed as true.
13452
13453 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13454
13455 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13456 (windows_init_abi): Set and use windows_so_ops.
13457
13458 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13459
13460 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13461 when verifying if dealing with a convenience variable.
13462
13463 2020-03-03 Luis Machado <luis.machado@linaro.org>
13464
13465 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13466
13467 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13468
13469 * infrun.c (gdbarch_supports_displaced_stepping): New.
13470 (use_displaced_stepping): Break up conditions in smaller pieces.
13471 Use gdbarch_supports_displaced_stepping.
13472 (displaced_step_prepare_throw): Use
13473 gdbarch_supports_displaced_stepping.
13474
13475 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * NEWS: Mention new behaviour of the history filename.
13478 * top.c (write_history_p): Add comment.
13479 (show_write_history_p): Add header comment, give a different
13480 message when history writing is on, but the history filename is
13481 empty.
13482 (history_filename): Add comment.
13483 (history_filename_empty): New function.
13484 (show_history_filename): Add header comment, give a different
13485 message when the filename is empty.
13486 (init_history): Compare history_filename against nullptr, and only
13487 read history if the filename is not empty.
13488 (set_history_filename): Add header comment, and only make
13489 non-empty filenames absolute.
13490 (init_main): Make the filename argument to 'set history filename'
13491 optional.
13492
13493 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13494
13495 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13496 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13497 (fetch_fp_register): Update.
13498 (fetch_fp_regs): Update.
13499 (store_fp_register): Update.
13500 (store_fp_regs): Update.
13501 (arm_netbsd_nat_target::read_description): New function.
13502 (fetch_elfcore_registers): Update.
13503
13504 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13505
13506 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13507 general_thread if the stop reply is missing a thread-id.
13508 (remote_target::process_stop_reply): Use the first non-exited
13509 thread if the target didn't pass a thread-id.
13510 * infrun.c (do_target_wait): Move call to
13511 switch_to_inferior_no_thread to ....
13512 (do_target_wait_1): ... here.
13513
13514 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13515
13516 * debuginfod-support.c: Include defs.h first.
13517
13518 2020-02-28 Tom de Vries <tdevries@suse.de>
13519
13520 * symfile.c (set_initial_language): Use default language for lookup.
13521
13522 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13523
13524 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13525 reader variable, pass `this` to read_cutu_die_from_dwo.
13526
13527 2020-02-27 Aaron Merey <amerey@redhat.com>
13528
13529 * source.c (open_source_file): Check for nullptr when computing
13530 srcpath.
13531
13532 2020-02-27 Tom Tromey <tromey@adacore.com>
13533
13534 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13535 member.
13536 (dwarf2_add_field): Don't update nfields.
13537 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13538
13539 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13540
13541 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13542 abs.
13543
13544 2020-02-26 Tom Tromey <tom@tromey.com>
13545
13546 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13547 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13548 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13549 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13550 per_cu_data.
13551
13552 2020-02-26 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2/index-write.c (psym_index_map): Change type.
13555 (add_address_entry_worker, write_one_signatured_type)
13556 (recursively_count_psymbols, recursively_write_psymbols)
13557 (class debug_names, psyms_seen_size, write_gdbindex)
13558 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13559
13560 2020-02-26 Aaron Merey <amerey@redhat.com>
13561
13562 * Makefile.in: Handle optional debuginfod support.
13563 * NEWS: Update.
13564 * README: Add --with-debuginfod summary.
13565 * config.in: Regenerate.
13566 * configure: Regenerate.
13567 * configure.ac: Handle optional debuginfod support.
13568 * debuginfod-support.c: debuginfod helper functions.
13569 * debuginfod-support.h: Ditto.
13570 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13571 summary.
13572 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13573 when a dwz file cannot be found.
13574 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13575 debuginfo file cannot be found.
13576 * source.c (open_source_file): Query debuginfod servers when a
13577 source file cannot be found.
13578 * top.c (print_gdb_configuration): Include
13579 --{with,without}-debuginfod in the output.
13580
13581 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13582
13583 * thread.c (thr_try_catch_cmd): Print thread name.
13584
13585 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13586
13587 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13588 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13589 dwarf2_fetch_die_type_sect_off): Move to...
13590 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13591 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13592 dwarf2_fetch_die_type_sect_off): ... here.
13593 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13594 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13595 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13596
13597 2020-02-26 Tom de Vries <tdevries@suse.de>
13598
13599 PR gdb/25603
13600 * symfile.c (set_initial_language): Exit-early if
13601 language_mode == language_mode_manual.
13602
13603 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13604
13605 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13606 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13607 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13608
13609 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13610
13611 * gdbtypes.c (create_array_type_with_stride): Handle negative
13612 array strides.
13613 * valarith.c (value_subscripted_rvalue): Likewise.
13614
13615 2020-02-25 Luis Machado <luis.machado@linaro.org>
13616
13617 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13618
13619 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13620
13621 * loc.h (dwarf2_get_die_type): Move to...
13622 * read.h (dwarf2_get_die_type): ... here.
13623 * read.c (dwarf2_get_die_type): Move doc to header.
13624
13625 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13626
13627 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13628 'gnulib/Makefile.in' to the list.
13629
13630 2020-02-24 Tom Tromey <tom@tromey.com>
13631
13632 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13633 Remove.
13634 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13635 XOBNEWVEC.
13636
13637 2020-02-24 Tom Tromey <tom@tromey.com>
13638
13639 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13640 New method.
13641 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13642 (dw2_do_instantiate_symtab, dw2_get_file_names)
13643 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13644
13645 2020-02-24 Tom Tromey <tom@tromey.com>
13646
13647 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13648 make_scoped_restore.
13649 (dwarf2_psymtab::read_symtab): Don't clear
13650 reading_partial_symbols.
13651
13652 2020-02-24 Tom de Vries <tdevries@suse.de>
13653
13654 PR gdb/25592
13655 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13656
13657 2020-02-24 Tom de Vries <tdevries@suse.de>
13658
13659 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13660 commands layout next/prev/regs.
13661
13662 2020-02-22 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13665 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13666
13667 2020-02-22 Tom Tromey <tom@tromey.com>
13668
13669 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13670
13671 2020-02-22 Tom Tromey <tom@tromey.com>
13672
13673 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13674 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13675 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13676 * tui/tui.c (_initialize_tui): Add usage text.
13677
13678 2020-02-22 Tom Tromey <tom@tromey.com>
13679
13680 * tui/tui-win.c (tui_set_focus_command)
13681 (tui_set_win_height_command): Use error_no_arg.
13682 (_initialize_tui_win): Update help text.
13683 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13684
13685 2020-02-22 Tom Tromey <tom@tromey.com>
13686
13687 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13688 * tui/tui-disasm.h (struct tui_disasm_window)
13689 <display_start_addr>: Declare.
13690 * tui/tui-source.h (struct tui_source_window)
13691 <display_start_addr>: Declare.
13692 * tui/tui-winsource.h (struct tui_source_window_base)
13693 <show_source_line, display_start_addr>: New methods.
13694 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13695 Rename and move to protected section.
13696 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13697 (tui_source_window_base::do_erase_source_content): Update.
13698 (tui_source_window_base::show_source_line): Now a method.
13699 (tui_source_window_base::show_source_content)
13700 (tui_source_window_base::tui_source_window_base)
13701 (tui_source_window_base::rerender)
13702 (tui_source_window_base::refill)
13703 (tui_source_window_base::do_scroll_horizontal)
13704 (tui_source_window_base::set_is_exec_point_at)
13705 (tui_source_window_base::update_breakpoint_info)
13706 (tui_source_window_base::update_exec_info): Update.
13707 * tui/tui-source.c (tui_source_window::set_contents)
13708 (tui_source_window::showing_source_p)
13709 (tui_source_window::do_scroll_vertical)
13710 (tui_source_window::location_matches_p)
13711 (tui_source_window::line_is_displayed): Update.
13712 (tui_source_window::display_start_addr): New method.
13713 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13714 (tui_disasm_window::do_scroll_vertical)
13715 (tui_disasm_window::location_matches_p): Update.
13716 (tui_disasm_window::display_start_addr): New method.
13717
13718 2020-02-22 Tom Tromey <tom@tromey.com>
13719
13720 * NEWS: Add entry for gdb.register_window_type.
13721 * tui/tui-layout.h (window_factory): New typedef.
13722 (tui_register_window): Declare.
13723 * tui/tui-layout.c (saved_tui_windows): New global.
13724 (tui_apply_current_layout): Use it.
13725 (tui_register_window): New function.
13726 * python/python.c (do_start_initialization): Call
13727 gdbpy_initialize_tui.
13728 (python_GdbMethods): Add "register_window_type" function.
13729 * python/python-internal.h (gdbpy_register_tui_window)
13730 (gdbpy_initialize_tui): Declare.
13731 * python/py-tui.c: New file.
13732 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13733
13734 2020-02-22 Tom Tromey <tom@tromey.com>
13735
13736 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13737
13738 2020-02-22 Tom Tromey <tom@tromey.com>
13739
13740 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13741 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13742 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13743 (tui_set_win_focus_to): Move from tui-win.c.
13744
13745 2020-02-22 Tom Tromey <tom@tromey.com>
13746
13747 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13748 functions.
13749 (known_window_types): New global.
13750 (tui_get_window_by_name): Reimplement.
13751 (initialize_known_windows): New function.
13752 (validate_window_name): Rewrite.
13753 (_initialize_tui_layout): Call initialize_known_windows.
13754
13755 2020-02-22 Tom Tromey <tom@tromey.com>
13756
13757 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13758 Remove constants.
13759 * tui/tui-winsource.h (struct tui_source_window_base)
13760 <tui_source_window_base>: Remove parameter.
13761 * tui/tui-winsource.c
13762 (tui_source_window_base::tui_source_window_base): Remove
13763 parameter.
13764 (tui_source_window_base::refill): Update.
13765 * tui/tui-stack.h (struct tui_locator_window)
13766 <tui_locator_window>: Update.
13767 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13768 Default the constructor.
13769 * tui/tui-regs.h (struct tui_data_item_window)
13770 <tui_data_item_window>: Default the constructor.
13771 (struct tui_data_window) <tui_data_window>: Likewise.
13772 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13773 Default the constructor.
13774 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13775 Default the constructor.
13776 <type>: Remove.
13777 (struct tui_win_info) <tui_win_info>: Default the constructor.
13778 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13779 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13780 Default the constructor.
13781
13782 2020-02-22 Tom Tromey <tom@tromey.com>
13783
13784 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13785 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13786 * tui/tui-win.c (tui_resize_all): Don't call
13787 tui_delete_invisible_windows.
13788 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13789 done.
13790 (tui_set_layout): Update.
13791 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13792 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13793 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13794
13795 2020-02-22 Tom Tromey <tom@tromey.com>
13796
13797 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13798 correctly.
13799
13800 2020-02-22 Tom Tromey <tom@tromey.com>
13801
13802 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13803
13804 2020-02-22 Tom Tromey <tom@tromey.com>
13805
13806 * tui/tui-winsource.h (struct tui_source_window_iterator)
13807 <inner_iterator>: New etytypedef.
13808 <tui_source_window_iterator>: Take "end" parameter.
13809 <tui_source_window_iterator>: Take iterator.
13810 <operator*, advance>: Update.
13811 <m_iter>: Change type.
13812 <m_end>: New field.
13813 (struct tui_source_windows) <begin, end>: Update.
13814 * tui/tui-layout.c (tui_windows): New global.
13815 (tui_apply_current_layout): Clear tui_windows.
13816 (tui_layout_window::apply): Update tui_windows.
13817 * tui/tui-data.h (tui_windows): Declare.
13818 (all_tui_windows): Now inline function.
13819 (class tui_window_iterator, struct all_tui_windows): Remove.
13820
13821 2020-02-22 Tom Tromey <tom@tromey.com>
13822
13823 PR tui/17850:
13824 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13825 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13826 "height" argument.
13827 (class tui_layout_window) <get_sizes>: Likewise.
13828 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13829 argument.
13830 <get_sizes>: Add "height" argument.
13831 <m_vertical>: New field.
13832 * tui/tui-layout.c (tui_layout_split::clone): Update.
13833 (tui_layout_split::get_sizes): Add "height" argument.
13834 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13835 (tui_new_layout_command): Parse "-horizontal".
13836 (_initialize_tui_layout): Update help string.
13837 (tui_layout_split::specification): Add "-horizontal" when needed.
13838 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13839 argument.
13840 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13841 New methods.
13842
13843 2020-02-22 Tom Tromey <tom@tromey.com>
13844
13845 * tui/tui-layout.h (enum tui_adjust_result): New.
13846 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13847 (class tui_layout_window) <adjust_size>: Return
13848 tui_adjust_result. Rewrite.
13849 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13850 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13851
13852 2020-02-22 Tom Tromey <tom@tromey.com>
13853
13854 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13855 parameter and return types.
13856 (class tui_layout_base) <specification>: Add "depth".
13857 (class tui_layout_window) <specification>: Add "depth".
13858 (class tui_layout_split) <specification>: Add "depth".
13859 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13860 and return types.
13861 (tui_new_layout_command): Parse sub-layouts.
13862 (_initialize_tui_layout): Update help string.
13863 (tui_layout_window::specification): Add "depth".
13864 (add_layout_command): Update.
13865
13866 2020-02-22 Tom Tromey <tom@tromey.com>
13867
13868 * NEWS: Add "tui new-layout" item.
13869 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13870 Add new-layout command to help text.
13871 (validate_window_name): New function.
13872 (tui_new_layout_command): New function.
13873 (_initialize_tui_layout): Register "new-layout".
13874 (tui_layout_window::specification): New method.
13875 (tui_layout_window::specification): New method.
13876 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13877 method.
13878 (class tui_layout_window) <specification>: New method.
13879 (class tui_layout_split) <specification>: New method.
13880
13881 2020-02-22 Tom Tromey <tom@tromey.com>
13882
13883 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13884 * tui/tui-win.c (window_name_completer): Update comment.
13885 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13886 Declare method.
13887 (class tui_layout_window) <replace_window>: Likewise.
13888 (class tui_layout_split) <replace_window>: Likewise.
13889 (tui_set_layout): Don't declare.
13890 (tui_set_initial_layout): Declare function.
13891 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13892 (asm_regs_layout): New globals.
13893 (tui_current_layout, show_layout): Remove.
13894 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13895 (find_layout, tui_apply_layout): New function.
13896 (layout_completer): Remove.
13897 (tui_next_layout): Reimplement.
13898 (tui_next_layout_command): New function.
13899 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13900 (tui_regs_layout): Reimplement.
13901 (tui_regs_layout_command): New function.
13902 (extract_display_start_addr): Rewrite.
13903 (next_layout, prev_layout): Remove.
13904 (tui_layout_window::replace_window): New method.
13905 (tui_layout_split::replace_window): New method.
13906 (destroy_layout): New function.
13907 (layout_list): New global.
13908 (add_layout_command): New function.
13909 (initialize_layouts): Update.
13910 (tui_layout_command): New function.
13911 (_initialize_tui_layout): Install "layout" commands.
13912 * tui/tui-data.h (enum tui_layout_type): Remove.
13913 (tui_current_layout): Don't declare.
13914
13915 2020-02-22 Tom Tromey <tom@tromey.com>
13916
13917 * tui/tui-regs.c (tui_reg_layout): Remove.
13918 (tui_reg_command): Use tui_regs_layout.
13919 * tui/tui-layout.h (tui_reg_command): Declare.
13920 * tui/tui-layout.c (tui_reg_command): New function.
13921
13922 2020-02-22 Tom Tromey <tom@tromey.com>
13923
13924 * tui/tui.c (tui_rl_delete_other_windows): Call
13925 tui_remove_some_windows.
13926 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13927 Declare method.
13928 (class tui_layout_window) <remove_windows>: New method.
13929 (class tui_layout_split) <remove_windows>: Declare.
13930 (tui_remove_some_windows): Declare.
13931 * tui/tui-layout.c (tui_remove_some_windows): New function.
13932 (tui_layout_split::remove_windows): New method.
13933
13934 2020-02-22 Tom Tromey <tom@tromey.com>
13935
13936 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13937 * tui/tui-layout.h (tui_next_layout): Declare.
13938 * tui/tui-layout.c (tui_next_layout): New function.
13939
13940 2020-02-22 Tom Tromey <tom@tromey.com>
13941
13942 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13943 correct coordinates.
13944
13945 2020-02-22 Tom Tromey <tom@tromey.com>
13946
13947 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13948 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13949 DATA_WIN case.
13950
13951 2020-02-22 Tom Tromey <tom@tromey.com>
13952
13953 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13954 TUI_DISASM_WIN, not tui_win_list.
13955
13956 2020-02-22 Tom Tromey <tom@tromey.com>
13957
13958 * valprint.c (generic_val_print_enum_1)
13959 (val_print_type_code_flags): Style member names.
13960 * rust-lang.c (val_print_struct, rust_print_enum)
13961 (rust_print_struct_def, rust_internal_print_type): Style member
13962 names.
13963 * p-valprint.c (pascal_object_print_value_fields): Style member
13964 names. Only call fprintf_symbol_filtered for static members.
13965 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13966 * f-valprint.c (f_val_print): Style member names.
13967 * f-typeprint.c (f_type_print_base): Style member names.
13968 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13969 call fprintf_symbol_filtered for static members.
13970 (cp_print_class_member): Style member names.
13971 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13972 member names.
13973 * ada-valprint.c (ada_print_scalar): Style enum names.
13974 (ada_val_print_enum): Likewise.
13975 * ada-typeprint.c (print_enum_type): Style enum names.
13976
13977 2020-02-21 Tom Tromey <tom@tromey.com>
13978
13979 * psympriv.h (struct partial_symtab): Update comment.
13980
13981 2020-02-21 Tom Tromey <tromey@adacore.com>
13982
13983 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13984 type is CORE_ADDR.
13985
13986 2020-02-21 Tom de Vries <tdevries@suse.de>
13987
13988 PR gdb/25534
13989 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13990 if dependencies[i]->user != NULL.
13991
13992 2020-02-21 Ali Tamur <tamur@google.com>
13993
13994 * dwarf2/read.c (dwarf2_name): Add null check.
13995
13996 2020-02-20 Tom Tromey <tom@tromey.com>
13997
13998 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13999 ">=", in binary search.
14000 (dwarf2_find_containing_comp_unit): New overload.
14001 (run_test): New self-test.
14002 (_initialize_dwarf2_read): Register new test.
14003
14004 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14005
14006 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14007 * riscv-tdep.h: Likewise.
14008 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14009 rv32-only CSR.
14010 * features/riscv/64bit-csr.xml: Regenerated.
14011
14012 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14013 Tom Tromey <tom@tromey.com>
14014
14015 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14016 of 'fputc_unfiltered'.
14017 (putchar_unfiltered): Call 'fputc_unfiltered'.
14018 (fputc_unfiltered): Call 'fputs_unfiltered'.
14019
14020 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14021
14022 * config.in: Regenerate.
14023 * configure: Regenerate.
14024 * configure.ac: Add --with-python-libdir option.
14025 * main.c: Use WITH_PYTHON_LIBDIR.
14026
14027 2020-02-19 Tom Tromey <tom@tromey.com>
14028
14029 * symtab.c (general_symbol_info::compute_and_set_names): Use
14030 obstack_strndup. Simplify call to symbol_set_demangled_name.
14031
14032 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14033
14034 * dwarf2/read.c (allocate_signatured_type_table,
14035 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14036 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14037 Remove objfile parameter, update all callers.
14038
14039 2020-02-19 Doug Evans <dje@google.com>
14040
14041 PR rust/25535
14042 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14043 rust_enum_variant calculation.
14044
14045 2020-02-19 Tom Tromey <tromey@adacore.com>
14046
14047 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14048
14049 2020-02-19 Tom Tromey <tromey@adacore.com>
14050
14051 * ada-lang.c (cache_symbol): Use obstack_strdup.
14052
14053 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14054
14055 * configure: Regenerate.
14056
14057 2020-02-19 Tom Tromey <tromey@adacore.com>
14058
14059 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14060 NULL check.
14061
14062 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14063
14064 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14065
14066 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14067
14068 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14069 if GDBSERVER is not defined.
14070 (riscv_tdesc_cache): Likewise, also store const target_desc.
14071 (STATIC_IN_GDB): Define.
14072 (riscv_create_target_description): Update declaration with
14073 STATIC_IN_GDB.
14074 (riscv_lookup_target_description): New function, only define if
14075 GDBSERVER is not defined.
14076 * arch/riscv.h (riscv_create_target_description): Declare only
14077 when GDBSERVER is defined.
14078 (riscv_lookup_target_description): New declaration when GDBSERVER
14079 is not defined.
14080 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14081 (riscv_linux_read_features): ...this, and return
14082 riscv_gdbarch_features instead of target_desc.
14083 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14084 (riscv_linux_read_description): Rename to...
14085 (riscv_linux_read_features): ...this.
14086 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14087 Update to use riscv_gdbarch_features and
14088 riscv_lookup_target_description.
14089 * riscv-tdep.c (riscv_find_default_target_description): Use
14090 riscv_lookup_target_description instead of
14091 riscv_create_target_description.
14092
14093 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14094
14095 * valprint.c (generic_val_print_enum_1): When printing a flag
14096 enum with value 0 and there is no enumerator with value 0, print
14097 just "0" instead of "(unknown: 0x0)".
14098
14099 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14100
14101 * valprint.c (generic_val_print_enum_1): Print unknown part of
14102 flag enum in hex.
14103
14104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14105
14106 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14107 flag enums to contain duplicate enumerators.
14108 * valprint.c (generic_val_print_enum_1): Update comment.
14109
14110 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * dwarf2/read.c: Include "count-one-bits.h".
14113 (update_enumeration_type_from_children): If an enumerator has
14114 multiple bits set, don't treat the enumeration as a "flag enum".
14115 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14116 of flag enums have 0 or 1 bit set.
14117
14118 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14119
14120 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14121 conversion.
14122 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14123 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14124 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14125 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14126 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14127
14128 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14129
14130 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14131
14132 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14133
14134 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14135 displaced_step_closure_up.
14136 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14137 (struct displaced_step_closure_up):
14138 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14139 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14140 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14141 Likewise.
14142 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14143 * gdbarch.c, gdbarch.h: Re-generate.
14144 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14145 displaced_step_closure_up.
14146 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14147 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14148 * infrun.h (displaced_step_closure_up): New type alias.
14149 (struct displaced_step_inferior_state) <step_closure>: Change
14150 type to displaced_step_closure_up.
14151 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14152 displaced_step_closure_up.
14153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14154
14155 2020-02-14 Tom Tromey <tom@tromey.com>
14156
14157 * minidebug.c (gnu_debug_key): New global.
14158 (find_separate_debug_file_in_section): Use it.
14159
14160 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14161
14162 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14163 std::unique_ptr.
14164 * gdbarch.c: Re-generate.
14165 * gdbarch.h: Re-generate.
14166 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14167 change.
14168 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14169 type to std::unique_ptr.
14170 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14171 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14172 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14173 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14174 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14175 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14176 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14177 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14178 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14179
14180 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14181
14182 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14183 std::unique_ptr.
14184 (displaced_step_clear): Rename to...
14185 (displaced_step_reset): ... this. Just call displaced->reset ().
14186 (displaced_step_clear_cleanup): Rename to...
14187 (displaced_step_reset_cleanup): ... this.
14188 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14189 (displaced_step_fixup): Likewise.
14190 (resume_1): Likewise.
14191 (handle_inferior_event): Restore child's memory before calling
14192 displaced_step_fixup on the parent.
14193 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14194 to std::unique_ptr.
14195 <step_closure>: Change type to std::unique_ptr.
14196
14197 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * arm-tdep.c: Include count-one-bits.h.
14200 (cleanup_block_store_pc): Use count_one_bits.
14201 (cleanup_block_load_pc): Use count_one_bits.
14202 (arm_copy_block_xfer): Use count_one_bits.
14203 (thumb2_copy_block_xfer): Use count_one_bits.
14204 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14205 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14206 (thumb_get_next_pcs_raw): Use count_one_bits.
14207 (arm_get_next_pcs_raw): Use count_one_bits_l.
14208 * arch/arm.c (bitcount): Remove.
14209 * arch/arm.h (bitcount): Remove.
14210
14211 2020-02-14 Tom Tromey <tromey@adacore.com>
14212
14213 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14214 Update.
14215 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14216 * dwarf2/loc.c (call_site_find_chain_1): Return
14217 unique_xmalloc_ptr.
14218 (call_site_find_chain): Likewise.
14219
14220 2020-02-14 Richard Biener <rguenther@suse.de>
14221
14222 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14223 on expression with division operators.
14224
14225 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14226
14227 * MAINTAINERS (Write After Approval): Adding myself.
14228
14229 2020-02-12 Tom Tromey <tom@tromey.com>
14230
14231 * event-loop.c (event_data, gdb_event, event_handler_func):
14232 Remove.
14233
14234 2020-02-12 Tom Tromey <tom@tromey.com>
14235
14236 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14237 (dwarf2_frame_objfile_data): Add comment.
14238 (find_comp_unit, set_comp_unit): New functions.
14239 (dwarf2_frame_find_fde): Use find_comp_unit.
14240 (dwarf2_build_frame_info): Use set_comp_unit.
14241
14242 2020-02-12 Tom Tromey <tom@tromey.com>
14243
14244 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14245 (comp_unit): Don't initialize objfile.
14246 (execute_cfa_program): Add text_offset parameter.
14247 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14248 (dwarf2_frame_cache): Update.
14249 (dwarf2_build_frame_info): Don't set "objfile" member.
14250
14251 2020-02-12 Tom Tromey <tom@tromey.com>
14252
14253 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14254 (decode_frame_entry): Likewise.
14255 (dwarf2_build_frame_info): Update.
14256
14257 2020-02-12 Tom Tromey <tom@tromey.com>
14258
14259 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14260 (decode_frame_entry_1): Use the comp_unit obstack.
14261
14262 2020-02-12 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2/frame.c (struct comp_unit): Add initializers and
14265 constructor.
14266 (dwarf2_frame_objfile_data): Store a comp_unit.
14267 (dwarf2_frame_find_fde): Update.
14268 (dwarf2_build_frame_info): Use "new".
14269
14270 2020-02-12 Tom Tromey <tom@tromey.com>
14271
14272 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14273 (dwarf2_fde_table): Typedef for std::vector.
14274 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14275 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14276 (decode_frame_entry): Update.
14277 (dwarf2_build_frame_info): Use "new".
14278
14279 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14280
14281 * arm-tdep.c (arm_gdbarch_init): Update.
14282 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14283 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14284 have_neon, is_m>: Change to bool.
14285
14286 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14287
14288 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14289
14290 2020-02-12 Tom Tromey <tom@tromey.com>
14291
14292 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14293
14294 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14295
14296 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14297 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14298
14299 2020-02-11 Tom Tromey <tom@tromey.com>
14300
14301 * psymtab.h: Update comment.
14302
14303 2020-02-11 Tom Tromey <tom@tromey.com>
14304
14305 * gdb_obstack.h (struct auto_obstack): Use
14306 DISABLE_COPY_AND_ASSIGN.
14307
14308 2020-02-11 Tom Tromey <tom@tromey.com>
14309
14310 * dwarf2/frame.h (struct objfile): Don't forward declare.
14311
14312 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14313
14314 * cris-tdep.c (cris_supply_gregset): Change signature to match
14315 what struct regset expects.
14316 (cris_regset): New struct.
14317 (fetch_core_registers): Remove.
14318 (cris_iterate_over_regset_sections): New function.
14319 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14320 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14321
14322 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14323
14324 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14325 registers.
14326
14327 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14328
14329 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14330
14331 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14332
14333 * configure: Re-generate.
14334
14335 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14336
14337 * configure: Re-generate.
14338
14339 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14340
14341 * acinclude: Update warning.m4 path.
14342 * warning.m4: Move to gdbsupport.
14343
14344 2020-02-11 Tom Tromey <tromey@adacore.com>
14345
14346 * remote.c (remote_console_output): Update.
14347 * printcmd.c (printf_command): Update.
14348 * event-loop.c (gdb_wait_for_event): Update.
14349 * linux-nat.c (sigchld_handler): Update.
14350 * remote-sim.c (gdb_os_write_stdout): Update.
14351 (gdb_os_flush_stdout): Update.
14352 (gdb_os_flush_stderr): Update.
14353 (gdb_os_write_stderr): Update.
14354 * exceptions.c (print_exception): Update.
14355 * remote-fileio.c (remote_fileio_func_read): Update.
14356 (remote_fileio_func_write): Update.
14357 * tui/tui.c (tui_enable): Update.
14358 * tui/tui-interp.c (tui_interp::init): Update.
14359 * utils.c (init_page_info): Update.
14360 (putchar_unfiltered, fputc_unfiltered): Update.
14361 (gdb_flush): Update.
14362 (emit_style_escape): Update.
14363 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14364 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14365 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14366 (stderr_file::write): Update.
14367 (stderr_file::puts): Update.
14368 * ui-file.h (ui_file_isatty, ui_file_write)
14369 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14370 (ui_file_puts): Don't declare.
14371
14372 2020-02-10 Tom de Vries <tdevries@suse.de>
14373
14374 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14375 sentinel to char *.
14376
14377 2020-02-09 Tom de Vries <tdevries@suse.de>
14378
14379 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14380 filename if it matches "<artificial>".
14381
14382 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14383
14384 * windows-tdep.c (struct enum_value_name): New struct.
14385 (create_enum): New function.
14386 (windows_get_siginfo_type): Create and use enum types.
14387
14388 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14389
14390 * NEWS: Mention $_siginfo support for Windows.
14391 * windows-nat.c (handle_exception): Set siginfo_er.
14392 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14393 (windows_xfer_siginfo): New function.
14394 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14395 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14396 (init_windows_gdbarch_data): New function.
14397 (get_windows_gdbarch_data): New function.
14398 (windows_get_siginfo_type): New function.
14399 (windows_init_abi): Register windows_get_siginfo_type.
14400 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14401
14402 2020-02-08 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14405 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14406 <keep>: Declare method.
14407 <m_keep>: Remove member.
14408 <~cutu_reader>: Remove.
14409 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14410 (cutu_reader::cutu_reader): Update.
14411 (cutu_reader::keep): Rename from ~cutu_reader.
14412 (process_psymtab_comp_unit, build_type_psymtabs_1)
14413 (process_skeletonless_type_unit, load_partial_comp_unit)
14414 (load_full_comp_unit, dwarf2_read_addr_index)
14415 (read_signatured_type): Update.
14416
14417 2020-02-08 Tom Tromey <tom@tromey.com>
14418
14419 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14420 "want_partial_unit" parameter.
14421 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14422 Inline check for DW_TAG_partial_unit.
14423 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14424
14425 2020-02-08 Tom Tromey <tom@tromey.com>
14426
14427 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14428 read.c.
14429 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14430 read.c.
14431
14432 2020-02-08 Tom Tromey <tom@tromey.com>
14433
14434 * dwarf2/read.c (read_address): Move to comp-unit.c.
14435 (dwarf2_rnglists_process, dwarf2_ranges_process)
14436 (read_attribute_value, dwarf_decode_lines_1)
14437 (var_decode_location, decode_locdesc): Update.
14438 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14439 read.c. Remove "cu" parameter.
14440 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14441 method.
14442
14443 2020-02-08 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14446 (read_indirect_line_string): Update.
14447 * dwarf2/comp-unit.c (read_offset): Remove.
14448 (read_comp_unit_head): Update.
14449 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14450 method.
14451 (read_offset): Don't declare.
14452
14453 2020-02-08 Tom Tromey <tom@tromey.com>
14454
14455 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14456 * dwarf2/read.c (struct comp_unit_head): Move to
14457 dwarf2/comp-unit.h.
14458 (enum class rcuh_kind): Move to comp-unit.h.
14459 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14460 (read_comp_unit_head, error_check_comp_unit_head)
14461 (read_and_check_comp_unit_head): Move to comp-unit.c.
14462 (read_offset, dwarf_unit_type_name): Likewise.
14463 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14464 (cutu_reader::cutu_reader, read_call_site_scope)
14465 (find_partial_die, follow_die_offset): Update.
14466 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14467
14468 2020-02-08 Tom Tromey <tom@tromey.com>
14469
14470 * dwarf2/read.c (read_offset_1): Move to leb.c.
14471 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14472 (dwarf_decode_macro_bytes): Update.
14473 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14474 * dwarf2/leb.h (read_offset): Declare.
14475
14476 2020-02-08 Tom Tromey <tom@tromey.com>
14477
14478 * dwarf2/read.c (dwarf2_section_size): Remove.
14479 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14480 Update.
14481 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14482
14483 2020-02-08 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/read.c (read_initial_length): Move to leb.c.
14486 * dwarf2/leb.h (read_initial_length): Declare.
14487 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14488 handle_nonstd parameter.
14489 * dwarf2/frame.c (read_initial_length): Remove.
14490 (decode_frame_entry_1): Update.
14491
14492 2020-02-08 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/loc.c (dwarf2_find_location_expression)
14495 (dwarf_evaluate_loc_desc::get_tls_address)
14496 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14497 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14498 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14499 (dwarf2_compile_property_to_c)
14500 (dwarf2_loc_desc_get_symbol_read_needs)
14501 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14502 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14503 (loclist_describe_location, loclist_tracepoint_var_ref)
14504 (loclist_generate_c_location): Update.
14505 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14506 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14507 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14508 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14509 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14510 (dwarf2_per_cu_data::addr_size)
14511 (dwarf2_per_cu_data::ref_addr_size)
14512 (dwarf2_per_cu_data::text_offset)
14513 (dwarf2_per_cu_data::addr_type): Now methods.
14514 (per_cu_header_read_in): Make per_cu "const".
14515 (dwarf2_version): Remove.
14516 (dwarf2_per_cu_data::int_type): Now a method.
14517 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14518 (set_die_type, read_array_type, read_subrange_index_type)
14519 (read_tag_string_type, read_subrange_type): Update.
14520 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14521 offset_size, ref_addr_size, text_offset, addr_type, version,
14522 objfile, int_type, addr_sized_int_type>: Declare methods.
14523
14524 2020-02-08 Tom Tromey <tom@tromey.com>
14525
14526 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14527 Move earlier.
14528
14529 2020-02-08 Tom Tromey <tom@tromey.com>
14530
14531 * dwarf2/read.h (dwarf_line_debug): Declare.
14532 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14533 * dwarf2/read.c: Move line_header code to new files.
14534 (dwarf_line_debug): No longer static.
14535 * dwarf2/line-header.c: New file.
14536 * dwarf2/line-header.h: New file.
14537
14538 2020-02-08 Tom Tromey <tom@tromey.com>
14539
14540 * dwarf2/read.c (struct line_header) <file_full_name,
14541 file_file_name>: Return unique_xmalloc_ptr.
14542 (line_header::file_file_name): Update.
14543 (line_header::file_full_name): Update.
14544 (dw2_get_file_names_reader): Update.
14545 (macro_start_file): Update.
14546
14547 2020-02-08 Tom Tromey <tom@tromey.com>
14548
14549 * dwarf2/read.c (struct line_header) <file_full_name,
14550 file_file_name>: Declare methods.
14551 (dw2_get_file_names_reader): Update.
14552 (file_file_name): Now a method.
14553 (file_full_name): Likewise.
14554 (macro_start_file): Update.
14555
14556 2020-02-08 Tom Tromey <tom@tromey.com>
14557
14558 * dwarf2/read.c (dwarf_always_disassemble)
14559 (show_dwarf_always_disassemble): Move to loc.c.
14560 (_initialize_dwarf2_read): Move "always-disassemble" registration
14561 to loc.c.
14562 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14563 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14564 static.
14565 (show_dwarf_always_disassemble): Move from read.c.
14566 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14567
14568 2020-02-08 Tom Tromey <tom@tromey.com>
14569
14570 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14571 (create_quick_file_names_table): Return htab_up.
14572 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14573 Update.
14574 * dwarf2/read.h (struct dwarf2_per_objfile)
14575 <quick_file_names_table>: Now htab_up.
14576
14577 2020-02-08 Tom Tromey <tom@tromey.com>
14578
14579 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14580
14581 2020-02-08 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14584 Rewrite.
14585 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14586 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14587 (abbrev_table::abbrev_table): No longer inline.
14588 (ABBREV_HASH_SIZE): Remove.
14589 (abbrev_table::m_abbrevs): Now an htab_up.
14590
14591 2020-02-08 Tom Tromey <tom@tromey.com>
14592
14593 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14594 (cutu_reader): Update.
14595 (build_type_psymtabs_1): Update.
14596 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14597 (abbrev_table::alloc_abbrev): Update.
14598 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14599 (abbrev_table::read): New static method, renamed from
14600 abbrev_table_read_table.
14601 (abbrev_table::alloc_abbrev)
14602 (abbrev_table::add_abbrev): Now private.
14603 (abbrev_table::abbrev_table): Now private.
14604 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14605
14606 2020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14609 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14610 htab_up.
14611
14612 2020-02-08 Tom Tromey <tom@tromey.com>
14613
14614 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14615 htab_up.
14616 (lookup_dwo_unit_in_dwp): Update.
14617 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14618 on obstack.
14619
14620 2020-02-08 Tom Tromey <tom@tromey.com>
14621
14622 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14623 obstack.
14624
14625 2020-02-08 Tom Tromey <tom@tromey.com>
14626
14627 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14628 line_header_hash.
14629 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14630 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14631 Change type to htab_up.
14632
14633 2020-02-08 Tom Tromey <tom@tromey.com>
14634
14635 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14636 htab_up. Don't allocate on obstack.
14637 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14638 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14639 Change type to htab_up.
14640
14641 2020-02-08 Tom Tromey <tom@tromey.com>
14642
14643 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14644 Change type to htab_up.
14645 * dwarf2/read.c (create_signatured_type_table_from_index)
14646 (create_signatured_type_table_from_debug_names)
14647 (create_all_type_units, add_type_unit)
14648 (lookup_dwo_signatured_type, lookup_signatured_type)
14649 (process_skeletonless_type_unit): Update.
14650 (create_debug_type_hash_table, create_debug_types_hash_table):
14651 Change type of types_htab.
14652 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14653 htab_up. Don't allocate on obstack.
14654 (create_cus_hash_table): Change type of cus_htab parameter.
14655 (struct dwo_file) <cus, tus>: Now htab_up.
14656 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14657 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14658 (queue_and_load_all_dwo_tus): Update.
14659 * dwarf2/index-write.c (write_gdbindex): Update.
14660 (write_debug_names): Update.
14661
14662 2020-02-08 Tom Tromey <tom@tromey.com>
14663
14664 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14665 dwarf2/read.c. Remove "next" member. Add constructor ntad
14666 destructor.
14667 (struct dwarf2_per_objfile) <queue>: New member.
14668 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14669 dwarf2/read.h.
14670 (dwarf2_queue, dwarf2_queue_tail): Remove.
14671 (class dwarf2_queue_guard): Add parameter to constructor. Use
14672 DISABLE_COPY_AND_ASSIGN.
14673 <m_per_objfile>: New member.
14674 <~dwarf2_queue_guard>: Rewrite.
14675 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14676 Update.
14677 (~dwarf2_queue_item): New.
14678
14679 2020-02-08 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2/read.c (struct die_info) <has_children>: New member.
14682 (dw2_get_file_names_reader): Remove has_children.
14683 (dw2_get_file_names): Update.
14684 (read_cutu_die_from_dwo): Remove has_children.
14685 (cutu_reader::init_tu_and_read_dwo_dies)
14686 (cutu_reader::cutu_reader): Update.
14687 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14688 Remove has_children.
14689 (build_type_psymtabs_1, process_skeletonless_type_unit)
14690 (load_partial_comp_unit, load_full_comp_unit): Update.
14691 (create_dwo_cu_reader): Remove has_children.
14692 (create_cus_hash_table, read_die_and_children): Update.
14693 (read_full_die_1,read_full_die): Remove has_children.
14694 (read_signatured_type): Update.
14695 (class cutu_reader) <has_children>: Remove.
14696
14697 2020-02-08 Tom Tromey <tom@tromey.com>
14698
14699 * dwarf2/expr.c: Rename from dwarf2expr.c.
14700 * dwarf2/expr.h: Rename from dwarf2expr.h.
14701 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14702 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14703 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14704 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14705 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14706 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14707 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14708 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14709 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14710 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14711 * dwarf2/loc.c: Rename from dwarf2loc.c.
14712 * dwarf2/loc.h: Rename from dwarf2loc.h.
14713 * dwarf2/read.c: Rename from dwarf2read.c.
14714 * dwarf2/read.h: Rename from dwarf2read.h.
14715 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14716 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14717 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14718 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14719 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14720 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14721 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14722 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14723 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14724 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14725 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14726 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14727 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14728 Update.
14729 * Makefile.in (COMMON_SFILES): Update.
14730 (HFILES_NO_SRCDIR): Update.
14731
14732 2020-02-08 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14735 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14736
14737 2020-02-08 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2read.h (struct die_info): Don't declare.
14740
14741 2020-02-08 Tom Tromey <tom@tromey.com>
14742
14743 * dwarf2read.h (die_info_ptr): Remove typedef.
14744
14745 2020-02-08 Tom Tromey <tom@tromey.com>
14746
14747 * dwarf2read.c (read_call_site_scope)
14748 (handle_data_member_location, dwarf2_add_member_fn)
14749 (mark_common_block_symbol_computed, read_common_block)
14750 (attr_to_dynamic_prop, partial_die_info::read)
14751 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14752 (dwarf2_symbol_mark_computed, set_die_type): Update.
14753 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14754 method.
14755 (attr_form_is_block): Don't declare.
14756 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14757
14758 2020-02-08 Tom Tromey <tom@tromey.com>
14759
14760 * dwarf2read.c (dwarf2_find_base_address, )
14761 (read_call_site_scope, rust_containing_type)
14762 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14763 (handle_data_member_location, dwarf2_add_member_fn)
14764 (get_alignment, read_structure_type, process_structure_scope)
14765 (mark_common_block_symbol_computed, read_common_block)
14766 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14767 (partial_die_info::read, read_attribute_value, new_symbol)
14768 (lookup_die_type, dwarf2_get_ref_die_offset)
14769 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14770 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14771 (dwarf2_symbol_mark_computed): Update.
14772 * dwarf2/attribute.h (struct attribute) <value_as_address,
14773 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14774 methods.
14775 (value_as_address, attr_form_is_section_offset)
14776 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14777 * dwarf2/attribute.c (attribute::value_as_address)
14778 (attribute::form_is_section_offset, attribute::form_is_constant)
14779 (attribute::form_is_ref): Now methods.
14780
14781 2020-02-08 Tom Tromey <tom@tromey.com>
14782
14783 * dwarf2read.c (struct attribute, DW_STRING)
14784 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14785 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14786 (attr_form_is_block, attr_form_is_section_offset)
14787 (attr_form_is_constant, attr_form_is_ref): Move.
14788 * dwarf2/attribute.h: New file.
14789 * dwarf2/attribute.c: New file, from dwarf2read.c.
14790 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14791
14792 2020-02-08 Tom Tromey <tom@tromey.com>
14793
14794 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14795 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14796 Move.
14797 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14798 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14799 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14800 abbrev.c.
14801 * dwarf2/abbrev.h: New file.
14802 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14803 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14804
14805 2020-02-08 Tom Tromey <tom@tromey.com>
14806
14807 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14808 (dwarf2_section_size, dwarf2_get_section_info)
14809 (create_signatured_type_table_from_debug_names)
14810 (create_addrmap_from_aranges, read_debug_names_from_section)
14811 (get_gdb_index_contents_from_section, read_comp_unit_head)
14812 (error_check_comp_unit_head, read_abbrev_offset)
14813 (create_debug_type_hash_table, init_cu_die_reader)
14814 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14815 (read_comp_units_from_section, create_cus_hash_table)
14816 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14817 (create_dwp_v2_section, dwarf2_rnglists_process)
14818 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14819 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14820 (read_indirect_string_from_dwz, read_addr_index_1)
14821 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14822 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14823 (fill_in_loclist_baton): Update.
14824 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14825 get_containing_section, get_bfd_owner, get_bfd_section,
14826 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14827 (dwarf2_read_section, get_section_name, get_section_file_name)
14828 (get_containing_section, get_section_bfd_owner)
14829 (get_section_bfd_section, get_section_name, get_section_file_name)
14830 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14831 declare.
14832 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14833 (dwarf2_section_info::get_bfd_owner)
14834 (dwarf2_section_info::get_bfd_section)
14835 (dwarf2_section_info::get_name)
14836 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14837 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14838 (dwarf2_section_info::read): Now methods.
14839 * dwarf-index-write.c (class debug_names): Update.
14840
14841 2020-02-08 Tom Tromey <tom@tromey.com>
14842
14843 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14844 Move to dwarf2/section.h.
14845 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14846 (get_section_bfd_section, get_section_name)
14847 (get_section_file_name, get_section_id, get_section_flags)
14848 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14849 dwarf2/section.c.
14850 * dwarf2/section.h: New file.
14851 * dwarf2/section.c: New file, from dwarf2read.c.
14852 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14853
14854 2020-02-08 Tom Tromey <tom@tromey.com>
14855
14856 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14857 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14858 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14859 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14860 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14861 * dwarf2/leb.h: New file, from dwarf2read.c.
14862 * dwarf2/leb.c: New file, from dwarf2read.c.
14863 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14864 Remove.
14865 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14866 (COMMON_SFILES): Add dwarf2/leb.c.
14867
14868 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14869
14870 GDB 9.1 released.
14871
14872 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14873
14874 PR gdb/25190:
14875 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14876 * gdb/remote.c (remote_console_output): Update.
14877 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14878 (ui_file_puts): ...this.
14879 * gdb/ui-file.h (ui_file_puts): Add declaration.
14880 * gdb/utils.c (emit_style_escape): Update.
14881 (flush_wrap_buffer): Update.
14882 (fputs_maybe_filtered): Update.
14883 (fputs_unfiltered): Add function.
14884
14885 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14886
14887 * gdb/event-loop.c (gdb_wait_for_event): Update.
14888 * gdb/printcmd.c (printf_command): Update.
14889 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14890 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14891 (gdb_os_flush_stderr): Update.
14892 * gdb/remote.c (remote_console_output): Update.
14893 * gdb/ui-file.c (gdb_flush): Rename to...
14894 (ui_file_flush): ...this.
14895 (stderr_file::write): Update.
14896 (stderr_file::puts): Update.
14897 * gdb/ui-file.h (gdb_flush): Rename to...
14898 (ui_file_flush): ...this.
14899 * gdb/utils.c (gdb_flush): Add function.
14900 * gdb/utils.h (gdb_flush): Add declaration.
14901
14902 2020-02-07 Tom Tromey <tromey@adacore.com>
14903
14904 PR breakpoints/24915:
14905 * source.c (find_and_open_source): Do not check basenames_may_differ.
14906
14907 2020-02-07 Tom Tromey <tom@tromey.com>
14908
14909 * README: Update gdbserver documentation.
14910 * gdbserver: Move to top level.
14911 * configure.tgt (build_gdbserver): Remove.
14912 * configure.ac: Remove --enable-gdbserver.
14913 * configure: Rebuild.
14914 * Makefile.in (distclean): Don't mention gdbserver.
14915
14916 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14917
14918 * source-cache.c (source_cache::ensure): Surround
14919 get_plain_source_lines with a try/catch.
14920 (source_cache::get_line_charpos): Get rid of try/catch
14921 and only check for the return value of "ensure".
14922 * tui/tui-source.c (tui_source_window::set_contents):
14923 Simplify "nlines" calculation.
14924
14925 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14926
14927 * MAINTAINERS (Write After Approval): Add myself.
14928
14929 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14930
14931 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14932 function call.
14933
14934 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14935
14936 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14937
14938 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14939
14940 * nat/riscv-linux-tdesc.h: New file.
14941 * nat/riscv-linux-tdesc.c: New file, taking code from...
14942 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14943 ... here.
14944 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14945 NATDEPFILES.
14946
14947 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14948
14949 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14950 we don't set the fake simulator ptid to the null_ptid.
14951
14952 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14953
14954 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14955 * gdbthread.h (class thread_info) <resumed>: Likewise.
14956 * infrun.c (resume_1): Likewise.
14957 (proceed): Likewise.
14958 (infrun_thread_stop_requested): Likewise.
14959 (stop_all_threads): Likewise.
14960 (handle_inferior_event): Likewise.
14961 (restart_threads): Likewise.
14962 (finish_step_over): Likewise.
14963 (keep_going_stepped_thread): Likewise.
14964 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14965 (linux_handle_extended_wait): Likewise.
14966 * record-btrace.c (get_thread_current_frame_id): Likewise.
14967 * record-full.c (record_full_wait_1): Likewise.
14968 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14969 * target.c (target_resume): Likewise.
14970 * thread.c (set_running_thread): Likewise.
14971
14972 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14973
14974 * f-valprint.c (f77_print_array_1): Changed datatype of index
14975 variable to LONGEST from int to enable it to contain bound
14976 values correctly.
14977
14978 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14979
14980 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14981 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14982 offsets according to FLEN determined.
14983 (riscv_linux_nat_target::read_description): Determine FLEN
14984 dynamically.
14985 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14986 according to FLEN determined.
14987 (riscv_linux_nat_target::store_registers): Likewise.
14988
14989 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14990
14991 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14992 when reg->group is empty and reggroup is not.
14993
14994 2020-01-31 Tom Tromey <tromey@adacore.com>
14995
14996 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14997 Call beneath target's mourn_inferior after unpushing.
14998
14999 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15000
15001 PR tui/9765
15002 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15003 have enough lines to fill the screen, still return the lowest
15004 address we found.
15005
15006 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15007
15008 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15009 '-', '<', and '>' commands.
15010
15011 2020-01-29 Pedro Alves <palves@redhat.com>
15012 Sergio Durigan Junior <sergiodj@redhat.com>
15013
15014 * infcmd.c (construct_inferior_arguments): Assert that
15015 'argc' is greater than 0.
15016
15017 2020-01-29 Luis Machado <luis.machado@linaro.org>
15018
15019 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15020 (BRK_INSN_MASK): Define to 0xd4200000.
15021 (aarch64_program_breakpoint_here_p): New function.
15022 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15023 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15024 breakpoint.c.
15025 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15026 breakpoint.h
15027 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15028 call gdbarch_program_breakpoint_here_p.
15029 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15030 default_program_breakpoint_here_p, changed return type to bool and
15031 simplified.
15032 * breakpoint.h (program_breakpoint_here): Moved prototype to
15033 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15034 return type to bool.
15035 * gdbarch.c: Regenerate.
15036 * gdbarch.h: Regenerate.
15037 * gdbarch.sh (program_breakpoint_here_p): New method.
15038 * infrun.c (handle_signal_stop): Call
15039 gdbarch_program_breakpoint_here_p.
15040
15041 2020-01-26 Tom Tromey <tom@tromey.com>
15042
15043 * ctfread.c (struct ctf_fp_info): Reindent.
15044 (_initialize_ctfread): Remove.
15045
15046 2020-01-26 Tom Tromey <tom@tromey.com>
15047
15048 * psymtab.c (partial_map_expand_apply)
15049 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15050 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15051 (psym_print_stats, psym_expand_symtabs_for_function)
15052 (psym_map_symbol_filenames, psym_map_matching_symbols)
15053 (psym_expand_symtabs_matching)
15054 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15055 (maintenance_check_psymtabs): Use new methods.
15056 * psympriv.h (struct partial_symtab) <readin_p,
15057 get_compunit_symtab>: New methods.
15058 <readin, compunit_symtab>: Remove members.
15059 (struct standard_psymtab): New.
15060 (struct legacy_psymtab): Derive from standard_psymtab.
15061 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15062 standard_psymtab.
15063 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15064
15065 2020-01-26 Tom Tromey <tom@tromey.com>
15066
15067 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15068 read_dependencies. Add assert.
15069 * psymtab.c (partial_symtab::read_dependencies): New method.
15070 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15071 method.
15072 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15073 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15074 read_dependencies.
15075 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15076 Add assert.
15077
15078 2020-01-26 Tom Tromey <tom@tromey.com>
15079
15080 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15081 Call expand_psymtab.
15082 (xcoff_read_symtab): Call expand_psymtab.
15083 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15084 legacy_expand_psymtab.
15085 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15086 method.
15087 (struct legacy_psymtab) <expand_psymtab>: Implement.
15088 <legacy_expand_psymtab>: New member.
15089 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15090 (parse_partial_symbols): Set legacy_expand_psymtab.
15091 (psymtab_to_symtab_1): Change argument order. Call
15092 expand_psymtab.
15093 (new_psymtab): Set legacy_expand_psymtab.
15094 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15095 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15096 expand_psymtab.
15097 (dwarf2_psymtab::expand_psymtab): Rename from
15098 psymtab_to_symtab_1. Call expand_psymtab.
15099 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15100 (dbx_end_psymtab): Likewise.
15101 (dbx_psymtab_to_symtab_1): Change argument order. Call
15102 expand_psymtab.
15103 (dbx_read_symtab): Call expand_psymtab.
15104 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15105 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15106 (ctf_psymtab::read_symtab): Call expand_psymtab.
15107
15108 2020-01-26 Tom Tromey <tom@tromey.com>
15109
15110 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15111 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15112 messages.
15113 * mdebugread.c (mdebug_read_symtab): Remove prints.
15114 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15115 assert.
15116 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15117
15118 2020-01-26 Tom Tromey <tom@tromey.com>
15119
15120 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15121 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15122 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15123 legacy_symtab.
15124 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15125 * psymtab.c (psymtab_to_symtab): Call method.
15126 (dump_psymtab): Update.
15127 * psympriv.h (struct partial_symtab): Add virtual destructor.
15128 <read_symtab>: New method.
15129 (struct legacy_symtab): New.
15130 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15131 (struct pst_map) <pst>: Now a legacy_psymtab.
15132 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15133 (new_psymtab): Use legacy_psymtab.
15134 * dwarf2read.h (struct dwarf2_psymtab): New.
15135 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15136 * dwarf2read.c (dwarf2_create_include_psymtab)
15137 (dwarf2_build_include_psymtabs, create_type_unit_group)
15138 (create_partial_symtab, process_psymtab_comp_unit_reader)
15139 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15140 (set_partial_user): Use dwarf2_psymtab.
15141 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15142 (psymtab_to_symtab_1, process_full_comp_unit)
15143 (process_full_type_unit, dwarf2_ranges_read)
15144 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15145 (dwarf_decode_lines): Use dwarf2_psymtab.
15146 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15147 (add_address_entry_worker, write_one_signatured_type)
15148 (recursively_count_psymbols, recursively_write_psymbols)
15149 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15150 (write_debug_names): Likewise.
15151 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15152 <pst>: Now a legacy_psymtab.
15153 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15154 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15155 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15156 * ctfread.c (struct ctf_psymtab): New.
15157 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15158 ctf_psymtab.
15159 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15160 (create_partial_symtab): Return a ctf_psymtab.
15161 (scan_partial_symbols): Update.
15162
15163 2020-01-26 Tom Tromey <tom@tromey.com>
15164
15165 * xcoffread.c (xcoff_start_psymtab): Use new.
15166 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15167 renamed from start_psymtab_common.
15168 * psympriv.h (struct partial_symtab): Add new constructor.
15169 (start_psymtab_common): Don't declare.
15170 * mdebugread.c (parse_partial_symbols): Use new.
15171 * dwarf2read.c (create_partial_symtab): Use new.
15172 * dbxread.c (start_psymtab): Use new.
15173 * ctfread.c (create_partial_symtab): Use new.
15174
15175 2020-01-26 Tom Tromey <tom@tromey.com>
15176
15177 * xcoffread.c (xcoff_end_psymtab): Use new.
15178 * psymtab.c (start_psymtab_common): Use new.
15179 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15180 Update.
15181 * psympriv.h (struct partial_symtab): Add parameters to
15182 constructor. Don't inline.
15183 (allocate_psymtab): Don't declare.
15184 * mdebugread.c (new_psymtab): Use new.
15185 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15186 * dbxread.c (dbx_end_psymtab): Use new.
15187
15188 2020-01-26 Tom Tromey <tom@tromey.com>
15189
15190 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15191 allocate_psymtab. Update documentation.
15192 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15193 allocate_psymtab. Do not use new.
15194 (allocate_psymtab): Use new. Update.
15195
15196 2020-01-26 Tom Tromey <tom@tromey.com>
15197
15198 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15199 * psymtab.c (psym_print_stats): Update.
15200 * psympriv.h (struct partial_symtab) <readin,
15201 psymtabs_addrmap_supported, anonymous>: Now bool.
15202 * mdebugread.c (psymtab_to_symtab_1): Update.
15203 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15204 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15205 (process_full_comp_unit, process_full_type_unit): Update.
15206 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15207 * ctfread.c (psymtab_to_symtab): Update.
15208
15209 2020-01-26 Tom Tromey <tom@tromey.com>
15210
15211 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15212 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15213 * psymtab.c (psymtab_storage): Delete psymtabs.
15214 (psymtab_storage::allocate_psymtab): Use new.
15215 (psymtab_storage::discard_psymtab): Use delete.
15216 * psympriv.h (struct partial_symtab): Add constructor and
15217 initializers.
15218
15219 2020-01-26 Tom Tromey <tom@tromey.com>
15220
15221 * machoread.c: Do not include psympriv.h.
15222
15223 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15224
15225 * NEWS: Mention the new option and the set/show commands.
15226
15227 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15228
15229 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15230 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15231 (validate_exec_file): New variables, enums, functions.
15232 (exec_file_locate_attach, print_section_info): Style the filenames.
15233 (_initialize_exec): Install show_exec_file_mismatch_command and
15234 set_exec_file_mismatch_command.
15235 * gdbcore.h (validate_exec_file): Declare.
15236 * infcmd.c (attach_command): Call validate_exec_file.
15237 * remote.c ( remote_target::remote_add_inferior): Likewise.
15238
15239 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15240
15241 * frame.c (find_frame_sal): Move call to get_next_frame into more
15242 inner scope.
15243 * inline-frame.c (inilne_state) <inline_state>: Update argument
15244 types.
15245 (inilne_state) <skipped_symbol>: Rename to...
15246 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15247 (skip_inline_frames): Build vector of skipped symbols and use this
15248 to reate the inline_state.
15249 (inline_skipped_symbol): Add a comment and some assertions, fetch
15250 skipped symbol from the list.
15251
15252 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15253
15254 * buildsym.c (lte_is_less_than): Delete.
15255 (buildsym_compunit::end_symtab_with_blockvector): Create local
15256 lambda function to sort line table entries, and use
15257 std::stable_sort instead of std::sort.
15258 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15259 markers when looking for a previous line.
15260
15261 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15262
15263 * dwarf2read.c (lnp_state_machine::record_line): Include
15264 end_sequence parameter in debug print out. Record the line if we
15265 are at an end_sequence marker even if it's not the start of a
15266 statement.
15267 * symmisc.c (maintenance_print_one_line_table): Print end of
15268 sequence markers with 'END' not '0'.
15269
15270 2020-01-24 Pedro Alves <palves@redhat.com>
15271
15272 PR gdb/25410
15273 * thread.c (scoped_restore_current_thread::restore): Use
15274 switch_to_inferior_no_thread.
15275 * exec.c: Include "progspace-and-thread.h".
15276 (add_target_sections, remove_target_sections):
15277 scoped_restore_current_pspace_and_thread instead of
15278 scoped_restore_current_thread.
15279 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15280 and aspace to the inferior before calling clone_program_space.
15281 Remove stale comment.
15282
15283 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15284
15285 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15286 (arm_netbsd_nat_target::fetch_registers): ...this.
15287 (arm_nbsd_nat_target::store_registers): Rename to...
15288 (arm_netbsd_nat_target::store_registers): ...this.
15289
15290 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15291
15292 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15293 register_t.
15294
15295 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15296
15297 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15298 Update comment.
15299 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15300 Likewise.
15301 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15302 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15303 the correct replacement (iterate_over_regset_sections).
15304 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15305 Update comment.
15306
15307 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15308
15309 PR gdb/23718
15310 * gdb/python/python.c (execute_gdb_command): Call
15311 async_enable_stdin in catch block.
15312
15313 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15314
15315 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15316 SWITCH_THRU_ALL_UIS.
15317
15318 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15319
15320 PR tui/9765
15321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15322 comment, add extra parameter, and update to store previous symbol
15323 when appropriate.
15324 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15325 add extra parameter.
15326 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15327 remove unneeded parameter, add try/catch around gdb_print_insn,
15328 rewrite to add items to asm_lines vector.
15329 (tui_find_backward_disassembly_start_address): New function.
15330 (tui_find_disassembly_address): Updated throughout.
15331 (tui_disasm_window::set_contents): Update for changes to
15332 tui_disassemble.
15333 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15334 number of lines to scroll.
15335
15336 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15337
15338 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15339 (SECT_OFF_DATA): Likewise.
15340 (SECT_OFF_RODATA): Likewise.
15341 (SECT_OFF_TEXT): Likewise.
15342 (SECT_OFF_BSS): Likewise.
15343 (struct objfile) <text_section_offset, data_section_offset>: New
15344 methods.
15345 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15346 objfile::text_section_offset.
15347 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15348 * coffread.c (coff_symtab_read): Likewise.
15349 (enter_linenos): Likewise.
15350 (process_coff_symbol): Likewise.
15351 * ctfread.c (get_objfile_text_range): Likewise.
15352 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15353 Use objfile::data_section_offset.
15354 * dwarf2-frame.c (execute_cfa_program): Use
15355 objfile::text_section_offset.
15356 (dwarf2_frame_find_fde): Likewise.
15357 * dwarf2read.c (create_addrmap_from_index): Likewise.
15358 (create_addrmap_from_aranges): Likewise.
15359 (dw2_find_pc_sect_compunit_symtab): Likewise.
15360 (process_psymtab_comp_unit_reader): Likewise.
15361 (add_partial_symbol): Likewise.
15362 (add_partial_subprogram): Likewise.
15363 (process_full_comp_unit): Likewise.
15364 (read_file_scope): Likewise.
15365 (read_func_scope): Likewise.
15366 (read_lexical_block_scope): Likewise.
15367 (read_call_site_scope): Likewise.
15368 (dwarf2_rnglists_process): Likewise.
15369 (dwarf2_ranges_process): Likewise.
15370 (dwarf2_ranges_read): Likewise.
15371 (dwarf_decode_lines_1): Likewise.
15372 (new_symbol): Likewise.
15373 (dwarf2_fetch_die_loc_sect_off): Likewise.
15374 (dwarf2_per_cu_text_offset): Likewise.
15375 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15376 * hppa-tdep.c (read_unwind_info): Likewise.
15377 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15378 * psympriv.h (struct partial_symtab): Likewise.
15379 * psymtab.c (find_pc_sect_psymtab): Likewise.
15380 * solib-svr4.c (enable_break): Likewise.
15381 * stap-probe.c (relocate_address): Use
15382 objfile::data_section_offset.
15383 * xcoffread.c (enter_line_range): Use
15384 objfile::text_section_offset.
15385 (read_xcoff_symtab): Likewise.
15386
15387 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15388
15389 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15390 declaration to narrower scopes.
15391
15392 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15393
15394 * darwin-nat.h (struct darwin_exception_msg, enum
15395 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15396 Move up.
15397 (class darwin_nat_target) <wait_1, check_new_threads,
15398 decode_exception_message, decode_message, stop_inferior,
15399 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15400 * darwin-nat.c (darwin_check_new_threads): Rename to...
15401 (darwin_nat_target::check_new_threads): ... this.
15402 (darwin_suspend_inferior_it): Remove.
15403 (darwin_decode_exception_message): Rename to...
15404 (darwin_nat_target::decode_exception_message): ... this.
15405 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15406 (darwin_decode_message): Rename to...
15407 (darwin_nat_target::decode_message): ... this.
15408 (cancel_breakpoint): Rename to...
15409 (darwin_nat_target::cancel_breakpoint): ... this.
15410 (darwin_wait): Rename to...
15411 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15412 instead of iterate_over_inferiors.
15413 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15414 (darwin_stop_inferior): Rename to...
15415 (darwin_nat_target::stop_inferior): ... this.
15416 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15417 (darwin_init_thread_list): Rename to...
15418 (darwin_nat_target::init_thread_list): ... this.
15419 (darwin_ptrace_him): Rename to...
15420 (darwin_nat_target::ptrace_him): ... this.
15421 (darwin_nat_target::create_inferior): Pass lambda function to
15422 fork_inferior.
15423 (darwin_nat_target::detach): Call stop_inferior instead of
15424 darwin_stop_inferior.
15425 * fork-inferior.h (fork_inferior): Change init_trace_fun
15426 parameter to gdb::function_view.
15427 * fork-inferior.c (fork_inferior): Likewise.
15428
15429 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15430
15431 * i386-cygwin-tdep.c (core_process_module_section): Update.
15432 * windows-nat.c (struct lm_info_windows): Add text_offset.
15433 (windows_xfer_shared_libraries): Update.
15434 * windows-tdep.c (windows_xfer_shared_library):
15435 Add text_offset_cached argument.
15436 * windows-tdep.h (windows_xfer_shared_library): Update.
15437
15438 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15439
15440 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15441
15442 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15445 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15446 replace with range-based for.
15447 (gdbsim_interrupt_inferior): Remove.
15448 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15449 with a range-based for. Inline code from
15450 gdbsim_interrupt_inferior.
15451
15452 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15453
15454 * infrun.c (proceed): Fix indentation.
15455
15456 2020-01-21 Tom Tromey <tromey@adacore.com>
15457
15458 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15459 * python/python.c (python_extension_ops): Update.
15460 (gdbpy_colorize): New function.
15461 * python/lib/gdb/__init__.py (colorize): New function.
15462 * extension.h (ext_lang_colorize): Declare.
15463 * extension.c (ext_lang_colorize): New function.
15464 * extension-priv.h (struct extension_language_ops) <colorize>: New
15465 member.
15466 * cli/cli-style.c (_initialize_cli_style): Update help text.
15467
15468 2020-01-21 Luis Machado <luis.machado@linaro.org>
15469
15470 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15471 <cond>: Change type to bool.
15472 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15473 (aarch64_displaced_step_cb): Likewise.
15474 (aarch64_displaced_step_tb): Likewise.
15475
15476 2020-01-21 Luis Machado <luis.machado@linaro.org>
15477
15478 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15479 output.
15480
15481 2020-01-21 Luis Machado <luis.machado@linaro.org>
15482
15483 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15484 <pc_adjust>: Adjust the documentation.
15485 (aarch64_displaced_step_fixup): Check if PC really moved before
15486 adjusting it.
15487
15488 2020-01-19 Tom Tromey <tom@tromey.com>
15489
15490 * disasm.c (~gdb_disassembler): New destructor.
15491 (gdb_buffered_insn_length): Call disassemble_free_target.
15492 * disasm.h (class gdb_disassembler): Declare destructor. Use
15493 DISABLE_COPY_AND_ASSIGN.
15494
15495 2020-01-19 Tom Tromey <tom@tromey.com>
15496
15497 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15498 (die_reader_func_ftype): Remove.
15499 (cutu_reader): New class.
15500 (dw2_get_file_names_reader): Remove "data" parameter.
15501 (dw2_get_file_names): Use cutu_reader.
15502 (create_debug_type_hash_table): Update.
15503 (read_cutu_die_from_dwo): Update comment.
15504 (lookup_dwo_unit): Add dwo_name parameter.
15505 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15506 die_reader_func_ftype and data parameters.
15507 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15508 Remove die_reader_func_ftype and data parameters.
15509 (~cutu_reader): New; from init_cutu_and_read_dies.
15510 (cutu_reader::cutu_reader): Rename from
15511 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15512 and data parameters.
15513 (init_cutu_and_read_dies_simple): Remove.
15514 (struct process_psymtab_comp_unit_data): Remove.
15515 (process_psymtab_comp_unit_reader): Remove data parameter; add
15516 want_partial_unit and pretend_language parameters.
15517 (process_psymtab_comp_unit): Use cutu_reader.
15518 (build_type_psymtabs_reader): Remove data parameter.
15519 (build_type_psymtabs_1): Use cutu_reader.
15520 (process_skeletonless_type_unit): Likewise.
15521 (load_partial_comp_unit_reader): Remove.
15522 (load_partial_comp_unit): Use cutu_reader.
15523 (load_full_comp_unit_reader): Remove.
15524 (load_full_comp_unit): Use cutu_reader.
15525 (struct create_dwo_cu_data): Remove.
15526 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15527 dwo_unit parameters.
15528 (create_cus_hash_table): Use cutu_reader.
15529 (struct dwarf2_read_addr_index_data): Remove.
15530 (dwarf2_read_addr_index_reader): Remove.
15531 (dwarf2_read_addr_index): Use cutu_reader.
15532 (read_signatured_type_reader): Remove.
15533 (read_signatured_type): Use cutu_reader.
15534
15535 2020-01-19 Tom Tromey <tom@tromey.com>
15536
15537 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15538 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15539 (tui_wrefresh): Declare.
15540 * tui/tui-wingeneral.c (suppress_output): New global.
15541 (tui_suppress_output, ~tui_suppress_output): New constructor and
15542 destructor.
15543 (tui_wrefresh): New function.
15544 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15545 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15546 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15547 method.
15548 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15549 tui_wrefresh.
15550 (tui_data_window::no_refresh): New method.
15551 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15552 (tui_reg_command): Use tui_suppress_output
15553 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15554 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15555 method.
15556 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15557
15558 2020-01-19 Tom Tromey <tom@tromey.com>
15559
15560 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15561 Handle case where symtab is null.
15562
15563 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15564
15565 * linux-fork.c (one_fork_p): Simplify.
15566
15567 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15568
15569 * top.c (struct qt_args): Remove.
15570 (kill_or_detach): Change return type to void, replace `void *`
15571 parameter with a proper one.
15572 (print_inferior_quit_action): Likewise.
15573 (quit_confirm): Use range-based for loop to iterate over inferiors.
15574 (quit_force): Likewise.
15575
15576 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15577
15578 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15579 `void *` parameter with proper parameters.
15580 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15581 (print_one_inferior): Change return type to void, replace `void *`
15582 parameter with proper parameters.
15583 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15584 inferiors.
15585 (get_other_inferior): Remove.
15586 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15587 inferiors.
15588
15589 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15590
15591 * mi/mi-interp.c (report_initial_inferior): Remove.
15592 (mi_interp::init): Use range-based for to iterate over inferiors.
15593
15594 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15595
15596 * python/py-inferior.c (build_inferior_list): Remove.
15597 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15598
15599 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15600
15601 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15602 (btrace_stitch_trace): Likewise.
15603 * charset.c (intermediate_encoding): Likewise (vaild).
15604 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15605 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15606 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15607
15608 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15609
15610 * windows-tdep.c (windows_get_tlb_type):
15611 Add rtl_user_process_parameters type.
15612
15613 2020-01-16 Pedro Alves <palves@redhat.com>
15614 Norbert Lange <nolange79@gmail.com>
15615
15616 PR build/24805
15617 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15618 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15619 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15620 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15621 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15622 (ps_plog): Redeclare exported functions with default visibility.
15623
15624 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15625
15626 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15627 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15628
15629 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15630
15631 * infcmd.c (post_create_inferior): Use get_thread_regcache
15632 instead of get_current_regcache.
15633
15634 2020-01-14 Tom Tromey <tom@tromey.com>
15635
15636 PR symtab/12535:
15637 * python/python.c (gdbpy_decode_line): Treat empty string the same
15638 as no argument.
15639
15640 2020-01-14 Tom Tromey <tom@tromey.com>
15641
15642 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15643
15644 2020-01-14 Tom Tromey <tom@tromey.com>
15645
15646 * nat/linux-btrace.c: Don't include <config.h>.
15647 * nat/linux-ptrace.c: Don't include <config.h>.
15648 * nat/x86-linux-dregs.c: Don't include <config.h>.
15649
15650 2020-01-14 Tom Tromey <tom@tromey.com>
15651
15652 * configure: Rebuild.
15653 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15654
15655 2020-01-14 Tom Tromey <tom@tromey.com>
15656
15657 * nat/x86-linux-dregs.c: Include configh.h.
15658 * nat/linux-ptrace.c: Include configh.h.
15659 * nat/linux-btrace.c: Include configh.h.
15660 * defs.h: Include config.h, bfd.h.
15661 * configure.ac: Don't source common.host.
15662 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15663 * configure: Rebuild.
15664 * acinclude.m4: Update path.
15665 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15666 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15667 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15668 (CLIBS): Add LIBSUPPORT.
15669 (CDEPS): Likewise.
15670 (COMMON_SFILES): Remove gdbsupport files.
15671 (HFILES_NO_SRCDIR): Likewise.
15672 (stamp-version): Update path to create-version.sh.
15673 (ALLDEPFILES): Remove gdbsupport files.
15674
15675 2020-01-14 Tom Tromey <tom@tromey.com>
15676
15677 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15678 USE_WIN32API when needed.
15679 * configure.ac (USE_WIN32API): Don't define.
15680 (WIN32LIBS): Use WIN32APILIBS.
15681 * configure: Rebuild.
15682
15683 2020-01-14 Tom Tromey <tom@tromey.com>
15684
15685 * configure: Rebuild.
15686 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15687
15688 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15689
15690 * skip.c (skip_function_command): Make skip w/o arguments use the
15691 name of the inlined function if pc is inside any inlined function.
15692
15693 2020-01-14 Luis Machado <luis.machado@linaro.org>
15694
15695 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15696 * infrun.c (resume_1): Likewise.
15697 (handle_inferior_event): Remove stale comment.
15698 * linux-nat.c (linux_nat_target::resume): Update comments.
15699 (save_stop_reason): Likewise.
15700 (linux_nat_filter_event): Likewise.
15701 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15702
15703 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15704
15705 * elfread.c (record_minimal_symbol): Set section index to 0 for
15706 non-allocatable sections.
15707
15708
15709 2020-01-13 Ali Tamur <tamur@google.com>
15710
15711 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15712 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15713 to gdb::optional. Update comments.
15714 (dwo_file): Update comments.
15715 (read_attribute): Update API to take an additional out parameter,
15716 need_reprocess. This is used to mark attributes that need other
15717 attributes (e.g. str_offsets_base) for correct computation which may not
15718 have been read yet.
15719 (read_attribute_reprocess): New function declaration.
15720 (read_addr_index): Likewise.
15721 (read_dwo_str_index): Likewise.
15722 (read_stub_str_index): Likewise.
15723 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15724 (lookup_addr_base): New function definition.
15725 (lookup_ranges_base): Likewise.
15726 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15727 lookup_ranges_base.
15728 (init_cutu_and_read_dies): Update comments.
15729 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15730 unit. This is used to inherit parent's str_offsets_base and addr_base.
15731 Update comments.
15732 (init_cutu_and_read_dies_simple): Reflect API changes.
15733 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15734 (create_cus_hash_table): Change API to take parent compile unit.
15735 Reflect API changes.
15736 (open_and_init_dwo_file): Reflect API changes.
15737 (dwarf2_get_pc_bounds): Update comments.
15738 (dwarf2_record_block_ranges): Likewise.
15739 (read_full_die_1): Change implementation to reprocess attributes that
15740 need str_offsets_base and addr_base.
15741 (partial_die_info::read): Likewise.
15742 (read_attribute_reprocess): New function definition.
15743 (read_attribute_value): Change API to take an additional out parameter,
15744 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15745 when a non-dwo compile unit has index based attributes.
15746 (read_attribute): Reflect API changes.
15747 (read_addr_index_1): Reflect API changes. Update comments.
15748 (dwarf2_read_addr_index_data): Reflect API changes.
15749 (dwarf2_read_addr_index): Likewise.
15750 (read_str_index): Change API and implementation. This becomes a helper
15751 to be used by the new string index related methods. Update error
15752 message and comments.
15753 (read_dwo_str_index): New function definition.
15754 (read_stub_str_index): Likewise.
15755 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15756 * symfile.h (dwarf2_debug_sections): Likewise.
15757 * xcoffread.c (dwarf2_debug_sections): Likewise.
15758
15759 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15760
15761 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15762 core_reg_sect type to gdb_byte *.
15763 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15764 * cris-tdep.c (fetch_core_registers): Likewise.
15765 * corelow.c (core_target::get_core_register_section): Change
15766 type of `contents` to gdb::byte_vector.
15767
15768 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15769
15770 * tui/tui-wingeneral.c (box_win): Position the title in the center
15771 of the border.
15772
15773 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15774
15775 * corelow.c (core_target::get_core_register_section): Use
15776 std::vector instead of alloca.
15777
15778 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15779
15780 * warning.m4: Add -Wmissing-declarations to build_warnings.
15781 * configure: Re-generate.
15782
15783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15784
15785 * python/python.c (init__gdb_module): Add declaration.
15786
15787 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15788
15789 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15790 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15791 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15792 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15793 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15794 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15795 * ada-exp.y (_initialize_ada_exp): Add declaration.
15796 * ada-lang.c (_initialize_ada_language): Add declaration.
15797 * ada-tasks.c (_initialize_tasks): Add declaration.
15798 * agent.c (_initialize_agent): Add declaration.
15799 * aix-thread.c (_initialize_aix_thread): Add declaration.
15800 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15801 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15802 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15803 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15804 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15805 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15806 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15807 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15808 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15809 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15810 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15811 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15812 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15813 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15814 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15815 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15816 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15817 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15818 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15819 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15820 * annotate.c (_initialize_annotate): Add declaration.
15821 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15822 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15823 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15824 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15825 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15826 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15827 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15828 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15829 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15830 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15831 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15832 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15833 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15834 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15835 * auto-load.c (_initialize_auto_load): Add declaration.
15836 * auxv.c (_initialize_auxv): Add declaration.
15837 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15838 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15839 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15840 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15841 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15842 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15843 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15844 * breakpoint.c (_initialize_breakpoint): Add declaration.
15845 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15846 * btrace.c (_initialize_btrace): Add declaration.
15847 * charset.c (_initialize_charset): Add declaration.
15848 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15849 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15850 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15851 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15852 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15853 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15854 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15855 * coffread.c (_initialize_coffread): Add declaration.
15856 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15857 * compile/compile.c (_initialize_compile): Add declaration.
15858 * complaints.c (_initialize_complaints): Add declaration.
15859 * completer.c (_initialize_completer): Add declaration.
15860 * copying.c (_initialize_copying): Add declaration.
15861 * corefile.c (_initialize_core): Add declaration.
15862 * corelow.c (_initialize_corelow): Add declaration.
15863 * cp-abi.c (_initialize_cp_abi): Add declaration.
15864 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15865 * cp-support.c (_initialize_cp_support): Add declaration.
15866 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15867 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15868 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15869 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15870 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15871 * ctfread.c (_initialize_ctfread): Add declaration.
15872 * d-lang.c (_initialize_d_language): Add declaration.
15873 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15874 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15875 * dbxread.c (_initialize_dbxread): Add declaration.
15876 * dcache.c (_initialize_dcache): Add declaration.
15877 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15878 * disasm.c (_initialize_disasm): Add declaration.
15879 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15880 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15881 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15882 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15883 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15884 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15885 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15886 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15887 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15888 * elfread.c (_initialize_elfread): Add declaration.
15889 * exec.c (_initialize_exec): Add declaration.
15890 * extension.c (_initialize_extension): Add declaration.
15891 * f-lang.c (_initialize_f_language): Add declaration.
15892 * f-valprint.c (_initialize_f_valprint): Add declaration.
15893 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15894 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15895 * filesystem.c (_initialize_filesystem): Add declaration.
15896 * findcmd.c (_initialize_mem_search): Add declaration.
15897 * findvar.c (_initialize_findvar): Add declaration.
15898 * fork-child.c (_initialize_fork_child): Add declaration.
15899 * frame-base.c (_initialize_frame_base): Add declaration.
15900 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15901 * frame.c (_initialize_frame): Add declaration.
15902 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15903 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15904 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15905 * gcore.c (_initialize_gcore): Add declaration.
15906 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15907 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15908 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15909 * gdbarch.c (_initialize_gdbarch): Add declaration.
15910 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15911 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15912 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15913 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15914 * go-lang.c (_initialize_go_language): Add declaration.
15915 * go32-nat.c (_initialize_go32_nat): Add declaration.
15916 * guile/guile.c (_initialize_guile): Add declaration.
15917 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15918 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15919 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15920 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15921 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15922 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15923 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15924 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15925 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15926 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15927 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15928 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15929 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15930 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15931 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15932 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15933 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15934 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15935 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15936 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15937 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15938 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15939 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15940 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15941 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15942 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15943 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15944 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15945 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15946 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15947 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15948 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15949 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15950 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15951 * infcall.c (_initialize_infcall): Add declaration.
15952 * infcmd.c (_initialize_infcmd): Add declaration.
15953 * inflow.c (_initialize_inflow): Add declaration.
15954 * infrun.c (_initialize_infrun): Add declaration.
15955 * interps.c (_initialize_interpreter): Add declaration.
15956 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15957 * jit.c (_initialize_jit): Add declaration.
15958 * language.c (_initialize_language): Add declaration.
15959 * linux-fork.c (_initialize_linux_fork): Add declaration.
15960 * linux-nat.c (_initialize_linux_nat): Add declaration.
15961 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15962 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15963 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15964 * m2-lang.c (_initialize_m2_language): Add declaration.
15965 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15966 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15967 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15968 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15969 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15970 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15971 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15972 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15973 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15974 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15975 * machoread.c (_initialize_machoread): Add declaration.
15976 * macrocmd.c (_initialize_macrocmd): Add declaration.
15977 * macroscope.c (_initialize_macroscope): Add declaration.
15978 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15979 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15980 * maint.c (_initialize_maint_cmds): Add declaration.
15981 * mdebugread.c (_initialize_mdebugread): Add declaration.
15982 * memattr.c (_initialize_mem): Add declaration.
15983 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15984 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15985 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15986 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15987 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15988 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15989 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15990 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15991 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15992 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15993 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15994 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15995 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15996 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15997 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15998 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15999 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16000 * mipsread.c (_initialize_mipsread): Add declaration.
16001 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16002 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16003 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16004 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16005 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16006 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16007 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16008 * nto-procfs.c (_initialize_procfs): Add declaration.
16009 * objc-lang.c (_initialize_objc_language): Add declaration.
16010 * observable.c (_initialize_observer): Add declaration.
16011 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16012 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16013 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16014 * osabi.c (_initialize_gdb_osabi): Add declaration.
16015 * osdata.c (_initialize_osdata): Add declaration.
16016 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16017 * parse.c (_initialize_parse): Add declaration.
16018 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16019 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16020 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16021 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16022 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16023 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16024 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16025 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16026 * printcmd.c (_initialize_printcmd): Add declaration.
16027 * probe.c (_initialize_probe): Add declaration.
16028 * proc-api.c (_initialize_proc_api): Add declaration.
16029 * proc-events.c (_initialize_proc_events): Add declaration.
16030 * proc-service.c (_initialize_proc_service): Add declaration.
16031 * procfs.c (_initialize_procfs): Add declaration.
16032 * producer.c (_initialize_producer): Add declaration.
16033 * psymtab.c (_initialize_psymtab): Add declaration.
16034 * python/python.c (_initialize_python): Add declaration.
16035 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16036 * record-btrace.c (_initialize_record_btrace): Add declaration.
16037 * record-full.c (_initialize_record_full): Add declaration.
16038 * record.c (_initialize_record): Add declaration.
16039 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16040 * regcache.c (_initialize_regcache): Add declaration.
16041 * reggroups.c (_initialize_reggroup): Add declaration.
16042 * remote-notif.c (_initialize_notif): Add declaration.
16043 * remote-sim.c (_initialize_remote_sim): Add declaration.
16044 * remote.c (_initialize_remote): Add declaration.
16045 * reverse.c (_initialize_reverse): Add declaration.
16046 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16047 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16048 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16049 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16050 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16051 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16052 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16053 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16054 Add declaration.
16055 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16056 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16057 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16058 * rust-exp.y (_initialize_rust_exp): Add declaration.
16059 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16060 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16061 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16062 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16063 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16064 * score-tdep.c (_initialize_score_tdep): Add declaration.
16065 * ser-go32.c (_initialize_ser_dos): Add declaration.
16066 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16067 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16068 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16069 * ser-uds.c (_initialize_ser_socket): Add declaration.
16070 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16071 * serial.c (_initialize_serial): Add declaration.
16072 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16073 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16074 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16075 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16076 * skip.c (_initialize_step_skip): Add declaration.
16077 * sol-thread.c (_initialize_sol_thread): Add declaration.
16078 * solib-aix.c (_initialize_solib_aix): Add declaration.
16079 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16080 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16081 * solib-frv.c (_initialize_frv_solib): Add declaration.
16082 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16083 * solib-target.c (_initialize_solib_target): Add declaration.
16084 * solib.c (_initialize_solib): Add declaration.
16085 * source-cache.c (_initialize_source_cache): Add declaration.
16086 * source.c (_initialize_source): Add declaration.
16087 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16088 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16089 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16090 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16091 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16092 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16093 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16094 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16095 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16096 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16097 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16098 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16099 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16100 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16101 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16102 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16103 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16104 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16105 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16106 * stabsread.c (_initialize_stabsread): Add declaration.
16107 * stack.c (_initialize_stack): Add declaration.
16108 * stap-probe.c (_initialize_stap_probe): Add declaration.
16109 * std-regs.c (_initialize_frame_reg): Add declaration.
16110 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16111 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16112 * symfile.c (_initialize_symfile): Add declaration.
16113 * symmisc.c (_initialize_symmisc): Add declaration.
16114 * symtab.c (_initialize_symtab): Add declaration.
16115 * target.c (_initialize_target): Add declaration.
16116 * target-connection.c (_initialize_target_connection): Add
16117 declaration.
16118 * target-dcache.c (_initialize_target_dcache): Add declaration.
16119 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16120 * thread.c (_initialize_thread): Add declaration.
16121 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16122 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16123 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16124 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16125 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16126 * tracectf.c (_initialize_ctf): Add declaration.
16127 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16128 * tracefile.c (_initialize_tracefile): Add declaration.
16129 * tracepoint.c (_initialize_tracepoint): Add declaration.
16130 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16131 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16132 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16133 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16134 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16135 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16136 * tui/tui.c (_initialize_tui): Add declaration.
16137 * typeprint.c (_initialize_typeprint): Add declaration.
16138 * ui-style.c (_initialize_ui_style): Add declaration.
16139 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16140 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16141 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16142 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16143 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16144 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16145 * unittests/filtered_iterator-selftests.c
16146 (_initialize_filtered_iterator_selftests): Add declaration.
16147 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16148 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16149 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16150 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16151 * unittests/main-thread-selftests.c
16152 (_initialize_main_thread_selftests): Add declaration.
16153 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16154 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16155 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16156 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16157 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16158 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16159 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16160 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16161 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16162 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16163 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16164 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16165 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16166 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16167 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16168 declaration.
16169 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16170 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16171 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16172 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16173 * user-regs.c (_initialize_user_regs): Add declaration.
16174 * utils.c (_initialize_utils): Add declaration.
16175 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16176 * valops.c (_initialize_valops): Add declaration.
16177 * valprint.c (_initialize_valprint): Add declaration.
16178 * value.c (_initialize_values): Add declaration.
16179 * varobj.c (_initialize_varobj): Add declaration.
16180 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16181 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16182 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16183 * windows-nat.c (_initialize_windows_nat): Add declaration.
16184 (_initialize_check_for_gdb_ini): Add declaration.
16185 (_initialize_loadable): Add declaration.
16186 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16187 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16188 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16189 * xcoffread.c (_initialize_xcoffread): Add declaration.
16190 * xml-support.c (_initialize_xml_support): Add declaration.
16191 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16192 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16193 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16194 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16195
16196 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16197
16198 * regformats/regdat.sh: Generate declaration for init function.
16199
16200 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16201
16202 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16203 up.
16204 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16205 close_one_inferior>: New methods.
16206 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16207 pass down target to find_inferior_pid.
16208 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16209 Pass down target to find_inferior_ptid.
16210 (gdbsim_target::create_inferior): Pass down target to
16211 add_thread_silent.
16212 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16213 target down to find_inferior_ptid and switch_to_thread.
16214 (gdbsim_target::close): Update to call close_one_inferior.
16215 (struct resume_data): Remove.
16216 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16217 directly, rather than through a void pointer.
16218 (gdbsim_target::resume): Update to call resume_one_inferior.
16219
16220 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16221
16222 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16223
16224 2020-01-12 Pedro Alves <palves@redhat.com>
16225
16226 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16227 directly for the current inferior instead of
16228 discard_all_inferiors.
16229 (discard_all_inferiors): Delete.
16230
16231 2020-01-11 Tom Tromey <tom@tromey.com>
16232
16233 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16234 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16235 deprecated_safe_get_selected_frame.
16236
16237 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16238
16239 * inferior.c (print_inferior): Switch inferior before printing it.
16240
16241 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16242 Pedro Alves <palves@redhat.com>
16243
16244 * progspace-and-thread.c (switch_to_program_space_and_thread):
16245 Assert there's an inferior for PSPACE. Use
16246 switch_to_inferior_no_thread to switch the inferior too.
16247 * progspace.c (program_space::~program_space): Call
16248 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16249 (program_space::free_all_objfiles): Don't call clear_symtab_users
16250 here.
16251 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16252
16253 2020-01-10 Pedro Alves <palves@redhat.com>
16254
16255 * NEWS: Mention multi-target debugging, "info connections", and
16256 "add-inferior -no-connection".
16257
16258 2020-01-10 Pedro Alves <palves@redhat.com>
16259
16260 * infrun.c: Include "target-connection.h".
16261 (check_multi_target_resumption): New.
16262 (proceed): Call it.
16263 * target-connection.c (make_target_connection_string): Make
16264 extern.
16265 * target-connection.h (make_target_connection_string): Declare.
16266
16267 2020-01-10 Pedro Alves <palves@redhat.com>
16268
16269 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16270 * inferior.c (uiout_field_connection): New function.
16271 (print_inferior): Add new "connection-id" column.
16272 (add_inferior_command): Show connection number/string of added
16273 inferior.
16274 * process-stratum-target.h
16275 (process_stratum_target::connection_string): New virtual method.
16276 (process_stratum_target::connection_number): New field.
16277 * remote.c (remote_target::connection_string): New override.
16278 * target-connection.c: New file.
16279 * target-connection.h: New file.
16280 * target.c (decref_target): Remove process_stratum targets from
16281 the connection list.
16282 (target_stack::push): Add process_stratum targets to the
16283 connection list.
16284
16285 2020-01-10 Pedro Alves <palves@redhat.com>
16286
16287 Revert:
16288 2016-04-12 Pedro Alves <palves@redhat.com>
16289 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16290 Remove references to name.
16291 * serial.h (struct serial) <name>: Delete.
16292
16293 2020-01-10 Pedro Alves <palves@redhat.com>
16294
16295 * gdbarch-selftests.c (register_to_value_test): Remove "target
16296 already pushed" check.
16297
16298 2020-01-10 Pedro Alves <palves@redhat.com>
16299 John Baldwin <jhb@FreeBSD.org>
16300
16301 * aarch64-linux-nat.c
16302 (aarch64_linux_nat_target::thread_architecture): Adjust.
16303 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16304 (task_command_1): Likewise.
16305 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16306 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16307 (aix_thread_target::store_registers)
16308 (aix_thread_target::thread_alive): Adjust.
16309 * amd64-fbsd-tdep.c: Include "inferior.h".
16310 (amd64fbsd_get_thread_local_address): Pass down target.
16311 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16312 thread's gdbarch instead of target_gdbarch.
16313 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16314 get_last_target_status.
16315 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16316 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16317 inferiors.
16318 (update_inserted_breakpoint_locations): Skip if inferiors with no
16319 execution.
16320 (update_global_location_list): When handling moribund locations,
16321 find representative inferior for location's pspace, and use thread
16322 count of its process_stratum target.
16323 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16324 * bsd-uthread.c (bsd_uthread_target::wait): Use
16325 as_process_stratum_target and adjust thread_change_ptid and
16326 add_thread calls.
16327 (bsd_uthread_target::update_thread_list): Use
16328 as_process_stratum_target and adjust find_thread_ptid,
16329 thread_change_ptid and add_thread calls.
16330 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16331 find_thread_ptid call.
16332 * corelow.c (add_to_thread_list): Adjust add_thread call.
16333 (core_target_open): Adjust add_thread_silent and thread_count
16334 calls.
16335 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16336 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16337 * event-top.c (async_disconnect): Pop targets from all inferiors.
16338 * exec.c (add_target_sections): Push exec target on all inferiors
16339 sharing the program space.
16340 (remove_target_sections): Remove the exec target from all
16341 inferiors sharing the program space.
16342 (exec_on_vfork): New.
16343 * exec.h (exec_on_vfork): Declare.
16344 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16345 Pass it down.
16346 (fbsd_nat_target::update_thread_list): Adjust.
16347 (fbsd_nat_target::resume): Adjust.
16348 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16349 down.
16350 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16351 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16352 get_thread_arch_regcache call.
16353 * fork-child.c (gdb_startup_inferior): Pass target down to
16354 startup_inferior and set_executing.
16355 * gdbthread.h (struct process_stratum_target): Forward declare.
16356 (add_thread, add_thread_silent, add_thread_with_info)
16357 (in_thread_list): Add process_stratum_target parameter.
16358 (find_thread_ptid(inferior*, ptid_t)): New overload.
16359 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16360 parameter.
16361 (all_threads()): Delete overload.
16362 (all_threads, all_non_exited_threads): Add process_stratum_target
16363 parameter.
16364 (all_threads_safe): Use brace initialization.
16365 (thread_count): Add process_stratum_target parameter.
16366 (set_resumed, set_running, set_stop_requested, set_executing)
16367 (threads_are_executing, finish_thread_state): Add
16368 process_stratum_target parameter.
16369 (switch_to_thread): Use is_current_thread.
16370 * i386-fbsd-tdep.c: Include "inferior.h".
16371 (i386fbsd_get_thread_local_address): Pass down target.
16372 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16373 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16374 have_inferiors check.
16375 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16376 (inf_ptrace_target::attach): Adjust.
16377 * infcall.c (run_inferior_call): Adjust.
16378 * infcmd.c (run_command_1): Pass target to
16379 scoped_finish_thread_state.
16380 (proceed_thread_callback): Skip inferiors with no execution.
16381 (continue_command): Rename 'all_threads' local to avoid hiding
16382 'all_threads' function. Adjust get_last_target_status call.
16383 (prepare_one_step): Adjust set_running call.
16384 (signal_command): Use user_visible_resume_target. Compare thread
16385 pointers instead of inferior_ptid.
16386 (info_program_command): Adjust to pass down target.
16387 (attach_command): Mark target's 'thread_executing' flag.
16388 (stop_current_target_threads_ns): New, factored out from ...
16389 (interrupt_target_1): ... this. Switch inferior before making
16390 target calls.
16391 * inferior-iter.h
16392 (struct all_inferiors_iterator, struct all_inferiors_range)
16393 (struct all_inferiors_safe_range)
16394 (struct all_non_exited_inferiors_range): Filter on
16395 process_stratum_target too. Remove explicit.
16396 * inferior.c (inferior::inferior): Push dummy target on target
16397 stack.
16398 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16399 Add process_stratum_target parameter, and pass it down.
16400 (have_live_inferiors): Adjust.
16401 (switch_to_inferior_and_push_target): New.
16402 (add_inferior_command, clone_inferior_command): Handle
16403 "-no-connection" parameter. Use
16404 switch_to_inferior_and_push_target.
16405 (_initialize_inferior): Mention "-no-connection" option in
16406 the help of "add-inferior" and "clone-inferior" commands.
16407 * inferior.h: Include "process-stratum-target.h".
16408 (interrupt_target_1): Use bool.
16409 (struct inferior) <push_target, unpush_target, target_is_pushed,
16410 find_target_beneath, top_target, process_target, target_at,
16411 m_stack>: New.
16412 (discard_all_inferiors): Delete.
16413 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16414 (all_inferiors, all_non_exited_inferiors): Add
16415 process_stratum_target parameter.
16416 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16417 (target_last_proc_target): New global.
16418 (follow_fork_inferior): Push target on new inferior. Pass target
16419 to add_thread_silent. Call exec_on_vfork. Handle target's
16420 reference count.
16421 (follow_fork): Adjust get_last_target_status call. Also consider
16422 target.
16423 (follow_exec): Push target on new inferior.
16424 (struct execution_control_state) <target>: New field.
16425 (user_visible_resume_target): New.
16426 (do_target_resume): Call target_async.
16427 (resume_1): Set target's threads_executing flag. Consider resume
16428 target.
16429 (commit_resume_all_targets): New.
16430 (proceed): Also consider resume target. Skip threads of inferiors
16431 with no execution. Commit resumtion in all targets.
16432 (start_remote): Pass current inferior to wait_for_inferior.
16433 (infrun_thread_stop_requested): Consider target as well. Pass
16434 thread_info pointer to clear_inline_frame_state instead of ptid.
16435 (infrun_thread_thread_exit): Consider target as well.
16436 (random_pending_event_thread): New inferior parameter. Use it.
16437 (do_target_wait): Rename to ...
16438 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16439 down.
16440 (threads_are_resumed_pending_p, do_target_wait): New.
16441 (prepare_for_detach): Adjust calls.
16442 (wait_for_inferior): New inferior parameter. Handle it. Use
16443 do_target_wait_1 instead of do_target_wait.
16444 (fetch_inferior_event): Adjust. Switch to representative
16445 inferior. Pass target down.
16446 (set_last_target_status): Add process_stratum_target parameter.
16447 Save target in global.
16448 (get_last_target_status): Add process_stratum_target parameter and
16449 handle it.
16450 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16451 (context_switch): Check inferior_ptid == null_ptid before calling
16452 inferior_thread().
16453 (get_inferior_stop_soon): Pass down target.
16454 (wait_one): Rename to ...
16455 (poll_one_curr_target): ... this.
16456 (struct wait_one_event): New.
16457 (wait_one): New.
16458 (stop_all_threads): Adjust.
16459 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16460 event's target.
16461 (switch_back_to_stepped_thread): Also consider target.
16462 (print_stop_event): Update.
16463 (normal_stop): Update. Also consider the resume target.
16464 * infrun.h (wait_for_inferior): Remove declaration.
16465 (user_visible_resume_target): New declaration.
16466 (get_last_target_status, set_last_target_status): New
16467 process_stratum_target parameter.
16468 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16469 process_stratum_target parameter, and use it.
16470 (clear_inline_frame_state (thread_info*)): New.
16471 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16472 process_stratum_target parameter.
16473 (clear_inline_frame_state (thread_info*)): Declare.
16474 * linux-fork.c (delete_checkpoint_command): Pass target down to
16475 find_thread_ptid.
16476 (checkpoint_command): Adjust.
16477 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16478 instead of just tweaking inferior_ptid.
16479 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16480 (exit_lwp): Pass target down to find_thread_ptid.
16481 (attach_proc_task_lwp_callback): Pass target down to
16482 add_thread/set_running/set_executing.
16483 (linux_nat_target::attach): Pass target down to
16484 thread_change_ptid.
16485 (get_detach_signal): Pass target down to find_thread_ptid.
16486 Consider last target status's target.
16487 (linux_resume_one_lwp_throw, resume_lwp)
16488 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16489 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16490 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16491 (linux_nat_target::async_wait_fd): New.
16492 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16493 target down.
16494 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16495 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16496 * linux-thread-db.c (struct thread_db_info::process_target): New
16497 field.
16498 (add_thread_db_info): Save target.
16499 (get_thread_db_info): New process_stratum_target parameter. Also
16500 match target.
16501 (delete_thread_db_info): New process_stratum_target parameter.
16502 Also match target.
16503 (thread_from_lwp): Adjust to pass down target.
16504 (thread_db_notice_clone): Pass down target.
16505 (check_thread_db_callback): Pass down target.
16506 (try_thread_db_load_1): Always push the thread_db target.
16507 (try_thread_db_load, record_thread): Pass target down.
16508 (thread_db_target::detach): Pass target down. Always unpush the
16509 thread_db target.
16510 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16511 target down. Always unpush the thread_db target.
16512 (find_new_threads_callback, thread_db_find_new_threads_2)
16513 (thread_db_target::update_thread_list): Pass target down.
16514 (thread_db_target::pid_to_str): Pass current inferior down.
16515 (thread_db_target::get_thread_local_address): Pass target down.
16516 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16517 target down.
16518 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16519 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16520 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16521 (procfs_init_inferior): Rename to ...
16522 (procfs_target::procfs_init_inferior): ... this and adjust.
16523 (procfs_target::create_inferior, procfs_notice_thread)
16524 (procfs_do_thread_registers): Adjust.
16525 * ppc-fbsd-tdep.c: Include "inferior.h".
16526 (ppcfbsd_get_thread_local_address): Pass down target.
16527 * proc-service.c (ps_xfer_memory): Switch current inferior and
16528 program space as well.
16529 (get_ps_regcache): Pass target down.
16530 * process-stratum-target.c
16531 (process_stratum_target::thread_address_space)
16532 (process_stratum_target::thread_architecture): Pass target down.
16533 * process-stratum-target.h
16534 (process_stratum_target::threads_executing): New field.
16535 (as_process_stratum_target): New.
16536 * ravenscar-thread.c
16537 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16538 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16539 down.
16540 * record-btrace.c (record_btrace_target::info_record): Adjust.
16541 (record_btrace_target::record_method)
16542 (record_btrace_target::record_is_replaying)
16543 (record_btrace_target::fetch_registers)
16544 (get_thread_current_frame_id, record_btrace_target::resume)
16545 (record_btrace_target::wait, record_btrace_target::stop): Pass
16546 target down.
16547 * record-full.c (record_full_wait_1): Switch to event thread.
16548 Pass target down.
16549 * regcache.c (regcache::regcache)
16550 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16551 process_stratum_target parameter and handle it.
16552 (current_thread_target): New global.
16553 (get_thread_regcache): Add process_stratum_target parameter and
16554 handle it. Switch inferior before calling target method.
16555 (get_thread_regcache): Pass target down.
16556 (get_thread_regcache_for_ptid): Pass target down.
16557 (registers_changed_ptid): Add process_stratum_target parameter and
16558 handle it.
16559 (registers_changed_thread, registers_changed): Pass target down.
16560 (test_get_thread_arch_aspace_regcache): New.
16561 (current_regcache_test): Define a couple local test_target_ops
16562 instances and use them for testing.
16563 (readwrite_regcache): Pass process_stratum_target parameter.
16564 (cooked_read_test, cooked_write_test): Pass mock_target down.
16565 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16566 (get_thread_arch_aspace_regcache): Add process_stratum_target
16567 parameter.
16568 (regcache::target): New method.
16569 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16570 (regcache::registers_changed_ptid): Add process_stratum_target
16571 parameter.
16572 (regcache::m_target): New field.
16573 (registers_changed_ptid): Add process_stratum_target parameter.
16574 * remote.c (remote_state::supports_vCont_probed): New field.
16575 (remote_target::async_wait_fd): New method.
16576 (remote_unpush_and_throw): Add remote_target parameter.
16577 (get_current_remote_target): Adjust.
16578 (remote_target::remote_add_inferior): Push target.
16579 (remote_target::remote_add_thread)
16580 (remote_target::remote_notice_new_inferior)
16581 (get_remote_thread_info): Pass target down.
16582 (remote_target::update_thread_list): Skip threads of inferiors
16583 bound to other targets. (remote_target::close): Don't discard
16584 inferiors. (remote_target::add_current_inferior_and_thread)
16585 (remote_target::process_initial_stop_replies)
16586 (remote_target::start_remote)
16587 (remote_target::remote_serial_quit_handler): Pass down target.
16588 (remote_target::remote_unpush_target): New remote_target
16589 parameter. Unpush the target from all inferiors.
16590 (remote_target::remote_unpush_and_throw): New remote_target
16591 parameter. Pass it down.
16592 (remote_target::open_1): Check whether the current inferior has
16593 execution instead of checking whether any inferior is live. Pass
16594 target down.
16595 (remote_target::remote_detach_1): Pass down target. Use
16596 remote_unpush_target.
16597 (extended_remote_target::attach): Pass down target.
16598 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16599 (remote_target::append_resumption): Pass down target.
16600 (remote_target::append_pending_thread_resumptions)
16601 (remote_target::remote_resume_with_hc, remote_target::resume)
16602 (remote_target::commit_resume): Pass down target.
16603 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16604 (remote_target::interrupt_query)
16605 (remote_target::remove_new_fork_children)
16606 (remote_target::check_pending_events_prevent_wildcard_vcont)
16607 (remote_target::remote_parse_stop_reply)
16608 (remote_target::process_stop_reply): Pass down target.
16609 (first_remote_resumed_thread): New remote_target parameter. Pass
16610 it down.
16611 (remote_target::wait_as): Pass down target.
16612 (unpush_and_perror): New remote_target parameter. Pass it down.
16613 (remote_target::readchar, remote_target::remote_serial_write)
16614 (remote_target::getpkt_or_notif_sane_1)
16615 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16616 down target.
16617 (remote_target::mourn_inferior): Pass down target. Use
16618 remote_unpush_target.
16619 (remote_target::core_of_thread)
16620 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16621 (remote_target::pid_to_exec_file)
16622 (remote_target::thread_handle_to_thread_info): Pass down target.
16623 (remote_target::async_wait_fd): New.
16624 * riscv-fbsd-tdep.c: Include "inferior.h".
16625 (riscv_fbsd_get_thread_local_address): Pass down target.
16626 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16627 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16628 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16629 Adjust.
16630 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16631 * solib-svr4.c (enable_break): Pass down target.
16632 * spu-multiarch.c (parse_spufs_run): Pass down target.
16633 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16634 * target-delegates.c: Regenerate.
16635 * target.c (g_target_stack): Delete.
16636 (current_top_target): Return the current inferior's top target.
16637 (target_has_execution_1): Refer to the passed-in inferior's top
16638 target.
16639 (target_supports_terminal_ours): Check whether the initial
16640 inferior was already created.
16641 (decref_target): New.
16642 (target_stack::push): Incref/decref the target.
16643 (push_target, push_target, unpush_target): Adjust.
16644 (target_stack::unpush): Defref target.
16645 (target_is_pushed): Return bool. Adjust to refer to the current
16646 inferior's target stack.
16647 (dispose_inferior): Delete, and inline parts ...
16648 (target_preopen): ... here. Only dispose of the current inferior.
16649 (target_detach): Hold strong target reference while detaching.
16650 Pass target down.
16651 (target_thread_name): Add assertion.
16652 (target_resume): Pass down target.
16653 (target_ops::beneath, find_target_at): Adjust to refer to the
16654 current inferior's target stack.
16655 (get_dummy_target): New.
16656 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16657 has a thread running.
16658 (initialize_targets): Rename to ...
16659 (_initialize_target): ... this.
16660 * target.h: Include "gdbsupport/refcounted-object.h".
16661 (struct target_ops): Inherit refcounted_object.
16662 (target_ops::shortname, target_ops::longname): Make const.
16663 (target_ops::async_wait_fd): New method.
16664 (decref_target): Declare.
16665 (struct target_ops_ref_policy): New.
16666 (target_ops_ref): New typedef.
16667 (get_dummy_target): Declare function.
16668 (target_is_pushed): Return bool.
16669 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16670 (all_matching_threads_iterator::all_matching_threads_iterator):
16671 Handle filter target.
16672 * thread-iter.h (struct all_matching_threads_iterator, struct
16673 all_matching_threads_range, class all_non_exited_threads_range):
16674 Filter by target too. Remove explicit.
16675 * thread.c (threads_executing): Delete.
16676 (inferior_thread): Pass down current inferior.
16677 (clear_thread_inferior_resources): Pass down thread pointer
16678 instead of ptid_t.
16679 (add_thread_silent, add_thread_with_info, add_thread): Add
16680 process_stratum_target parameter. Use it for thread and inferior
16681 searches.
16682 (is_current_thread): New.
16683 (thread_info::deletable): Use it.
16684 (find_thread_ptid, thread_count, in_thread_list)
16685 (thread_change_ptid, set_resumed, set_running): New
16686 process_stratum_target parameter. Pass it down.
16687 (set_executing): New process_stratum_target parameter. Pass it
16688 down. Adjust reference to 'threads_executing'.
16689 (threads_are_executing): New process_stratum_target parameter.
16690 Adjust reference to 'threads_executing'.
16691 (set_stop_requested, finish_thread_state): New
16692 process_stratum_target parameter. Pass it down.
16693 (switch_to_thread): Also match inferior.
16694 (switch_to_thread): New process_stratum_target parameter. Pass it
16695 down.
16696 (update_threads_executing): Reimplement.
16697 * top.c (quit_force): Pop targets from all inferior.
16698 (gdb_init): Don't call initialize_targets.
16699 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16700 Declare.
16701 (windows_add_thread, windows_delete_thread): Adjust.
16702 (get_windows_debug_event): Rename to ...
16703 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16704 * tracefile-tfile.c (tfile_target_open): Pass down target.
16705 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16706 Forward declare.
16707 (switch_to_thread): Add process_stratum_target parameter.
16708 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16709 parameter. Use it.
16710 (mi_on_resume): Pass target down.
16711 * nat/fork-inferior.c (startup_inferior): Add
16712 process_stratum_target parameter. Pass it down.
16713 * nat/fork-inferior.h (startup_inferior): Add
16714 process_stratum_target parameter.
16715 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16716
16717 2020-01-10 Pedro Alves <palves@redhat.com>
16718
16719 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16720 directly. Instead find the first thread in the thread list and
16721 use switch_to_thread.
16722
16723 2020-01-10 Pedro Alves <palves@redhat.com>
16724
16725 * remote.c (remote_target::remote_add_inferior): Don't bind a
16726 process to the current inferior if the current inferior is already
16727 bound to a process.
16728
16729 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16730 Pedro Alves <palves@redhat.com>
16731
16732 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16733 If no process is specified, return null_ptid instead of
16734 inferior_ptid.
16735 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16736 TARGET_WAITKIND_SIGNALLED with no pid.
16737
16738 2020-01-10 Pedro Alves <palves@redhat.com>
16739
16740 * remote.c (first_remote_resumed_thread): New.
16741 (remote_target::wait_as): Use it as default event_ptid instead of
16742 inferior_ptid.
16743
16744 2020-01-10 Pedro Alves <palves@redhat.com>
16745
16746 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16747
16748 2020-01-10 Pedro Alves <palves@redhat.com>
16749
16750 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16751 not -1.
16752
16753 2020-01-10 Pedro Alves <palves@redhat.com>
16754
16755 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16756 ptid to get_last_target_status.
16757 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16758 ptid to get_last_target_status.
16759 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16760 get_last_target_status.
16761 (info_program_command): Don't pass a target_waitstatus to
16762 get_last_target_status.
16763 * infrun.c (init_wait_for_inferior): Use
16764 nullify_last_target_wait_ptid.
16765 (get_last_target_status): Handle nullptr arguments.
16766 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16767 (print_stop_event): Don't pass a ptid to get_last_target_status.
16768 (normal_stop): Don't pass a ptid to get_last_target_status.
16769 * infrun.h (get_last_target_status, set_last_target_status): Move
16770 comments here and update.
16771 (nullify_last_target_wait_ptid): Declare.
16772 * linux-fork.c (fork_load_infrun_state): Remove local extern
16773 declaration of nullify_last_target_wait_ptid.
16774 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16775 to get_last_target_status.
16776
16777 2020-01-10 Pedro Alves <palves@redhat.com>
16778
16779 * gdbthread.h (scoped_restore_current_thread)
16780 <dont_restore, restore, m_dont_restore>: Declare.
16781 * thread.c (thread_alive): Add assertion. Return bool.
16782 (switch_to_thread_if_alive): New.
16783 (prune_threads): Switch inferior/thread.
16784 (print_thread_info_1): Switch thread before calling target methods.
16785 (scoped_restore_current_thread::restore): New, factored out from
16786 ...
16787 (scoped_restore_current_thread::~scoped_restore_current_thread):
16788 ... this.
16789 (scoped_restore_current_thread::scoped_restore_current_thread):
16790 Add assertion.
16791 (thread_apply_all_command, thread_select): Use
16792 switch_to_thread_if_alive.
16793 * infrun.c (proceed, restart_threads, handle_signal_stop)
16794 (switch_back_to_stepped_thread): Switch current thread before
16795 calling target methods.
16796
16797 2020-01-10 Pedro Alves <palves@redhat.com>
16798
16799 * inferior.c (switch_to_inferior_no_thread): New function,
16800 factored out from ...
16801 (inferior_command): ... here.
16802 * inferior.h (switch_to_inferior_no_thread): Declare.
16803 * mi/mi-main.c (run_one_inferior): Use
16804 switch_to_inferior_no_thread.
16805
16806 2020-01-10 Pedro Alves <palves@redhat.com>
16807
16808 * infcmd.c (kill_command): Remove dead code.
16809
16810 2020-01-10 Pedro Alves <palves@redhat.com>
16811
16812 * remote.c (remote_target::mourn_inferior): No longer check
16813 whether the target is running.
16814
16815 2020-01-10 Pedro Alves <palves@redhat.com>
16816
16817 * corelow.c (core_target::has_execution): Change parameter type to
16818 inferior pointer.
16819 * inferior.c (number_of_live_inferiors): Use
16820 inferior::has_execution instead of target_has_execution_1.
16821 * inferior.h (inferior::has_execution): New.
16822 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16823 inferior::has_execution instead of target_has_execution_1.
16824 * process-stratum-target.c
16825 (process_stratum_target::has_execution): Change parameter type to
16826 inferior pointer. Check the inferior's PID instead of
16827 inferior_ptid.
16828 * process-stratum-target.h
16829 (process_stratum_target::has_execution): Change parameter type to
16830 inferior pointer.
16831 * record-full.c (record_full_core_target::has_execution): Change
16832 parameter type to inferior pointer.
16833 * target.c (target_has_execution_1): Change parameter type to
16834 inferior pointer.
16835 (target_has_execution_current): Adjust.
16836 * target.h (target_ops::has_execution): Change parameter type to
16837 inferior pointer.
16838 (target_has_execution_1): Change parameter type to inferior
16839 pointer. Change return type to bool.
16840 * tracefile.h (tracefile_target::has_execution): Change parameter
16841 type to inferior pointer.
16842
16843 2020-01-10 Pedro Alves <palves@redhat.com>
16844
16845 * exceptions.c (print_flush): Remove current_top_target() check.
16846
16847 2020-01-10 Pedro Alves <palves@redhat.com>
16848
16849 * remote.c (show_remote_exec_file): Show the current inferior's
16850 exec-file instead of the command variable's value.
16851
16852 2020-01-10 Pedro Alves <palves@redhat.com>
16853
16854 * record-full.c (record_full_resume_ptid): New global.
16855 (record_full_target::resume): Set it.
16856 (record_full_wait_1): Use record_full_resume_ptid instead of
16857 inferior_ptid.
16858
16859 2020-01-10 Pedro Alves <palves@redhat.com>
16860
16861 * gdbthread.h (scoped_restore_current_thread)
16862 <dont_restore, restore, m_dont_restore>: Declare.
16863 * thread.c (thread_alive): Add assertion. Return bool.
16864 (switch_to_thread_if_alive): New.
16865 (prune_threads): Switch inferior/thread.
16866 (print_thread_info_1): Switch thread before calling target methods.
16867 (scoped_restore_current_thread::restore): New, factored out from
16868 ...
16869 (scoped_restore_current_thread::~scoped_restore_current_thread):
16870 ... this.
16871 (scoped_restore_current_thread::scoped_restore_current_thread):
16872 Add assertion.
16873 (thread_apply_all_command, thread_select): Use
16874 switch_to_thread_if_alive.
16875
16876 2020-01-10 George Barrett <bob@bob131.so>
16877
16878 * stap-probe.c (stap_modify_semaphore): Don't check for null
16879 semaphores.
16880 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16881 for null semaphores.
16882
16883 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16884
16885 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16886 all source windows, and maintain horizontal scroll status while
16887 doing so.
16888
16889 2020-01-09 Tom Tromey <tom@tromey.com>
16890
16891 PR tui/18932:
16892 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16893 update_source_window, not print_source_lines.
16894
16895 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16896
16897 * tui/tui.c (tui_enable): Register tui hooks after calling
16898 tui_display_main.
16899
16900 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16901
16902 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16903
16904 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16905
16906 * thread.c (print_thread_info_1): Fix indentation.
16907
16908 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16909
16910 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16911 unique_xmalloc_ptr outside the if to always free the demangled name.
16912
16913 2020-01-08 Tom Tromey <tromey@adacore.com>
16914
16915 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16916 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16918 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16919 Remove.
16920 (section_offsets): New typedef.
16921 * symtab.c (fixup_section, get_msymbol_address): Update.
16922 * symmisc.c (dump_msymbols): Update.
16923 * symfile.h (relative_addr_info_to_section_offsets)
16924 (symfile_map_offsets_to_segments): Update.
16925 * symfile.c (build_section_addr_info_from_objfile)
16926 (init_objfile_sect_indices): Update.
16927 (struct place_section_arg): Change type of "offsets".
16928 (place_section): Update.
16929 (relative_addr_info_to_section_offsets): Change type of
16930 "section_offsets". Remove "num_sections" parameter.
16931 (default_symfile_offsets, syms_from_objfile_1)
16932 (set_objfile_default_section_offset): Update.
16933 (reread_symbols): No need to preserve section offsets by hand.
16934 (symfile_map_offsets_to_segments): Change type of "offsets".
16935 * stap-probe.c (relocate_address): Update.
16936 * stabsread.h (process_one_symbol): Update.
16937 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16938 (solib_target_relocate_section_addresses): Update.
16939 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16940 Update.
16941 * solib-frv.c (frv_relocate_main_executable): Update.
16942 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16943 * solib-aix.c (solib_aix_get_section_offsets): Change return
16944 type.
16945 (solib_aix_solib_create_inferior_hook): Update.
16946 * remote.c (remote_target::get_offsets): Update.
16947 * psymtab.c (find_pc_sect_psymtab): Update.
16948 * psympriv.h (struct partial_symbol) <address, text_low,
16949 text_high>: Update.
16950 * objfiles.h (obj_section_offset): Update.
16951 (struct objfile) <section_offsets>: Change type.
16952 <num_sections>: Remove.
16953 (objfile_relocate): Update.
16954 * objfiles.c (entry_point_address_query): Update
16955 (relocate_one_symbol): Change type of "section_offsets".
16956 (objfile_relocate1, objfile_relocate1): Change type of
16957 "new_offsets".
16958 (objfile_rebase1): Update.
16959 * mipsread.c (mipscoff_symfile_read): Update.
16960 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16961 parameter.
16962 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16963 (parse_external, psymtab_to_symtab_1): Update.
16964 * machoread.c (macho_symfile_offsets): Update.
16965 * ia64-tdep.c (ia64_find_unwind_table): Update.
16966 * hppa-tdep.c (read_unwind_info): Update.
16967 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16968 * dwarf2read.c (create_addrmap_from_index)
16969 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16970 (process_psymtab_comp_unit_reader, add_partial_symbol)
16971 (add_partial_subprogram, process_full_comp_unit)
16972 (read_file_scope, read_func_scope, read_lexical_block_scope)
16973 (read_call_site_scope, dwarf2_rnglists_process)
16974 (dwarf2_ranges_process, dwarf2_ranges_read)
16975 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16976 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16977 Update.
16978 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16979 Update.
16980 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16981 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16982 (process_one_symbol): Change type of "section_offsets".
16983 * ctfread.c (get_objfile_text_range): Update.
16984 * coffread.c (coff_symtab_read, enter_linenos)
16985 (process_coff_symbol): Update.
16986 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16987 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16988
16989 2020-01-08 Tom Tromey <tromey@adacore.com>
16990
16991 * dwarf2read.c (parse_macro_definition): Use std::string.
16992 (parse_macro_definition): Likewise.
16993
16994 2020-01-08 Tom Tromey <tromey@adacore.com>
16995
16996 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16997 (ATTR_ALLOC_CHUNK): Remove.
16998
16999 2020-01-08 Tom Tromey <tromey@adacore.com>
17000
17001 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17002
17003 2020-01-08 Tom Tromey <tromey@adacore.com>
17004
17005 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17006 (dwarf2_compute_name, open_dwo_file): Likewise.
17007 (process_enumeration_scope): Use std::vector.
17008 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17009 (partial_die_info::fixup, dwarf2_start_subfile)
17010 (guess_full_die_structure_name, dwarf2_name): Likewise.
17011 (determine_prefix): Update.
17012 (guess_full_die_structure_name): Make return type const.
17013 (partial_die_full_name): Return unique_xmalloc_ptr.
17014 (DW_FIELD_ALLOC_CHUNK): Remove.
17015
17016 2020-01-07 Tom Tromey <tromey@adacore.com>
17017
17018 PR build/24937:
17019 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17020
17021 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17022
17023 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17024
17025 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17026
17027 * stack.c (print_frame_info): Move disassemble_next_line code
17028 inside source_print block.
17029
17030 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17031
17032 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17033 gdb/signals.h, as we are now using native signal symbols.
17034
17035 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17036
17037 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17038 overflow by an early check of content vs threshold.
17039 * tui/tui-source.c (tui_source_window::line_is_displayed):
17040 Likewise.
17041
17042 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17043
17044 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17045
17046 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17047
17048 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17049 export table if no section contains it's RVA.
17050
17051 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17052
17053 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17054
17055 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17056
17057 * source.c (print_source_lines_base): Set last_line_listed.
17058
17059 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17060
17061 * tui/tui-disasm.c: Remove trailing spaces.
17062
17063 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17064 Pedro Alves <palves@redhat.com>
17065
17066 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17067 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17068 (windows_gdb_signal_to_target): New function, uses the above
17069 enumeration to convert GDB internal signal codes to equivalent
17070 Windows codes.
17071 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17072 * windows-nat.c: Include "gdb_wait.h".
17073 (get_windows_debug_event): Extract the fatal exception from the
17074 exit status and convert to the equivalent Posix signal number.
17075 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17076 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17077 * gdbsupport/gdb_wait.c: New file, implements
17078 windows_status_to_termsig.
17079 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17080 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17081
17082 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17083
17084 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17085 show_layout.
17086
17087 2020-01-05 Luis Machado <luis.machado@linaro.org>
17088
17089 * aarch64-linux-nat.c
17090 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17091 and bfd_mach_aarch64.
17092
17093 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17094
17095 * ui-file.c (stdio_file::can_emit_style_escape)
17096 (tee_file::can_emit_style_escape): Ensure style is used also on
17097 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17098 to gdb_stdout.
17099 * main.c (set_gdb_data_directory): Use file style to output the
17100 warning that the given pathname is not a directory.
17101 * top.c (show_history_filename, gdb_safe_append_history)
17102 (show_gdb_datadir): Use file style.
17103
17104 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17105
17106 * solib-target.c (struct lm_info_target):
17107 Change offsets to be a unique_xmalloc_ptr.
17108 (solib_target_relocate_section_addresses): Update.
17109
17110 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17111
17112 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17113
17114 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17115
17116 * MAINTAINERS (Write After Approval): Add myself.
17117
17118 2020-01-02 Luis Machado <luis.machado@linaro.org>
17119
17120 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17121 Cell BE architecture.
17122 * target.h (struct target_ops) <thread_architecture>: Likewise.
17123
17124 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17125
17126 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17127
17128 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17129
17130 * MAINTAINERS (Write After Approval): Add myself.
17131
17132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17133
17134 * gdbarch.sh: Update copyright year range of generated files.
17135
17136 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17137
17138 Update copyright year range in all GDB files.
17139
17140 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17141
17142 * copyright.py: Convert to Python 3.
17143
17144 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17145
17146 * copyright.py: Adapt after move of gnulib directory from gdb
17147 directory to toplevel directory.
17148
17149 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17150
17151 * copyright.py (main): Exit if run from the wrong directory.
17152
17153 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17154
17155 * top.c (print_gdb_version): Change copyright year to 2020.
17156
17157 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17158
17159 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17160
17161 For older changes see ChangeLog-2019.
17162 \f
17163 Local Variables:
17164 mode: change-log
17165 left-margin: 8
17166 fill-column: 74
17167 version-control: never
17168 coding: utf-8
17169 End:
This page took 0.389252 seconds and 4 git commands to generate.